pb

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0, MIT Imports: 4 Imported by: 4

Documentation

Overview

These commands work around namespace conflicts that occur when multiple repositories depend on .proto files with generic filenames. Due to the way protobuf registers files (e.g., foo.proto or pb/foo.proto), naming collisions can occur when the same filename is used across different packages.

The only way to generate a *.pb.go file that includes the full package path (e.g., github.com/org/repo/pb/foo.proto) is to place the .proto file in a directory structure that mirrors its package path.

References:

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_ipfs_boxo_filestore_pb_dataobj_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DataObj

type DataObj struct {
	FilePath *string `protobuf:"bytes,1,opt,name=FilePath,proto3,oneof" json:"FilePath,omitempty"`
	Offset   *uint64 `protobuf:"varint,2,opt,name=Offset,proto3,oneof" json:"Offset,omitempty"`
	Size     *uint64 `protobuf:"varint,3,opt,name=Size,proto3,oneof" json:"Size,omitempty"`
	// contains filtered or unexported fields
}

func (*DataObj) Descriptor deprecated

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

Deprecated: Use DataObj.ProtoReflect.Descriptor instead.

func (*DataObj) GetFilePath

func (x *DataObj) GetFilePath() string

func (*DataObj) GetOffset

func (x *DataObj) GetOffset() uint64

func (*DataObj) GetSize added in v0.28.0

func (x *DataObj) GetSize() uint64

func (*DataObj) ProtoMessage

func (*DataObj) ProtoMessage()

func (*DataObj) ProtoReflect added in v0.28.0

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

func (*DataObj) Reset

func (x *DataObj) Reset()

func (*DataObj) String

func (x *DataObj) String() string

Jump to

Keyboard shortcuts

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