| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// - protoc-gen-go-grpc v1.3.0 |
| 18 |
// - protoc v4.25.7 |
| 19 |
// source: google/cloud/gsuiteaddons/v1/gsuiteaddons.proto |
| 20 |
|
| 21 |
package gsuiteaddonspb |
| 22 |
|
| 23 |
import ( |
| 24 |
context "context" |
| 25 |
grpc "google.golang.org/grpc" |
| 26 |
codes "google.golang.org/grpc/codes" |
| 27 |
status "google.golang.org/grpc/status" |
| 28 |
emptypb "google.golang.org/protobuf/types/known/emptypb" |
| 29 |
) |
| 30 |
|
| 31 |
// This is a compile-time assertion to ensure that this generated file |
| 32 |
// is compatible with the grpc package it is being compiled against. |
| 33 |
// Requires gRPC-Go v1.32.0 or later. |
| 34 |
const _ = grpc.SupportPackageIsVersion7 |
| 35 |
|
| 36 |
const ( |
| 37 |
GSuiteAddOns_GetAuthorization_FullMethodName = "/google.cloud.gsuiteaddons.v1.GSuiteAddOns/GetAuthorization" |
| 38 |
GSuiteAddOns_CreateDeployment_FullMethodName = "/google.cloud.gsuiteaddons.v1.GSuiteAddOns/CreateDeployment" |
| 39 |
GSuiteAddOns_ReplaceDeployment_FullMethodName = "/google.cloud.gsuiteaddons.v1.GSuiteAddOns/ReplaceDeployment" |
| 40 |
GSuiteAddOns_GetDeployment_FullMethodName = "/google.cloud.gsuiteaddons.v1.GSuiteAddOns/GetDeployment" |
| 41 |
GSuiteAddOns_ListDeployments_FullMethodName = "/google.cloud.gsuiteaddons.v1.GSuiteAddOns/ListDeployments" |
| 42 |
GSuiteAddOns_DeleteDeployment_FullMethodName = "/google.cloud.gsuiteaddons.v1.GSuiteAddOns/DeleteDeployment" |
| 43 |
GSuiteAddOns_InstallDeployment_FullMethodName = "/google.cloud.gsuiteaddons.v1.GSuiteAddOns/InstallDeployment" |
| 44 |
GSuiteAddOns_UninstallDeployment_FullMethodName = "/google.cloud.gsuiteaddons.v1.GSuiteAddOns/UninstallDeployment" |
| 45 |
GSuiteAddOns_GetInstallStatus_FullMethodName = "/google.cloud.gsuiteaddons.v1.GSuiteAddOns/GetInstallStatus" |
| 46 |
) |
| 47 |
|
| 48 |
// GSuiteAddOnsClient is the client API for GSuiteAddOns service. |
| 49 |
// |
| 50 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. |
| 51 |
type GSuiteAddOnsClient interface { |
| 52 |
// Gets the authorization information for deployments in a given project. |
| 53 |
GetAuthorization(ctx context.Context, in *GetAuthorizationRequest, opts ...grpc.CallOption) (*Authorization, error) |
| 54 |
// Creates a deployment with the specified name and configuration. |
| 55 |
CreateDeployment(ctx context.Context, in *CreateDeploymentRequest, opts ...grpc.CallOption) (*Deployment, error) |
| 56 |
// Creates or replaces a deployment with the specified name. |
| 57 |
ReplaceDeployment(ctx context.Context, in *ReplaceDeploymentRequest, opts ...grpc.CallOption) (*Deployment, error) |
| 58 |
// Gets the deployment with the specified name. |
| 59 |
GetDeployment(ctx context.Context, in *GetDeploymentRequest, opts ...grpc.CallOption) (*Deployment, error) |
| 60 |
// Lists all deployments in a particular project. |
| 61 |
ListDeployments(ctx context.Context, in *ListDeploymentsRequest, opts ...grpc.CallOption) (*ListDeploymentsResponse, error) |
| 62 |
// Deletes the deployment with the given name. |
| 63 |
DeleteDeployment(ctx context.Context, in *DeleteDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) |
| 64 |
// Installs a deployment in developer mode. |
| 65 |
// See: |
| 66 |
// https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons. |
| 67 |
InstallDeployment(ctx context.Context, in *InstallDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) |
| 68 |
// Uninstalls a developer mode deployment. |
| 69 |
// See: |
| 70 |
// https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons. |
| 71 |
UninstallDeployment(ctx context.Context, in *UninstallDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) |
| 72 |
// Fetches the install status of a developer mode deployment. |
| 73 |
GetInstallStatus(ctx context.Context, in *GetInstallStatusRequest, opts ...grpc.CallOption) (*InstallStatus, error) |
| 74 |
} |
| 75 |
|
| 76 |
type gSuiteAddOnsClient struct { |
| 77 |
cc grpc.ClientConnInterface |
| 78 |
} |
| 79 |
|
| 80 |
func NewGSuiteAddOnsClient(cc grpc.ClientConnInterface) GSuiteAddOnsClient { |
| 81 |
return &gSuiteAddOnsClient{cc} |
| 82 |
} |
| 83 |
|
| 84 |
func (c *gSuiteAddOnsClient) GetAuthorization(ctx context.Context, in *GetAuthorizationRequest, opts ...grpc.CallOption) (*Authorization, error) { |
| 85 |
out := new(Authorization) |
| 86 |
err := c.cc.Invoke(ctx, GSuiteAddOns_GetAuthorization_FullMethodName, in, out, opts...) |
| 87 |
if err != nil { |
| 88 |
return nil, err |
| 89 |
} |
| 90 |
return out, nil |
| 91 |
} |
| 92 |
|
| 93 |
func (c *gSuiteAddOnsClient) CreateDeployment(ctx context.Context, in *CreateDeploymentRequest, opts ...grpc.CallOption) (*Deployment, error) { |
| 94 |
out := new(Deployment) |
| 95 |
err := c.cc.Invoke(ctx, GSuiteAddOns_CreateDeployment_FullMethodName, in, out, opts...) |
| 96 |
if err != nil { |
| 97 |
return nil, err |
| 98 |
} |
| 99 |
return out, nil |
| 100 |
} |
| 101 |
|
| 102 |
func (c *gSuiteAddOnsClient) ReplaceDeployment(ctx context.Context, in *ReplaceDeploymentRequest, opts ...grpc.CallOption) (*Deployment, error) { |
| 103 |
out := new(Deployment) |
| 104 |
err := c.cc.Invoke(ctx, GSuiteAddOns_ReplaceDeployment_FullMethodName, in, out, opts...) |
| 105 |
if err != nil { |
| 106 |
return nil, err |
| 107 |
} |
| 108 |
return out, nil |
| 109 |
} |
| 110 |
|
| 111 |
func (c *gSuiteAddOnsClient) GetDeployment(ctx context.Context, in *GetDeploymentRequest, opts ...grpc.CallOption) (*Deployment, error) { |
| 112 |
out := new(Deployment) |
| 113 |
err := c.cc.Invoke(ctx, GSuiteAddOns_GetDeployment_FullMethodName, in, out, opts...) |
| 114 |
if err != nil { |
| 115 |
return nil, err |
| 116 |
} |
| 117 |
return out, nil |
| 118 |
} |
| 119 |
|
| 120 |
func (c *gSuiteAddOnsClient) ListDeployments(ctx context.Context, in *ListDeploymentsRequest, opts ...grpc.CallOption) (*ListDeploymentsResponse, error) { |
| 121 |
out := new(ListDeploymentsResponse) |
| 122 |
err := c.cc.Invoke(ctx, GSuiteAddOns_ListDeployments_FullMethodName, in, out, opts...) |
| 123 |
if err != nil { |
| 124 |
return nil, err |
| 125 |
} |
| 126 |
return out, nil |
| 127 |
} |
| 128 |
|
| 129 |
func (c *gSuiteAddOnsClient) DeleteDeployment(ctx context.Context, in *DeleteDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { |
| 130 |
out := new(emptypb.Empty) |
| 131 |
err := c.cc.Invoke(ctx, GSuiteAddOns_DeleteDeployment_FullMethodName, in, out, opts...) |
| 132 |
if err != nil { |
| 133 |
return nil, err |
| 134 |
} |
| 135 |
return out, nil |
| 136 |
} |
| 137 |
|
| 138 |
func (c *gSuiteAddOnsClient) InstallDeployment(ctx context.Context, in *InstallDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { |
| 139 |
out := new(emptypb.Empty) |
| 140 |
err := c.cc.Invoke(ctx, GSuiteAddOns_InstallDeployment_FullMethodName, in, out, opts...) |
| 141 |
if err != nil { |
| 142 |
return nil, err |
| 143 |
} |
| 144 |
return out, nil |
| 145 |
} |
| 146 |
|
| 147 |
func (c *gSuiteAddOnsClient) UninstallDeployment(ctx context.Context, in *UninstallDeploymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { |
| 148 |
out := new(emptypb.Empty) |
| 149 |
err := c.cc.Invoke(ctx, GSuiteAddOns_UninstallDeployment_FullMethodName, in, out, opts...) |
| 150 |
if err != nil { |
| 151 |
return nil, err |
| 152 |
} |
| 153 |
return out, nil |
| 154 |
} |
| 155 |
|
| 156 |
func (c *gSuiteAddOnsClient) GetInstallStatus(ctx context.Context, in *GetInstallStatusRequest, opts ...grpc.CallOption) (*InstallStatus, error) { |
| 157 |
out := new(InstallStatus) |
| 158 |
err := c.cc.Invoke(ctx, GSuiteAddOns_GetInstallStatus_FullMethodName, in, out, opts...) |
| 159 |
if err != nil { |
| 160 |
return nil, err |
| 161 |
} |
| 162 |
return out, nil |
| 163 |
} |
| 164 |
|
| 165 |
// GSuiteAddOnsServer is the server API for GSuiteAddOns service. |
| 166 |
// All implementations should embed UnimplementedGSuiteAddOnsServer |
| 167 |
// for forward compatibility |
| 168 |
type GSuiteAddOnsServer interface { |
| 169 |
// Gets the authorization information for deployments in a given project. |
| 170 |
GetAuthorization(context.Context, *GetAuthorizationRequest) (*Authorization, error) |
| 171 |
// Creates a deployment with the specified name and configuration. |
| 172 |
CreateDeployment(context.Context, *CreateDeploymentRequest) (*Deployment, error) |
| 173 |
// Creates or replaces a deployment with the specified name. |
| 174 |
ReplaceDeployment(context.Context, *ReplaceDeploymentRequest) (*Deployment, error) |
| 175 |
// Gets the deployment with the specified name. |
| 176 |
GetDeployment(context.Context, *GetDeploymentRequest) (*Deployment, error) |
| 177 |
// Lists all deployments in a particular project. |
| 178 |
ListDeployments(context.Context, *ListDeploymentsRequest) (*ListDeploymentsResponse, error) |
| 179 |
// Deletes the deployment with the given name. |
| 180 |
DeleteDeployment(context.Context, *DeleteDeploymentRequest) (*emptypb.Empty, error) |
| 181 |
// Installs a deployment in developer mode. |
| 182 |
// See: |
| 183 |
// https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons. |
| 184 |
InstallDeployment(context.Context, *InstallDeploymentRequest) (*emptypb.Empty, error) |
| 185 |
// Uninstalls a developer mode deployment. |
| 186 |
// See: |
| 187 |
// https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons. |
| 188 |
UninstallDeployment(context.Context, *UninstallDeploymentRequest) (*emptypb.Empty, error) |
| 189 |
// Fetches the install status of a developer mode deployment. |
| 190 |
GetInstallStatus(context.Context, *GetInstallStatusRequest) (*InstallStatus, error) |
| 191 |
} |
| 192 |
|
| 193 |
// UnimplementedGSuiteAddOnsServer should be embedded to have forward compatible implementations. |
| 194 |
type UnimplementedGSuiteAddOnsServer struct { |
| 195 |
} |
| 196 |
|
| 197 |
func (UnimplementedGSuiteAddOnsServer) GetAuthorization(context.Context, *GetAuthorizationRequest) (*Authorization, error) { |
| 198 |
return nil, status.Errorf(codes.Unimplemented, "method GetAuthorization not implemented") |
| 199 |
} |
| 200 |
func (UnimplementedGSuiteAddOnsServer) CreateDeployment(context.Context, *CreateDeploymentRequest) (*Deployment, error) { |
| 201 |
return nil, status.Errorf(codes.Unimplemented, "method CreateDeployment not implemented") |
| 202 |
} |
| 203 |
func (UnimplementedGSuiteAddOnsServer) ReplaceDeployment(context.Context, *ReplaceDeploymentRequest) (*Deployment, error) { |
| 204 |
return nil, status.Errorf(codes.Unimplemented, "method ReplaceDeployment not implemented") |
| 205 |
} |
| 206 |
func (UnimplementedGSuiteAddOnsServer) GetDeployment(context.Context, *GetDeploymentRequest) (*Deployment, error) { |
| 207 |
return nil, status.Errorf(codes.Unimplemented, "method GetDeployment not implemented") |
| 208 |
} |
| 209 |
func (UnimplementedGSuiteAddOnsServer) ListDeployments(context.Context, *ListDeploymentsRequest) (*ListDeploymentsResponse, error) { |
| 210 |
return nil, status.Errorf(codes.Unimplemented, "method ListDeployments not implemented") |
| 211 |
} |
| 212 |
func (UnimplementedGSuiteAddOnsServer) DeleteDeployment(context.Context, *DeleteDeploymentRequest) (*emptypb.Empty, error) { |
| 213 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteDeployment not implemented") |
| 214 |
} |
| 215 |
func (UnimplementedGSuiteAddOnsServer) InstallDeployment(context.Context, *InstallDeploymentRequest) (*emptypb.Empty, error) { |
| 216 |
return nil, status.Errorf(codes.Unimplemented, "method InstallDeployment not implemented") |
| 217 |
} |
| 218 |
func (UnimplementedGSuiteAddOnsServer) UninstallDeployment(context.Context, *UninstallDeploymentRequest) (*emptypb.Empty, error) { |
| 219 |
return nil, status.Errorf(codes.Unimplemented, "method UninstallDeployment not implemented") |
| 220 |
} |
| 221 |
func (UnimplementedGSuiteAddOnsServer) GetInstallStatus(context.Context, *GetInstallStatusRequest) (*InstallStatus, error) { |
| 222 |
return nil, status.Errorf(codes.Unimplemented, "method GetInstallStatus not implemented") |
| 223 |
} |
| 224 |
|
| 225 |
// UnsafeGSuiteAddOnsServer may be embedded to opt out of forward compatibility for this service. |
| 226 |
// Use of this interface is not recommended, as added methods to GSuiteAddOnsServer will |
| 227 |
// result in compilation errors. |
| 228 |
type UnsafeGSuiteAddOnsServer interface { |
| 229 |
mustEmbedUnimplementedGSuiteAddOnsServer() |
| 230 |
} |
| 231 |
|
| 232 |
func RegisterGSuiteAddOnsServer(s grpc.ServiceRegistrar, srv GSuiteAddOnsServer) { |
| 233 |
s.RegisterService(&GSuiteAddOns_ServiceDesc, srv) |
| 234 |
} |
| 235 |
|
| 236 |
func _GSuiteAddOns_GetAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 237 |
in := new(GetAuthorizationRequest) |
| 238 |
if err := dec(in); err != nil { |
| 239 |
return nil, err |
| 240 |
} |
| 241 |
if interceptor == nil { |
| 242 |
return srv.(GSuiteAddOnsServer).GetAuthorization(ctx, in) |
| 243 |
} |
| 244 |
info := &grpc.UnaryServerInfo{ |
| 245 |
Server: srv, |
| 246 |
FullMethod: GSuiteAddOns_GetAuthorization_FullMethodName, |
| 247 |
} |
| 248 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 249 |
return srv.(GSuiteAddOnsServer).GetAuthorization(ctx, req.(*GetAuthorizationRequest)) |
| 250 |
} |
| 251 |
return interceptor(ctx, in, info, handler) |
| 252 |
} |
| 253 |
|
| 254 |
func _GSuiteAddOns_CreateDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 255 |
in := new(CreateDeploymentRequest) |
| 256 |
if err := dec(in); err != nil { |
| 257 |
return nil, err |
| 258 |
} |
| 259 |
if interceptor == nil { |
| 260 |
return srv.(GSuiteAddOnsServer).CreateDeployment(ctx, in) |
| 261 |
} |
| 262 |
info := &grpc.UnaryServerInfo{ |
| 263 |
Server: srv, |
| 264 |
FullMethod: GSuiteAddOns_CreateDeployment_FullMethodName, |
| 265 |
} |
| 266 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 267 |
return srv.(GSuiteAddOnsServer).CreateDeployment(ctx, req.(*CreateDeploymentRequest)) |
| 268 |
} |
| 269 |
return interceptor(ctx, in, info, handler) |
| 270 |
} |
| 271 |
|
| 272 |
func _GSuiteAddOns_ReplaceDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 273 |
in := new(ReplaceDeploymentRequest) |
| 274 |
if err := dec(in); err != nil { |
| 275 |
return nil, err |
| 276 |
} |
| 277 |
if interceptor == nil { |
| 278 |
return srv.(GSuiteAddOnsServer).ReplaceDeployment(ctx, in) |
| 279 |
} |
| 280 |
info := &grpc.UnaryServerInfo{ |
| 281 |
Server: srv, |
| 282 |
FullMethod: GSuiteAddOns_ReplaceDeployment_FullMethodName, |
| 283 |
} |
| 284 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 285 |
return srv.(GSuiteAddOnsServer).ReplaceDeployment(ctx, req.(*ReplaceDeploymentRequest)) |
| 286 |
} |
| 287 |
return interceptor(ctx, in, info, handler) |
| 288 |
} |
| 289 |
|
| 290 |
func _GSuiteAddOns_GetDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 291 |
in := new(GetDeploymentRequest) |
| 292 |
if err := dec(in); err != nil { |
| 293 |
return nil, err |
| 294 |
} |
| 295 |
if interceptor == nil { |
| 296 |
return srv.(GSuiteAddOnsServer).GetDeployment(ctx, in) |
| 297 |
} |
| 298 |
info := &grpc.UnaryServerInfo{ |
| 299 |
Server: srv, |
| 300 |
FullMethod: GSuiteAddOns_GetDeployment_FullMethodName, |
| 301 |
} |
| 302 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 303 |
return srv.(GSuiteAddOnsServer).GetDeployment(ctx, req.(*GetDeploymentRequest)) |
| 304 |
} |
| 305 |
return interceptor(ctx, in, info, handler) |
| 306 |
} |
| 307 |
|
| 308 |
func _GSuiteAddOns_ListDeployments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 309 |
in := new(ListDeploymentsRequest) |
| 310 |
if err := dec(in); err != nil { |
| 311 |
return nil, err |
| 312 |
} |
| 313 |
if interceptor == nil { |
| 314 |
return srv.(GSuiteAddOnsServer).ListDeployments(ctx, in) |
| 315 |
} |
| 316 |
info := &grpc.UnaryServerInfo{ |
| 317 |
Server: srv, |
| 318 |
FullMethod: GSuiteAddOns_ListDeployments_FullMethodName, |
| 319 |
} |
| 320 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 321 |
return srv.(GSuiteAddOnsServer).ListDeployments(ctx, req.(*ListDeploymentsRequest)) |
| 322 |
} |
| 323 |
return interceptor(ctx, in, info, handler) |
| 324 |
} |
| 325 |
|
| 326 |
func _GSuiteAddOns_DeleteDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 327 |
in := new(DeleteDeploymentRequest) |
| 328 |
if err := dec(in); err != nil { |
| 329 |
return nil, err |
| 330 |
} |
| 331 |
if interceptor == nil { |
| 332 |
return srv.(GSuiteAddOnsServer).DeleteDeployment(ctx, in) |
| 333 |
} |
| 334 |
info := &grpc.UnaryServerInfo{ |
| 335 |
Server: srv, |
| 336 |
FullMethod: GSuiteAddOns_DeleteDeployment_FullMethodName, |
| 337 |
} |
| 338 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 339 |
return srv.(GSuiteAddOnsServer).DeleteDeployment(ctx, req.(*DeleteDeploymentRequest)) |
| 340 |
} |
| 341 |
return interceptor(ctx, in, info, handler) |
| 342 |
} |
| 343 |
|
| 344 |
func _GSuiteAddOns_InstallDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 345 |
in := new(InstallDeploymentRequest) |
| 346 |
if err := dec(in); err != nil { |
| 347 |
return nil, err |
| 348 |
} |
| 349 |
if interceptor == nil { |
| 350 |
return srv.(GSuiteAddOnsServer).InstallDeployment(ctx, in) |
| 351 |
} |
| 352 |
info := &grpc.UnaryServerInfo{ |
| 353 |
Server: srv, |
| 354 |
FullMethod: GSuiteAddOns_InstallDeployment_FullMethodName, |
| 355 |
} |
| 356 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 357 |
return srv.(GSuiteAddOnsServer).InstallDeployment(ctx, req.(*InstallDeploymentRequest)) |
| 358 |
} |
| 359 |
return interceptor(ctx, in, info, handler) |
| 360 |
} |
| 361 |
|
| 362 |
func _GSuiteAddOns_UninstallDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 363 |
in := new(UninstallDeploymentRequest) |
| 364 |
if err := dec(in); err != nil { |
| 365 |
return nil, err |
| 366 |
} |
| 367 |
if interceptor == nil { |
| 368 |
return srv.(GSuiteAddOnsServer).UninstallDeployment(ctx, in) |
| 369 |
} |
| 370 |
info := &grpc.UnaryServerInfo{ |
| 371 |
Server: srv, |
| 372 |
FullMethod: GSuiteAddOns_UninstallDeployment_FullMethodName, |
| 373 |
} |
| 374 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 375 |
return srv.(GSuiteAddOnsServer).UninstallDeployment(ctx, req.(*UninstallDeploymentRequest)) |
| 376 |
} |
| 377 |
return interceptor(ctx, in, info, handler) |
| 378 |
} |
| 379 |
|
| 380 |
func _GSuiteAddOns_GetInstallStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 381 |
in := new(GetInstallStatusRequest) |
| 382 |
if err := dec(in); err != nil { |
| 383 |
return nil, err |
| 384 |
} |
| 385 |
if interceptor == nil { |
| 386 |
return srv.(GSuiteAddOnsServer).GetInstallStatus(ctx, in) |
| 387 |
} |
| 388 |
info := &grpc.UnaryServerInfo{ |
| 389 |
Server: srv, |
| 390 |
FullMethod: GSuiteAddOns_GetInstallStatus_FullMethodName, |
| 391 |
} |
| 392 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 393 |
return srv.(GSuiteAddOnsServer).GetInstallStatus(ctx, req.(*GetInstallStatusRequest)) |
| 394 |
} |
| 395 |
return interceptor(ctx, in, info, handler) |
| 396 |
} |
| 397 |
|
| 398 |
// GSuiteAddOns_ServiceDesc is the grpc.ServiceDesc for GSuiteAddOns service. |
| 399 |
// It's only intended for direct use with grpc.RegisterService, |
| 400 |
// and not to be introspected or modified (even as a copy) |
| 401 |
var GSuiteAddOns_ServiceDesc = grpc.ServiceDesc{ |
| 402 |
ServiceName: "google.cloud.gsuiteaddons.v1.GSuiteAddOns", |
| 403 |
HandlerType: (*GSuiteAddOnsServer)(nil), |
| 404 |
Methods: []grpc.MethodDesc{ |
| 405 |
{ |
| 406 |
MethodName: "GetAuthorization", |
| 407 |
Handler: _GSuiteAddOns_GetAuthorization_Handler, |
| 408 |
}, |
| 409 |
{ |
| 410 |
MethodName: "CreateDeployment", |
| 411 |
Handler: _GSuiteAddOns_CreateDeployment_Handler, |
| 412 |
}, |
| 413 |
{ |
| 414 |
MethodName: "ReplaceDeployment", |
| 415 |
Handler: _GSuiteAddOns_ReplaceDeployment_Handler, |
| 416 |
}, |
| 417 |
{ |
| 418 |
MethodName: "GetDeployment", |
| 419 |
Handler: _GSuiteAddOns_GetDeployment_Handler, |
| 420 |
}, |
| 421 |
{ |
| 422 |
MethodName: "ListDeployments", |
| 423 |
Handler: _GSuiteAddOns_ListDeployments_Handler, |
| 424 |
}, |
| 425 |
{ |
| 426 |
MethodName: "DeleteDeployment", |
| 427 |
Handler: _GSuiteAddOns_DeleteDeployment_Handler, |
| 428 |
}, |
| 429 |
{ |
| 430 |
MethodName: "InstallDeployment", |
| 431 |
Handler: _GSuiteAddOns_InstallDeployment_Handler, |
| 432 |
}, |
| 433 |
{ |
| 434 |
MethodName: "UninstallDeployment", |
| 435 |
Handler: _GSuiteAddOns_UninstallDeployment_Handler, |
| 436 |
}, |
| 437 |
{ |
| 438 |
MethodName: "GetInstallStatus", |
| 439 |
Handler: _GSuiteAddOns_GetInstallStatus_Handler, |
| 440 |
}, |
| 441 |
}, |
| 442 |
Streams: []grpc.StreamDesc{}, |
| 443 |
Metadata: "google/cloud/gsuiteaddons/v1/gsuiteaddons.proto", |
| 444 |
} |