Files
yatm/entity/storage.pb.go
T
Samuel CuiandClaude Opus 5.5 5c0002af3a Define tar Tape, Device settings and prepared-read contracts
Add the tar Media profile, member locators, Tape read parameters, Device settings with learned read parameters, device reports and prepared-read messages, with generated Go and TypeScript code. Register the Tape vocabulary in CONTEXT and document the API and option contracts. Existing read dialogs request no position-map refresh. Encryption stays with the configured script; write options carry no native encryption switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 00:01:31 +08:00

619 lines
20 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc v5.26.0
// source: storage.proto
package entity
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type LtfsExtent struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Partition string `protobuf:"bytes,1,opt,name=partition,proto3" json:"partition,omitempty"`
StartBlock uint64 `protobuf:"varint,2,opt,name=start_block,json=startBlock,proto3" json:"start_block,omitempty"`
ByteOffset uint64 `protobuf:"varint,3,opt,name=byte_offset,json=byteOffset,proto3" json:"byte_offset,omitempty"`
ByteCount uint64 `protobuf:"varint,4,opt,name=byte_count,json=byteCount,proto3" json:"byte_count,omitempty"`
FileOffsetBytes uint64 `protobuf:"varint,5,opt,name=file_offset_bytes,json=fileOffsetBytes,proto3" json:"file_offset_bytes,omitempty"`
}
func (x *LtfsExtent) Reset() {
*x = LtfsExtent{}
if protoimpl.UnsafeEnabled {
mi := &file_storage_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LtfsExtent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LtfsExtent) ProtoMessage() {}
func (x *LtfsExtent) ProtoReflect() protoreflect.Message {
mi := &file_storage_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LtfsExtent.ProtoReflect.Descriptor instead.
func (*LtfsExtent) Descriptor() ([]byte, []int) {
return file_storage_proto_rawDescGZIP(), []int{0}
}
func (x *LtfsExtent) GetPartition() string {
if x != nil {
return x.Partition
}
return ""
}
func (x *LtfsExtent) GetStartBlock() uint64 {
if x != nil {
return x.StartBlock
}
return 0
}
func (x *LtfsExtent) GetByteOffset() uint64 {
if x != nil {
return x.ByteOffset
}
return 0
}
func (x *LtfsExtent) GetByteCount() uint64 {
if x != nil {
return x.ByteCount
}
return 0
}
func (x *LtfsExtent) GetFileOffsetBytes() uint64 {
if x != nil {
return x.FileOffsetBytes
}
return 0
}
type LtfsMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Extents []*LtfsExtent `protobuf:"bytes,1,rep,name=extents,proto3" json:"extents,omitempty"`
}
func (x *LtfsMetadata) Reset() {
*x = LtfsMetadata{}
if protoimpl.UnsafeEnabled {
mi := &file_storage_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LtfsMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LtfsMetadata) ProtoMessage() {}
func (x *LtfsMetadata) ProtoReflect() protoreflect.Message {
mi := &file_storage_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LtfsMetadata.ProtoReflect.Descriptor instead.
func (*LtfsMetadata) Descriptor() ([]byte, []int) {
return file_storage_proto_rawDescGZIP(), []int{1}
}
func (x *LtfsMetadata) GetExtents() []*LtfsExtent {
if x != nil {
return x.Extents
}
return nil
}
// Addressing uses a device logical object plus its byte offset, never a tar block number.
type TapeBytePosition struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Partition uint32 `protobuf:"varint,1,opt,name=partition,proto3" json:"partition,omitempty"`
LogicalObject uint64 `protobuf:"varint,2,opt,name=logical_object,json=logicalObject,proto3" json:"logical_object,omitempty"`
OffsetBytes uint32 `protobuf:"varint,3,opt,name=offset_bytes,json=offsetBytes,proto3" json:"offset_bytes,omitempty"`
}
func (x *TapeBytePosition) Reset() {
*x = TapeBytePosition{}
if protoimpl.UnsafeEnabled {
mi := &file_storage_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TapeBytePosition) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TapeBytePosition) ProtoMessage() {}
func (x *TapeBytePosition) ProtoReflect() protoreflect.Message {
mi := &file_storage_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TapeBytePosition.ProtoReflect.Descriptor instead.
func (*TapeBytePosition) Descriptor() ([]byte, []int) {
return file_storage_proto_rawDescGZIP(), []int{2}
}
func (x *TapeBytePosition) GetPartition() uint32 {
if x != nil {
return x.Partition
}
return 0
}
func (x *TapeBytePosition) GetLogicalObject() uint64 {
if x != nil {
return x.LogicalObject
}
return 0
}
func (x *TapeBytePosition) GetOffsetBytes() uint32 {
if x != nil {
return x.OffsetBytes
}
return 0
}
type TarMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TapeFile uint64 `protobuf:"varint,1,opt,name=tape_file,json=tapeFile,proto3" json:"tape_file,omitempty"`
HeaderOffsetBytes uint64 `protobuf:"varint,2,opt,name=header_offset_bytes,json=headerOffsetBytes,proto3" json:"header_offset_bytes,omitempty"`
// Exact, reload-stable anchors are present together only when established by the provider.
Header *TapeBytePosition `protobuf:"bytes,3,opt,name=header,proto3,oneof" json:"header,omitempty"`
End *TapeBytePosition `protobuf:"bytes,4,opt,name=end,proto3,oneof" json:"end,omitempty"`
}
func (x *TarMetadata) Reset() {
*x = TarMetadata{}
if protoimpl.UnsafeEnabled {
mi := &file_storage_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TarMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TarMetadata) ProtoMessage() {}
func (x *TarMetadata) ProtoReflect() protoreflect.Message {
mi := &file_storage_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TarMetadata.ProtoReflect.Descriptor instead.
func (*TarMetadata) Descriptor() ([]byte, []int) {
return file_storage_proto_rawDescGZIP(), []int{3}
}
func (x *TarMetadata) GetTapeFile() uint64 {
if x != nil {
return x.TapeFile
}
return 0
}
func (x *TarMetadata) GetHeaderOffsetBytes() uint64 {
if x != nil {
return x.HeaderOffsetBytes
}
return 0
}
func (x *TarMetadata) GetHeader() *TapeBytePosition {
if x != nil {
return x.Header
}
return nil
}
func (x *TarMetadata) GetEnd() *TapeBytePosition {
if x != nil {
return x.End
}
return nil
}
type StorageMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Backend:
//
// *StorageMetadata_Ltfs
// *StorageMetadata_Tar
Backend isStorageMetadata_Backend `protobuf_oneof:"backend"`
}
func (x *StorageMetadata) Reset() {
*x = StorageMetadata{}
if protoimpl.UnsafeEnabled {
mi := &file_storage_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StorageMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StorageMetadata) ProtoMessage() {}
func (x *StorageMetadata) ProtoReflect() protoreflect.Message {
mi := &file_storage_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StorageMetadata.ProtoReflect.Descriptor instead.
func (*StorageMetadata) Descriptor() ([]byte, []int) {
return file_storage_proto_rawDescGZIP(), []int{4}
}
func (m *StorageMetadata) GetBackend() isStorageMetadata_Backend {
if m != nil {
return m.Backend
}
return nil
}
func (x *StorageMetadata) GetLtfs() *LtfsMetadata {
if x, ok := x.GetBackend().(*StorageMetadata_Ltfs); ok {
return x.Ltfs
}
return nil
}
func (x *StorageMetadata) GetTar() *TarMetadata {
if x, ok := x.GetBackend().(*StorageMetadata_Tar); ok {
return x.Tar
}
return nil
}
type isStorageMetadata_Backend interface {
isStorageMetadata_Backend()
}
type StorageMetadata_Ltfs struct {
Ltfs *LtfsMetadata `protobuf:"bytes,1,opt,name=ltfs,proto3,oneof"`
}
type StorageMetadata_Tar struct {
Tar *TarMetadata `protobuf:"bytes,2,opt,name=tar,proto3,oneof"`
}
func (*StorageMetadata_Ltfs) isStorageMetadata_Backend() {}
func (*StorageMetadata_Tar) isStorageMetadata_Backend() {}
type StoragePosition struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Order []byte `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
Metadata *StorageMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
}
func (x *StoragePosition) Reset() {
*x = StoragePosition{}
if protoimpl.UnsafeEnabled {
mi := &file_storage_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StoragePosition) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StoragePosition) ProtoMessage() {}
func (x *StoragePosition) ProtoReflect() protoreflect.Message {
mi := &file_storage_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StoragePosition.ProtoReflect.Descriptor instead.
func (*StoragePosition) Descriptor() ([]byte, []int) {
return file_storage_proto_rawDescGZIP(), []int{5}
}
func (x *StoragePosition) GetOrder() []byte {
if x != nil {
return x.Order
}
return nil
}
func (x *StoragePosition) GetMetadata() *StorageMetadata {
if x != nil {
return x.Metadata
}
return nil
}
var File_storage_proto protoreflect.FileDescriptor
var file_storage_proto_rawDesc = []byte{
0x0a, 0x0d, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x07, 0x79, 0x61, 0x74, 0x6d, 0x2e, 0x76, 0x31, 0x22, 0xb7, 0x01, 0x0a, 0x0a, 0x4c, 0x74, 0x66,
0x73, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69,
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74,
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x62,
0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x72,
0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x5f, 0x6f,
0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x62, 0x79, 0x74,
0x65, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x5f,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x62, 0x79, 0x74,
0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6f,
0x66, 0x66, 0x73, 0x65, 0x74, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28,
0x04, 0x52, 0x0f, 0x66, 0x69, 0x6c, 0x65, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x42, 0x79, 0x74,
0x65, 0x73, 0x22, 0x3d, 0x0a, 0x0c, 0x4c, 0x74, 0x66, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0x12, 0x2d, 0x0a, 0x07, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x79, 0x61, 0x74, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x74,
0x66, 0x73, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x07, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x74,
0x73, 0x22, 0x7a, 0x0a, 0x10, 0x54, 0x61, 0x70, 0x65, 0x42, 0x79, 0x74, 0x65, 0x50, 0x6f, 0x73,
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69,
0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74,
0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x6f,
0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6c, 0x6f, 0x67,
0x69, 0x63, 0x61, 0x6c, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6f, 0x66,
0x66, 0x73, 0x65, 0x74, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d,
0x52, 0x0b, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0xd7, 0x01,
0x0a, 0x0b, 0x54, 0x61, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1b, 0x0a,
0x09, 0x74, 0x61, 0x70, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04,
0x52, 0x08, 0x74, 0x61, 0x70, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x68, 0x65,
0x61, 0x64, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x5f, 0x62, 0x79, 0x74, 0x65,
0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4f,
0x66, 0x66, 0x73, 0x65, 0x74, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x06, 0x68, 0x65,
0x61, 0x64, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x79, 0x61, 0x74,
0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x70, 0x65, 0x42, 0x79, 0x74, 0x65, 0x50, 0x6f, 0x73,
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x88,
0x01, 0x01, 0x12, 0x30, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x19, 0x2e, 0x79, 0x61, 0x74, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x70, 0x65, 0x42, 0x79,
0x74, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x03, 0x65, 0x6e,
0x64, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42,
0x06, 0x0a, 0x04, 0x5f, 0x65, 0x6e, 0x64, 0x22, 0x73, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x72, 0x61,
0x67, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, 0x0a, 0x04, 0x6c, 0x74,
0x66, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x79, 0x61, 0x74, 0x6d, 0x2e,
0x76, 0x31, 0x2e, 0x4c, 0x74, 0x66, 0x73, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48,
0x00, 0x52, 0x04, 0x6c, 0x74, 0x66, 0x73, 0x12, 0x28, 0x0a, 0x03, 0x74, 0x61, 0x72, 0x18, 0x02,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x79, 0x61, 0x74, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54,
0x61, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x03, 0x74, 0x61,
0x72, 0x42, 0x09, 0x0a, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x22, 0x5d, 0x0a, 0x0f,
0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12,
0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05,
0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x79, 0x61, 0x74, 0x6d, 0x2e, 0x76,
0x31, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x2a, 0x5a, 0x28, 0x67,
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x61, 0x6d, 0x75, 0x65, 0x6c,
0x6e, 0x63, 0x75, 0x69, 0x2f, 0x79, 0x61, 0x74, 0x6d, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79,
0x3b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_storage_proto_rawDescOnce sync.Once
file_storage_proto_rawDescData = file_storage_proto_rawDesc
)
func file_storage_proto_rawDescGZIP() []byte {
file_storage_proto_rawDescOnce.Do(func() {
file_storage_proto_rawDescData = protoimpl.X.CompressGZIP(file_storage_proto_rawDescData)
})
return file_storage_proto_rawDescData
}
var file_storage_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_storage_proto_goTypes = []interface{}{
(*LtfsExtent)(nil), // 0: yatm.v1.LtfsExtent
(*LtfsMetadata)(nil), // 1: yatm.v1.LtfsMetadata
(*TapeBytePosition)(nil), // 2: yatm.v1.TapeBytePosition
(*TarMetadata)(nil), // 3: yatm.v1.TarMetadata
(*StorageMetadata)(nil), // 4: yatm.v1.StorageMetadata
(*StoragePosition)(nil), // 5: yatm.v1.StoragePosition
}
var file_storage_proto_depIdxs = []int32{
0, // 0: yatm.v1.LtfsMetadata.extents:type_name -> yatm.v1.LtfsExtent
2, // 1: yatm.v1.TarMetadata.header:type_name -> yatm.v1.TapeBytePosition
2, // 2: yatm.v1.TarMetadata.end:type_name -> yatm.v1.TapeBytePosition
1, // 3: yatm.v1.StorageMetadata.ltfs:type_name -> yatm.v1.LtfsMetadata
3, // 4: yatm.v1.StorageMetadata.tar:type_name -> yatm.v1.TarMetadata
4, // 5: yatm.v1.StoragePosition.metadata:type_name -> yatm.v1.StorageMetadata
6, // [6:6] is the sub-list for method output_type
6, // [6:6] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
}
func init() { file_storage_proto_init() }
func file_storage_proto_init() {
if File_storage_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_storage_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LtfsExtent); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_storage_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LtfsMetadata); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_storage_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TapeBytePosition); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_storage_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TarMetadata); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_storage_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*StorageMetadata); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_storage_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*StoragePosition); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_storage_proto_msgTypes[3].OneofWrappers = []interface{}{}
file_storage_proto_msgTypes[4].OneofWrappers = []interface{}{
(*StorageMetadata_Ltfs)(nil),
(*StorageMetadata_Tar)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_storage_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_storage_proto_goTypes,
DependencyIndexes: file_storage_proto_depIdxs,
MessageInfos: file_storage_proto_msgTypes,
}.Build()
File_storage_proto = out.File
file_storage_proto_rawDesc = nil
file_storage_proto_goTypes = nil
file_storage_proto_depIdxs = nil
}