| 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 servicedirectory aliases all exported identifiers in package |
| 18 |
// "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb". |
| 19 |
// |
| 20 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb. |
| 21 |
// Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md |
| 22 |
// for more details. |
| 23 |
package servicedirectory |
| 24 |
|
| 25 |
import ( |
| 26 |
src "cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
) |
| 29 |
|
| 30 |
// Deprecated: Please use vars in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 31 |
var ( |
| 32 |
File_google_cloud_servicedirectory_v1beta1_endpoint_proto = src.File_google_cloud_servicedirectory_v1beta1_endpoint_proto |
| 33 |
File_google_cloud_servicedirectory_v1beta1_lookup_service_proto = src.File_google_cloud_servicedirectory_v1beta1_lookup_service_proto |
| 34 |
File_google_cloud_servicedirectory_v1beta1_namespace_proto = src.File_google_cloud_servicedirectory_v1beta1_namespace_proto |
| 35 |
File_google_cloud_servicedirectory_v1beta1_registration_service_proto = src.File_google_cloud_servicedirectory_v1beta1_registration_service_proto |
| 36 |
File_google_cloud_servicedirectory_v1beta1_service_proto = src.File_google_cloud_servicedirectory_v1beta1_service_proto |
| 37 |
) |
| 38 |
|
| 39 |
// The request message for |
| 40 |
// [RegistrationService.CreateEndpoint][google.cloud.servicedirectory.v1beta1.RegistrationService.CreateEndpoint]. |
| 41 |
// |
| 42 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 43 |
type CreateEndpointRequest = src.CreateEndpointRequest |
| 44 |
|
| 45 |
// The request message for |
| 46 |
// [RegistrationService.CreateNamespace][google.cloud.servicedirectory.v1beta1.RegistrationService.CreateNamespace]. |
| 47 |
// |
| 48 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 49 |
type CreateNamespaceRequest = src.CreateNamespaceRequest |
| 50 |
|
| 51 |
// The request message for |
| 52 |
// [RegistrationService.CreateService][google.cloud.servicedirectory.v1beta1.RegistrationService.CreateService]. |
| 53 |
// |
| 54 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 55 |
type CreateServiceRequest = src.CreateServiceRequest |
| 56 |
|
| 57 |
// The request message for |
| 58 |
// [RegistrationService.DeleteEndpoint][google.cloud.servicedirectory.v1beta1.RegistrationService.DeleteEndpoint]. |
| 59 |
// |
| 60 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 61 |
type DeleteEndpointRequest = src.DeleteEndpointRequest |
| 62 |
|
| 63 |
// The request message for |
| 64 |
// [RegistrationService.DeleteNamespace][google.cloud.servicedirectory.v1beta1.RegistrationService.DeleteNamespace]. |
| 65 |
// |
| 66 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 67 |
type DeleteNamespaceRequest = src.DeleteNamespaceRequest |
| 68 |
|
| 69 |
// The request message for |
| 70 |
// [RegistrationService.DeleteService][google.cloud.servicedirectory.v1beta1.RegistrationService.DeleteService]. |
| 71 |
// |
| 72 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 73 |
type DeleteServiceRequest = src.DeleteServiceRequest |
| 74 |
|
| 75 |
// An individual endpoint that provides a |
| 76 |
// [service][google.cloud.servicedirectory.v1beta1.Service]. The service must |
| 77 |
// already exist to create an endpoint. |
| 78 |
// |
| 79 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 80 |
type Endpoint = src.Endpoint |
| 81 |
|
| 82 |
// The request message for |
| 83 |
// [RegistrationService.GetEndpoint][google.cloud.servicedirectory.v1beta1.RegistrationService.GetEndpoint]. |
| 84 |
// This should not be used to lookup endpoints at runtime. Instead, use the |
| 85 |
// `resolve` method. |
| 86 |
// |
| 87 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 88 |
type GetEndpointRequest = src.GetEndpointRequest |
| 89 |
|
| 90 |
// The request message for |
| 91 |
// [RegistrationService.GetNamespace][google.cloud.servicedirectory.v1beta1.RegistrationService.GetNamespace]. |
| 92 |
// |
| 93 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 94 |
type GetNamespaceRequest = src.GetNamespaceRequest |
| 95 |
|
| 96 |
// The request message for |
| 97 |
// [RegistrationService.GetService][google.cloud.servicedirectory.v1beta1.RegistrationService.GetService]. |
| 98 |
// This should not be used for looking up a service. Insead, use the `resolve` |
| 99 |
// method as it contains all endpoints and associated metadata. |
| 100 |
// |
| 101 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 102 |
type GetServiceRequest = src.GetServiceRequest |
| 103 |
|
| 104 |
// The request message for |
| 105 |
// [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1beta1.RegistrationService.ListEndpoints]. |
| 106 |
// |
| 107 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 108 |
type ListEndpointsRequest = src.ListEndpointsRequest |
| 109 |
|
| 110 |
// The response message for |
| 111 |
// [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1beta1.RegistrationService.ListEndpoints]. |
| 112 |
// |
| 113 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 114 |
type ListEndpointsResponse = src.ListEndpointsResponse |
| 115 |
|
| 116 |
// The request message for |
| 117 |
// [RegistrationService.ListNamespaces][google.cloud.servicedirectory.v1beta1.RegistrationService.ListNamespaces]. |
| 118 |
// |
| 119 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 120 |
type ListNamespacesRequest = src.ListNamespacesRequest |
| 121 |
|
| 122 |
// The response message for |
| 123 |
// [RegistrationService.ListNamespaces][google.cloud.servicedirectory.v1beta1.RegistrationService.ListNamespaces]. |
| 124 |
// |
| 125 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 126 |
type ListNamespacesResponse = src.ListNamespacesResponse |
| 127 |
|
| 128 |
// The request message for |
| 129 |
// [RegistrationService.ListServices][google.cloud.servicedirectory.v1beta1.RegistrationService.ListServices]. |
| 130 |
// |
| 131 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 132 |
type ListServicesRequest = src.ListServicesRequest |
| 133 |
|
| 134 |
// The response message for |
| 135 |
// [RegistrationService.ListServices][google.cloud.servicedirectory.v1beta1.RegistrationService.ListServices]. |
| 136 |
// |
| 137 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 138 |
type ListServicesResponse = src.ListServicesResponse |
| 139 |
|
| 140 |
// LookupServiceClient is the client API for LookupService service. For |
| 141 |
// semantics around ctx use and closing/ending streaming RPCs, please refer to |
| 142 |
// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 143 |
// |
| 144 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 145 |
type LookupServiceClient = src.LookupServiceClient |
| 146 |
|
| 147 |
// LookupServiceServer is the server API for LookupService service. |
| 148 |
// |
| 149 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 150 |
type LookupServiceServer = src.LookupServiceServer |
| 151 |
|
| 152 |
// A container for [services][google.cloud.servicedirectory.v1beta1.Service]. |
| 153 |
// Namespaces allow administrators to group services together and define |
| 154 |
// permissions for a collection of services. |
| 155 |
// |
| 156 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 157 |
type Namespace = src.Namespace |
| 158 |
|
| 159 |
// RegistrationServiceClient is the client API for RegistrationService |
| 160 |
// service. For semantics around ctx use and closing/ending streaming RPCs, |
| 161 |
// please refer to |
| 162 |
// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 163 |
// |
| 164 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 165 |
type RegistrationServiceClient = src.RegistrationServiceClient |
| 166 |
|
| 167 |
// RegistrationServiceServer is the server API for RegistrationService |
| 168 |
// service. |
| 169 |
// |
| 170 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 171 |
type RegistrationServiceServer = src.RegistrationServiceServer |
| 172 |
|
| 173 |
// The request message for |
| 174 |
// [LookupService.ResolveService][google.cloud.servicedirectory.v1beta1.LookupService.ResolveService]. |
| 175 |
// Looks up a service by its name, returns the service and its endpoints. |
| 176 |
// |
| 177 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 178 |
type ResolveServiceRequest = src.ResolveServiceRequest |
| 179 |
|
| 180 |
// The response message for |
| 181 |
// [LookupService.ResolveService][google.cloud.servicedirectory.v1beta1.LookupService.ResolveService]. |
| 182 |
// |
| 183 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 184 |
type ResolveServiceResponse = src.ResolveServiceResponse |
| 185 |
|
| 186 |
// An individual service. A service contains a name and optional metadata. A |
| 187 |
// service must exist before |
| 188 |
// [endpoints][google.cloud.servicedirectory.v1beta1.Endpoint] can be added to |
| 189 |
// it. |
| 190 |
// |
| 191 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 192 |
type Service = src.Service |
| 193 |
|
| 194 |
// UnimplementedLookupServiceServer can be embedded to have forward compatible |
| 195 |
// implementations. |
| 196 |
// |
| 197 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 198 |
type UnimplementedLookupServiceServer = src.UnimplementedLookupServiceServer |
| 199 |
|
| 200 |
// UnimplementedRegistrationServiceServer can be embedded to have forward |
| 201 |
// compatible implementations. |
| 202 |
// |
| 203 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 204 |
type UnimplementedRegistrationServiceServer = src.UnimplementedRegistrationServiceServer |
| 205 |
|
| 206 |
// The request message for |
| 207 |
// [RegistrationService.UpdateEndpoint][google.cloud.servicedirectory.v1beta1.RegistrationService.UpdateEndpoint]. |
| 208 |
// |
| 209 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 210 |
type UpdateEndpointRequest = src.UpdateEndpointRequest |
| 211 |
|
| 212 |
// The request message for |
| 213 |
// [RegistrationService.UpdateNamespace][google.cloud.servicedirectory.v1beta1.RegistrationService.UpdateNamespace]. |
| 214 |
// |
| 215 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 216 |
type UpdateNamespaceRequest = src.UpdateNamespaceRequest |
| 217 |
|
| 218 |
// The request message for |
| 219 |
// [RegistrationService.UpdateService][google.cloud.servicedirectory.v1beta1.RegistrationService.UpdateService]. |
| 220 |
// |
| 221 |
// Deprecated: Please use types in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 222 |
type UpdateServiceRequest = src.UpdateServiceRequest |
| 223 |
|
| 224 |
// Deprecated: Please use funcs in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 225 |
func NewLookupServiceClient(cc grpc.ClientConnInterface) LookupServiceClient { |
| 226 |
return src.NewLookupServiceClient(cc) |
| 227 |
} |
| 228 |
|
| 229 |
// Deprecated: Please use funcs in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 230 |
func NewRegistrationServiceClient(cc grpc.ClientConnInterface) RegistrationServiceClient { |
| 231 |
return src.NewRegistrationServiceClient(cc) |
| 232 |
} |
| 233 |
|
| 234 |
// Deprecated: Please use funcs in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 235 |
func RegisterLookupServiceServer(s *grpc.Server, srv LookupServiceServer) { |
| 236 |
src.RegisterLookupServiceServer(s, srv) |
| 237 |
} |
| 238 |
|
| 239 |
// Deprecated: Please use funcs in: cloud.google.com/go/servicedirectory/apiv1beta1/servicedirectorypb |
| 240 |
func RegisterRegistrationServiceServer(s *grpc.Server, srv RegistrationServiceServer) { |
| 241 |
src.RegisterRegistrationServiceServer(s, srv) |
| 242 |
} |