| 1 |
// Copyright 2022 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 aliasgen. DO NOT EDIT. |
| 16 |
|
| 17 |
// Package serviceusage aliases all exported identifiers in package |
| 18 |
// "cloud.google.com/go/serviceusage/apiv1/serviceusagepb". |
| 19 |
// |
| 20 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb. |
| 21 |
// Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md |
| 22 |
// for more details. |
| 23 |
package serviceusage |
| 24 |
|
| 25 |
import ( |
| 26 |
src "cloud.google.com/go/serviceusage/apiv1/serviceusagepb" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
) |
| 29 |
|
| 30 |
// Deprecated: Please use consts in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 31 |
const ( |
| 32 |
DisableServiceRequest_CHECK = src.DisableServiceRequest_CHECK |
| 33 |
DisableServiceRequest_CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED = src.DisableServiceRequest_CHECK_IF_SERVICE_HAS_USAGE_UNSPECIFIED |
| 34 |
DisableServiceRequest_SKIP = src.DisableServiceRequest_SKIP |
| 35 |
State_DISABLED = src.State_DISABLED |
| 36 |
State_ENABLED = src.State_ENABLED |
| 37 |
State_STATE_UNSPECIFIED = src.State_STATE_UNSPECIFIED |
| 38 |
) |
| 39 |
|
| 40 |
// Deprecated: Please use vars in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 41 |
var ( |
| 42 |
DisableServiceRequest_CheckIfServiceHasUsage_name = src.DisableServiceRequest_CheckIfServiceHasUsage_name |
| 43 |
DisableServiceRequest_CheckIfServiceHasUsage_value = src.DisableServiceRequest_CheckIfServiceHasUsage_value |
| 44 |
File_google_api_serviceusage_v1_resources_proto = src.File_google_api_serviceusage_v1_resources_proto |
| 45 |
File_google_api_serviceusage_v1_serviceusage_proto = src.File_google_api_serviceusage_v1_serviceusage_proto |
| 46 |
State_name = src.State_name |
| 47 |
State_value = src.State_value |
| 48 |
) |
| 49 |
|
| 50 |
// Request message for the `BatchEnableServices` method. |
| 51 |
// |
| 52 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 53 |
type BatchEnableServicesRequest = src.BatchEnableServicesRequest |
| 54 |
|
| 55 |
// Response message for the `BatchEnableServices` method. This response |
| 56 |
// message is assigned to the `response` field of the returned Operation when |
| 57 |
// that operation is done. |
| 58 |
// |
| 59 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 60 |
type BatchEnableServicesResponse = src.BatchEnableServicesResponse |
| 61 |
|
| 62 |
// Provides error messages for the failing services. |
| 63 |
// |
| 64 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 65 |
type BatchEnableServicesResponse_EnableFailure = src.BatchEnableServicesResponse_EnableFailure |
| 66 |
|
| 67 |
// Request message for the `BatchGetServices` method. |
| 68 |
// |
| 69 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 70 |
type BatchGetServicesRequest = src.BatchGetServicesRequest |
| 71 |
|
| 72 |
// Response message for the `BatchGetServices` method. |
| 73 |
// |
| 74 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 75 |
type BatchGetServicesResponse = src.BatchGetServicesResponse |
| 76 |
|
| 77 |
// Request message for the `DisableService` method. |
| 78 |
// |
| 79 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 80 |
type DisableServiceRequest = src.DisableServiceRequest |
| 81 |
|
| 82 |
// Enum to determine if service usage should be checked when disabling a |
| 83 |
// service. |
| 84 |
// |
| 85 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 86 |
type DisableServiceRequest_CheckIfServiceHasUsage = src.DisableServiceRequest_CheckIfServiceHasUsage |
| 87 |
|
| 88 |
// Response message for the `DisableService` method. This response message is |
| 89 |
// assigned to the `response` field of the returned Operation when that |
| 90 |
// operation is done. |
| 91 |
// |
| 92 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 93 |
type DisableServiceResponse = src.DisableServiceResponse |
| 94 |
|
| 95 |
// Request message for the `EnableService` method. |
| 96 |
// |
| 97 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 98 |
type EnableServiceRequest = src.EnableServiceRequest |
| 99 |
|
| 100 |
// Response message for the `EnableService` method. This response message is |
| 101 |
// assigned to the `response` field of the returned Operation when that |
| 102 |
// operation is done. |
| 103 |
// |
| 104 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 105 |
type EnableServiceResponse = src.EnableServiceResponse |
| 106 |
|
| 107 |
// Request message for the `GetService` method. |
| 108 |
// |
| 109 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 110 |
type GetServiceRequest = src.GetServiceRequest |
| 111 |
|
| 112 |
// Request message for the `ListServices` method. |
| 113 |
// |
| 114 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 115 |
type ListServicesRequest = src.ListServicesRequest |
| 116 |
|
| 117 |
// Response message for the `ListServices` method. |
| 118 |
// |
| 119 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 120 |
type ListServicesResponse = src.ListServicesResponse |
| 121 |
|
| 122 |
// The operation metadata returned for the batchend services operation. |
| 123 |
// |
| 124 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 125 |
type OperationMetadata = src.OperationMetadata |
| 126 |
|
| 127 |
// A service that is available for use by the consumer. |
| 128 |
// |
| 129 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 130 |
type Service = src.Service |
| 131 |
|
| 132 |
// The configuration of the service. |
| 133 |
// |
| 134 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 135 |
type ServiceConfig = src.ServiceConfig |
| 136 |
|
| 137 |
// ServiceUsageClient is the client API for ServiceUsage service. For |
| 138 |
// semantics around ctx use and closing/ending streaming RPCs, please refer to |
| 139 |
// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 140 |
// |
| 141 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 142 |
type ServiceUsageClient = src.ServiceUsageClient |
| 143 |
|
| 144 |
// ServiceUsageServer is the server API for ServiceUsage service. |
| 145 |
// |
| 146 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 147 |
type ServiceUsageServer = src.ServiceUsageServer |
| 148 |
|
| 149 |
// Whether or not a service has been enabled for use by a consumer. |
| 150 |
// |
| 151 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 152 |
type State = src.State |
| 153 |
|
| 154 |
// UnimplementedServiceUsageServer can be embedded to have forward compatible |
| 155 |
// implementations. |
| 156 |
// |
| 157 |
// Deprecated: Please use types in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 158 |
type UnimplementedServiceUsageServer = src.UnimplementedServiceUsageServer |
| 159 |
|
| 160 |
// Deprecated: Please use funcs in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 161 |
func NewServiceUsageClient(cc grpc.ClientConnInterface) ServiceUsageClient { |
| 162 |
return src.NewServiceUsageClient(cc) |
| 163 |
} |
| 164 |
|
| 165 |
// Deprecated: Please use funcs in: cloud.google.com/go/serviceusage/apiv1/serviceusagepb |
| 166 |
func RegisterServiceUsageServer(s *grpc.Server, srv ServiceUsageServer) { |
| 167 |
src.RegisterServiceUsageServer(s, srv) |
| 168 |
} |