imagev1

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_buf_alpha_image_v1_image_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Image

type Image struct {
	File []*ImageFile `protobuf:"bytes,1,rep,name=file" json:"file,omitempty"`
	// contains filtered or unexported fields
}

Image is an extended FileDescriptorSet.

See https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/descriptor.proto

func (*Image) Descriptor deprecated

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

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetFile

func (x *Image) GetFile() []*ImageFile

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

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

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

type ImageFile added in v0.45.0

type ImageFile struct {
	Name             *string                                `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Package          *string                                `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"`
	Dependency       []string                               `protobuf:"bytes,3,rep,name=dependency" json:"dependency,omitempty"`
	PublicDependency []int32                                `protobuf:"varint,10,rep,name=public_dependency,json=publicDependency" json:"public_dependency,omitempty"`
	WeakDependency   []int32                                `protobuf:"varint,11,rep,name=weak_dependency,json=weakDependency" json:"weak_dependency,omitempty"`
	MessageType      []*descriptorpb.DescriptorProto        `protobuf:"bytes,4,rep,name=message_type,json=messageType" json:"message_type,omitempty"`
	EnumType         []*descriptorpb.EnumDescriptorProto    `protobuf:"bytes,5,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"`
	Service          []*descriptorpb.ServiceDescriptorProto `protobuf:"bytes,6,rep,name=service" json:"service,omitempty"`
	Extension        []*descriptorpb.FieldDescriptorProto   `protobuf:"bytes,7,rep,name=extension" json:"extension,omitempty"`
	Options          *descriptorpb.FileOptions              `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"`
	SourceCodeInfo   *descriptorpb.SourceCodeInfo           `protobuf:"bytes,9,opt,name=source_code_info,json=sourceCodeInfo" json:"source_code_info,omitempty"`
	Syntax           *string                                `protobuf:"bytes,12,opt,name=syntax" json:"syntax,omitempty"`
	// buf_extension contains buf-specific extensions to FileDescriptorProtos.
	//
	// The prefixed name and high tag value is used to all but guarantee there
	// will never be any conflict with Google's FileDescriptorProto definition.
	// The definition of a FileDescriptorProto has not changed in years, so
	// we're not too worried about a conflict here.
	BufExtension *ImageFileExtension `protobuf:"bytes,8042,opt,name=buf_extension,json=bufExtension" json:"buf_extension,omitempty"`
	// contains filtered or unexported fields
}

ImageFile is an extended FileDescriptorProto.

Since FileDescriptorProto does not have extensions, we copy the fields from FileDescriptorProto, and then add our own extensions via the buf_image_file_extension field. This is compatible with a FileDescriptorProto.

See https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/descriptor.proto

func (*ImageFile) Descriptor deprecated added in v0.45.0

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

Deprecated: Use ImageFile.ProtoReflect.Descriptor instead.

func (*ImageFile) GetBufExtension added in v0.45.0

func (x *ImageFile) GetBufExtension() *ImageFileExtension

func (*ImageFile) GetDependency added in v0.45.0

func (x *ImageFile) GetDependency() []string

func (*ImageFile) GetEnumType added in v0.45.0

func (x *ImageFile) GetEnumType() []*descriptorpb.EnumDescriptorProto

func (*ImageFile) GetExtension added in v0.45.0

func (x *ImageFile) GetExtension() []*descriptorpb.FieldDescriptorProto

func (*ImageFile) GetMessageType added in v0.45.0

func (x *ImageFile) GetMessageType() []*descriptorpb.DescriptorProto

func (*ImageFile) GetName added in v0.45.0

func (x *ImageFile) GetName() string

func (*ImageFile) GetOptions added in v0.45.0

func (x *ImageFile) GetOptions() *descriptorpb.FileOptions

func (*ImageFile) GetPackage added in v0.45.0

func (x *ImageFile) GetPackage() string

func (*ImageFile) GetPublicDependency added in v0.45.0

func (x *ImageFile) GetPublicDependency() []int32

func (*ImageFile) GetService added in v0.45.0

func (x *ImageFile) GetService() []*descriptorpb.ServiceDescriptorProto

func (*ImageFile) GetSourceCodeInfo added in v0.45.0

func (x *ImageFile) GetSourceCodeInfo() *descriptorpb.SourceCodeInfo

func (*ImageFile) GetSyntax added in v0.45.0

func (x *ImageFile) GetSyntax() string

func (*ImageFile) GetWeakDependency added in v0.45.0

func (x *ImageFile) GetWeakDependency() []int32

func (*ImageFile) ProtoMessage added in v0.45.0

func (*ImageFile) ProtoMessage()

func (*ImageFile) ProtoReflect added in v0.45.0

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

func (*ImageFile) Reset added in v0.45.0

func (x *ImageFile) Reset()

func (*ImageFile) String added in v0.45.0

func (x *ImageFile) String() string

type ImageFileExtension added in v0.45.0

type ImageFileExtension struct {

	// is_import denotes whether this file is considered an "import".
	//
	// An import is a file which was not derived from the local source files.
	// There are two cases where this could be true:
	//
	// 1. A Well-Known Type included from the compiler.
	// 2. A file that was included from a Buf module dependency.
	//
	// We use "import" as this matches with the protoc concept of
	// --include_imports, however import is a bit of an overloaded term.
	//
	// This will always be set.
	IsImport *bool `protobuf:"varint,1,opt,name=is_import,json=isImport" json:"is_import,omitempty"`
	// ModuleInfo contains information about the Buf module this file belongs to.
	//
	// This field is optional and will not be set if the module is not known.
	ModuleInfo *ModuleInfo `protobuf:"bytes,2,opt,name=module_info,json=moduleInfo" json:"module_info,omitempty"`
	// is_syntax_unspecified denotes whether the file did not have a syntax
	// explicitly specified.
	//
	// Per the FileDescriptorProto spec, it would be fine in this case to just
	// leave the syntax field unset to denote this and to set the syntax field
	// to "proto2" if it is specified. However, protoc does not set the syntax
	// field if it was "proto2", and plugins may (incorrectly) depend on this.
	// We also want to maintain consistency with protoc as much as possible.
	// So instead, we have this field which will denote whether syntax was not
	// specified.
	//
	// This will always be set.
	IsSyntaxUnspecified *bool `protobuf:"varint,3,opt,name=is_syntax_unspecified,json=isSyntaxUnspecified" json:"is_syntax_unspecified,omitempty"`
	// unused_dependency are the indexes within the dependency field on
	// FileDescriptorProto for those dependencies that are not used.
	//
	// This matches the shape of the public_dependency and weak_dependency
	// fields.
	UnusedDependency []int32 `protobuf:"varint,4,rep,name=unused_dependency,json=unusedDependency" json:"unused_dependency,omitempty"`
	// contains filtered or unexported fields
}

ImageFileExtension contains extensions to ImageFiles.

The fields are not included directly on the ImageFile 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 FileDescriptorProto.

func (*ImageFileExtension) Descriptor deprecated added in v0.45.0

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

Deprecated: Use ImageFileExtension.ProtoReflect.Descriptor instead.

func (*ImageFileExtension) GetIsImport added in v0.45.0

func (x *ImageFileExtension) GetIsImport() bool

func (*ImageFileExtension) GetIsSyntaxUnspecified added in v0.45.0

func (x *ImageFileExtension) GetIsSyntaxUnspecified() bool

func (*ImageFileExtension) GetModuleInfo added in v0.45.0

func (x *ImageFileExtension) GetModuleInfo() *ModuleInfo

func (*ImageFileExtension) GetUnusedDependency added in v0.45.0

func (x *ImageFileExtension) GetUnusedDependency() []int32

func (*ImageFileExtension) ProtoMessage added in v0.45.0

func (*ImageFileExtension) ProtoMessage()

func (*ImageFileExtension) ProtoReflect added in v0.45.0

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

func (*ImageFileExtension) Reset added in v0.45.0

func (x *ImageFileExtension) Reset()

func (*ImageFileExtension) String added in v0.45.0

func (x *ImageFileExtension) String() string

type ModuleInfo added in v0.45.0

type ModuleInfo struct {

	// name is the name of the Buf module.
	//
	// This will always be set.
	Name *ModuleName `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// commit is the repository commit.
	//
	// This field is optional and will not be set if the commit is not known.
	Commit *string `protobuf:"bytes,2,opt,name=commit" json:"commit,omitempty"`
	// contains filtered or unexported fields
}

ModuleInfo contains information about a Buf module that an ImageFile belongs to.

func (*ModuleInfo) Descriptor deprecated added in v0.45.0

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

Deprecated: Use ModuleInfo.ProtoReflect.Descriptor instead.

func (*ModuleInfo) GetCommit added in v0.45.0

func (x *ModuleInfo) GetCommit() string

func (*ModuleInfo) GetName added in v0.45.0

func (x *ModuleInfo) GetName() *ModuleName

func (*ModuleInfo) ProtoMessage added in v0.45.0

func (*ModuleInfo) ProtoMessage()

func (*ModuleInfo) ProtoReflect added in v0.45.0

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

func (*ModuleInfo) Reset added in v0.45.0

func (x *ModuleInfo) Reset()

func (*ModuleInfo) String added in v0.45.0

func (x *ModuleInfo) String() string

type ModuleName added in v0.45.0

type ModuleName struct {
	Remote     *string `protobuf:"bytes,1,opt,name=remote" json:"remote,omitempty"`
	Owner      *string `protobuf:"bytes,2,opt,name=owner" json:"owner,omitempty"`
	Repository *string `protobuf:"bytes,3,opt,name=repository" json:"repository,omitempty"`
	// contains filtered or unexported fields
}

ModuleName is a module name.

All fields will always be set.

func (*ModuleName) Descriptor deprecated added in v0.45.0

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

Deprecated: Use ModuleName.ProtoReflect.Descriptor instead.

func (*ModuleName) GetOwner added in v0.45.0

func (x *ModuleName) GetOwner() string

func (*ModuleName) GetRemote added in v0.45.0

func (x *ModuleName) GetRemote() string

func (*ModuleName) GetRepository added in v0.45.0

func (x *ModuleName) GetRepository() string

func (*ModuleName) ProtoMessage added in v0.45.0

func (*ModuleName) ProtoMessage()

func (*ModuleName) ProtoReflect added in v0.45.0

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

func (*ModuleName) Reset added in v0.45.0

func (x *ModuleName) Reset()

func (*ModuleName) String added in v0.45.0

func (x *ModuleName) String() string

Jump to

Keyboard shortcuts

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