blob: 7a87b335bb25abdc7fa970c1d7f68aa0dd77107f [file] [edit]
// 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/appengine/v1/deploy.proto
package appenginepb
import (
reflect "reflect"
sync "sync"
unsafe "unsafe"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
)
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)
)
// Code and application artifacts used to deploy a version to App Engine.
type Deployment struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Manifest of the files stored in Google Cloud Storage that are included
// as part of this version. All files must be readable using the
// credentials supplied with this call.
Files map[string]*FileInfo `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// The Docker image for the container that runs the version.
// Only applicable for instances running in the App Engine flexible environment.
Container *ContainerInfo `protobuf:"bytes,2,opt,name=container,proto3" json:"container,omitempty"`
// The zip file for this deployment, if this is a zip deployment.
Zip *ZipInfo `protobuf:"bytes,3,opt,name=zip,proto3" json:"zip,omitempty"`
// Options for any Google Cloud Build builds created as a part of this
// deployment.
//
// These options will only be used if a new build is created, such as when
// deploying to the App Engine flexible environment using files or zip.
CloudBuildOptions *CloudBuildOptions `protobuf:"bytes,6,opt,name=cloud_build_options,json=cloudBuildOptions,proto3" json:"cloud_build_options,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Deployment) Reset() {
*x = Deployment{}
mi := &file_google_appengine_v1_deploy_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Deployment) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Deployment) ProtoMessage() {}
func (x *Deployment) ProtoReflect() protoreflect.Message {
mi := &file_google_appengine_v1_deploy_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 Deployment.ProtoReflect.Descriptor instead.
func (*Deployment) Descriptor() ([]byte, []int) {
return file_google_appengine_v1_deploy_proto_rawDescGZIP(), []int{0}
}
func (x *Deployment) GetFiles() map[string]*FileInfo {
if x != nil {
return x.Files
}
return nil
}
func (x *Deployment) GetContainer() *ContainerInfo {
if x != nil {
return x.Container
}
return nil
}
func (x *Deployment) GetZip() *ZipInfo {
if x != nil {
return x.Zip
}
return nil
}
func (x *Deployment) GetCloudBuildOptions() *CloudBuildOptions {
if x != nil {
return x.CloudBuildOptions
}
return nil
}
// Single source file that is part of the version to be deployed. Each source
// file that is deployed must be specified separately.
type FileInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
// URL source to use to fetch this file. Must be a URL to a resource in
// Google Cloud Storage in the form
// 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.
SourceUrl string `protobuf:"bytes,1,opt,name=source_url,json=sourceUrl,proto3" json:"source_url,omitempty"`
// The SHA1 hash of the file, in hex.
Sha1Sum string `protobuf:"bytes,2,opt,name=sha1_sum,json=sha1Sum,proto3" json:"sha1_sum,omitempty"`
// The MIME type of the file.
//
// Defaults to the value from Google Cloud Storage.
MimeType string `protobuf:"bytes,3,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FileInfo) Reset() {
*x = FileInfo{}
mi := &file_google_appengine_v1_deploy_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FileInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FileInfo) ProtoMessage() {}
func (x *FileInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_appengine_v1_deploy_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 FileInfo.ProtoReflect.Descriptor instead.
func (*FileInfo) Descriptor() ([]byte, []int) {
return file_google_appengine_v1_deploy_proto_rawDescGZIP(), []int{1}
}
func (x *FileInfo) GetSourceUrl() string {
if x != nil {
return x.SourceUrl
}
return ""
}
func (x *FileInfo) GetSha1Sum() string {
if x != nil {
return x.Sha1Sum
}
return ""
}
func (x *FileInfo) GetMimeType() string {
if x != nil {
return x.MimeType
}
return ""
}
// Docker image that is used to create a container and start a VM instance for
// the version that you deploy. Only applicable for instances running in the App
// Engine flexible environment.
type ContainerInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
// URI to the hosted container image in Google Container Registry. The URI
// must be fully qualified and include a tag or digest.
// Examples: "gcr.io/my-project/image:tag" or "gcr.io/my-project/image@digest"
Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ContainerInfo) Reset() {
*x = ContainerInfo{}
mi := &file_google_appengine_v1_deploy_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ContainerInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ContainerInfo) ProtoMessage() {}
func (x *ContainerInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_appengine_v1_deploy_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 ContainerInfo.ProtoReflect.Descriptor instead.
func (*ContainerInfo) Descriptor() ([]byte, []int) {
return file_google_appengine_v1_deploy_proto_rawDescGZIP(), []int{2}
}
func (x *ContainerInfo) GetImage() string {
if x != nil {
return x.Image
}
return ""
}
// Options for the build operations performed as a part of the version
// deployment. Only applicable for App Engine flexible environment when creating
// a version using source code directly.
type CloudBuildOptions struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Path to the yaml file used in deployment, used to determine runtime
// configuration details.
//
// Required for flexible environment builds.
//
// See https://cloud.google.com/appengine/docs/standard/python/config/appref
// for more details.
AppYamlPath string `protobuf:"bytes,1,opt,name=app_yaml_path,json=appYamlPath,proto3" json:"app_yaml_path,omitempty"`
// The Cloud Build timeout used as part of any dependent builds performed by
// version creation. Defaults to 10 minutes.
CloudBuildTimeout *durationpb.Duration `protobuf:"bytes,2,opt,name=cloud_build_timeout,json=cloudBuildTimeout,proto3" json:"cloud_build_timeout,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CloudBuildOptions) Reset() {
*x = CloudBuildOptions{}
mi := &file_google_appengine_v1_deploy_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CloudBuildOptions) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CloudBuildOptions) ProtoMessage() {}
func (x *CloudBuildOptions) ProtoReflect() protoreflect.Message {
mi := &file_google_appengine_v1_deploy_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 CloudBuildOptions.ProtoReflect.Descriptor instead.
func (*CloudBuildOptions) Descriptor() ([]byte, []int) {
return file_google_appengine_v1_deploy_proto_rawDescGZIP(), []int{3}
}
func (x *CloudBuildOptions) GetAppYamlPath() string {
if x != nil {
return x.AppYamlPath
}
return ""
}
func (x *CloudBuildOptions) GetCloudBuildTimeout() *durationpb.Duration {
if x != nil {
return x.CloudBuildTimeout
}
return nil
}
// The zip file information for a zip deployment.
type ZipInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
// URL of the zip file to deploy from. Must be a URL to a resource in
// Google Cloud Storage in the form
// 'http(s)://storage.googleapis.com/\<bucket\>/\<object\>'.
SourceUrl string `protobuf:"bytes,3,opt,name=source_url,json=sourceUrl,proto3" json:"source_url,omitempty"`
// An estimate of the number of files in a zip for a zip deployment.
// If set, must be greater than or equal to the actual number of files.
// Used for optimizing performance; if not provided, deployment may be slow.
FilesCount int32 `protobuf:"varint,4,opt,name=files_count,json=filesCount,proto3" json:"files_count,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ZipInfo) Reset() {
*x = ZipInfo{}
mi := &file_google_appengine_v1_deploy_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ZipInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ZipInfo) ProtoMessage() {}
func (x *ZipInfo) ProtoReflect() protoreflect.Message {
mi := &file_google_appengine_v1_deploy_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 ZipInfo.ProtoReflect.Descriptor instead.
func (*ZipInfo) Descriptor() ([]byte, []int) {
return file_google_appengine_v1_deploy_proto_rawDescGZIP(), []int{4}
}
func (x *ZipInfo) GetSourceUrl() string {
if x != nil {
return x.SourceUrl
}
return ""
}
func (x *ZipInfo) GetFilesCount() int32 {
if x != nil {
return x.FilesCount
}
return 0
}
var File_google_appengine_v1_deploy_proto protoreflect.FileDescriptor
const file_google_appengine_v1_deploy_proto_rawDesc = "" +
"\n" +
" google/appengine/v1/deploy.proto\x12\x13google.appengine.v1\x1a\x1egoogle/protobuf/duration.proto\"\xf1\x02\n" +
"\n" +
"Deployment\x12@\n" +
"\x05files\x18\x01 \x03(\v2*.google.appengine.v1.Deployment.FilesEntryR\x05files\x12@\n" +
"\tcontainer\x18\x02 \x01(\v2\".google.appengine.v1.ContainerInfoR\tcontainer\x12.\n" +
"\x03zip\x18\x03 \x01(\v2\x1c.google.appengine.v1.ZipInfoR\x03zip\x12V\n" +
"\x13cloud_build_options\x18\x06 \x01(\v2&.google.appengine.v1.CloudBuildOptionsR\x11cloudBuildOptions\x1aW\n" +
"\n" +
"FilesEntry\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x123\n" +
"\x05value\x18\x02 \x01(\v2\x1d.google.appengine.v1.FileInfoR\x05value:\x028\x01\"a\n" +
"\bFileInfo\x12\x1d\n" +
"\n" +
"source_url\x18\x01 \x01(\tR\tsourceUrl\x12\x19\n" +
"\bsha1_sum\x18\x02 \x01(\tR\asha1Sum\x12\x1b\n" +
"\tmime_type\x18\x03 \x01(\tR\bmimeType\"%\n" +
"\rContainerInfo\x12\x14\n" +
"\x05image\x18\x01 \x01(\tR\x05image\"\x82\x01\n" +
"\x11CloudBuildOptions\x12\"\n" +
"\rapp_yaml_path\x18\x01 \x01(\tR\vappYamlPath\x12I\n" +
"\x13cloud_build_timeout\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x11cloudBuildTimeout\"I\n" +
"\aZipInfo\x12\x1d\n" +
"\n" +
"source_url\x18\x03 \x01(\tR\tsourceUrl\x12\x1f\n" +
"\vfiles_count\x18\x04 \x01(\x05R\n" +
"filesCountB\xbc\x01\n" +
"\x17com.google.appengine.v1B\vDeployProtoP\x01Z;cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb\xaa\x02\x19Google.Cloud.AppEngine.V1\xca\x02\x19Google\\Cloud\\AppEngine\\V1\xea\x02\x1cGoogle::Cloud::AppEngine::V1b\x06proto3"
var (
file_google_appengine_v1_deploy_proto_rawDescOnce sync.Once
file_google_appengine_v1_deploy_proto_rawDescData []byte
)
func file_google_appengine_v1_deploy_proto_rawDescGZIP() []byte {
file_google_appengine_v1_deploy_proto_rawDescOnce.Do(func() {
file_google_appengine_v1_deploy_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_google_appengine_v1_deploy_proto_rawDesc), len(file_google_appengine_v1_deploy_proto_rawDesc)))
})
return file_google_appengine_v1_deploy_proto_rawDescData
}
var file_google_appengine_v1_deploy_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_google_appengine_v1_deploy_proto_goTypes = []any{
(*Deployment)(nil), // 0: google.appengine.v1.Deployment
(*FileInfo)(nil), // 1: google.appengine.v1.FileInfo
(*ContainerInfo)(nil), // 2: google.appengine.v1.ContainerInfo
(*CloudBuildOptions)(nil), // 3: google.appengine.v1.CloudBuildOptions
(*ZipInfo)(nil), // 4: google.appengine.v1.ZipInfo
nil, // 5: google.appengine.v1.Deployment.FilesEntry
(*durationpb.Duration)(nil), // 6: google.protobuf.Duration
}
var file_google_appengine_v1_deploy_proto_depIdxs = []int32{
5, // 0: google.appengine.v1.Deployment.files:type_name -> google.appengine.v1.Deployment.FilesEntry
2, // 1: google.appengine.v1.Deployment.container:type_name -> google.appengine.v1.ContainerInfo
4, // 2: google.appengine.v1.Deployment.zip:type_name -> google.appengine.v1.ZipInfo
3, // 3: google.appengine.v1.Deployment.cloud_build_options:type_name -> google.appengine.v1.CloudBuildOptions
6, // 4: google.appengine.v1.CloudBuildOptions.cloud_build_timeout:type_name -> google.protobuf.Duration
1, // 5: google.appengine.v1.Deployment.FilesEntry.value:type_name -> google.appengine.v1.FileInfo
6, // [6:6] is the sub-list for method output_type
6, // [6:6] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
}
func init() { file_google_appengine_v1_deploy_proto_init() }
func file_google_appengine_v1_deploy_proto_init() {
if File_google_appengine_v1_deploy_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_appengine_v1_deploy_proto_rawDesc), len(file_google_appengine_v1_deploy_proto_rawDesc)),
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_google_appengine_v1_deploy_proto_goTypes,
DependencyIndexes: file_google_appengine_v1_deploy_proto_depIdxs,
MessageInfos: file_google_appengine_v1_deploy_proto_msgTypes,
}.Build()
File_google_appengine_v1_deploy_proto = out.File
file_google_appengine_v1_deploy_proto_goTypes = nil
file_google_appengine_v1_deploy_proto_depIdxs = nil
}