Path: blob/main/components/registry-facade-api/go/imagespec.pb.go
2498 views
// Copyright (c) 2023 Gitpod GmbH. All rights reserved.1// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34// Code generated by protoc-gen-go. DO NOT EDIT.5// versions:6// protoc-gen-go v1.28.17// protoc v3.20.18// source: imagespec.proto910package api1112import (13protoreflect "google.golang.org/protobuf/reflect/protoreflect"14protoimpl "google.golang.org/protobuf/runtime/protoimpl"15reflect "reflect"16sync "sync"17)1819const (20// Verify that this generated code is sufficiently up-to-date.21_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)22// Verify that runtime/protoimpl is sufficiently up-to-date.23_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)24)2526// ImageSpec configures the image one wishes to pull from a registry facade27type ImageSpec struct {28state protoimpl.MessageState29sizeCache protoimpl.SizeCache30unknownFields protoimpl.UnknownFields3132// base_ref points to an image in another registry33BaseRef string `protobuf:"bytes,1,opt,name=base_ref,json=baseRef,proto3" json:"base_ref,omitempty"`34// ide_ref points to an image denoting the IDE to use35IdeRef string `protobuf:"bytes,2,opt,name=ide_ref,json=ideRef,proto3" json:"ide_ref,omitempty"`36// content_layer describe the last few layers which provide the workspace's content37ContentLayer []*ContentLayer `protobuf:"bytes,3,rep,name=content_layer,json=contentLayer,proto3" json:"content_layer,omitempty"`38// supervisor_ref points to an image denotign the supervisor to use39SupervisorRef string `protobuf:"bytes,5,opt,name=supervisor_ref,json=supervisorRef,proto3" json:"supervisor_ref,omitempty"`40// ide_layer_ref contains all these layers needed by ide except `web-ide` and `supervisor`41IdeLayerRef []string `protobuf:"bytes,7,rep,name=ide_layer_ref,json=ideLayerRef,proto3" json:"ide_layer_ref,omitempty"`42}4344func (x *ImageSpec) Reset() {45*x = ImageSpec{}46if protoimpl.UnsafeEnabled {47mi := &file_imagespec_proto_msgTypes[0]48ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))49ms.StoreMessageInfo(mi)50}51}5253func (x *ImageSpec) String() string {54return protoimpl.X.MessageStringOf(x)55}5657func (*ImageSpec) ProtoMessage() {}5859func (x *ImageSpec) ProtoReflect() protoreflect.Message {60mi := &file_imagespec_proto_msgTypes[0]61if protoimpl.UnsafeEnabled && x != nil {62ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))63if ms.LoadMessageInfo() == nil {64ms.StoreMessageInfo(mi)65}66return ms67}68return mi.MessageOf(x)69}7071// Deprecated: Use ImageSpec.ProtoReflect.Descriptor instead.72func (*ImageSpec) Descriptor() ([]byte, []int) {73return file_imagespec_proto_rawDescGZIP(), []int{0}74}7576func (x *ImageSpec) GetBaseRef() string {77if x != nil {78return x.BaseRef79}80return ""81}8283func (x *ImageSpec) GetIdeRef() string {84if x != nil {85return x.IdeRef86}87return ""88}8990func (x *ImageSpec) GetContentLayer() []*ContentLayer {91if x != nil {92return x.ContentLayer93}94return nil95}9697func (x *ImageSpec) GetSupervisorRef() string {98if x != nil {99return x.SupervisorRef100}101return ""102}103104func (x *ImageSpec) GetIdeLayerRef() []string {105if x != nil {106return x.IdeLayerRef107}108return nil109}110111// ContentLayer is a layer that provides a workspace's content112type ContentLayer struct {113state protoimpl.MessageState114sizeCache protoimpl.SizeCache115unknownFields protoimpl.UnknownFields116117// Types that are assignable to Spec:118//119// *ContentLayer_Remote120// *ContentLayer_Direct121Spec isContentLayer_Spec `protobuf_oneof:"spec"`122}123124func (x *ContentLayer) Reset() {125*x = ContentLayer{}126if protoimpl.UnsafeEnabled {127mi := &file_imagespec_proto_msgTypes[1]128ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))129ms.StoreMessageInfo(mi)130}131}132133func (x *ContentLayer) String() string {134return protoimpl.X.MessageStringOf(x)135}136137func (*ContentLayer) ProtoMessage() {}138139func (x *ContentLayer) ProtoReflect() protoreflect.Message {140mi := &file_imagespec_proto_msgTypes[1]141if protoimpl.UnsafeEnabled && x != nil {142ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))143if ms.LoadMessageInfo() == nil {144ms.StoreMessageInfo(mi)145}146return ms147}148return mi.MessageOf(x)149}150151// Deprecated: Use ContentLayer.ProtoReflect.Descriptor instead.152func (*ContentLayer) Descriptor() ([]byte, []int) {153return file_imagespec_proto_rawDescGZIP(), []int{1}154}155156func (m *ContentLayer) GetSpec() isContentLayer_Spec {157if m != nil {158return m.Spec159}160return nil161}162163func (x *ContentLayer) GetRemote() *RemoteContentLayer {164if x, ok := x.GetSpec().(*ContentLayer_Remote); ok {165return x.Remote166}167return nil168}169170func (x *ContentLayer) GetDirect() *DirectContentLayer {171if x, ok := x.GetSpec().(*ContentLayer_Direct); ok {172return x.Direct173}174return nil175}176177type isContentLayer_Spec interface {178isContentLayer_Spec()179}180181type ContentLayer_Remote struct {182Remote *RemoteContentLayer `protobuf:"bytes,1,opt,name=remote,proto3,oneof"`183}184185type ContentLayer_Direct struct {186Direct *DirectContentLayer `protobuf:"bytes,2,opt,name=direct,proto3,oneof"`187}188189func (*ContentLayer_Remote) isContentLayer_Spec() {}190191func (*ContentLayer_Direct) isContentLayer_Spec() {}192193// RemoteContentLayer is a layer which can be downloaded from a remote URL.194// If the diff_id is empty or equals the digest the layer is expected to be uncompressed.195type RemoteContentLayer struct {196state protoimpl.MessageState197sizeCache protoimpl.SizeCache198unknownFields protoimpl.UnknownFields199200// url points to the actual content location. This must be a valid HTTPS URL pointing201// to a tar.gz file.202Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`203// digest is the digest (content hash) of the file the URL points to.204Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`205// diff_id is the digest (content hash) of the uncompressed data the URL points to if the206// the URL points to a compressed file. If the file is uncompressed to begin with this field207// can either be empty or the same as digest.208DiffId string `protobuf:"bytes,3,opt,name=diff_id,json=diffId,proto3" json:"diff_id,omitempty"`209// media_type is the content type of the layer and is expected to be one of:210//211// application/vnd.oci.image.layer.v1.tar212// application/vnd.oci.image.layer.v1.tar+gzip213// application/vnd.oci.image.layer.v1.tar+zstd214MediaType string `protobuf:"bytes,4,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"`215// size is the size of the layer download in bytes216Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`217}218219func (x *RemoteContentLayer) Reset() {220*x = RemoteContentLayer{}221if protoimpl.UnsafeEnabled {222mi := &file_imagespec_proto_msgTypes[2]223ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))224ms.StoreMessageInfo(mi)225}226}227228func (x *RemoteContentLayer) String() string {229return protoimpl.X.MessageStringOf(x)230}231232func (*RemoteContentLayer) ProtoMessage() {}233234func (x *RemoteContentLayer) ProtoReflect() protoreflect.Message {235mi := &file_imagespec_proto_msgTypes[2]236if protoimpl.UnsafeEnabled && x != nil {237ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))238if ms.LoadMessageInfo() == nil {239ms.StoreMessageInfo(mi)240}241return ms242}243return mi.MessageOf(x)244}245246// Deprecated: Use RemoteContentLayer.ProtoReflect.Descriptor instead.247func (*RemoteContentLayer) Descriptor() ([]byte, []int) {248return file_imagespec_proto_rawDescGZIP(), []int{2}249}250251func (x *RemoteContentLayer) GetUrl() string {252if x != nil {253return x.Url254}255return ""256}257258func (x *RemoteContentLayer) GetDigest() string {259if x != nil {260return x.Digest261}262return ""263}264265func (x *RemoteContentLayer) GetDiffId() string {266if x != nil {267return x.DiffId268}269return ""270}271272func (x *RemoteContentLayer) GetMediaType() string {273if x != nil {274return x.MediaType275}276return ""277}278279func (x *RemoteContentLayer) GetSize() int64 {280if x != nil {281return x.Size282}283return 0284}285286// DirectContentLayer is an uncompressed tar file which is directly added as layer287type DirectContentLayer struct {288state protoimpl.MessageState289sizeCache protoimpl.SizeCache290unknownFields protoimpl.UnknownFields291292// the bytes of the uncompressed tar file which is served as layer293Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`294}295296func (x *DirectContentLayer) Reset() {297*x = DirectContentLayer{}298if protoimpl.UnsafeEnabled {299mi := &file_imagespec_proto_msgTypes[3]300ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))301ms.StoreMessageInfo(mi)302}303}304305func (x *DirectContentLayer) String() string {306return protoimpl.X.MessageStringOf(x)307}308309func (*DirectContentLayer) ProtoMessage() {}310311func (x *DirectContentLayer) ProtoReflect() protoreflect.Message {312mi := &file_imagespec_proto_msgTypes[3]313if protoimpl.UnsafeEnabled && x != nil {314ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))315if ms.LoadMessageInfo() == nil {316ms.StoreMessageInfo(mi)317}318return ms319}320return mi.MessageOf(x)321}322323// Deprecated: Use DirectContentLayer.ProtoReflect.Descriptor instead.324func (*DirectContentLayer) Descriptor() ([]byte, []int) {325return file_imagespec_proto_rawDescGZIP(), []int{3}326}327328func (x *DirectContentLayer) GetContent() []byte {329if x != nil {330return x.Content331}332return nil333}334335var File_imagespec_proto protoreflect.FileDescriptor336337var file_imagespec_proto_rawDesc = []byte{3380x0a, 0x0f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74,3390x6f, 0x12, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x66, 0x61, 0x63, 0x61, 0x64,3400x65, 0x22, 0xd9, 0x01, 0x0a, 0x09, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x53, 0x70, 0x65, 0x63, 0x12,3410x19, 0x0a, 0x08, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28,3420x09, 0x52, 0x07, 0x62, 0x61, 0x73, 0x65, 0x52, 0x65, 0x66, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x64,3430x65, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x64, 0x65,3440x52, 0x65, 0x66, 0x12, 0x41, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6c,3450x61, 0x79, 0x65, 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x72, 0x65, 0x67,3460x69, 0x73, 0x74, 0x72, 0x79, 0x66, 0x61, 0x63, 0x61, 0x64, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74,3470x65, 0x6e, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,3480x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76,3490x69, 0x73, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,3500x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x6f, 0x72, 0x52, 0x65, 0x66, 0x12, 0x22, 0x0a,3510x0d, 0x69, 0x64, 0x65, 0x5f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x66, 0x18, 0x07,3520x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x64, 0x65, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x65,3530x66, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x22, 0x92, 0x01,3540x0a, 0x0c, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x3c,3550x0a, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22,3560x2e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x66, 0x61, 0x63, 0x61, 0x64, 0x65, 0x2e,3570x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x61, 0x79,3580x65, 0x72, 0x48, 0x00, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x06,3590x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x72,3600x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x66, 0x61, 0x63, 0x61, 0x64, 0x65, 0x2e, 0x44, 0x69,3610x72, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72,3620x48, 0x00, 0x52, 0x06, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x42, 0x06, 0x0a, 0x04, 0x73, 0x70,3630x65, 0x63, 0x22, 0x8a, 0x01, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x43, 0x6f, 0x6e,3640x74, 0x65, 0x6e, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c,3650x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x64,3660x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x69, 0x67,3670x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x64, 0x69, 0x66, 0x66, 0x5f, 0x69, 0x64, 0x18, 0x03,3680x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x69, 0x66, 0x66, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a,3690x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,3700x52, 0x09, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73,3710x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22,3720x2e, 0x0a, 0x12, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,3730x4c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,3740x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42,3750x31, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69,3760x74, 0x70, 0x6f, 0x64, 0x2d, 0x69, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x70, 0x6f, 0x64, 0x2f, 0x72,3770x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2d, 0x66, 0x61, 0x63, 0x61, 0x64, 0x65, 0x2f, 0x61,3780x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,379}380381var (382file_imagespec_proto_rawDescOnce sync.Once383file_imagespec_proto_rawDescData = file_imagespec_proto_rawDesc384)385386func file_imagespec_proto_rawDescGZIP() []byte {387file_imagespec_proto_rawDescOnce.Do(func() {388file_imagespec_proto_rawDescData = protoimpl.X.CompressGZIP(file_imagespec_proto_rawDescData)389})390return file_imagespec_proto_rawDescData391}392393var file_imagespec_proto_msgTypes = make([]protoimpl.MessageInfo, 4)394var file_imagespec_proto_goTypes = []interface{}{395(*ImageSpec)(nil), // 0: registryfacade.ImageSpec396(*ContentLayer)(nil), // 1: registryfacade.ContentLayer397(*RemoteContentLayer)(nil), // 2: registryfacade.RemoteContentLayer398(*DirectContentLayer)(nil), // 3: registryfacade.DirectContentLayer399}400var file_imagespec_proto_depIdxs = []int32{4011, // 0: registryfacade.ImageSpec.content_layer:type_name -> registryfacade.ContentLayer4022, // 1: registryfacade.ContentLayer.remote:type_name -> registryfacade.RemoteContentLayer4033, // 2: registryfacade.ContentLayer.direct:type_name -> registryfacade.DirectContentLayer4043, // [3:3] is the sub-list for method output_type4053, // [3:3] is the sub-list for method input_type4063, // [3:3] is the sub-list for extension type_name4073, // [3:3] is the sub-list for extension extendee4080, // [0:3] is the sub-list for field type_name409}410411func init() { file_imagespec_proto_init() }412func file_imagespec_proto_init() {413if File_imagespec_proto != nil {414return415}416if !protoimpl.UnsafeEnabled {417file_imagespec_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {418switch v := v.(*ImageSpec); i {419case 0:420return &v.state421case 1:422return &v.sizeCache423case 2:424return &v.unknownFields425default:426return nil427}428}429file_imagespec_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {430switch v := v.(*ContentLayer); i {431case 0:432return &v.state433case 1:434return &v.sizeCache435case 2:436return &v.unknownFields437default:438return nil439}440}441file_imagespec_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {442switch v := v.(*RemoteContentLayer); i {443case 0:444return &v.state445case 1:446return &v.sizeCache447case 2:448return &v.unknownFields449default:450return nil451}452}453file_imagespec_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {454switch v := v.(*DirectContentLayer); i {455case 0:456return &v.state457case 1:458return &v.sizeCache459case 2:460return &v.unknownFields461default:462return nil463}464}465}466file_imagespec_proto_msgTypes[1].OneofWrappers = []interface{}{467(*ContentLayer_Remote)(nil),468(*ContentLayer_Direct)(nil),469}470type x struct{}471out := protoimpl.TypeBuilder{472File: protoimpl.DescBuilder{473GoPackagePath: reflect.TypeOf(x{}).PkgPath(),474RawDescriptor: file_imagespec_proto_rawDesc,475NumEnums: 0,476NumMessages: 4,477NumExtensions: 0,478NumServices: 0,479},480GoTypes: file_imagespec_proto_goTypes,481DependencyIndexes: file_imagespec_proto_depIdxs,482MessageInfos: file_imagespec_proto_msgTypes,483}.Build()484File_imagespec_proto = out.File485file_imagespec_proto_rawDesc = nil486file_imagespec_proto_goTypes = nil487file_imagespec_proto_depIdxs = nil488}489490491