mirror of
https://github.com/samuelncui/yatm.git
synced 2026-11-08 12:26:33 +00:00
Unify file queries and Scan execution, retain indexed Identical results, improve Job and Preview workflows, and verify release packaging.
328 lines
11 KiB
Go
328 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.33.0
|
|
// protoc v5.26.0
|
|
// source: position.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 PositionHealth int32
|
|
|
|
const (
|
|
PositionHealth_POSITION_HEALTH_UNSPECIFIED PositionHealth = 0
|
|
PositionHealth_POSITION_HEALTH_UNKNOWN PositionHealth = 1
|
|
PositionHealth_POSITION_HEALTH_HEALTHY PositionHealth = 2
|
|
PositionHealth_POSITION_HEALTH_DAMAGED PositionHealth = 3
|
|
PositionHealth_POSITION_HEALTH_MISSING PositionHealth = 4
|
|
PositionHealth_POSITION_HEALTH_UNREADABLE PositionHealth = 5
|
|
)
|
|
|
|
// Enum value maps for PositionHealth.
|
|
var (
|
|
PositionHealth_name = map[int32]string{
|
|
0: "POSITION_HEALTH_UNSPECIFIED",
|
|
1: "POSITION_HEALTH_UNKNOWN",
|
|
2: "POSITION_HEALTH_HEALTHY",
|
|
3: "POSITION_HEALTH_DAMAGED",
|
|
4: "POSITION_HEALTH_MISSING",
|
|
5: "POSITION_HEALTH_UNREADABLE",
|
|
}
|
|
PositionHealth_value = map[string]int32{
|
|
"POSITION_HEALTH_UNSPECIFIED": 0,
|
|
"POSITION_HEALTH_UNKNOWN": 1,
|
|
"POSITION_HEALTH_HEALTHY": 2,
|
|
"POSITION_HEALTH_DAMAGED": 3,
|
|
"POSITION_HEALTH_MISSING": 4,
|
|
"POSITION_HEALTH_UNREADABLE": 5,
|
|
}
|
|
)
|
|
|
|
func (x PositionHealth) Enum() *PositionHealth {
|
|
p := new(PositionHealth)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x PositionHealth) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (PositionHealth) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_position_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (PositionHealth) Type() protoreflect.EnumType {
|
|
return &file_position_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x PositionHealth) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use PositionHealth.Descriptor instead.
|
|
func (PositionHealth) EnumDescriptor() ([]byte, []int) {
|
|
return file_position_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type Position struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
MediaId int64 `protobuf:"varint,3,opt,name=media_id,json=mediaId,proto3" json:"media_id,omitempty"`
|
|
Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
|
|
Mode int64 `protobuf:"varint,17,opt,name=mode,proto3" json:"mode,omitempty"`
|
|
MtimeNs int64 `protobuf:"varint,18,opt,name=mtime_ns,json=mtimeNs,proto3" json:"mtime_ns,omitempty"`
|
|
WrittenAtNs int64 `protobuf:"varint,19,opt,name=written_at_ns,json=writtenAtNs,proto3" json:"written_at_ns,omitempty"`
|
|
SizeBytes int64 `protobuf:"varint,20,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
|
|
Sha256 []byte `protobuf:"bytes,21,opt,name=sha256,proto3" json:"sha256,omitempty"`
|
|
Signature []byte `protobuf:"bytes,22,opt,name=signature,proto3" json:"signature,omitempty"`
|
|
Health PositionHealth `protobuf:"varint,23,opt,name=health,proto3,enum=yatm.v1.PositionHealth" json:"health,omitempty"`
|
|
CheckedAtNs int64 `protobuf:"varint,24,opt,name=checked_at_ns,json=checkedAtNs,proto3" json:"checked_at_ns,omitempty"`
|
|
HealthJobId int64 `protobuf:"varint,25,opt,name=health_job_id,json=healthJobId,proto3" json:"health_job_id,omitempty"`
|
|
}
|
|
|
|
func (x *Position) Reset() {
|
|
*x = Position{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_position_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *Position) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Position) ProtoMessage() {}
|
|
|
|
func (x *Position) ProtoReflect() protoreflect.Message {
|
|
mi := &file_position_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 Position.ProtoReflect.Descriptor instead.
|
|
func (*Position) Descriptor() ([]byte, []int) {
|
|
return file_position_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Position) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Position) GetMediaId() int64 {
|
|
if x != nil {
|
|
return x.MediaId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Position) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Position) GetMode() int64 {
|
|
if x != nil {
|
|
return x.Mode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Position) GetMtimeNs() int64 {
|
|
if x != nil {
|
|
return x.MtimeNs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Position) GetWrittenAtNs() int64 {
|
|
if x != nil {
|
|
return x.WrittenAtNs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Position) GetSizeBytes() int64 {
|
|
if x != nil {
|
|
return x.SizeBytes
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Position) GetSha256() []byte {
|
|
if x != nil {
|
|
return x.Sha256
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Position) GetSignature() []byte {
|
|
if x != nil {
|
|
return x.Signature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Position) GetHealth() PositionHealth {
|
|
if x != nil {
|
|
return x.Health
|
|
}
|
|
return PositionHealth_POSITION_HEALTH_UNSPECIFIED
|
|
}
|
|
|
|
func (x *Position) GetCheckedAtNs() int64 {
|
|
if x != nil {
|
|
return x.CheckedAtNs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Position) GetHealthJobId() int64 {
|
|
if x != nil {
|
|
return x.HealthJobId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_position_proto protoreflect.FileDescriptor
|
|
|
|
var file_position_proto_rawDesc = []byte{
|
|
0x0a, 0x0e, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
0x12, 0x07, 0x79, 0x61, 0x74, 0x6d, 0x2e, 0x76, 0x31, 0x22, 0xea, 0x02, 0x0a, 0x08, 0x50, 0x6f,
|
|
0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
|
0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f,
|
|
0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x49,
|
|
0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x11, 0x20,
|
|
0x01, 0x28, 0x03, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x74, 0x69,
|
|
0x6d, 0x65, 0x5f, 0x6e, 0x73, 0x18, 0x12, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x74, 0x69,
|
|
0x6d, 0x65, 0x4e, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x77, 0x72, 0x69, 0x74, 0x74, 0x65, 0x6e, 0x5f,
|
|
0x61, 0x74, 0x5f, 0x6e, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x77, 0x72, 0x69,
|
|
0x74, 0x74, 0x65, 0x6e, 0x41, 0x74, 0x4e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x69, 0x7a, 0x65,
|
|
0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x69,
|
|
0x7a, 0x65, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x68, 0x61, 0x32, 0x35,
|
|
0x36, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, 0x12,
|
|
0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x16, 0x20, 0x01,
|
|
0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x2f, 0x0a,
|
|
0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e,
|
|
0x79, 0x61, 0x74, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e,
|
|
0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x22,
|
|
0x0a, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x5f, 0x6e, 0x73, 0x18,
|
|
0x18, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, 0x41, 0x74,
|
|
0x4e, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x5f, 0x6a, 0x6f, 0x62,
|
|
0x5f, 0x69, 0x64, 0x18, 0x19, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x68, 0x65, 0x61, 0x6c, 0x74,
|
|
0x68, 0x4a, 0x6f, 0x62, 0x49, 0x64, 0x2a, 0xc5, 0x01, 0x0a, 0x0e, 0x50, 0x6f, 0x73, 0x69, 0x74,
|
|
0x69, 0x6f, 0x6e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x1f, 0x0a, 0x1b, 0x50, 0x4f, 0x53,
|
|
0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x45, 0x41, 0x4c, 0x54, 0x48, 0x5f, 0x55, 0x4e, 0x53,
|
|
0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f,
|
|
0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x45, 0x41, 0x4c, 0x54, 0x48, 0x5f, 0x55, 0x4e,
|
|
0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x53, 0x49, 0x54,
|
|
0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x45, 0x41, 0x4c, 0x54, 0x48, 0x5f, 0x48, 0x45, 0x41, 0x4c, 0x54,
|
|
0x48, 0x59, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e,
|
|
0x5f, 0x48, 0x45, 0x41, 0x4c, 0x54, 0x48, 0x5f, 0x44, 0x41, 0x4d, 0x41, 0x47, 0x45, 0x44, 0x10,
|
|
0x03, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x45,
|
|
0x41, 0x4c, 0x54, 0x48, 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x1e,
|
|
0x0a, 0x1a, 0x50, 0x4f, 0x53, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x45, 0x41, 0x4c, 0x54,
|
|
0x48, 0x5f, 0x55, 0x4e, 0x52, 0x45, 0x41, 0x44, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x05, 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_position_proto_rawDescOnce sync.Once
|
|
file_position_proto_rawDescData = file_position_proto_rawDesc
|
|
)
|
|
|
|
func file_position_proto_rawDescGZIP() []byte {
|
|
file_position_proto_rawDescOnce.Do(func() {
|
|
file_position_proto_rawDescData = protoimpl.X.CompressGZIP(file_position_proto_rawDescData)
|
|
})
|
|
return file_position_proto_rawDescData
|
|
}
|
|
|
|
var file_position_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_position_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
var file_position_proto_goTypes = []interface{}{
|
|
(PositionHealth)(0), // 0: yatm.v1.PositionHealth
|
|
(*Position)(nil), // 1: yatm.v1.Position
|
|
}
|
|
var file_position_proto_depIdxs = []int32{
|
|
0, // 0: yatm.v1.Position.health:type_name -> yatm.v1.PositionHealth
|
|
1, // [1:1] is the sub-list for method output_type
|
|
1, // [1:1] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_position_proto_init() }
|
|
func file_position_proto_init() {
|
|
if File_position_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_position_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*Position); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_position_proto_rawDesc,
|
|
NumEnums: 1,
|
|
NumMessages: 1,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_position_proto_goTypes,
|
|
DependencyIndexes: file_position_proto_depIdxs,
|
|
EnumInfos: file_position_proto_enumTypes,
|
|
MessageInfos: file_position_proto_msgTypes,
|
|
}.Build()
|
|
File_position_proto = out.File
|
|
file_position_proto_rawDesc = nil
|
|
file_position_proto_goTypes = nil
|
|
file_position_proto_depIdxs = nil
|
|
}
|