| // Copyright 2025 Google LLC |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.36.11 |
| // protoc v6.33.2 |
| // source: google/cloud/functions/v2beta/functions.proto |
| |
| package functionspb |
| |
| import ( |
| reflect "reflect" |
| sync "sync" |
| unsafe "unsafe" |
| |
| longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" |
| _ "google.golang.org/genproto/googleapis/api/annotations" |
| date "google.golang.org/genproto/googleapis/type/date" |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| anypb "google.golang.org/protobuf/types/known/anypb" |
| _ "google.golang.org/protobuf/types/known/emptypb" |
| fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" |
| timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| ) |
| |
| const ( |
| // Verify that this generated code is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| // Verify that runtime/protoimpl is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| ) |
| |
| // The type of the long running operation. |
| type OperationType int32 |
| |
| const ( |
| // Unspecified |
| OperationType_OPERATIONTYPE_UNSPECIFIED OperationType = 0 |
| // CreateFunction |
| OperationType_CREATE_FUNCTION OperationType = 1 |
| // UpdateFunction |
| OperationType_UPDATE_FUNCTION OperationType = 2 |
| // DeleteFunction |
| OperationType_DELETE_FUNCTION OperationType = 3 |
| ) |
| |
| // Enum value maps for OperationType. |
| var ( |
| OperationType_name = map[int32]string{ |
| 0: "OPERATIONTYPE_UNSPECIFIED", |
| 1: "CREATE_FUNCTION", |
| 2: "UPDATE_FUNCTION", |
| 3: "DELETE_FUNCTION", |
| } |
| OperationType_value = map[string]int32{ |
| "OPERATIONTYPE_UNSPECIFIED": 0, |
| "CREATE_FUNCTION": 1, |
| "UPDATE_FUNCTION": 2, |
| "DELETE_FUNCTION": 3, |
| } |
| ) |
| |
| func (x OperationType) Enum() *OperationType { |
| p := new(OperationType) |
| *p = x |
| return p |
| } |
| |
| func (x OperationType) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (OperationType) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_functions_v2beta_functions_proto_enumTypes[0].Descriptor() |
| } |
| |
| func (OperationType) Type() protoreflect.EnumType { |
| return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[0] |
| } |
| |
| func (x OperationType) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use OperationType.Descriptor instead. |
| func (OperationType) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{0} |
| } |
| |
| // The environment the function is hosted on. |
| type Environment int32 |
| |
| const ( |
| // Unspecified |
| Environment_ENVIRONMENT_UNSPECIFIED Environment = 0 |
| // Gen 1 |
| Environment_GEN_1 Environment = 1 |
| // Gen 2 |
| Environment_GEN_2 Environment = 2 |
| ) |
| |
| // Enum value maps for Environment. |
| var ( |
| Environment_name = map[int32]string{ |
| 0: "ENVIRONMENT_UNSPECIFIED", |
| 1: "GEN_1", |
| 2: "GEN_2", |
| } |
| Environment_value = map[string]int32{ |
| "ENVIRONMENT_UNSPECIFIED": 0, |
| "GEN_1": 1, |
| "GEN_2": 2, |
| } |
| ) |
| |
| func (x Environment) Enum() *Environment { |
| p := new(Environment) |
| *p = x |
| return p |
| } |
| |
| func (x Environment) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (Environment) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_functions_v2beta_functions_proto_enumTypes[1].Descriptor() |
| } |
| |
| func (Environment) Type() protoreflect.EnumType { |
| return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[1] |
| } |
| |
| func (x Environment) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use Environment.Descriptor instead. |
| func (Environment) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{1} |
| } |
| |
| // Describes the current state of the function. |
| type Function_State int32 |
| |
| const ( |
| // Not specified. Invalid state. |
| Function_STATE_UNSPECIFIED Function_State = 0 |
| // Function has been successfully deployed and is serving. |
| Function_ACTIVE Function_State = 1 |
| // Function deployment failed and the function is not serving. |
| Function_FAILED Function_State = 2 |
| // Function is being created or updated. |
| Function_DEPLOYING Function_State = 3 |
| // Function is being deleted. |
| Function_DELETING Function_State = 4 |
| // Function deployment failed and the function serving state is undefined. |
| // The function should be updated or deleted to move it out of this state. |
| Function_UNKNOWN Function_State = 5 |
| ) |
| |
| // Enum value maps for Function_State. |
| var ( |
| Function_State_name = map[int32]string{ |
| 0: "STATE_UNSPECIFIED", |
| 1: "ACTIVE", |
| 2: "FAILED", |
| 3: "DEPLOYING", |
| 4: "DELETING", |
| 5: "UNKNOWN", |
| } |
| Function_State_value = map[string]int32{ |
| "STATE_UNSPECIFIED": 0, |
| "ACTIVE": 1, |
| "FAILED": 2, |
| "DEPLOYING": 3, |
| "DELETING": 4, |
| "UNKNOWN": 5, |
| } |
| ) |
| |
| func (x Function_State) Enum() *Function_State { |
| p := new(Function_State) |
| *p = x |
| return p |
| } |
| |
| func (x Function_State) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (Function_State) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_functions_v2beta_functions_proto_enumTypes[2].Descriptor() |
| } |
| |
| func (Function_State) Type() protoreflect.EnumType { |
| return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[2] |
| } |
| |
| func (x Function_State) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use Function_State.Descriptor instead. |
| func (Function_State) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{0, 0} |
| } |
| |
| // Severity of the state message. |
| type StateMessage_Severity int32 |
| |
| const ( |
| // Not specified. Invalid severity. |
| StateMessage_SEVERITY_UNSPECIFIED StateMessage_Severity = 0 |
| // ERROR-level severity. |
| StateMessage_ERROR StateMessage_Severity = 1 |
| // WARNING-level severity. |
| StateMessage_WARNING StateMessage_Severity = 2 |
| // INFO-level severity. |
| StateMessage_INFO StateMessage_Severity = 3 |
| ) |
| |
| // Enum value maps for StateMessage_Severity. |
| var ( |
| StateMessage_Severity_name = map[int32]string{ |
| 0: "SEVERITY_UNSPECIFIED", |
| 1: "ERROR", |
| 2: "WARNING", |
| 3: "INFO", |
| } |
| StateMessage_Severity_value = map[string]int32{ |
| "SEVERITY_UNSPECIFIED": 0, |
| "ERROR": 1, |
| "WARNING": 2, |
| "INFO": 3, |
| } |
| ) |
| |
| func (x StateMessage_Severity) Enum() *StateMessage_Severity { |
| p := new(StateMessage_Severity) |
| *p = x |
| return p |
| } |
| |
| func (x StateMessage_Severity) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (StateMessage_Severity) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_functions_v2beta_functions_proto_enumTypes[3].Descriptor() |
| } |
| |
| func (StateMessage_Severity) Type() protoreflect.EnumType { |
| return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[3] |
| } |
| |
| func (x StateMessage_Severity) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use StateMessage_Severity.Descriptor instead. |
| func (StateMessage_Severity) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{1, 0} |
| } |
| |
| // Docker Registry to use for storing function Docker images. |
| type BuildConfig_DockerRegistry int32 |
| |
| const ( |
| // Unspecified. |
| BuildConfig_DOCKER_REGISTRY_UNSPECIFIED BuildConfig_DockerRegistry = 0 |
| // Docker images will be stored in multi-regional Container Registry |
| // repositories named `gcf`. |
| BuildConfig_CONTAINER_REGISTRY BuildConfig_DockerRegistry = 1 |
| // Docker images will be stored in regional Artifact Registry repositories. |
| // By default, GCF will create and use repositories named `gcf-artifacts` |
| // in every region in which a function is deployed. But the repository to |
| // use can also be specified by the user using the `docker_repository` |
| // field. |
| BuildConfig_ARTIFACT_REGISTRY BuildConfig_DockerRegistry = 2 |
| ) |
| |
| // Enum value maps for BuildConfig_DockerRegistry. |
| var ( |
| BuildConfig_DockerRegistry_name = map[int32]string{ |
| 0: "DOCKER_REGISTRY_UNSPECIFIED", |
| 1: "CONTAINER_REGISTRY", |
| 2: "ARTIFACT_REGISTRY", |
| } |
| BuildConfig_DockerRegistry_value = map[string]int32{ |
| "DOCKER_REGISTRY_UNSPECIFIED": 0, |
| "CONTAINER_REGISTRY": 1, |
| "ARTIFACT_REGISTRY": 2, |
| } |
| ) |
| |
| func (x BuildConfig_DockerRegistry) Enum() *BuildConfig_DockerRegistry { |
| p := new(BuildConfig_DockerRegistry) |
| *p = x |
| return p |
| } |
| |
| func (x BuildConfig_DockerRegistry) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (BuildConfig_DockerRegistry) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_functions_v2beta_functions_proto_enumTypes[4].Descriptor() |
| } |
| |
| func (BuildConfig_DockerRegistry) Type() protoreflect.EnumType { |
| return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[4] |
| } |
| |
| func (x BuildConfig_DockerRegistry) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use BuildConfig_DockerRegistry.Descriptor instead. |
| func (BuildConfig_DockerRegistry) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{6, 0} |
| } |
| |
| // Available egress settings. |
| // |
| // This controls what traffic is diverted through the VPC Access Connector |
| // resource. By default PRIVATE_RANGES_ONLY will be used. |
| type ServiceConfig_VpcConnectorEgressSettings int32 |
| |
| const ( |
| // Unspecified. |
| ServiceConfig_VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED ServiceConfig_VpcConnectorEgressSettings = 0 |
| // Use the VPC Access Connector only for private IP space from RFC1918. |
| ServiceConfig_PRIVATE_RANGES_ONLY ServiceConfig_VpcConnectorEgressSettings = 1 |
| // Force the use of VPC Access Connector for all egress traffic from the |
| // function. |
| ServiceConfig_ALL_TRAFFIC ServiceConfig_VpcConnectorEgressSettings = 2 |
| ) |
| |
| // Enum value maps for ServiceConfig_VpcConnectorEgressSettings. |
| var ( |
| ServiceConfig_VpcConnectorEgressSettings_name = map[int32]string{ |
| 0: "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED", |
| 1: "PRIVATE_RANGES_ONLY", |
| 2: "ALL_TRAFFIC", |
| } |
| ServiceConfig_VpcConnectorEgressSettings_value = map[string]int32{ |
| "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED": 0, |
| "PRIVATE_RANGES_ONLY": 1, |
| "ALL_TRAFFIC": 2, |
| } |
| ) |
| |
| func (x ServiceConfig_VpcConnectorEgressSettings) Enum() *ServiceConfig_VpcConnectorEgressSettings { |
| p := new(ServiceConfig_VpcConnectorEgressSettings) |
| *p = x |
| return p |
| } |
| |
| func (x ServiceConfig_VpcConnectorEgressSettings) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (ServiceConfig_VpcConnectorEgressSettings) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_functions_v2beta_functions_proto_enumTypes[5].Descriptor() |
| } |
| |
| func (ServiceConfig_VpcConnectorEgressSettings) Type() protoreflect.EnumType { |
| return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[5] |
| } |
| |
| func (x ServiceConfig_VpcConnectorEgressSettings) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use ServiceConfig_VpcConnectorEgressSettings.Descriptor instead. |
| func (ServiceConfig_VpcConnectorEgressSettings) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{7, 0} |
| } |
| |
| // Available ingress settings. |
| // |
| // This controls what traffic can reach the function. |
| // |
| // If unspecified, ALLOW_ALL will be used. |
| type ServiceConfig_IngressSettings int32 |
| |
| const ( |
| // Unspecified. |
| ServiceConfig_INGRESS_SETTINGS_UNSPECIFIED ServiceConfig_IngressSettings = 0 |
| // Allow HTTP traffic from public and private sources. |
| ServiceConfig_ALLOW_ALL ServiceConfig_IngressSettings = 1 |
| // Allow HTTP traffic from only private VPC sources. |
| ServiceConfig_ALLOW_INTERNAL_ONLY ServiceConfig_IngressSettings = 2 |
| // Allow HTTP traffic from private VPC sources and through GCLB. |
| ServiceConfig_ALLOW_INTERNAL_AND_GCLB ServiceConfig_IngressSettings = 3 |
| ) |
| |
| // Enum value maps for ServiceConfig_IngressSettings. |
| var ( |
| ServiceConfig_IngressSettings_name = map[int32]string{ |
| 0: "INGRESS_SETTINGS_UNSPECIFIED", |
| 1: "ALLOW_ALL", |
| 2: "ALLOW_INTERNAL_ONLY", |
| 3: "ALLOW_INTERNAL_AND_GCLB", |
| } |
| ServiceConfig_IngressSettings_value = map[string]int32{ |
| "INGRESS_SETTINGS_UNSPECIFIED": 0, |
| "ALLOW_ALL": 1, |
| "ALLOW_INTERNAL_ONLY": 2, |
| "ALLOW_INTERNAL_AND_GCLB": 3, |
| } |
| ) |
| |
| func (x ServiceConfig_IngressSettings) Enum() *ServiceConfig_IngressSettings { |
| p := new(ServiceConfig_IngressSettings) |
| *p = x |
| return p |
| } |
| |
| func (x ServiceConfig_IngressSettings) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (ServiceConfig_IngressSettings) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_functions_v2beta_functions_proto_enumTypes[6].Descriptor() |
| } |
| |
| func (ServiceConfig_IngressSettings) Type() protoreflect.EnumType { |
| return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[6] |
| } |
| |
| func (x ServiceConfig_IngressSettings) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use ServiceConfig_IngressSettings.Descriptor instead. |
| func (ServiceConfig_IngressSettings) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{7, 1} |
| } |
| |
| // Available security level settings. |
| // |
| // This enforces security protocol on function URL. |
| // |
| // Security level is only configurable for 1st Gen functions, If unspecified, |
| // SECURE_OPTIONAL will be used. 2nd Gen functions are SECURE_ALWAYS ONLY. |
| type ServiceConfig_SecurityLevel int32 |
| |
| const ( |
| // Unspecified. |
| ServiceConfig_SECURITY_LEVEL_UNSPECIFIED ServiceConfig_SecurityLevel = 0 |
| // Requests for a URL that match this handler that do not use HTTPS are |
| // automatically redirected to the HTTPS URL with the same path. Query |
| // parameters are reserved for the redirect. |
| ServiceConfig_SECURE_ALWAYS ServiceConfig_SecurityLevel = 1 |
| // Both HTTP and HTTPS requests with URLs that match the handler succeed |
| // without redirects. The application can examine the request to determine |
| // which protocol was used and respond accordingly. |
| ServiceConfig_SECURE_OPTIONAL ServiceConfig_SecurityLevel = 2 |
| ) |
| |
| // Enum value maps for ServiceConfig_SecurityLevel. |
| var ( |
| ServiceConfig_SecurityLevel_name = map[int32]string{ |
| 0: "SECURITY_LEVEL_UNSPECIFIED", |
| 1: "SECURE_ALWAYS", |
| 2: "SECURE_OPTIONAL", |
| } |
| ServiceConfig_SecurityLevel_value = map[string]int32{ |
| "SECURITY_LEVEL_UNSPECIFIED": 0, |
| "SECURE_ALWAYS": 1, |
| "SECURE_OPTIONAL": 2, |
| } |
| ) |
| |
| func (x ServiceConfig_SecurityLevel) Enum() *ServiceConfig_SecurityLevel { |
| p := new(ServiceConfig_SecurityLevel) |
| *p = x |
| return p |
| } |
| |
| func (x ServiceConfig_SecurityLevel) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (ServiceConfig_SecurityLevel) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_functions_v2beta_functions_proto_enumTypes[7].Descriptor() |
| } |
| |
| func (ServiceConfig_SecurityLevel) Type() protoreflect.EnumType { |
| return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[7] |
| } |
| |
| func (x ServiceConfig_SecurityLevel) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use ServiceConfig_SecurityLevel.Descriptor instead. |
| func (ServiceConfig_SecurityLevel) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{7, 2} |
| } |
| |
| // Describes the retry policy in case of function's execution failure. |
| // Retried execution is charged as any other execution. |
| type EventTrigger_RetryPolicy int32 |
| |
| const ( |
| // Not specified. |
| EventTrigger_RETRY_POLICY_UNSPECIFIED EventTrigger_RetryPolicy = 0 |
| // Do not retry. |
| EventTrigger_RETRY_POLICY_DO_NOT_RETRY EventTrigger_RetryPolicy = 1 |
| // Retry on any failure, retry up to 7 days with an exponential backoff |
| // (capped at 10 seconds). |
| EventTrigger_RETRY_POLICY_RETRY EventTrigger_RetryPolicy = 2 |
| ) |
| |
| // Enum value maps for EventTrigger_RetryPolicy. |
| var ( |
| EventTrigger_RetryPolicy_name = map[int32]string{ |
| 0: "RETRY_POLICY_UNSPECIFIED", |
| 1: "RETRY_POLICY_DO_NOT_RETRY", |
| 2: "RETRY_POLICY_RETRY", |
| } |
| EventTrigger_RetryPolicy_value = map[string]int32{ |
| "RETRY_POLICY_UNSPECIFIED": 0, |
| "RETRY_POLICY_DO_NOT_RETRY": 1, |
| "RETRY_POLICY_RETRY": 2, |
| } |
| ) |
| |
| func (x EventTrigger_RetryPolicy) Enum() *EventTrigger_RetryPolicy { |
| p := new(EventTrigger_RetryPolicy) |
| *p = x |
| return p |
| } |
| |
| func (x EventTrigger_RetryPolicy) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (EventTrigger_RetryPolicy) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_functions_v2beta_functions_proto_enumTypes[8].Descriptor() |
| } |
| |
| func (EventTrigger_RetryPolicy) Type() protoreflect.EnumType { |
| return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[8] |
| } |
| |
| func (x EventTrigger_RetryPolicy) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use EventTrigger_RetryPolicy.Descriptor instead. |
| func (EventTrigger_RetryPolicy) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{10, 0} |
| } |
| |
| // The various stages that a runtime can be in. |
| type ListRuntimesResponse_RuntimeStage int32 |
| |
| const ( |
| // Not specified. |
| ListRuntimesResponse_RUNTIME_STAGE_UNSPECIFIED ListRuntimesResponse_RuntimeStage = 0 |
| // The runtime is in development. |
| ListRuntimesResponse_DEVELOPMENT ListRuntimesResponse_RuntimeStage = 1 |
| // The runtime is in the Alpha stage. |
| ListRuntimesResponse_ALPHA ListRuntimesResponse_RuntimeStage = 2 |
| // The runtime is in the Beta stage. |
| ListRuntimesResponse_BETA ListRuntimesResponse_RuntimeStage = 3 |
| // The runtime is generally available. |
| ListRuntimesResponse_GA ListRuntimesResponse_RuntimeStage = 4 |
| // The runtime is deprecated. |
| ListRuntimesResponse_DEPRECATED ListRuntimesResponse_RuntimeStage = 5 |
| // The runtime is no longer supported. |
| ListRuntimesResponse_DECOMMISSIONED ListRuntimesResponse_RuntimeStage = 6 |
| ) |
| |
| // Enum value maps for ListRuntimesResponse_RuntimeStage. |
| var ( |
| ListRuntimesResponse_RuntimeStage_name = map[int32]string{ |
| 0: "RUNTIME_STAGE_UNSPECIFIED", |
| 1: "DEVELOPMENT", |
| 2: "ALPHA", |
| 3: "BETA", |
| 4: "GA", |
| 5: "DEPRECATED", |
| 6: "DECOMMISSIONED", |
| } |
| ListRuntimesResponse_RuntimeStage_value = map[string]int32{ |
| "RUNTIME_STAGE_UNSPECIFIED": 0, |
| "DEVELOPMENT": 1, |
| "ALPHA": 2, |
| "BETA": 3, |
| "GA": 4, |
| "DEPRECATED": 5, |
| "DECOMMISSIONED": 6, |
| } |
| ) |
| |
| func (x ListRuntimesResponse_RuntimeStage) Enum() *ListRuntimesResponse_RuntimeStage { |
| p := new(ListRuntimesResponse_RuntimeStage) |
| *p = x |
| return p |
| } |
| |
| func (x ListRuntimesResponse_RuntimeStage) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (ListRuntimesResponse_RuntimeStage) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_functions_v2beta_functions_proto_enumTypes[9].Descriptor() |
| } |
| |
| func (ListRuntimesResponse_RuntimeStage) Type() protoreflect.EnumType { |
| return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[9] |
| } |
| |
| func (x ListRuntimesResponse_RuntimeStage) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use ListRuntimesResponse_RuntimeStage.Descriptor instead. |
| func (ListRuntimesResponse_RuntimeStage) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{23, 0} |
| } |
| |
| // Possible names for a Stage |
| type Stage_Name int32 |
| |
| const ( |
| // Not specified. Invalid name. |
| Stage_NAME_UNSPECIFIED Stage_Name = 0 |
| // Artifact Regsitry Stage |
| Stage_ARTIFACT_REGISTRY Stage_Name = 1 |
| // Build Stage |
| Stage_BUILD Stage_Name = 2 |
| // Service Stage |
| Stage_SERVICE Stage_Name = 3 |
| // Trigger Stage |
| Stage_TRIGGER Stage_Name = 4 |
| // Service Rollback Stage |
| Stage_SERVICE_ROLLBACK Stage_Name = 5 |
| // Trigger Rollback Stage |
| Stage_TRIGGER_ROLLBACK Stage_Name = 6 |
| ) |
| |
| // Enum value maps for Stage_Name. |
| var ( |
| Stage_Name_name = map[int32]string{ |
| 0: "NAME_UNSPECIFIED", |
| 1: "ARTIFACT_REGISTRY", |
| 2: "BUILD", |
| 3: "SERVICE", |
| 4: "TRIGGER", |
| 5: "SERVICE_ROLLBACK", |
| 6: "TRIGGER_ROLLBACK", |
| } |
| Stage_Name_value = map[string]int32{ |
| "NAME_UNSPECIFIED": 0, |
| "ARTIFACT_REGISTRY": 1, |
| "BUILD": 2, |
| "SERVICE": 3, |
| "TRIGGER": 4, |
| "SERVICE_ROLLBACK": 5, |
| "TRIGGER_ROLLBACK": 6, |
| } |
| ) |
| |
| func (x Stage_Name) Enum() *Stage_Name { |
| p := new(Stage_Name) |
| *p = x |
| return p |
| } |
| |
| func (x Stage_Name) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (Stage_Name) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_functions_v2beta_functions_proto_enumTypes[10].Descriptor() |
| } |
| |
| func (Stage_Name) Type() protoreflect.EnumType { |
| return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[10] |
| } |
| |
| func (x Stage_Name) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use Stage_Name.Descriptor instead. |
| func (Stage_Name) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{28, 0} |
| } |
| |
| // Possible states for a Stage |
| type Stage_State int32 |
| |
| const ( |
| // Not specified. Invalid state. |
| Stage_STATE_UNSPECIFIED Stage_State = 0 |
| // Stage has not started. |
| Stage_NOT_STARTED Stage_State = 1 |
| // Stage is in progress. |
| Stage_IN_PROGRESS Stage_State = 2 |
| // Stage has completed. |
| Stage_COMPLETE Stage_State = 3 |
| ) |
| |
| // Enum value maps for Stage_State. |
| var ( |
| Stage_State_name = map[int32]string{ |
| 0: "STATE_UNSPECIFIED", |
| 1: "NOT_STARTED", |
| 2: "IN_PROGRESS", |
| 3: "COMPLETE", |
| } |
| Stage_State_value = map[string]int32{ |
| "STATE_UNSPECIFIED": 0, |
| "NOT_STARTED": 1, |
| "IN_PROGRESS": 2, |
| "COMPLETE": 3, |
| } |
| ) |
| |
| func (x Stage_State) Enum() *Stage_State { |
| p := new(Stage_State) |
| *p = x |
| return p |
| } |
| |
| func (x Stage_State) String() string { |
| return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| } |
| |
| func (Stage_State) Descriptor() protoreflect.EnumDescriptor { |
| return file_google_cloud_functions_v2beta_functions_proto_enumTypes[11].Descriptor() |
| } |
| |
| func (Stage_State) Type() protoreflect.EnumType { |
| return &file_google_cloud_functions_v2beta_functions_proto_enumTypes[11] |
| } |
| |
| func (x Stage_State) Number() protoreflect.EnumNumber { |
| return protoreflect.EnumNumber(x) |
| } |
| |
| // Deprecated: Use Stage_State.Descriptor instead. |
| func (Stage_State) EnumDescriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{28, 1} |
| } |
| |
| // Describes a Cloud Function that contains user computation executed in |
| // response to an event. It encapsulates function and trigger configurations. |
| type Function struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // A user-defined name of the function. Function names must be unique |
| // globally and match pattern `projects/*/locations/*/functions/*` |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // User-provided description of a function. |
| Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` |
| // Describes the Build step of the function that builds a container from the |
| // given source. |
| BuildConfig *BuildConfig `protobuf:"bytes,3,opt,name=build_config,json=buildConfig,proto3" json:"build_config,omitempty"` |
| // Describes the Service being deployed. Currently deploys services to Cloud |
| // Run (fully managed). |
| ServiceConfig *ServiceConfig `protobuf:"bytes,4,opt,name=service_config,json=serviceConfig,proto3" json:"service_config,omitempty"` |
| // An Eventarc trigger managed by Google Cloud Functions that fires events in |
| // response to a condition in another service. |
| EventTrigger *EventTrigger `protobuf:"bytes,5,opt,name=event_trigger,json=eventTrigger,proto3" json:"event_trigger,omitempty"` |
| // Output only. State of the function. |
| State Function_State `protobuf:"varint,6,opt,name=state,proto3,enum=google.cloud.functions.v2beta.Function_State" json:"state,omitempty"` |
| // Output only. The last update timestamp of a Cloud Function. |
| UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` |
| // Labels associated with this Cloud Function. |
| Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
| // Output only. State Messages for this Cloud Function. |
| StateMessages []*StateMessage `protobuf:"bytes,9,rep,name=state_messages,json=stateMessages,proto3" json:"state_messages,omitempty"` |
| // Describe whether the function is 1st Gen or 2nd Gen. |
| Environment Environment `protobuf:"varint,10,opt,name=environment,proto3,enum=google.cloud.functions.v2beta.Environment" json:"environment,omitempty"` |
| // Output only. The deployed url for the function. |
| Url string `protobuf:"bytes,14,opt,name=url,proto3" json:"url,omitempty"` |
| // [Preview] Resource name of a KMS crypto key (managed by the user) used to |
| // encrypt/decrypt function resources. |
| // |
| // It must match the pattern |
| // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. |
| KmsKeyName string `protobuf:"bytes,25,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"` |
| // Output only. Reserved for future use. |
| SatisfiesPzs bool `protobuf:"varint,27,opt,name=satisfies_pzs,json=satisfiesPzs,proto3" json:"satisfies_pzs,omitempty"` |
| // Output only. The create timestamp of a Cloud Function. This is only |
| // applicable to 2nd Gen functions. |
| CreateTime *timestamppb.Timestamp `protobuf:"bytes,28,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Function) Reset() { |
| *x = Function{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Function) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Function) ProtoMessage() {} |
| |
| func (x *Function) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[0] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Function.ProtoReflect.Descriptor instead. |
| func (*Function) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *Function) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| func (x *Function) GetDescription() string { |
| if x != nil { |
| return x.Description |
| } |
| return "" |
| } |
| |
| func (x *Function) GetBuildConfig() *BuildConfig { |
| if x != nil { |
| return x.BuildConfig |
| } |
| return nil |
| } |
| |
| func (x *Function) GetServiceConfig() *ServiceConfig { |
| if x != nil { |
| return x.ServiceConfig |
| } |
| return nil |
| } |
| |
| func (x *Function) GetEventTrigger() *EventTrigger { |
| if x != nil { |
| return x.EventTrigger |
| } |
| return nil |
| } |
| |
| func (x *Function) GetState() Function_State { |
| if x != nil { |
| return x.State |
| } |
| return Function_STATE_UNSPECIFIED |
| } |
| |
| func (x *Function) GetUpdateTime() *timestamppb.Timestamp { |
| if x != nil { |
| return x.UpdateTime |
| } |
| return nil |
| } |
| |
| func (x *Function) GetLabels() map[string]string { |
| if x != nil { |
| return x.Labels |
| } |
| return nil |
| } |
| |
| func (x *Function) GetStateMessages() []*StateMessage { |
| if x != nil { |
| return x.StateMessages |
| } |
| return nil |
| } |
| |
| func (x *Function) GetEnvironment() Environment { |
| if x != nil { |
| return x.Environment |
| } |
| return Environment_ENVIRONMENT_UNSPECIFIED |
| } |
| |
| func (x *Function) GetUrl() string { |
| if x != nil { |
| return x.Url |
| } |
| return "" |
| } |
| |
| func (x *Function) GetKmsKeyName() string { |
| if x != nil { |
| return x.KmsKeyName |
| } |
| return "" |
| } |
| |
| func (x *Function) GetSatisfiesPzs() bool { |
| if x != nil { |
| return x.SatisfiesPzs |
| } |
| return false |
| } |
| |
| func (x *Function) GetCreateTime() *timestamppb.Timestamp { |
| if x != nil { |
| return x.CreateTime |
| } |
| return nil |
| } |
| |
| // Informational messages about the state of the Cloud Function or Operation. |
| type StateMessage struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Severity of the state message. |
| Severity StateMessage_Severity `protobuf:"varint,1,opt,name=severity,proto3,enum=google.cloud.functions.v2beta.StateMessage_Severity" json:"severity,omitempty"` |
| // One-word CamelCase type of the state message. |
| Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` |
| // The message. |
| Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *StateMessage) Reset() { |
| *x = StateMessage{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *StateMessage) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*StateMessage) ProtoMessage() {} |
| |
| func (x *StateMessage) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[1] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use StateMessage.ProtoReflect.Descriptor instead. |
| func (*StateMessage) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *StateMessage) GetSeverity() StateMessage_Severity { |
| if x != nil { |
| return x.Severity |
| } |
| return StateMessage_SEVERITY_UNSPECIFIED |
| } |
| |
| func (x *StateMessage) GetType() string { |
| if x != nil { |
| return x.Type |
| } |
| return "" |
| } |
| |
| func (x *StateMessage) GetMessage() string { |
| if x != nil { |
| return x.Message |
| } |
| return "" |
| } |
| |
| // Location of the source in an archive file in Google Cloud Storage. |
| type StorageSource struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Google Cloud Storage bucket containing the source (see |
| // [Bucket Name |
| // Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). |
| Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` |
| // Google Cloud Storage object containing the source. |
| // |
| // This object must be a gzipped archive file (`.tar.gz`) containing source to |
| // build. |
| Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` |
| // Google Cloud Storage generation for the object. If the generation is |
| // omitted, the latest generation will be used. |
| Generation int64 `protobuf:"varint,3,opt,name=generation,proto3" json:"generation,omitempty"` |
| // When the specified storage bucket is a 1st gen function uploard url bucket, |
| // this field should be set as the generated upload url for 1st gen |
| // deployment. |
| SourceUploadUrl string `protobuf:"bytes,4,opt,name=source_upload_url,json=sourceUploadUrl,proto3" json:"source_upload_url,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *StorageSource) Reset() { |
| *x = StorageSource{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *StorageSource) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*StorageSource) ProtoMessage() {} |
| |
| func (x *StorageSource) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[2] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use StorageSource.ProtoReflect.Descriptor instead. |
| func (*StorageSource) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{2} |
| } |
| |
| func (x *StorageSource) GetBucket() string { |
| if x != nil { |
| return x.Bucket |
| } |
| return "" |
| } |
| |
| func (x *StorageSource) GetObject() string { |
| if x != nil { |
| return x.Object |
| } |
| return "" |
| } |
| |
| func (x *StorageSource) GetGeneration() int64 { |
| if x != nil { |
| return x.Generation |
| } |
| return 0 |
| } |
| |
| func (x *StorageSource) GetSourceUploadUrl() string { |
| if x != nil { |
| return x.SourceUploadUrl |
| } |
| return "" |
| } |
| |
| // Location of the source in a Google Cloud Source Repository. |
| type RepoSource struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // A revision within the Cloud Source Repository must be specified in |
| // one of these ways. |
| // |
| // Types that are valid to be assigned to Revision: |
| // |
| // *RepoSource_BranchName |
| // *RepoSource_TagName |
| // *RepoSource_CommitSha |
| Revision isRepoSource_Revision `protobuf_oneof:"revision"` |
| // ID of the project that owns the Cloud Source Repository. If omitted, the |
| // project ID requesting the build is assumed. |
| ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` |
| // Name of the Cloud Source Repository. |
| RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"` |
| // Directory, relative to the source root, in which to run the build. |
| // |
| // This must be a relative path. If a step's `dir` is specified and is an |
| // absolute path, this value is ignored for that step's execution. |
| // eg. helloworld (no leading slash allowed) |
| Dir string `protobuf:"bytes,6,opt,name=dir,proto3" json:"dir,omitempty"` |
| // Only trigger a build if the revision regex does NOT match the revision |
| // regex. |
| InvertRegex bool `protobuf:"varint,7,opt,name=invert_regex,json=invertRegex,proto3" json:"invert_regex,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *RepoSource) Reset() { |
| *x = RepoSource{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[3] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *RepoSource) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*RepoSource) ProtoMessage() {} |
| |
| func (x *RepoSource) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[3] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use RepoSource.ProtoReflect.Descriptor instead. |
| func (*RepoSource) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{3} |
| } |
| |
| func (x *RepoSource) GetRevision() isRepoSource_Revision { |
| if x != nil { |
| return x.Revision |
| } |
| return nil |
| } |
| |
| func (x *RepoSource) GetBranchName() string { |
| if x != nil { |
| if x, ok := x.Revision.(*RepoSource_BranchName); ok { |
| return x.BranchName |
| } |
| } |
| return "" |
| } |
| |
| func (x *RepoSource) GetTagName() string { |
| if x != nil { |
| if x, ok := x.Revision.(*RepoSource_TagName); ok { |
| return x.TagName |
| } |
| } |
| return "" |
| } |
| |
| func (x *RepoSource) GetCommitSha() string { |
| if x != nil { |
| if x, ok := x.Revision.(*RepoSource_CommitSha); ok { |
| return x.CommitSha |
| } |
| } |
| return "" |
| } |
| |
| func (x *RepoSource) GetProjectId() string { |
| if x != nil { |
| return x.ProjectId |
| } |
| return "" |
| } |
| |
| func (x *RepoSource) GetRepoName() string { |
| if x != nil { |
| return x.RepoName |
| } |
| return "" |
| } |
| |
| func (x *RepoSource) GetDir() string { |
| if x != nil { |
| return x.Dir |
| } |
| return "" |
| } |
| |
| func (x *RepoSource) GetInvertRegex() bool { |
| if x != nil { |
| return x.InvertRegex |
| } |
| return false |
| } |
| |
| type isRepoSource_Revision interface { |
| isRepoSource_Revision() |
| } |
| |
| type RepoSource_BranchName struct { |
| // Regex matching branches to build. |
| // |
| // The syntax of the regular expressions accepted is the syntax accepted by |
| // RE2 and described at https://github.com/google/re2/wiki/Syntax |
| BranchName string `protobuf:"bytes,3,opt,name=branch_name,json=branchName,proto3,oneof"` |
| } |
| |
| type RepoSource_TagName struct { |
| // Regex matching tags to build. |
| // |
| // The syntax of the regular expressions accepted is the syntax accepted by |
| // RE2 and described at https://github.com/google/re2/wiki/Syntax |
| TagName string `protobuf:"bytes,4,opt,name=tag_name,json=tagName,proto3,oneof"` |
| } |
| |
| type RepoSource_CommitSha struct { |
| // Explicit commit SHA to build. |
| CommitSha string `protobuf:"bytes,5,opt,name=commit_sha,json=commitSha,proto3,oneof"` |
| } |
| |
| func (*RepoSource_BranchName) isRepoSource_Revision() {} |
| |
| func (*RepoSource_TagName) isRepoSource_Revision() {} |
| |
| func (*RepoSource_CommitSha) isRepoSource_Revision() {} |
| |
| // The location of the function source code. |
| type Source struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Location of the source. |
| // At least one source needs to be provided for the deployment to succeed. |
| // |
| // Types that are valid to be assigned to Source: |
| // |
| // *Source_StorageSource |
| // *Source_RepoSource |
| // *Source_GitUri |
| Source isSource_Source `protobuf_oneof:"source"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Source) Reset() { |
| *x = Source{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[4] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Source) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Source) ProtoMessage() {} |
| |
| func (x *Source) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[4] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Source.ProtoReflect.Descriptor instead. |
| func (*Source) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{4} |
| } |
| |
| func (x *Source) GetSource() isSource_Source { |
| if x != nil { |
| return x.Source |
| } |
| return nil |
| } |
| |
| func (x *Source) GetStorageSource() *StorageSource { |
| if x != nil { |
| if x, ok := x.Source.(*Source_StorageSource); ok { |
| return x.StorageSource |
| } |
| } |
| return nil |
| } |
| |
| func (x *Source) GetRepoSource() *RepoSource { |
| if x != nil { |
| if x, ok := x.Source.(*Source_RepoSource); ok { |
| return x.RepoSource |
| } |
| } |
| return nil |
| } |
| |
| func (x *Source) GetGitUri() string { |
| if x != nil { |
| if x, ok := x.Source.(*Source_GitUri); ok { |
| return x.GitUri |
| } |
| } |
| return "" |
| } |
| |
| type isSource_Source interface { |
| isSource_Source() |
| } |
| |
| type Source_StorageSource struct { |
| // If provided, get the source from this location in Google Cloud Storage. |
| StorageSource *StorageSource `protobuf:"bytes,1,opt,name=storage_source,json=storageSource,proto3,oneof"` |
| } |
| |
| type Source_RepoSource struct { |
| // If provided, get the source from this location in a Cloud Source |
| // Repository. |
| RepoSource *RepoSource `protobuf:"bytes,2,opt,name=repo_source,json=repoSource,proto3,oneof"` |
| } |
| |
| type Source_GitUri struct { |
| // If provided, get the source from GitHub repository. This option is valid |
| // only for GCF 1st Gen function. |
| // Example: https://github.com/<user>/<repo>/blob/<commit>/<path-to-code> |
| GitUri string `protobuf:"bytes,3,opt,name=git_uri,json=gitUri,proto3,oneof"` |
| } |
| |
| func (*Source_StorageSource) isSource_Source() {} |
| |
| func (*Source_RepoSource) isSource_Source() {} |
| |
| func (*Source_GitUri) isSource_Source() {} |
| |
| // Provenance of the source. Ways to find the original source, or verify that |
| // some source was used for this build. |
| type SourceProvenance struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // A copy of the build's `source.storage_source`, if exists, with any |
| // generations resolved. |
| ResolvedStorageSource *StorageSource `protobuf:"bytes,1,opt,name=resolved_storage_source,json=resolvedStorageSource,proto3" json:"resolved_storage_source,omitempty"` |
| // A copy of the build's `source.repo_source`, if exists, with any |
| // revisions resolved. |
| ResolvedRepoSource *RepoSource `protobuf:"bytes,2,opt,name=resolved_repo_source,json=resolvedRepoSource,proto3" json:"resolved_repo_source,omitempty"` |
| // A copy of the build's `source.git_uri`, if exists, with any commits |
| // resolved. |
| GitUri string `protobuf:"bytes,3,opt,name=git_uri,json=gitUri,proto3" json:"git_uri,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *SourceProvenance) Reset() { |
| *x = SourceProvenance{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[5] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *SourceProvenance) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*SourceProvenance) ProtoMessage() {} |
| |
| func (x *SourceProvenance) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[5] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use SourceProvenance.ProtoReflect.Descriptor instead. |
| func (*SourceProvenance) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{5} |
| } |
| |
| func (x *SourceProvenance) GetResolvedStorageSource() *StorageSource { |
| if x != nil { |
| return x.ResolvedStorageSource |
| } |
| return nil |
| } |
| |
| func (x *SourceProvenance) GetResolvedRepoSource() *RepoSource { |
| if x != nil { |
| return x.ResolvedRepoSource |
| } |
| return nil |
| } |
| |
| func (x *SourceProvenance) GetGitUri() string { |
| if x != nil { |
| return x.GitUri |
| } |
| return "" |
| } |
| |
| // Describes the Build step of the function that builds a container from the |
| // given source. |
| type BuildConfig struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // This controls when security patches are applied to the runtime environment. |
| // |
| // Types that are valid to be assigned to RuntimeUpdatePolicy: |
| // |
| // *BuildConfig_AutomaticUpdatePolicy |
| // *BuildConfig_OnDeployUpdatePolicy |
| RuntimeUpdatePolicy isBuildConfig_RuntimeUpdatePolicy `protobuf_oneof:"runtime_update_policy"` |
| // Output only. The Cloud Build name of the latest successful deployment of |
| // the function. |
| Build string `protobuf:"bytes,1,opt,name=build,proto3" json:"build,omitempty"` |
| // The runtime in which to run the function. Required when deploying a new |
| // function, optional when updating an existing function. For a complete |
| // list of possible choices, see the |
| // [`gcloud` command |
| // reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime). |
| Runtime string `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"` |
| // The name of the function (as defined in source code) that will be |
| // executed. Defaults to the resource name suffix, if not specified. For |
| // backward compatibility, if function with given name is not found, then the |
| // system will try to use function named "function". |
| // For Node.js this is name of a function exported by the module specified |
| // in `source_location`. |
| EntryPoint string `protobuf:"bytes,3,opt,name=entry_point,json=entryPoint,proto3" json:"entry_point,omitempty"` |
| // The location of the function source code. |
| Source *Source `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` |
| // Output only. A permanent fixed identifier for source. |
| SourceProvenance *SourceProvenance `protobuf:"bytes,8,opt,name=source_provenance,json=sourceProvenance,proto3" json:"source_provenance,omitempty"` |
| // Name of the Cloud Build Custom Worker Pool that should be used to build the |
| // function. The format of this field is |
| // `projects/{project}/locations/{region}/workerPools/{workerPool}` where |
| // {project} and {region} are the project id and region respectively where the |
| // worker pool is defined and {workerPool} is the short name of the worker |
| // pool. |
| // |
| // If the project id is not the same as the function, then the Cloud |
| // Functions Service Agent |
| // (service-<project_number>@gcf-admin-robot.iam.gserviceaccount.com) must be |
| // granted the role Cloud Build Custom Workers Builder |
| // (roles/cloudbuild.customworkers.builder) in the project. |
| WorkerPool string `protobuf:"bytes,5,opt,name=worker_pool,json=workerPool,proto3" json:"worker_pool,omitempty"` |
| // User-provided build-time environment variables for the function |
| EnvironmentVariables map[string]string `protobuf:"bytes,6,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
| // Docker Registry to use for this deployment. This configuration is only |
| // applicable to 1st Gen functions, 2nd Gen functions can only use Artifact |
| // Registry. |
| // |
| // If unspecified, it defaults to `ARTIFACT_REGISTRY`. |
| // If `docker_repository` field is specified, this field should either be left |
| // unspecified or set to `ARTIFACT_REGISTRY`. |
| DockerRegistry BuildConfig_DockerRegistry `protobuf:"varint,10,opt,name=docker_registry,json=dockerRegistry,proto3,enum=google.cloud.functions.v2beta.BuildConfig_DockerRegistry" json:"docker_registry,omitempty"` |
| // Repository in Artifact Registry to which the function docker image will be |
| // pushed after it is built by Cloud Build. If specified by user, it is |
| // created and managed by user with a customer managed encryption key. |
| // Otherwise, GCF will create and use a repository named 'gcf-artifacts' |
| // for every deployed region. |
| // |
| // It must match the pattern |
| // `projects/{project}/locations/{location}/repositories/{repository}`. |
| // |
| // Cross-project repositories are not supported. |
| // Cross-location repositories are not supported. |
| // Repository format must be 'DOCKER'. |
| DockerRepository string `protobuf:"bytes,7,opt,name=docker_repository,json=dockerRepository,proto3" json:"docker_repository,omitempty"` |
| // Service account to be used for building the container. The format of this |
| // field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`. |
| ServiceAccount string `protobuf:"bytes,27,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *BuildConfig) Reset() { |
| *x = BuildConfig{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[6] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *BuildConfig) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*BuildConfig) ProtoMessage() {} |
| |
| func (x *BuildConfig) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[6] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use BuildConfig.ProtoReflect.Descriptor instead. |
| func (*BuildConfig) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{6} |
| } |
| |
| func (x *BuildConfig) GetRuntimeUpdatePolicy() isBuildConfig_RuntimeUpdatePolicy { |
| if x != nil { |
| return x.RuntimeUpdatePolicy |
| } |
| return nil |
| } |
| |
| func (x *BuildConfig) GetAutomaticUpdatePolicy() *AutomaticUpdatePolicy { |
| if x != nil { |
| if x, ok := x.RuntimeUpdatePolicy.(*BuildConfig_AutomaticUpdatePolicy); ok { |
| return x.AutomaticUpdatePolicy |
| } |
| } |
| return nil |
| } |
| |
| func (x *BuildConfig) GetOnDeployUpdatePolicy() *OnDeployUpdatePolicy { |
| if x != nil { |
| if x, ok := x.RuntimeUpdatePolicy.(*BuildConfig_OnDeployUpdatePolicy); ok { |
| return x.OnDeployUpdatePolicy |
| } |
| } |
| return nil |
| } |
| |
| func (x *BuildConfig) GetBuild() string { |
| if x != nil { |
| return x.Build |
| } |
| return "" |
| } |
| |
| func (x *BuildConfig) GetRuntime() string { |
| if x != nil { |
| return x.Runtime |
| } |
| return "" |
| } |
| |
| func (x *BuildConfig) GetEntryPoint() string { |
| if x != nil { |
| return x.EntryPoint |
| } |
| return "" |
| } |
| |
| func (x *BuildConfig) GetSource() *Source { |
| if x != nil { |
| return x.Source |
| } |
| return nil |
| } |
| |
| func (x *BuildConfig) GetSourceProvenance() *SourceProvenance { |
| if x != nil { |
| return x.SourceProvenance |
| } |
| return nil |
| } |
| |
| func (x *BuildConfig) GetWorkerPool() string { |
| if x != nil { |
| return x.WorkerPool |
| } |
| return "" |
| } |
| |
| func (x *BuildConfig) GetEnvironmentVariables() map[string]string { |
| if x != nil { |
| return x.EnvironmentVariables |
| } |
| return nil |
| } |
| |
| func (x *BuildConfig) GetDockerRegistry() BuildConfig_DockerRegistry { |
| if x != nil { |
| return x.DockerRegistry |
| } |
| return BuildConfig_DOCKER_REGISTRY_UNSPECIFIED |
| } |
| |
| func (x *BuildConfig) GetDockerRepository() string { |
| if x != nil { |
| return x.DockerRepository |
| } |
| return "" |
| } |
| |
| func (x *BuildConfig) GetServiceAccount() string { |
| if x != nil { |
| return x.ServiceAccount |
| } |
| return "" |
| } |
| |
| type isBuildConfig_RuntimeUpdatePolicy interface { |
| isBuildConfig_RuntimeUpdatePolicy() |
| } |
| |
| type BuildConfig_AutomaticUpdatePolicy struct { |
| AutomaticUpdatePolicy *AutomaticUpdatePolicy `protobuf:"bytes,40,opt,name=automatic_update_policy,json=automaticUpdatePolicy,proto3,oneof"` |
| } |
| |
| type BuildConfig_OnDeployUpdatePolicy struct { |
| OnDeployUpdatePolicy *OnDeployUpdatePolicy `protobuf:"bytes,41,opt,name=on_deploy_update_policy,json=onDeployUpdatePolicy,proto3,oneof"` |
| } |
| |
| func (*BuildConfig_AutomaticUpdatePolicy) isBuildConfig_RuntimeUpdatePolicy() {} |
| |
| func (*BuildConfig_OnDeployUpdatePolicy) isBuildConfig_RuntimeUpdatePolicy() {} |
| |
| // Describes the Service being deployed. |
| // Currently Supported : Cloud Run (fully managed). |
| type ServiceConfig struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Output only. Name of the service associated with a Function. |
| // The format of this field is |
| // `projects/{project}/locations/{region}/services/{service}` |
| Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` |
| // The function execution timeout. Execution is considered failed and |
| // can be terminated if the function is not completed at the end of the |
| // timeout period. Defaults to 60 seconds. |
| TimeoutSeconds int32 `protobuf:"varint,2,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"` |
| // The amount of memory available for a function. |
| // Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is |
| // supplied the value is interpreted as bytes. |
| // See |
| // https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go |
| // a full description. |
| AvailableMemory string `protobuf:"bytes,13,opt,name=available_memory,json=availableMemory,proto3" json:"available_memory,omitempty"` |
| // The number of CPUs used in a single container instance. |
| // Default value is calculated from available memory. |
| // Supports the same values as Cloud Run, see |
| // https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements |
| // Example: "1" indicates 1 vCPU |
| AvailableCpu string `protobuf:"bytes,22,opt,name=available_cpu,json=availableCpu,proto3" json:"available_cpu,omitempty"` |
| // Environment variables that shall be available during function execution. |
| EnvironmentVariables map[string]string `protobuf:"bytes,4,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
| // The limit on the maximum number of function instances that may coexist at a |
| // given time. |
| // |
| // In some cases, such as rapid traffic surges, Cloud Functions may, for a |
| // short period of time, create more instances than the specified max |
| // instances limit. If your function cannot tolerate this temporary behavior, |
| // you may want to factor in a safety margin and set a lower max instances |
| // value than your function can tolerate. |
| // |
| // See the [Max |
| // Instances](https://cloud.google.com/functions/docs/max-instances) Guide for |
| // more details. |
| MaxInstanceCount int32 `protobuf:"varint,5,opt,name=max_instance_count,json=maxInstanceCount,proto3" json:"max_instance_count,omitempty"` |
| // The limit on the minimum number of function instances that may coexist at a |
| // given time. |
| // |
| // Function instances are kept in idle state for a short period after they |
| // finished executing the request to reduce cold start time for subsequent |
| // requests. Setting a minimum instance count will ensure that the given |
| // number of instances are kept running in idle state always. This can help |
| // with cold start times when jump in incoming request count occurs after the |
| // idle instance would have been stopped in the default case. |
| MinInstanceCount int32 `protobuf:"varint,12,opt,name=min_instance_count,json=minInstanceCount,proto3" json:"min_instance_count,omitempty"` |
| // The Serverless VPC Access connector that this cloud function can connect |
| // to. The format of this field is `projects/*/locations/*/connectors/*`. |
| VpcConnector string `protobuf:"bytes,6,opt,name=vpc_connector,json=vpcConnector,proto3" json:"vpc_connector,omitempty"` |
| // The egress settings for the connector, controlling what traffic is diverted |
| // through it. |
| VpcConnectorEgressSettings ServiceConfig_VpcConnectorEgressSettings `protobuf:"varint,7,opt,name=vpc_connector_egress_settings,json=vpcConnectorEgressSettings,proto3,enum=google.cloud.functions.v2beta.ServiceConfig_VpcConnectorEgressSettings" json:"vpc_connector_egress_settings,omitempty"` |
| // The ingress settings for the function, controlling what traffic can reach |
| // it. |
| IngressSettings ServiceConfig_IngressSettings `protobuf:"varint,8,opt,name=ingress_settings,json=ingressSettings,proto3,enum=google.cloud.functions.v2beta.ServiceConfig_IngressSettings" json:"ingress_settings,omitempty"` |
| // Output only. URI of the Service deployed. |
| Uri string `protobuf:"bytes,9,opt,name=uri,proto3" json:"uri,omitempty"` |
| // The email of the service's service account. If empty, defaults to |
| // `{project_number}-compute@developer.gserviceaccount.com`. |
| ServiceAccountEmail string `protobuf:"bytes,10,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"` |
| // Whether 100% of traffic is routed to the latest revision. |
| // On CreateFunction and UpdateFunction, when set to true, the revision being |
| // deployed will serve 100% of traffic, ignoring any traffic split settings, |
| // if any. On GetFunction, true will be returned if the latest revision is |
| // serving 100% of traffic. |
| AllTrafficOnLatestRevision bool `protobuf:"varint,16,opt,name=all_traffic_on_latest_revision,json=allTrafficOnLatestRevision,proto3" json:"all_traffic_on_latest_revision,omitempty"` |
| // Secret environment variables configuration. |
| SecretEnvironmentVariables []*SecretEnvVar `protobuf:"bytes,17,rep,name=secret_environment_variables,json=secretEnvironmentVariables,proto3" json:"secret_environment_variables,omitempty"` |
| // Secret volumes configuration. |
| SecretVolumes []*SecretVolume `protobuf:"bytes,19,rep,name=secret_volumes,json=secretVolumes,proto3" json:"secret_volumes,omitempty"` |
| // Output only. The name of service revision. |
| Revision string `protobuf:"bytes,18,opt,name=revision,proto3" json:"revision,omitempty"` |
| // Sets the maximum number of concurrent requests that each instance |
| // can receive. Defaults to 1. |
| MaxInstanceRequestConcurrency int32 `protobuf:"varint,20,opt,name=max_instance_request_concurrency,json=maxInstanceRequestConcurrency,proto3" json:"max_instance_request_concurrency,omitempty"` |
| // Security level configure whether the function only accepts https. |
| // This configuration is only applicable to 1st Gen functions with Http |
| // trigger. By default https is optional for 1st Gen functions; 2nd Gen |
| // functions are https ONLY. |
| SecurityLevel ServiceConfig_SecurityLevel `protobuf:"varint,21,opt,name=security_level,json=securityLevel,proto3,enum=google.cloud.functions.v2beta.ServiceConfig_SecurityLevel" json:"security_level,omitempty"` |
| // Optional. The binary authorization policy to be checked when deploying the |
| // Cloud Run service. |
| BinaryAuthorizationPolicy string `protobuf:"bytes,23,opt,name=binary_authorization_policy,json=binaryAuthorizationPolicy,proto3" json:"binary_authorization_policy,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *ServiceConfig) Reset() { |
| *x = ServiceConfig{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[7] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *ServiceConfig) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ServiceConfig) ProtoMessage() {} |
| |
| func (x *ServiceConfig) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[7] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ServiceConfig.ProtoReflect.Descriptor instead. |
| func (*ServiceConfig) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{7} |
| } |
| |
| func (x *ServiceConfig) GetService() string { |
| if x != nil { |
| return x.Service |
| } |
| return "" |
| } |
| |
| func (x *ServiceConfig) GetTimeoutSeconds() int32 { |
| if x != nil { |
| return x.TimeoutSeconds |
| } |
| return 0 |
| } |
| |
| func (x *ServiceConfig) GetAvailableMemory() string { |
| if x != nil { |
| return x.AvailableMemory |
| } |
| return "" |
| } |
| |
| func (x *ServiceConfig) GetAvailableCpu() string { |
| if x != nil { |
| return x.AvailableCpu |
| } |
| return "" |
| } |
| |
| func (x *ServiceConfig) GetEnvironmentVariables() map[string]string { |
| if x != nil { |
| return x.EnvironmentVariables |
| } |
| return nil |
| } |
| |
| func (x *ServiceConfig) GetMaxInstanceCount() int32 { |
| if x != nil { |
| return x.MaxInstanceCount |
| } |
| return 0 |
| } |
| |
| func (x *ServiceConfig) GetMinInstanceCount() int32 { |
| if x != nil { |
| return x.MinInstanceCount |
| } |
| return 0 |
| } |
| |
| func (x *ServiceConfig) GetVpcConnector() string { |
| if x != nil { |
| return x.VpcConnector |
| } |
| return "" |
| } |
| |
| func (x *ServiceConfig) GetVpcConnectorEgressSettings() ServiceConfig_VpcConnectorEgressSettings { |
| if x != nil { |
| return x.VpcConnectorEgressSettings |
| } |
| return ServiceConfig_VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED |
| } |
| |
| func (x *ServiceConfig) GetIngressSettings() ServiceConfig_IngressSettings { |
| if x != nil { |
| return x.IngressSettings |
| } |
| return ServiceConfig_INGRESS_SETTINGS_UNSPECIFIED |
| } |
| |
| func (x *ServiceConfig) GetUri() string { |
| if x != nil { |
| return x.Uri |
| } |
| return "" |
| } |
| |
| func (x *ServiceConfig) GetServiceAccountEmail() string { |
| if x != nil { |
| return x.ServiceAccountEmail |
| } |
| return "" |
| } |
| |
| func (x *ServiceConfig) GetAllTrafficOnLatestRevision() bool { |
| if x != nil { |
| return x.AllTrafficOnLatestRevision |
| } |
| return false |
| } |
| |
| func (x *ServiceConfig) GetSecretEnvironmentVariables() []*SecretEnvVar { |
| if x != nil { |
| return x.SecretEnvironmentVariables |
| } |
| return nil |
| } |
| |
| func (x *ServiceConfig) GetSecretVolumes() []*SecretVolume { |
| if x != nil { |
| return x.SecretVolumes |
| } |
| return nil |
| } |
| |
| func (x *ServiceConfig) GetRevision() string { |
| if x != nil { |
| return x.Revision |
| } |
| return "" |
| } |
| |
| func (x *ServiceConfig) GetMaxInstanceRequestConcurrency() int32 { |
| if x != nil { |
| return x.MaxInstanceRequestConcurrency |
| } |
| return 0 |
| } |
| |
| func (x *ServiceConfig) GetSecurityLevel() ServiceConfig_SecurityLevel { |
| if x != nil { |
| return x.SecurityLevel |
| } |
| return ServiceConfig_SECURITY_LEVEL_UNSPECIFIED |
| } |
| |
| func (x *ServiceConfig) GetBinaryAuthorizationPolicy() string { |
| if x != nil { |
| return x.BinaryAuthorizationPolicy |
| } |
| return "" |
| } |
| |
| // Configuration for a secret environment variable. It has the information |
| // necessary to fetch the secret value from secret manager and expose it as an |
| // environment variable. |
| type SecretEnvVar struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Name of the environment variable. |
| Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| // Project identifier (preferably project number but can also be the |
| // project ID) of the project that contains the secret. If not set, it is |
| // assumed that the secret is in the same project as the function. |
| ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` |
| // Name of the secret in secret manager (not the full resource name). |
| Secret string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` |
| // Version of the secret (version number or the string 'latest'). It is |
| // recommended to use a numeric version for secret environment variables as |
| // any updates to the secret value is not reflected until new instances |
| // start. |
| Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *SecretEnvVar) Reset() { |
| *x = SecretEnvVar{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[8] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *SecretEnvVar) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*SecretEnvVar) ProtoMessage() {} |
| |
| func (x *SecretEnvVar) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[8] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use SecretEnvVar.ProtoReflect.Descriptor instead. |
| func (*SecretEnvVar) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{8} |
| } |
| |
| func (x *SecretEnvVar) GetKey() string { |
| if x != nil { |
| return x.Key |
| } |
| return "" |
| } |
| |
| func (x *SecretEnvVar) GetProjectId() string { |
| if x != nil { |
| return x.ProjectId |
| } |
| return "" |
| } |
| |
| func (x *SecretEnvVar) GetSecret() string { |
| if x != nil { |
| return x.Secret |
| } |
| return "" |
| } |
| |
| func (x *SecretEnvVar) GetVersion() string { |
| if x != nil { |
| return x.Version |
| } |
| return "" |
| } |
| |
| // Configuration for a secret volume. It has the information necessary to fetch |
| // the secret value from secret manager and make it available as files mounted |
| // at the requested paths within the application container. |
| type SecretVolume struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // The path within the container to mount the secret volume. For example, |
| // setting the mount_path as `/etc/secrets` would mount the secret value files |
| // under the `/etc/secrets` directory. This directory will also be completely |
| // shadowed and unavailable to mount any other secrets. |
| // Recommended mount path: /etc/secrets |
| MountPath string `protobuf:"bytes,1,opt,name=mount_path,json=mountPath,proto3" json:"mount_path,omitempty"` |
| // Project identifier (preferably project number but can also be the project |
| // ID) of the project that contains the secret. If not set, it is |
| // assumed that the secret is in the same project as the function. |
| ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` |
| // Name of the secret in secret manager (not the full resource name). |
| Secret string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` |
| // List of secret versions to mount for this secret. If empty, the `latest` |
| // version of the secret will be made available in a file named after the |
| // secret under the mount point. |
| Versions []*SecretVolume_SecretVersion `protobuf:"bytes,4,rep,name=versions,proto3" json:"versions,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *SecretVolume) Reset() { |
| *x = SecretVolume{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[9] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *SecretVolume) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*SecretVolume) ProtoMessage() {} |
| |
| func (x *SecretVolume) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[9] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use SecretVolume.ProtoReflect.Descriptor instead. |
| func (*SecretVolume) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{9} |
| } |
| |
| func (x *SecretVolume) GetMountPath() string { |
| if x != nil { |
| return x.MountPath |
| } |
| return "" |
| } |
| |
| func (x *SecretVolume) GetProjectId() string { |
| if x != nil { |
| return x.ProjectId |
| } |
| return "" |
| } |
| |
| func (x *SecretVolume) GetSecret() string { |
| if x != nil { |
| return x.Secret |
| } |
| return "" |
| } |
| |
| func (x *SecretVolume) GetVersions() []*SecretVolume_SecretVersion { |
| if x != nil { |
| return x.Versions |
| } |
| return nil |
| } |
| |
| // Describes EventTrigger, used to request events to be sent from another |
| // service. |
| type EventTrigger struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Output only. The resource name of the Eventarc trigger. The format of this |
| // field is `projects/{project}/locations/{region}/triggers/{trigger}`. |
| Trigger string `protobuf:"bytes,1,opt,name=trigger,proto3" json:"trigger,omitempty"` |
| // The region that the trigger will be in. The trigger will only receive |
| // events originating in this region. It can be the same |
| // region as the function, a different region or multi-region, or the global |
| // region. If not provided, defaults to the same region as the function. |
| TriggerRegion string `protobuf:"bytes,2,opt,name=trigger_region,json=triggerRegion,proto3" json:"trigger_region,omitempty"` |
| // Required. The type of event to observe. For example: |
| // `google.cloud.audit.log.v1.written` or |
| // `google.cloud.pubsub.topic.v1.messagePublished`. |
| EventType string `protobuf:"bytes,3,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` |
| // Criteria used to filter events. |
| EventFilters []*EventFilter `protobuf:"bytes,4,rep,name=event_filters,json=eventFilters,proto3" json:"event_filters,omitempty"` |
| // Optional. The name of a Pub/Sub topic in the same project that will be used |
| // as the transport topic for the event delivery. Format: |
| // `projects/{project}/topics/{topic}`. |
| // |
| // This is only valid for events of type |
| // `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here |
| // will not be deleted at function deletion. |
| PubsubTopic string `protobuf:"bytes,5,opt,name=pubsub_topic,json=pubsubTopic,proto3" json:"pubsub_topic,omitempty"` |
| // Optional. The email of the trigger's service account. The service account |
| // must have permission to invoke Cloud Run services, the permission is |
| // `run.routes.invoke`. |
| // If empty, defaults to the Compute Engine default service account: |
| // `{project_number}-compute@developer.gserviceaccount.com`. |
| ServiceAccountEmail string `protobuf:"bytes,6,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"` |
| // Optional. If unset, then defaults to ignoring failures (i.e. not retrying |
| // them). |
| RetryPolicy EventTrigger_RetryPolicy `protobuf:"varint,7,opt,name=retry_policy,json=retryPolicy,proto3,enum=google.cloud.functions.v2beta.EventTrigger_RetryPolicy" json:"retry_policy,omitempty"` |
| // Optional. The name of the channel associated with the trigger in |
| // `projects/{project}/locations/{location}/channels/{channel}` format. |
| // You must provide a channel to receive events from Eventarc SaaS partners. |
| Channel string `protobuf:"bytes,8,opt,name=channel,proto3" json:"channel,omitempty"` |
| // Optional. The hostname of the service that 1st Gen function should be |
| // observed. |
| // |
| // If no string is provided, the default service implementing the API will |
| // be used. For example, `storage.googleapis.com` is the default for all |
| // event types in the `google.storage` namespace. |
| // |
| // The field is only applicable to 1st Gen functions. |
| Service string `protobuf:"bytes,9,opt,name=service,proto3" json:"service,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *EventTrigger) Reset() { |
| *x = EventTrigger{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[10] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *EventTrigger) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*EventTrigger) ProtoMessage() {} |
| |
| func (x *EventTrigger) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[10] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use EventTrigger.ProtoReflect.Descriptor instead. |
| func (*EventTrigger) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{10} |
| } |
| |
| func (x *EventTrigger) GetTrigger() string { |
| if x != nil { |
| return x.Trigger |
| } |
| return "" |
| } |
| |
| func (x *EventTrigger) GetTriggerRegion() string { |
| if x != nil { |
| return x.TriggerRegion |
| } |
| return "" |
| } |
| |
| func (x *EventTrigger) GetEventType() string { |
| if x != nil { |
| return x.EventType |
| } |
| return "" |
| } |
| |
| func (x *EventTrigger) GetEventFilters() []*EventFilter { |
| if x != nil { |
| return x.EventFilters |
| } |
| return nil |
| } |
| |
| func (x *EventTrigger) GetPubsubTopic() string { |
| if x != nil { |
| return x.PubsubTopic |
| } |
| return "" |
| } |
| |
| func (x *EventTrigger) GetServiceAccountEmail() string { |
| if x != nil { |
| return x.ServiceAccountEmail |
| } |
| return "" |
| } |
| |
| func (x *EventTrigger) GetRetryPolicy() EventTrigger_RetryPolicy { |
| if x != nil { |
| return x.RetryPolicy |
| } |
| return EventTrigger_RETRY_POLICY_UNSPECIFIED |
| } |
| |
| func (x *EventTrigger) GetChannel() string { |
| if x != nil { |
| return x.Channel |
| } |
| return "" |
| } |
| |
| func (x *EventTrigger) GetService() string { |
| if x != nil { |
| return x.Service |
| } |
| return "" |
| } |
| |
| // Filters events based on exact matches on the CloudEvents attributes. |
| type EventFilter struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Required. The name of a CloudEvents attribute. |
| Attribute string `protobuf:"bytes,1,opt,name=attribute,proto3" json:"attribute,omitempty"` |
| // Required. The value for the attribute. |
| Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` |
| // Optional. The operator used for matching the events with the value of the |
| // filter. If not specified, only events that have an exact key-value pair |
| // specified in the filter are matched. The only allowed value is |
| // `match-path-pattern`. |
| Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *EventFilter) Reset() { |
| *x = EventFilter{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[11] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *EventFilter) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*EventFilter) ProtoMessage() {} |
| |
| func (x *EventFilter) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[11] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use EventFilter.ProtoReflect.Descriptor instead. |
| func (*EventFilter) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{11} |
| } |
| |
| func (x *EventFilter) GetAttribute() string { |
| if x != nil { |
| return x.Attribute |
| } |
| return "" |
| } |
| |
| func (x *EventFilter) GetValue() string { |
| if x != nil { |
| return x.Value |
| } |
| return "" |
| } |
| |
| func (x *EventFilter) GetOperator() string { |
| if x != nil { |
| return x.Operator |
| } |
| return "" |
| } |
| |
| // Request for the `GetFunction` method. |
| type GetFunctionRequest struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Required. The name of the function which details should be obtained. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // Optional. The optional version of the 1st gen function whose details should |
| // be obtained. The version of a 1st gen function is an integer that starts |
| // from 1 and gets incremented on redeployments. GCF may keep historical |
| // configs for old versions of 1st gen function. This field can be specified |
| // to fetch the historical configs. This field is valid only for GCF 1st gen |
| // function. |
| Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *GetFunctionRequest) Reset() { |
| *x = GetFunctionRequest{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[12] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *GetFunctionRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*GetFunctionRequest) ProtoMessage() {} |
| |
| func (x *GetFunctionRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[12] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use GetFunctionRequest.ProtoReflect.Descriptor instead. |
| func (*GetFunctionRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{12} |
| } |
| |
| func (x *GetFunctionRequest) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| func (x *GetFunctionRequest) GetRevision() string { |
| if x != nil { |
| return x.Revision |
| } |
| return "" |
| } |
| |
| // Request for the `ListFunctions` method. |
| type ListFunctionsRequest struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Required. The project and location from which the function should be |
| // listed, specified in the format `projects/*/locations/*` If you want to |
| // list functions in all locations, use "-" in place of a location. When |
| // listing functions in all locations, if one or more location(s) are |
| // unreachable, the response will contain functions from all reachable |
| // locations along with the names of any unreachable locations. |
| Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| // Maximum number of functions to return per call. The largest allowed |
| // page_size is 1,000, if the page_size is omitted or specified as greater |
| // than 1,000 then it will be replaced as 1,000. The size of the list |
| // response can be less than specified when used with filters. |
| PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` |
| // The value returned by the last |
| // `ListFunctionsResponse`; indicates that |
| // this is a continuation of a prior `ListFunctions` call, and that the |
| // system should return the next page of data. |
| PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` |
| // The filter for Functions that match the filter expression, |
| // following the syntax outlined in https://google.aip.dev/160. |
| Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` |
| // The sorting order of the resources returned. Value should be a comma |
| // separated list of fields. The default sorting oder is ascending. |
| // See https://google.aip.dev/132#ordering. |
| OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *ListFunctionsRequest) Reset() { |
| *x = ListFunctionsRequest{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[13] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *ListFunctionsRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ListFunctionsRequest) ProtoMessage() {} |
| |
| func (x *ListFunctionsRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[13] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ListFunctionsRequest.ProtoReflect.Descriptor instead. |
| func (*ListFunctionsRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{13} |
| } |
| |
| func (x *ListFunctionsRequest) GetParent() string { |
| if x != nil { |
| return x.Parent |
| } |
| return "" |
| } |
| |
| func (x *ListFunctionsRequest) GetPageSize() int32 { |
| if x != nil { |
| return x.PageSize |
| } |
| return 0 |
| } |
| |
| func (x *ListFunctionsRequest) GetPageToken() string { |
| if x != nil { |
| return x.PageToken |
| } |
| return "" |
| } |
| |
| func (x *ListFunctionsRequest) GetFilter() string { |
| if x != nil { |
| return x.Filter |
| } |
| return "" |
| } |
| |
| func (x *ListFunctionsRequest) GetOrderBy() string { |
| if x != nil { |
| return x.OrderBy |
| } |
| return "" |
| } |
| |
| // Response for the `ListFunctions` method. |
| type ListFunctionsResponse struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // The functions that match the request. |
| Functions []*Function `protobuf:"bytes,1,rep,name=functions,proto3" json:"functions,omitempty"` |
| // A token, which can be sent as `page_token` to retrieve the next page. |
| // If this field is omitted, there are no subsequent pages. |
| NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` |
| // Locations that could not be reached. The response does not include any |
| // functions from these locations. |
| Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *ListFunctionsResponse) Reset() { |
| *x = ListFunctionsResponse{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[14] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *ListFunctionsResponse) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ListFunctionsResponse) ProtoMessage() {} |
| |
| func (x *ListFunctionsResponse) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[14] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ListFunctionsResponse.ProtoReflect.Descriptor instead. |
| func (*ListFunctionsResponse) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{14} |
| } |
| |
| func (x *ListFunctionsResponse) GetFunctions() []*Function { |
| if x != nil { |
| return x.Functions |
| } |
| return nil |
| } |
| |
| func (x *ListFunctionsResponse) GetNextPageToken() string { |
| if x != nil { |
| return x.NextPageToken |
| } |
| return "" |
| } |
| |
| func (x *ListFunctionsResponse) GetUnreachable() []string { |
| if x != nil { |
| return x.Unreachable |
| } |
| return nil |
| } |
| |
| // Request for the `CreateFunction` method. |
| type CreateFunctionRequest struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Required. The project and location in which the function should be created, |
| // specified in the format `projects/*/locations/*` |
| Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| // Required. Function to be created. |
| Function *Function `protobuf:"bytes,2,opt,name=function,proto3" json:"function,omitempty"` |
| // The ID to use for the function, which will become the final component of |
| // the function's resource name. |
| // |
| // This value should be 4-63 characters, and valid characters |
| // are /[a-z][0-9]-/. |
| FunctionId string `protobuf:"bytes,3,opt,name=function_id,json=functionId,proto3" json:"function_id,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *CreateFunctionRequest) Reset() { |
| *x = CreateFunctionRequest{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[15] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *CreateFunctionRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*CreateFunctionRequest) ProtoMessage() {} |
| |
| func (x *CreateFunctionRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[15] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use CreateFunctionRequest.ProtoReflect.Descriptor instead. |
| func (*CreateFunctionRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{15} |
| } |
| |
| func (x *CreateFunctionRequest) GetParent() string { |
| if x != nil { |
| return x.Parent |
| } |
| return "" |
| } |
| |
| func (x *CreateFunctionRequest) GetFunction() *Function { |
| if x != nil { |
| return x.Function |
| } |
| return nil |
| } |
| |
| func (x *CreateFunctionRequest) GetFunctionId() string { |
| if x != nil { |
| return x.FunctionId |
| } |
| return "" |
| } |
| |
| // Request for the `UpdateFunction` method. |
| type UpdateFunctionRequest struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Required. New version of the function. |
| Function *Function `protobuf:"bytes,1,opt,name=function,proto3" json:"function,omitempty"` |
| // The list of fields to be updated. |
| // If no field mask is provided, all fields will be updated. |
| UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *UpdateFunctionRequest) Reset() { |
| *x = UpdateFunctionRequest{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[16] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *UpdateFunctionRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*UpdateFunctionRequest) ProtoMessage() {} |
| |
| func (x *UpdateFunctionRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[16] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use UpdateFunctionRequest.ProtoReflect.Descriptor instead. |
| func (*UpdateFunctionRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{16} |
| } |
| |
| func (x *UpdateFunctionRequest) GetFunction() *Function { |
| if x != nil { |
| return x.Function |
| } |
| return nil |
| } |
| |
| func (x *UpdateFunctionRequest) GetUpdateMask() *fieldmaskpb.FieldMask { |
| if x != nil { |
| return x.UpdateMask |
| } |
| return nil |
| } |
| |
| // Request for the `DeleteFunction` method. |
| type DeleteFunctionRequest struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Required. The name of the function which should be deleted. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *DeleteFunctionRequest) Reset() { |
| *x = DeleteFunctionRequest{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[17] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *DeleteFunctionRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DeleteFunctionRequest) ProtoMessage() {} |
| |
| func (x *DeleteFunctionRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[17] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use DeleteFunctionRequest.ProtoReflect.Descriptor instead. |
| func (*DeleteFunctionRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{17} |
| } |
| |
| func (x *DeleteFunctionRequest) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| // Request of `GenerateSourceUploadUrl` method. |
| type GenerateUploadUrlRequest struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Required. The project and location in which the Google Cloud Storage signed |
| // URL should be generated, specified in the format `projects/*/locations/*`. |
| Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| // [Preview] Resource name of a KMS crypto key (managed by the user) used to |
| // encrypt/decrypt function source code objects in intermediate Cloud Storage |
| // buckets. When you generate an upload url and upload your source code, it |
| // gets copied to an intermediate Cloud Storage bucket. The source code is |
| // then copied to a versioned directory in the sources bucket in the consumer |
| // project during the function deployment. |
| // |
| // It must match the pattern |
| // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. |
| // |
| // The Google Cloud Functions service account |
| // (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be |
| // granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter |
| // (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the |
| // Key/KeyRing/Project/Organization (least access preferred). |
| KmsKeyName string `protobuf:"bytes,2,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"` |
| // The function environment the generated upload url will be used for. |
| // The upload url for 2nd Gen functions can also be used for 1st gen |
| // functions, but not vice versa. If not specified, 2nd generation-style |
| // upload URLs are generated. |
| Environment Environment `protobuf:"varint,3,opt,name=environment,proto3,enum=google.cloud.functions.v2beta.Environment" json:"environment,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *GenerateUploadUrlRequest) Reset() { |
| *x = GenerateUploadUrlRequest{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[18] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *GenerateUploadUrlRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*GenerateUploadUrlRequest) ProtoMessage() {} |
| |
| func (x *GenerateUploadUrlRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[18] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use GenerateUploadUrlRequest.ProtoReflect.Descriptor instead. |
| func (*GenerateUploadUrlRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{18} |
| } |
| |
| func (x *GenerateUploadUrlRequest) GetParent() string { |
| if x != nil { |
| return x.Parent |
| } |
| return "" |
| } |
| |
| func (x *GenerateUploadUrlRequest) GetKmsKeyName() string { |
| if x != nil { |
| return x.KmsKeyName |
| } |
| return "" |
| } |
| |
| func (x *GenerateUploadUrlRequest) GetEnvironment() Environment { |
| if x != nil { |
| return x.Environment |
| } |
| return Environment_ENVIRONMENT_UNSPECIFIED |
| } |
| |
| // Response of `GenerateSourceUploadUrl` method. |
| type GenerateUploadUrlResponse struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // The generated Google Cloud Storage signed URL that should be used for a |
| // function source code upload. The uploaded file should be a zip archive |
| // which contains a function. |
| UploadUrl string `protobuf:"bytes,1,opt,name=upload_url,json=uploadUrl,proto3" json:"upload_url,omitempty"` |
| // The location of the source code in the upload bucket. |
| // |
| // Once the archive is uploaded using the `upload_url` use this field to |
| // set the `function.build_config.source.storage_source` |
| // during CreateFunction and UpdateFunction. |
| // |
| // Generation defaults to 0, as Cloud Storage provides a new generation only |
| // upon uploading a new object or version of an object. |
| StorageSource *StorageSource `protobuf:"bytes,2,opt,name=storage_source,json=storageSource,proto3" json:"storage_source,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *GenerateUploadUrlResponse) Reset() { |
| *x = GenerateUploadUrlResponse{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[19] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *GenerateUploadUrlResponse) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*GenerateUploadUrlResponse) ProtoMessage() {} |
| |
| func (x *GenerateUploadUrlResponse) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[19] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use GenerateUploadUrlResponse.ProtoReflect.Descriptor instead. |
| func (*GenerateUploadUrlResponse) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{19} |
| } |
| |
| func (x *GenerateUploadUrlResponse) GetUploadUrl() string { |
| if x != nil { |
| return x.UploadUrl |
| } |
| return "" |
| } |
| |
| func (x *GenerateUploadUrlResponse) GetStorageSource() *StorageSource { |
| if x != nil { |
| return x.StorageSource |
| } |
| return nil |
| } |
| |
| // Request of `GenerateDownloadUrl` method. |
| type GenerateDownloadUrlRequest struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Required. The name of function for which source code Google Cloud Storage |
| // signed URL should be generated. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *GenerateDownloadUrlRequest) Reset() { |
| *x = GenerateDownloadUrlRequest{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[20] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *GenerateDownloadUrlRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*GenerateDownloadUrlRequest) ProtoMessage() {} |
| |
| func (x *GenerateDownloadUrlRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[20] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use GenerateDownloadUrlRequest.ProtoReflect.Descriptor instead. |
| func (*GenerateDownloadUrlRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{20} |
| } |
| |
| func (x *GenerateDownloadUrlRequest) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| // Response of `GenerateDownloadUrl` method. |
| type GenerateDownloadUrlResponse struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // The generated Google Cloud Storage signed URL that should be used for |
| // function source code download. |
| DownloadUrl string `protobuf:"bytes,1,opt,name=download_url,json=downloadUrl,proto3" json:"download_url,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *GenerateDownloadUrlResponse) Reset() { |
| *x = GenerateDownloadUrlResponse{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[21] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *GenerateDownloadUrlResponse) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*GenerateDownloadUrlResponse) ProtoMessage() {} |
| |
| func (x *GenerateDownloadUrlResponse) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[21] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use GenerateDownloadUrlResponse.ProtoReflect.Descriptor instead. |
| func (*GenerateDownloadUrlResponse) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{21} |
| } |
| |
| func (x *GenerateDownloadUrlResponse) GetDownloadUrl() string { |
| if x != nil { |
| return x.DownloadUrl |
| } |
| return "" |
| } |
| |
| // Request for the `ListRuntimes` method. |
| type ListRuntimesRequest struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Required. The project and location from which the runtimes should be |
| // listed, specified in the format `projects/*/locations/*` |
| Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| // The filter for Runtimes that match the filter expression, |
| // following the syntax outlined in https://google.aip.dev/160. |
| Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *ListRuntimesRequest) Reset() { |
| *x = ListRuntimesRequest{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[22] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *ListRuntimesRequest) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ListRuntimesRequest) ProtoMessage() {} |
| |
| func (x *ListRuntimesRequest) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[22] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ListRuntimesRequest.ProtoReflect.Descriptor instead. |
| func (*ListRuntimesRequest) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{22} |
| } |
| |
| func (x *ListRuntimesRequest) GetParent() string { |
| if x != nil { |
| return x.Parent |
| } |
| return "" |
| } |
| |
| func (x *ListRuntimesRequest) GetFilter() string { |
| if x != nil { |
| return x.Filter |
| } |
| return "" |
| } |
| |
| // Response for the `ListRuntimes` method. |
| type ListRuntimesResponse struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // The runtimes that match the request. |
| Runtimes []*ListRuntimesResponse_Runtime `protobuf:"bytes,1,rep,name=runtimes,proto3" json:"runtimes,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *ListRuntimesResponse) Reset() { |
| *x = ListRuntimesResponse{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[23] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *ListRuntimesResponse) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ListRuntimesResponse) ProtoMessage() {} |
| |
| func (x *ListRuntimesResponse) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[23] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ListRuntimesResponse.ProtoReflect.Descriptor instead. |
| func (*ListRuntimesResponse) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{23} |
| } |
| |
| func (x *ListRuntimesResponse) GetRuntimes() []*ListRuntimesResponse_Runtime { |
| if x != nil { |
| return x.Runtimes |
| } |
| return nil |
| } |
| |
| // Security patches are applied automatically to the runtime without requiring |
| // the function to be redeployed. |
| type AutomaticUpdatePolicy struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *AutomaticUpdatePolicy) Reset() { |
| *x = AutomaticUpdatePolicy{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[24] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *AutomaticUpdatePolicy) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*AutomaticUpdatePolicy) ProtoMessage() {} |
| |
| func (x *AutomaticUpdatePolicy) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[24] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use AutomaticUpdatePolicy.ProtoReflect.Descriptor instead. |
| func (*AutomaticUpdatePolicy) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{24} |
| } |
| |
| // Security patches are only applied when a function is redeployed. |
| type OnDeployUpdatePolicy struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Output only. contains the runtime version which was used during latest |
| // function deployment. |
| RuntimeVersion string `protobuf:"bytes,1,opt,name=runtime_version,json=runtimeVersion,proto3" json:"runtime_version,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *OnDeployUpdatePolicy) Reset() { |
| *x = OnDeployUpdatePolicy{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[25] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *OnDeployUpdatePolicy) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*OnDeployUpdatePolicy) ProtoMessage() {} |
| |
| func (x *OnDeployUpdatePolicy) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[25] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use OnDeployUpdatePolicy.ProtoReflect.Descriptor instead. |
| func (*OnDeployUpdatePolicy) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{25} |
| } |
| |
| func (x *OnDeployUpdatePolicy) GetRuntimeVersion() string { |
| if x != nil { |
| return x.RuntimeVersion |
| } |
| return "" |
| } |
| |
| // Represents the metadata of the long-running operation. |
| type OperationMetadata struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // The time the operation was created. |
| CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` |
| // The time the operation finished running. |
| EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` |
| // Server-defined resource path for the target of the operation. |
| Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` |
| // Name of the verb executed by the operation. |
| Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"` |
| // Human-readable status of the operation, if any. |
| StatusDetail string `protobuf:"bytes,5,opt,name=status_detail,json=statusDetail,proto3" json:"status_detail,omitempty"` |
| // Identifies whether the user has requested cancellation |
| // of the operation. Operations that have successfully been cancelled |
| // have |
| // [google.longrunning.Operation.error][google.longrunning.Operation.error] |
| // value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, |
| // corresponding to `Code.CANCELLED`. |
| CancelRequested bool `protobuf:"varint,6,opt,name=cancel_requested,json=cancelRequested,proto3" json:"cancel_requested,omitempty"` |
| // API version used to start the operation. |
| ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` |
| // The original request that started the operation. |
| RequestResource *anypb.Any `protobuf:"bytes,8,opt,name=request_resource,json=requestResource,proto3" json:"request_resource,omitempty"` |
| // Mechanism for reporting in-progress stages |
| Stages []*Stage `protobuf:"bytes,9,rep,name=stages,proto3" json:"stages,omitempty"` |
| // The build name of the function for create and update operations. |
| BuildName string `protobuf:"bytes,13,opt,name=build_name,json=buildName,proto3" json:"build_name,omitempty"` |
| // The operation type. |
| OperationType OperationType `protobuf:"varint,11,opt,name=operation_type,json=operationType,proto3,enum=google.cloud.functions.v2beta.OperationType" json:"operation_type,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *OperationMetadata) Reset() { |
| *x = OperationMetadata{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[26] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *OperationMetadata) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*OperationMetadata) ProtoMessage() {} |
| |
| func (x *OperationMetadata) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[26] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead. |
| func (*OperationMetadata) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{26} |
| } |
| |
| func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { |
| if x != nil { |
| return x.CreateTime |
| } |
| return nil |
| } |
| |
| func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { |
| if x != nil { |
| return x.EndTime |
| } |
| return nil |
| } |
| |
| func (x *OperationMetadata) GetTarget() string { |
| if x != nil { |
| return x.Target |
| } |
| return "" |
| } |
| |
| func (x *OperationMetadata) GetVerb() string { |
| if x != nil { |
| return x.Verb |
| } |
| return "" |
| } |
| |
| func (x *OperationMetadata) GetStatusDetail() string { |
| if x != nil { |
| return x.StatusDetail |
| } |
| return "" |
| } |
| |
| func (x *OperationMetadata) GetCancelRequested() bool { |
| if x != nil { |
| return x.CancelRequested |
| } |
| return false |
| } |
| |
| func (x *OperationMetadata) GetApiVersion() string { |
| if x != nil { |
| return x.ApiVersion |
| } |
| return "" |
| } |
| |
| func (x *OperationMetadata) GetRequestResource() *anypb.Any { |
| if x != nil { |
| return x.RequestResource |
| } |
| return nil |
| } |
| |
| func (x *OperationMetadata) GetStages() []*Stage { |
| if x != nil { |
| return x.Stages |
| } |
| return nil |
| } |
| |
| func (x *OperationMetadata) GetBuildName() string { |
| if x != nil { |
| return x.BuildName |
| } |
| return "" |
| } |
| |
| func (x *OperationMetadata) GetOperationType() OperationType { |
| if x != nil { |
| return x.OperationType |
| } |
| return OperationType_OPERATIONTYPE_UNSPECIFIED |
| } |
| |
| // Extra GCF specific location information. |
| type LocationMetadata struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // The Cloud Function environments this location supports. |
| Environments []Environment `protobuf:"varint,1,rep,packed,name=environments,proto3,enum=google.cloud.functions.v2beta.Environment" json:"environments,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *LocationMetadata) Reset() { |
| *x = LocationMetadata{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[27] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *LocationMetadata) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*LocationMetadata) ProtoMessage() {} |
| |
| func (x *LocationMetadata) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[27] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use LocationMetadata.ProtoReflect.Descriptor instead. |
| func (*LocationMetadata) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{27} |
| } |
| |
| func (x *LocationMetadata) GetEnvironments() []Environment { |
| if x != nil { |
| return x.Environments |
| } |
| return nil |
| } |
| |
| // Each Stage of the deployment process |
| type Stage struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Name of the Stage. This will be unique for each Stage. |
| Name Stage_Name `protobuf:"varint,1,opt,name=name,proto3,enum=google.cloud.functions.v2beta.Stage_Name" json:"name,omitempty"` |
| // Message describing the Stage |
| Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` |
| // Current state of the Stage |
| State Stage_State `protobuf:"varint,3,opt,name=state,proto3,enum=google.cloud.functions.v2beta.Stage_State" json:"state,omitempty"` |
| // Resource of the Stage |
| Resource string `protobuf:"bytes,4,opt,name=resource,proto3" json:"resource,omitempty"` |
| // Link to the current Stage resource |
| ResourceUri string `protobuf:"bytes,5,opt,name=resource_uri,json=resourceUri,proto3" json:"resource_uri,omitempty"` |
| // State messages from the current Stage. |
| StateMessages []*StateMessage `protobuf:"bytes,6,rep,name=state_messages,json=stateMessages,proto3" json:"state_messages,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *Stage) Reset() { |
| *x = Stage{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[28] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *Stage) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*Stage) ProtoMessage() {} |
| |
| func (x *Stage) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[28] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use Stage.ProtoReflect.Descriptor instead. |
| func (*Stage) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{28} |
| } |
| |
| func (x *Stage) GetName() Stage_Name { |
| if x != nil { |
| return x.Name |
| } |
| return Stage_NAME_UNSPECIFIED |
| } |
| |
| func (x *Stage) GetMessage() string { |
| if x != nil { |
| return x.Message |
| } |
| return "" |
| } |
| |
| func (x *Stage) GetState() Stage_State { |
| if x != nil { |
| return x.State |
| } |
| return Stage_STATE_UNSPECIFIED |
| } |
| |
| func (x *Stage) GetResource() string { |
| if x != nil { |
| return x.Resource |
| } |
| return "" |
| } |
| |
| func (x *Stage) GetResourceUri() string { |
| if x != nil { |
| return x.ResourceUri |
| } |
| return "" |
| } |
| |
| func (x *Stage) GetStateMessages() []*StateMessage { |
| if x != nil { |
| return x.StateMessages |
| } |
| return nil |
| } |
| |
| // Configuration for a single version. |
| type SecretVolume_SecretVersion struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Version of the secret (version number or the string 'latest'). It is |
| // preferable to use `latest` version with secret volumes as secret value |
| // changes are reflected immediately. |
| Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` |
| // Relative path of the file under the mount path where the secret value for |
| // this version will be fetched and made available. For example, setting the |
| // mount_path as '/etc/secrets' and path as `secret_foo` would mount the |
| // secret value file at `/etc/secrets/secret_foo`. |
| Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *SecretVolume_SecretVersion) Reset() { |
| *x = SecretVolume_SecretVersion{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[32] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *SecretVolume_SecretVersion) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*SecretVolume_SecretVersion) ProtoMessage() {} |
| |
| func (x *SecretVolume_SecretVersion) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[32] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use SecretVolume_SecretVersion.ProtoReflect.Descriptor instead. |
| func (*SecretVolume_SecretVersion) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{9, 0} |
| } |
| |
| func (x *SecretVolume_SecretVersion) GetVersion() string { |
| if x != nil { |
| return x.Version |
| } |
| return "" |
| } |
| |
| func (x *SecretVolume_SecretVersion) GetPath() string { |
| if x != nil { |
| return x.Path |
| } |
| return "" |
| } |
| |
| // Describes a runtime and any special information (e.g., deprecation status) |
| // related to it. |
| type ListRuntimesResponse_Runtime struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // The name of the runtime, e.g., 'go113', 'nodejs12', etc. |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| // The user facing name, eg 'Go 1.13', 'Node.js 12', etc. |
| DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` |
| // The stage of life this runtime is in, e.g., BETA, GA, etc. |
| Stage ListRuntimesResponse_RuntimeStage `protobuf:"varint,2,opt,name=stage,proto3,enum=google.cloud.functions.v2beta.ListRuntimesResponse_RuntimeStage" json:"stage,omitempty"` |
| // Warning messages, e.g., a deprecation warning. |
| Warnings []string `protobuf:"bytes,3,rep,name=warnings,proto3" json:"warnings,omitempty"` |
| // The environment for the runtime. |
| Environment Environment `protobuf:"varint,4,opt,name=environment,proto3,enum=google.cloud.functions.v2beta.Environment" json:"environment,omitempty"` |
| // Deprecation date for the runtime. |
| DeprecationDate *date.Date `protobuf:"bytes,6,opt,name=deprecation_date,json=deprecationDate,proto3" json:"deprecation_date,omitempty"` |
| // Decommission date for the runtime. |
| DecommissionDate *date.Date `protobuf:"bytes,7,opt,name=decommission_date,json=decommissionDate,proto3" json:"decommission_date,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *ListRuntimesResponse_Runtime) Reset() { |
| *x = ListRuntimesResponse_Runtime{} |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[33] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *ListRuntimesResponse_Runtime) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*ListRuntimesResponse_Runtime) ProtoMessage() {} |
| |
| func (x *ListRuntimesResponse_Runtime) ProtoReflect() protoreflect.Message { |
| mi := &file_google_cloud_functions_v2beta_functions_proto_msgTypes[33] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use ListRuntimesResponse_Runtime.ProtoReflect.Descriptor instead. |
| func (*ListRuntimesResponse_Runtime) Descriptor() ([]byte, []int) { |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP(), []int{23, 0} |
| } |
| |
| func (x *ListRuntimesResponse_Runtime) GetName() string { |
| if x != nil { |
| return x.Name |
| } |
| return "" |
| } |
| |
| func (x *ListRuntimesResponse_Runtime) GetDisplayName() string { |
| if x != nil { |
| return x.DisplayName |
| } |
| return "" |
| } |
| |
| func (x *ListRuntimesResponse_Runtime) GetStage() ListRuntimesResponse_RuntimeStage { |
| if x != nil { |
| return x.Stage |
| } |
| return ListRuntimesResponse_RUNTIME_STAGE_UNSPECIFIED |
| } |
| |
| func (x *ListRuntimesResponse_Runtime) GetWarnings() []string { |
| if x != nil { |
| return x.Warnings |
| } |
| return nil |
| } |
| |
| func (x *ListRuntimesResponse_Runtime) GetEnvironment() Environment { |
| if x != nil { |
| return x.Environment |
| } |
| return Environment_ENVIRONMENT_UNSPECIFIED |
| } |
| |
| func (x *ListRuntimesResponse_Runtime) GetDeprecationDate() *date.Date { |
| if x != nil { |
| return x.DeprecationDate |
| } |
| return nil |
| } |
| |
| func (x *ListRuntimesResponse_Runtime) GetDecommissionDate() *date.Date { |
| if x != nil { |
| return x.DecommissionDate |
| } |
| return nil |
| } |
| |
| var File_google_cloud_functions_v2beta_functions_proto protoreflect.FileDescriptor |
| |
| const file_google_cloud_functions_v2beta_functions_proto_rawDesc = "" + |
| "\n" + |
| "-google/cloud/functions/v2beta/functions.proto\x12\x1dgoogle.cloud.functions.v2beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x16google/type/date.proto\"\xa0\t\n" + |
| "\bFunction\x12\x12\n" + |
| "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + |
| "\vdescription\x18\x02 \x01(\tR\vdescription\x12M\n" + |
| "\fbuild_config\x18\x03 \x01(\v2*.google.cloud.functions.v2beta.BuildConfigR\vbuildConfig\x12S\n" + |
| "\x0eservice_config\x18\x04 \x01(\v2,.google.cloud.functions.v2beta.ServiceConfigR\rserviceConfig\x12P\n" + |
| "\revent_trigger\x18\x05 \x01(\v2+.google.cloud.functions.v2beta.EventTriggerR\feventTrigger\x12H\n" + |
| "\x05state\x18\x06 \x01(\x0e2-.google.cloud.functions.v2beta.Function.StateB\x03\xe0A\x03R\x05state\x12@\n" + |
| "\vupdate_time\x18\a \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" + |
| "updateTime\x12K\n" + |
| "\x06labels\x18\b \x03(\v23.google.cloud.functions.v2beta.Function.LabelsEntryR\x06labels\x12W\n" + |
| "\x0estate_messages\x18\t \x03(\v2+.google.cloud.functions.v2beta.StateMessageB\x03\xe0A\x03R\rstateMessages\x12L\n" + |
| "\venvironment\x18\n" + |
| " \x01(\x0e2*.google.cloud.functions.v2beta.EnvironmentR\venvironment\x12\x15\n" + |
| "\x03url\x18\x0e \x01(\tB\x03\xe0A\x03R\x03url\x12H\n" + |
| "\fkms_key_name\x18\x19 \x01(\tB&\xfaA#\n" + |
| "!cloudkms.googleapis.com/CryptoKeyR\n" + |
| "kmsKeyName\x12(\n" + |
| "\rsatisfies_pzs\x18\x1b \x01(\bB\x03\xe0A\x03R\fsatisfiesPzs\x12@\n" + |
| "\vcreate_time\x18\x1c \x01(\v2\x1a.google.protobuf.TimestampB\x03\xe0A\x03R\n" + |
| "createTime\x1a9\n" + |
| "\vLabelsEntry\x12\x10\n" + |
| "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + |
| "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"`\n" + |
| "\x05State\x12\x15\n" + |
| "\x11STATE_UNSPECIFIED\x10\x00\x12\n" + |
| "\n" + |
| "\x06ACTIVE\x10\x01\x12\n" + |
| "\n" + |
| "\x06FAILED\x10\x02\x12\r\n" + |
| "\tDEPLOYING\x10\x03\x12\f\n" + |
| "\bDELETING\x10\x04\x12\v\n" + |
| "\aUNKNOWN\x10\x05:~\xeaA{\n" + |
| "&cloudfunctions.googleapis.com/Function\x12<projects/{project}/locations/{location}/functions/{function}*\tfunctions2\bfunction\"\xd6\x01\n" + |
| "\fStateMessage\x12P\n" + |
| "\bseverity\x18\x01 \x01(\x0e24.google.cloud.functions.v2beta.StateMessage.SeverityR\bseverity\x12\x12\n" + |
| "\x04type\x18\x02 \x01(\tR\x04type\x12\x18\n" + |
| "\amessage\x18\x03 \x01(\tR\amessage\"F\n" + |
| "\bSeverity\x12\x18\n" + |
| "\x14SEVERITY_UNSPECIFIED\x10\x00\x12\t\n" + |
| "\x05ERROR\x10\x01\x12\v\n" + |
| "\aWARNING\x10\x02\x12\b\n" + |
| "\x04INFO\x10\x03\"\x8b\x01\n" + |
| "\rStorageSource\x12\x16\n" + |
| "\x06bucket\x18\x01 \x01(\tR\x06bucket\x12\x16\n" + |
| "\x06object\x18\x02 \x01(\tR\x06object\x12\x1e\n" + |
| "\n" + |
| "generation\x18\x03 \x01(\x03R\n" + |
| "generation\x12*\n" + |
| "\x11source_upload_url\x18\x04 \x01(\tR\x0fsourceUploadUrl\"\xea\x01\n" + |
| "\n" + |
| "RepoSource\x12!\n" + |
| "\vbranch_name\x18\x03 \x01(\tH\x00R\n" + |
| "branchName\x12\x1b\n" + |
| "\btag_name\x18\x04 \x01(\tH\x00R\atagName\x12\x1f\n" + |
| "\n" + |
| "commit_sha\x18\x05 \x01(\tH\x00R\tcommitSha\x12\x1d\n" + |
| "\n" + |
| "project_id\x18\x01 \x01(\tR\tprojectId\x12\x1b\n" + |
| "\trepo_name\x18\x02 \x01(\tR\brepoName\x12\x10\n" + |
| "\x03dir\x18\x06 \x01(\tR\x03dir\x12!\n" + |
| "\finvert_regex\x18\a \x01(\bR\vinvertRegexB\n" + |
| "\n" + |
| "\brevision\"\xd2\x01\n" + |
| "\x06Source\x12U\n" + |
| "\x0estorage_source\x18\x01 \x01(\v2,.google.cloud.functions.v2beta.StorageSourceH\x00R\rstorageSource\x12L\n" + |
| "\vrepo_source\x18\x02 \x01(\v2).google.cloud.functions.v2beta.RepoSourceH\x00R\n" + |
| "repoSource\x12\x19\n" + |
| "\agit_uri\x18\x03 \x01(\tH\x00R\x06gitUriB\b\n" + |
| "\x06source\"\xee\x01\n" + |
| "\x10SourceProvenance\x12d\n" + |
| "\x17resolved_storage_source\x18\x01 \x01(\v2,.google.cloud.functions.v2beta.StorageSourceR\x15resolvedStorageSource\x12[\n" + |
| "\x14resolved_repo_source\x18\x02 \x01(\v2).google.cloud.functions.v2beta.RepoSourceR\x12resolvedRepoSource\x12\x17\n" + |
| "\agit_uri\x18\x03 \x01(\tR\x06gitUri\"\xfd\b\n" + |
| "\vBuildConfig\x12n\n" + |
| "\x17automatic_update_policy\x18( \x01(\v24.google.cloud.functions.v2beta.AutomaticUpdatePolicyH\x00R\x15automaticUpdatePolicy\x12l\n" + |
| "\x17on_deploy_update_policy\x18) \x01(\v23.google.cloud.functions.v2beta.OnDeployUpdatePolicyH\x00R\x14onDeployUpdatePolicy\x12=\n" + |
| "\x05build\x18\x01 \x01(\tB'\xe0A\x03\xfaA!\n" + |
| "\x1fcloudbuild.googleapis.com/BuildR\x05build\x12\x18\n" + |
| "\aruntime\x18\x02 \x01(\tR\aruntime\x12\x1f\n" + |
| "\ventry_point\x18\x03 \x01(\tR\n" + |
| "entryPoint\x12=\n" + |
| "\x06source\x18\x04 \x01(\v2%.google.cloud.functions.v2beta.SourceR\x06source\x12a\n" + |
| "\x11source_provenance\x18\b \x01(\v2/.google.cloud.functions.v2beta.SourceProvenanceB\x03\xe0A\x03R\x10sourceProvenance\x12J\n" + |
| "\vworker_pool\x18\x05 \x01(\tB)\xfaA&\n" + |
| "$cloudbuild.googleapis.com/WorkerPoolR\n" + |
| "workerPool\x12y\n" + |
| "\x15environment_variables\x18\x06 \x03(\v2D.google.cloud.functions.v2beta.BuildConfig.EnvironmentVariablesEntryR\x14environmentVariables\x12b\n" + |
| "\x0fdocker_registry\x18\n" + |
| " \x01(\x0e29.google.cloud.functions.v2beta.BuildConfig.DockerRegistryR\x0edockerRegistry\x12\\\n" + |
| "\x11docker_repository\x18\a \x01(\tB/\xfaA,\n" + |
| "*artifactregistry.googleapis.com/RepositoryR\x10dockerRepository\x12'\n" + |
| "\x0fservice_account\x18\x1b \x01(\tR\x0eserviceAccount\x1aG\n" + |
| "\x19EnvironmentVariablesEntry\x12\x10\n" + |
| "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + |
| "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"`\n" + |
| "\x0eDockerRegistry\x12\x1f\n" + |
| "\x1bDOCKER_REGISTRY_UNSPECIFIED\x10\x00\x12\x16\n" + |
| "\x12CONTAINER_REGISTRY\x10\x01\x12\x15\n" + |
| "\x11ARTIFACT_REGISTRY\x10\x02B\x17\n" + |
| "\x15runtime_update_policy\"\xda\r\n" + |
| "\rServiceConfig\x12<\n" + |
| "\aservice\x18\x01 \x01(\tB\"\xe0A\x03\xfaA\x1c\n" + |
| "\x1arun.googleapis.com/ServiceR\aservice\x12'\n" + |
| "\x0ftimeout_seconds\x18\x02 \x01(\x05R\x0etimeoutSeconds\x12)\n" + |
| "\x10available_memory\x18\r \x01(\tR\x0favailableMemory\x12#\n" + |
| "\ravailable_cpu\x18\x16 \x01(\tR\favailableCpu\x12{\n" + |
| "\x15environment_variables\x18\x04 \x03(\v2F.google.cloud.functions.v2beta.ServiceConfig.EnvironmentVariablesEntryR\x14environmentVariables\x12,\n" + |
| "\x12max_instance_count\x18\x05 \x01(\x05R\x10maxInstanceCount\x12,\n" + |
| "\x12min_instance_count\x18\f \x01(\x05R\x10minInstanceCount\x12L\n" + |
| "\rvpc_connector\x18\x06 \x01(\tB'\xfaA$\n" + |
| "\"vpcaccess.googleapis.com/ConnectorR\fvpcConnector\x12\x8a\x01\n" + |
| "\x1dvpc_connector_egress_settings\x18\a \x01(\x0e2G.google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettingsR\x1avpcConnectorEgressSettings\x12g\n" + |
| "\x10ingress_settings\x18\b \x01(\x0e2<.google.cloud.functions.v2beta.ServiceConfig.IngressSettingsR\x0fingressSettings\x12\x15\n" + |
| "\x03uri\x18\t \x01(\tB\x03\xe0A\x03R\x03uri\x122\n" + |
| "\x15service_account_email\x18\n" + |
| " \x01(\tR\x13serviceAccountEmail\x12B\n" + |
| "\x1eall_traffic_on_latest_revision\x18\x10 \x01(\bR\x1aallTrafficOnLatestRevision\x12m\n" + |
| "\x1csecret_environment_variables\x18\x11 \x03(\v2+.google.cloud.functions.v2beta.SecretEnvVarR\x1asecretEnvironmentVariables\x12R\n" + |
| "\x0esecret_volumes\x18\x13 \x03(\v2+.google.cloud.functions.v2beta.SecretVolumeR\rsecretVolumes\x12\x1f\n" + |
| "\brevision\x18\x12 \x01(\tB\x03\xe0A\x03R\brevision\x12G\n" + |
| " max_instance_request_concurrency\x18\x14 \x01(\x05R\x1dmaxInstanceRequestConcurrency\x12a\n" + |
| "\x0esecurity_level\x18\x15 \x01(\x0e2:.google.cloud.functions.v2beta.ServiceConfig.SecurityLevelR\rsecurityLevel\x12C\n" + |
| "\x1bbinary_authorization_policy\x18\x17 \x01(\tB\x03\xe0A\x01R\x19binaryAuthorizationPolicy\x1aG\n" + |
| "\x19EnvironmentVariablesEntry\x12\x10\n" + |
| "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + |
| "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"u\n" + |
| "\x1aVpcConnectorEgressSettings\x12-\n" + |
| ")VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED\x10\x00\x12\x17\n" + |
| "\x13PRIVATE_RANGES_ONLY\x10\x01\x12\x0f\n" + |
| "\vALL_TRAFFIC\x10\x02\"x\n" + |
| "\x0fIngressSettings\x12 \n" + |
| "\x1cINGRESS_SETTINGS_UNSPECIFIED\x10\x00\x12\r\n" + |
| "\tALLOW_ALL\x10\x01\x12\x17\n" + |
| "\x13ALLOW_INTERNAL_ONLY\x10\x02\x12\x1b\n" + |
| "\x17ALLOW_INTERNAL_AND_GCLB\x10\x03\"W\n" + |
| "\rSecurityLevel\x12\x1e\n" + |
| "\x1aSECURITY_LEVEL_UNSPECIFIED\x10\x00\x12\x11\n" + |
| "\rSECURE_ALWAYS\x10\x01\x12\x13\n" + |
| "\x0fSECURE_OPTIONAL\x10\x02\"q\n" + |
| "\fSecretEnvVar\x12\x10\n" + |
| "\x03key\x18\x01 \x01(\tR\x03key\x12\x1d\n" + |
| "\n" + |
| "project_id\x18\x02 \x01(\tR\tprojectId\x12\x16\n" + |
| "\x06secret\x18\x03 \x01(\tR\x06secret\x12\x18\n" + |
| "\aversion\x18\x04 \x01(\tR\aversion\"\xfa\x01\n" + |
| "\fSecretVolume\x12\x1d\n" + |
| "\n" + |
| "mount_path\x18\x01 \x01(\tR\tmountPath\x12\x1d\n" + |
| "\n" + |
| "project_id\x18\x02 \x01(\tR\tprojectId\x12\x16\n" + |
| "\x06secret\x18\x03 \x01(\tR\x06secret\x12U\n" + |
| "\bversions\x18\x04 \x03(\v29.google.cloud.functions.v2beta.SecretVolume.SecretVersionR\bversions\x1a=\n" + |
| "\rSecretVersion\x12\x18\n" + |
| "\aversion\x18\x01 \x01(\tR\aversion\x12\x12\n" + |
| "\x04path\x18\x02 \x01(\tR\x04path\"\x95\x05\n" + |
| "\fEventTrigger\x12A\n" + |
| "\atrigger\x18\x01 \x01(\tB'\xe0A\x03\xfaA!\n" + |
| "\x1feventarc.googleapis.com/TriggerR\atrigger\x12%\n" + |
| "\x0etrigger_region\x18\x02 \x01(\tR\rtriggerRegion\x12\"\n" + |
| "\n" + |
| "event_type\x18\x03 \x01(\tB\x03\xe0A\x02R\teventType\x12O\n" + |
| "\revent_filters\x18\x04 \x03(\v2*.google.cloud.functions.v2beta.EventFilterR\feventFilters\x12F\n" + |
| "\fpubsub_topic\x18\x05 \x01(\tB#\xe0A\x01\xfaA\x1d\n" + |
| "\x1bpubsub.googleapis.com/TopicR\vpubsubTopic\x127\n" + |
| "\x15service_account_email\x18\x06 \x01(\tB\x03\xe0A\x01R\x13serviceAccountEmail\x12_\n" + |
| "\fretry_policy\x18\a \x01(\x0e27.google.cloud.functions.v2beta.EventTrigger.RetryPolicyB\x03\xe0A\x01R\vretryPolicy\x12A\n" + |
| "\achannel\x18\b \x01(\tB'\xe0A\x01\xfaA!\n" + |
| "\x1feventarc.googleapis.com/ChannelR\achannel\x12\x1d\n" + |
| "\aservice\x18\t \x01(\tB\x03\xe0A\x01R\aservice\"b\n" + |
| "\vRetryPolicy\x12\x1c\n" + |
| "\x18RETRY_POLICY_UNSPECIFIED\x10\x00\x12\x1d\n" + |
| "\x19RETRY_POLICY_DO_NOT_RETRY\x10\x01\x12\x16\n" + |
| "\x12RETRY_POLICY_RETRY\x10\x02\"l\n" + |
| "\vEventFilter\x12!\n" + |
| "\tattribute\x18\x01 \x01(\tB\x03\xe0A\x02R\tattribute\x12\x19\n" + |
| "\x05value\x18\x02 \x01(\tB\x03\xe0A\x02R\x05value\x12\x1f\n" + |
| "\boperator\x18\x03 \x01(\tB\x03\xe0A\x01R\boperator\"y\n" + |
| "\x12GetFunctionRequest\x12B\n" + |
| "\x04name\x18\x01 \x01(\tB.\xe0A\x02\xfaA(\n" + |
| "&cloudfunctions.googleapis.com/FunctionR\x04name\x12\x1f\n" + |
| "\brevision\x18\x02 \x01(\tB\x03\xe0A\x01R\brevision\"\xcd\x01\n" + |
| "\x14ListFunctionsRequest\x12F\n" + |
| "\x06parent\x18\x01 \x01(\tB.\xe0A\x02\xfaA(\x12&cloudfunctions.googleapis.com/FunctionR\x06parent\x12\x1b\n" + |
| "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12\x1d\n" + |
| "\n" + |
| "page_token\x18\x03 \x01(\tR\tpageToken\x12\x16\n" + |
| "\x06filter\x18\x04 \x01(\tR\x06filter\x12\x19\n" + |
| "\border_by\x18\x05 \x01(\tR\aorderBy\"\xa8\x01\n" + |
| "\x15ListFunctionsResponse\x12E\n" + |
| "\tfunctions\x18\x01 \x03(\v2'.google.cloud.functions.v2beta.FunctionR\tfunctions\x12&\n" + |
| "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\x12 \n" + |
| "\vunreachable\x18\x03 \x03(\tR\vunreachable\"\xc5\x01\n" + |
| "\x15CreateFunctionRequest\x12A\n" + |
| "\x06parent\x18\x01 \x01(\tB)\xe0A\x02\xfaA#\n" + |
| "!locations.googleapis.com/LocationR\x06parent\x12H\n" + |
| "\bfunction\x18\x02 \x01(\v2'.google.cloud.functions.v2beta.FunctionB\x03\xe0A\x02R\bfunction\x12\x1f\n" + |
| "\vfunction_id\x18\x03 \x01(\tR\n" + |
| "functionId\"\x9e\x01\n" + |
| "\x15UpdateFunctionRequest\x12H\n" + |
| "\bfunction\x18\x01 \x01(\v2'.google.cloud.functions.v2beta.FunctionB\x03\xe0A\x02R\bfunction\x12;\n" + |
| "\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskR\n" + |
| "updateMask\"[\n" + |
| "\x15DeleteFunctionRequest\x12B\n" + |
| "\x04name\x18\x01 \x01(\tB.\xe0A\x02\xfaA(\n" + |
| "&cloudfunctions.googleapis.com/FunctionR\x04name\"\xf5\x01\n" + |
| "\x18GenerateUploadUrlRequest\x12A\n" + |
| "\x06parent\x18\x01 \x01(\tB)\xe0A\x02\xfaA#\n" + |
| "!locations.googleapis.com/LocationR\x06parent\x12H\n" + |
| "\fkms_key_name\x18\x02 \x01(\tB&\xfaA#\n" + |
| "!cloudkms.googleapis.com/CryptoKeyR\n" + |
| "kmsKeyName\x12L\n" + |
| "\venvironment\x18\x03 \x01(\x0e2*.google.cloud.functions.v2beta.EnvironmentR\venvironment\"\x8f\x01\n" + |
| "\x19GenerateUploadUrlResponse\x12\x1d\n" + |
| "\n" + |
| "upload_url\x18\x01 \x01(\tR\tuploadUrl\x12S\n" + |
| "\x0estorage_source\x18\x02 \x01(\v2,.google.cloud.functions.v2beta.StorageSourceR\rstorageSource\"`\n" + |
| "\x1aGenerateDownloadUrlRequest\x12B\n" + |
| "\x04name\x18\x01 \x01(\tB.\xe0A\x02\xfaA(\n" + |
| "&cloudfunctions.googleapis.com/FunctionR\x04name\"@\n" + |
| "\x1bGenerateDownloadUrlResponse\x12!\n" + |
| "\fdownload_url\x18\x01 \x01(\tR\vdownloadUrl\"p\n" + |
| "\x13ListRuntimesRequest\x12A\n" + |
| "\x06parent\x18\x01 \x01(\tB)\xe0A\x02\xfaA#\n" + |
| "!locations.googleapis.com/LocationR\x06parent\x12\x16\n" + |
| "\x06filter\x18\x02 \x01(\tR\x06filter\"\xf3\x04\n" + |
| "\x14ListRuntimesResponse\x12W\n" + |
| "\bruntimes\x18\x01 \x03(\v2;.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeR\bruntimes\x1a\x80\x03\n" + |
| "\aRuntime\x12\x12\n" + |
| "\x04name\x18\x01 \x01(\tR\x04name\x12!\n" + |
| "\fdisplay_name\x18\x05 \x01(\tR\vdisplayName\x12V\n" + |
| "\x05stage\x18\x02 \x01(\x0e2@.google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStageR\x05stage\x12\x1a\n" + |
| "\bwarnings\x18\x03 \x03(\tR\bwarnings\x12L\n" + |
| "\venvironment\x18\x04 \x01(\x0e2*.google.cloud.functions.v2beta.EnvironmentR\venvironment\x12<\n" + |
| "\x10deprecation_date\x18\x06 \x01(\v2\x11.google.type.DateR\x0fdeprecationDate\x12>\n" + |
| "\x11decommission_date\x18\a \x01(\v2\x11.google.type.DateR\x10decommissionDate\"\x7f\n" + |
| "\fRuntimeStage\x12\x1d\n" + |
| "\x19RUNTIME_STAGE_UNSPECIFIED\x10\x00\x12\x0f\n" + |
| "\vDEVELOPMENT\x10\x01\x12\t\n" + |
| "\x05ALPHA\x10\x02\x12\b\n" + |
| "\x04BETA\x10\x03\x12\x06\n" + |
| "\x02GA\x10\x04\x12\x0e\n" + |
| "\n" + |
| "DEPRECATED\x10\x05\x12\x12\n" + |
| "\x0eDECOMMISSIONED\x10\x06\"\x17\n" + |
| "\x15AutomaticUpdatePolicy\"D\n" + |
| "\x14OnDeployUpdatePolicy\x12,\n" + |
| "\x0fruntime_version\x18\x01 \x01(\tB\x03\xe0A\x03R\x0eruntimeVersion\"\x97\x04\n" + |
| "\x11OperationMetadata\x12;\n" + |
| "\vcreate_time\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\n" + |
| "createTime\x125\n" + |
| "\bend_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\aendTime\x12\x16\n" + |
| "\x06target\x18\x03 \x01(\tR\x06target\x12\x12\n" + |
| "\x04verb\x18\x04 \x01(\tR\x04verb\x12#\n" + |
| "\rstatus_detail\x18\x05 \x01(\tR\fstatusDetail\x12)\n" + |
| "\x10cancel_requested\x18\x06 \x01(\bR\x0fcancelRequested\x12\x1f\n" + |
| "\vapi_version\x18\a \x01(\tR\n" + |
| "apiVersion\x12?\n" + |
| "\x10request_resource\x18\b \x01(\v2\x14.google.protobuf.AnyR\x0frequestResource\x12<\n" + |
| "\x06stages\x18\t \x03(\v2$.google.cloud.functions.v2beta.StageR\x06stages\x12\x1d\n" + |
| "\n" + |
| "build_name\x18\r \x01(\tR\tbuildName\x12S\n" + |
| "\x0eoperation_type\x18\v \x01(\x0e2,.google.cloud.functions.v2beta.OperationTypeR\roperationType\"b\n" + |
| "\x10LocationMetadata\x12N\n" + |
| "\fenvironments\x18\x01 \x03(\x0e2*.google.cloud.functions.v2beta.EnvironmentR\fenvironments\"\x8c\x04\n" + |
| "\x05Stage\x12=\n" + |
| "\x04name\x18\x01 \x01(\x0e2).google.cloud.functions.v2beta.Stage.NameR\x04name\x12\x18\n" + |
| "\amessage\x18\x02 \x01(\tR\amessage\x12@\n" + |
| "\x05state\x18\x03 \x01(\x0e2*.google.cloud.functions.v2beta.Stage.StateR\x05state\x12\x1a\n" + |
| "\bresource\x18\x04 \x01(\tR\bresource\x12!\n" + |
| "\fresource_uri\x18\x05 \x01(\tR\vresourceUri\x12R\n" + |
| "\x0estate_messages\x18\x06 \x03(\v2+.google.cloud.functions.v2beta.StateMessageR\rstateMessages\"\x84\x01\n" + |
| "\x04Name\x12\x14\n" + |
| "\x10NAME_UNSPECIFIED\x10\x00\x12\x15\n" + |
| "\x11ARTIFACT_REGISTRY\x10\x01\x12\t\n" + |
| "\x05BUILD\x10\x02\x12\v\n" + |
| "\aSERVICE\x10\x03\x12\v\n" + |
| "\aTRIGGER\x10\x04\x12\x14\n" + |
| "\x10SERVICE_ROLLBACK\x10\x05\x12\x14\n" + |
| "\x10TRIGGER_ROLLBACK\x10\x06\"N\n" + |
| "\x05State\x12\x15\n" + |
| "\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n" + |
| "\vNOT_STARTED\x10\x01\x12\x0f\n" + |
| "\vIN_PROGRESS\x10\x02\x12\f\n" + |
| "\bCOMPLETE\x10\x03*m\n" + |
| "\rOperationType\x12\x1d\n" + |
| "\x19OPERATIONTYPE_UNSPECIFIED\x10\x00\x12\x13\n" + |
| "\x0fCREATE_FUNCTION\x10\x01\x12\x13\n" + |
| "\x0fUPDATE_FUNCTION\x10\x02\x12\x13\n" + |
| "\x0fDELETE_FUNCTION\x10\x03*@\n" + |
| "\vEnvironment\x12\x1b\n" + |
| "\x17ENVIRONMENT_UNSPECIFIED\x10\x00\x12\t\n" + |
| "\x05GEN_1\x10\x01\x12\t\n" + |
| "\x05GEN_2\x10\x022\x92\x0f\n" + |
| "\x0fFunctionService\x12\xab\x01\n" + |
| "\vGetFunction\x121.google.cloud.functions.v2beta.GetFunctionRequest\x1a'.google.cloud.functions.v2beta.Function\"@\xdaA\x04name\x82\xd3\xe4\x93\x023\x121/v2beta/{name=projects/*/locations/*/functions/*}\x12\xbe\x01\n" + |
| "\rListFunctions\x123.google.cloud.functions.v2beta.ListFunctionsRequest\x1a4.google.cloud.functions.v2beta.ListFunctionsResponse\"B\xdaA\x06parent\x82\xd3\xe4\x93\x023\x121/v2beta/{parent=projects/*/locations/*}/functions\x12\xa5\x02\n" + |
| "\x0eCreateFunction\x124.google.cloud.functions.v2beta.CreateFunctionRequest\x1a\x1d.google.longrunning.Operation\"\xbd\x01\xcaAY\n" + |
| "&google.cloud.functions.v2beta.Function\x12/google.cloud.functions.v2beta.OperationMetadata\xdaA\x1bparent,function,function_id\x82\xd3\xe4\x93\x02=:\bfunction\"1/v2beta/{parent=projects/*/locations/*}/functions\x12\xa7\x02\n" + |
| "\x0eUpdateFunction\x124.google.cloud.functions.v2beta.UpdateFunctionRequest\x1a\x1d.google.longrunning.Operation\"\xbf\x01\xcaAY\n" + |
| "&google.cloud.functions.v2beta.Function\x12/google.cloud.functions.v2beta.OperationMetadata\xdaA\x14function,update_mask\x82\xd3\xe4\x93\x02F:\bfunction2:/v2beta/{function.name=projects/*/locations/*/functions/*}\x12\xf3\x01\n" + |
| "\x0eDeleteFunction\x124.google.cloud.functions.v2beta.DeleteFunctionRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\xcaAH\n" + |
| "\x15google.protobuf.Empty\x12/google.cloud.functions.v2beta.OperationMetadata\xdaA\x04name\x82\xd3\xe4\x93\x023*1/v2beta/{name=projects/*/locations/*/functions/*}\x12\xd6\x01\n" + |
| "\x11GenerateUploadUrl\x127.google.cloud.functions.v2beta.GenerateUploadUrlRequest\x1a8.google.cloud.functions.v2beta.GenerateUploadUrlResponse\"N\x82\xd3\xe4\x93\x02H:\x01*\"C/v2beta/{parent=projects/*/locations/*}/functions:generateUploadUrl\x12\xde\x01\n" + |
| "\x13GenerateDownloadUrl\x129.google.cloud.functions.v2beta.GenerateDownloadUrlRequest\x1a:.google.cloud.functions.v2beta.GenerateDownloadUrlResponse\"P\x82\xd3\xe4\x93\x02J:\x01*\"E/v2beta/{name=projects/*/locations/*/functions/*}:generateDownloadUrl\x12\xba\x01\n" + |
| "\fListRuntimes\x122.google.cloud.functions.v2beta.ListRuntimesRequest\x1a3.google.cloud.functions.v2beta.ListRuntimesResponse\"A\xdaA\x06parent\x82\xd3\xe4\x93\x022\x120/v2beta/{parent=projects/*/locations/*}/runtimes\x1aQ\xcaA\x1dcloudfunctions.googleapis.com\xd2A.https://www.googleapis.com/auth/cloud-platformB\xf6\a\xeaAo\n" + |
| "*artifactregistry.googleapis.com/Repository\x12Aprojects/{project}/locations/{location}/repositories/{repository}\xeaAY\n" + |
| "\x1fcloudbuild.googleapis.com/Build\x126projects/{project}/locations/{location}/builds/{build}\xeaAi\n" + |
| "$cloudbuild.googleapis.com/WorkerPool\x12Aprojects/{project}/locations/{location}/workerPools/{worker_pool}\xeaAX\n" + |
| "\x1arun.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}\xeaAd\n" + |
| "\"vpcaccess.googleapis.com/Connector\x12>projects/{project}/locations/{location}/connectors/{connector}\xeaA]\n" + |
| "\x1feventarc.googleapis.com/Trigger\x12:projects/{project}/locations/{location}/triggers/{trigger}\xeaA]\n" + |
| "\x1feventarc.googleapis.com/Channel\x12:projects/{project}/locations/{location}/channels/{channel}\xeaA@\n" + |
| "\x1bpubsub.googleapis.com/Topic\x12!projects/{project}/topics/{topic}\xeaAx\n" + |
| "!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\n" + |
| "!com.google.cloud.functions.v2betaB\x0eFunctionsProtoP\x01Z?cloud.google.com/go/functions/apiv2beta/functionspb;functionspb\xa2\x02\x03GCFb\x06proto3" |
| |
| var ( |
| file_google_cloud_functions_v2beta_functions_proto_rawDescOnce sync.Once |
| file_google_cloud_functions_v2beta_functions_proto_rawDescData []byte |
| ) |
| |
| func file_google_cloud_functions_v2beta_functions_proto_rawDescGZIP() []byte { |
| file_google_cloud_functions_v2beta_functions_proto_rawDescOnce.Do(func() { |
| file_google_cloud_functions_v2beta_functions_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_cloud_functions_v2beta_functions_proto_rawDesc), len(file_google_cloud_functions_v2beta_functions_proto_rawDesc))) |
| }) |
| return file_google_cloud_functions_v2beta_functions_proto_rawDescData |
| } |
| |
| var file_google_cloud_functions_v2beta_functions_proto_enumTypes = make([]protoimpl.EnumInfo, 12) |
| var file_google_cloud_functions_v2beta_functions_proto_msgTypes = make([]protoimpl.MessageInfo, 34) |
| var file_google_cloud_functions_v2beta_functions_proto_goTypes = []any{ |
| (OperationType)(0), // 0: google.cloud.functions.v2beta.OperationType |
| (Environment)(0), // 1: google.cloud.functions.v2beta.Environment |
| (Function_State)(0), // 2: google.cloud.functions.v2beta.Function.State |
| (StateMessage_Severity)(0), // 3: google.cloud.functions.v2beta.StateMessage.Severity |
| (BuildConfig_DockerRegistry)(0), // 4: google.cloud.functions.v2beta.BuildConfig.DockerRegistry |
| (ServiceConfig_VpcConnectorEgressSettings)(0), // 5: google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings |
| (ServiceConfig_IngressSettings)(0), // 6: google.cloud.functions.v2beta.ServiceConfig.IngressSettings |
| (ServiceConfig_SecurityLevel)(0), // 7: google.cloud.functions.v2beta.ServiceConfig.SecurityLevel |
| (EventTrigger_RetryPolicy)(0), // 8: google.cloud.functions.v2beta.EventTrigger.RetryPolicy |
| (ListRuntimesResponse_RuntimeStage)(0), // 9: google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage |
| (Stage_Name)(0), // 10: google.cloud.functions.v2beta.Stage.Name |
| (Stage_State)(0), // 11: google.cloud.functions.v2beta.Stage.State |
| (*Function)(nil), // 12: google.cloud.functions.v2beta.Function |
| (*StateMessage)(nil), // 13: google.cloud.functions.v2beta.StateMessage |
| (*StorageSource)(nil), // 14: google.cloud.functions.v2beta.StorageSource |
| (*RepoSource)(nil), // 15: google.cloud.functions.v2beta.RepoSource |
| (*Source)(nil), // 16: google.cloud.functions.v2beta.Source |
| (*SourceProvenance)(nil), // 17: google.cloud.functions.v2beta.SourceProvenance |
| (*BuildConfig)(nil), // 18: google.cloud.functions.v2beta.BuildConfig |
| (*ServiceConfig)(nil), // 19: google.cloud.functions.v2beta.ServiceConfig |
| (*SecretEnvVar)(nil), // 20: google.cloud.functions.v2beta.SecretEnvVar |
| (*SecretVolume)(nil), // 21: google.cloud.functions.v2beta.SecretVolume |
| (*EventTrigger)(nil), // 22: google.cloud.functions.v2beta.EventTrigger |
| (*EventFilter)(nil), // 23: google.cloud.functions.v2beta.EventFilter |
| (*GetFunctionRequest)(nil), // 24: google.cloud.functions.v2beta.GetFunctionRequest |
| (*ListFunctionsRequest)(nil), // 25: google.cloud.functions.v2beta.ListFunctionsRequest |
| (*ListFunctionsResponse)(nil), // 26: google.cloud.functions.v2beta.ListFunctionsResponse |
| (*CreateFunctionRequest)(nil), // 27: google.cloud.functions.v2beta.CreateFunctionRequest |
| (*UpdateFunctionRequest)(nil), // 28: google.cloud.functions.v2beta.UpdateFunctionRequest |
| (*DeleteFunctionRequest)(nil), // 29: google.cloud.functions.v2beta.DeleteFunctionRequest |
| (*GenerateUploadUrlRequest)(nil), // 30: google.cloud.functions.v2beta.GenerateUploadUrlRequest |
| (*GenerateUploadUrlResponse)(nil), // 31: google.cloud.functions.v2beta.GenerateUploadUrlResponse |
| (*GenerateDownloadUrlRequest)(nil), // 32: google.cloud.functions.v2beta.GenerateDownloadUrlRequest |
| (*GenerateDownloadUrlResponse)(nil), // 33: google.cloud.functions.v2beta.GenerateDownloadUrlResponse |
| (*ListRuntimesRequest)(nil), // 34: google.cloud.functions.v2beta.ListRuntimesRequest |
| (*ListRuntimesResponse)(nil), // 35: google.cloud.functions.v2beta.ListRuntimesResponse |
| (*AutomaticUpdatePolicy)(nil), // 36: google.cloud.functions.v2beta.AutomaticUpdatePolicy |
| (*OnDeployUpdatePolicy)(nil), // 37: google.cloud.functions.v2beta.OnDeployUpdatePolicy |
| (*OperationMetadata)(nil), // 38: google.cloud.functions.v2beta.OperationMetadata |
| (*LocationMetadata)(nil), // 39: google.cloud.functions.v2beta.LocationMetadata |
| (*Stage)(nil), // 40: google.cloud.functions.v2beta.Stage |
| nil, // 41: google.cloud.functions.v2beta.Function.LabelsEntry |
| nil, // 42: google.cloud.functions.v2beta.BuildConfig.EnvironmentVariablesEntry |
| nil, // 43: google.cloud.functions.v2beta.ServiceConfig.EnvironmentVariablesEntry |
| (*SecretVolume_SecretVersion)(nil), // 44: google.cloud.functions.v2beta.SecretVolume.SecretVersion |
| (*ListRuntimesResponse_Runtime)(nil), // 45: google.cloud.functions.v2beta.ListRuntimesResponse.Runtime |
| (*timestamppb.Timestamp)(nil), // 46: google.protobuf.Timestamp |
| (*fieldmaskpb.FieldMask)(nil), // 47: google.protobuf.FieldMask |
| (*anypb.Any)(nil), // 48: google.protobuf.Any |
| (*date.Date)(nil), // 49: google.type.Date |
| (*longrunningpb.Operation)(nil), // 50: google.longrunning.Operation |
| } |
| var file_google_cloud_functions_v2beta_functions_proto_depIdxs = []int32{ |
| 18, // 0: google.cloud.functions.v2beta.Function.build_config:type_name -> google.cloud.functions.v2beta.BuildConfig |
| 19, // 1: google.cloud.functions.v2beta.Function.service_config:type_name -> google.cloud.functions.v2beta.ServiceConfig |
| 22, // 2: google.cloud.functions.v2beta.Function.event_trigger:type_name -> google.cloud.functions.v2beta.EventTrigger |
| 2, // 3: google.cloud.functions.v2beta.Function.state:type_name -> google.cloud.functions.v2beta.Function.State |
| 46, // 4: google.cloud.functions.v2beta.Function.update_time:type_name -> google.protobuf.Timestamp |
| 41, // 5: google.cloud.functions.v2beta.Function.labels:type_name -> google.cloud.functions.v2beta.Function.LabelsEntry |
| 13, // 6: google.cloud.functions.v2beta.Function.state_messages:type_name -> google.cloud.functions.v2beta.StateMessage |
| 1, // 7: google.cloud.functions.v2beta.Function.environment:type_name -> google.cloud.functions.v2beta.Environment |
| 46, // 8: google.cloud.functions.v2beta.Function.create_time:type_name -> google.protobuf.Timestamp |
| 3, // 9: google.cloud.functions.v2beta.StateMessage.severity:type_name -> google.cloud.functions.v2beta.StateMessage.Severity |
| 14, // 10: google.cloud.functions.v2beta.Source.storage_source:type_name -> google.cloud.functions.v2beta.StorageSource |
| 15, // 11: google.cloud.functions.v2beta.Source.repo_source:type_name -> google.cloud.functions.v2beta.RepoSource |
| 14, // 12: google.cloud.functions.v2beta.SourceProvenance.resolved_storage_source:type_name -> google.cloud.functions.v2beta.StorageSource |
| 15, // 13: google.cloud.functions.v2beta.SourceProvenance.resolved_repo_source:type_name -> google.cloud.functions.v2beta.RepoSource |
| 36, // 14: google.cloud.functions.v2beta.BuildConfig.automatic_update_policy:type_name -> google.cloud.functions.v2beta.AutomaticUpdatePolicy |
| 37, // 15: google.cloud.functions.v2beta.BuildConfig.on_deploy_update_policy:type_name -> google.cloud.functions.v2beta.OnDeployUpdatePolicy |
| 16, // 16: google.cloud.functions.v2beta.BuildConfig.source:type_name -> google.cloud.functions.v2beta.Source |
| 17, // 17: google.cloud.functions.v2beta.BuildConfig.source_provenance:type_name -> google.cloud.functions.v2beta.SourceProvenance |
| 42, // 18: google.cloud.functions.v2beta.BuildConfig.environment_variables:type_name -> google.cloud.functions.v2beta.BuildConfig.EnvironmentVariablesEntry |
| 4, // 19: google.cloud.functions.v2beta.BuildConfig.docker_registry:type_name -> google.cloud.functions.v2beta.BuildConfig.DockerRegistry |
| 43, // 20: google.cloud.functions.v2beta.ServiceConfig.environment_variables:type_name -> google.cloud.functions.v2beta.ServiceConfig.EnvironmentVariablesEntry |
| 5, // 21: google.cloud.functions.v2beta.ServiceConfig.vpc_connector_egress_settings:type_name -> google.cloud.functions.v2beta.ServiceConfig.VpcConnectorEgressSettings |
| 6, // 22: google.cloud.functions.v2beta.ServiceConfig.ingress_settings:type_name -> google.cloud.functions.v2beta.ServiceConfig.IngressSettings |
| 20, // 23: google.cloud.functions.v2beta.ServiceConfig.secret_environment_variables:type_name -> google.cloud.functions.v2beta.SecretEnvVar |
| 21, // 24: google.cloud.functions.v2beta.ServiceConfig.secret_volumes:type_name -> google.cloud.functions.v2beta.SecretVolume |
| 7, // 25: google.cloud.functions.v2beta.ServiceConfig.security_level:type_name -> google.cloud.functions.v2beta.ServiceConfig.SecurityLevel |
| 44, // 26: google.cloud.functions.v2beta.SecretVolume.versions:type_name -> google.cloud.functions.v2beta.SecretVolume.SecretVersion |
| 23, // 27: google.cloud.functions.v2beta.EventTrigger.event_filters:type_name -> google.cloud.functions.v2beta.EventFilter |
| 8, // 28: google.cloud.functions.v2beta.EventTrigger.retry_policy:type_name -> google.cloud.functions.v2beta.EventTrigger.RetryPolicy |
| 12, // 29: google.cloud.functions.v2beta.ListFunctionsResponse.functions:type_name -> google.cloud.functions.v2beta.Function |
| 12, // 30: google.cloud.functions.v2beta.CreateFunctionRequest.function:type_name -> google.cloud.functions.v2beta.Function |
| 12, // 31: google.cloud.functions.v2beta.UpdateFunctionRequest.function:type_name -> google.cloud.functions.v2beta.Function |
| 47, // 32: google.cloud.functions.v2beta.UpdateFunctionRequest.update_mask:type_name -> google.protobuf.FieldMask |
| 1, // 33: google.cloud.functions.v2beta.GenerateUploadUrlRequest.environment:type_name -> google.cloud.functions.v2beta.Environment |
| 14, // 34: google.cloud.functions.v2beta.GenerateUploadUrlResponse.storage_source:type_name -> google.cloud.functions.v2beta.StorageSource |
| 45, // 35: google.cloud.functions.v2beta.ListRuntimesResponse.runtimes:type_name -> google.cloud.functions.v2beta.ListRuntimesResponse.Runtime |
| 46, // 36: google.cloud.functions.v2beta.OperationMetadata.create_time:type_name -> google.protobuf.Timestamp |
| 46, // 37: google.cloud.functions.v2beta.OperationMetadata.end_time:type_name -> google.protobuf.Timestamp |
| 48, // 38: google.cloud.functions.v2beta.OperationMetadata.request_resource:type_name -> google.protobuf.Any |
| 40, // 39: google.cloud.functions.v2beta.OperationMetadata.stages:type_name -> google.cloud.functions.v2beta.Stage |
| 0, // 40: google.cloud.functions.v2beta.OperationMetadata.operation_type:type_name -> google.cloud.functions.v2beta.OperationType |
| 1, // 41: google.cloud.functions.v2beta.LocationMetadata.environments:type_name -> google.cloud.functions.v2beta.Environment |
| 10, // 42: google.cloud.functions.v2beta.Stage.name:type_name -> google.cloud.functions.v2beta.Stage.Name |
| 11, // 43: google.cloud.functions.v2beta.Stage.state:type_name -> google.cloud.functions.v2beta.Stage.State |
| 13, // 44: google.cloud.functions.v2beta.Stage.state_messages:type_name -> google.cloud.functions.v2beta.StateMessage |
| 9, // 45: google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.stage:type_name -> google.cloud.functions.v2beta.ListRuntimesResponse.RuntimeStage |
| 1, // 46: google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.environment:type_name -> google.cloud.functions.v2beta.Environment |
| 49, // 47: google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.deprecation_date:type_name -> google.type.Date |
| 49, // 48: google.cloud.functions.v2beta.ListRuntimesResponse.Runtime.decommission_date:type_name -> google.type.Date |
| 24, // 49: google.cloud.functions.v2beta.FunctionService.GetFunction:input_type -> google.cloud.functions.v2beta.GetFunctionRequest |
| 25, // 50: google.cloud.functions.v2beta.FunctionService.ListFunctions:input_type -> google.cloud.functions.v2beta.ListFunctionsRequest |
| 27, // 51: google.cloud.functions.v2beta.FunctionService.CreateFunction:input_type -> google.cloud.functions.v2beta.CreateFunctionRequest |
| 28, // 52: google.cloud.functions.v2beta.FunctionService.UpdateFunction:input_type -> google.cloud.functions.v2beta.UpdateFunctionRequest |
| 29, // 53: google.cloud.functions.v2beta.FunctionService.DeleteFunction:input_type -> google.cloud.functions.v2beta.DeleteFunctionRequest |
| 30, // 54: google.cloud.functions.v2beta.FunctionService.GenerateUploadUrl:input_type -> google.cloud.functions.v2beta.GenerateUploadUrlRequest |
| 32, // 55: google.cloud.functions.v2beta.FunctionService.GenerateDownloadUrl:input_type -> google.cloud.functions.v2beta.GenerateDownloadUrlRequest |
| 34, // 56: google.cloud.functions.v2beta.FunctionService.ListRuntimes:input_type -> google.cloud.functions.v2beta.ListRuntimesRequest |
| 12, // 57: google.cloud.functions.v2beta.FunctionService.GetFunction:output_type -> google.cloud.functions.v2beta.Function |
| 26, // 58: google.cloud.functions.v2beta.FunctionService.ListFunctions:output_type -> google.cloud.functions.v2beta.ListFunctionsResponse |
| 50, // 59: google.cloud.functions.v2beta.FunctionService.CreateFunction:output_type -> google.longrunning.Operation |
| 50, // 60: google.cloud.functions.v2beta.FunctionService.UpdateFunction:output_type -> google.longrunning.Operation |
| 50, // 61: google.cloud.functions.v2beta.FunctionService.DeleteFunction:output_type -> google.longrunning.Operation |
| 31, // 62: google.cloud.functions.v2beta.FunctionService.GenerateUploadUrl:output_type -> google.cloud.functions.v2beta.GenerateUploadUrlResponse |
| 33, // 63: google.cloud.functions.v2beta.FunctionService.GenerateDownloadUrl:output_type -> google.cloud.functions.v2beta.GenerateDownloadUrlResponse |
| 35, // 64: google.cloud.functions.v2beta.FunctionService.ListRuntimes:output_type -> google.cloud.functions.v2beta.ListRuntimesResponse |
| 57, // [57:65] is the sub-list for method output_type |
| 49, // [49:57] is the sub-list for method input_type |
| 49, // [49:49] is the sub-list for extension type_name |
| 49, // [49:49] is the sub-list for extension extendee |
| 0, // [0:49] is the sub-list for field type_name |
| } |
| |
| func init() { file_google_cloud_functions_v2beta_functions_proto_init() } |
| func file_google_cloud_functions_v2beta_functions_proto_init() { |
| if File_google_cloud_functions_v2beta_functions_proto != nil { |
| return |
| } |
| file_google_cloud_functions_v2beta_functions_proto_msgTypes[3].OneofWrappers = []any{ |
| (*RepoSource_BranchName)(nil), |
| (*RepoSource_TagName)(nil), |
| (*RepoSource_CommitSha)(nil), |
| } |
| file_google_cloud_functions_v2beta_functions_proto_msgTypes[4].OneofWrappers = []any{ |
| (*Source_StorageSource)(nil), |
| (*Source_RepoSource)(nil), |
| (*Source_GitUri)(nil), |
| } |
| file_google_cloud_functions_v2beta_functions_proto_msgTypes[6].OneofWrappers = []any{ |
| (*BuildConfig_AutomaticUpdatePolicy)(nil), |
| (*BuildConfig_OnDeployUpdatePolicy)(nil), |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_cloud_functions_v2beta_functions_proto_rawDesc), len(file_google_cloud_functions_v2beta_functions_proto_rawDesc)), |
| NumEnums: 12, |
| NumMessages: 34, |
| NumExtensions: 0, |
| NumServices: 1, |
| }, |
| GoTypes: file_google_cloud_functions_v2beta_functions_proto_goTypes, |
| DependencyIndexes: file_google_cloud_functions_v2beta_functions_proto_depIdxs, |
| EnumInfos: file_google_cloud_functions_v2beta_functions_proto_enumTypes, |
| MessageInfos: file_google_cloud_functions_v2beta_functions_proto_msgTypes, |
| }.Build() |
| File_google_cloud_functions_v2beta_functions_proto = out.File |
| file_google_cloud_functions_v2beta_functions_proto_goTypes = nil |
| file_google_cloud_functions_v2beta_functions_proto_depIdxs = nil |
| } |