buf: github.com/bufbuild/buf/internal/gen/proto/go/buf/image/v1 Index | Files

package imagev1

import "github.com/bufbuild/buf/internal/gen/proto/go/buf/image/v1"

Index

Package Files

image.pb.go

Variables

var File_buf_image_v1_image_proto protoreflect.FileDescriptor

type Image Uses

type Image struct {

    // file matches the file field of a FileDescriptorSet.
    File []*descriptor.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 Uses

func (*Image) Descriptor() ([]byte, []int)

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetBufbuildImageExtension Uses

func (x *Image) GetBufbuildImageExtension() *ImageExtension

func (*Image) GetFile Uses

func (x *Image) GetFile() []*descriptor.FileDescriptorProto

func (*Image) ProtoMessage Uses

func (*Image) ProtoMessage()

func (*Image) ProtoReflect Uses

func (x *Image) ProtoReflect() protoreflect.Message

func (*Image) Reset Uses

func (x *Image) Reset()

func (*Image) String Uses

func (x *Image) String() string

type ImageExtension Uses

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"`
    // 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 Uses

func (*ImageExtension) Descriptor() ([]byte, []int)

Deprecated: Use ImageExtension.ProtoReflect.Descriptor instead.

func (*ImageExtension) GetImageImportRefs Uses

func (x *ImageExtension) GetImageImportRefs() []*ImageImportRef

func (*ImageExtension) ProtoMessage Uses

func (*ImageExtension) ProtoMessage()

func (*ImageExtension) ProtoReflect Uses

func (x *ImageExtension) ProtoReflect() protoreflect.Message

func (*ImageExtension) Reset Uses

func (x *ImageExtension) Reset()

func (*ImageExtension) String Uses

func (x *ImageExtension) String() string

type ImageImportRef Uses

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 Uses

func (*ImageImportRef) Descriptor() ([]byte, []int)

Deprecated: Use ImageImportRef.ProtoReflect.Descriptor instead.

func (*ImageImportRef) GetFileIndex Uses

func (x *ImageImportRef) GetFileIndex() uint32

func (*ImageImportRef) ProtoMessage Uses

func (*ImageImportRef) ProtoMessage()

func (*ImageImportRef) ProtoReflect Uses

func (x *ImageImportRef) ProtoReflect() protoreflect.Message

func (*ImageImportRef) Reset Uses

func (x *ImageImportRef) Reset()

func (*ImageImportRef) String Uses

func (x *ImageImportRef) String() string

Package imagev1 imports 6 packages (graph) and is imported by 1 packages. Updated 2020-10-20. Refresh now. Tools for package owners.