| 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 functions aliases all exported identifiers in package |
| 18 |
// "cloud.google.com/go/functions/apiv2/functionspb". |
| 19 |
// |
| 20 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb. |
| 21 |
// Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md |
| 22 |
// for more details. |
| 23 |
package functions |
| 24 |
|
| 25 |
import ( |
| 26 |
src "cloud.google.com/go/functions/apiv2/functionspb" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
) |
| 29 |
|
| 30 |
// Deprecated: Please use consts in: cloud.google.com/go/functions/apiv2/functionspb |
| 31 |
const ( |
| 32 |
Environment_ENVIRONMENT_UNSPECIFIED = src.Environment_ENVIRONMENT_UNSPECIFIED |
| 33 |
Environment_GEN_1 = src.Environment_GEN_1 |
| 34 |
Environment_GEN_2 = src.Environment_GEN_2 |
| 35 |
EventTrigger_RETRY_POLICY_DO_NOT_RETRY = src.EventTrigger_RETRY_POLICY_DO_NOT_RETRY |
| 36 |
EventTrigger_RETRY_POLICY_RETRY = src.EventTrigger_RETRY_POLICY_RETRY |
| 37 |
EventTrigger_RETRY_POLICY_UNSPECIFIED = src.EventTrigger_RETRY_POLICY_UNSPECIFIED |
| 38 |
Function_ACTIVE = src.Function_ACTIVE |
| 39 |
Function_DELETING = src.Function_DELETING |
| 40 |
Function_DEPLOYING = src.Function_DEPLOYING |
| 41 |
Function_FAILED = src.Function_FAILED |
| 42 |
Function_STATE_UNSPECIFIED = src.Function_STATE_UNSPECIFIED |
| 43 |
Function_UNKNOWN = src.Function_UNKNOWN |
| 44 |
ListRuntimesResponse_ALPHA = src.ListRuntimesResponse_ALPHA |
| 45 |
ListRuntimesResponse_BETA = src.ListRuntimesResponse_BETA |
| 46 |
ListRuntimesResponse_DECOMMISSIONED = src.ListRuntimesResponse_DECOMMISSIONED |
| 47 |
ListRuntimesResponse_DEPRECATED = src.ListRuntimesResponse_DEPRECATED |
| 48 |
ListRuntimesResponse_DEVELOPMENT = src.ListRuntimesResponse_DEVELOPMENT |
| 49 |
ListRuntimesResponse_GA = src.ListRuntimesResponse_GA |
| 50 |
ListRuntimesResponse_RUNTIME_STAGE_UNSPECIFIED = src.ListRuntimesResponse_RUNTIME_STAGE_UNSPECIFIED |
| 51 |
ServiceConfig_ALLOW_ALL = src.ServiceConfig_ALLOW_ALL |
| 52 |
ServiceConfig_ALLOW_INTERNAL_AND_GCLB = src.ServiceConfig_ALLOW_INTERNAL_AND_GCLB |
| 53 |
ServiceConfig_ALLOW_INTERNAL_ONLY = src.ServiceConfig_ALLOW_INTERNAL_ONLY |
| 54 |
ServiceConfig_ALL_TRAFFIC = src.ServiceConfig_ALL_TRAFFIC |
| 55 |
ServiceConfig_INGRESS_SETTINGS_UNSPECIFIED = src.ServiceConfig_INGRESS_SETTINGS_UNSPECIFIED |
| 56 |
ServiceConfig_PRIVATE_RANGES_ONLY = src.ServiceConfig_PRIVATE_RANGES_ONLY |
| 57 |
ServiceConfig_VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = src.ServiceConfig_VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED |
| 58 |
Stage_ARTIFACT_REGISTRY = src.Stage_ARTIFACT_REGISTRY |
| 59 |
Stage_BUILD = src.Stage_BUILD |
| 60 |
Stage_COMPLETE = src.Stage_COMPLETE |
| 61 |
Stage_IN_PROGRESS = src.Stage_IN_PROGRESS |
| 62 |
Stage_NAME_UNSPECIFIED = src.Stage_NAME_UNSPECIFIED |
| 63 |
Stage_NOT_STARTED = src.Stage_NOT_STARTED |
| 64 |
Stage_SERVICE = src.Stage_SERVICE |
| 65 |
Stage_SERVICE_ROLLBACK = src.Stage_SERVICE_ROLLBACK |
| 66 |
Stage_STATE_UNSPECIFIED = src.Stage_STATE_UNSPECIFIED |
| 67 |
Stage_TRIGGER = src.Stage_TRIGGER |
| 68 |
Stage_TRIGGER_ROLLBACK = src.Stage_TRIGGER_ROLLBACK |
| 69 |
StateMessage_ERROR = src.StateMessage_ERROR |
| 70 |
StateMessage_INFO = src.StateMessage_INFO |
| 71 |
StateMessage_SEVERITY_UNSPECIFIED = src.StateMessage_SEVERITY_UNSPECIFIED |
| 72 |
StateMessage_WARNING = src.StateMessage_WARNING |
| 73 |
) |
| 74 |
|
| 75 |
// Deprecated: Please use vars in: cloud.google.com/go/functions/apiv2/functionspb |
| 76 |
var ( |
| 77 |
Environment_name = src.Environment_name |
| 78 |
Environment_value = src.Environment_value |
| 79 |
EventTrigger_RetryPolicy_name = src.EventTrigger_RetryPolicy_name |
| 80 |
EventTrigger_RetryPolicy_value = src.EventTrigger_RetryPolicy_value |
| 81 |
File_google_cloud_functions_v2_functions_proto = src.File_google_cloud_functions_v2_functions_proto |
| 82 |
Function_State_name = src.Function_State_name |
| 83 |
Function_State_value = src.Function_State_value |
| 84 |
ListRuntimesResponse_RuntimeStage_name = src.ListRuntimesResponse_RuntimeStage_name |
| 85 |
ListRuntimesResponse_RuntimeStage_value = src.ListRuntimesResponse_RuntimeStage_value |
| 86 |
ServiceConfig_IngressSettings_name = src.ServiceConfig_IngressSettings_name |
| 87 |
ServiceConfig_IngressSettings_value = src.ServiceConfig_IngressSettings_value |
| 88 |
ServiceConfig_VpcConnectorEgressSettings_name = src.ServiceConfig_VpcConnectorEgressSettings_name |
| 89 |
ServiceConfig_VpcConnectorEgressSettings_value = src.ServiceConfig_VpcConnectorEgressSettings_value |
| 90 |
Stage_Name_name = src.Stage_Name_name |
| 91 |
Stage_Name_value = src.Stage_Name_value |
| 92 |
Stage_State_name = src.Stage_State_name |
| 93 |
Stage_State_value = src.Stage_State_value |
| 94 |
StateMessage_Severity_name = src.StateMessage_Severity_name |
| 95 |
StateMessage_Severity_value = src.StateMessage_Severity_value |
| 96 |
) |
| 97 |
|
| 98 |
// Describes the Build step of the function that builds a container from the |
| 99 |
// given source. |
| 100 |
// |
| 101 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 102 |
type BuildConfig = src.BuildConfig |
| 103 |
|
| 104 |
// Request for the `CreateFunction` method. |
| 105 |
// |
| 106 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 107 |
type CreateFunctionRequest = src.CreateFunctionRequest |
| 108 |
|
| 109 |
// Request for the `DeleteFunction` method. |
| 110 |
// |
| 111 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 112 |
type DeleteFunctionRequest = src.DeleteFunctionRequest |
| 113 |
|
| 114 |
// The environment the function is hosted on. |
| 115 |
// |
| 116 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 117 |
type Environment = src.Environment |
| 118 |
|
| 119 |
// Filters events based on exact matches on the CloudEvents attributes. |
| 120 |
// |
| 121 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 122 |
type EventFilter = src.EventFilter |
| 123 |
|
| 124 |
// Describes EventTrigger, used to request events to be sent from another |
| 125 |
// service. |
| 126 |
// |
| 127 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 128 |
type EventTrigger = src.EventTrigger |
| 129 |
|
| 130 |
// Describes the retry policy in case of function's execution failure. Retried |
| 131 |
// execution is charged as any other execution. |
| 132 |
// |
| 133 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 134 |
type EventTrigger_RetryPolicy = src.EventTrigger_RetryPolicy |
| 135 |
|
| 136 |
// Describes a Cloud Function that contains user computation executed in |
| 137 |
// response to an event. It encapsulates function and trigger configurations. |
| 138 |
// |
| 139 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 140 |
type Function = src.Function |
| 141 |
|
| 142 |
// FunctionServiceClient is the client API for FunctionService service. For |
| 143 |
// semantics around ctx use and closing/ending streaming RPCs, please refer to |
| 144 |
// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 145 |
// |
| 146 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 147 |
type FunctionServiceClient = src.FunctionServiceClient |
| 148 |
|
| 149 |
// FunctionServiceServer is the server API for FunctionService service. |
| 150 |
// |
| 151 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 152 |
type FunctionServiceServer = src.FunctionServiceServer |
| 153 |
|
| 154 |
// Describes the current state of the function. |
| 155 |
// |
| 156 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 157 |
type Function_State = src.Function_State |
| 158 |
|
| 159 |
// Request of `GenerateDownloadUrl` method. |
| 160 |
// |
| 161 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 162 |
type GenerateDownloadUrlRequest = src.GenerateDownloadUrlRequest |
| 163 |
|
| 164 |
// Response of `GenerateDownloadUrl` method. |
| 165 |
// |
| 166 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 167 |
type GenerateDownloadUrlResponse = src.GenerateDownloadUrlResponse |
| 168 |
|
| 169 |
// Request of `GenerateSourceUploadUrl` method. |
| 170 |
// |
| 171 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 172 |
type GenerateUploadUrlRequest = src.GenerateUploadUrlRequest |
| 173 |
|
| 174 |
// Response of `GenerateSourceUploadUrl` method. |
| 175 |
// |
| 176 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 177 |
type GenerateUploadUrlResponse = src.GenerateUploadUrlResponse |
| 178 |
|
| 179 |
// Request for the `GetFunction` method. |
| 180 |
// |
| 181 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 182 |
type GetFunctionRequest = src.GetFunctionRequest |
| 183 |
|
| 184 |
// Request for the `ListFunctions` method. |
| 185 |
// |
| 186 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 187 |
type ListFunctionsRequest = src.ListFunctionsRequest |
| 188 |
|
| 189 |
// Response for the `ListFunctions` method. |
| 190 |
// |
| 191 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 192 |
type ListFunctionsResponse = src.ListFunctionsResponse |
| 193 |
|
| 194 |
// Request for the `ListRuntimes` method. |
| 195 |
// |
| 196 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 197 |
type ListRuntimesRequest = src.ListRuntimesRequest |
| 198 |
|
| 199 |
// Response for the `ListRuntimes` method. |
| 200 |
// |
| 201 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 202 |
type ListRuntimesResponse = src.ListRuntimesResponse |
| 203 |
|
| 204 |
// Describes a runtime and any special information (e.g., deprecation status) |
| 205 |
// related to it. |
| 206 |
// |
| 207 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 208 |
type ListRuntimesResponse_Runtime = src.ListRuntimesResponse_Runtime |
| 209 |
|
| 210 |
// The various stages that a runtime can be in. |
| 211 |
// |
| 212 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 213 |
type ListRuntimesResponse_RuntimeStage = src.ListRuntimesResponse_RuntimeStage |
| 214 |
|
| 215 |
// Represents the metadata of the long-running operation. |
| 216 |
// |
| 217 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 218 |
type OperationMetadata = src.OperationMetadata |
| 219 |
|
| 220 |
// Location of the source in a Google Cloud Source Repository. |
| 221 |
// |
| 222 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 223 |
type RepoSource = src.RepoSource |
| 224 |
type RepoSource_BranchName = src.RepoSource_BranchName |
| 225 |
type RepoSource_CommitSha = src.RepoSource_CommitSha |
| 226 |
type RepoSource_TagName = src.RepoSource_TagName |
| 227 |
|
| 228 |
// Configuration for a secret environment variable. It has the information |
| 229 |
// necessary to fetch the secret value from secret manager and expose it as an |
| 230 |
// environment variable. |
| 231 |
// |
| 232 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 233 |
type SecretEnvVar = src.SecretEnvVar |
| 234 |
|
| 235 |
// Configuration for a secret volume. It has the information necessary to |
| 236 |
// fetch the secret value from secret manager and make it available as files |
| 237 |
// mounted at the requested paths within the application container. |
| 238 |
// |
| 239 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 240 |
type SecretVolume = src.SecretVolume |
| 241 |
|
| 242 |
// Configuration for a single version. |
| 243 |
// |
| 244 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 245 |
type SecretVolume_SecretVersion = src.SecretVolume_SecretVersion |
| 246 |
|
| 247 |
// Describes the Service being deployed. Currently Supported : Cloud Run |
| 248 |
// (fully managed). |
| 249 |
// |
| 250 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 251 |
type ServiceConfig = src.ServiceConfig |
| 252 |
|
| 253 |
// Available ingress settings. This controls what traffic can reach the |
| 254 |
// function. If unspecified, ALLOW_ALL will be used. |
| 255 |
// |
| 256 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 257 |
type ServiceConfig_IngressSettings = src.ServiceConfig_IngressSettings |
| 258 |
|
| 259 |
// Available egress settings. This controls what traffic is diverted through |
| 260 |
// the VPC Access Connector resource. By default PRIVATE_RANGES_ONLY will be |
| 261 |
// used. |
| 262 |
// |
| 263 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 264 |
type ServiceConfig_VpcConnectorEgressSettings = src.ServiceConfig_VpcConnectorEgressSettings |
| 265 |
|
| 266 |
// The location of the function source code. |
| 267 |
// |
| 268 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 269 |
type Source = src.Source |
| 270 |
|
| 271 |
// Provenance of the source. Ways to find the original source, or verify that |
| 272 |
// some source was used for this build. |
| 273 |
// |
| 274 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 275 |
type SourceProvenance = src.SourceProvenance |
| 276 |
type Source_RepoSource = src.Source_RepoSource |
| 277 |
type Source_StorageSource = src.Source_StorageSource |
| 278 |
|
| 279 |
// Each Stage of the deployment process |
| 280 |
// |
| 281 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 282 |
type Stage = src.Stage |
| 283 |
|
| 284 |
// Possible names for a Stage |
| 285 |
// |
| 286 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 287 |
type Stage_Name = src.Stage_Name |
| 288 |
|
| 289 |
// Possible states for a Stage |
| 290 |
// |
| 291 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 292 |
type Stage_State = src.Stage_State |
| 293 |
|
| 294 |
// Informational messages about the state of the Cloud Function or Operation. |
| 295 |
// |
| 296 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 297 |
type StateMessage = src.StateMessage |
| 298 |
|
| 299 |
// Severity of the state message. |
| 300 |
// |
| 301 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 302 |
type StateMessage_Severity = src.StateMessage_Severity |
| 303 |
|
| 304 |
// Location of the source in an archive file in Google Cloud Storage. |
| 305 |
// |
| 306 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 307 |
type StorageSource = src.StorageSource |
| 308 |
|
| 309 |
// UnimplementedFunctionServiceServer can be embedded to have forward |
| 310 |
// compatible implementations. |
| 311 |
// |
| 312 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 313 |
type UnimplementedFunctionServiceServer = src.UnimplementedFunctionServiceServer |
| 314 |
|
| 315 |
// Request for the `UpdateFunction` method. |
| 316 |
// |
| 317 |
// Deprecated: Please use types in: cloud.google.com/go/functions/apiv2/functionspb |
| 318 |
type UpdateFunctionRequest = src.UpdateFunctionRequest |
| 319 |
|
| 320 |
// Deprecated: Please use funcs in: cloud.google.com/go/functions/apiv2/functionspb |
| 321 |
func NewFunctionServiceClient(cc grpc.ClientConnInterface) FunctionServiceClient { |
| 322 |
return src.NewFunctionServiceClient(cc) |
| 323 |
} |
| 324 |
|
| 325 |
// Deprecated: Please use funcs in: cloud.google.com/go/functions/apiv2/functionspb |
| 326 |
func RegisterFunctionServiceServer(s *grpc.Server, srv FunctionServiceServer) { |
| 327 |
src.RegisterFunctionServiceServer(s, srv) |
| 328 |
} |