| 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/licensemanager/v1/licensemanager.proto |
| 20 |
|
| 21 |
package licensemanagerpb |
| 22 |
|
| 23 |
import ( |
| 24 |
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" |
| 25 |
context "context" |
| 26 |
grpc "google.golang.org/grpc" |
| 27 |
codes "google.golang.org/grpc/codes" |
| 28 |
status "google.golang.org/grpc/status" |
| 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 |
LicenseManager_ListConfigurations_FullMethodName = "/google.cloud.licensemanager.v1.LicenseManager/ListConfigurations" |
| 38 |
LicenseManager_GetConfiguration_FullMethodName = "/google.cloud.licensemanager.v1.LicenseManager/GetConfiguration" |
| 39 |
LicenseManager_CreateConfiguration_FullMethodName = "/google.cloud.licensemanager.v1.LicenseManager/CreateConfiguration" |
| 40 |
LicenseManager_UpdateConfiguration_FullMethodName = "/google.cloud.licensemanager.v1.LicenseManager/UpdateConfiguration" |
| 41 |
LicenseManager_DeleteConfiguration_FullMethodName = "/google.cloud.licensemanager.v1.LicenseManager/DeleteConfiguration" |
| 42 |
LicenseManager_ListInstances_FullMethodName = "/google.cloud.licensemanager.v1.LicenseManager/ListInstances" |
| 43 |
LicenseManager_GetInstance_FullMethodName = "/google.cloud.licensemanager.v1.LicenseManager/GetInstance" |
| 44 |
LicenseManager_DeactivateConfiguration_FullMethodName = "/google.cloud.licensemanager.v1.LicenseManager/DeactivateConfiguration" |
| 45 |
LicenseManager_ReactivateConfiguration_FullMethodName = "/google.cloud.licensemanager.v1.LicenseManager/ReactivateConfiguration" |
| 46 |
LicenseManager_QueryConfigurationLicenseUsage_FullMethodName = "/google.cloud.licensemanager.v1.LicenseManager/QueryConfigurationLicenseUsage" |
| 47 |
LicenseManager_AggregateUsage_FullMethodName = "/google.cloud.licensemanager.v1.LicenseManager/AggregateUsage" |
| 48 |
LicenseManager_ListProducts_FullMethodName = "/google.cloud.licensemanager.v1.LicenseManager/ListProducts" |
| 49 |
LicenseManager_GetProduct_FullMethodName = "/google.cloud.licensemanager.v1.LicenseManager/GetProduct" |
| 50 |
) |
| 51 |
|
| 52 |
// LicenseManagerClient is the client API for LicenseManager service. |
| 53 |
// |
| 54 |
// 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. |
| 55 |
type LicenseManagerClient interface { |
| 56 |
// Lists Configurations in a given project and location. |
| 57 |
ListConfigurations(ctx context.Context, in *ListConfigurationsRequest, opts ...grpc.CallOption) (*ListConfigurationsResponse, error) |
| 58 |
// Gets details of a single Configuration. |
| 59 |
GetConfiguration(ctx context.Context, in *GetConfigurationRequest, opts ...grpc.CallOption) (*Configuration, error) |
| 60 |
// Creates a new Configuration in a given project and location. |
| 61 |
CreateConfiguration(ctx context.Context, in *CreateConfigurationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 62 |
// Updates the parameters of a single Configuration. |
| 63 |
UpdateConfiguration(ctx context.Context, in *UpdateConfigurationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 64 |
// Deletes a single Configuration. |
| 65 |
DeleteConfiguration(ctx context.Context, in *DeleteConfigurationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 66 |
// Lists Instances in a given project and location. |
| 67 |
ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error) |
| 68 |
// Gets details of a single Instance. |
| 69 |
GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error) |
| 70 |
// Deactivates the given configuration. |
| 71 |
DeactivateConfiguration(ctx context.Context, in *DeactivateConfigurationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 72 |
// Reactivates the given configuration. |
| 73 |
ReactivateConfiguration(ctx context.Context, in *ReactivateConfigurationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 74 |
// License Usage information for a Configuration. |
| 75 |
QueryConfigurationLicenseUsage(ctx context.Context, in *QueryConfigurationLicenseUsageRequest, opts ...grpc.CallOption) (*QueryConfigurationLicenseUsageResponse, error) |
| 76 |
// Aggregates Usage per Instance for a Configuration. |
| 77 |
AggregateUsage(ctx context.Context, in *AggregateUsageRequest, opts ...grpc.CallOption) (*AggregateUsageResponse, error) |
| 78 |
// Lists Products in a given project and location. |
| 79 |
ListProducts(ctx context.Context, in *ListProductsRequest, opts ...grpc.CallOption) (*ListProductsResponse, error) |
| 80 |
// Gets details of a single Product. |
| 81 |
GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*Product, error) |
| 82 |
} |
| 83 |
|
| 84 |
type licenseManagerClient struct { |
| 85 |
cc grpc.ClientConnInterface |
| 86 |
} |
| 87 |
|
| 88 |
func NewLicenseManagerClient(cc grpc.ClientConnInterface) LicenseManagerClient { |
| 89 |
return &licenseManagerClient{cc} |
| 90 |
} |
| 91 |
|
| 92 |
func (c *licenseManagerClient) ListConfigurations(ctx context.Context, in *ListConfigurationsRequest, opts ...grpc.CallOption) (*ListConfigurationsResponse, error) { |
| 93 |
out := new(ListConfigurationsResponse) |
| 94 |
err := c.cc.Invoke(ctx, LicenseManager_ListConfigurations_FullMethodName, in, out, opts...) |
| 95 |
if err != nil { |
| 96 |
return nil, err |
| 97 |
} |
| 98 |
return out, nil |
| 99 |
} |
| 100 |
|
| 101 |
func (c *licenseManagerClient) GetConfiguration(ctx context.Context, in *GetConfigurationRequest, opts ...grpc.CallOption) (*Configuration, error) { |
| 102 |
out := new(Configuration) |
| 103 |
err := c.cc.Invoke(ctx, LicenseManager_GetConfiguration_FullMethodName, in, out, opts...) |
| 104 |
if err != nil { |
| 105 |
return nil, err |
| 106 |
} |
| 107 |
return out, nil |
| 108 |
} |
| 109 |
|
| 110 |
func (c *licenseManagerClient) CreateConfiguration(ctx context.Context, in *CreateConfigurationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 111 |
out := new(longrunningpb.Operation) |
| 112 |
err := c.cc.Invoke(ctx, LicenseManager_CreateConfiguration_FullMethodName, in, out, opts...) |
| 113 |
if err != nil { |
| 114 |
return nil, err |
| 115 |
} |
| 116 |
return out, nil |
| 117 |
} |
| 118 |
|
| 119 |
func (c *licenseManagerClient) UpdateConfiguration(ctx context.Context, in *UpdateConfigurationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 120 |
out := new(longrunningpb.Operation) |
| 121 |
err := c.cc.Invoke(ctx, LicenseManager_UpdateConfiguration_FullMethodName, in, out, opts...) |
| 122 |
if err != nil { |
| 123 |
return nil, err |
| 124 |
} |
| 125 |
return out, nil |
| 126 |
} |
| 127 |
|
| 128 |
func (c *licenseManagerClient) DeleteConfiguration(ctx context.Context, in *DeleteConfigurationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 129 |
out := new(longrunningpb.Operation) |
| 130 |
err := c.cc.Invoke(ctx, LicenseManager_DeleteConfiguration_FullMethodName, in, out, opts...) |
| 131 |
if err != nil { |
| 132 |
return nil, err |
| 133 |
} |
| 134 |
return out, nil |
| 135 |
} |
| 136 |
|
| 137 |
func (c *licenseManagerClient) ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error) { |
| 138 |
out := new(ListInstancesResponse) |
| 139 |
err := c.cc.Invoke(ctx, LicenseManager_ListInstances_FullMethodName, in, out, opts...) |
| 140 |
if err != nil { |
| 141 |
return nil, err |
| 142 |
} |
| 143 |
return out, nil |
| 144 |
} |
| 145 |
|
| 146 |
func (c *licenseManagerClient) GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error) { |
| 147 |
out := new(Instance) |
| 148 |
err := c.cc.Invoke(ctx, LicenseManager_GetInstance_FullMethodName, in, out, opts...) |
| 149 |
if err != nil { |
| 150 |
return nil, err |
| 151 |
} |
| 152 |
return out, nil |
| 153 |
} |
| 154 |
|
| 155 |
func (c *licenseManagerClient) DeactivateConfiguration(ctx context.Context, in *DeactivateConfigurationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 156 |
out := new(longrunningpb.Operation) |
| 157 |
err := c.cc.Invoke(ctx, LicenseManager_DeactivateConfiguration_FullMethodName, in, out, opts...) |
| 158 |
if err != nil { |
| 159 |
return nil, err |
| 160 |
} |
| 161 |
return out, nil |
| 162 |
} |
| 163 |
|
| 164 |
func (c *licenseManagerClient) ReactivateConfiguration(ctx context.Context, in *ReactivateConfigurationRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 165 |
out := new(longrunningpb.Operation) |
| 166 |
err := c.cc.Invoke(ctx, LicenseManager_ReactivateConfiguration_FullMethodName, in, out, opts...) |
| 167 |
if err != nil { |
| 168 |
return nil, err |
| 169 |
} |
| 170 |
return out, nil |
| 171 |
} |
| 172 |
|
| 173 |
func (c *licenseManagerClient) QueryConfigurationLicenseUsage(ctx context.Context, in *QueryConfigurationLicenseUsageRequest, opts ...grpc.CallOption) (*QueryConfigurationLicenseUsageResponse, error) { |
| 174 |
out := new(QueryConfigurationLicenseUsageResponse) |
| 175 |
err := c.cc.Invoke(ctx, LicenseManager_QueryConfigurationLicenseUsage_FullMethodName, in, out, opts...) |
| 176 |
if err != nil { |
| 177 |
return nil, err |
| 178 |
} |
| 179 |
return out, nil |
| 180 |
} |
| 181 |
|
| 182 |
func (c *licenseManagerClient) AggregateUsage(ctx context.Context, in *AggregateUsageRequest, opts ...grpc.CallOption) (*AggregateUsageResponse, error) { |
| 183 |
out := new(AggregateUsageResponse) |
| 184 |
err := c.cc.Invoke(ctx, LicenseManager_AggregateUsage_FullMethodName, in, out, opts...) |
| 185 |
if err != nil { |
| 186 |
return nil, err |
| 187 |
} |
| 188 |
return out, nil |
| 189 |
} |
| 190 |
|
| 191 |
func (c *licenseManagerClient) ListProducts(ctx context.Context, in *ListProductsRequest, opts ...grpc.CallOption) (*ListProductsResponse, error) { |
| 192 |
out := new(ListProductsResponse) |
| 193 |
err := c.cc.Invoke(ctx, LicenseManager_ListProducts_FullMethodName, in, out, opts...) |
| 194 |
if err != nil { |
| 195 |
return nil, err |
| 196 |
} |
| 197 |
return out, nil |
| 198 |
} |
| 199 |
|
| 200 |
func (c *licenseManagerClient) GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*Product, error) { |
| 201 |
out := new(Product) |
| 202 |
err := c.cc.Invoke(ctx, LicenseManager_GetProduct_FullMethodName, in, out, opts...) |
| 203 |
if err != nil { |
| 204 |
return nil, err |
| 205 |
} |
| 206 |
return out, nil |
| 207 |
} |
| 208 |
|
| 209 |
// LicenseManagerServer is the server API for LicenseManager service. |
| 210 |
// All implementations should embed UnimplementedLicenseManagerServer |
| 211 |
// for forward compatibility |
| 212 |
type LicenseManagerServer interface { |
| 213 |
// Lists Configurations in a given project and location. |
| 214 |
ListConfigurations(context.Context, *ListConfigurationsRequest) (*ListConfigurationsResponse, error) |
| 215 |
// Gets details of a single Configuration. |
| 216 |
GetConfiguration(context.Context, *GetConfigurationRequest) (*Configuration, error) |
| 217 |
// Creates a new Configuration in a given project and location. |
| 218 |
CreateConfiguration(context.Context, *CreateConfigurationRequest) (*longrunningpb.Operation, error) |
| 219 |
// Updates the parameters of a single Configuration. |
| 220 |
UpdateConfiguration(context.Context, *UpdateConfigurationRequest) (*longrunningpb.Operation, error) |
| 221 |
// Deletes a single Configuration. |
| 222 |
DeleteConfiguration(context.Context, *DeleteConfigurationRequest) (*longrunningpb.Operation, error) |
| 223 |
// Lists Instances in a given project and location. |
| 224 |
ListInstances(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error) |
| 225 |
// Gets details of a single Instance. |
| 226 |
GetInstance(context.Context, *GetInstanceRequest) (*Instance, error) |
| 227 |
// Deactivates the given configuration. |
| 228 |
DeactivateConfiguration(context.Context, *DeactivateConfigurationRequest) (*longrunningpb.Operation, error) |
| 229 |
// Reactivates the given configuration. |
| 230 |
ReactivateConfiguration(context.Context, *ReactivateConfigurationRequest) (*longrunningpb.Operation, error) |
| 231 |
// License Usage information for a Configuration. |
| 232 |
QueryConfigurationLicenseUsage(context.Context, *QueryConfigurationLicenseUsageRequest) (*QueryConfigurationLicenseUsageResponse, error) |
| 233 |
// Aggregates Usage per Instance for a Configuration. |
| 234 |
AggregateUsage(context.Context, *AggregateUsageRequest) (*AggregateUsageResponse, error) |
| 235 |
// Lists Products in a given project and location. |
| 236 |
ListProducts(context.Context, *ListProductsRequest) (*ListProductsResponse, error) |
| 237 |
// Gets details of a single Product. |
| 238 |
GetProduct(context.Context, *GetProductRequest) (*Product, error) |
| 239 |
} |
| 240 |
|
| 241 |
// UnimplementedLicenseManagerServer should be embedded to have forward compatible implementations. |
| 242 |
type UnimplementedLicenseManagerServer struct { |
| 243 |
} |
| 244 |
|
| 245 |
func (UnimplementedLicenseManagerServer) ListConfigurations(context.Context, *ListConfigurationsRequest) (*ListConfigurationsResponse, error) { |
| 246 |
return nil, status.Errorf(codes.Unimplemented, "method ListConfigurations not implemented") |
| 247 |
} |
| 248 |
func (UnimplementedLicenseManagerServer) GetConfiguration(context.Context, *GetConfigurationRequest) (*Configuration, error) { |
| 249 |
return nil, status.Errorf(codes.Unimplemented, "method GetConfiguration not implemented") |
| 250 |
} |
| 251 |
func (UnimplementedLicenseManagerServer) CreateConfiguration(context.Context, *CreateConfigurationRequest) (*longrunningpb.Operation, error) { |
| 252 |
return nil, status.Errorf(codes.Unimplemented, "method CreateConfiguration not implemented") |
| 253 |
} |
| 254 |
func (UnimplementedLicenseManagerServer) UpdateConfiguration(context.Context, *UpdateConfigurationRequest) (*longrunningpb.Operation, error) { |
| 255 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateConfiguration not implemented") |
| 256 |
} |
| 257 |
func (UnimplementedLicenseManagerServer) DeleteConfiguration(context.Context, *DeleteConfigurationRequest) (*longrunningpb.Operation, error) { |
| 258 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteConfiguration not implemented") |
| 259 |
} |
| 260 |
func (UnimplementedLicenseManagerServer) ListInstances(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error) { |
| 261 |
return nil, status.Errorf(codes.Unimplemented, "method ListInstances not implemented") |
| 262 |
} |
| 263 |
func (UnimplementedLicenseManagerServer) GetInstance(context.Context, *GetInstanceRequest) (*Instance, error) { |
| 264 |
return nil, status.Errorf(codes.Unimplemented, "method GetInstance not implemented") |
| 265 |
} |
| 266 |
func (UnimplementedLicenseManagerServer) DeactivateConfiguration(context.Context, *DeactivateConfigurationRequest) (*longrunningpb.Operation, error) { |
| 267 |
return nil, status.Errorf(codes.Unimplemented, "method DeactivateConfiguration not implemented") |
| 268 |
} |
| 269 |
func (UnimplementedLicenseManagerServer) ReactivateConfiguration(context.Context, *ReactivateConfigurationRequest) (*longrunningpb.Operation, error) { |
| 270 |
return nil, status.Errorf(codes.Unimplemented, "method ReactivateConfiguration not implemented") |
| 271 |
} |
| 272 |
func (UnimplementedLicenseManagerServer) QueryConfigurationLicenseUsage(context.Context, *QueryConfigurationLicenseUsageRequest) (*QueryConfigurationLicenseUsageResponse, error) { |
| 273 |
return nil, status.Errorf(codes.Unimplemented, "method QueryConfigurationLicenseUsage not implemented") |
| 274 |
} |
| 275 |
func (UnimplementedLicenseManagerServer) AggregateUsage(context.Context, *AggregateUsageRequest) (*AggregateUsageResponse, error) { |
| 276 |
return nil, status.Errorf(codes.Unimplemented, "method AggregateUsage not implemented") |
| 277 |
} |
| 278 |
func (UnimplementedLicenseManagerServer) ListProducts(context.Context, *ListProductsRequest) (*ListProductsResponse, error) { |
| 279 |
return nil, status.Errorf(codes.Unimplemented, "method ListProducts not implemented") |
| 280 |
} |
| 281 |
func (UnimplementedLicenseManagerServer) GetProduct(context.Context, *GetProductRequest) (*Product, error) { |
| 282 |
return nil, status.Errorf(codes.Unimplemented, "method GetProduct not implemented") |
| 283 |
} |
| 284 |
|
| 285 |
// UnsafeLicenseManagerServer may be embedded to opt out of forward compatibility for this service. |
| 286 |
// Use of this interface is not recommended, as added methods to LicenseManagerServer will |
| 287 |
// result in compilation errors. |
| 288 |
type UnsafeLicenseManagerServer interface { |
| 289 |
mustEmbedUnimplementedLicenseManagerServer() |
| 290 |
} |
| 291 |
|
| 292 |
func RegisterLicenseManagerServer(s grpc.ServiceRegistrar, srv LicenseManagerServer) { |
| 293 |
s.RegisterService(&LicenseManager_ServiceDesc, srv) |
| 294 |
} |
| 295 |
|
| 296 |
func _LicenseManager_ListConfigurations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 297 |
in := new(ListConfigurationsRequest) |
| 298 |
if err := dec(in); err != nil { |
| 299 |
return nil, err |
| 300 |
} |
| 301 |
if interceptor == nil { |
| 302 |
return srv.(LicenseManagerServer).ListConfigurations(ctx, in) |
| 303 |
} |
| 304 |
info := &grpc.UnaryServerInfo{ |
| 305 |
Server: srv, |
| 306 |
FullMethod: LicenseManager_ListConfigurations_FullMethodName, |
| 307 |
} |
| 308 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 309 |
return srv.(LicenseManagerServer).ListConfigurations(ctx, req.(*ListConfigurationsRequest)) |
| 310 |
} |
| 311 |
return interceptor(ctx, in, info, handler) |
| 312 |
} |
| 313 |
|
| 314 |
func _LicenseManager_GetConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 315 |
in := new(GetConfigurationRequest) |
| 316 |
if err := dec(in); err != nil { |
| 317 |
return nil, err |
| 318 |
} |
| 319 |
if interceptor == nil { |
| 320 |
return srv.(LicenseManagerServer).GetConfiguration(ctx, in) |
| 321 |
} |
| 322 |
info := &grpc.UnaryServerInfo{ |
| 323 |
Server: srv, |
| 324 |
FullMethod: LicenseManager_GetConfiguration_FullMethodName, |
| 325 |
} |
| 326 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 327 |
return srv.(LicenseManagerServer).GetConfiguration(ctx, req.(*GetConfigurationRequest)) |
| 328 |
} |
| 329 |
return interceptor(ctx, in, info, handler) |
| 330 |
} |
| 331 |
|
| 332 |
func _LicenseManager_CreateConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 333 |
in := new(CreateConfigurationRequest) |
| 334 |
if err := dec(in); err != nil { |
| 335 |
return nil, err |
| 336 |
} |
| 337 |
if interceptor == nil { |
| 338 |
return srv.(LicenseManagerServer).CreateConfiguration(ctx, in) |
| 339 |
} |
| 340 |
info := &grpc.UnaryServerInfo{ |
| 341 |
Server: srv, |
| 342 |
FullMethod: LicenseManager_CreateConfiguration_FullMethodName, |
| 343 |
} |
| 344 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 345 |
return srv.(LicenseManagerServer).CreateConfiguration(ctx, req.(*CreateConfigurationRequest)) |
| 346 |
} |
| 347 |
return interceptor(ctx, in, info, handler) |
| 348 |
} |
| 349 |
|
| 350 |
func _LicenseManager_UpdateConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 351 |
in := new(UpdateConfigurationRequest) |
| 352 |
if err := dec(in); err != nil { |
| 353 |
return nil, err |
| 354 |
} |
| 355 |
if interceptor == nil { |
| 356 |
return srv.(LicenseManagerServer).UpdateConfiguration(ctx, in) |
| 357 |
} |
| 358 |
info := &grpc.UnaryServerInfo{ |
| 359 |
Server: srv, |
| 360 |
FullMethod: LicenseManager_UpdateConfiguration_FullMethodName, |
| 361 |
} |
| 362 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 363 |
return srv.(LicenseManagerServer).UpdateConfiguration(ctx, req.(*UpdateConfigurationRequest)) |
| 364 |
} |
| 365 |
return interceptor(ctx, in, info, handler) |
| 366 |
} |
| 367 |
|
| 368 |
func _LicenseManager_DeleteConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 369 |
in := new(DeleteConfigurationRequest) |
| 370 |
if err := dec(in); err != nil { |
| 371 |
return nil, err |
| 372 |
} |
| 373 |
if interceptor == nil { |
| 374 |
return srv.(LicenseManagerServer).DeleteConfiguration(ctx, in) |
| 375 |
} |
| 376 |
info := &grpc.UnaryServerInfo{ |
| 377 |
Server: srv, |
| 378 |
FullMethod: LicenseManager_DeleteConfiguration_FullMethodName, |
| 379 |
} |
| 380 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 381 |
return srv.(LicenseManagerServer).DeleteConfiguration(ctx, req.(*DeleteConfigurationRequest)) |
| 382 |
} |
| 383 |
return interceptor(ctx, in, info, handler) |
| 384 |
} |
| 385 |
|
| 386 |
func _LicenseManager_ListInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 387 |
in := new(ListInstancesRequest) |
| 388 |
if err := dec(in); err != nil { |
| 389 |
return nil, err |
| 390 |
} |
| 391 |
if interceptor == nil { |
| 392 |
return srv.(LicenseManagerServer).ListInstances(ctx, in) |
| 393 |
} |
| 394 |
info := &grpc.UnaryServerInfo{ |
| 395 |
Server: srv, |
| 396 |
FullMethod: LicenseManager_ListInstances_FullMethodName, |
| 397 |
} |
| 398 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 399 |
return srv.(LicenseManagerServer).ListInstances(ctx, req.(*ListInstancesRequest)) |
| 400 |
} |
| 401 |
return interceptor(ctx, in, info, handler) |
| 402 |
} |
| 403 |
|
| 404 |
func _LicenseManager_GetInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 405 |
in := new(GetInstanceRequest) |
| 406 |
if err := dec(in); err != nil { |
| 407 |
return nil, err |
| 408 |
} |
| 409 |
if interceptor == nil { |
| 410 |
return srv.(LicenseManagerServer).GetInstance(ctx, in) |
| 411 |
} |
| 412 |
info := &grpc.UnaryServerInfo{ |
| 413 |
Server: srv, |
| 414 |
FullMethod: LicenseManager_GetInstance_FullMethodName, |
| 415 |
} |
| 416 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 417 |
return srv.(LicenseManagerServer).GetInstance(ctx, req.(*GetInstanceRequest)) |
| 418 |
} |
| 419 |
return interceptor(ctx, in, info, handler) |
| 420 |
} |
| 421 |
|
| 422 |
func _LicenseManager_DeactivateConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 423 |
in := new(DeactivateConfigurationRequest) |
| 424 |
if err := dec(in); err != nil { |
| 425 |
return nil, err |
| 426 |
} |
| 427 |
if interceptor == nil { |
| 428 |
return srv.(LicenseManagerServer).DeactivateConfiguration(ctx, in) |
| 429 |
} |
| 430 |
info := &grpc.UnaryServerInfo{ |
| 431 |
Server: srv, |
| 432 |
FullMethod: LicenseManager_DeactivateConfiguration_FullMethodName, |
| 433 |
} |
| 434 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 435 |
return srv.(LicenseManagerServer).DeactivateConfiguration(ctx, req.(*DeactivateConfigurationRequest)) |
| 436 |
} |
| 437 |
return interceptor(ctx, in, info, handler) |
| 438 |
} |
| 439 |
|
| 440 |
func _LicenseManager_ReactivateConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 441 |
in := new(ReactivateConfigurationRequest) |
| 442 |
if err := dec(in); err != nil { |
| 443 |
return nil, err |
| 444 |
} |
| 445 |
if interceptor == nil { |
| 446 |
return srv.(LicenseManagerServer).ReactivateConfiguration(ctx, in) |
| 447 |
} |
| 448 |
info := &grpc.UnaryServerInfo{ |
| 449 |
Server: srv, |
| 450 |
FullMethod: LicenseManager_ReactivateConfiguration_FullMethodName, |
| 451 |
} |
| 452 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 453 |
return srv.(LicenseManagerServer).ReactivateConfiguration(ctx, req.(*ReactivateConfigurationRequest)) |
| 454 |
} |
| 455 |
return interceptor(ctx, in, info, handler) |
| 456 |
} |
| 457 |
|
| 458 |
func _LicenseManager_QueryConfigurationLicenseUsage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 459 |
in := new(QueryConfigurationLicenseUsageRequest) |
| 460 |
if err := dec(in); err != nil { |
| 461 |
return nil, err |
| 462 |
} |
| 463 |
if interceptor == nil { |
| 464 |
return srv.(LicenseManagerServer).QueryConfigurationLicenseUsage(ctx, in) |
| 465 |
} |
| 466 |
info := &grpc.UnaryServerInfo{ |
| 467 |
Server: srv, |
| 468 |
FullMethod: LicenseManager_QueryConfigurationLicenseUsage_FullMethodName, |
| 469 |
} |
| 470 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 471 |
return srv.(LicenseManagerServer).QueryConfigurationLicenseUsage(ctx, req.(*QueryConfigurationLicenseUsageRequest)) |
| 472 |
} |
| 473 |
return interceptor(ctx, in, info, handler) |
| 474 |
} |
| 475 |
|
| 476 |
func _LicenseManager_AggregateUsage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 477 |
in := new(AggregateUsageRequest) |
| 478 |
if err := dec(in); err != nil { |
| 479 |
return nil, err |
| 480 |
} |
| 481 |
if interceptor == nil { |
| 482 |
return srv.(LicenseManagerServer).AggregateUsage(ctx, in) |
| 483 |
} |
| 484 |
info := &grpc.UnaryServerInfo{ |
| 485 |
Server: srv, |
| 486 |
FullMethod: LicenseManager_AggregateUsage_FullMethodName, |
| 487 |
} |
| 488 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 489 |
return srv.(LicenseManagerServer).AggregateUsage(ctx, req.(*AggregateUsageRequest)) |
| 490 |
} |
| 491 |
return interceptor(ctx, in, info, handler) |
| 492 |
} |
| 493 |
|
| 494 |
func _LicenseManager_ListProducts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 495 |
in := new(ListProductsRequest) |
| 496 |
if err := dec(in); err != nil { |
| 497 |
return nil, err |
| 498 |
} |
| 499 |
if interceptor == nil { |
| 500 |
return srv.(LicenseManagerServer).ListProducts(ctx, in) |
| 501 |
} |
| 502 |
info := &grpc.UnaryServerInfo{ |
| 503 |
Server: srv, |
| 504 |
FullMethod: LicenseManager_ListProducts_FullMethodName, |
| 505 |
} |
| 506 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 507 |
return srv.(LicenseManagerServer).ListProducts(ctx, req.(*ListProductsRequest)) |
| 508 |
} |
| 509 |
return interceptor(ctx, in, info, handler) |
| 510 |
} |
| 511 |
|
| 512 |
func _LicenseManager_GetProduct_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 513 |
in := new(GetProductRequest) |
| 514 |
if err := dec(in); err != nil { |
| 515 |
return nil, err |
| 516 |
} |
| 517 |
if interceptor == nil { |
| 518 |
return srv.(LicenseManagerServer).GetProduct(ctx, in) |
| 519 |
} |
| 520 |
info := &grpc.UnaryServerInfo{ |
| 521 |
Server: srv, |
| 522 |
FullMethod: LicenseManager_GetProduct_FullMethodName, |
| 523 |
} |
| 524 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 525 |
return srv.(LicenseManagerServer).GetProduct(ctx, req.(*GetProductRequest)) |
| 526 |
} |
| 527 |
return interceptor(ctx, in, info, handler) |
| 528 |
} |
| 529 |
|
| 530 |
// LicenseManager_ServiceDesc is the grpc.ServiceDesc for LicenseManager service. |
| 531 |
// It's only intended for direct use with grpc.RegisterService, |
| 532 |
// and not to be introspected or modified (even as a copy) |
| 533 |
var LicenseManager_ServiceDesc = grpc.ServiceDesc{ |
| 534 |
ServiceName: "google.cloud.licensemanager.v1.LicenseManager", |
| 535 |
HandlerType: (*LicenseManagerServer)(nil), |
| 536 |
Methods: []grpc.MethodDesc{ |
| 537 |
{ |
| 538 |
MethodName: "ListConfigurations", |
| 539 |
Handler: _LicenseManager_ListConfigurations_Handler, |
| 540 |
}, |
| 541 |
{ |
| 542 |
MethodName: "GetConfiguration", |
| 543 |
Handler: _LicenseManager_GetConfiguration_Handler, |
| 544 |
}, |
| 545 |
{ |
| 546 |
MethodName: "CreateConfiguration", |
| 547 |
Handler: _LicenseManager_CreateConfiguration_Handler, |
| 548 |
}, |
| 549 |
{ |
| 550 |
MethodName: "UpdateConfiguration", |
| 551 |
Handler: _LicenseManager_UpdateConfiguration_Handler, |
| 552 |
}, |
| 553 |
{ |
| 554 |
MethodName: "DeleteConfiguration", |
| 555 |
Handler: _LicenseManager_DeleteConfiguration_Handler, |
| 556 |
}, |
| 557 |
{ |
| 558 |
MethodName: "ListInstances", |
| 559 |
Handler: _LicenseManager_ListInstances_Handler, |
| 560 |
}, |
| 561 |
{ |
| 562 |
MethodName: "GetInstance", |
| 563 |
Handler: _LicenseManager_GetInstance_Handler, |
| 564 |
}, |
| 565 |
{ |
| 566 |
MethodName: "DeactivateConfiguration", |
| 567 |
Handler: _LicenseManager_DeactivateConfiguration_Handler, |
| 568 |
}, |
| 569 |
{ |
| 570 |
MethodName: "ReactivateConfiguration", |
| 571 |
Handler: _LicenseManager_ReactivateConfiguration_Handler, |
| 572 |
}, |
| 573 |
{ |
| 574 |
MethodName: "QueryConfigurationLicenseUsage", |
| 575 |
Handler: _LicenseManager_QueryConfigurationLicenseUsage_Handler, |
| 576 |
}, |
| 577 |
{ |
| 578 |
MethodName: "AggregateUsage", |
| 579 |
Handler: _LicenseManager_AggregateUsage_Handler, |
| 580 |
}, |
| 581 |
{ |
| 582 |
MethodName: "ListProducts", |
| 583 |
Handler: _LicenseManager_ListProducts_Handler, |
| 584 |
}, |
| 585 |
{ |
| 586 |
MethodName: "GetProduct", |
| 587 |
Handler: _LicenseManager_GetProduct_Handler, |
| 588 |
}, |
| 589 |
}, |
| 590 |
Streams: []grpc.StreamDesc{}, |
| 591 |
Metadata: "google/cloud/licensemanager/v1/licensemanager.proto", |
| 592 |
} |