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 ¶
- Variables
- type DataObj
- func (*DataObj) Descriptor() ([]byte, []int)deprecated
- func (x *DataObj) GetFilePath() string
- func (x *DataObj) GetOffset() uint64
- func (x *DataObj) GetSize() uint64
- func (*DataObj) ProtoMessage()
- func (x *DataObj) ProtoReflect() protoreflect.Message
- func (x *DataObj) Reset()
- func (x *DataObj) String() string
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) GetFilePath ¶
func (*DataObj) ProtoMessage ¶
func (*DataObj) ProtoMessage()
func (*DataObj) ProtoReflect ¶ added in v0.28.0
func (x *DataObj) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.