Documentation ¶
Index ¶
- Variables
- type Image
- func (*Image) Descriptor() ([]byte, []int)deprecated
- func (x *Image) GetBufbuildImageExtension() *ImageExtension
- func (x *Image) GetFile() []*descriptorpb.FileDescriptorProto
- func (*Image) ProtoMessage()
- func (x *Image) ProtoReflect() protoreflect.Message
- func (x *Image) Reset()
- func (x *Image) String() string
- type ImageExtension
- func (*ImageExtension) Descriptor() ([]byte, []int)deprecated
- func (x *ImageExtension) GetImageImportRefs() []*ImageImportRef
- func (x *ImageExtension) GetModuleReferenceRefs() []*ModuleReferenceRef
- func (*ImageExtension) ProtoMessage()
- func (x *ImageExtension) ProtoReflect() protoreflect.Message
- func (x *ImageExtension) Reset()
- func (x *ImageExtension) String() string
- type ImageImportRef
- type ModuleReferenceRef
- func (*ModuleReferenceRef) Descriptor() ([]byte, []int)deprecated
- func (x *ModuleReferenceRef) GetFileIndex() uint32
- func (x *ModuleReferenceRef) GetOwner() string
- func (x *ModuleReferenceRef) GetReference() string
- func (x *ModuleReferenceRef) GetRemote() string
- func (x *ModuleReferenceRef) GetRepository() string
- func (*ModuleReferenceRef) ProtoMessage()
- func (x *ModuleReferenceRef) ProtoReflect() protoreflect.Message
- func (x *ModuleReferenceRef) Reset()
- func (x *ModuleReferenceRef) String() string
Constants ¶
This section is empty.
Variables ¶
var File_buf_alpha_image_v1_image_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { // file matches the file field of a FileDescriptorSet. File []*descriptorpb.FileDescriptorProto `protobuf:"bytes,1,rep,name=file" json:"file,omitempty"` // bufbuild_image_extension is the ImageExtension for this image. // // The prefixed name and high tag value is used to all but guarantee there // will never be any conflict with Google's FileDescriptorSet definition. // The definition of a FileDescriptorSet has not changed in 11 years, so // we're not too worried about a conflict here. BufbuildImageExtension *ImageExtension `protobuf:"bytes,8042,opt,name=bufbuild_image_extension,json=bufbuildImageExtension" json:"bufbuild_image_extension,omitempty"` // contains filtered or unexported fields }
Image is analogous to a FileDescriptorSet.
func (*Image) Descriptor
deprecated
func (*Image) GetBufbuildImageExtension ¶
func (x *Image) GetBufbuildImageExtension() *ImageExtension
func (*Image) GetFile ¶
func (x *Image) GetFile() []*descriptorpb.FileDescriptorProto
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
type ImageExtension ¶
type ImageExtension struct { // image_import_refs are the image import references for this specific Image. // // A given FileDescriptorProto may or may not be an import depending on // the image context, so this information is not stored on each FileDescriptorProto. ImageImportRefs []*ImageImportRef `protobuf:"bytes,1,rep,name=image_import_refs,json=imageImportRefs" json:"image_import_refs,omitempty"` // ModuleReferenceRefs are the module reference references for this specific Image. // // The lack of a ModuleReferenceRef for a given file means that the module // reference information is not known, and must be treated as unknown. ModuleReferenceRefs []*ModuleReferenceRef `protobuf:"bytes,2,rep,name=module_reference_refs,json=moduleReferenceRefs" json:"module_reference_refs,omitempty"` // contains filtered or unexported fields }
ImageExtension contains extensions to Images.
The fields are not included directly on the Image so that we can both detect if extensions exist, which signifies this was created by buf and not by protoc, and so that we can add fields in a freeform manner without worrying about conflicts with google.protobuf.FileDescriptorSet.
func (*ImageExtension) Descriptor
deprecated
func (*ImageExtension) Descriptor() ([]byte, []int)
Deprecated: Use ImageExtension.ProtoReflect.Descriptor instead.
func (*ImageExtension) GetImageImportRefs ¶
func (x *ImageExtension) GetImageImportRefs() []*ImageImportRef
func (*ImageExtension) GetModuleReferenceRefs ¶ added in v0.39.0
func (x *ImageExtension) GetModuleReferenceRefs() []*ModuleReferenceRef
func (*ImageExtension) ProtoMessage ¶
func (*ImageExtension) ProtoMessage()
func (*ImageExtension) ProtoReflect ¶
func (x *ImageExtension) ProtoReflect() protoreflect.Message
func (*ImageExtension) Reset ¶
func (x *ImageExtension) Reset()
func (*ImageExtension) String ¶
func (x *ImageExtension) String() string
type ImageImportRef ¶
type ImageImportRef struct { // file_index is the index within the Image file array of the import. // // This signifies that file[file_index] is an import. // This field must be set. FileIndex *uint32 `protobuf:"varint,1,opt,name=file_index,json=fileIndex" json:"file_index,omitempty"` // contains filtered or unexported fields }
ImageImportRef is a reference to an image import.
This is a message type instead of a scalar type so that we can add additional information about an import reference in the future, such as the external location of the import.
func (*ImageImportRef) Descriptor
deprecated
func (*ImageImportRef) Descriptor() ([]byte, []int)
Deprecated: Use ImageImportRef.ProtoReflect.Descriptor instead.
func (*ImageImportRef) GetFileIndex ¶
func (x *ImageImportRef) GetFileIndex() uint32
func (*ImageImportRef) ProtoMessage ¶
func (*ImageImportRef) ProtoMessage()
func (*ImageImportRef) ProtoReflect ¶
func (x *ImageImportRef) ProtoReflect() protoreflect.Message
func (*ImageImportRef) Reset ¶
func (x *ImageImportRef) Reset()
func (*ImageImportRef) String ¶
func (x *ImageImportRef) String() string
type ModuleReferenceRef ¶ added in v0.39.0
type ModuleReferenceRef struct { // file_index is the index within the Image file array. // // This signifies that file[file_index] is the file that // uses this module reference. // // This field must be set. FileIndex *uint32 `protobuf:"varint,1,opt,name=file_index,json=fileIndex" json:"file_index,omitempty"` Remote *string `protobuf:"bytes,2,opt,name=remote" json:"remote,omitempty"` Owner *string `protobuf:"bytes,3,opt,name=owner" json:"owner,omitempty"` Repository *string `protobuf:"bytes,4,opt,name=repository" json:"repository,omitempty"` // This is always a commit for now, but we make this a reference instead of specifically a // commit to give ourselves options in the future. We can easily distinguish between // branches/tags and commits. Reference *string `protobuf:"bytes,5,opt,name=reference" json:"reference,omitempty"` // contains filtered or unexported fields }
ModuleReferenceRef is a reference to a module reference.
func (*ModuleReferenceRef) Descriptor
deprecated
added in
v0.39.0
func (*ModuleReferenceRef) Descriptor() ([]byte, []int)
Deprecated: Use ModuleReferenceRef.ProtoReflect.Descriptor instead.
func (*ModuleReferenceRef) GetFileIndex ¶ added in v0.39.0
func (x *ModuleReferenceRef) GetFileIndex() uint32
func (*ModuleReferenceRef) GetOwner ¶ added in v0.39.0
func (x *ModuleReferenceRef) GetOwner() string
func (*ModuleReferenceRef) GetReference ¶ added in v0.39.0
func (x *ModuleReferenceRef) GetReference() string
func (*ModuleReferenceRef) GetRemote ¶ added in v0.39.0
func (x *ModuleReferenceRef) GetRemote() string
func (*ModuleReferenceRef) GetRepository ¶ added in v0.39.0
func (x *ModuleReferenceRef) GetRepository() string
func (*ModuleReferenceRef) ProtoMessage ¶ added in v0.39.0
func (*ModuleReferenceRef) ProtoMessage()
func (*ModuleReferenceRef) ProtoReflect ¶ added in v0.39.0
func (x *ModuleReferenceRef) ProtoReflect() protoreflect.Message
func (*ModuleReferenceRef) Reset ¶ added in v0.39.0
func (x *ModuleReferenceRef) Reset()
func (*ModuleReferenceRef) String ¶ added in v0.39.0
func (x *ModuleReferenceRef) String() string