imagev1

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 10

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

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"`
	Edition          *string                                `protobuf:"bytes,13,opt,name=edition" json:"edition,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_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

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

Deprecated: Use ImageFile.ProtoReflect.Descriptor instead.

func (*ImageFile) GetBufExtension

func (x *ImageFile) GetBufExtension() *ImageFileExtension

func (*ImageFile) GetDependency

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

func (*ImageFile) GetEdition added in v1.15.0

func (x *ImageFile) GetEdition() string

func (*ImageFile) GetEnumType

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

func (*ImageFile) GetExtension

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

func (*ImageFile) GetMessageType

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

func (*ImageFile) GetName

func (x *ImageFile) GetName() string

func (*ImageFile) GetOptions

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

func (*ImageFile) GetPackage

func (x *ImageFile) GetPackage() string

func (*ImageFile) GetPublicDependency

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

func (*ImageFile) GetService

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

func (*ImageFile) GetSourceCodeInfo

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

func (*ImageFile) GetSyntax

func (x *ImageFile) GetSyntax() string

func (*ImageFile) GetWeakDependency

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

func (*ImageFile) ProtoMessage

func (*ImageFile) ProtoMessage()

func (*ImageFile) ProtoReflect

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

func (*ImageFile) Reset

func (x *ImageFile) Reset()

func (*ImageFile) String

func (x *ImageFile) String() string

type ImageFileExtension

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

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

Deprecated: Use ImageFileExtension.ProtoReflect.Descriptor instead.

func (*ImageFileExtension) GetIsImport

func (x *ImageFileExtension) GetIsImport() bool

func (*ImageFileExtension) GetIsSyntaxUnspecified

func (x *ImageFileExtension) GetIsSyntaxUnspecified() bool

func (*ImageFileExtension) GetModuleInfo

func (x *ImageFileExtension) GetModuleInfo() *ModuleInfo

func (*ImageFileExtension) GetUnusedDependency

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

func (*ImageFileExtension) ProtoMessage

func (*ImageFileExtension) ProtoMessage()

func (*ImageFileExtension) ProtoReflect

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

func (*ImageFileExtension) Reset

func (x *ImageFileExtension) Reset()

func (*ImageFileExtension) String

func (x *ImageFileExtension) String() string

type ModuleInfo

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

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

Deprecated: Use ModuleInfo.ProtoReflect.Descriptor instead.

func (*ModuleInfo) GetCommit

func (x *ModuleInfo) GetCommit() string

func (*ModuleInfo) GetName

func (x *ModuleInfo) GetName() *ModuleName

func (*ModuleInfo) ProtoMessage

func (*ModuleInfo) ProtoMessage()

func (*ModuleInfo) ProtoReflect

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

func (*ModuleInfo) Reset

func (x *ModuleInfo) Reset()

func (*ModuleInfo) String

func (x *ModuleInfo) String() string

type ModuleName

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

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

Deprecated: Use ModuleName.ProtoReflect.Descriptor instead.

func (*ModuleName) GetOwner

func (x *ModuleName) GetOwner() string

func (*ModuleName) GetRemote

func (x *ModuleName) GetRemote() string

func (*ModuleName) GetRepository

func (x *ModuleName) GetRepository() string

func (*ModuleName) ProtoMessage

func (*ModuleName) ProtoMessage()

func (*ModuleName) ProtoReflect

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

func (*ModuleName) Reset

func (x *ModuleName) Reset()

func (*ModuleName) String

func (x *ModuleName) String() string

Jump to

Keyboard shortcuts

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