zotregistry.io/zot@v1.4.4-0.20231124084042-02a8ed785457/pkg/meta/proto/gen/manifest.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.31.0 4 // protoc v4.24.4 5 // source: oci/manifest.proto 6 7 package gen 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type Manifest struct { 24 state protoimpl.MessageState 25 sizeCache protoimpl.SizeCache 26 unknownFields protoimpl.UnknownFields 27 28 Versioned *Versioned `protobuf:"bytes,1,opt,name=Versioned,proto3" json:"Versioned,omitempty"` 29 MediaType *string `protobuf:"bytes,2,opt,name=MediaType,proto3,oneof" json:"MediaType,omitempty"` 30 ArtifactType *string `protobuf:"bytes,3,opt,name=ArtifactType,proto3,oneof" json:"ArtifactType,omitempty"` 31 Config *Descriptor `protobuf:"bytes,4,opt,name=Config,proto3" json:"Config,omitempty"` 32 Layers []*Descriptor `protobuf:"bytes,5,rep,name=Layers,proto3" json:"Layers,omitempty"` 33 Subject *Descriptor `protobuf:"bytes,6,opt,name=Subject,proto3,oneof" json:"Subject,omitempty"` 34 Annotations map[string]string `protobuf:"bytes,7,rep,name=Annotations,proto3" json:"Annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 35 } 36 37 func (x *Manifest) Reset() { 38 *x = Manifest{} 39 if protoimpl.UnsafeEnabled { 40 mi := &file_oci_manifest_proto_msgTypes[0] 41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 42 ms.StoreMessageInfo(mi) 43 } 44 } 45 46 func (x *Manifest) String() string { 47 return protoimpl.X.MessageStringOf(x) 48 } 49 50 func (*Manifest) ProtoMessage() {} 51 52 func (x *Manifest) ProtoReflect() protoreflect.Message { 53 mi := &file_oci_manifest_proto_msgTypes[0] 54 if protoimpl.UnsafeEnabled && x != nil { 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 if ms.LoadMessageInfo() == nil { 57 ms.StoreMessageInfo(mi) 58 } 59 return ms 60 } 61 return mi.MessageOf(x) 62 } 63 64 // Deprecated: Use Manifest.ProtoReflect.Descriptor instead. 65 func (*Manifest) Descriptor() ([]byte, []int) { 66 return file_oci_manifest_proto_rawDescGZIP(), []int{0} 67 } 68 69 func (x *Manifest) GetVersioned() *Versioned { 70 if x != nil { 71 return x.Versioned 72 } 73 return nil 74 } 75 76 func (x *Manifest) GetMediaType() string { 77 if x != nil && x.MediaType != nil { 78 return *x.MediaType 79 } 80 return "" 81 } 82 83 func (x *Manifest) GetArtifactType() string { 84 if x != nil && x.ArtifactType != nil { 85 return *x.ArtifactType 86 } 87 return "" 88 } 89 90 func (x *Manifest) GetConfig() *Descriptor { 91 if x != nil { 92 return x.Config 93 } 94 return nil 95 } 96 97 func (x *Manifest) GetLayers() []*Descriptor { 98 if x != nil { 99 return x.Layers 100 } 101 return nil 102 } 103 104 func (x *Manifest) GetSubject() *Descriptor { 105 if x != nil { 106 return x.Subject 107 } 108 return nil 109 } 110 111 func (x *Manifest) GetAnnotations() map[string]string { 112 if x != nil { 113 return x.Annotations 114 } 115 return nil 116 } 117 118 var File_oci_manifest_proto protoreflect.FileDescriptor 119 120 var file_oci_manifest_proto_rawDesc = []byte{ 121 0x0a, 0x12, 0x6f, 0x63, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x2e, 0x70, 122 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x6f, 0x63, 0x69, 0x5f, 0x76, 0x31, 0x1a, 0x14, 0x6f, 0x63, 123 0x69, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 124 0x74, 0x6f, 0x1a, 0x13, 0x6f, 0x63, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x65, 125 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc2, 0x03, 0x0a, 0x08, 0x4d, 0x61, 0x6e, 0x69, 126 0x66, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x09, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x65, 127 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6f, 0x63, 0x69, 0x5f, 0x76, 0x31, 128 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x52, 0x09, 0x56, 0x65, 0x72, 0x73, 129 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x12, 0x21, 0x0a, 0x09, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 130 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x4d, 0x65, 0x64, 0x69, 131 0x61, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x27, 0x0a, 0x0c, 0x41, 0x72, 0x74, 0x69, 132 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 133 0x52, 0x0c, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 134 0x01, 0x12, 0x2a, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 135 0x0b, 0x32, 0x12, 0x2e, 0x6f, 0x63, 0x69, 0x5f, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 136 0x69, 0x70, 0x74, 0x6f, 0x72, 0x52, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2a, 0x0a, 137 0x06, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 138 0x6f, 0x63, 0x69, 0x5f, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 139 0x72, 0x52, 0x06, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x12, 0x31, 0x0a, 0x07, 0x53, 0x75, 0x62, 140 0x6a, 0x65, 0x63, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6f, 0x63, 0x69, 141 0x5f, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x48, 0x02, 142 0x52, 0x07, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x88, 0x01, 0x01, 0x12, 0x43, 0x0a, 0x0b, 143 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 144 0x0b, 0x32, 0x21, 0x2e, 0x6f, 0x63, 0x69, 0x5f, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x6e, 0x69, 0x66, 145 0x65, 0x73, 0x74, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 146 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 147 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 148 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 149 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 150 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 151 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x42, 152 0x0f, 0x0a, 0x0d, 0x5f, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 153 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x62, 0x06, 0x70, 0x72, 154 0x6f, 0x74, 0x6f, 0x33, 155 } 156 157 var ( 158 file_oci_manifest_proto_rawDescOnce sync.Once 159 file_oci_manifest_proto_rawDescData = file_oci_manifest_proto_rawDesc 160 ) 161 162 func file_oci_manifest_proto_rawDescGZIP() []byte { 163 file_oci_manifest_proto_rawDescOnce.Do(func() { 164 file_oci_manifest_proto_rawDescData = protoimpl.X.CompressGZIP(file_oci_manifest_proto_rawDescData) 165 }) 166 return file_oci_manifest_proto_rawDescData 167 } 168 169 var file_oci_manifest_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 170 var file_oci_manifest_proto_goTypes = []interface{}{ 171 (*Manifest)(nil), // 0: oci_v1.Manifest 172 nil, // 1: oci_v1.Manifest.AnnotationsEntry 173 (*Versioned)(nil), // 2: oci_v1.Versioned 174 (*Descriptor)(nil), // 3: oci_v1.Descriptor 175 } 176 var file_oci_manifest_proto_depIdxs = []int32{ 177 2, // 0: oci_v1.Manifest.Versioned:type_name -> oci_v1.Versioned 178 3, // 1: oci_v1.Manifest.Config:type_name -> oci_v1.Descriptor 179 3, // 2: oci_v1.Manifest.Layers:type_name -> oci_v1.Descriptor 180 3, // 3: oci_v1.Manifest.Subject:type_name -> oci_v1.Descriptor 181 1, // 4: oci_v1.Manifest.Annotations:type_name -> oci_v1.Manifest.AnnotationsEntry 182 5, // [5:5] is the sub-list for method output_type 183 5, // [5:5] is the sub-list for method input_type 184 5, // [5:5] is the sub-list for extension type_name 185 5, // [5:5] is the sub-list for extension extendee 186 0, // [0:5] is the sub-list for field type_name 187 } 188 189 func init() { file_oci_manifest_proto_init() } 190 func file_oci_manifest_proto_init() { 191 if File_oci_manifest_proto != nil { 192 return 193 } 194 file_oci_descriptor_proto_init() 195 file_oci_versioned_proto_init() 196 if !protoimpl.UnsafeEnabled { 197 file_oci_manifest_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 198 switch v := v.(*Manifest); i { 199 case 0: 200 return &v.state 201 case 1: 202 return &v.sizeCache 203 case 2: 204 return &v.unknownFields 205 default: 206 return nil 207 } 208 } 209 } 210 file_oci_manifest_proto_msgTypes[0].OneofWrappers = []interface{}{} 211 type x struct{} 212 out := protoimpl.TypeBuilder{ 213 File: protoimpl.DescBuilder{ 214 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 215 RawDescriptor: file_oci_manifest_proto_rawDesc, 216 NumEnums: 0, 217 NumMessages: 2, 218 NumExtensions: 0, 219 NumServices: 0, 220 }, 221 GoTypes: file_oci_manifest_proto_goTypes, 222 DependencyIndexes: file_oci_manifest_proto_depIdxs, 223 MessageInfos: file_oci_manifest_proto_msgTypes, 224 }.Build() 225 File_oci_manifest_proto = out.File 226 file_oci_manifest_proto_rawDesc = nil 227 file_oci_manifest_proto_goTypes = nil 228 file_oci_manifest_proto_depIdxs = nil 229 }