zotregistry.io/zot@v1.4.4-0.20231124084042-02a8ed785457/pkg/meta/proto/gen/index.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/index.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 Index 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 Manifests []*Descriptor `protobuf:"bytes,4,rep,name=Manifests,proto3" json:"Manifests,omitempty"` 32 Subject *Descriptor `protobuf:"bytes,5,opt,name=Subject,proto3,oneof" json:"Subject,omitempty"` 33 Annotations map[string]string `protobuf:"bytes,6,rep,name=Annotations,proto3" json:"Annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 34 } 35 36 func (x *Index) Reset() { 37 *x = Index{} 38 if protoimpl.UnsafeEnabled { 39 mi := &file_oci_index_proto_msgTypes[0] 40 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 41 ms.StoreMessageInfo(mi) 42 } 43 } 44 45 func (x *Index) String() string { 46 return protoimpl.X.MessageStringOf(x) 47 } 48 49 func (*Index) ProtoMessage() {} 50 51 func (x *Index) ProtoReflect() protoreflect.Message { 52 mi := &file_oci_index_proto_msgTypes[0] 53 if protoimpl.UnsafeEnabled && x != nil { 54 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 55 if ms.LoadMessageInfo() == nil { 56 ms.StoreMessageInfo(mi) 57 } 58 return ms 59 } 60 return mi.MessageOf(x) 61 } 62 63 // Deprecated: Use Index.ProtoReflect.Descriptor instead. 64 func (*Index) Descriptor() ([]byte, []int) { 65 return file_oci_index_proto_rawDescGZIP(), []int{0} 66 } 67 68 func (x *Index) GetVersioned() *Versioned { 69 if x != nil { 70 return x.Versioned 71 } 72 return nil 73 } 74 75 func (x *Index) GetMediaType() string { 76 if x != nil && x.MediaType != nil { 77 return *x.MediaType 78 } 79 return "" 80 } 81 82 func (x *Index) GetArtifactType() string { 83 if x != nil && x.ArtifactType != nil { 84 return *x.ArtifactType 85 } 86 return "" 87 } 88 89 func (x *Index) GetManifests() []*Descriptor { 90 if x != nil { 91 return x.Manifests 92 } 93 return nil 94 } 95 96 func (x *Index) GetSubject() *Descriptor { 97 if x != nil { 98 return x.Subject 99 } 100 return nil 101 } 102 103 func (x *Index) GetAnnotations() map[string]string { 104 if x != nil { 105 return x.Annotations 106 } 107 return nil 108 } 109 110 var File_oci_index_proto protoreflect.FileDescriptor 111 112 var file_oci_index_proto_rawDesc = []byte{ 113 0x0a, 0x0f, 0x6f, 0x63, 0x69, 0x2f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 114 0x6f, 0x12, 0x06, 0x6f, 0x63, 0x69, 0x5f, 0x76, 0x31, 0x1a, 0x14, 0x6f, 0x63, 0x69, 0x2f, 0x64, 115 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 116 0x13, 0x6f, 0x63, 0x69, 0x2f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x2e, 0x70, 117 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x96, 0x03, 0x0a, 0x05, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x2f, 118 0x0a, 0x09, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 119 0x0b, 0x32, 0x11, 0x2e, 0x6f, 0x63, 0x69, 0x5f, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 120 0x6f, 0x6e, 0x65, 0x64, 0x52, 0x09, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x12, 121 0x21, 0x0a, 0x09, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 122 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x88, 123 0x01, 0x01, 0x12, 0x27, 0x0a, 0x0c, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 124 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0c, 0x41, 0x72, 0x74, 0x69, 125 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x30, 0x0a, 0x09, 0x4d, 126 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 127 0x2e, 0x6f, 0x63, 0x69, 0x5f, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 128 0x6f, 0x72, 0x52, 0x09, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x73, 0x12, 0x31, 0x0a, 129 0x07, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 130 0x2e, 0x6f, 0x63, 0x69, 0x5f, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 131 0x6f, 0x72, 0x48, 0x02, 0x52, 0x07, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x88, 0x01, 0x01, 132 0x12, 0x40, 0x0a, 0x0b, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 133 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6f, 0x63, 0x69, 0x5f, 0x76, 0x31, 0x2e, 0x49, 134 0x6e, 0x64, 0x65, 0x78, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 135 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 136 0x6e, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 137 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 138 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 139 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 140 0x38, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 141 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 142 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x53, 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x62, 0x06, 0x70, 143 0x72, 0x6f, 0x74, 0x6f, 0x33, 144 } 145 146 var ( 147 file_oci_index_proto_rawDescOnce sync.Once 148 file_oci_index_proto_rawDescData = file_oci_index_proto_rawDesc 149 ) 150 151 func file_oci_index_proto_rawDescGZIP() []byte { 152 file_oci_index_proto_rawDescOnce.Do(func() { 153 file_oci_index_proto_rawDescData = protoimpl.X.CompressGZIP(file_oci_index_proto_rawDescData) 154 }) 155 return file_oci_index_proto_rawDescData 156 } 157 158 var file_oci_index_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 159 var file_oci_index_proto_goTypes = []interface{}{ 160 (*Index)(nil), // 0: oci_v1.Index 161 nil, // 1: oci_v1.Index.AnnotationsEntry 162 (*Versioned)(nil), // 2: oci_v1.Versioned 163 (*Descriptor)(nil), // 3: oci_v1.Descriptor 164 } 165 var file_oci_index_proto_depIdxs = []int32{ 166 2, // 0: oci_v1.Index.Versioned:type_name -> oci_v1.Versioned 167 3, // 1: oci_v1.Index.Manifests:type_name -> oci_v1.Descriptor 168 3, // 2: oci_v1.Index.Subject:type_name -> oci_v1.Descriptor 169 1, // 3: oci_v1.Index.Annotations:type_name -> oci_v1.Index.AnnotationsEntry 170 4, // [4:4] is the sub-list for method output_type 171 4, // [4:4] is the sub-list for method input_type 172 4, // [4:4] is the sub-list for extension type_name 173 4, // [4:4] is the sub-list for extension extendee 174 0, // [0:4] is the sub-list for field type_name 175 } 176 177 func init() { file_oci_index_proto_init() } 178 func file_oci_index_proto_init() { 179 if File_oci_index_proto != nil { 180 return 181 } 182 file_oci_descriptor_proto_init() 183 file_oci_versioned_proto_init() 184 if !protoimpl.UnsafeEnabled { 185 file_oci_index_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 186 switch v := v.(*Index); i { 187 case 0: 188 return &v.state 189 case 1: 190 return &v.sizeCache 191 case 2: 192 return &v.unknownFields 193 default: 194 return nil 195 } 196 } 197 } 198 file_oci_index_proto_msgTypes[0].OneofWrappers = []interface{}{} 199 type x struct{} 200 out := protoimpl.TypeBuilder{ 201 File: protoimpl.DescBuilder{ 202 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 203 RawDescriptor: file_oci_index_proto_rawDesc, 204 NumEnums: 0, 205 NumMessages: 2, 206 NumExtensions: 0, 207 NumServices: 0, 208 }, 209 GoTypes: file_oci_index_proto_goTypes, 210 DependencyIndexes: file_oci_index_proto_depIdxs, 211 MessageInfos: file_oci_index_proto_msgTypes, 212 }.Build() 213 File_oci_index_proto = out.File 214 file_oci_index_proto_rawDesc = nil 215 file_oci_index_proto_goTypes = nil 216 file_oci_index_proto_depIdxs = nil 217 }