bufbuild_buf_image_v1beta1

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

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"`
	XXX_NoUnkeyedLiteral   struct{}        `json:"-"`
	XXX_unrecognized       []byte          `json:"-"`
	XXX_sizecache          int32           `json:"-"`
}

Image is analogous to a FileDescriptorSet.

func (*Image) Descriptor

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

func (*Image) GetBufbuildImageExtension

func (m *Image) GetBufbuildImageExtension() *ImageExtension

func (*Image) GetFile

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

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) Reset

func (m *Image) Reset()

func (*Image) String

func (m *Image) String() string

func (*Image) XXX_DiscardUnknown

func (m *Image) XXX_DiscardUnknown()

func (*Image) XXX_Marshal

func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Image) XXX_Merge

func (m *Image) XXX_Merge(src proto.Message)

func (*Image) XXX_Size

func (m *Image) XXX_Size() int

func (*Image) XXX_Unmarshal

func (m *Image) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

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

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

func (*ImageExtension) GetImageImportRefs

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

func (*ImageExtension) ProtoMessage

func (*ImageExtension) ProtoMessage()

func (*ImageExtension) Reset

func (m *ImageExtension) Reset()

func (*ImageExtension) String

func (m *ImageExtension) String() string

func (*ImageExtension) XXX_DiscardUnknown

func (m *ImageExtension) XXX_DiscardUnknown()

func (*ImageExtension) XXX_Marshal

func (m *ImageExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImageExtension) XXX_Merge

func (m *ImageExtension) XXX_Merge(src proto.Message)

func (*ImageExtension) XXX_Size

func (m *ImageExtension) XXX_Size() int

func (*ImageExtension) XXX_Unmarshal

func (m *ImageExtension) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

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

func (*ImageImportRef) GetFileIndex

func (m *ImageImportRef) GetFileIndex() uint32

func (*ImageImportRef) ProtoMessage

func (*ImageImportRef) ProtoMessage()

func (*ImageImportRef) Reset

func (m *ImageImportRef) Reset()

func (*ImageImportRef) String

func (m *ImageImportRef) String() string

func (*ImageImportRef) XXX_DiscardUnknown

func (m *ImageImportRef) XXX_DiscardUnknown()

func (*ImageImportRef) XXX_Marshal

func (m *ImageImportRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImageImportRef) XXX_Merge

func (m *ImageImportRef) XXX_Merge(src proto.Message)

func (*ImageImportRef) XXX_Size

func (m *ImageImportRef) XXX_Size() int

func (*ImageImportRef) XXX_Unmarshal

func (m *ImageImportRef) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL