zotregistry.io/zot@v1.4.4-0.20231124084042-02a8ed785457/pkg/meta/proto/gen/descriptor.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/descriptor.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 Descriptor struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	MediaType    string            `protobuf:"bytes,1,opt,name=MediaType,proto3" json:"MediaType,omitempty"`
    29  	Digest       string            `protobuf:"bytes,2,opt,name=Digest,proto3" json:"Digest,omitempty"`
    30  	Size         int64             `protobuf:"varint,3,opt,name=Size,proto3" json:"Size,omitempty"`
    31  	URLs         []string          `protobuf:"bytes,4,rep,name=URLs,proto3" json:"URLs,omitempty"`
    32  	Data         []byte            `protobuf:"bytes,5,opt,name=Data,proto3" json:"Data,omitempty"`
    33  	Platform     *Platform         `protobuf:"bytes,6,opt,name=Platform,proto3,oneof" json:"Platform,omitempty"`
    34  	ArtifactType *string           `protobuf:"bytes,7,opt,name=ArtifactType,proto3,oneof" json:"ArtifactType,omitempty"`
    35  	Annotations  map[string]string `protobuf:"bytes,8,rep,name=Annotations,proto3" json:"Annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    36  }
    37  
    38  func (x *Descriptor) Reset() {
    39  	*x = Descriptor{}
    40  	if protoimpl.UnsafeEnabled {
    41  		mi := &file_oci_descriptor_proto_msgTypes[0]
    42  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    43  		ms.StoreMessageInfo(mi)
    44  	}
    45  }
    46  
    47  func (x *Descriptor) String() string {
    48  	return protoimpl.X.MessageStringOf(x)
    49  }
    50  
    51  func (*Descriptor) ProtoMessage() {}
    52  
    53  func (x *Descriptor) ProtoReflect() protoreflect.Message {
    54  	mi := &file_oci_descriptor_proto_msgTypes[0]
    55  	if protoimpl.UnsafeEnabled && x != nil {
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		if ms.LoadMessageInfo() == nil {
    58  			ms.StoreMessageInfo(mi)
    59  		}
    60  		return ms
    61  	}
    62  	return mi.MessageOf(x)
    63  }
    64  
    65  // Deprecated: Use Descriptor.ProtoReflect.Descriptor instead.
    66  func (*Descriptor) Descriptor() ([]byte, []int) {
    67  	return file_oci_descriptor_proto_rawDescGZIP(), []int{0}
    68  }
    69  
    70  func (x *Descriptor) GetMediaType() string {
    71  	if x != nil {
    72  		return x.MediaType
    73  	}
    74  	return ""
    75  }
    76  
    77  func (x *Descriptor) GetDigest() string {
    78  	if x != nil {
    79  		return x.Digest
    80  	}
    81  	return ""
    82  }
    83  
    84  func (x *Descriptor) GetSize() int64 {
    85  	if x != nil {
    86  		return x.Size
    87  	}
    88  	return 0
    89  }
    90  
    91  func (x *Descriptor) GetURLs() []string {
    92  	if x != nil {
    93  		return x.URLs
    94  	}
    95  	return nil
    96  }
    97  
    98  func (x *Descriptor) GetData() []byte {
    99  	if x != nil {
   100  		return x.Data
   101  	}
   102  	return nil
   103  }
   104  
   105  func (x *Descriptor) GetPlatform() *Platform {
   106  	if x != nil {
   107  		return x.Platform
   108  	}
   109  	return nil
   110  }
   111  
   112  func (x *Descriptor) GetArtifactType() string {
   113  	if x != nil && x.ArtifactType != nil {
   114  		return *x.ArtifactType
   115  	}
   116  	return ""
   117  }
   118  
   119  func (x *Descriptor) GetAnnotations() map[string]string {
   120  	if x != nil {
   121  		return x.Annotations
   122  	}
   123  	return nil
   124  }
   125  
   126  type Platform struct {
   127  	state         protoimpl.MessageState
   128  	sizeCache     protoimpl.SizeCache
   129  	unknownFields protoimpl.UnknownFields
   130  
   131  	Architecture string   `protobuf:"bytes,1,opt,name=Architecture,proto3" json:"Architecture,omitempty"`
   132  	OS           string   `protobuf:"bytes,2,opt,name=OS,proto3" json:"OS,omitempty"`
   133  	OSVersion    *string  `protobuf:"bytes,3,opt,name=OSVersion,proto3,oneof" json:"OSVersion,omitempty"`
   134  	OSFeatures   []string `protobuf:"bytes,4,rep,name=OSFeatures,proto3" json:"OSFeatures,omitempty"`
   135  	Variant      *string  `protobuf:"bytes,5,opt,name=Variant,proto3,oneof" json:"Variant,omitempty"`
   136  }
   137  
   138  func (x *Platform) Reset() {
   139  	*x = Platform{}
   140  	if protoimpl.UnsafeEnabled {
   141  		mi := &file_oci_descriptor_proto_msgTypes[1]
   142  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   143  		ms.StoreMessageInfo(mi)
   144  	}
   145  }
   146  
   147  func (x *Platform) String() string {
   148  	return protoimpl.X.MessageStringOf(x)
   149  }
   150  
   151  func (*Platform) ProtoMessage() {}
   152  
   153  func (x *Platform) ProtoReflect() protoreflect.Message {
   154  	mi := &file_oci_descriptor_proto_msgTypes[1]
   155  	if protoimpl.UnsafeEnabled && x != nil {
   156  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   157  		if ms.LoadMessageInfo() == nil {
   158  			ms.StoreMessageInfo(mi)
   159  		}
   160  		return ms
   161  	}
   162  	return mi.MessageOf(x)
   163  }
   164  
   165  // Deprecated: Use Platform.ProtoReflect.Descriptor instead.
   166  func (*Platform) Descriptor() ([]byte, []int) {
   167  	return file_oci_descriptor_proto_rawDescGZIP(), []int{1}
   168  }
   169  
   170  func (x *Platform) GetArchitecture() string {
   171  	if x != nil {
   172  		return x.Architecture
   173  	}
   174  	return ""
   175  }
   176  
   177  func (x *Platform) GetOS() string {
   178  	if x != nil {
   179  		return x.OS
   180  	}
   181  	return ""
   182  }
   183  
   184  func (x *Platform) GetOSVersion() string {
   185  	if x != nil && x.OSVersion != nil {
   186  		return *x.OSVersion
   187  	}
   188  	return ""
   189  }
   190  
   191  func (x *Platform) GetOSFeatures() []string {
   192  	if x != nil {
   193  		return x.OSFeatures
   194  	}
   195  	return nil
   196  }
   197  
   198  func (x *Platform) GetVariant() string {
   199  	if x != nil && x.Variant != nil {
   200  		return *x.Variant
   201  	}
   202  	return ""
   203  }
   204  
   205  var File_oci_descriptor_proto protoreflect.FileDescriptor
   206  
   207  var file_oci_descriptor_proto_rawDesc = []byte{
   208  	0x0a, 0x14, 0x6f, 0x63, 0x69, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72,
   209  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x6f, 0x63, 0x69, 0x5f, 0x76, 0x31, 0x22, 0xff,
   210  	0x02, 0x0a, 0x0a, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x12, 0x1c, 0x0a,
   211  	0x09, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   212  	0x52, 0x09, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x44,
   213  	0x69, 0x67, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x44, 0x69, 0x67,
   214  	0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
   215  	0x03, 0x52, 0x04, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x55, 0x52, 0x4c, 0x73, 0x18,
   216  	0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x55, 0x52, 0x4c, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x44,
   217  	0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x44, 0x61, 0x74, 0x61, 0x12,
   218  	0x31, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28,
   219  	0x0b, 0x32, 0x10, 0x2e, 0x6f, 0x63, 0x69, 0x5f, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66,
   220  	0x6f, 0x72, 0x6d, 0x48, 0x00, 0x52, 0x08, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x88,
   221  	0x01, 0x01, 0x12, 0x27, 0x0a, 0x0c, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79,
   222  	0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0c, 0x41, 0x72, 0x74, 0x69,
   223  	0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x45, 0x0a, 0x0b, 0x41,
   224  	0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b,
   225  	0x32, 0x23, 0x2e, 0x6f, 0x63, 0x69, 0x5f, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69,
   226  	0x70, 0x74, 0x6f, 0x72, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   227  	0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
   228  	0x6e, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   229  	0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
   230  	0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
   231  	0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
   232  	0x38, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42,
   233  	0x0f, 0x0a, 0x0d, 0x5f, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65,
   234  	0x22, 0xba, 0x01, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x22, 0x0a,
   235  	0x0c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20,
   236  	0x01, 0x28, 0x09, 0x52, 0x0c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72,
   237  	0x65, 0x12, 0x0e, 0x0a, 0x02, 0x4f, 0x53, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x4f,
   238  	0x53, 0x12, 0x21, 0x0a, 0x09, 0x4f, 0x53, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03,
   239  	0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x09, 0x4f, 0x53, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
   240  	0x6e, 0x88, 0x01, 0x01, 0x12, 0x1e, 0x0a, 0x0a, 0x4f, 0x53, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72,
   241  	0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x4f, 0x53, 0x46, 0x65, 0x61, 0x74,
   242  	0x75, 0x72, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x07, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x18,
   243  	0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x07, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74,
   244  	0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x4f, 0x53, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
   245  	0x6e, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x62, 0x06, 0x70,
   246  	0x72, 0x6f, 0x74, 0x6f, 0x33,
   247  }
   248  
   249  var (
   250  	file_oci_descriptor_proto_rawDescOnce sync.Once
   251  	file_oci_descriptor_proto_rawDescData = file_oci_descriptor_proto_rawDesc
   252  )
   253  
   254  func file_oci_descriptor_proto_rawDescGZIP() []byte {
   255  	file_oci_descriptor_proto_rawDescOnce.Do(func() {
   256  		file_oci_descriptor_proto_rawDescData = protoimpl.X.CompressGZIP(file_oci_descriptor_proto_rawDescData)
   257  	})
   258  	return file_oci_descriptor_proto_rawDescData
   259  }
   260  
   261  var file_oci_descriptor_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   262  var file_oci_descriptor_proto_goTypes = []interface{}{
   263  	(*Descriptor)(nil), // 0: oci_v1.Descriptor
   264  	(*Platform)(nil),   // 1: oci_v1.Platform
   265  	nil,                // 2: oci_v1.Descriptor.AnnotationsEntry
   266  }
   267  var file_oci_descriptor_proto_depIdxs = []int32{
   268  	1, // 0: oci_v1.Descriptor.Platform:type_name -> oci_v1.Platform
   269  	2, // 1: oci_v1.Descriptor.Annotations:type_name -> oci_v1.Descriptor.AnnotationsEntry
   270  	2, // [2:2] is the sub-list for method output_type
   271  	2, // [2:2] is the sub-list for method input_type
   272  	2, // [2:2] is the sub-list for extension type_name
   273  	2, // [2:2] is the sub-list for extension extendee
   274  	0, // [0:2] is the sub-list for field type_name
   275  }
   276  
   277  func init() { file_oci_descriptor_proto_init() }
   278  func file_oci_descriptor_proto_init() {
   279  	if File_oci_descriptor_proto != nil {
   280  		return
   281  	}
   282  	if !protoimpl.UnsafeEnabled {
   283  		file_oci_descriptor_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   284  			switch v := v.(*Descriptor); i {
   285  			case 0:
   286  				return &v.state
   287  			case 1:
   288  				return &v.sizeCache
   289  			case 2:
   290  				return &v.unknownFields
   291  			default:
   292  				return nil
   293  			}
   294  		}
   295  		file_oci_descriptor_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   296  			switch v := v.(*Platform); i {
   297  			case 0:
   298  				return &v.state
   299  			case 1:
   300  				return &v.sizeCache
   301  			case 2:
   302  				return &v.unknownFields
   303  			default:
   304  				return nil
   305  			}
   306  		}
   307  	}
   308  	file_oci_descriptor_proto_msgTypes[0].OneofWrappers = []interface{}{}
   309  	file_oci_descriptor_proto_msgTypes[1].OneofWrappers = []interface{}{}
   310  	type x struct{}
   311  	out := protoimpl.TypeBuilder{
   312  		File: protoimpl.DescBuilder{
   313  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   314  			RawDescriptor: file_oci_descriptor_proto_rawDesc,
   315  			NumEnums:      0,
   316  			NumMessages:   3,
   317  			NumExtensions: 0,
   318  			NumServices:   0,
   319  		},
   320  		GoTypes:           file_oci_descriptor_proto_goTypes,
   321  		DependencyIndexes: file_oci_descriptor_proto_depIdxs,
   322  		MessageInfos:      file_oci_descriptor_proto_msgTypes,
   323  	}.Build()
   324  	File_oci_descriptor_proto = out.File
   325  	file_oci_descriptor_proto_rawDesc = nil
   326  	file_oci_descriptor_proto_goTypes = nil
   327  	file_oci_descriptor_proto_depIdxs = nil
   328  }