functionsv2

package
v1.36.0-20240502114401... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: unknown License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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,
	}
)

Enum value maps for Environment.

View Source
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,
	}
)

Enum value maps for Function_State.

View Source
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,
	}
)

Enum value maps for StateMessage_Severity.

View Source
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,
	}
)

Enum value maps for BuildConfig_DockerRegistry.

View Source
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,
	}
)

Enum value maps for ServiceConfig_VpcConnectorEgressSettings.

View Source
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,
	}
)

Enum value maps for ServiceConfig_IngressSettings.

View Source
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,
	}
)

Enum value maps for ServiceConfig_SecurityLevel.

View Source
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,
	}
)

Enum value maps for EventTrigger_RetryPolicy.

View Source
var File_google_events_cloud_functions_v2_data_proto protoreflect.FileDescriptor
View Source
var File_google_events_cloud_functions_v2_events_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BuildConfig

type BuildConfig struct {

	// 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 `` /* 195-byte string literal not displayed */
	// Optional. 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 `docker_repository` field is specified, this field will be automatically
	// set as `ARTIFACT_REGISTRY`.
	// If unspecified, it currently defaults to `CONTAINER_REGISTRY`.
	// This field may be overridden by the backend for eligible deployments.
	DockerRegistry BuildConfig_DockerRegistry `` /* 170-byte string literal not displayed */
	// User managed repository created in Artifact Registry optionally with a
	// customer managed encryption key. This is the repository to which the
	// function docker image will be pushed after it is built by Cloud Build.
	// If unspecified, 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"`
	// Specifies one of the Google provided buildpack stacks.
	BuildpackStack string `protobuf:"bytes,9,opt,name=buildpack_stack,json=buildpackStack,proto3" json:"buildpack_stack,omitempty"`
	// contains filtered or unexported fields
}

Describes the Build step of the function that builds a container from the given source.

func (*BuildConfig) Descriptor deprecated

func (*BuildConfig) Descriptor() ([]byte, []int)

Deprecated: Use BuildConfig.ProtoReflect.Descriptor instead.

func (*BuildConfig) GetBuild

func (x *BuildConfig) GetBuild() string

func (*BuildConfig) GetBuildpackStack

func (x *BuildConfig) GetBuildpackStack() string

func (*BuildConfig) GetDockerRegistry

func (x *BuildConfig) GetDockerRegistry() BuildConfig_DockerRegistry

func (*BuildConfig) GetDockerRepository

func (x *BuildConfig) GetDockerRepository() string

func (*BuildConfig) GetEntryPoint

func (x *BuildConfig) GetEntryPoint() string

func (*BuildConfig) GetEnvironmentVariables

func (x *BuildConfig) GetEnvironmentVariables() map[string]string

func (*BuildConfig) GetRuntime

func (x *BuildConfig) GetRuntime() string

func (*BuildConfig) GetSource

func (x *BuildConfig) GetSource() *Source

func (*BuildConfig) GetSourceProvenance

func (x *BuildConfig) GetSourceProvenance() *SourceProvenance

func (*BuildConfig) GetWorkerPool

func (x *BuildConfig) GetWorkerPool() string

func (*BuildConfig) ProtoMessage

func (*BuildConfig) ProtoMessage()

func (*BuildConfig) ProtoReflect

func (x *BuildConfig) ProtoReflect() protoreflect.Message

func (*BuildConfig) Reset

func (x *BuildConfig) Reset()

func (*BuildConfig) String

func (x *BuildConfig) String() string

type BuildConfig_DockerRegistry

type BuildConfig_DockerRegistry int32

Docker Registry to use for storing function Docker images.

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
)

func (BuildConfig_DockerRegistry) Descriptor

func (BuildConfig_DockerRegistry) Enum

func (BuildConfig_DockerRegistry) EnumDescriptor deprecated

func (BuildConfig_DockerRegistry) EnumDescriptor() ([]byte, []int)

Deprecated: Use BuildConfig_DockerRegistry.Descriptor instead.

func (BuildConfig_DockerRegistry) Number

func (BuildConfig_DockerRegistry) String

func (BuildConfig_DockerRegistry) Type

type Environment

type Environment int32

The environment the function is hosted on.

const (
	// Unspecified
	Environment_ENVIRONMENT_UNSPECIFIED Environment = 0
	// Gen 1
	Environment_GEN_1 Environment = 1
	// Gen 2
	Environment_GEN_2 Environment = 2
)

func (Environment) Descriptor

func (Environment) Enum

func (x Environment) Enum() *Environment

func (Environment) EnumDescriptor deprecated

func (Environment) EnumDescriptor() ([]byte, []int)

Deprecated: Use Environment.Descriptor instead.

func (Environment) Number

func (x Environment) Number() protoreflect.EnumNumber

func (Environment) String

func (x Environment) String() string

func (Environment) Type

type EventFilter

type EventFilter struct {

	// 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"`
	// contains filtered or unexported fields
}

Filters events based on exact matches on the CloudEvents attributes.

func (*EventFilter) Descriptor deprecated

func (*EventFilter) Descriptor() ([]byte, []int)

Deprecated: Use EventFilter.ProtoReflect.Descriptor instead.

func (*EventFilter) GetAttribute

func (x *EventFilter) GetAttribute() string

func (*EventFilter) GetOperator

func (x *EventFilter) GetOperator() string

func (*EventFilter) GetValue

func (x *EventFilter) GetValue() string

func (*EventFilter) ProtoMessage

func (*EventFilter) ProtoMessage()

func (*EventFilter) ProtoReflect

func (x *EventFilter) ProtoReflect() protoreflect.Message

func (*EventFilter) Reset

func (x *EventFilter) Reset()

func (*EventFilter) String

func (x *EventFilter) String() string

type EventTrigger

type EventTrigger struct {

	// 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 `` /* 158-byte string literal not displayed */
	// 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"`
	// contains filtered or unexported fields
}

Describes EventTrigger, used to request events to be sent from another service.

func (*EventTrigger) Descriptor deprecated

func (*EventTrigger) Descriptor() ([]byte, []int)

Deprecated: Use EventTrigger.ProtoReflect.Descriptor instead.

func (*EventTrigger) GetChannel

func (x *EventTrigger) GetChannel() string

func (*EventTrigger) GetEventFilters

func (x *EventTrigger) GetEventFilters() []*EventFilter

func (*EventTrigger) GetEventType

func (x *EventTrigger) GetEventType() string

func (*EventTrigger) GetPubsubTopic

func (x *EventTrigger) GetPubsubTopic() string

func (*EventTrigger) GetRetryPolicy

func (x *EventTrigger) GetRetryPolicy() EventTrigger_RetryPolicy

func (*EventTrigger) GetServiceAccountEmail

func (x *EventTrigger) GetServiceAccountEmail() string

func (*EventTrigger) GetTrigger

func (x *EventTrigger) GetTrigger() string

func (*EventTrigger) GetTriggerRegion

func (x *EventTrigger) GetTriggerRegion() string

func (*EventTrigger) ProtoMessage

func (*EventTrigger) ProtoMessage()

func (*EventTrigger) ProtoReflect

func (x *EventTrigger) ProtoReflect() protoreflect.Message

func (*EventTrigger) Reset

func (x *EventTrigger) Reset()

func (*EventTrigger) String

func (x *EventTrigger) String() string

type EventTrigger_RetryPolicy

type EventTrigger_RetryPolicy int32

Describes the retry policy in case of function's execution failure. Retried execution is charged as any other execution.

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
)

func (EventTrigger_RetryPolicy) Descriptor

func (EventTrigger_RetryPolicy) Enum

func (EventTrigger_RetryPolicy) EnumDescriptor deprecated

func (EventTrigger_RetryPolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use EventTrigger_RetryPolicy.Descriptor instead.

func (EventTrigger_RetryPolicy) Number

func (EventTrigger_RetryPolicy) String

func (x EventTrigger_RetryPolicy) String() string

func (EventTrigger_RetryPolicy) Type

type Function

type Function struct {

	// 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"`
	// Describe whether the function is gen1 or gen2.
	Environment Environment `` /* 127-byte string literal not displayed */
	// 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.events.cloud.functions.v2.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 `` /* 139-byte string literal not displayed */
	// Output only. State Messages for this Cloud Function.
	StateMessages []*StateMessage `protobuf:"bytes,9,rep,name=state_messages,json=stateMessages,proto3" json:"state_messages,omitempty"`
	// contains filtered or unexported fields
}

Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.

func (*Function) Descriptor deprecated

func (*Function) Descriptor() ([]byte, []int)

Deprecated: Use Function.ProtoReflect.Descriptor instead.

func (*Function) GetBuildConfig

func (x *Function) GetBuildConfig() *BuildConfig

func (*Function) GetDescription

func (x *Function) GetDescription() string

func (*Function) GetEnvironment

func (x *Function) GetEnvironment() Environment

func (*Function) GetEventTrigger

func (x *Function) GetEventTrigger() *EventTrigger

func (*Function) GetLabels

func (x *Function) GetLabels() map[string]string

func (*Function) GetName

func (x *Function) GetName() string

func (*Function) GetServiceConfig

func (x *Function) GetServiceConfig() *ServiceConfig

func (*Function) GetState

func (x *Function) GetState() Function_State

func (*Function) GetStateMessages

func (x *Function) GetStateMessages() []*StateMessage

func (*Function) GetUpdateTime

func (x *Function) GetUpdateTime() *timestamppb.Timestamp

func (*Function) ProtoMessage

func (*Function) ProtoMessage()

func (*Function) ProtoReflect

func (x *Function) ProtoReflect() protoreflect.Message

func (*Function) Reset

func (x *Function) Reset()

func (*Function) String

func (x *Function) String() string

type FunctionCreatedEvent

type FunctionCreatedEvent struct {

	// The data associated with the event.
	Data *FunctionEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

The CloudEvent raised when a Function is created.

func (*FunctionCreatedEvent) Descriptor deprecated

func (*FunctionCreatedEvent) Descriptor() ([]byte, []int)

Deprecated: Use FunctionCreatedEvent.ProtoReflect.Descriptor instead.

func (*FunctionCreatedEvent) GetData

func (*FunctionCreatedEvent) ProtoMessage

func (*FunctionCreatedEvent) ProtoMessage()

func (*FunctionCreatedEvent) ProtoReflect

func (x *FunctionCreatedEvent) ProtoReflect() protoreflect.Message

func (*FunctionCreatedEvent) Reset

func (x *FunctionCreatedEvent) Reset()

func (*FunctionCreatedEvent) String

func (x *FunctionCreatedEvent) String() string

type FunctionDeletedEvent

type FunctionDeletedEvent struct {

	// The data associated with the event.
	Data *FunctionEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

The CloudEvent raised when a Function is deleted.

func (*FunctionDeletedEvent) Descriptor deprecated

func (*FunctionDeletedEvent) Descriptor() ([]byte, []int)

Deprecated: Use FunctionDeletedEvent.ProtoReflect.Descriptor instead.

func (*FunctionDeletedEvent) GetData

func (*FunctionDeletedEvent) ProtoMessage

func (*FunctionDeletedEvent) ProtoMessage()

func (*FunctionDeletedEvent) ProtoReflect

func (x *FunctionDeletedEvent) ProtoReflect() protoreflect.Message

func (*FunctionDeletedEvent) Reset

func (x *FunctionDeletedEvent) Reset()

func (*FunctionDeletedEvent) String

func (x *FunctionDeletedEvent) String() string

type FunctionEventData

type FunctionEventData struct {

	// Optional. The Function event payload. Unset for deletion events.
	Payload *Function `protobuf:"bytes,1,opt,name=payload,proto3,oneof" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

The data within all Function events.

func (*FunctionEventData) Descriptor deprecated

func (*FunctionEventData) Descriptor() ([]byte, []int)

Deprecated: Use FunctionEventData.ProtoReflect.Descriptor instead.

func (*FunctionEventData) GetPayload

func (x *FunctionEventData) GetPayload() *Function

func (*FunctionEventData) ProtoMessage

func (*FunctionEventData) ProtoMessage()

func (*FunctionEventData) ProtoReflect

func (x *FunctionEventData) ProtoReflect() protoreflect.Message

func (*FunctionEventData) Reset

func (x *FunctionEventData) Reset()

func (*FunctionEventData) String

func (x *FunctionEventData) String() string

type FunctionUpdatedEvent

type FunctionUpdatedEvent struct {

	// The data associated with the event.
	Data *FunctionEventData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

The CloudEvent raised when a Function is updated.

func (*FunctionUpdatedEvent) Descriptor deprecated

func (*FunctionUpdatedEvent) Descriptor() ([]byte, []int)

Deprecated: Use FunctionUpdatedEvent.ProtoReflect.Descriptor instead.

func (*FunctionUpdatedEvent) GetData

func (*FunctionUpdatedEvent) ProtoMessage

func (*FunctionUpdatedEvent) ProtoMessage()

func (*FunctionUpdatedEvent) ProtoReflect

func (x *FunctionUpdatedEvent) ProtoReflect() protoreflect.Message

func (*FunctionUpdatedEvent) Reset

func (x *FunctionUpdatedEvent) Reset()

func (*FunctionUpdatedEvent) String

func (x *FunctionUpdatedEvent) String() string

type Function_State

type Function_State int32

Describes the current state of the function.

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
)

func (Function_State) Descriptor

func (Function_State) Enum

func (x Function_State) Enum() *Function_State

func (Function_State) EnumDescriptor deprecated

func (Function_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Function_State.Descriptor instead.

func (Function_State) Number

func (Function_State) String

func (x Function_State) String() string

func (Function_State) Type

type RepoSource

type RepoSource struct {

	// 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"`
	// contains filtered or unexported fields
}

Location of the source in a Google Cloud Source Repository.

func (*RepoSource) Descriptor deprecated

func (*RepoSource) Descriptor() ([]byte, []int)

Deprecated: Use RepoSource.ProtoReflect.Descriptor instead.

func (*RepoSource) GetBranchName

func (x *RepoSource) GetBranchName() string

func (*RepoSource) GetCommitSha

func (x *RepoSource) GetCommitSha() string

func (*RepoSource) GetDir

func (x *RepoSource) GetDir() string

func (*RepoSource) GetInvertRegex

func (x *RepoSource) GetInvertRegex() bool

func (*RepoSource) GetProjectId

func (x *RepoSource) GetProjectId() string

func (*RepoSource) GetRepoName

func (x *RepoSource) GetRepoName() string

func (*RepoSource) GetRevision

func (x *RepoSource) GetRevision() isRepoSource_Revision

func (*RepoSource) GetTagName

func (x *RepoSource) GetTagName() string

func (*RepoSource) ProtoMessage

func (*RepoSource) ProtoMessage()

func (*RepoSource) ProtoReflect

func (x *RepoSource) ProtoReflect() protoreflect.Message

func (*RepoSource) Reset

func (x *RepoSource) Reset()

func (*RepoSource) String

func (x *RepoSource) String() string

type RepoSource_BranchName

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_CommitSha

type RepoSource_CommitSha struct {
	// Explicit commit SHA to build.
	CommitSha string `protobuf:"bytes,5,opt,name=commit_sha,json=commitSha,proto3,oneof"`
}

type RepoSource_TagName

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 SecretEnvVar

type SecretEnvVar struct {

	// 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"`
	// contains filtered or unexported fields
}

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.

func (*SecretEnvVar) Descriptor deprecated

func (*SecretEnvVar) Descriptor() ([]byte, []int)

Deprecated: Use SecretEnvVar.ProtoReflect.Descriptor instead.

func (*SecretEnvVar) GetKey

func (x *SecretEnvVar) GetKey() string

func (*SecretEnvVar) GetProjectId

func (x *SecretEnvVar) GetProjectId() string

func (*SecretEnvVar) GetSecret

func (x *SecretEnvVar) GetSecret() string

func (*SecretEnvVar) GetVersion

func (x *SecretEnvVar) GetVersion() string

func (*SecretEnvVar) ProtoMessage

func (*SecretEnvVar) ProtoMessage()

func (*SecretEnvVar) ProtoReflect

func (x *SecretEnvVar) ProtoReflect() protoreflect.Message

func (*SecretEnvVar) Reset

func (x *SecretEnvVar) Reset()

func (*SecretEnvVar) String

func (x *SecretEnvVar) String() string

type SecretVolume

type SecretVolume struct {

	// 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"`
	// contains filtered or unexported fields
}

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.

func (*SecretVolume) Descriptor deprecated

func (*SecretVolume) Descriptor() ([]byte, []int)

Deprecated: Use SecretVolume.ProtoReflect.Descriptor instead.

func (*SecretVolume) GetMountPath

func (x *SecretVolume) GetMountPath() string

func (*SecretVolume) GetProjectId

func (x *SecretVolume) GetProjectId() string

func (*SecretVolume) GetSecret

func (x *SecretVolume) GetSecret() string

func (*SecretVolume) GetVersions

func (x *SecretVolume) GetVersions() []*SecretVolume_SecretVersion

func (*SecretVolume) ProtoMessage

func (*SecretVolume) ProtoMessage()

func (*SecretVolume) ProtoReflect

func (x *SecretVolume) ProtoReflect() protoreflect.Message

func (*SecretVolume) Reset

func (x *SecretVolume) Reset()

func (*SecretVolume) String

func (x *SecretVolume) String() string

type SecretVolume_SecretVersion

type SecretVolume_SecretVersion struct {

	// 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"`
	// contains filtered or unexported fields
}

Configuration for a single version.

func (*SecretVolume_SecretVersion) Descriptor deprecated

func (*SecretVolume_SecretVersion) Descriptor() ([]byte, []int)

Deprecated: Use SecretVolume_SecretVersion.ProtoReflect.Descriptor instead.

func (*SecretVolume_SecretVersion) GetPath

func (x *SecretVolume_SecretVersion) GetPath() string

func (*SecretVolume_SecretVersion) GetVersion

func (x *SecretVolume_SecretVersion) GetVersion() string

func (*SecretVolume_SecretVersion) ProtoMessage

func (*SecretVolume_SecretVersion) ProtoMessage()

func (*SecretVolume_SecretVersion) ProtoReflect

func (*SecretVolume_SecretVersion) Reset

func (x *SecretVolume_SecretVersion) Reset()

func (*SecretVolume_SecretVersion) String

func (x *SecretVolume_SecretVersion) String() string

type ServiceConfig

type ServiceConfig struct {

	// 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 `` /* 195-byte string literal not displayed */
	// 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 `` /* 223-byte string literal not displayed */
	// The ingress settings for the function, controlling what traffic can reach
	// it.
	IngressSettings ServiceConfig_IngressSettings `` /* 175-byte string literal not displayed */
	// 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 `` /* 147-byte string literal not displayed */
	// Secret environment variables configuration.
	SecretEnvironmentVariables []*SecretEnvVar `` /* 142-byte string literal not displayed */
	// 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 `` /* 154-byte string literal not displayed */
	// 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 `` /* 168-byte string literal not displayed */
	// contains filtered or unexported fields
}

Describes the Service being deployed. Currently Supported : Cloud Run (fully managed). Next tag: 23

func (*ServiceConfig) Descriptor deprecated

func (*ServiceConfig) Descriptor() ([]byte, []int)

Deprecated: Use ServiceConfig.ProtoReflect.Descriptor instead.

func (*ServiceConfig) GetAllTrafficOnLatestRevision

func (x *ServiceConfig) GetAllTrafficOnLatestRevision() bool

func (*ServiceConfig) GetAvailableCpu

func (x *ServiceConfig) GetAvailableCpu() string

func (*ServiceConfig) GetAvailableMemory

func (x *ServiceConfig) GetAvailableMemory() string

func (*ServiceConfig) GetEnvironmentVariables

func (x *ServiceConfig) GetEnvironmentVariables() map[string]string

func (*ServiceConfig) GetIngressSettings

func (x *ServiceConfig) GetIngressSettings() ServiceConfig_IngressSettings

func (*ServiceConfig) GetMaxInstanceCount

func (x *ServiceConfig) GetMaxInstanceCount() int32

func (*ServiceConfig) GetMaxInstanceRequestConcurrency

func (x *ServiceConfig) GetMaxInstanceRequestConcurrency() int32

func (*ServiceConfig) GetMinInstanceCount

func (x *ServiceConfig) GetMinInstanceCount() int32

func (*ServiceConfig) GetRevision

func (x *ServiceConfig) GetRevision() string

func (*ServiceConfig) GetSecretEnvironmentVariables

func (x *ServiceConfig) GetSecretEnvironmentVariables() []*SecretEnvVar

func (*ServiceConfig) GetSecretVolumes

func (x *ServiceConfig) GetSecretVolumes() []*SecretVolume

func (*ServiceConfig) GetSecurityLevel

func (x *ServiceConfig) GetSecurityLevel() ServiceConfig_SecurityLevel

func (*ServiceConfig) GetService

func (x *ServiceConfig) GetService() string

func (*ServiceConfig) GetServiceAccountEmail

func (x *ServiceConfig) GetServiceAccountEmail() string

func (*ServiceConfig) GetTimeoutSeconds

func (x *ServiceConfig) GetTimeoutSeconds() int32

func (*ServiceConfig) GetUri

func (x *ServiceConfig) GetUri() string

func (*ServiceConfig) GetVpcConnector

func (x *ServiceConfig) GetVpcConnector() string

func (*ServiceConfig) GetVpcConnectorEgressSettings

func (x *ServiceConfig) GetVpcConnectorEgressSettings() ServiceConfig_VpcConnectorEgressSettings

func (*ServiceConfig) ProtoMessage

func (*ServiceConfig) ProtoMessage()

func (*ServiceConfig) ProtoReflect

func (x *ServiceConfig) ProtoReflect() protoreflect.Message

func (*ServiceConfig) Reset

func (x *ServiceConfig) Reset()

func (*ServiceConfig) String

func (x *ServiceConfig) String() string

type ServiceConfig_IngressSettings

type ServiceConfig_IngressSettings int32

Available ingress settings.

This controls what traffic can reach the function.

If unspecified, ALLOW_ALL will be used.

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
)

func (ServiceConfig_IngressSettings) Descriptor

func (ServiceConfig_IngressSettings) Enum

func (ServiceConfig_IngressSettings) EnumDescriptor deprecated

func (ServiceConfig_IngressSettings) EnumDescriptor() ([]byte, []int)

Deprecated: Use ServiceConfig_IngressSettings.Descriptor instead.

func (ServiceConfig_IngressSettings) Number

func (ServiceConfig_IngressSettings) String

func (ServiceConfig_IngressSettings) Type

type ServiceConfig_SecurityLevel

type ServiceConfig_SecurityLevel int32

Available security level settings.

This enforces security protocol on function URL.

Security level is only ocnfigurable for 1st Gen functions, If unspecified, SECURE_OPTIONAL will be used. 2nd Gen functions are SECURE_ALWAYS ONLY.

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
)

func (ServiceConfig_SecurityLevel) Descriptor

func (ServiceConfig_SecurityLevel) Enum

func (ServiceConfig_SecurityLevel) EnumDescriptor deprecated

func (ServiceConfig_SecurityLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use ServiceConfig_SecurityLevel.Descriptor instead.

func (ServiceConfig_SecurityLevel) Number

func (ServiceConfig_SecurityLevel) String

func (ServiceConfig_SecurityLevel) Type

type ServiceConfig_VpcConnectorEgressSettings

type ServiceConfig_VpcConnectorEgressSettings int32

Available egress settings.

This controls what traffic is diverted through the VPC Access Connector resource. By default PRIVATE_RANGES_ONLY will be used.

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
)

func (ServiceConfig_VpcConnectorEgressSettings) Descriptor

func (ServiceConfig_VpcConnectorEgressSettings) Enum

func (ServiceConfig_VpcConnectorEgressSettings) EnumDescriptor deprecated

func (ServiceConfig_VpcConnectorEgressSettings) EnumDescriptor() ([]byte, []int)

Deprecated: Use ServiceConfig_VpcConnectorEgressSettings.Descriptor instead.

func (ServiceConfig_VpcConnectorEgressSettings) Number

func (ServiceConfig_VpcConnectorEgressSettings) String

func (ServiceConfig_VpcConnectorEgressSettings) Type

type Source

type Source struct {

	// 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 isSource_Source `protobuf_oneof:"source"`
	// contains filtered or unexported fields
}

The location of the function source code.

func (*Source) Descriptor deprecated

func (*Source) Descriptor() ([]byte, []int)

Deprecated: Use Source.ProtoReflect.Descriptor instead.

func (*Source) GetRepoSource

func (x *Source) GetRepoSource() *RepoSource

func (*Source) GetSource

func (x *Source) GetSource() isSource_Source

func (*Source) GetStorageSource

func (x *Source) GetStorageSource() *StorageSource

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) ProtoReflect

func (x *Source) ProtoReflect() protoreflect.Message

func (*Source) Reset

func (x *Source) Reset()

func (*Source) String

func (x *Source) String() string

type SourceProvenance

type SourceProvenance struct {

	// A copy of the build's `source.storage_source`, if exists, with any
	// generations resolved.
	ResolvedStorageSource *StorageSource `` /* 126-byte string literal not displayed */
	// 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"`
	// contains filtered or unexported fields
}

Provenance of the source. Ways to find the original source, or verify that some source was used for this build.

func (*SourceProvenance) Descriptor deprecated

func (*SourceProvenance) Descriptor() ([]byte, []int)

Deprecated: Use SourceProvenance.ProtoReflect.Descriptor instead.

func (*SourceProvenance) GetResolvedRepoSource

func (x *SourceProvenance) GetResolvedRepoSource() *RepoSource

func (*SourceProvenance) GetResolvedStorageSource

func (x *SourceProvenance) GetResolvedStorageSource() *StorageSource

func (*SourceProvenance) ProtoMessage

func (*SourceProvenance) ProtoMessage()

func (*SourceProvenance) ProtoReflect

func (x *SourceProvenance) ProtoReflect() protoreflect.Message

func (*SourceProvenance) Reset

func (x *SourceProvenance) Reset()

func (*SourceProvenance) String

func (x *SourceProvenance) String() string

type Source_RepoSource

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_StorageSource

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 StateMessage

type StateMessage struct {

	// Severity of the state message.
	Severity StateMessage_Severity `` /* 130-byte string literal not displayed */
	// 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"`
	// contains filtered or unexported fields
}

Informational messages about the state of the Cloud Function or Operation.

func (*StateMessage) Descriptor deprecated

func (*StateMessage) Descriptor() ([]byte, []int)

Deprecated: Use StateMessage.ProtoReflect.Descriptor instead.

func (*StateMessage) GetMessage

func (x *StateMessage) GetMessage() string

func (*StateMessage) GetSeverity

func (x *StateMessage) GetSeverity() StateMessage_Severity

func (*StateMessage) GetType

func (x *StateMessage) GetType() string

func (*StateMessage) ProtoMessage

func (*StateMessage) ProtoMessage()

func (*StateMessage) ProtoReflect

func (x *StateMessage) ProtoReflect() protoreflect.Message

func (*StateMessage) Reset

func (x *StateMessage) Reset()

func (*StateMessage) String

func (x *StateMessage) String() string

type StateMessage_Severity

type StateMessage_Severity int32

Severity of the state message.

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
)

func (StateMessage_Severity) Descriptor

func (StateMessage_Severity) Enum

func (StateMessage_Severity) EnumDescriptor deprecated

func (StateMessage_Severity) EnumDescriptor() ([]byte, []int)

Deprecated: Use StateMessage_Severity.Descriptor instead.

func (StateMessage_Severity) Number

func (StateMessage_Severity) String

func (x StateMessage_Severity) String() string

func (StateMessage_Severity) Type

type StorageSource

type StorageSource struct {

	// 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"`
	// contains filtered or unexported fields
}

Location of the source in an archive file in Google Cloud Storage.

func (*StorageSource) Descriptor deprecated

func (*StorageSource) Descriptor() ([]byte, []int)

Deprecated: Use StorageSource.ProtoReflect.Descriptor instead.

func (*StorageSource) GetBucket

func (x *StorageSource) GetBucket() string

func (*StorageSource) GetGeneration

func (x *StorageSource) GetGeneration() int64

func (*StorageSource) GetObject

func (x *StorageSource) GetObject() string

func (*StorageSource) ProtoMessage

func (*StorageSource) ProtoMessage()

func (*StorageSource) ProtoReflect

func (x *StorageSource) ProtoReflect() protoreflect.Message

func (*StorageSource) Reset

func (x *StorageSource) Reset()

func (*StorageSource) String

func (x *StorageSource) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL