diff --git a/go/swift-rpc-losf/proto/fmgr.pb.go b/go/swift-rpc-losf/proto/fmgr.pb.go index 8f02aef7f1..1cb26dc7b3 100644 --- a/go/swift-rpc-losf/proto/fmgr.pb.go +++ b/go/swift-rpc-losf/proto/fmgr.pb.go @@ -20,7 +20,7 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package -// Volume type +// Enums type VolumeType int32 const ( @@ -49,7 +49,6 @@ func (VolumeType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_1fcd0776e05e82a6, []int{0} } -// VolumeState state type VolumeState int32 const ( @@ -81,46 +80,1268 @@ func (VolumeState) EnumDescriptor() ([]byte, []int) { return fileDescriptor_1fcd0776e05e82a6, []int{1} } -type ListPartitionsInfo struct { +type RegisterVolumeRequest struct { + Partition uint32 `protobuf:"varint,1,opt,name=partition,proto3" json:"partition,omitempty"` + Type VolumeType `protobuf:"varint,2,opt,name=type,proto3,enum=filemgr.VolumeType" json:"type,omitempty"` + VolumeIndex uint32 `protobuf:"varint,3,opt,name=volume_index,json=volumeIndex,proto3" json:"volume_index,omitempty"` + Offset uint64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` + State VolumeState `protobuf:"varint,5,opt,name=state,proto3,enum=filemgr.VolumeState" json:"state,omitempty"` + RepairTool bool `protobuf:"varint,6,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegisterVolumeRequest) Reset() { *m = RegisterVolumeRequest{} } +func (m *RegisterVolumeRequest) String() string { return proto.CompactTextString(m) } +func (*RegisterVolumeRequest) ProtoMessage() {} +func (*RegisterVolumeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{0} +} + +func (m *RegisterVolumeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RegisterVolumeRequest.Unmarshal(m, b) +} +func (m *RegisterVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RegisterVolumeRequest.Marshal(b, m, deterministic) +} +func (m *RegisterVolumeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegisterVolumeRequest.Merge(m, src) +} +func (m *RegisterVolumeRequest) XXX_Size() int { + return xxx_messageInfo_RegisterVolumeRequest.Size(m) +} +func (m *RegisterVolumeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RegisterVolumeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RegisterVolumeRequest proto.InternalMessageInfo + +func (m *RegisterVolumeRequest) GetPartition() uint32 { + if m != nil { + return m.Partition + } + return 0 +} + +func (m *RegisterVolumeRequest) GetType() VolumeType { + if m != nil { + return m.Type + } + return VolumeType_VOLUME_DEFAULT +} + +func (m *RegisterVolumeRequest) GetVolumeIndex() uint32 { + if m != nil { + return m.VolumeIndex + } + return 0 +} + +func (m *RegisterVolumeRequest) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *RegisterVolumeRequest) GetState() VolumeState { + if m != nil { + return m.State + } + return VolumeState_STATE_RW +} + +func (m *RegisterVolumeRequest) GetRepairTool() bool { + if m != nil { + return m.RepairTool + } + return false +} + +type RegisterVolumeReply struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegisterVolumeReply) Reset() { *m = RegisterVolumeReply{} } +func (m *RegisterVolumeReply) String() string { return proto.CompactTextString(m) } +func (*RegisterVolumeReply) ProtoMessage() {} +func (*RegisterVolumeReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{1} +} + +func (m *RegisterVolumeReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RegisterVolumeReply.Unmarshal(m, b) +} +func (m *RegisterVolumeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RegisterVolumeReply.Marshal(b, m, deterministic) +} +func (m *RegisterVolumeReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegisterVolumeReply.Merge(m, src) +} +func (m *RegisterVolumeReply) XXX_Size() int { + return xxx_messageInfo_RegisterVolumeReply.Size(m) +} +func (m *RegisterVolumeReply) XXX_DiscardUnknown() { + xxx_messageInfo_RegisterVolumeReply.DiscardUnknown(m) +} + +var xxx_messageInfo_RegisterVolumeReply proto.InternalMessageInfo + +type UnregisterVolumeRequest struct { + Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + RepairTool bool `protobuf:"varint,2,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UnregisterVolumeRequest) Reset() { *m = UnregisterVolumeRequest{} } +func (m *UnregisterVolumeRequest) String() string { return proto.CompactTextString(m) } +func (*UnregisterVolumeRequest) ProtoMessage() {} +func (*UnregisterVolumeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{2} +} + +func (m *UnregisterVolumeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UnregisterVolumeRequest.Unmarshal(m, b) +} +func (m *UnregisterVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UnregisterVolumeRequest.Marshal(b, m, deterministic) +} +func (m *UnregisterVolumeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnregisterVolumeRequest.Merge(m, src) +} +func (m *UnregisterVolumeRequest) XXX_Size() int { + return xxx_messageInfo_UnregisterVolumeRequest.Size(m) +} +func (m *UnregisterVolumeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UnregisterVolumeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UnregisterVolumeRequest proto.InternalMessageInfo + +func (m *UnregisterVolumeRequest) GetIndex() uint32 { + if m != nil { + return m.Index + } + return 0 +} + +func (m *UnregisterVolumeRequest) GetRepairTool() bool { + if m != nil { + return m.RepairTool + } + return false +} + +type UnregisterVolumeReply struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UnregisterVolumeReply) Reset() { *m = UnregisterVolumeReply{} } +func (m *UnregisterVolumeReply) String() string { return proto.CompactTextString(m) } +func (*UnregisterVolumeReply) ProtoMessage() {} +func (*UnregisterVolumeReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{3} +} + +func (m *UnregisterVolumeReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UnregisterVolumeReply.Unmarshal(m, b) +} +func (m *UnregisterVolumeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UnregisterVolumeReply.Marshal(b, m, deterministic) +} +func (m *UnregisterVolumeReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnregisterVolumeReply.Merge(m, src) +} +func (m *UnregisterVolumeReply) XXX_Size() int { + return xxx_messageInfo_UnregisterVolumeReply.Size(m) +} +func (m *UnregisterVolumeReply) XXX_DiscardUnknown() { + xxx_messageInfo_UnregisterVolumeReply.DiscardUnknown(m) +} + +var xxx_messageInfo_UnregisterVolumeReply proto.InternalMessageInfo + +type UpdateVolumeStateRequest struct { + VolumeIndex uint32 `protobuf:"varint,1,opt,name=volume_index,json=volumeIndex,proto3" json:"volume_index,omitempty"` + State VolumeState `protobuf:"varint,2,opt,name=state,proto3,enum=filemgr.VolumeState" json:"state,omitempty"` + RepairTool bool `protobuf:"varint,3,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateVolumeStateRequest) Reset() { *m = UpdateVolumeStateRequest{} } +func (m *UpdateVolumeStateRequest) String() string { return proto.CompactTextString(m) } +func (*UpdateVolumeStateRequest) ProtoMessage() {} +func (*UpdateVolumeStateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{4} +} + +func (m *UpdateVolumeStateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateVolumeStateRequest.Unmarshal(m, b) +} +func (m *UpdateVolumeStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateVolumeStateRequest.Marshal(b, m, deterministic) +} +func (m *UpdateVolumeStateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateVolumeStateRequest.Merge(m, src) +} +func (m *UpdateVolumeStateRequest) XXX_Size() int { + return xxx_messageInfo_UpdateVolumeStateRequest.Size(m) +} +func (m *UpdateVolumeStateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateVolumeStateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateVolumeStateRequest proto.InternalMessageInfo + +func (m *UpdateVolumeStateRequest) GetVolumeIndex() uint32 { + if m != nil { + return m.VolumeIndex + } + return 0 +} + +func (m *UpdateVolumeStateRequest) GetState() VolumeState { + if m != nil { + return m.State + } + return VolumeState_STATE_RW +} + +func (m *UpdateVolumeStateRequest) GetRepairTool() bool { + if m != nil { + return m.RepairTool + } + return false +} + +type UpdateVolumeStateReply struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UpdateVolumeStateReply) Reset() { *m = UpdateVolumeStateReply{} } +func (m *UpdateVolumeStateReply) String() string { return proto.CompactTextString(m) } +func (*UpdateVolumeStateReply) ProtoMessage() {} +func (*UpdateVolumeStateReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{5} +} + +func (m *UpdateVolumeStateReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UpdateVolumeStateReply.Unmarshal(m, b) +} +func (m *UpdateVolumeStateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UpdateVolumeStateReply.Marshal(b, m, deterministic) +} +func (m *UpdateVolumeStateReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateVolumeStateReply.Merge(m, src) +} +func (m *UpdateVolumeStateReply) XXX_Size() int { + return xxx_messageInfo_UpdateVolumeStateReply.Size(m) +} +func (m *UpdateVolumeStateReply) XXX_DiscardUnknown() { + xxx_messageInfo_UpdateVolumeStateReply.DiscardUnknown(m) +} + +var xxx_messageInfo_UpdateVolumeStateReply proto.InternalMessageInfo + +type GetVolumeRequest struct { + Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + RepairTool bool `protobuf:"varint,2,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetVolumeRequest) Reset() { *m = GetVolumeRequest{} } +func (m *GetVolumeRequest) String() string { return proto.CompactTextString(m) } +func (*GetVolumeRequest) ProtoMessage() {} +func (*GetVolumeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{6} +} + +func (m *GetVolumeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetVolumeRequest.Unmarshal(m, b) +} +func (m *GetVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetVolumeRequest.Marshal(b, m, deterministic) +} +func (m *GetVolumeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVolumeRequest.Merge(m, src) +} +func (m *GetVolumeRequest) XXX_Size() int { + return xxx_messageInfo_GetVolumeRequest.Size(m) +} +func (m *GetVolumeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetVolumeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetVolumeRequest proto.InternalMessageInfo + +func (m *GetVolumeRequest) GetIndex() uint32 { + if m != nil { + return m.Index + } + return 0 +} + +func (m *GetVolumeRequest) GetRepairTool() bool { + if m != nil { + return m.RepairTool + } + return false +} + +type GetVolumeReply struct { + VolumeIndex uint32 `protobuf:"varint,1,opt,name=volume_index,json=volumeIndex,proto3" json:"volume_index,omitempty"` + VolumeType VolumeType `protobuf:"varint,2,opt,name=volume_type,json=volumeType,proto3,enum=filemgr.VolumeType" json:"volume_type,omitempty"` + VolumeState uint32 `protobuf:"varint,3,opt,name=volume_state,json=volumeState,proto3" json:"volume_state,omitempty"` + Partition uint32 `protobuf:"varint,4,opt,name=partition,proto3" json:"partition,omitempty"` + NextOffset uint64 `protobuf:"varint,5,opt,name=next_offset,json=nextOffset,proto3" json:"next_offset,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetVolumeReply) Reset() { *m = GetVolumeReply{} } +func (m *GetVolumeReply) String() string { return proto.CompactTextString(m) } +func (*GetVolumeReply) ProtoMessage() {} +func (*GetVolumeReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{7} +} + +func (m *GetVolumeReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetVolumeReply.Unmarshal(m, b) +} +func (m *GetVolumeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetVolumeReply.Marshal(b, m, deterministic) +} +func (m *GetVolumeReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetVolumeReply.Merge(m, src) +} +func (m *GetVolumeReply) XXX_Size() int { + return xxx_messageInfo_GetVolumeReply.Size(m) +} +func (m *GetVolumeReply) XXX_DiscardUnknown() { + xxx_messageInfo_GetVolumeReply.DiscardUnknown(m) +} + +var xxx_messageInfo_GetVolumeReply proto.InternalMessageInfo + +func (m *GetVolumeReply) GetVolumeIndex() uint32 { + if m != nil { + return m.VolumeIndex + } + return 0 +} + +func (m *GetVolumeReply) GetVolumeType() VolumeType { + if m != nil { + return m.VolumeType + } + return VolumeType_VOLUME_DEFAULT +} + +func (m *GetVolumeReply) GetVolumeState() uint32 { + if m != nil { + return m.VolumeState + } + return 0 +} + +func (m *GetVolumeReply) GetPartition() uint32 { + if m != nil { + return m.Partition + } + return 0 +} + +func (m *GetVolumeReply) GetNextOffset() uint64 { + if m != nil { + return m.NextOffset + } + return 0 +} + +type ListVolumesRequest struct { + Partition uint32 `protobuf:"varint,1,opt,name=partition,proto3" json:"partition,omitempty"` + Type VolumeType `protobuf:"varint,2,opt,name=type,proto3,enum=filemgr.VolumeType" json:"type,omitempty"` + RepairTool bool `protobuf:"varint,3,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListVolumesRequest) Reset() { *m = ListVolumesRequest{} } +func (m *ListVolumesRequest) String() string { return proto.CompactTextString(m) } +func (*ListVolumesRequest) ProtoMessage() {} +func (*ListVolumesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{8} +} + +func (m *ListVolumesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListVolumesRequest.Unmarshal(m, b) +} +func (m *ListVolumesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListVolumesRequest.Marshal(b, m, deterministic) +} +func (m *ListVolumesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListVolumesRequest.Merge(m, src) +} +func (m *ListVolumesRequest) XXX_Size() int { + return xxx_messageInfo_ListVolumesRequest.Size(m) +} +func (m *ListVolumesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListVolumesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListVolumesRequest proto.InternalMessageInfo + +func (m *ListVolumesRequest) GetPartition() uint32 { + if m != nil { + return m.Partition + } + return 0 +} + +func (m *ListVolumesRequest) GetType() VolumeType { + if m != nil { + return m.Type + } + return VolumeType_VOLUME_DEFAULT +} + +func (m *ListVolumesRequest) GetRepairTool() bool { + if m != nil { + return m.RepairTool + } + return false +} + +type ListVolumesReply struct { + Volumes []*Volume `protobuf:"bytes,1,rep,name=volumes,proto3" json:"volumes,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListVolumesReply) Reset() { *m = ListVolumesReply{} } +func (m *ListVolumesReply) String() string { return proto.CompactTextString(m) } +func (*ListVolumesReply) ProtoMessage() {} +func (*ListVolumesReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{9} +} + +func (m *ListVolumesReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListVolumesReply.Unmarshal(m, b) +} +func (m *ListVolumesReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListVolumesReply.Marshal(b, m, deterministic) +} +func (m *ListVolumesReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListVolumesReply.Merge(m, src) +} +func (m *ListVolumesReply) XXX_Size() int { + return xxx_messageInfo_ListVolumesReply.Size(m) +} +func (m *ListVolumesReply) XXX_DiscardUnknown() { + xxx_messageInfo_ListVolumesReply.DiscardUnknown(m) +} + +var xxx_messageInfo_ListVolumesReply proto.InternalMessageInfo + +func (m *ListVolumesReply) GetVolumes() []*Volume { + if m != nil { + return m.Volumes + } + return nil +} + +type RegisterObjectRequest struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + VolumeIndex uint32 `protobuf:"varint,2,opt,name=volume_index,json=volumeIndex,proto3" json:"volume_index,omitempty"` + Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` + NextOffset uint64 `protobuf:"varint,4,opt,name=next_offset,json=nextOffset,proto3" json:"next_offset,omitempty"` + RepairTool bool `protobuf:"varint,5,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegisterObjectRequest) Reset() { *m = RegisterObjectRequest{} } +func (m *RegisterObjectRequest) String() string { return proto.CompactTextString(m) } +func (*RegisterObjectRequest) ProtoMessage() {} +func (*RegisterObjectRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{10} +} + +func (m *RegisterObjectRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RegisterObjectRequest.Unmarshal(m, b) +} +func (m *RegisterObjectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RegisterObjectRequest.Marshal(b, m, deterministic) +} +func (m *RegisterObjectRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegisterObjectRequest.Merge(m, src) +} +func (m *RegisterObjectRequest) XXX_Size() int { + return xxx_messageInfo_RegisterObjectRequest.Size(m) +} +func (m *RegisterObjectRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RegisterObjectRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RegisterObjectRequest proto.InternalMessageInfo + +func (m *RegisterObjectRequest) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *RegisterObjectRequest) GetVolumeIndex() uint32 { + if m != nil { + return m.VolumeIndex + } + return 0 +} + +func (m *RegisterObjectRequest) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +func (m *RegisterObjectRequest) GetNextOffset() uint64 { + if m != nil { + return m.NextOffset + } + return 0 +} + +func (m *RegisterObjectRequest) GetRepairTool() bool { + if m != nil { + return m.RepairTool + } + return false +} + +type RegisterObjectReply struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegisterObjectReply) Reset() { *m = RegisterObjectReply{} } +func (m *RegisterObjectReply) String() string { return proto.CompactTextString(m) } +func (*RegisterObjectReply) ProtoMessage() {} +func (*RegisterObjectReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{11} +} + +func (m *RegisterObjectReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RegisterObjectReply.Unmarshal(m, b) +} +func (m *RegisterObjectReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RegisterObjectReply.Marshal(b, m, deterministic) +} +func (m *RegisterObjectReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegisterObjectReply.Merge(m, src) +} +func (m *RegisterObjectReply) XXX_Size() int { + return xxx_messageInfo_RegisterObjectReply.Size(m) +} +func (m *RegisterObjectReply) XXX_DiscardUnknown() { + xxx_messageInfo_RegisterObjectReply.DiscardUnknown(m) +} + +var xxx_messageInfo_RegisterObjectReply proto.InternalMessageInfo + +type UnregisterObjectRequest struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + RepairTool bool `protobuf:"varint,2,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UnregisterObjectRequest) Reset() { *m = UnregisterObjectRequest{} } +func (m *UnregisterObjectRequest) String() string { return proto.CompactTextString(m) } +func (*UnregisterObjectRequest) ProtoMessage() {} +func (*UnregisterObjectRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{12} +} + +func (m *UnregisterObjectRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UnregisterObjectRequest.Unmarshal(m, b) +} +func (m *UnregisterObjectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UnregisterObjectRequest.Marshal(b, m, deterministic) +} +func (m *UnregisterObjectRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnregisterObjectRequest.Merge(m, src) +} +func (m *UnregisterObjectRequest) XXX_Size() int { + return xxx_messageInfo_UnregisterObjectRequest.Size(m) +} +func (m *UnregisterObjectRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UnregisterObjectRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UnregisterObjectRequest proto.InternalMessageInfo + +func (m *UnregisterObjectRequest) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *UnregisterObjectRequest) GetRepairTool() bool { + if m != nil { + return m.RepairTool + } + return false +} + +type UnregisterObjectReply struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UnregisterObjectReply) Reset() { *m = UnregisterObjectReply{} } +func (m *UnregisterObjectReply) String() string { return proto.CompactTextString(m) } +func (*UnregisterObjectReply) ProtoMessage() {} +func (*UnregisterObjectReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{13} +} + +func (m *UnregisterObjectReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UnregisterObjectReply.Unmarshal(m, b) +} +func (m *UnregisterObjectReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UnregisterObjectReply.Marshal(b, m, deterministic) +} +func (m *UnregisterObjectReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnregisterObjectReply.Merge(m, src) +} +func (m *UnregisterObjectReply) XXX_Size() int { + return xxx_messageInfo_UnregisterObjectReply.Size(m) +} +func (m *UnregisterObjectReply) XXX_DiscardUnknown() { + xxx_messageInfo_UnregisterObjectReply.DiscardUnknown(m) +} + +var xxx_messageInfo_UnregisterObjectReply proto.InternalMessageInfo + +type RenameObjectRequest struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + NewName []byte `protobuf:"bytes,2,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"` + RepairTool bool `protobuf:"varint,3,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RenameObjectRequest) Reset() { *m = RenameObjectRequest{} } +func (m *RenameObjectRequest) String() string { return proto.CompactTextString(m) } +func (*RenameObjectRequest) ProtoMessage() {} +func (*RenameObjectRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{14} +} + +func (m *RenameObjectRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RenameObjectRequest.Unmarshal(m, b) +} +func (m *RenameObjectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RenameObjectRequest.Marshal(b, m, deterministic) +} +func (m *RenameObjectRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RenameObjectRequest.Merge(m, src) +} +func (m *RenameObjectRequest) XXX_Size() int { + return xxx_messageInfo_RenameObjectRequest.Size(m) +} +func (m *RenameObjectRequest) XXX_DiscardUnknown() { + xxx_messageInfo_RenameObjectRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_RenameObjectRequest proto.InternalMessageInfo + +func (m *RenameObjectRequest) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *RenameObjectRequest) GetNewName() []byte { + if m != nil { + return m.NewName + } + return nil +} + +func (m *RenameObjectRequest) GetRepairTool() bool { + if m != nil { + return m.RepairTool + } + return false +} + +type RenameObjectReply struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RenameObjectReply) Reset() { *m = RenameObjectReply{} } +func (m *RenameObjectReply) String() string { return proto.CompactTextString(m) } +func (*RenameObjectReply) ProtoMessage() {} +func (*RenameObjectReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{15} +} + +func (m *RenameObjectReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RenameObjectReply.Unmarshal(m, b) +} +func (m *RenameObjectReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RenameObjectReply.Marshal(b, m, deterministic) +} +func (m *RenameObjectReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_RenameObjectReply.Merge(m, src) +} +func (m *RenameObjectReply) XXX_Size() int { + return xxx_messageInfo_RenameObjectReply.Size(m) +} +func (m *RenameObjectReply) XXX_DiscardUnknown() { + xxx_messageInfo_RenameObjectReply.DiscardUnknown(m) +} + +var xxx_messageInfo_RenameObjectReply proto.InternalMessageInfo + +type LoadObjectRequest struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + IsQuarantined bool `protobuf:"varint,2,opt,name=is_quarantined,json=isQuarantined,proto3" json:"is_quarantined,omitempty"` + RepairTool bool `protobuf:"varint,3,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LoadObjectRequest) Reset() { *m = LoadObjectRequest{} } +func (m *LoadObjectRequest) String() string { return proto.CompactTextString(m) } +func (*LoadObjectRequest) ProtoMessage() {} +func (*LoadObjectRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{16} +} + +func (m *LoadObjectRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadObjectRequest.Unmarshal(m, b) +} +func (m *LoadObjectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadObjectRequest.Marshal(b, m, deterministic) +} +func (m *LoadObjectRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadObjectRequest.Merge(m, src) +} +func (m *LoadObjectRequest) XXX_Size() int { + return xxx_messageInfo_LoadObjectRequest.Size(m) +} +func (m *LoadObjectRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LoadObjectRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadObjectRequest proto.InternalMessageInfo + +func (m *LoadObjectRequest) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *LoadObjectRequest) GetIsQuarantined() bool { + if m != nil { + return m.IsQuarantined + } + return false +} + +func (m *LoadObjectRequest) GetRepairTool() bool { + if m != nil { + return m.RepairTool + } + return false +} + +type LoadObjectReply struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + VolumeIndex uint32 `protobuf:"varint,2,opt,name=volume_index,json=volumeIndex,proto3" json:"volume_index,omitempty"` + Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LoadObjectReply) Reset() { *m = LoadObjectReply{} } +func (m *LoadObjectReply) String() string { return proto.CompactTextString(m) } +func (*LoadObjectReply) ProtoMessage() {} +func (*LoadObjectReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{17} +} + +func (m *LoadObjectReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadObjectReply.Unmarshal(m, b) +} +func (m *LoadObjectReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadObjectReply.Marshal(b, m, deterministic) +} +func (m *LoadObjectReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadObjectReply.Merge(m, src) +} +func (m *LoadObjectReply) XXX_Size() int { + return xxx_messageInfo_LoadObjectReply.Size(m) +} +func (m *LoadObjectReply) XXX_DiscardUnknown() { + xxx_messageInfo_LoadObjectReply.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadObjectReply proto.InternalMessageInfo + +func (m *LoadObjectReply) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *LoadObjectReply) GetVolumeIndex() uint32 { + if m != nil { + return m.VolumeIndex + } + return 0 +} + +func (m *LoadObjectReply) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +type QuarantineObjectRequest struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + RepairTool bool `protobuf:"varint,2,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QuarantineObjectRequest) Reset() { *m = QuarantineObjectRequest{} } +func (m *QuarantineObjectRequest) String() string { return proto.CompactTextString(m) } +func (*QuarantineObjectRequest) ProtoMessage() {} +func (*QuarantineObjectRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{18} +} + +func (m *QuarantineObjectRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_QuarantineObjectRequest.Unmarshal(m, b) +} +func (m *QuarantineObjectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_QuarantineObjectRequest.Marshal(b, m, deterministic) +} +func (m *QuarantineObjectRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuarantineObjectRequest.Merge(m, src) +} +func (m *QuarantineObjectRequest) XXX_Size() int { + return xxx_messageInfo_QuarantineObjectRequest.Size(m) +} +func (m *QuarantineObjectRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QuarantineObjectRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QuarantineObjectRequest proto.InternalMessageInfo + +func (m *QuarantineObjectRequest) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *QuarantineObjectRequest) GetRepairTool() bool { + if m != nil { + return m.RepairTool + } + return false +} + +type QuarantineObjectReply struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *QuarantineObjectReply) Reset() { *m = QuarantineObjectReply{} } +func (m *QuarantineObjectReply) String() string { return proto.CompactTextString(m) } +func (*QuarantineObjectReply) ProtoMessage() {} +func (*QuarantineObjectReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{19} +} + +func (m *QuarantineObjectReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_QuarantineObjectReply.Unmarshal(m, b) +} +func (m *QuarantineObjectReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_QuarantineObjectReply.Marshal(b, m, deterministic) +} +func (m *QuarantineObjectReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuarantineObjectReply.Merge(m, src) +} +func (m *QuarantineObjectReply) XXX_Size() int { + return xxx_messageInfo_QuarantineObjectReply.Size(m) +} +func (m *QuarantineObjectReply) XXX_DiscardUnknown() { + xxx_messageInfo_QuarantineObjectReply.DiscardUnknown(m) +} + +var xxx_messageInfo_QuarantineObjectReply proto.InternalMessageInfo + +type UnquarantineObjectRequest struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + RepairTool bool `protobuf:"varint,2,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UnquarantineObjectRequest) Reset() { *m = UnquarantineObjectRequest{} } +func (m *UnquarantineObjectRequest) String() string { return proto.CompactTextString(m) } +func (*UnquarantineObjectRequest) ProtoMessage() {} +func (*UnquarantineObjectRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{20} +} + +func (m *UnquarantineObjectRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UnquarantineObjectRequest.Unmarshal(m, b) +} +func (m *UnquarantineObjectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UnquarantineObjectRequest.Marshal(b, m, deterministic) +} +func (m *UnquarantineObjectRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnquarantineObjectRequest.Merge(m, src) +} +func (m *UnquarantineObjectRequest) XXX_Size() int { + return xxx_messageInfo_UnquarantineObjectRequest.Size(m) +} +func (m *UnquarantineObjectRequest) XXX_DiscardUnknown() { + xxx_messageInfo_UnquarantineObjectRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_UnquarantineObjectRequest proto.InternalMessageInfo + +func (m *UnquarantineObjectRequest) GetName() []byte { + if m != nil { + return m.Name + } + return nil +} + +func (m *UnquarantineObjectRequest) GetRepairTool() bool { + if m != nil { + return m.RepairTool + } + return false +} + +type UnquarantineObjectReply struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UnquarantineObjectReply) Reset() { *m = UnquarantineObjectReply{} } +func (m *UnquarantineObjectReply) String() string { return proto.CompactTextString(m) } +func (*UnquarantineObjectReply) ProtoMessage() {} +func (*UnquarantineObjectReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{21} +} + +func (m *UnquarantineObjectReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UnquarantineObjectReply.Unmarshal(m, b) +} +func (m *UnquarantineObjectReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UnquarantineObjectReply.Marshal(b, m, deterministic) +} +func (m *UnquarantineObjectReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnquarantineObjectReply.Merge(m, src) +} +func (m *UnquarantineObjectReply) XXX_Size() int { + return xxx_messageInfo_UnquarantineObjectReply.Size(m) +} +func (m *UnquarantineObjectReply) XXX_DiscardUnknown() { + xxx_messageInfo_UnquarantineObjectReply.DiscardUnknown(m) +} + +var xxx_messageInfo_UnquarantineObjectReply proto.InternalMessageInfo + +type LoadObjectsByPrefixRequest struct { + Prefix []byte `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` + RepairTool bool `protobuf:"varint,2,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LoadObjectsByPrefixRequest) Reset() { *m = LoadObjectsByPrefixRequest{} } +func (m *LoadObjectsByPrefixRequest) String() string { return proto.CompactTextString(m) } +func (*LoadObjectsByPrefixRequest) ProtoMessage() {} +func (*LoadObjectsByPrefixRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{22} +} + +func (m *LoadObjectsByPrefixRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadObjectsByPrefixRequest.Unmarshal(m, b) +} +func (m *LoadObjectsByPrefixRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadObjectsByPrefixRequest.Marshal(b, m, deterministic) +} +func (m *LoadObjectsByPrefixRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadObjectsByPrefixRequest.Merge(m, src) +} +func (m *LoadObjectsByPrefixRequest) XXX_Size() int { + return xxx_messageInfo_LoadObjectsByPrefixRequest.Size(m) +} +func (m *LoadObjectsByPrefixRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LoadObjectsByPrefixRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadObjectsByPrefixRequest proto.InternalMessageInfo + +func (m *LoadObjectsByPrefixRequest) GetPrefix() []byte { + if m != nil { + return m.Prefix + } + return nil +} + +func (m *LoadObjectsByPrefixRequest) GetRepairTool() bool { + if m != nil { + return m.RepairTool + } + return false +} + +type LoadObjectsByPrefixReply struct { + Objects []*Object `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LoadObjectsByPrefixReply) Reset() { *m = LoadObjectsByPrefixReply{} } +func (m *LoadObjectsByPrefixReply) String() string { return proto.CompactTextString(m) } +func (*LoadObjectsByPrefixReply) ProtoMessage() {} +func (*LoadObjectsByPrefixReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{23} +} + +func (m *LoadObjectsByPrefixReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadObjectsByPrefixReply.Unmarshal(m, b) +} +func (m *LoadObjectsByPrefixReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadObjectsByPrefixReply.Marshal(b, m, deterministic) +} +func (m *LoadObjectsByPrefixReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadObjectsByPrefixReply.Merge(m, src) +} +func (m *LoadObjectsByPrefixReply) XXX_Size() int { + return xxx_messageInfo_LoadObjectsByPrefixReply.Size(m) +} +func (m *LoadObjectsByPrefixReply) XXX_DiscardUnknown() { + xxx_messageInfo_LoadObjectsByPrefixReply.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadObjectsByPrefixReply proto.InternalMessageInfo + +func (m *LoadObjectsByPrefixReply) GetObjects() []*Object { + if m != nil { + return m.Objects + } + return nil +} + +type LoadObjectsByVolumeRequest struct { + Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` + Quarantined bool `protobuf:"varint,2,opt,name=quarantined,proto3" json:"quarantined,omitempty"` + PageToken []byte `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + PageSize uint32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + RepairTool bool `protobuf:"varint,5,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LoadObjectsByVolumeRequest) Reset() { *m = LoadObjectsByVolumeRequest{} } +func (m *LoadObjectsByVolumeRequest) String() string { return proto.CompactTextString(m) } +func (*LoadObjectsByVolumeRequest) ProtoMessage() {} +func (*LoadObjectsByVolumeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{24} +} + +func (m *LoadObjectsByVolumeRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadObjectsByVolumeRequest.Unmarshal(m, b) +} +func (m *LoadObjectsByVolumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadObjectsByVolumeRequest.Marshal(b, m, deterministic) +} +func (m *LoadObjectsByVolumeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadObjectsByVolumeRequest.Merge(m, src) +} +func (m *LoadObjectsByVolumeRequest) XXX_Size() int { + return xxx_messageInfo_LoadObjectsByVolumeRequest.Size(m) +} +func (m *LoadObjectsByVolumeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_LoadObjectsByVolumeRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadObjectsByVolumeRequest proto.InternalMessageInfo + +func (m *LoadObjectsByVolumeRequest) GetIndex() uint32 { + if m != nil { + return m.Index + } + return 0 +} + +func (m *LoadObjectsByVolumeRequest) GetQuarantined() bool { + if m != nil { + return m.Quarantined + } + return false +} + +func (m *LoadObjectsByVolumeRequest) GetPageToken() []byte { + if m != nil { + return m.PageToken + } + return nil +} + +func (m *LoadObjectsByVolumeRequest) GetPageSize() uint32 { + if m != nil { + return m.PageSize + } + return 0 +} + +func (m *LoadObjectsByVolumeRequest) GetRepairTool() bool { + if m != nil { + return m.RepairTool + } + return false +} + +type LoadObjectsByVolumeReply struct { + Objects []*Object `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"` + NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *LoadObjectsByVolumeReply) Reset() { *m = LoadObjectsByVolumeReply{} } +func (m *LoadObjectsByVolumeReply) String() string { return proto.CompactTextString(m) } +func (*LoadObjectsByVolumeReply) ProtoMessage() {} +func (*LoadObjectsByVolumeReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{25} +} + +func (m *LoadObjectsByVolumeReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_LoadObjectsByVolumeReply.Unmarshal(m, b) +} +func (m *LoadObjectsByVolumeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_LoadObjectsByVolumeReply.Marshal(b, m, deterministic) +} +func (m *LoadObjectsByVolumeReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadObjectsByVolumeReply.Merge(m, src) +} +func (m *LoadObjectsByVolumeReply) XXX_Size() int { + return xxx_messageInfo_LoadObjectsByVolumeReply.Size(m) +} +func (m *LoadObjectsByVolumeReply) XXX_DiscardUnknown() { + xxx_messageInfo_LoadObjectsByVolumeReply.DiscardUnknown(m) +} + +var xxx_messageInfo_LoadObjectsByVolumeReply proto.InternalMessageInfo + +func (m *LoadObjectsByVolumeReply) GetObjects() []*Object { + if m != nil { + return m.Objects + } + return nil +} + +func (m *LoadObjectsByVolumeReply) GetNextPageToken() []byte { + if m != nil { + return m.NextPageToken + } + return nil +} + +type ListPartitionsRequest struct { PartitionBits uint32 `protobuf:"varint,1,opt,name=partition_bits,json=partitionBits,proto3" json:"partition_bits,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *ListPartitionsInfo) Reset() { *m = ListPartitionsInfo{} } -func (m *ListPartitionsInfo) String() string { return proto.CompactTextString(m) } -func (*ListPartitionsInfo) ProtoMessage() {} -func (*ListPartitionsInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{0} +func (m *ListPartitionsRequest) Reset() { *m = ListPartitionsRequest{} } +func (m *ListPartitionsRequest) String() string { return proto.CompactTextString(m) } +func (*ListPartitionsRequest) ProtoMessage() {} +func (*ListPartitionsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{26} } -func (m *ListPartitionsInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListPartitionsInfo.Unmarshal(m, b) +func (m *ListPartitionsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListPartitionsRequest.Unmarshal(m, b) } -func (m *ListPartitionsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListPartitionsInfo.Marshal(b, m, deterministic) +func (m *ListPartitionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListPartitionsRequest.Marshal(b, m, deterministic) } -func (m *ListPartitionsInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListPartitionsInfo.Merge(m, src) +func (m *ListPartitionsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListPartitionsRequest.Merge(m, src) } -func (m *ListPartitionsInfo) XXX_Size() int { - return xxx_messageInfo_ListPartitionsInfo.Size(m) +func (m *ListPartitionsRequest) XXX_Size() int { + return xxx_messageInfo_ListPartitionsRequest.Size(m) } -func (m *ListPartitionsInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ListPartitionsInfo.DiscardUnknown(m) +func (m *ListPartitionsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListPartitionsRequest.DiscardUnknown(m) } -var xxx_messageInfo_ListPartitionsInfo proto.InternalMessageInfo +var xxx_messageInfo_ListPartitionsRequest proto.InternalMessageInfo -func (m *ListPartitionsInfo) GetPartitionBits() uint32 { +func (m *ListPartitionsRequest) GetPartitionBits() uint32 { if m != nil { return m.PartitionBits } return 0 } -type ListPartitionInfo struct { +type ListPartitionRequest struct { Partition uint32 `protobuf:"varint,1,opt,name=partition,proto3" json:"partition,omitempty"` PartitionBits uint32 `protobuf:"varint,2,opt,name=partition_bits,json=partitionBits,proto3" json:"partition_bits,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -128,46 +1349,46 @@ type ListPartitionInfo struct { XXX_sizecache int32 `json:"-"` } -func (m *ListPartitionInfo) Reset() { *m = ListPartitionInfo{} } -func (m *ListPartitionInfo) String() string { return proto.CompactTextString(m) } -func (*ListPartitionInfo) ProtoMessage() {} -func (*ListPartitionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{1} +func (m *ListPartitionRequest) Reset() { *m = ListPartitionRequest{} } +func (m *ListPartitionRequest) String() string { return proto.CompactTextString(m) } +func (*ListPartitionRequest) ProtoMessage() {} +func (*ListPartitionRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{27} } -func (m *ListPartitionInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListPartitionInfo.Unmarshal(m, b) +func (m *ListPartitionRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListPartitionRequest.Unmarshal(m, b) } -func (m *ListPartitionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListPartitionInfo.Marshal(b, m, deterministic) +func (m *ListPartitionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListPartitionRequest.Marshal(b, m, deterministic) } -func (m *ListPartitionInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListPartitionInfo.Merge(m, src) +func (m *ListPartitionRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListPartitionRequest.Merge(m, src) } -func (m *ListPartitionInfo) XXX_Size() int { - return xxx_messageInfo_ListPartitionInfo.Size(m) +func (m *ListPartitionRequest) XXX_Size() int { + return xxx_messageInfo_ListPartitionRequest.Size(m) } -func (m *ListPartitionInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ListPartitionInfo.DiscardUnknown(m) +func (m *ListPartitionRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListPartitionRequest.DiscardUnknown(m) } -var xxx_messageInfo_ListPartitionInfo proto.InternalMessageInfo +var xxx_messageInfo_ListPartitionRequest proto.InternalMessageInfo -func (m *ListPartitionInfo) GetPartition() uint32 { +func (m *ListPartitionRequest) GetPartition() uint32 { if m != nil { return m.Partition } return 0 } -func (m *ListPartitionInfo) GetPartitionBits() uint32 { +func (m *ListPartitionRequest) GetPartitionBits() uint32 { if m != nil { return m.PartitionBits } return 0 } -type ListSuffixInfo struct { +type ListSuffixRequest struct { Partition uint32 `protobuf:"varint,1,opt,name=partition,proto3" json:"partition,omitempty"` Suffix []byte `protobuf:"bytes,2,opt,name=suffix,proto3" json:"suffix,omitempty"` PartitionBits uint32 `protobuf:"varint,3,opt,name=partition_bits,json=partitionBits,proto3" json:"partition_bits,omitempty"` @@ -176,165 +1397,490 @@ type ListSuffixInfo struct { XXX_sizecache int32 `json:"-"` } -func (m *ListSuffixInfo) Reset() { *m = ListSuffixInfo{} } -func (m *ListSuffixInfo) String() string { return proto.CompactTextString(m) } -func (*ListSuffixInfo) ProtoMessage() {} -func (*ListSuffixInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{2} +func (m *ListSuffixRequest) Reset() { *m = ListSuffixRequest{} } +func (m *ListSuffixRequest) String() string { return proto.CompactTextString(m) } +func (*ListSuffixRequest) ProtoMessage() {} +func (*ListSuffixRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{28} } -func (m *ListSuffixInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListSuffixInfo.Unmarshal(m, b) +func (m *ListSuffixRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListSuffixRequest.Unmarshal(m, b) } -func (m *ListSuffixInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListSuffixInfo.Marshal(b, m, deterministic) +func (m *ListSuffixRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListSuffixRequest.Marshal(b, m, deterministic) } -func (m *ListSuffixInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListSuffixInfo.Merge(m, src) +func (m *ListSuffixRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListSuffixRequest.Merge(m, src) } -func (m *ListSuffixInfo) XXX_Size() int { - return xxx_messageInfo_ListSuffixInfo.Size(m) +func (m *ListSuffixRequest) XXX_Size() int { + return xxx_messageInfo_ListSuffixRequest.Size(m) } -func (m *ListSuffixInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ListSuffixInfo.DiscardUnknown(m) +func (m *ListSuffixRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListSuffixRequest.DiscardUnknown(m) } -var xxx_messageInfo_ListSuffixInfo proto.InternalMessageInfo +var xxx_messageInfo_ListSuffixRequest proto.InternalMessageInfo -func (m *ListSuffixInfo) GetPartition() uint32 { +func (m *ListSuffixRequest) GetPartition() uint32 { if m != nil { return m.Partition } return 0 } -func (m *ListSuffixInfo) GetSuffix() []byte { +func (m *ListSuffixRequest) GetSuffix() []byte { if m != nil { return m.Suffix } return nil } -func (m *ListSuffixInfo) GetPartitionBits() uint32 { +func (m *ListSuffixRequest) GetPartitionBits() uint32 { if m != nil { return m.PartitionBits } return 0 } -// Generic reply message for List* functions (listdir like) -type DirEntries struct { - Entry []string `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"` +type ListQuarantinedOHashesRequest struct { + PageToken []byte `protobuf:"bytes,1,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *DirEntries) Reset() { *m = DirEntries{} } -func (m *DirEntries) String() string { return proto.CompactTextString(m) } -func (*DirEntries) ProtoMessage() {} -func (*DirEntries) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{3} +func (m *ListQuarantinedOHashesRequest) Reset() { *m = ListQuarantinedOHashesRequest{} } +func (m *ListQuarantinedOHashesRequest) String() string { return proto.CompactTextString(m) } +func (*ListQuarantinedOHashesRequest) ProtoMessage() {} +func (*ListQuarantinedOHashesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{29} } -func (m *DirEntries) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DirEntries.Unmarshal(m, b) +func (m *ListQuarantinedOHashesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListQuarantinedOHashesRequest.Unmarshal(m, b) } -func (m *DirEntries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DirEntries.Marshal(b, m, deterministic) +func (m *ListQuarantinedOHashesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListQuarantinedOHashesRequest.Marshal(b, m, deterministic) } -func (m *DirEntries) XXX_Merge(src proto.Message) { - xxx_messageInfo_DirEntries.Merge(m, src) +func (m *ListQuarantinedOHashesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListQuarantinedOHashesRequest.Merge(m, src) } -func (m *DirEntries) XXX_Size() int { - return xxx_messageInfo_DirEntries.Size(m) +func (m *ListQuarantinedOHashesRequest) XXX_Size() int { + return xxx_messageInfo_ListQuarantinedOHashesRequest.Size(m) } -func (m *DirEntries) XXX_DiscardUnknown() { - xxx_messageInfo_DirEntries.DiscardUnknown(m) +func (m *ListQuarantinedOHashesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListQuarantinedOHashesRequest.DiscardUnknown(m) } -var xxx_messageInfo_DirEntries proto.InternalMessageInfo +var xxx_messageInfo_ListQuarantinedOHashesRequest proto.InternalMessageInfo -func (m *DirEntries) GetEntry() []string { - if m != nil { - return m.Entry - } - return nil -} - -type VolumeIndex struct { - Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - // List only quarantined files, if true - Quarantined bool `protobuf:"varint,2,opt,name=quarantined,proto3" json:"quarantined,omitempty"` - PageToken []byte `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - PageSize uint32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Is this request coming from a repair tool ? - RepairTool bool `protobuf:"varint,5,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VolumeIndex) Reset() { *m = VolumeIndex{} } -func (m *VolumeIndex) String() string { return proto.CompactTextString(m) } -func (*VolumeIndex) ProtoMessage() {} -func (*VolumeIndex) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{4} -} - -func (m *VolumeIndex) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VolumeIndex.Unmarshal(m, b) -} -func (m *VolumeIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VolumeIndex.Marshal(b, m, deterministic) -} -func (m *VolumeIndex) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeIndex.Merge(m, src) -} -func (m *VolumeIndex) XXX_Size() int { - return xxx_messageInfo_VolumeIndex.Size(m) -} -func (m *VolumeIndex) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeIndex.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeIndex proto.InternalMessageInfo - -func (m *VolumeIndex) GetIndex() uint32 { - if m != nil { - return m.Index - } - return 0 -} - -func (m *VolumeIndex) GetQuarantined() bool { - if m != nil { - return m.Quarantined - } - return false -} - -func (m *VolumeIndex) GetPageToken() []byte { +func (m *ListQuarantinedOHashesRequest) GetPageToken() []byte { if m != nil { return m.PageToken } return nil } -func (m *VolumeIndex) GetPageSize() uint32 { +func (m *ListQuarantinedOHashesRequest) GetPageSize() uint32 { if m != nil { return m.PageSize } return 0 } -func (m *VolumeIndex) GetRepairTool() bool { +type ListQuarantinedOHashesReply struct { + Objects []*QuarantinedObjectName `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"` + NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListQuarantinedOHashesReply) Reset() { *m = ListQuarantinedOHashesReply{} } +func (m *ListQuarantinedOHashesReply) String() string { return proto.CompactTextString(m) } +func (*ListQuarantinedOHashesReply) ProtoMessage() {} +func (*ListQuarantinedOHashesReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{30} +} + +func (m *ListQuarantinedOHashesReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListQuarantinedOHashesReply.Unmarshal(m, b) +} +func (m *ListQuarantinedOHashesReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListQuarantinedOHashesReply.Marshal(b, m, deterministic) +} +func (m *ListQuarantinedOHashesReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListQuarantinedOHashesReply.Merge(m, src) +} +func (m *ListQuarantinedOHashesReply) XXX_Size() int { + return xxx_messageInfo_ListQuarantinedOHashesReply.Size(m) +} +func (m *ListQuarantinedOHashesReply) XXX_DiscardUnknown() { + xxx_messageInfo_ListQuarantinedOHashesReply.DiscardUnknown(m) +} + +var xxx_messageInfo_ListQuarantinedOHashesReply proto.InternalMessageInfo + +func (m *ListQuarantinedOHashesReply) GetObjects() []*QuarantinedObjectName { + if m != nil { + return m.Objects + } + return nil +} + +func (m *ListQuarantinedOHashesReply) GetNextPageToken() []byte { + if m != nil { + return m.NextPageToken + } + return nil +} + +type ListQuarantinedOHashRequest struct { + Prefix []byte `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` + RepairTool bool `protobuf:"varint,2,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListQuarantinedOHashRequest) Reset() { *m = ListQuarantinedOHashRequest{} } +func (m *ListQuarantinedOHashRequest) String() string { return proto.CompactTextString(m) } +func (*ListQuarantinedOHashRequest) ProtoMessage() {} +func (*ListQuarantinedOHashRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{31} +} + +func (m *ListQuarantinedOHashRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListQuarantinedOHashRequest.Unmarshal(m, b) +} +func (m *ListQuarantinedOHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListQuarantinedOHashRequest.Marshal(b, m, deterministic) +} +func (m *ListQuarantinedOHashRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListQuarantinedOHashRequest.Merge(m, src) +} +func (m *ListQuarantinedOHashRequest) XXX_Size() int { + return xxx_messageInfo_ListQuarantinedOHashRequest.Size(m) +} +func (m *ListQuarantinedOHashRequest) XXX_DiscardUnknown() { + xxx_messageInfo_ListQuarantinedOHashRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_ListQuarantinedOHashRequest proto.InternalMessageInfo + +func (m *ListQuarantinedOHashRequest) GetPrefix() []byte { + if m != nil { + return m.Prefix + } + return nil +} + +func (m *ListQuarantinedOHashRequest) GetRepairTool() bool { if m != nil { return m.RepairTool } return false } +type ListQuarantinedOHashReply struct { + Objects []*Object `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ListQuarantinedOHashReply) Reset() { *m = ListQuarantinedOHashReply{} } +func (m *ListQuarantinedOHashReply) String() string { return proto.CompactTextString(m) } +func (*ListQuarantinedOHashReply) ProtoMessage() {} +func (*ListQuarantinedOHashReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{32} +} + +func (m *ListQuarantinedOHashReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ListQuarantinedOHashReply.Unmarshal(m, b) +} +func (m *ListQuarantinedOHashReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ListQuarantinedOHashReply.Marshal(b, m, deterministic) +} +func (m *ListQuarantinedOHashReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_ListQuarantinedOHashReply.Merge(m, src) +} +func (m *ListQuarantinedOHashReply) XXX_Size() int { + return xxx_messageInfo_ListQuarantinedOHashReply.Size(m) +} +func (m *ListQuarantinedOHashReply) XXX_DiscardUnknown() { + xxx_messageInfo_ListQuarantinedOHashReply.DiscardUnknown(m) +} + +var xxx_messageInfo_ListQuarantinedOHashReply proto.InternalMessageInfo + +func (m *ListQuarantinedOHashReply) GetObjects() []*Object { + if m != nil { + return m.Objects + } + return nil +} + +type GetNextOffsetRequest struct { + VolumeIndex uint32 `protobuf:"varint,1,opt,name=volume_index,json=volumeIndex,proto3" json:"volume_index,omitempty"` + RepairTool bool `protobuf:"varint,2,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetNextOffsetRequest) Reset() { *m = GetNextOffsetRequest{} } +func (m *GetNextOffsetRequest) String() string { return proto.CompactTextString(m) } +func (*GetNextOffsetRequest) ProtoMessage() {} +func (*GetNextOffsetRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{33} +} + +func (m *GetNextOffsetRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetNextOffsetRequest.Unmarshal(m, b) +} +func (m *GetNextOffsetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetNextOffsetRequest.Marshal(b, m, deterministic) +} +func (m *GetNextOffsetRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetNextOffsetRequest.Merge(m, src) +} +func (m *GetNextOffsetRequest) XXX_Size() int { + return xxx_messageInfo_GetNextOffsetRequest.Size(m) +} +func (m *GetNextOffsetRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetNextOffsetRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetNextOffsetRequest proto.InternalMessageInfo + +func (m *GetNextOffsetRequest) GetVolumeIndex() uint32 { + if m != nil { + return m.VolumeIndex + } + return 0 +} + +func (m *GetNextOffsetRequest) GetRepairTool() bool { + if m != nil { + return m.RepairTool + } + return false +} + +type GetNextOffsetReply struct { + Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetNextOffsetReply) Reset() { *m = GetNextOffsetReply{} } +func (m *GetNextOffsetReply) String() string { return proto.CompactTextString(m) } +func (*GetNextOffsetReply) ProtoMessage() {} +func (*GetNextOffsetReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{34} +} + +func (m *GetNextOffsetReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetNextOffsetReply.Unmarshal(m, b) +} +func (m *GetNextOffsetReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetNextOffsetReply.Marshal(b, m, deterministic) +} +func (m *GetNextOffsetReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetNextOffsetReply.Merge(m, src) +} +func (m *GetNextOffsetReply) XXX_Size() int { + return xxx_messageInfo_GetNextOffsetReply.Size(m) +} +func (m *GetNextOffsetReply) XXX_DiscardUnknown() { + xxx_messageInfo_GetNextOffsetReply.DiscardUnknown(m) +} + +var xxx_messageInfo_GetNextOffsetReply proto.InternalMessageInfo + +func (m *GetNextOffsetReply) GetOffset() uint64 { + if m != nil { + return m.Offset + } + return 0 +} + +type GetStatsRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetStatsRequest) Reset() { *m = GetStatsRequest{} } +func (m *GetStatsRequest) String() string { return proto.CompactTextString(m) } +func (*GetStatsRequest) ProtoMessage() {} +func (*GetStatsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{35} +} + +func (m *GetStatsRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetStatsRequest.Unmarshal(m, b) +} +func (m *GetStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetStatsRequest.Marshal(b, m, deterministic) +} +func (m *GetStatsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStatsRequest.Merge(m, src) +} +func (m *GetStatsRequest) XXX_Size() int { + return xxx_messageInfo_GetStatsRequest.Size(m) +} +func (m *GetStatsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetStatsRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetStatsRequest proto.InternalMessageInfo + +type GetStatsReply struct { + Stats map[string]uint64 `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetStatsReply) Reset() { *m = GetStatsReply{} } +func (m *GetStatsReply) String() string { return proto.CompactTextString(m) } +func (*GetStatsReply) ProtoMessage() {} +func (*GetStatsReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{36} +} + +func (m *GetStatsReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetStatsReply.Unmarshal(m, b) +} +func (m *GetStatsReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetStatsReply.Marshal(b, m, deterministic) +} +func (m *GetStatsReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStatsReply.Merge(m, src) +} +func (m *GetStatsReply) XXX_Size() int { + return xxx_messageInfo_GetStatsReply.Size(m) +} +func (m *GetStatsReply) XXX_DiscardUnknown() { + xxx_messageInfo_GetStatsReply.DiscardUnknown(m) +} + +var xxx_messageInfo_GetStatsReply proto.InternalMessageInfo + +func (m *GetStatsReply) GetStats() map[string]uint64 { + if m != nil { + return m.Stats + } + return nil +} + +type SetKvStateReply struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SetKvStateReply) Reset() { *m = SetKvStateReply{} } +func (m *SetKvStateReply) String() string { return proto.CompactTextString(m) } +func (*SetKvStateReply) ProtoMessage() {} +func (*SetKvStateReply) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{37} +} + +func (m *SetKvStateReply) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetKvStateReply.Unmarshal(m, b) +} +func (m *SetKvStateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetKvStateReply.Marshal(b, m, deterministic) +} +func (m *SetKvStateReply) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetKvStateReply.Merge(m, src) +} +func (m *SetKvStateReply) XXX_Size() int { + return xxx_messageInfo_SetKvStateReply.Size(m) +} +func (m *SetKvStateReply) XXX_DiscardUnknown() { + xxx_messageInfo_SetKvStateReply.DiscardUnknown(m) +} + +var xxx_messageInfo_SetKvStateReply proto.InternalMessageInfo + +type GetKvStateRequest struct { + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetKvStateRequest) Reset() { *m = GetKvStateRequest{} } +func (m *GetKvStateRequest) String() string { return proto.CompactTextString(m) } +func (*GetKvStateRequest) ProtoMessage() {} +func (*GetKvStateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{38} +} + +func (m *GetKvStateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetKvStateRequest.Unmarshal(m, b) +} +func (m *GetKvStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetKvStateRequest.Marshal(b, m, deterministic) +} +func (m *GetKvStateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetKvStateRequest.Merge(m, src) +} +func (m *GetKvStateRequest) XXX_Size() int { + return xxx_messageInfo_GetKvStateRequest.Size(m) +} +func (m *GetKvStateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetKvStateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetKvStateRequest proto.InternalMessageInfo + +type KvState struct { + IsClean bool `protobuf:"varint,1,opt,name=isClean,proto3" json:"isClean,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *KvState) Reset() { *m = KvState{} } +func (m *KvState) String() string { return proto.CompactTextString(m) } +func (*KvState) ProtoMessage() {} +func (*KvState) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{39} +} + +func (m *KvState) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_KvState.Unmarshal(m, b) +} +func (m *KvState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_KvState.Marshal(b, m, deterministic) +} +func (m *KvState) XXX_Merge(src proto.Message) { + xxx_messageInfo_KvState.Merge(m, src) +} +func (m *KvState) XXX_Size() int { + return xxx_messageInfo_KvState.Size(m) +} +func (m *KvState) XXX_DiscardUnknown() { + xxx_messageInfo_KvState.DiscardUnknown(m) +} + +var xxx_messageInfo_KvState proto.InternalMessageInfo + +func (m *KvState) GetIsClean() bool { + if m != nil { + return m.IsClean + } + return false +} + +// Generic messages type Volume struct { VolumeIndex uint32 `protobuf:"varint,1,opt,name=volume_index,json=volumeIndex,proto3" json:"volume_index,omitempty"` VolumeType VolumeType `protobuf:"varint,2,opt,name=volume_type,json=volumeType,proto3,enum=filemgr.VolumeType" json:"volume_type,omitempty"` @@ -350,7 +1896,7 @@ func (m *Volume) Reset() { *m = Volume{} } func (m *Volume) String() string { return proto.CompactTextString(m) } func (*Volume) ProtoMessage() {} func (*Volume) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{5} + return fileDescriptor_1fcd0776e05e82a6, []int{40} } func (m *Volume) XXX_Unmarshal(b []byte) error { @@ -406,809 +1952,9 @@ func (m *Volume) GetNextOffset() uint64 { return 0 } -// Similar to volume but we don't want to require the -// partition -type GetNextOffsetInfo struct { - VolumeIndex uint32 `protobuf:"varint,1,opt,name=volume_index,json=volumeIndex,proto3" json:"volume_index,omitempty"` - VolumeType uint32 `protobuf:"varint,2,opt,name=volume_type,json=volumeType,proto3" json:"volume_type,omitempty"` - VolumeState uint32 `protobuf:"varint,3,opt,name=volume_state,json=volumeState,proto3" json:"volume_state,omitempty"` - // Is this request coming from a repair tool ? - RepairTool bool `protobuf:"varint,4,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetNextOffsetInfo) Reset() { *m = GetNextOffsetInfo{} } -func (m *GetNextOffsetInfo) String() string { return proto.CompactTextString(m) } -func (*GetNextOffsetInfo) ProtoMessage() {} -func (*GetNextOffsetInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{6} -} - -func (m *GetNextOffsetInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetNextOffsetInfo.Unmarshal(m, b) -} -func (m *GetNextOffsetInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetNextOffsetInfo.Marshal(b, m, deterministic) -} -func (m *GetNextOffsetInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetNextOffsetInfo.Merge(m, src) -} -func (m *GetNextOffsetInfo) XXX_Size() int { - return xxx_messageInfo_GetNextOffsetInfo.Size(m) -} -func (m *GetNextOffsetInfo) XXX_DiscardUnknown() { - xxx_messageInfo_GetNextOffsetInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_GetNextOffsetInfo proto.InternalMessageInfo - -func (m *GetNextOffsetInfo) GetVolumeIndex() uint32 { - if m != nil { - return m.VolumeIndex - } - return 0 -} - -func (m *GetNextOffsetInfo) GetVolumeType() uint32 { - if m != nil { - return m.VolumeType - } - return 0 -} - -func (m *GetNextOffsetInfo) GetVolumeState() uint32 { - if m != nil { - return m.VolumeState - } - return 0 -} - -func (m *GetNextOffsetInfo) GetRepairTool() bool { - if m != nil { - return m.RepairTool - } - return false -} - -type ListVolumesInfo struct { - Partition uint32 `protobuf:"varint,1,opt,name=partition,proto3" json:"partition,omitempty"` - Type VolumeType `protobuf:"varint,2,opt,name=type,proto3,enum=filemgr.VolumeType" json:"type,omitempty"` - // Is this request coming from a repair tool ? - RepairTool bool `protobuf:"varint,3,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListVolumesInfo) Reset() { *m = ListVolumesInfo{} } -func (m *ListVolumesInfo) String() string { return proto.CompactTextString(m) } -func (*ListVolumesInfo) ProtoMessage() {} -func (*ListVolumesInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{7} -} - -func (m *ListVolumesInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListVolumesInfo.Unmarshal(m, b) -} -func (m *ListVolumesInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListVolumesInfo.Marshal(b, m, deterministic) -} -func (m *ListVolumesInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListVolumesInfo.Merge(m, src) -} -func (m *ListVolumesInfo) XXX_Size() int { - return xxx_messageInfo_ListVolumesInfo.Size(m) -} -func (m *ListVolumesInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ListVolumesInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_ListVolumesInfo proto.InternalMessageInfo - -func (m *ListVolumesInfo) GetPartition() uint32 { - if m != nil { - return m.Partition - } - return 0 -} - -func (m *ListVolumesInfo) GetType() VolumeType { - if m != nil { - return m.Type - } - return VolumeType_VOLUME_DEFAULT -} - -func (m *ListVolumesInfo) GetRepairTool() bool { - if m != nil { - return m.RepairTool - } - return false -} - -type Volumes struct { - Volumes []*Volume `protobuf:"bytes,1,rep,name=volumes,proto3" json:"volumes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Volumes) Reset() { *m = Volumes{} } -func (m *Volumes) String() string { return proto.CompactTextString(m) } -func (*Volumes) ProtoMessage() {} -func (*Volumes) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{8} -} - -func (m *Volumes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Volumes.Unmarshal(m, b) -} -func (m *Volumes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Volumes.Marshal(b, m, deterministic) -} -func (m *Volumes) XXX_Merge(src proto.Message) { - xxx_messageInfo_Volumes.Merge(m, src) -} -func (m *Volumes) XXX_Size() int { - return xxx_messageInfo_Volumes.Size(m) -} -func (m *Volumes) XXX_DiscardUnknown() { - xxx_messageInfo_Volumes.DiscardUnknown(m) -} - -var xxx_messageInfo_Volumes proto.InternalMessageInfo - -func (m *Volumes) GetVolumes() []*Volume { - if m != nil { - return m.Volumes - } - return nil -} - -// The response message to GetNextOffset -type VolumeNextOffset struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VolumeNextOffset) Reset() { *m = VolumeNextOffset{} } -func (m *VolumeNextOffset) String() string { return proto.CompactTextString(m) } -func (*VolumeNextOffset) ProtoMessage() {} -func (*VolumeNextOffset) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{9} -} - -func (m *VolumeNextOffset) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VolumeNextOffset.Unmarshal(m, b) -} -func (m *VolumeNextOffset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VolumeNextOffset.Marshal(b, m, deterministic) -} -func (m *VolumeNextOffset) XXX_Merge(src proto.Message) { - xxx_messageInfo_VolumeNextOffset.Merge(m, src) -} -func (m *VolumeNextOffset) XXX_Size() int { - return xxx_messageInfo_VolumeNextOffset.Size(m) -} -func (m *VolumeNextOffset) XXX_DiscardUnknown() { - xxx_messageInfo_VolumeNextOffset.DiscardUnknown(m) -} - -var xxx_messageInfo_VolumeNextOffset proto.InternalMessageInfo - -func (m *VolumeNextOffset) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -// The request message for a new volume -type NewVolumeInfo struct { - // Swift partition - Partition uint32 `protobuf:"varint,1,opt,name=partition,proto3" json:"partition,omitempty"` - Type VolumeType `protobuf:"varint,2,opt,name=type,proto3,enum=filemgr.VolumeType" json:"type,omitempty"` - // Index number of the volume. It is up to the client to map this to an actual filename. - VolumeIndex uint32 `protobuf:"varint,3,opt,name=volume_index,json=volumeIndex,proto3" json:"volume_index,omitempty"` - // Next available offset to use in the volume. - Offset uint64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` - State VolumeState `protobuf:"varint,5,opt,name=state,proto3,enum=filemgr.VolumeState" json:"state,omitempty"` - // Is this request coming from a repair tool ? - RepairTool bool `protobuf:"varint,6,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NewVolumeInfo) Reset() { *m = NewVolumeInfo{} } -func (m *NewVolumeInfo) String() string { return proto.CompactTextString(m) } -func (*NewVolumeInfo) ProtoMessage() {} -func (*NewVolumeInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{10} -} - -func (m *NewVolumeInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NewVolumeInfo.Unmarshal(m, b) -} -func (m *NewVolumeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NewVolumeInfo.Marshal(b, m, deterministic) -} -func (m *NewVolumeInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_NewVolumeInfo.Merge(m, src) -} -func (m *NewVolumeInfo) XXX_Size() int { - return xxx_messageInfo_NewVolumeInfo.Size(m) -} -func (m *NewVolumeInfo) XXX_DiscardUnknown() { - xxx_messageInfo_NewVolumeInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_NewVolumeInfo proto.InternalMessageInfo - -func (m *NewVolumeInfo) GetPartition() uint32 { - if m != nil { - return m.Partition - } - return 0 -} - -func (m *NewVolumeInfo) GetType() VolumeType { - if m != nil { - return m.Type - } - return VolumeType_VOLUME_DEFAULT -} - -func (m *NewVolumeInfo) GetVolumeIndex() uint32 { - if m != nil { - return m.VolumeIndex - } - return 0 -} - -func (m *NewVolumeInfo) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *NewVolumeInfo) GetState() VolumeState { - if m != nil { - return m.State - } - return VolumeState_STATE_RW -} - -func (m *NewVolumeInfo) GetRepairTool() bool { - if m != nil { - return m.RepairTool - } - return false -} - -type NewVolumeState struct { - VolumeIndex uint32 `protobuf:"varint,1,opt,name=volume_index,json=volumeIndex,proto3" json:"volume_index,omitempty"` - State VolumeState `protobuf:"varint,2,opt,name=state,proto3,enum=filemgr.VolumeState" json:"state,omitempty"` - // Is this request coming from a repair tool ? - RepairTool bool `protobuf:"varint,3,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NewVolumeState) Reset() { *m = NewVolumeState{} } -func (m *NewVolumeState) String() string { return proto.CompactTextString(m) } -func (*NewVolumeState) ProtoMessage() {} -func (*NewVolumeState) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{11} -} - -func (m *NewVolumeState) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NewVolumeState.Unmarshal(m, b) -} -func (m *NewVolumeState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NewVolumeState.Marshal(b, m, deterministic) -} -func (m *NewVolumeState) XXX_Merge(src proto.Message) { - xxx_messageInfo_NewVolumeState.Merge(m, src) -} -func (m *NewVolumeState) XXX_Size() int { - return xxx_messageInfo_NewVolumeState.Size(m) -} -func (m *NewVolumeState) XXX_DiscardUnknown() { - xxx_messageInfo_NewVolumeState.DiscardUnknown(m) -} - -var xxx_messageInfo_NewVolumeState proto.InternalMessageInfo - -func (m *NewVolumeState) GetVolumeIndex() uint32 { - if m != nil { - return m.VolumeIndex - } - return 0 -} - -func (m *NewVolumeState) GetState() VolumeState { - if m != nil { - return m.State - } - return VolumeState_STATE_RW -} - -func (m *NewVolumeState) GetRepairTool() bool { - if m != nil { - return m.RepairTool - } - return false -} - -// The response message for a new volume -type NewVolumeReply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NewVolumeReply) Reset() { *m = NewVolumeReply{} } -func (m *NewVolumeReply) String() string { return proto.CompactTextString(m) } -func (*NewVolumeReply) ProtoMessage() {} -func (*NewVolumeReply) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{12} -} - -func (m *NewVolumeReply) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NewVolumeReply.Unmarshal(m, b) -} -func (m *NewVolumeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NewVolumeReply.Marshal(b, m, deterministic) -} -func (m *NewVolumeReply) XXX_Merge(src proto.Message) { - xxx_messageInfo_NewVolumeReply.Merge(m, src) -} -func (m *NewVolumeReply) XXX_Size() int { - return xxx_messageInfo_NewVolumeReply.Size(m) -} -func (m *NewVolumeReply) XXX_DiscardUnknown() { - xxx_messageInfo_NewVolumeReply.DiscardUnknown(m) -} - -var xxx_messageInfo_NewVolumeReply proto.InternalMessageInfo - -type DelObjectReply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DelObjectReply) Reset() { *m = DelObjectReply{} } -func (m *DelObjectReply) String() string { return proto.CompactTextString(m) } -func (*DelObjectReply) ProtoMessage() {} -func (*DelObjectReply) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{13} -} - -func (m *DelObjectReply) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DelObjectReply.Unmarshal(m, b) -} -func (m *DelObjectReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DelObjectReply.Marshal(b, m, deterministic) -} -func (m *DelObjectReply) XXX_Merge(src proto.Message) { - xxx_messageInfo_DelObjectReply.Merge(m, src) -} -func (m *DelObjectReply) XXX_Size() int { - return xxx_messageInfo_DelObjectReply.Size(m) -} -func (m *DelObjectReply) XXX_DiscardUnknown() { - xxx_messageInfo_DelObjectReply.DiscardUnknown(m) -} - -var xxx_messageInfo_DelObjectReply proto.InternalMessageInfo - -type RenameReply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RenameReply) Reset() { *m = RenameReply{} } -func (m *RenameReply) String() string { return proto.CompactTextString(m) } -func (*RenameReply) ProtoMessage() {} -func (*RenameReply) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{14} -} - -func (m *RenameReply) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RenameReply.Unmarshal(m, b) -} -func (m *RenameReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RenameReply.Marshal(b, m, deterministic) -} -func (m *RenameReply) XXX_Merge(src proto.Message) { - xxx_messageInfo_RenameReply.Merge(m, src) -} -func (m *RenameReply) XXX_Size() int { - return xxx_messageInfo_RenameReply.Size(m) -} -func (m *RenameReply) XXX_DiscardUnknown() { - xxx_messageInfo_RenameReply.DiscardUnknown(m) -} - -var xxx_messageInfo_RenameReply proto.InternalMessageInfo - -// The request message for a new object -type NewObjectInfo struct { - // Object "name". Name made of (md5, timestamp, etc..) - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Index number of the volume. - VolumeIndex uint32 `protobuf:"varint,2,opt,name=volume_index,json=volumeIndex,proto3" json:"volume_index,omitempty"` - // Start offset of the object in the volume. - Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` - // Next available offset to use in the volume. - NextOffset uint64 `protobuf:"varint,4,opt,name=next_offset,json=nextOffset,proto3" json:"next_offset,omitempty"` - // Is this request coming from a repair tool ? - RepairTool bool `protobuf:"varint,5,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NewObjectInfo) Reset() { *m = NewObjectInfo{} } -func (m *NewObjectInfo) String() string { return proto.CompactTextString(m) } -func (*NewObjectInfo) ProtoMessage() {} -func (*NewObjectInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{15} -} - -func (m *NewObjectInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NewObjectInfo.Unmarshal(m, b) -} -func (m *NewObjectInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NewObjectInfo.Marshal(b, m, deterministic) -} -func (m *NewObjectInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_NewObjectInfo.Merge(m, src) -} -func (m *NewObjectInfo) XXX_Size() int { - return xxx_messageInfo_NewObjectInfo.Size(m) -} -func (m *NewObjectInfo) XXX_DiscardUnknown() { - xxx_messageInfo_NewObjectInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_NewObjectInfo proto.InternalMessageInfo - -func (m *NewObjectInfo) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *NewObjectInfo) GetVolumeIndex() uint32 { - if m != nil { - return m.VolumeIndex - } - return 0 -} - -func (m *NewObjectInfo) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *NewObjectInfo) GetNextOffset() uint64 { - if m != nil { - return m.NextOffset - } - return 0 -} - -func (m *NewObjectInfo) GetRepairTool() bool { - if m != nil { - return m.RepairTool - } - return false -} - -// The response message for a new object -// Currently empty, but we may want to return something in the future -type NewObjectReply struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NewObjectReply) Reset() { *m = NewObjectReply{} } -func (m *NewObjectReply) String() string { return proto.CompactTextString(m) } -func (*NewObjectReply) ProtoMessage() {} -func (*NewObjectReply) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{16} -} - -func (m *NewObjectReply) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NewObjectReply.Unmarshal(m, b) -} -func (m *NewObjectReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NewObjectReply.Marshal(b, m, deterministic) -} -func (m *NewObjectReply) XXX_Merge(src proto.Message) { - xxx_messageInfo_NewObjectReply.Merge(m, src) -} -func (m *NewObjectReply) XXX_Size() int { - return xxx_messageInfo_NewObjectReply.Size(m) -} -func (m *NewObjectReply) XXX_DiscardUnknown() { - xxx_messageInfo_NewObjectReply.DiscardUnknown(m) -} - -var xxx_messageInfo_NewObjectReply proto.InternalMessageInfo - -type QuarantinedObjectName struct { - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *QuarantinedObjectName) Reset() { *m = QuarantinedObjectName{} } -func (m *QuarantinedObjectName) String() string { return proto.CompactTextString(m) } -func (*QuarantinedObjectName) ProtoMessage() {} -func (*QuarantinedObjectName) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{17} -} - -func (m *QuarantinedObjectName) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_QuarantinedObjectName.Unmarshal(m, b) -} -func (m *QuarantinedObjectName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_QuarantinedObjectName.Marshal(b, m, deterministic) -} -func (m *QuarantinedObjectName) XXX_Merge(src proto.Message) { - xxx_messageInfo_QuarantinedObjectName.Merge(m, src) -} -func (m *QuarantinedObjectName) XXX_Size() int { - return xxx_messageInfo_QuarantinedObjectName.Size(m) -} -func (m *QuarantinedObjectName) XXX_DiscardUnknown() { - xxx_messageInfo_QuarantinedObjectName.DiscardUnknown(m) -} - -var xxx_messageInfo_QuarantinedObjectName proto.InternalMessageInfo - -func (m *QuarantinedObjectName) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -type QuarantinedObjectNames struct { - Objects []*QuarantinedObjectName `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"` - NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *QuarantinedObjectNames) Reset() { *m = QuarantinedObjectNames{} } -func (m *QuarantinedObjectNames) String() string { return proto.CompactTextString(m) } -func (*QuarantinedObjectNames) ProtoMessage() {} -func (*QuarantinedObjectNames) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{18} -} - -func (m *QuarantinedObjectNames) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_QuarantinedObjectNames.Unmarshal(m, b) -} -func (m *QuarantinedObjectNames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_QuarantinedObjectNames.Marshal(b, m, deterministic) -} -func (m *QuarantinedObjectNames) XXX_Merge(src proto.Message) { - xxx_messageInfo_QuarantinedObjectNames.Merge(m, src) -} -func (m *QuarantinedObjectNames) XXX_Size() int { - return xxx_messageInfo_QuarantinedObjectNames.Size(m) -} -func (m *QuarantinedObjectNames) XXX_DiscardUnknown() { - xxx_messageInfo_QuarantinedObjectNames.DiscardUnknown(m) -} - -var xxx_messageInfo_QuarantinedObjectNames proto.InternalMessageInfo - -func (m *QuarantinedObjectNames) GetObjects() []*QuarantinedObjectName { - if m != nil { - return m.Objects - } - return nil -} - -func (m *QuarantinedObjectNames) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken - } - return nil -} - -type ObjectName struct { - // name of the object. - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Is this request coming from a repair tool ? - RepairTool bool `protobuf:"varint,2,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ObjectName) Reset() { *m = ObjectName{} } -func (m *ObjectName) String() string { return proto.CompactTextString(m) } -func (*ObjectName) ProtoMessage() {} -func (*ObjectName) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{19} -} - -func (m *ObjectName) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ObjectName.Unmarshal(m, b) -} -func (m *ObjectName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ObjectName.Marshal(b, m, deterministic) -} -func (m *ObjectName) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectName.Merge(m, src) -} -func (m *ObjectName) XXX_Size() int { - return xxx_messageInfo_ObjectName.Size(m) -} -func (m *ObjectName) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectName.DiscardUnknown(m) -} - -var xxx_messageInfo_ObjectName proto.InternalMessageInfo - -func (m *ObjectName) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *ObjectName) GetRepairTool() bool { - if m != nil { - return m.RepairTool - } - return false -} - -type LoadObjectInfo struct { - // name of the object. - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Is it quarantined ? - IsQuarantined bool `protobuf:"varint,2,opt,name=is_quarantined,json=isQuarantined,proto3" json:"is_quarantined,omitempty"` - // Is this request coming from a repair tool ? - RepairTool bool `protobuf:"varint,5,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LoadObjectInfo) Reset() { *m = LoadObjectInfo{} } -func (m *LoadObjectInfo) String() string { return proto.CompactTextString(m) } -func (*LoadObjectInfo) ProtoMessage() {} -func (*LoadObjectInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{20} -} - -func (m *LoadObjectInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoadObjectInfo.Unmarshal(m, b) -} -func (m *LoadObjectInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoadObjectInfo.Marshal(b, m, deterministic) -} -func (m *LoadObjectInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadObjectInfo.Merge(m, src) -} -func (m *LoadObjectInfo) XXX_Size() int { - return xxx_messageInfo_LoadObjectInfo.Size(m) -} -func (m *LoadObjectInfo) XXX_DiscardUnknown() { - xxx_messageInfo_LoadObjectInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_LoadObjectInfo proto.InternalMessageInfo - -func (m *LoadObjectInfo) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *LoadObjectInfo) GetIsQuarantined() bool { - if m != nil { - return m.IsQuarantined - } - return false -} - -func (m *LoadObjectInfo) GetRepairTool() bool { - if m != nil { - return m.RepairTool - } - return false -} - -// The request message to rename an object -type RenameInfo struct { - // name of the object. - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // new name of the object - NewName []byte `protobuf:"bytes,2,opt,name=new_name,json=newName,proto3" json:"new_name,omitempty"` - // Is this request coming from a repair tool ? - RepairTool bool `protobuf:"varint,3,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RenameInfo) Reset() { *m = RenameInfo{} } -func (m *RenameInfo) String() string { return proto.CompactTextString(m) } -func (*RenameInfo) ProtoMessage() {} -func (*RenameInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{21} -} - -func (m *RenameInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RenameInfo.Unmarshal(m, b) -} -func (m *RenameInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RenameInfo.Marshal(b, m, deterministic) -} -func (m *RenameInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_RenameInfo.Merge(m, src) -} -func (m *RenameInfo) XXX_Size() int { - return xxx_messageInfo_RenameInfo.Size(m) -} -func (m *RenameInfo) XXX_DiscardUnknown() { - xxx_messageInfo_RenameInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_RenameInfo proto.InternalMessageInfo - -func (m *RenameInfo) GetName() []byte { - if m != nil { - return m.Name - } - return nil -} - -func (m *RenameInfo) GetNewName() []byte { - if m != nil { - return m.NewName - } - return nil -} - -func (m *RenameInfo) GetRepairTool() bool { - if m != nil { - return m.RepairTool - } - return false -} - type Object struct { - // name of the object. - Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Index number of the volume. - VolumeIndex uint32 `protobuf:"varint,2,opt,name=volume_index,json=volumeIndex,proto3" json:"volume_index,omitempty"` - // Start offset of the object in the volume. + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + VolumeIndex uint32 `protobuf:"varint,2,opt,name=volume_index,json=volumeIndex,proto3" json:"volume_index,omitempty"` Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -1219,7 +1965,7 @@ func (m *Object) Reset() { *m = Object{} } func (m *Object) String() string { return proto.CompactTextString(m) } func (*Object) ProtoMessage() {} func (*Object) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{22} + return fileDescriptor_1fcd0776e05e82a6, []int{41} } func (m *Object) XXX_Unmarshal(b []byte) error { @@ -1261,420 +2007,133 @@ func (m *Object) GetOffset() uint64 { return 0 } -type LoadObjectsResponse struct { - Objects []*Object `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"` - NextPageToken []byte `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LoadObjectsResponse) Reset() { *m = LoadObjectsResponse{} } -func (m *LoadObjectsResponse) String() string { return proto.CompactTextString(m) } -func (*LoadObjectsResponse) ProtoMessage() {} -func (*LoadObjectsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{23} -} - -func (m *LoadObjectsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoadObjectsResponse.Unmarshal(m, b) -} -func (m *LoadObjectsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoadObjectsResponse.Marshal(b, m, deterministic) -} -func (m *LoadObjectsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadObjectsResponse.Merge(m, src) -} -func (m *LoadObjectsResponse) XXX_Size() int { - return xxx_messageInfo_LoadObjectsResponse.Size(m) -} -func (m *LoadObjectsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LoadObjectsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_LoadObjectsResponse proto.InternalMessageInfo - -func (m *LoadObjectsResponse) GetObjects() []*Object { - if m != nil { - return m.Objects - } - return nil -} - -func (m *LoadObjectsResponse) GetNextPageToken() []byte { - if m != nil { - return m.NextPageToken - } - return nil -} - -type ObjectPrefix struct { - Prefix []byte `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` - // Is this request coming from a repair tool ? - RepairTool bool `protobuf:"varint,2,opt,name=repair_tool,json=repairTool,proto3" json:"repair_tool,omitempty"` +type QuarantinedObjectName struct { + Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *ObjectPrefix) Reset() { *m = ObjectPrefix{} } -func (m *ObjectPrefix) String() string { return proto.CompactTextString(m) } -func (*ObjectPrefix) ProtoMessage() {} -func (*ObjectPrefix) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{24} +func (m *QuarantinedObjectName) Reset() { *m = QuarantinedObjectName{} } +func (m *QuarantinedObjectName) String() string { return proto.CompactTextString(m) } +func (*QuarantinedObjectName) ProtoMessage() {} +func (*QuarantinedObjectName) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{42} } -func (m *ObjectPrefix) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ObjectPrefix.Unmarshal(m, b) +func (m *QuarantinedObjectName) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_QuarantinedObjectName.Unmarshal(m, b) } -func (m *ObjectPrefix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ObjectPrefix.Marshal(b, m, deterministic) +func (m *QuarantinedObjectName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_QuarantinedObjectName.Marshal(b, m, deterministic) } -func (m *ObjectPrefix) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectPrefix.Merge(m, src) +func (m *QuarantinedObjectName) XXX_Merge(src proto.Message) { + xxx_messageInfo_QuarantinedObjectName.Merge(m, src) } -func (m *ObjectPrefix) XXX_Size() int { - return xxx_messageInfo_ObjectPrefix.Size(m) +func (m *QuarantinedObjectName) XXX_Size() int { + return xxx_messageInfo_QuarantinedObjectName.Size(m) } -func (m *ObjectPrefix) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectPrefix.DiscardUnknown(m) +func (m *QuarantinedObjectName) XXX_DiscardUnknown() { + xxx_messageInfo_QuarantinedObjectName.DiscardUnknown(m) } -var xxx_messageInfo_ObjectPrefix proto.InternalMessageInfo +var xxx_messageInfo_QuarantinedObjectName proto.InternalMessageInfo -func (m *ObjectPrefix) GetPrefix() []byte { +func (m *QuarantinedObjectName) GetName() []byte { if m != nil { - return m.Prefix + return m.Name } return nil } -func (m *ObjectPrefix) GetRepairTool() bool { - if m != nil { - return m.RepairTool - } - return false -} - -type Empty struct { +// For listdir() like functions +type DirEntries struct { + Entry []string `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *Empty) Reset() { *m = Empty{} } -func (m *Empty) String() string { return proto.CompactTextString(m) } -func (*Empty) ProtoMessage() {} -func (*Empty) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{25} +func (m *DirEntries) Reset() { *m = DirEntries{} } +func (m *DirEntries) String() string { return proto.CompactTextString(m) } +func (*DirEntries) ProtoMessage() {} +func (*DirEntries) Descriptor() ([]byte, []int) { + return fileDescriptor_1fcd0776e05e82a6, []int{43} } -func (m *Empty) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Empty.Unmarshal(m, b) +func (m *DirEntries) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DirEntries.Unmarshal(m, b) } -func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Empty.Marshal(b, m, deterministic) +func (m *DirEntries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DirEntries.Marshal(b, m, deterministic) } -func (m *Empty) XXX_Merge(src proto.Message) { - xxx_messageInfo_Empty.Merge(m, src) +func (m *DirEntries) XXX_Merge(src proto.Message) { + xxx_messageInfo_DirEntries.Merge(m, src) } -func (m *Empty) XXX_Size() int { - return xxx_messageInfo_Empty.Size(m) +func (m *DirEntries) XXX_Size() int { + return xxx_messageInfo_DirEntries.Size(m) } -func (m *Empty) XXX_DiscardUnknown() { - xxx_messageInfo_Empty.DiscardUnknown(m) +func (m *DirEntries) XXX_DiscardUnknown() { + xxx_messageInfo_DirEntries.DiscardUnknown(m) } -var xxx_messageInfo_Empty proto.InternalMessageInfo +var xxx_messageInfo_DirEntries proto.InternalMessageInfo -type GetStatsInfo struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetStatsInfo) Reset() { *m = GetStatsInfo{} } -func (m *GetStatsInfo) String() string { return proto.CompactTextString(m) } -func (*GetStatsInfo) ProtoMessage() {} -func (*GetStatsInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{26} -} - -func (m *GetStatsInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetStatsInfo.Unmarshal(m, b) -} -func (m *GetStatsInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetStatsInfo.Marshal(b, m, deterministic) -} -func (m *GetStatsInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetStatsInfo.Merge(m, src) -} -func (m *GetStatsInfo) XXX_Size() int { - return xxx_messageInfo_GetStatsInfo.Size(m) -} -func (m *GetStatsInfo) XXX_DiscardUnknown() { - xxx_messageInfo_GetStatsInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_GetStatsInfo proto.InternalMessageInfo - -type PartitionContent struct { - FileEntries []*FullPathEntry `protobuf:"bytes,1,rep,name=file_entries,json=fileEntries,proto3" json:"file_entries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PartitionContent) Reset() { *m = PartitionContent{} } -func (m *PartitionContent) String() string { return proto.CompactTextString(m) } -func (*PartitionContent) ProtoMessage() {} -func (*PartitionContent) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{27} -} - -func (m *PartitionContent) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PartitionContent.Unmarshal(m, b) -} -func (m *PartitionContent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PartitionContent.Marshal(b, m, deterministic) -} -func (m *PartitionContent) XXX_Merge(src proto.Message) { - xxx_messageInfo_PartitionContent.Merge(m, src) -} -func (m *PartitionContent) XXX_Size() int { - return xxx_messageInfo_PartitionContent.Size(m) -} -func (m *PartitionContent) XXX_DiscardUnknown() { - xxx_messageInfo_PartitionContent.DiscardUnknown(m) -} - -var xxx_messageInfo_PartitionContent proto.InternalMessageInfo - -func (m *PartitionContent) GetFileEntries() []*FullPathEntry { +func (m *DirEntries) GetEntry() []string { if m != nil { - return m.FileEntries + return m.Entry } return nil } -type FullPathEntry struct { - // We could add the partition if needed - Suffix []byte `protobuf:"bytes,1,opt,name=suffix,proto3" json:"suffix,omitempty"` - Ohash []byte `protobuf:"bytes,2,opt,name=ohash,proto3" json:"ohash,omitempty"` - Filename []byte `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FullPathEntry) Reset() { *m = FullPathEntry{} } -func (m *FullPathEntry) String() string { return proto.CompactTextString(m) } -func (*FullPathEntry) ProtoMessage() {} -func (*FullPathEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{28} -} - -func (m *FullPathEntry) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FullPathEntry.Unmarshal(m, b) -} -func (m *FullPathEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FullPathEntry.Marshal(b, m, deterministic) -} -func (m *FullPathEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_FullPathEntry.Merge(m, src) -} -func (m *FullPathEntry) XXX_Size() int { - return xxx_messageInfo_FullPathEntry.Size(m) -} -func (m *FullPathEntry) XXX_DiscardUnknown() { - xxx_messageInfo_FullPathEntry.DiscardUnknown(m) -} - -var xxx_messageInfo_FullPathEntry proto.InternalMessageInfo - -func (m *FullPathEntry) GetSuffix() []byte { - if m != nil { - return m.Suffix - } - return nil -} - -func (m *FullPathEntry) GetOhash() []byte { - if m != nil { - return m.Ohash - } - return nil -} - -func (m *FullPathEntry) GetFilename() []byte { - if m != nil { - return m.Filename - } - return nil -} - -type KvState struct { - IsClean bool `protobuf:"varint,1,opt,name=isClean,proto3" json:"isClean,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KvState) Reset() { *m = KvState{} } -func (m *KvState) String() string { return proto.CompactTextString(m) } -func (*KvState) ProtoMessage() {} -func (*KvState) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{29} -} - -func (m *KvState) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KvState.Unmarshal(m, b) -} -func (m *KvState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KvState.Marshal(b, m, deterministic) -} -func (m *KvState) XXX_Merge(src proto.Message) { - xxx_messageInfo_KvState.Merge(m, src) -} -func (m *KvState) XXX_Size() int { - return xxx_messageInfo_KvState.Size(m) -} -func (m *KvState) XXX_DiscardUnknown() { - xxx_messageInfo_KvState.DiscardUnknown(m) -} - -var xxx_messageInfo_KvState proto.InternalMessageInfo - -func (m *KvState) GetIsClean() bool { - if m != nil { - return m.IsClean - } - return false -} - -// KV stats -type KVStats struct { - Stats map[string]uint64 `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KVStats) Reset() { *m = KVStats{} } -func (m *KVStats) String() string { return proto.CompactTextString(m) } -func (*KVStats) ProtoMessage() {} -func (*KVStats) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{30} -} - -func (m *KVStats) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KVStats.Unmarshal(m, b) -} -func (m *KVStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KVStats.Marshal(b, m, deterministic) -} -func (m *KVStats) XXX_Merge(src proto.Message) { - xxx_messageInfo_KVStats.Merge(m, src) -} -func (m *KVStats) XXX_Size() int { - return xxx_messageInfo_KVStats.Size(m) -} -func (m *KVStats) XXX_DiscardUnknown() { - xxx_messageInfo_KVStats.DiscardUnknown(m) -} - -var xxx_messageInfo_KVStats proto.InternalMessageInfo - -func (m *KVStats) GetStats() map[string]uint64 { - if m != nil { - return m.Stats - } - return nil -} - -type ListQuarantinedOHashesInfo struct { - PageToken []byte `protobuf:"bytes,1,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListQuarantinedOHashesInfo) Reset() { *m = ListQuarantinedOHashesInfo{} } -func (m *ListQuarantinedOHashesInfo) String() string { return proto.CompactTextString(m) } -func (*ListQuarantinedOHashesInfo) ProtoMessage() {} -func (*ListQuarantinedOHashesInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_1fcd0776e05e82a6, []int{31} -} - -func (m *ListQuarantinedOHashesInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListQuarantinedOHashesInfo.Unmarshal(m, b) -} -func (m *ListQuarantinedOHashesInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListQuarantinedOHashesInfo.Marshal(b, m, deterministic) -} -func (m *ListQuarantinedOHashesInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListQuarantinedOHashesInfo.Merge(m, src) -} -func (m *ListQuarantinedOHashesInfo) XXX_Size() int { - return xxx_messageInfo_ListQuarantinedOHashesInfo.Size(m) -} -func (m *ListQuarantinedOHashesInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ListQuarantinedOHashesInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_ListQuarantinedOHashesInfo proto.InternalMessageInfo - -func (m *ListQuarantinedOHashesInfo) GetPageToken() []byte { - if m != nil { - return m.PageToken - } - return nil -} - -func (m *ListQuarantinedOHashesInfo) GetPageSize() uint32 { - if m != nil { - return m.PageSize - } - return 0 -} - func init() { proto.RegisterEnum("filemgr.VolumeType", VolumeType_name, VolumeType_value) proto.RegisterEnum("filemgr.VolumeState", VolumeState_name, VolumeState_value) - proto.RegisterType((*ListPartitionsInfo)(nil), "filemgr.ListPartitionsInfo") - proto.RegisterType((*ListPartitionInfo)(nil), "filemgr.ListPartitionInfo") - proto.RegisterType((*ListSuffixInfo)(nil), "filemgr.ListSuffixInfo") - proto.RegisterType((*DirEntries)(nil), "filemgr.DirEntries") - proto.RegisterType((*VolumeIndex)(nil), "filemgr.VolumeIndex") - proto.RegisterType((*Volume)(nil), "filemgr.Volume") - proto.RegisterType((*GetNextOffsetInfo)(nil), "filemgr.GetNextOffsetInfo") - proto.RegisterType((*ListVolumesInfo)(nil), "filemgr.ListVolumesInfo") - proto.RegisterType((*Volumes)(nil), "filemgr.Volumes") - proto.RegisterType((*VolumeNextOffset)(nil), "filemgr.VolumeNextOffset") - proto.RegisterType((*NewVolumeInfo)(nil), "filemgr.NewVolumeInfo") - proto.RegisterType((*NewVolumeState)(nil), "filemgr.NewVolumeState") - proto.RegisterType((*NewVolumeReply)(nil), "filemgr.NewVolumeReply") - proto.RegisterType((*DelObjectReply)(nil), "filemgr.DelObjectReply") - proto.RegisterType((*RenameReply)(nil), "filemgr.RenameReply") - proto.RegisterType((*NewObjectInfo)(nil), "filemgr.NewObjectInfo") - proto.RegisterType((*NewObjectReply)(nil), "filemgr.NewObjectReply") - proto.RegisterType((*QuarantinedObjectName)(nil), "filemgr.QuarantinedObjectName") - proto.RegisterType((*QuarantinedObjectNames)(nil), "filemgr.QuarantinedObjectNames") - proto.RegisterType((*ObjectName)(nil), "filemgr.ObjectName") - proto.RegisterType((*LoadObjectInfo)(nil), "filemgr.LoadObjectInfo") - proto.RegisterType((*RenameInfo)(nil), "filemgr.RenameInfo") - proto.RegisterType((*Object)(nil), "filemgr.Object") - proto.RegisterType((*LoadObjectsResponse)(nil), "filemgr.LoadObjectsResponse") - proto.RegisterType((*ObjectPrefix)(nil), "filemgr.ObjectPrefix") - proto.RegisterType((*Empty)(nil), "filemgr.Empty") - proto.RegisterType((*GetStatsInfo)(nil), "filemgr.GetStatsInfo") - proto.RegisterType((*PartitionContent)(nil), "filemgr.PartitionContent") - proto.RegisterType((*FullPathEntry)(nil), "filemgr.FullPathEntry") + proto.RegisterType((*RegisterVolumeRequest)(nil), "filemgr.RegisterVolumeRequest") + proto.RegisterType((*RegisterVolumeReply)(nil), "filemgr.RegisterVolumeReply") + proto.RegisterType((*UnregisterVolumeRequest)(nil), "filemgr.UnregisterVolumeRequest") + proto.RegisterType((*UnregisterVolumeReply)(nil), "filemgr.UnregisterVolumeReply") + proto.RegisterType((*UpdateVolumeStateRequest)(nil), "filemgr.UpdateVolumeStateRequest") + proto.RegisterType((*UpdateVolumeStateReply)(nil), "filemgr.UpdateVolumeStateReply") + proto.RegisterType((*GetVolumeRequest)(nil), "filemgr.GetVolumeRequest") + proto.RegisterType((*GetVolumeReply)(nil), "filemgr.GetVolumeReply") + proto.RegisterType((*ListVolumesRequest)(nil), "filemgr.ListVolumesRequest") + proto.RegisterType((*ListVolumesReply)(nil), "filemgr.ListVolumesReply") + proto.RegisterType((*RegisterObjectRequest)(nil), "filemgr.RegisterObjectRequest") + proto.RegisterType((*RegisterObjectReply)(nil), "filemgr.RegisterObjectReply") + proto.RegisterType((*UnregisterObjectRequest)(nil), "filemgr.UnregisterObjectRequest") + proto.RegisterType((*UnregisterObjectReply)(nil), "filemgr.UnregisterObjectReply") + proto.RegisterType((*RenameObjectRequest)(nil), "filemgr.RenameObjectRequest") + proto.RegisterType((*RenameObjectReply)(nil), "filemgr.RenameObjectReply") + proto.RegisterType((*LoadObjectRequest)(nil), "filemgr.LoadObjectRequest") + proto.RegisterType((*LoadObjectReply)(nil), "filemgr.LoadObjectReply") + proto.RegisterType((*QuarantineObjectRequest)(nil), "filemgr.QuarantineObjectRequest") + proto.RegisterType((*QuarantineObjectReply)(nil), "filemgr.QuarantineObjectReply") + proto.RegisterType((*UnquarantineObjectRequest)(nil), "filemgr.UnquarantineObjectRequest") + proto.RegisterType((*UnquarantineObjectReply)(nil), "filemgr.UnquarantineObjectReply") + proto.RegisterType((*LoadObjectsByPrefixRequest)(nil), "filemgr.LoadObjectsByPrefixRequest") + proto.RegisterType((*LoadObjectsByPrefixReply)(nil), "filemgr.LoadObjectsByPrefixReply") + proto.RegisterType((*LoadObjectsByVolumeRequest)(nil), "filemgr.LoadObjectsByVolumeRequest") + proto.RegisterType((*LoadObjectsByVolumeReply)(nil), "filemgr.LoadObjectsByVolumeReply") + proto.RegisterType((*ListPartitionsRequest)(nil), "filemgr.ListPartitionsRequest") + proto.RegisterType((*ListPartitionRequest)(nil), "filemgr.ListPartitionRequest") + proto.RegisterType((*ListSuffixRequest)(nil), "filemgr.ListSuffixRequest") + proto.RegisterType((*ListQuarantinedOHashesRequest)(nil), "filemgr.ListQuarantinedOHashesRequest") + proto.RegisterType((*ListQuarantinedOHashesReply)(nil), "filemgr.ListQuarantinedOHashesReply") + proto.RegisterType((*ListQuarantinedOHashRequest)(nil), "filemgr.ListQuarantinedOHashRequest") + proto.RegisterType((*ListQuarantinedOHashReply)(nil), "filemgr.ListQuarantinedOHashReply") + proto.RegisterType((*GetNextOffsetRequest)(nil), "filemgr.GetNextOffsetRequest") + proto.RegisterType((*GetNextOffsetReply)(nil), "filemgr.GetNextOffsetReply") + proto.RegisterType((*GetStatsRequest)(nil), "filemgr.GetStatsRequest") + proto.RegisterType((*GetStatsReply)(nil), "filemgr.GetStatsReply") + proto.RegisterMapType((map[string]uint64)(nil), "filemgr.GetStatsReply.StatsEntry") + proto.RegisterType((*SetKvStateReply)(nil), "filemgr.SetKvStateReply") + proto.RegisterType((*GetKvStateRequest)(nil), "filemgr.GetKvStateRequest") proto.RegisterType((*KvState)(nil), "filemgr.KvState") - proto.RegisterType((*KVStats)(nil), "filemgr.KVStats") - proto.RegisterMapType((map[string]uint64)(nil), "filemgr.KVStats.StatsEntry") - proto.RegisterType((*ListQuarantinedOHashesInfo)(nil), "filemgr.ListQuarantinedOHashesInfo") + proto.RegisterType((*Volume)(nil), "filemgr.Volume") + proto.RegisterType((*Object)(nil), "filemgr.Object") + proto.RegisterType((*QuarantinedObjectName)(nil), "filemgr.QuarantinedObjectName") + proto.RegisterType((*DirEntries)(nil), "filemgr.DirEntries") } func init() { @@ -1682,71 +2141,73 @@ func init() { } var fileDescriptor_1fcd0776e05e82a6 = []byte{ - // 1045 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xdd, 0x6e, 0xe3, 0x44, - 0x14, 0x5e, 0xe7, 0xbf, 0x27, 0x3f, 0xf5, 0xce, 0x96, 0x12, 0x5a, 0xa0, 0xc5, 0x68, 0x61, 0x29, - 0x52, 0x25, 0x96, 0xbd, 0x28, 0x70, 0x95, 0x6d, 0xbd, 0xa5, 0xda, 0x36, 0x29, 0x13, 0x6f, 0xb7, - 0x48, 0x48, 0x96, 0x4b, 0x27, 0x8d, 0x59, 0xc7, 0x36, 0x9e, 0x49, 0xda, 0xf4, 0x8a, 0xf7, 0xe0, - 0x06, 0xf1, 0x2a, 0xbc, 0x07, 0xcf, 0x82, 0xe6, 0xc7, 0x8e, 0x63, 0x87, 0xa6, 0x95, 0xf6, 0xc6, - 0x9a, 0xf3, 0xf9, 0xf8, 0xcc, 0xf7, 0x9d, 0x73, 0x3c, 0x73, 0x00, 0x06, 0xa3, 0xab, 0x68, 0x37, - 0x8c, 0x02, 0x16, 0xa0, 0xea, 0xc0, 0xf5, 0xc8, 0xe8, 0x2a, 0x32, 0x7e, 0x00, 0x74, 0xec, 0x52, - 0x76, 0xea, 0x44, 0xcc, 0x65, 0x6e, 0xe0, 0xd3, 0x23, 0x7f, 0x10, 0xa0, 0xa7, 0xd0, 0x0a, 0x63, - 0xc4, 0xbe, 0x70, 0x19, 0x6d, 0x6b, 0xdb, 0xda, 0xb3, 0x26, 0x6e, 0x26, 0xe8, 0x4b, 0x97, 0x51, - 0xe3, 0x1c, 0x1e, 0xcf, 0x7d, 0x2c, 0xbe, 0xfd, 0x18, 0x56, 0x12, 0x2f, 0xf5, 0xd9, 0x0c, 0x58, - 0x10, 0xb9, 0xb0, 0x28, 0xf2, 0x08, 0x5a, 0x3c, 0x72, 0x7f, 0x3c, 0x18, 0xb8, 0x37, 0xf7, 0x08, - 0xbb, 0x0e, 0x15, 0x2a, 0x7c, 0x45, 0xb8, 0x06, 0x56, 0xd6, 0x82, 0xed, 0x8a, 0x8b, 0xb6, 0x33, - 0x00, 0x0e, 0xdc, 0xc8, 0xf4, 0x59, 0xe4, 0x12, 0x8a, 0xd6, 0xa0, 0x4c, 0x7c, 0x16, 0x4d, 0xdb, - 0xda, 0x76, 0xf1, 0xd9, 0x0a, 0x96, 0x86, 0xf1, 0xb7, 0x06, 0xf5, 0xb3, 0xc0, 0x1b, 0x8f, 0xc8, - 0x91, 0x7f, 0x49, 0x6e, 0xb8, 0x97, 0xcb, 0x17, 0x8a, 0x8c, 0x34, 0xd0, 0x36, 0xd4, 0x7f, 0x1f, - 0x3b, 0x91, 0xe3, 0x33, 0xd7, 0x27, 0x97, 0x82, 0x4d, 0x0d, 0xa7, 0x21, 0xf4, 0x09, 0x40, 0xe8, - 0x5c, 0x11, 0x9b, 0x05, 0xef, 0x88, 0x2f, 0xe8, 0x34, 0xb8, 0x92, 0x2b, 0x62, 0x71, 0x00, 0x6d, - 0x82, 0x30, 0x6c, 0xea, 0xde, 0x92, 0x76, 0x49, 0x84, 0xae, 0x71, 0xa0, 0xef, 0xde, 0x12, 0xb4, - 0x05, 0xf5, 0x88, 0x84, 0x8e, 0x1b, 0xd9, 0x2c, 0x08, 0xbc, 0x76, 0x59, 0x44, 0x07, 0x09, 0x59, - 0x41, 0xe0, 0x19, 0xff, 0x68, 0x50, 0x91, 0x24, 0xd1, 0x67, 0xd0, 0x98, 0x88, 0x95, 0x9d, 0xa6, - 0x59, 0x9f, 0xa4, 0x24, 0xbc, 0x00, 0x65, 0xda, 0x6c, 0x1a, 0x12, 0x41, 0xb6, 0xf5, 0xfc, 0xc9, - 0xae, 0xea, 0x8d, 0x5d, 0x19, 0xc8, 0x9a, 0x86, 0x04, 0xc3, 0x24, 0x59, 0xa7, 0x02, 0x53, 0xe6, - 0x30, 0xa2, 0x32, 0xaa, 0x22, 0xf5, 0x39, 0x34, 0x5f, 0xac, 0x52, 0xb6, 0x58, 0x5b, 0x50, 0xf7, - 0xc9, 0x0d, 0xb3, 0x83, 0xc1, 0x80, 0x12, 0x26, 0x54, 0x94, 0x30, 0x70, 0xa8, 0x27, 0x10, 0xe3, - 0x4f, 0x0d, 0x1e, 0x1f, 0x12, 0xd6, 0x4d, 0x10, 0xd1, 0x01, 0xf7, 0x10, 0xb4, 0x95, 0x17, 0xd4, - 0x7c, 0x28, 0xf7, 0x4c, 0x8e, 0x4b, 0xb9, 0x1c, 0x4f, 0x61, 0x95, 0xf7, 0xa6, 0xcc, 0x0e, 0xbd, - 0x47, 0x73, 0x7e, 0x09, 0xa5, 0x65, 0xf9, 0x15, 0x0e, 0xd9, 0xad, 0x8b, 0xb9, 0xad, 0x5f, 0x40, - 0x55, 0x6d, 0x8b, 0xbe, 0x82, 0xaa, 0x64, 0x4d, 0x45, 0x9b, 0xd6, 0x9f, 0xaf, 0x66, 0xe2, 0xe2, - 0xf8, 0xbd, 0xb1, 0x03, 0xba, 0x84, 0x66, 0x09, 0xe5, 0x3f, 0x8c, 0x4a, 0xbf, 0x26, 0xd2, 0xaf, - 0x2c, 0xe3, 0x5f, 0x0d, 0x9a, 0x5d, 0x72, 0x1d, 0x37, 0xfa, 0xfb, 0xd3, 0x96, 0xad, 0x5e, 0x31, - 0x5f, 0xbd, 0x19, 0xa7, 0x52, 0x9a, 0x13, 0xda, 0x81, 0xb2, 0xac, 0x56, 0x59, 0x6c, 0xb2, 0x96, - 0xd9, 0x44, 0x94, 0x0d, 0x4b, 0x97, 0x6c, 0x0a, 0x2b, 0xb9, 0x14, 0xfe, 0xa1, 0x41, 0x2b, 0x11, - 0x28, 0x2b, 0x7e, 0x8f, 0xc6, 0x4a, 0x28, 0x14, 0x1e, 0x4c, 0x21, 0x5f, 0x45, 0x3d, 0xc5, 0x00, - 0x93, 0xd0, 0x9b, 0x72, 0xe4, 0x80, 0x78, 0xbd, 0x8b, 0xdf, 0xc8, 0xaf, 0x4c, 0x22, 0x4d, 0xa8, - 0x63, 0xe2, 0x3b, 0xb1, 0xc3, 0x5f, 0xb2, 0x2c, 0xd2, 0x43, 0x94, 0x05, 0x41, 0x89, 0xbf, 0x16, - 0x64, 0x1b, 0x58, 0xac, 0x73, 0x42, 0x0a, 0x77, 0xe5, 0xb8, 0x38, 0x97, 0xe3, 0xcc, 0x3f, 0x59, - 0xca, 0xfe, 0x93, 0xcb, 0x8f, 0x1e, 0xa9, 0x2a, 0xad, 0xe1, 0x6b, 0xf8, 0xe0, 0xa7, 0xd9, 0xc1, - 0x27, 0xdf, 0x74, 0x39, 0xcf, 0x05, 0xdc, 0x8d, 0x5b, 0x58, 0x5f, 0xe8, 0x4c, 0xd1, 0x1e, 0x54, - 0x03, 0x61, 0xc6, 0x9d, 0xfe, 0x69, 0x92, 0xfd, 0x85, 0x5f, 0xe0, 0xd8, 0x1d, 0x7d, 0x01, 0xab, - 0x42, 0x54, 0xea, 0xbc, 0x95, 0xd7, 0x43, 0x93, 0xc3, 0xa7, 0xf1, 0x99, 0x6b, 0x74, 0x00, 0xee, - 0x66, 0x97, 0x55, 0x5f, 0xc8, 0xa9, 0xf7, 0xa0, 0x75, 0x1c, 0x38, 0x97, 0x4b, 0x0a, 0xf4, 0x14, - 0x5a, 0x2e, 0xb5, 0xf3, 0x17, 0x44, 0xd3, 0xa5, 0x29, 0x29, 0xcb, 0x73, 0xfd, 0x0b, 0x80, 0xec, - 0x8e, 0xff, 0xdd, 0xe9, 0x23, 0xa8, 0xf9, 0xe4, 0xda, 0x16, 0xb8, 0xd4, 0x5c, 0xf5, 0xc9, 0x75, - 0x77, 0x81, 0x96, 0x7c, 0x7f, 0xbe, 0x85, 0x8a, 0xd4, 0xf1, 0x9e, 0x9b, 0xcc, 0x18, 0xc2, 0x93, - 0x59, 0x92, 0x28, 0x26, 0x34, 0x0c, 0x7c, 0x4a, 0xf8, 0x51, 0x36, 0x5f, 0xe0, 0xd9, 0x51, 0xa6, - 0xda, 0xe9, 0xc1, 0x15, 0x3d, 0x84, 0x86, 0xfc, 0xf4, 0x34, 0x22, 0x7c, 0x0e, 0x58, 0x87, 0x4a, - 0x28, 0x56, 0x4a, 0x8a, 0xb2, 0x96, 0xd7, 0xb5, 0x0a, 0x65, 0x73, 0x14, 0xb2, 0xa9, 0xd1, 0x82, - 0xc6, 0x21, 0x61, 0xfc, 0x47, 0x17, 0x47, 0xbe, 0x71, 0x02, 0x7a, 0x32, 0xf7, 0xec, 0x07, 0x3e, - 0x23, 0x3e, 0x43, 0xdf, 0x41, 0x83, 0x13, 0xb7, 0x89, 0x1c, 0x24, 0x94, 0x9a, 0xf5, 0x44, 0xcd, - 0xab, 0xb1, 0xe7, 0x9d, 0x3a, 0x6c, 0xc8, 0x07, 0x8d, 0x29, 0xae, 0x73, 0x58, 0xcd, 0x1c, 0xc6, - 0xcf, 0xd0, 0x9c, 0x7b, 0x9b, 0x9a, 0x68, 0xb4, 0xb9, 0x89, 0x66, 0x0d, 0xca, 0xc1, 0xd0, 0xa1, - 0x43, 0xa5, 0x5b, 0x1a, 0x68, 0x03, 0x6a, 0x3c, 0x9a, 0x28, 0x96, 0x1c, 0x29, 0x12, 0xdb, 0xf8, - 0x1c, 0xaa, 0xaf, 0x27, 0xf2, 0xa4, 0x6b, 0x43, 0xd5, 0xa5, 0xfb, 0x1e, 0x71, 0xe4, 0x49, 0x5e, - 0xc3, 0xb1, 0x69, 0x4c, 0xa0, 0xfa, 0xfa, 0x4c, 0xa8, 0x43, 0xdf, 0xc8, 0xb3, 0x2e, 0xa6, 0xbf, - 0x99, 0xd0, 0x57, 0x0e, 0xbb, 0xe2, 0x29, 0x35, 0x48, 0xcf, 0x8d, 0x3d, 0x80, 0x19, 0x88, 0x74, - 0x28, 0xbe, 0x23, 0x53, 0xb1, 0xc3, 0x0a, 0xe6, 0x4b, 0x4e, 0x7a, 0xe2, 0x78, 0x63, 0xd9, 0x8a, - 0x25, 0x2c, 0x8d, 0xef, 0x0b, 0x7b, 0x9a, 0x71, 0x0e, 0x1b, 0xfc, 0x32, 0x4d, 0xff, 0xc8, 0x3f, - 0x3a, 0x74, 0xa8, 0xee, 0xd5, 0xf9, 0x59, 0x49, 0xbb, 0x73, 0x56, 0x2a, 0xcc, 0xcf, 0x4a, 0x3b, - 0x5d, 0x80, 0xd9, 0x25, 0x84, 0x10, 0xb4, 0xce, 0x7a, 0xc7, 0x6f, 0x4e, 0x4c, 0xfb, 0xc0, 0x7c, - 0xd5, 0x79, 0x73, 0x6c, 0xe9, 0x8f, 0xd0, 0x1a, 0xe8, 0x0a, 0xb3, 0x7a, 0x27, 0x2f, 0xfb, 0x56, - 0xaf, 0x6b, 0xea, 0x1a, 0x5a, 0x07, 0xa4, 0xd0, 0x73, 0xfb, 0xc0, 0x3c, 0x36, 0x2d, 0xd3, 0xee, - 0x58, 0x7a, 0x61, 0x07, 0xc7, 0xe3, 0x9f, 0x4c, 0x65, 0x03, 0x6a, 0x7d, 0xab, 0x63, 0x99, 0x36, - 0x7e, 0xab, 0x3f, 0x42, 0x6d, 0x58, 0x93, 0xd6, 0x7e, 0xef, 0xe4, 0xb4, 0xb3, 0x6f, 0x1d, 0xf5, - 0xba, 0x76, 0x1f, 0xef, 0xeb, 0x1a, 0xda, 0x84, 0x0f, 0x73, 0x6f, 0xac, 0x0e, 0x3e, 0x34, 0x2d, - 0xbd, 0x70, 0x51, 0x11, 0xd3, 0xf8, 0xb7, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xaa, 0x45, 0x72, - 0xde, 0x9b, 0x0b, 0x00, 0x00, + // 1083 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x57, 0xdd, 0x6e, 0xe3, 0x44, + 0x1b, 0x5e, 0x3b, 0x69, 0xda, 0xbe, 0xe9, 0x8f, 0x33, 0x4d, 0x53, 0x77, 0xfb, 0xed, 0xb7, 0x59, + 0xa3, 0x85, 0x50, 0x50, 0x0f, 0x16, 0x24, 0x2a, 0x24, 0x90, 0xd2, 0xd6, 0x1b, 0x2a, 0xd2, 0x24, + 0x38, 0x4e, 0x17, 0xc1, 0x81, 0x71, 0xe9, 0x24, 0x98, 0x4d, 0x6c, 0xd7, 0x9e, 0x74, 0x9b, 0x15, + 0x12, 0x12, 0x87, 0x5c, 0x09, 0xa7, 0x5c, 0x03, 0x87, 0xdc, 0x07, 0xd7, 0x81, 0x66, 0xc6, 0x4e, + 0xfc, 0x47, 0xd3, 0x88, 0x9c, 0x70, 0xe6, 0xf7, 0xb1, 0xf3, 0x3e, 0xcf, 0xfb, 0x3b, 0x13, 0x80, + 0xfe, 0x68, 0xe0, 0x1d, 0xb9, 0x9e, 0x43, 0x1c, 0xb4, 0xda, 0xb7, 0x86, 0x78, 0x34, 0xf0, 0x94, + 0xbf, 0x04, 0xd8, 0xd5, 0xf0, 0xc0, 0xf2, 0x09, 0xf6, 0x2e, 0x9d, 0xe1, 0x78, 0x84, 0x35, 0x7c, + 0x33, 0xc6, 0x3e, 0x41, 0xff, 0x83, 0x75, 0xd7, 0xf4, 0x88, 0x45, 0x2c, 0xc7, 0x96, 0x85, 0xaa, + 0x50, 0xdb, 0xd4, 0x66, 0x00, 0x7a, 0x0f, 0xf2, 0x64, 0xe2, 0x62, 0x59, 0xac, 0x0a, 0xb5, 0xad, + 0x17, 0x3b, 0x47, 0x81, 0xbf, 0x23, 0xee, 0x43, 0x9f, 0xb8, 0x58, 0x63, 0x1f, 0xa0, 0x67, 0xb0, + 0x71, 0xcb, 0x30, 0xc3, 0xb2, 0xaf, 0xf1, 0x9d, 0x9c, 0x63, 0x9e, 0x8a, 0x1c, 0x3b, 0xa7, 0x10, + 0xaa, 0x40, 0xc1, 0xe9, 0xf7, 0x7d, 0x4c, 0xe4, 0x7c, 0x55, 0xa8, 0xe5, 0xb5, 0xc0, 0x42, 0x87, + 0xb0, 0xe2, 0x13, 0x93, 0x60, 0x79, 0x85, 0x91, 0x94, 0x13, 0x24, 0x5d, 0xfa, 0x4e, 0xe3, 0x9f, + 0xa0, 0xa7, 0x50, 0xf4, 0xb0, 0x6b, 0x5a, 0x9e, 0x41, 0x1c, 0x67, 0x28, 0x17, 0xaa, 0x42, 0x6d, + 0x4d, 0x03, 0x0e, 0xe9, 0x8e, 0x33, 0x54, 0x76, 0x61, 0x27, 0x19, 0xa7, 0x3b, 0x9c, 0x28, 0x1d, + 0xd8, 0xeb, 0xd9, 0x5e, 0x66, 0x02, 0xca, 0xb0, 0xc2, 0x25, 0xf3, 0xe0, 0xb9, 0x91, 0x24, 0x12, + 0x53, 0x44, 0x7b, 0xb0, 0x9b, 0xf6, 0x48, 0xa9, 0x7e, 0x15, 0x40, 0xee, 0xb9, 0xd7, 0x26, 0xc1, + 0x51, 0xfd, 0x01, 0x59, 0x32, 0x4d, 0x42, 0x3a, 0x4d, 0xd3, 0x74, 0x88, 0x0b, 0xa7, 0x23, 0x97, + 0x52, 0x29, 0x43, 0x25, 0x43, 0x0b, 0x95, 0x79, 0x0e, 0x52, 0x03, 0x93, 0xa5, 0xa4, 0xe2, 0x4f, + 0x01, 0xb6, 0x22, 0xbe, 0xdc, 0xe1, 0xe4, 0x21, 0x71, 0x7e, 0x0c, 0x81, 0x69, 0xcc, 0xeb, 0x30, + 0xb8, 0x9d, 0x3e, 0x47, 0x1c, 0xf3, 0x24, 0xc5, 0xfa, 0x8c, 0x85, 0x17, 0xef, 0xe8, 0x7c, 0xb2, + 0xa3, 0x9f, 0x42, 0xd1, 0xc6, 0x77, 0xc4, 0x08, 0x5a, 0x71, 0x85, 0xb5, 0x22, 0x50, 0xa8, 0xcd, + 0x10, 0xe5, 0x27, 0x40, 0x4d, 0xcb, 0x0f, 0xa2, 0xf1, 0x97, 0x3c, 0x26, 0x73, 0x0b, 0xf6, 0x19, + 0x48, 0x31, 0x76, 0x9a, 0xcc, 0xf7, 0x61, 0x95, 0xc7, 0xe7, 0xcb, 0x42, 0x35, 0x57, 0x2b, 0xbe, + 0xd8, 0x4e, 0x10, 0x68, 0xe1, 0x7b, 0xe5, 0xb7, 0xc8, 0x9c, 0xb7, 0xaf, 0x7e, 0xc4, 0xdf, 0x93, + 0x30, 0x00, 0x04, 0x79, 0xdb, 0x1c, 0x61, 0xa6, 0x7d, 0x43, 0x63, 0xcf, 0xa9, 0x2a, 0x89, 0xf7, + 0x0d, 0x6d, 0x2e, 0x36, 0xb4, 0x89, 0x34, 0xe6, 0x93, 0x69, 0x4c, 0x46, 0xba, 0x72, 0xdf, 0xa4, + 0x86, 0x4a, 0x69, 0x5f, 0xb6, 0xa2, 0x93, 0x3a, 0x3f, 0x84, 0xc5, 0xe6, 0x34, 0x4a, 0x84, 0x29, + 0x3f, 0xf5, 0x31, 0x9f, 0x64, 0x1f, 0xd6, 0x6c, 0xfc, 0xc6, 0x60, 0xb8, 0xc8, 0xf0, 0x55, 0x1b, + 0xbf, 0x69, 0x65, 0xf0, 0xa7, 0x0b, 0xba, 0x03, 0xa5, 0x38, 0x0d, 0xe5, 0x76, 0xa0, 0xd4, 0x74, + 0xcc, 0xeb, 0xf9, 0xcc, 0xcf, 0x61, 0xcb, 0xf2, 0x8d, 0x9b, 0xb1, 0xe9, 0x99, 0x36, 0xb1, 0x6c, + 0x7c, 0x1d, 0x44, 0xb8, 0x69, 0xf9, 0x5f, 0xcd, 0xc0, 0xf9, 0x2a, 0xbe, 0x83, 0xed, 0x28, 0x21, + 0xed, 0xaa, 0xe5, 0x36, 0x04, 0xad, 0xdb, 0x4c, 0xd1, 0x72, 0xea, 0x96, 0xf6, 0xc7, 0x57, 0xf9, + 0x7e, 0xcf, 0xbe, 0x59, 0x26, 0xd5, 0x3e, 0x6d, 0xb9, 0x9b, 0x4c, 0xb2, 0x1e, 0x3c, 0x9e, 0xe5, + 0xcd, 0x3f, 0x99, 0x74, 0x3c, 0xdc, 0xb7, 0xee, 0x42, 0xb6, 0x0a, 0x14, 0x5c, 0x06, 0x04, 0x7c, + 0x81, 0x35, 0x9f, 0x51, 0x05, 0x39, 0xd3, 0x6d, 0x30, 0xed, 0x0e, 0xc7, 0x53, 0xd3, 0x1e, 0x28, + 0x0b, 0xdf, 0x2b, 0xbf, 0x0b, 0x09, 0x79, 0x0f, 0x59, 0xe7, 0x55, 0x28, 0xa6, 0xfb, 0x29, 0x0a, + 0xa1, 0x27, 0x00, 0xae, 0x39, 0xc0, 0x06, 0x71, 0x5e, 0x63, 0x9b, 0x95, 0x79, 0x83, 0x2e, 0xbb, + 0x01, 0xd6, 0x29, 0x80, 0x0e, 0x80, 0x19, 0x86, 0x6f, 0xbd, 0xc5, 0xc1, 0x7e, 0x5d, 0xa3, 0x40, + 0xd7, 0x7a, 0x8b, 0xe7, 0x8f, 0xfd, 0x28, 0x11, 0x7a, 0xf4, 0xd4, 0x78, 0x78, 0xe8, 0xe8, 0x5d, + 0xd8, 0x66, 0xfb, 0x27, 0x22, 0x94, 0x4f, 0xe6, 0x26, 0x85, 0x3b, 0xa1, 0x58, 0xe5, 0x73, 0xd8, + 0xa5, 0xfb, 0xb4, 0x13, 0xae, 0xea, 0xe9, 0x42, 0x7f, 0x0e, 0x5b, 0xd3, 0xfd, 0x6d, 0x5c, 0x59, + 0x8c, 0x92, 0x86, 0xb2, 0x39, 0x45, 0x4f, 0x2c, 0xe2, 0x2b, 0xdf, 0x42, 0x39, 0xf6, 0xfb, 0x87, + 0x9d, 0x07, 0x69, 0xe7, 0x62, 0x96, 0x73, 0x17, 0x4a, 0xd4, 0x79, 0x77, 0xdc, 0x8f, 0x34, 0xd5, + 0xfd, 0x9e, 0x2b, 0x50, 0xf0, 0xd9, 0xe7, 0x41, 0xb8, 0x81, 0x95, 0xc1, 0x98, 0xcb, 0x0e, 0xe7, + 0x09, 0x65, 0x8c, 0xec, 0x8e, 0xf6, 0x17, 0xa6, 0xff, 0xc3, 0xec, 0x9c, 0x8b, 0xd7, 0x5e, 0xb8, + 0xb7, 0xf6, 0x62, 0xbc, 0xf6, 0xca, 0xcf, 0x70, 0xf0, 0x4f, 0xce, 0x69, 0x75, 0x8f, 0x93, 0xd5, + 0xfd, 0xff, 0xb4, 0xba, 0xd1, 0x9f, 0xb0, 0x4f, 0xe8, 0x6e, 0x5d, 0xbc, 0xd8, 0x97, 0xd9, 0x02, + 0xfe, 0xf5, 0xb8, 0xbe, 0x84, 0xfd, 0x6c, 0xbf, 0x0b, 0xce, 0xeb, 0x37, 0x50, 0x6e, 0x60, 0xd2, + 0x9a, 0x1e, 0x92, 0x0b, 0xdc, 0x0a, 0xe7, 0x6a, 0xfc, 0x10, 0x50, 0xc2, 0x37, 0x15, 0x37, 0xdb, + 0xd6, 0x42, 0x6c, 0x5b, 0x97, 0x60, 0xbb, 0x81, 0x09, 0xbd, 0x2f, 0x85, 0x95, 0x57, 0x7e, 0x11, + 0x60, 0x73, 0x86, 0xd1, 0x1f, 0x7f, 0xc2, 0x6f, 0xa2, 0x61, 0x5c, 0xcf, 0xa6, 0x71, 0xc5, 0x3e, + 0x3b, 0x62, 0x8f, 0xaa, 0x4d, 0xbc, 0x09, 0xbf, 0x96, 0xfa, 0x8f, 0x8f, 0x01, 0x66, 0x20, 0x92, + 0x20, 0xf7, 0x1a, 0x4f, 0x98, 0x80, 0x75, 0x8d, 0x3e, 0xd2, 0xc5, 0x74, 0x6b, 0x0e, 0xc7, 0xbc, + 0x83, 0xf2, 0x1a, 0x37, 0x3e, 0x15, 0x8f, 0x05, 0xaa, 0xab, 0x8b, 0xc9, 0x97, 0xb7, 0x91, 0x8b, + 0xea, 0x0e, 0x94, 0x1a, 0x11, 0x88, 0x8b, 0x7d, 0x07, 0x56, 0x03, 0x04, 0xc9, 0xb0, 0x6a, 0xf9, + 0xa7, 0x43, 0x6c, 0xf2, 0x76, 0x5d, 0xd3, 0x42, 0x53, 0xf9, 0x43, 0x80, 0x02, 0x5f, 0x2f, 0xff, + 0xe5, 0xfb, 0xe8, 0x2b, 0x28, 0xf0, 0x3e, 0x5a, 0xf6, 0x89, 0xfd, 0x41, 0xf4, 0x84, 0x8d, 0xcc, + 0x5d, 0x16, 0x8f, 0xa2, 0x00, 0x9c, 0x59, 0x1e, 0x2d, 0xa8, 0x85, 0x7d, 0x5a, 0x40, 0x4c, 0x6b, + 0xcb, 0x3a, 0x63, 0x5d, 0xe3, 0xc6, 0x61, 0x0b, 0x60, 0x96, 0x25, 0x84, 0x60, 0xeb, 0xb2, 0xdd, + 0xec, 0x5d, 0xa8, 0xc6, 0x99, 0xfa, 0xb2, 0xde, 0x6b, 0xea, 0xd2, 0x23, 0x54, 0x06, 0x29, 0xc0, + 0xf4, 0xf6, 0xc5, 0x49, 0x57, 0x6f, 0xb7, 0x54, 0x49, 0x40, 0x15, 0x40, 0x01, 0xfa, 0xb5, 0x71, + 0xa6, 0x36, 0x55, 0x5d, 0x35, 0xea, 0xba, 0x24, 0x1e, 0x6a, 0x50, 0x8c, 0xfc, 0x6d, 0x41, 0x1b, + 0xb0, 0xd6, 0xd5, 0xeb, 0xba, 0x6a, 0x68, 0xaf, 0xa4, 0x47, 0x48, 0x86, 0x32, 0xb7, 0x4e, 0xdb, + 0x17, 0x9d, 0xfa, 0xa9, 0x7e, 0xde, 0x6e, 0x19, 0x5d, 0xed, 0x54, 0x12, 0xd0, 0x01, 0xec, 0xa5, + 0xde, 0xe8, 0x75, 0xad, 0xa1, 0xea, 0x92, 0x78, 0x55, 0x60, 0x7f, 0x8c, 0x3f, 0xfa, 0x3b, 0x00, + 0x00, 0xff, 0xff, 0x2f, 0xb4, 0x5f, 0x6a, 0x26, 0x0f, 0x00, 0x00, } diff --git a/go/swift-rpc-losf/rpc.go b/go/swift-rpc-losf/rpc.go index 383d63de9d..622ad8c0eb 100644 --- a/go/swift-rpc-losf/rpc.go +++ b/go/swift-rpc-losf/rpc.go @@ -85,7 +85,7 @@ type rpcFunc func(*server, context.Context, *[]byte) (*[]byte, error) // RegisterVolume registers a new volume (volume) to the KV, given its index number and starting offset. // Will return an error if the volume index already exists. func RegisterVolume(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.NewVolumeInfo{} + in := &pb.RegisterVolumeRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("RegisterVolume failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -128,7 +128,7 @@ func RegisterVolume(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, erro } s.statsd_c.Increment("register_volume.ok") - out, err := proto.Marshal(&pb.NewVolumeReply{}) + out, err := proto.Marshal(&pb.RegisterVolumeReply{}) if err != nil { reqlog.Errorf("failed to serialize reply for new volume entry: %v", err) return nil, status.Errorf(codes.Unavailable, "unable to serialize reply for new volume entry: %v", err) @@ -138,7 +138,7 @@ func RegisterVolume(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, erro // UnregisterVolume will delete a volume entry from the kv. func UnregisterVolume(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.VolumeIndex{} + in := &pb.UnregisterVolumeRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("UnregisterVolume failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -177,12 +177,12 @@ func UnregisterVolume(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, er } s.statsd_c.Increment("unregister_volume.ok") - return serializePb(&pb.NewVolumeReply{}) + return serializePb(&pb.UnregisterVolumeReply{}) } // UpdateVolumeState will modify an existing volume state func UpdateVolumeState(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.NewVolumeState{} + in := &pb.UpdateVolumeStateRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("UpdateVolumeState failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -227,7 +227,7 @@ func UpdateVolumeState(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, e } s.statsd_c.Increment("update_volume_state.ok") - out, err := proto.Marshal(&pb.NewVolumeState{}) + out, err := proto.Marshal(&pb.UpdateVolumeStateReply{}) if err != nil { reqlog.Errorf("failed to serialize reply for update volume: %v", err) return nil, status.Errorf(codes.Unavailable, "unable to serialize reply for update volume: %v", err) @@ -237,7 +237,7 @@ func UpdateVolumeState(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, e // GetVolume will return a volume information func GetVolume(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.VolumeIndex{} + in := &pb.GetVolumeRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("GetVolume failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -274,7 +274,7 @@ func GetVolume(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { s.statsd_c.Increment("get_volume.ok") - pb_volume := pb.Volume{VolumeIndex: in.Index, VolumeType: pb.VolumeType(dfType), VolumeState: uint32(state), + pb_volume := pb.GetVolumeReply{VolumeIndex: in.Index, VolumeType: pb.VolumeType(dfType), VolumeState: uint32(state), Partition: uint32(partition), NextOffset: uint64(nextOffset)} out, err := proto.Marshal(&pb_volume) if err != nil { @@ -289,7 +289,7 @@ func GetVolume(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { // Currently this scans all volumes in the KV. Likely fast enough as long as the KV is cached. // If it becomes a performance issue, we may want to add an in-memory cache indexed by partition. func ListVolumes(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.ListVolumesInfo{} + in := &pb.ListVolumesRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("ListVolumes failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -303,7 +303,7 @@ func ListVolumes(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) return nil, status.Errorf(codes.FailedPrecondition, "KV out of sync with volumes") } - response := &pb.Volumes{} + response := &pb.ListVolumesReply{} // Iterate over volumes and return the ones that match the request it := s.kv.NewIterator(volumePrefix) @@ -341,7 +341,7 @@ func ListVolumes(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) // RegisterObject registers a new object to the kv. func RegisterObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.NewObjectInfo{} + in := &pb.RegisterObjectRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("RegisterObject failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -426,7 +426,7 @@ func RegisterObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, erro s.statsd_c.Increment("register_object.ok") - out, err := proto.Marshal(&pb.NewObjectReply{}) + out, err := proto.Marshal(&pb.RegisterObjectReply{}) if err != nil { reqlog.Errorf("failed to serialize reply: %v", err) return nil, status.Errorf(codes.Unavailable, "unable to serialize reply: %v", err) @@ -436,7 +436,7 @@ func RegisterObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, erro // UnregisterObject removes an an object entry from the kv. func UnregisterObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.ObjectName{} + in := &pb.UnregisterObjectRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("UnregisterObject failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -448,7 +448,7 @@ func UnregisterObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, er }) reqlog.Debug("RPC Call") - if !s.isClean { + if !in.RepairTool && !s.isClean { reqlog.Debug("KV out of sync with volumes") return nil, status.Errorf(codes.FailedPrecondition, "KV out of sync with volumes") } @@ -482,7 +482,7 @@ func UnregisterObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, er } s.statsd_c.Increment("unregister_object.ok") - out, err := proto.Marshal(&pb.DelObjectReply{}) + out, err := proto.Marshal(&pb.UnregisterObjectReply{}) if err != nil { reqlog.Errorf("failed to serialize reply for del object reply: %v", err) return nil, status.Errorf(codes.Unavailable, "unable to serialize reply for del object reply: %v", err) @@ -492,7 +492,7 @@ func UnregisterObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, er // RenameObject changes an object key in the kv. (used for erasure code) func RenameObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.RenameInfo{} + in := &pb.RenameObjectRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -552,7 +552,7 @@ func RenameObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) s.statsd_c.Increment("rename_object.ok") - out, err := proto.Marshal(&pb.RenameReply{}) + out, err := proto.Marshal(&pb.RenameObjectReply{}) if err != nil { reqlog.Errorf("failed to serialize reply: %v", err) return nil, status.Errorf(codes.Unavailable, "unable to serialize reply: %v", err) @@ -562,7 +562,7 @@ func RenameObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) // LoadObject returns an object information func LoadObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.LoadObjectInfo{} + in := &pb.LoadObjectRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -617,7 +617,7 @@ func LoadObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { s.statsd_c.Increment("load_object.ok") - out, err := proto.Marshal(&pb.Object{Name: in.Name, VolumeIndex: volumeIndex, Offset: offset}) + out, err := proto.Marshal(&pb.LoadObjectReply{Name: in.Name, VolumeIndex: volumeIndex, Offset: offset}) if err != nil { reqlog.Errorf("failed to serialize reply: %v", err) return nil, status.Errorf(codes.Unavailable, "unable to serialize reply: %v", err) @@ -627,7 +627,7 @@ func LoadObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { // QuarantineObject func QuarantineObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.ObjectName{} + in := &pb.QuarantineObjectRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -681,7 +681,7 @@ func QuarantineObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, er s.statsd_c.Increment("quarantine_object.ok") - out, err := proto.Marshal(&pb.Empty{}) + out, err := proto.Marshal(&pb.QuarantineObjectReply{}) if err != nil { reqlog.Errorf("failed to serialize reply: %v", err) return nil, status.Errorf(codes.Unavailable, "unable to serialize reply: %v", err) @@ -691,7 +691,7 @@ func QuarantineObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, er // UnquarantineObject func UnquarantineObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.ObjectName{} + in := &pb.UnquarantineObjectRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -742,7 +742,7 @@ func UnquarantineObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, s.statsd_c.Increment("unquarantine_object.ok") - out, err := proto.Marshal(&pb.Empty{}) + out, err := proto.Marshal(&pb.UnquarantineObjectReply{}) if err != nil { reqlog.Errorf("failed to serialize reply: %v", err) return nil, status.Errorf(codes.Unavailable, "unable to serialize reply: %v", err) @@ -754,7 +754,7 @@ func UnquarantineObject(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, // In practice this is used to emulate the object hash directory that swift // would create with the regular diskfile backend. func LoadObjectsByPrefix(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.ObjectPrefix{} + in := &pb.LoadObjectsByPrefixRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -789,7 +789,7 @@ func LoadObjectsByPrefix(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, it := s.kv.NewIterator(objectPrefix) defer it.Close() - response := &pb.LoadObjectsResponse{} + response := &pb.LoadObjectsByPrefixReply{} // adds one byte because of prefix. Otherwise len(prefix) would be len(prefix)-1 for it.Seek(prefix); it.Valid() && len(prefix) <= len(it.Key()) && bytes.Equal(prefix, it.Key()[:len(prefix)]); it.Next() { @@ -824,7 +824,7 @@ func LoadObjectsByPrefix(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, // PageSize is the maximum count of items to return. If zero, the server will pick a reasonnable limit. // func (s *server) LoadObjectsByVolume(in *pb.VolumeIndex, stream pb.FileMgr_LoadObjectsByVolumeServer) error { func LoadObjectsByVolume(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.VolumeIndex{} + in := &pb.LoadObjectsByVolumeRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -871,7 +871,7 @@ func LoadObjectsByVolume(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, } defer it.Close() - response := &pb.LoadObjectsResponse{} + response := &pb.LoadObjectsByVolumeReply{} // Objects are not indexed by volume. We have to scan the whole KV and examine each value. // It shouldn't matter as this is only used for compaction, and each object will have to be copied. @@ -929,7 +929,7 @@ func LoadObjectsByVolume(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, // ListPartitions returns a list of partitions for which we have objects. // This is used to emulate a listdir() of partitions below the "objects" directory. func ListPartitions(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.ListPartitionsInfo{} + in := &pb.ListPartitionsRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -1047,7 +1047,7 @@ func ListPartitions(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, erro // ListPartition returns a list of suffixes within a partition func ListPartition(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.ListPartitionInfo{} + in := &pb.ListPartitionRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -1135,7 +1135,7 @@ func ListPartition(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error // ListSuffix returns a list of object hashes below the partition and suffix func ListSuffix(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.ListSuffixInfo{} + in := &pb.ListSuffixRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -1242,7 +1242,7 @@ func ListSuffix(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { // object hash. PageSize is the maximum count of items to return. If zero, // the server will pick a reasonnable limit. func ListQuarantinedOHashes(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.ListQuarantinedOHashesInfo{} + in := &pb.ListQuarantinedOHashesRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -1287,7 +1287,7 @@ func ListQuarantinedOHashes(s *server, ctx context.Context, pbIn *[]byte) (*[]by it := s.kv.NewIterator(quarantinePrefix) defer it.Close() - response := &pb.QuarantinedObjectNames{} + response := &pb.ListQuarantinedOHashesReply{} curKey := make([]byte, maxObjKeyLen) lastOhash := make([]byte, 32) @@ -1331,7 +1331,7 @@ func ListQuarantinedOHashes(s *server, ctx context.Context, pbIn *[]byte) (*[]by } func ListQuarantinedOHash(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.ObjectPrefix{} + in := &pb.ListQuarantinedOHashRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -1364,7 +1364,7 @@ func ListQuarantinedOHash(s *server, ctx context.Context, pbIn *[]byte) (*[]byte it := s.kv.NewIterator(quarantinePrefix) defer it.Close() - response := &pb.LoadObjectsResponse{} + response := &pb.ListQuarantinedOHashReply{} // adds one byte because of prefix. Otherwise len(prefix) would be len(prefix)-1 for it.Seek(prefix); it.Valid() && len(prefix) <= len(it.Key()) && bytes.Equal(prefix, it.Key()[:len(prefix)]); it.Next() { @@ -1392,7 +1392,7 @@ func ListQuarantinedOHash(s *server, ctx context.Context, pbIn *[]byte) (*[]byte } func GetNextOffset(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.GetNextOffsetInfo{} + in := &pb.GetNextOffsetRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") @@ -1429,18 +1429,18 @@ func GetNextOffset(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error } s.statsd_c.Increment("get_next_offset.ok") - return serializePb(&pb.VolumeNextOffset{Offset: uint64(nextOffset)}) + return serializePb(&pb.GetNextOffsetReply{Offset: uint64(nextOffset)}) } // GetStats returns stats for the KV. used for initial debugging, remove? func GetStats(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.GetStatsInfo{} + in := &pb.GetStatsRequest{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") } - response := new(pb.KVStats) + response := new(pb.GetStatsReply) m := CollectStats(s) response.Stats = m @@ -1460,12 +1460,12 @@ func SetKvState(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { reqlog.Debug("RPC Call") s.isClean = in.IsClean - return serializePb(&pb.Empty{}) + return serializePb(&pb.SetKvStateReply{}) } // Gets KV state (is in sync with volumes, or not) func GetKvState(s *server, ctx context.Context, pbIn *[]byte) (*[]byte, error) { - in := &pb.Empty{} + in := &pb.KvState{} if err := proto.Unmarshal(*pbIn, in); err != nil { logrus.Errorf("failed to unmarshal input: %v", err) return nil, status.Errorf(codes.InvalidArgument, "unable to deserialize protobuf") diff --git a/go/swift-rpc-losf/rpc_test.go b/go/swift-rpc-losf/rpc_test.go index 656ed65349..0da9b5e6ad 100644 --- a/go/swift-rpc-losf/rpc_test.go +++ b/go/swift-rpc-losf/rpc_test.go @@ -84,7 +84,7 @@ func check_200(response *http.Response, err error) error { } func populateKV() (err error) { - volumes := []pb.NewVolumeInfo{ + volumes := []pb.RegisterVolumeRequest{ {Partition: 9, Type: 0, VolumeIndex: 20, Offset: 8192, State: 0, RepairTool: false}, {Partition: 10, Type: 0, VolumeIndex: 35, Offset: 8192, State: 0, RepairTool: false}, {Partition: 40, Type: 0, VolumeIndex: 24, Offset: 8192, State: 0, RepairTool: false}, @@ -137,7 +137,7 @@ func populateKV() (err error) { {Partition: 1019, Type: 0, VolumeIndex: 10, Offset: 8192, State: 0, RepairTool: false}, } - objects := []pb.NewObjectInfo{ + objects := []pb.RegisterObjectRequest{ {Name: []byte("85fd12f8961e33cbf7229a94118524fa1515589781.45671.ts"), VolumeIndex: 3, Offset: 8192, NextOffset: 12288, RepairTool: false}, {Name: []byte("84afc1659c7e8271951fe370d6eee0f81515590332.51834.ts"), VolumeIndex: 5, Offset: 4096, NextOffset: 8192, RepairTool: false}, {Name: []byte("f45bf9000f39092b9de5a74256e3eebe1515590648.06511.ts"), VolumeIndex: 7, Offset: 4096, NextOffset: 8192, RepairTool: false}, @@ -270,7 +270,7 @@ func TestMain(m *testing.M) { // - single object // - first and last elements of the KV func TestLoadObjectsByPrefix(t *testing.T) { - prefix := &pb.ObjectPrefix{Prefix: []byte("105de5f388ab4b72e56bc93f36ad388a")} + prefix := &pb.LoadObjectsByPrefixRequest{Prefix: []byte("105de5f388ab4b72e56bc93f36ad388a")} out, err := proto.Marshal(prefix) if err != nil { @@ -289,7 +289,7 @@ func TestLoadObjectsByPrefix(t *testing.T) { } defer response.Body.Close() - r := &pb.LoadObjectsResponse{} + r := &pb.LoadObjectsByPrefixReply{} buf := new(bytes.Buffer) buf.ReadFrom(response.Body) if err = proto.Unmarshal(buf.Bytes(), r); err != nil { @@ -307,7 +307,7 @@ func TestLoadObjectsByPrefix(t *testing.T) { func TestListPartitions(t *testing.T) { partPower := uint32(10) - lpInfo := &pb.ListPartitionsInfo{PartitionBits: partPower} + lpInfo := &pb.ListPartitionsRequest{PartitionBits: partPower} out, err := proto.Marshal(lpInfo) if err != nil { t.Error("failed to marshal") @@ -346,7 +346,7 @@ func TestListSuffix(t *testing.T) { partPower := uint32(10) suffix := []byte("845") - lsInfo := &pb.ListSuffixInfo{Partition: partition, Suffix: suffix, PartitionBits: partPower} + lsInfo := &pb.ListSuffixRequest{Partition: partition, Suffix: suffix, PartitionBits: partPower} out, err := proto.Marshal(lsInfo) if err != nil { t.Error(err) @@ -394,7 +394,7 @@ func TestState(t *testing.T) { } response.Body.Close() - empty := &pb.Empty{} + empty := &pb.GetKvStateRequest{} empty_serialized, err := proto.Marshal(empty) if err != nil { t.Error(err) @@ -452,7 +452,7 @@ func TestState(t *testing.T) { func TestRegisterObject(t *testing.T) { // Register new non-existing object name := []byte("33dea50d391ee52a8ead7cb562a9b4e2/1539791765.84449#5#d.data") - obj := &pb.NewObjectInfo{Name: name, VolumeIndex: 1, Offset: 4096, NextOffset: 8192, RepairTool: false} + obj := &pb.RegisterObjectRequest{Name: name, VolumeIndex: 1, Offset: 4096, NextOffset: 8192, RepairTool: false} out, err := proto.Marshal(obj) if err != nil { t.Fatal(err) @@ -465,7 +465,7 @@ func TestRegisterObject(t *testing.T) { } response.Body.Close() - objInfo := &pb.LoadObjectInfo{Name: name, IsQuarantined: false, RepairTool: false} + objInfo := &pb.LoadObjectRequest{Name: name, IsQuarantined: false, RepairTool: false} out, err = proto.Marshal(objInfo) if err != nil { t.Fatal(err) @@ -488,7 +488,7 @@ func TestRegisterObject(t *testing.T) { } // Register existing object, which should fail - obj = &pb.NewObjectInfo{Name: name, VolumeIndex: 1, Offset: 4096, NextOffset: 8192, RepairTool: false} + obj = &pb.RegisterObjectRequest{Name: name, VolumeIndex: 1, Offset: 4096, NextOffset: 8192, RepairTool: false} out, err = proto.Marshal(obj) if err != nil { t.Fatal(err) @@ -504,7 +504,7 @@ func TestRegisterObject(t *testing.T) { response.Body.Close() // Remove object - unregInfo := &pb.ObjectName{Name: name} + unregInfo := &pb.UnregisterObjectRequest{Name: name} out, err = proto.Marshal(unregInfo) if err != nil { t.Fatal(err) @@ -530,7 +530,7 @@ func TestRegisterObject(t *testing.T) { func TestQuarantineObject(t *testing.T) { // Quarantine an existing object name := []byte("bf43763a98208f15da803e76bf52e7d11515750803.01357#0#d.data") - objName := &pb.ObjectName{Name: name, RepairTool: false} + objName := &pb.QuarantineObjectRequest{Name: name, RepairTool: false} out, err := proto.Marshal(objName) if err != nil { t.Fatal(err) @@ -543,7 +543,7 @@ func TestQuarantineObject(t *testing.T) { response.Body.Close() // We shouldn't be able to find it - objInfo := &pb.LoadObjectInfo{Name: name, IsQuarantined: false, RepairTool: false} + objInfo := &pb.LoadObjectRequest{Name: name, IsQuarantined: false, RepairTool: false} out, err = proto.Marshal(objInfo) if err != nil { t.Fatal(err) @@ -565,7 +565,7 @@ func TestQuarantineObject(t *testing.T) { func TestUnquarantineObject(t *testing.T) { // Unquarantine an existing quarantined object (check that) name := []byte("bf43763a98208f15da803e76bf52e7d11515750803.01357#0#d.data") - objName := &pb.ObjectName{Name: name, RepairTool: false} + objName := &pb.UnquarantineObjectRequest{Name: name, RepairTool: false} out, err := proto.Marshal(objName) if err != nil { t.Fatal(err) @@ -579,7 +579,7 @@ func TestUnquarantineObject(t *testing.T) { response.Body.Close() // We should be able to find it - objInfo := &pb.LoadObjectInfo{Name: name, IsQuarantined: false, RepairTool: false} + objInfo := &pb.LoadObjectRequest{Name: name, IsQuarantined: false, RepairTool: false} out, err = proto.Marshal(objInfo) if err != nil { t.Fatal(err) @@ -599,7 +599,7 @@ func TestUnquarantineObject(t *testing.T) { // This test modifies the DB func TestListQuarantinedOHashes(t *testing.T) { // We shouldn't find any quarantined object initially - lqInfo := &pb.ListQuarantinedOHashesInfo{PageSize: 100} + lqInfo := &pb.ListQuarantinedOHashesRequest{PageSize: 100} out, err := proto.Marshal(lqInfo) if err != nil { t.Fatal(err) @@ -611,7 +611,7 @@ func TestListQuarantinedOHashes(t *testing.T) { t.Fatalf("failed to list quarantined ohashes: %v", err) } - r := &pb.QuarantinedObjectNames{} + r := &pb.ListQuarantinedOHashesReply{} buf := new(bytes.Buffer) buf.ReadFrom(response.Body) if err = proto.Unmarshal(buf.Bytes(), r); err != nil { @@ -624,7 +624,7 @@ func TestListQuarantinedOHashes(t *testing.T) { response.Body.Close() // Quarantine a few objects and check we can find them - objectsToQuarantine := []pb.ObjectName{ + objectsToQuarantine := []pb.QuarantineObjectRequest{ {Name: []byte("02573d31b770cda8e0effd7762e8a0751515750801.09785#2#d.data"), RepairTool: false}, {Name: []byte("6b08eabf5667557c72dc6570aa1fb8451515750801.08639#4#d.data"), RepairTool: false}, {Name: []byte("6b08eabf5667557c72dc6570aa1fb8451515750856.77219.meta"), RepairTool: false}, @@ -658,7 +658,7 @@ func TestListQuarantinedOHashes(t *testing.T) { } // List quarantined objects - lqInfo = &pb.ListQuarantinedOHashesInfo{PageSize: 100} + lqInfo = &pb.ListQuarantinedOHashesRequest{PageSize: 100} out, err = proto.Marshal(lqInfo) if err != nil { t.Fatal(err) @@ -670,7 +670,7 @@ func TestListQuarantinedOHashes(t *testing.T) { t.Fatalf("failed to list quarantined ohashes: %v", err) } - r = &pb.QuarantinedObjectNames{} + r = &pb.ListQuarantinedOHashesReply{} buf.Reset() buf.ReadFrom(response.Body) if err = proto.Unmarshal(buf.Bytes(), r); err != nil { @@ -694,7 +694,7 @@ func TestListQuarantinedOHashes(t *testing.T) { } // List quarantined objects, with a PageSize of 1 - lqInfo = &pb.ListQuarantinedOHashesInfo{PageSize: 1} + lqInfo = &pb.ListQuarantinedOHashesRequest{PageSize: 1} out, err = proto.Marshal(lqInfo) if err != nil { t.Fatal(err) @@ -706,7 +706,7 @@ func TestListQuarantinedOHashes(t *testing.T) { t.Fatalf("failed to list quarantined ohashes: %v", err) } - r = &pb.QuarantinedObjectNames{} + r = &pb.ListQuarantinedOHashesReply{} buf.Reset() buf.ReadFrom(response.Body) if err = proto.Unmarshal(buf.Bytes(), r); err != nil { @@ -730,7 +730,7 @@ func TestListQuarantinedOHashes(t *testing.T) { } // Get the next two entries - lqInfo = &pb.ListQuarantinedOHashesInfo{PageSize: 2, PageToken: r.NextPageToken} + lqInfo = &pb.ListQuarantinedOHashesRequest{PageSize: 2, PageToken: r.NextPageToken} out, err = proto.Marshal(lqInfo) if err != nil { t.Fatal(err) @@ -742,7 +742,7 @@ func TestListQuarantinedOHashes(t *testing.T) { t.Fatalf("failed to list quarantined ohashes: %v", err) } - r = &pb.QuarantinedObjectNames{} + r = &pb.ListQuarantinedOHashesReply{} buf.Reset() buf.ReadFrom(response.Body) if err = proto.Unmarshal(buf.Bytes(), r); err != nil { @@ -766,7 +766,7 @@ func TestListQuarantinedOHashes(t *testing.T) { } // Get all remaining entries - lqInfo = &pb.ListQuarantinedOHashesInfo{PageSize: 100, PageToken: r.NextPageToken} + lqInfo = &pb.ListQuarantinedOHashesRequest{PageSize: 100, PageToken: r.NextPageToken} out, err = proto.Marshal(lqInfo) if err != nil { t.Fatal(err) @@ -778,7 +778,7 @@ func TestListQuarantinedOHashes(t *testing.T) { t.Fatalf("failed to list quarantined ohashes: %v", err) } - r = &pb.QuarantinedObjectNames{} + r = &pb.ListQuarantinedOHashesReply{} buf.Reset() buf.ReadFrom(response.Body) if err = proto.Unmarshal(buf.Bytes(), r); err != nil { @@ -805,7 +805,7 @@ func TestListQuarantinedOHashes(t *testing.T) { func TestLoadObjectsByVolume(t *testing.T) { // List non quarantined objects from volume 22, we should not find any - volIndex := &pb.VolumeIndex{Index: 22} + volIndex := &pb.LoadObjectsByVolumeRequest{Index: 22} out, err := proto.Marshal(volIndex) if err != nil { t.Fatal(err) @@ -817,7 +817,7 @@ func TestLoadObjectsByVolume(t *testing.T) { t.Fatalf("failed to call LoadObjectsByVolume: %v", err) } - r := &pb.LoadObjectsResponse{} + r := &pb.LoadObjectsByVolumeReply{} buf := new(bytes.Buffer) buf.ReadFrom(response.Body) if err = proto.Unmarshal(buf.Bytes(), r); err != nil { @@ -829,7 +829,7 @@ func TestLoadObjectsByVolume(t *testing.T) { } // List quarantined objects from volume 22 - volIndex = &pb.VolumeIndex{Index: 22, Quarantined: true} + volIndex = &pb.LoadObjectsByVolumeRequest{Index: 22, Quarantined: true} out, err = proto.Marshal(volIndex) if err != nil { t.Fatal(err) @@ -841,7 +841,7 @@ func TestLoadObjectsByVolume(t *testing.T) { t.Fatalf("failed to call LoadObjectsByVolume: %v", err) } - r = &pb.LoadObjectsResponse{} + r = &pb.LoadObjectsByVolumeReply{} buf = new(bytes.Buffer) buf.ReadFrom(response.Body) if err = proto.Unmarshal(buf.Bytes(), r); err != nil { @@ -875,7 +875,7 @@ func TestLoadObjectsByVolume(t *testing.T) { } // List quarantined objects from volume 22 with pagination - volIndex = &pb.VolumeIndex{Index: 22, Quarantined: true, PageSize: 1} + volIndex = &pb.LoadObjectsByVolumeRequest{Index: 22, Quarantined: true, PageSize: 1} out, err = proto.Marshal(volIndex) if err != nil { t.Fatal(err) @@ -887,7 +887,7 @@ func TestLoadObjectsByVolume(t *testing.T) { t.Fatalf("failed to call LoadObjectsByVolume: %v", err) } - r = &pb.LoadObjectsResponse{} + r = &pb.LoadObjectsByVolumeReply{} buf = new(bytes.Buffer) buf.ReadFrom(response.Body) if err = proto.Unmarshal(buf.Bytes(), r); err != nil { @@ -914,7 +914,7 @@ func TestLoadObjectsByVolume(t *testing.T) { } // Second call with pagination - volIndex = &pb.VolumeIndex{Index: 22, Quarantined: true, PageSize: 1, PageToken: r.NextPageToken} + volIndex = &pb.LoadObjectsByVolumeRequest{Index: 22, Quarantined: true, PageSize: 1, PageToken: r.NextPageToken} out, err = proto.Marshal(volIndex) if err != nil { t.Fatal(err) @@ -926,7 +926,7 @@ func TestLoadObjectsByVolume(t *testing.T) { t.Fatalf("failed to call LoadObjectsByVolume: %v", err) } - r = &pb.LoadObjectsResponse{} + r = &pb.LoadObjectsByVolumeReply{} buf = new(bytes.Buffer) buf.ReadFrom(response.Body) if err = proto.Unmarshal(buf.Bytes(), r); err != nil { @@ -953,7 +953,7 @@ func TestLoadObjectsByVolume(t *testing.T) { } func TestListQuarantinedOHash(t *testing.T) { - ohash := &pb.ObjectPrefix{Prefix: []byte("6b08eabf5667557c72dc6570aa1fb845"), RepairTool: false} + ohash := &pb.ListQuarantinedOHashRequest{Prefix: []byte("6b08eabf5667557c72dc6570aa1fb845"), RepairTool: false} out, err := proto.Marshal(ohash) if err != nil { t.Fatal(err) @@ -965,7 +965,7 @@ func TestListQuarantinedOHash(t *testing.T) { t.Fatalf("error listing quarantined object files: %s", err) } - qList := &pb.LoadObjectsResponse{} + qList := &pb.ListQuarantinedOHashReply{} buf := new(bytes.Buffer) buf.ReadFrom(response.Body) if err = proto.Unmarshal(buf.Bytes(), qList); err != nil { diff --git a/swift/obj/fmgr.proto b/swift/obj/fmgr.proto index 53a80a8688..2604305bb4 100644 --- a/swift/obj/fmgr.proto +++ b/swift/obj/fmgr.proto @@ -5,39 +5,186 @@ package filemgr; // Python: protoc -I. --python_out=. fmgr.proto // Golang : protoc -I proto proto/fmgr.proto --go_out=proto -message ListPartitionsInfo { +message RegisterVolumeRequest { + uint32 partition = 1; // Swift partition + VolumeType type = 2; + uint32 volume_index = 3; + uint64 offset = 4; // Next available offset to use in the volume. + VolumeState state = 5; + bool repair_tool = 6; // Request is coming from a repair tool +} + +message RegisterVolumeReply {} + +message UnregisterVolumeRequest { + uint32 index = 1; + bool repair_tool = 2; +} + +message UnregisterVolumeReply {} + +message UpdateVolumeStateRequest { + uint32 volume_index = 1; + VolumeState state = 2; + bool repair_tool = 3; +} + +message UpdateVolumeStateReply {} + +message GetVolumeRequest { + uint32 index = 1; + bool repair_tool = 2; +} + +message GetVolumeReply { + uint32 volume_index = 1; + VolumeType volume_type = 2; + uint32 volume_state = 3; + uint32 partition = 4; + uint64 next_offset = 5; +} + +message ListVolumesRequest { + uint32 partition = 1; + VolumeType type = 2; + bool repair_tool = 3; +} + +message ListVolumesReply { + repeated Volume volumes = 1; +} + +message RegisterObjectRequest { + bytes name = 1; + uint32 volume_index = 2; + uint64 offset = 3; // Object offset within volume + uint64 next_offset = 4; // Next offset to start from in the volume + bool repair_tool = 5; +} + +message RegisterObjectReply {} + +message UnregisterObjectRequest { + bytes name = 1; + bool repair_tool = 2; +} + +message UnregisterObjectReply {} + +message RenameObjectRequest { + bytes name = 1; + bytes new_name = 2; + bool repair_tool = 3; +} + +message RenameObjectReply {} + +message LoadObjectRequest { + bytes name = 1; + bool is_quarantined = 2; + bool repair_tool = 3; +} + +message LoadObjectReply { + bytes name = 1; + uint32 volume_index = 2; + uint64 offset = 3; +} + +message QuarantineObjectRequest { + bytes name = 1; + bool repair_tool = 2; +} + +message QuarantineObjectReply {} + +message UnquarantineObjectRequest { + bytes name = 1; + bool repair_tool = 2; +} + +message UnquarantineObjectReply {} + +message LoadObjectsByPrefixRequest { + bytes prefix = 1; + bool repair_tool = 2; +} + +message LoadObjectsByPrefixReply { + repeated Object objects = 1; +} + +message LoadObjectsByVolumeRequest { + uint32 index = 1; + bool quarantined = 2; // List only quarantined files, if true + bytes page_token = 3; + uint32 page_size = 4; + bool repair_tool = 5; +} + +message LoadObjectsByVolumeReply { + repeated Object objects = 1; + bytes next_page_token = 2; +} + +message ListPartitionsRequest { uint32 partition_bits = 1; } -message ListPartitionInfo { +message ListPartitionRequest { uint32 partition = 1; uint32 partition_bits = 2; } -message ListSuffixInfo { +message ListSuffixRequest { uint32 partition = 1; bytes suffix = 2; uint32 partition_bits = 3; } -// Generic reply message for List* functions (listdir like) -message DirEntries { - repeated string entry = 1; +message ListQuarantinedOHashesRequest { + bytes page_token = 1; + uint32 page_size = 2; } -message VolumeIndex { - uint32 index = 1; - - // List only quarantined files, if true - bool quarantined = 2; - - bytes page_token = 3; - uint32 page_size = 4; - - // Is this request coming from a repair tool ? - bool repair_tool = 5; +message ListQuarantinedOHashesReply { + repeated QuarantinedObjectName objects = 1; + bytes next_page_token = 2; } +message ListQuarantinedOHashRequest { + bytes prefix = 1; + bool repair_tool = 2; +} + +message ListQuarantinedOHashReply { + repeated Object objects = 1; +} + +message GetNextOffsetRequest { + uint32 volume_index = 1; + bool repair_tool = 2; +} + +message GetNextOffsetReply { + uint64 offset = 1; +} + +message GetStatsRequest {} + +message GetStatsReply { + map stats = 1; +} + +message SetKvStateReply {} + +message GetKvStateRequest {} + +message KvState { + bool isClean = 1; +} + +// Generic messages message Volume { uint32 volume_index = 1; VolumeType volume_type = 2; @@ -46,43 +193,28 @@ message Volume { uint64 next_offset = 5; } -// Similar to volume but we don't want to require the -// partition -message GetNextOffsetInfo { - uint32 volume_index = 1; - uint32 volume_type = 2; - uint32 volume_state = 3; - - // Is this request coming from a repair tool ? - bool repair_tool = 4; +message Object { + bytes name = 1; + uint32 volume_index = 2; + uint64 offset = 3; } -message ListVolumesInfo { - uint32 partition = 1; - - VolumeType type = 2; - - // Is this request coming from a repair tool ? - bool repair_tool = 3; +message QuarantinedObjectName { + bytes name = 1; } -message Volumes { - repeated Volume volumes = 1; +// For listdir() like functions +message DirEntries { + repeated string entry = 1; } -// The response message to GetNextOffset -message VolumeNextOffset { - uint64 offset = 1; -} - -// Volume type +// Enums enum VolumeType { VOLUME_DEFAULT = 0; VOLUME_TOMBSTONE = 1; VOLUME_X_DELETE_AT = 2; } -// VolumeState state enum VolumeState { // Default state, volume can be read from and written to STATE_RW = 0; @@ -91,157 +223,3 @@ enum VolumeState { // Volume is a compaction target. New objects cannot be appended STATE_COMPACTION_TARGET = 2; } - -// The request message for a new volume -message NewVolumeInfo { - // Swift partition - uint32 partition = 1; - - VolumeType type = 2; - - // Index number of the volume. It is up to the client to map this to an actual filename. - uint32 volume_index = 3; - - // Next available offset to use in the volume. - uint64 offset = 4; - - VolumeState state = 5; - - // Is this request coming from a repair tool ? - bool repair_tool = 6; -} - -message NewVolumeState { - uint32 volume_index = 1; - VolumeState state = 2; - - // Is this request coming from a repair tool ? - bool repair_tool = 3; -} - -// The response message for a new volume -message NewVolumeReply { -} - -message DelObjectReply { -} - -message RenameReply { -} - -// The request message for a new object -message NewObjectInfo { - // Object "name". Name made of (md5, timestamp, etc..) - bytes name = 1; - - // Index number of the volume. - uint32 volume_index = 2; - - // Start offset of the object in the volume. - uint64 offset = 3; - - // Next available offset to use in the volume. - uint64 next_offset = 4; - - // Is this request coming from a repair tool ? - bool repair_tool = 5; -} - -// The response message for a new object -// Currently empty, but we may want to return something in the future -message NewObjectReply { -} - -message QuarantinedObjectName { - bytes name = 1; -} - -message QuarantinedObjectNames { - repeated QuarantinedObjectName objects = 1; - bytes next_page_token = 2; -} - -message ObjectName { - // name of the object. - bytes name = 1; - - // Is this request coming from a repair tool ? - bool repair_tool = 2; -} - -message LoadObjectInfo { - // name of the object. - bytes name = 1; - - // Is it quarantined ? - bool is_quarantined = 2; - - // Is this request coming from a repair tool ? - bool repair_tool = 5; -} - -// The request message to rename an object -message RenameInfo { - // name of the object. - bytes name = 1; - - // new name of the object - bytes new_name = 2; - - // Is this request coming from a repair tool ? - bool repair_tool = 3; -} - -message Object { - // name of the object. - bytes name = 1; - - // Index number of the volume. - uint32 volume_index = 2; - - // Start offset of the object in the volume. - uint64 offset = 3; -} - -message LoadObjectsResponse { - repeated Object objects = 1; - bytes next_page_token = 2; -} - -message ObjectPrefix { - bytes prefix = 1; - - // Is this request coming from a repair tool ? - bool repair_tool = 2; -} - -message Empty { -} - -message GetStatsInfo { -} - -message PartitionContent { - repeated FullPathEntry file_entries = 1; -} - -message FullPathEntry { - // We could add the partition if needed - bytes suffix = 1; - bytes ohash = 2; // Object hash - bytes filename = 3; // '.data', '.meta'.. files -} - -message KvState { - bool isClean = 1; -} - -// KV stats -message KVStats { - map stats = 1; -} - -message ListQuarantinedOHashesInfo { - bytes page_token = 1; - uint32 page_size = 2; -} diff --git a/swift/obj/fmgr_pb2.py b/swift/obj/fmgr_pb2.py index 996f8827a1..161aa7693a 100644 --- a/swift/obj/fmgr_pb2.py +++ b/swift/obj/fmgr_pb2.py @@ -19,7 +19,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( package='filemgr', syntax='proto3', serialized_options=None, - serialized_pb=b'\n\nfmgr.proto\x12\x07\x66ilemgr\",\n\x12ListPartitionsInfo\x12\x16\n\x0epartition_bits\x18\x01 \x01(\r\">\n\x11ListPartitionInfo\x12\x11\n\tpartition\x18\x01 \x01(\r\x12\x16\n\x0epartition_bits\x18\x02 \x01(\r\"K\n\x0eListSuffixInfo\x12\x11\n\tpartition\x18\x01 \x01(\r\x12\x0e\n\x06suffix\x18\x02 \x01(\x0c\x12\x16\n\x0epartition_bits\x18\x03 \x01(\r\"\x1b\n\nDirEntries\x12\r\n\x05\x65ntry\x18\x01 \x03(\t\"m\n\x0bVolumeIndex\x12\r\n\x05index\x18\x01 \x01(\r\x12\x13\n\x0bquarantined\x18\x02 \x01(\x08\x12\x12\n\npage_token\x18\x03 \x01(\x0c\x12\x11\n\tpage_size\x18\x04 \x01(\r\x12\x13\n\x0brepair_tool\x18\x05 \x01(\x08\"\x86\x01\n\x06Volume\x12\x14\n\x0cvolume_index\x18\x01 \x01(\r\x12(\n\x0bvolume_type\x18\x02 \x01(\x0e\x32\x13.filemgr.VolumeType\x12\x14\n\x0cvolume_state\x18\x03 \x01(\r\x12\x11\n\tpartition\x18\x04 \x01(\r\x12\x13\n\x0bnext_offset\x18\x05 \x01(\x04\"i\n\x11GetNextOffsetInfo\x12\x14\n\x0cvolume_index\x18\x01 \x01(\r\x12\x13\n\x0bvolume_type\x18\x02 \x01(\r\x12\x14\n\x0cvolume_state\x18\x03 \x01(\r\x12\x13\n\x0brepair_tool\x18\x04 \x01(\x08\"\\\n\x0fListVolumesInfo\x12\x11\n\tpartition\x18\x01 \x01(\r\x12!\n\x04type\x18\x02 \x01(\x0e\x32\x13.filemgr.VolumeType\x12\x13\n\x0brepair_tool\x18\x03 \x01(\x08\"+\n\x07Volumes\x12 \n\x07volumes\x18\x01 \x03(\x0b\x32\x0f.filemgr.Volume\"\"\n\x10VolumeNextOffset\x12\x0e\n\x06offset\x18\x01 \x01(\x04\"\xa5\x01\n\rNewVolumeInfo\x12\x11\n\tpartition\x18\x01 \x01(\r\x12!\n\x04type\x18\x02 \x01(\x0e\x32\x13.filemgr.VolumeType\x12\x14\n\x0cvolume_index\x18\x03 \x01(\r\x12\x0e\n\x06offset\x18\x04 \x01(\x04\x12#\n\x05state\x18\x05 \x01(\x0e\x32\x14.filemgr.VolumeState\x12\x13\n\x0brepair_tool\x18\x06 \x01(\x08\"`\n\x0eNewVolumeState\x12\x14\n\x0cvolume_index\x18\x01 \x01(\r\x12#\n\x05state\x18\x02 \x01(\x0e\x32\x14.filemgr.VolumeState\x12\x13\n\x0brepair_tool\x18\x03 \x01(\x08\"\x10\n\x0eNewVolumeReply\"\x10\n\x0e\x44\x65lObjectReply\"\r\n\x0bRenameReply\"m\n\rNewObjectInfo\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\x14\n\x0cvolume_index\x18\x02 \x01(\r\x12\x0e\n\x06offset\x18\x03 \x01(\x04\x12\x13\n\x0bnext_offset\x18\x04 \x01(\x04\x12\x13\n\x0brepair_tool\x18\x05 \x01(\x08\"\x10\n\x0eNewObjectReply\"%\n\x15QuarantinedObjectName\x12\x0c\n\x04name\x18\x01 \x01(\x0c\"b\n\x16QuarantinedObjectNames\x12/\n\x07objects\x18\x01 \x03(\x0b\x32\x1e.filemgr.QuarantinedObjectName\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\"/\n\nObjectName\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\x13\n\x0brepair_tool\x18\x02 \x01(\x08\"K\n\x0eLoadObjectInfo\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\x16\n\x0eis_quarantined\x18\x02 \x01(\x08\x12\x13\n\x0brepair_tool\x18\x05 \x01(\x08\"A\n\nRenameInfo\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\x10\n\x08new_name\x18\x02 \x01(\x0c\x12\x13\n\x0brepair_tool\x18\x03 \x01(\x08\"<\n\x06Object\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\x14\n\x0cvolume_index\x18\x02 \x01(\r\x12\x0e\n\x06offset\x18\x03 \x01(\x04\"P\n\x13LoadObjectsResponse\x12 \n\x07objects\x18\x01 \x03(\x0b\x32\x0f.filemgr.Object\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\"3\n\x0cObjectPrefix\x12\x0e\n\x06prefix\x18\x01 \x01(\x0c\x12\x13\n\x0brepair_tool\x18\x02 \x01(\x08\"\x07\n\x05\x45mpty\"\x0e\n\x0cGetStatsInfo\"@\n\x10PartitionContent\x12,\n\x0c\x66ile_entries\x18\x01 \x03(\x0b\x32\x16.filemgr.FullPathEntry\"@\n\rFullPathEntry\x12\x0e\n\x06suffix\x18\x01 \x01(\x0c\x12\r\n\x05ohash\x18\x02 \x01(\x0c\x12\x10\n\x08\x66ilename\x18\x03 \x01(\x0c\"\x1a\n\x07KvState\x12\x0f\n\x07isClean\x18\x01 \x01(\x08\"c\n\x07KVStats\x12*\n\x05stats\x18\x01 \x03(\x0b\x32\x1b.filemgr.KVStats.StatsEntry\x1a,\n\nStatsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x04:\x02\x38\x01\"C\n\x1aListQuarantinedOHashesInfo\x12\x12\n\npage_token\x18\x01 \x01(\x0c\x12\x11\n\tpage_size\x18\x02 \x01(\r*N\n\nVolumeType\x12\x12\n\x0eVOLUME_DEFAULT\x10\x00\x12\x14\n\x10VOLUME_TOMBSTONE\x10\x01\x12\x16\n\x12VOLUME_X_DELETE_AT\x10\x02*R\n\x0bVolumeState\x12\x0c\n\x08STATE_RW\x10\x00\x12\x18\n\x14STATE_COMPACTION_SRC\x10\x01\x12\x1b\n\x17STATE_COMPACTION_TARGET\x10\x02\x62\x06proto3' + serialized_pb=b'\n\nfmgr.proto\x12\x07\x66ilemgr\"\xad\x01\n\x15RegisterVolumeRequest\x12\x11\n\tpartition\x18\x01 \x01(\r\x12!\n\x04type\x18\x02 \x01(\x0e\x32\x13.filemgr.VolumeType\x12\x14\n\x0cvolume_index\x18\x03 \x01(\r\x12\x0e\n\x06offset\x18\x04 \x01(\x04\x12#\n\x05state\x18\x05 \x01(\x0e\x32\x14.filemgr.VolumeState\x12\x13\n\x0brepair_tool\x18\x06 \x01(\x08\"\x15\n\x13RegisterVolumeReply\"=\n\x17UnregisterVolumeRequest\x12\r\n\x05index\x18\x01 \x01(\r\x12\x13\n\x0brepair_tool\x18\x02 \x01(\x08\"\x17\n\x15UnregisterVolumeReply\"j\n\x18UpdateVolumeStateRequest\x12\x14\n\x0cvolume_index\x18\x01 \x01(\r\x12#\n\x05state\x18\x02 \x01(\x0e\x32\x14.filemgr.VolumeState\x12\x13\n\x0brepair_tool\x18\x03 \x01(\x08\"\x18\n\x16UpdateVolumeStateReply\"6\n\x10GetVolumeRequest\x12\r\n\x05index\x18\x01 \x01(\r\x12\x13\n\x0brepair_tool\x18\x02 \x01(\x08\"\x8e\x01\n\x0eGetVolumeReply\x12\x14\n\x0cvolume_index\x18\x01 \x01(\r\x12(\n\x0bvolume_type\x18\x02 \x01(\x0e\x32\x13.filemgr.VolumeType\x12\x14\n\x0cvolume_state\x18\x03 \x01(\r\x12\x11\n\tpartition\x18\x04 \x01(\r\x12\x13\n\x0bnext_offset\x18\x05 \x01(\x04\"_\n\x12ListVolumesRequest\x12\x11\n\tpartition\x18\x01 \x01(\r\x12!\n\x04type\x18\x02 \x01(\x0e\x32\x13.filemgr.VolumeType\x12\x13\n\x0brepair_tool\x18\x03 \x01(\x08\"4\n\x10ListVolumesReply\x12 \n\x07volumes\x18\x01 \x03(\x0b\x32\x0f.filemgr.Volume\"u\n\x15RegisterObjectRequest\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\x14\n\x0cvolume_index\x18\x02 \x01(\r\x12\x0e\n\x06offset\x18\x03 \x01(\x04\x12\x13\n\x0bnext_offset\x18\x04 \x01(\x04\x12\x13\n\x0brepair_tool\x18\x05 \x01(\x08\"\x15\n\x13RegisterObjectReply\"<\n\x17UnregisterObjectRequest\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\x13\n\x0brepair_tool\x18\x02 \x01(\x08\"\x17\n\x15UnregisterObjectReply\"J\n\x13RenameObjectRequest\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\x10\n\x08new_name\x18\x02 \x01(\x0c\x12\x13\n\x0brepair_tool\x18\x03 \x01(\x08\"\x13\n\x11RenameObjectReply\"N\n\x11LoadObjectRequest\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\x16\n\x0eis_quarantined\x18\x02 \x01(\x08\x12\x13\n\x0brepair_tool\x18\x03 \x01(\x08\"E\n\x0fLoadObjectReply\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\x14\n\x0cvolume_index\x18\x02 \x01(\r\x12\x0e\n\x06offset\x18\x03 \x01(\x04\"<\n\x17QuarantineObjectRequest\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\x13\n\x0brepair_tool\x18\x02 \x01(\x08\"\x17\n\x15QuarantineObjectReply\">\n\x19UnquarantineObjectRequest\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\x13\n\x0brepair_tool\x18\x02 \x01(\x08\"\x19\n\x17UnquarantineObjectReply\"A\n\x1aLoadObjectsByPrefixRequest\x12\x0e\n\x06prefix\x18\x01 \x01(\x0c\x12\x13\n\x0brepair_tool\x18\x02 \x01(\x08\"<\n\x18LoadObjectsByPrefixReply\x12 \n\x07objects\x18\x01 \x03(\x0b\x32\x0f.filemgr.Object\"|\n\x1aLoadObjectsByVolumeRequest\x12\r\n\x05index\x18\x01 \x01(\r\x12\x13\n\x0bquarantined\x18\x02 \x01(\x08\x12\x12\n\npage_token\x18\x03 \x01(\x0c\x12\x11\n\tpage_size\x18\x04 \x01(\r\x12\x13\n\x0brepair_tool\x18\x05 \x01(\x08\"U\n\x18LoadObjectsByVolumeReply\x12 \n\x07objects\x18\x01 \x03(\x0b\x32\x0f.filemgr.Object\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\"/\n\x15ListPartitionsRequest\x12\x16\n\x0epartition_bits\x18\x01 \x01(\r\"A\n\x14ListPartitionRequest\x12\x11\n\tpartition\x18\x01 \x01(\r\x12\x16\n\x0epartition_bits\x18\x02 \x01(\r\"N\n\x11ListSuffixRequest\x12\x11\n\tpartition\x18\x01 \x01(\r\x12\x0e\n\x06suffix\x18\x02 \x01(\x0c\x12\x16\n\x0epartition_bits\x18\x03 \x01(\r\"F\n\x1dListQuarantinedOHashesRequest\x12\x12\n\npage_token\x18\x01 \x01(\x0c\x12\x11\n\tpage_size\x18\x02 \x01(\r\"g\n\x1bListQuarantinedOHashesReply\x12/\n\x07objects\x18\x01 \x03(\x0b\x32\x1e.filemgr.QuarantinedObjectName\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\"%\n\x15QuarantinedObjectName\x12\x0c\n\x04name\x18\x01 \x01(\x0c\"B\n\x1bListQuarantinedOHashRequest\x12\x0e\n\x06prefix\x18\x01 \x01(\x0c\x12\x13\n\x0brepair_tool\x18\x02 \x01(\x08\"=\n\x19ListQuarantinedOHashReply\x12 \n\x07objects\x18\x01 \x03(\x0b\x32\x0f.filemgr.Object\"A\n\x14GetNextOffsetRequest\x12\x14\n\x0cvolume_index\x18\x01 \x01(\r\x12\x13\n\x0brepair_tool\x18\x02 \x01(\x08\"$\n\x12GetNextOffsetReply\x12\x0e\n\x06offset\x18\x01 \x01(\x04\"\x11\n\x0fGetStatsRequest\"o\n\rGetStatsReply\x12\x30\n\x05stats\x18\x01 \x03(\x0b\x32!.filemgr.GetStatsReply.StatsEntry\x1a,\n\nStatsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x04:\x02\x38\x01\"\x11\n\x0fSetKvStateReply\"\x13\n\x11GetKvStateRequest\"\x1a\n\x07KvState\x12\x0f\n\x07isClean\x18\x01 \x01(\x08\"\x86\x01\n\x06Volume\x12\x14\n\x0cvolume_index\x18\x01 \x01(\r\x12(\n\x0bvolume_type\x18\x02 \x01(\x0e\x32\x13.filemgr.VolumeType\x12\x14\n\x0cvolume_state\x18\x03 \x01(\r\x12\x11\n\tpartition\x18\x04 \x01(\r\x12\x13\n\x0bnext_offset\x18\x05 \x01(\x04\"<\n\x06Object\x12\x0c\n\x04name\x18\x01 \x01(\x0c\x12\x14\n\x0cvolume_index\x18\x02 \x01(\r\x12\x0e\n\x06offset\x18\x03 \x01(\x04\"\x1b\n\nDirEntries\x12\r\n\x05\x65ntry\x18\x01 \x03(\t*N\n\nVolumeType\x12\x12\n\x0eVOLUME_DEFAULT\x10\x00\x12\x14\n\x10VOLUME_TOMBSTONE\x10\x01\x12\x16\n\x12VOLUME_X_DELETE_AT\x10\x02*R\n\x0bVolumeState\x12\x0c\n\x08STATE_RW\x10\x00\x12\x18\n\x14STATE_COMPACTION_SRC\x10\x01\x12\x1b\n\x17STATE_COMPACTION_TARGET\x10\x02\x62\x06proto3' ) _VOLUMETYPE = _descriptor.EnumDescriptor( @@ -43,8 +43,8 @@ _VOLUMETYPE = _descriptor.EnumDescriptor( ], containing_type=None, serialized_options=None, - serialized_start=2099, - serialized_end=2177, + serialized_start=2869, + serialized_end=2947, ) _sym_db.RegisterEnumDescriptor(_VOLUMETYPE) @@ -70,8 +70,8 @@ _VOLUMESTATE = _descriptor.EnumDescriptor( ], containing_type=None, serialized_options=None, - serialized_start=2179, - serialized_end=2261, + serialized_start=2949, + serialized_end=3031, ) _sym_db.RegisterEnumDescriptor(_VOLUMESTATE) @@ -85,103 +85,55 @@ STATE_COMPACTION_TARGET = 2 -_LISTPARTITIONSINFO = _descriptor.Descriptor( - name='ListPartitionsInfo', - full_name='filemgr.ListPartitionsInfo', +_REGISTERVOLUMEREQUEST = _descriptor.Descriptor( + name='RegisterVolumeRequest', + full_name='filemgr.RegisterVolumeRequest', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='partition_bits', full_name='filemgr.ListPartitionsInfo.partition_bits', index=0, - number=1, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=23, - serialized_end=67, -) - - -_LISTPARTITIONINFO = _descriptor.Descriptor( - name='ListPartitionInfo', - full_name='filemgr.ListPartitionInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partition', full_name='filemgr.ListPartitionInfo.partition', index=0, + name='partition', full_name='filemgr.RegisterVolumeRequest.partition', index=0, number=1, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='partition_bits', full_name='filemgr.ListPartitionInfo.partition_bits', index=1, - number=2, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=69, - serialized_end=131, -) - - -_LISTSUFFIXINFO = _descriptor.Descriptor( - name='ListSuffixInfo', - full_name='filemgr.ListSuffixInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partition', full_name='filemgr.ListSuffixInfo.partition', index=0, - number=1, type=13, cpp_type=3, label=1, + name='type', full_name='filemgr.RegisterVolumeRequest.type', index=1, + number=2, type=14, cpp_type=8, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='suffix', full_name='filemgr.ListSuffixInfo.suffix', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partition_bits', full_name='filemgr.ListSuffixInfo.partition_bits', index=2, + name='volume_index', full_name='filemgr.RegisterVolumeRequest.volume_index', index=2, number=3, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='offset', full_name='filemgr.RegisterVolumeRequest.offset', index=3, + number=4, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='state', full_name='filemgr.RegisterVolumeRequest.state', index=4, + number=5, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repair_tool', full_name='filemgr.RegisterVolumeRequest.repair_tool', index=5, + number=6, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -194,21 +146,318 @@ _LISTSUFFIXINFO = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=133, - serialized_end=208, + serialized_start=24, + serialized_end=197, ) -_DIRENTRIES = _descriptor.Descriptor( - name='DirEntries', - full_name='filemgr.DirEntries', +_REGISTERVOLUMEREPLY = _descriptor.Descriptor( + name='RegisterVolumeReply', + full_name='filemgr.RegisterVolumeReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=199, + serialized_end=220, +) + + +_UNREGISTERVOLUMEREQUEST = _descriptor.Descriptor( + name='UnregisterVolumeRequest', + full_name='filemgr.UnregisterVolumeRequest', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='entry', full_name='filemgr.DirEntries.entry', index=0, - number=1, type=9, cpp_type=9, label=3, + name='index', full_name='filemgr.UnregisterVolumeRequest.index', index=0, + number=1, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repair_tool', full_name='filemgr.UnregisterVolumeRequest.repair_tool', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=222, + serialized_end=283, +) + + +_UNREGISTERVOLUMEREPLY = _descriptor.Descriptor( + name='UnregisterVolumeReply', + full_name='filemgr.UnregisterVolumeReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=285, + serialized_end=308, +) + + +_UPDATEVOLUMESTATEREQUEST = _descriptor.Descriptor( + name='UpdateVolumeStateRequest', + full_name='filemgr.UpdateVolumeStateRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='volume_index', full_name='filemgr.UpdateVolumeStateRequest.volume_index', index=0, + number=1, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='state', full_name='filemgr.UpdateVolumeStateRequest.state', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repair_tool', full_name='filemgr.UpdateVolumeStateRequest.repair_tool', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=310, + serialized_end=416, +) + + +_UPDATEVOLUMESTATEREPLY = _descriptor.Descriptor( + name='UpdateVolumeStateReply', + full_name='filemgr.UpdateVolumeStateReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=418, + serialized_end=442, +) + + +_GETVOLUMEREQUEST = _descriptor.Descriptor( + name='GetVolumeRequest', + full_name='filemgr.GetVolumeRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='index', full_name='filemgr.GetVolumeRequest.index', index=0, + number=1, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repair_tool', full_name='filemgr.GetVolumeRequest.repair_tool', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=444, + serialized_end=498, +) + + +_GETVOLUMEREPLY = _descriptor.Descriptor( + name='GetVolumeReply', + full_name='filemgr.GetVolumeReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='volume_index', full_name='filemgr.GetVolumeReply.volume_index', index=0, + number=1, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='volume_type', full_name='filemgr.GetVolumeReply.volume_type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='volume_state', full_name='filemgr.GetVolumeReply.volume_state', index=2, + number=3, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partition', full_name='filemgr.GetVolumeReply.partition', index=3, + number=4, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='next_offset', full_name='filemgr.GetVolumeReply.next_offset', index=4, + number=5, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=501, + serialized_end=643, +) + + +_LISTVOLUMESREQUEST = _descriptor.Descriptor( + name='ListVolumesRequest', + full_name='filemgr.ListVolumesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partition', full_name='filemgr.ListVolumesRequest.partition', index=0, + number=1, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='type', full_name='filemgr.ListVolumesRequest.type', index=1, + number=2, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repair_tool', full_name='filemgr.ListVolumesRequest.repair_tool', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=645, + serialized_end=740, +) + + +_LISTVOLUMESREPLY = _descriptor.Descriptor( + name='ListVolumesReply', + full_name='filemgr.ListVolumesReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='volumes', full_name='filemgr.ListVolumesReply.volumes', index=0, + number=1, type=11, cpp_type=10, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -225,48 +474,48 @@ _DIRENTRIES = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=210, - serialized_end=237, + serialized_start=742, + serialized_end=794, ) -_VOLUMEINDEX = _descriptor.Descriptor( - name='VolumeIndex', - full_name='filemgr.VolumeIndex', +_REGISTEROBJECTREQUEST = _descriptor.Descriptor( + name='RegisterObjectRequest', + full_name='filemgr.RegisterObjectRequest', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='index', full_name='filemgr.VolumeIndex.index', index=0, - number=1, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='quarantined', full_name='filemgr.VolumeIndex.quarantined', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_token', full_name='filemgr.VolumeIndex.page_token', index=2, - number=3, type=12, cpp_type=9, label=1, + name='name', full_name='filemgr.RegisterObjectRequest.name', index=0, + number=1, type=12, cpp_type=9, label=1, has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='page_size', full_name='filemgr.VolumeIndex.page_size', index=3, - number=4, type=13, cpp_type=3, label=1, + name='volume_index', full_name='filemgr.RegisterObjectRequest.volume_index', index=1, + number=2, type=13, cpp_type=3, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( - name='repair_tool', full_name='filemgr.VolumeIndex.repair_tool', index=4, + name='offset', full_name='filemgr.RegisterObjectRequest.offset', index=2, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='next_offset', full_name='filemgr.RegisterObjectRequest.next_offset', index=3, + number=4, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repair_tool', full_name='filemgr.RegisterObjectRequest.repair_tool', index=4, number=5, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, @@ -284,8 +533,1073 @@ _VOLUMEINDEX = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=239, - serialized_end=348, + serialized_start=796, + serialized_end=913, +) + + +_REGISTEROBJECTREPLY = _descriptor.Descriptor( + name='RegisterObjectReply', + full_name='filemgr.RegisterObjectReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=915, + serialized_end=936, +) + + +_UNREGISTEROBJECTREQUEST = _descriptor.Descriptor( + name='UnregisterObjectRequest', + full_name='filemgr.UnregisterObjectRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='filemgr.UnregisterObjectRequest.name', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repair_tool', full_name='filemgr.UnregisterObjectRequest.repair_tool', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=938, + serialized_end=998, +) + + +_UNREGISTEROBJECTREPLY = _descriptor.Descriptor( + name='UnregisterObjectReply', + full_name='filemgr.UnregisterObjectReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1000, + serialized_end=1023, +) + + +_RENAMEOBJECTREQUEST = _descriptor.Descriptor( + name='RenameObjectRequest', + full_name='filemgr.RenameObjectRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='filemgr.RenameObjectRequest.name', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='new_name', full_name='filemgr.RenameObjectRequest.new_name', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repair_tool', full_name='filemgr.RenameObjectRequest.repair_tool', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1025, + serialized_end=1099, +) + + +_RENAMEOBJECTREPLY = _descriptor.Descriptor( + name='RenameObjectReply', + full_name='filemgr.RenameObjectReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1101, + serialized_end=1120, +) + + +_LOADOBJECTREQUEST = _descriptor.Descriptor( + name='LoadObjectRequest', + full_name='filemgr.LoadObjectRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='filemgr.LoadObjectRequest.name', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='is_quarantined', full_name='filemgr.LoadObjectRequest.is_quarantined', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repair_tool', full_name='filemgr.LoadObjectRequest.repair_tool', index=2, + number=3, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1122, + serialized_end=1200, +) + + +_LOADOBJECTREPLY = _descriptor.Descriptor( + name='LoadObjectReply', + full_name='filemgr.LoadObjectReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='filemgr.LoadObjectReply.name', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='volume_index', full_name='filemgr.LoadObjectReply.volume_index', index=1, + number=2, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='offset', full_name='filemgr.LoadObjectReply.offset', index=2, + number=3, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1202, + serialized_end=1271, +) + + +_QUARANTINEOBJECTREQUEST = _descriptor.Descriptor( + name='QuarantineObjectRequest', + full_name='filemgr.QuarantineObjectRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='filemgr.QuarantineObjectRequest.name', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repair_tool', full_name='filemgr.QuarantineObjectRequest.repair_tool', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1273, + serialized_end=1333, +) + + +_QUARANTINEOBJECTREPLY = _descriptor.Descriptor( + name='QuarantineObjectReply', + full_name='filemgr.QuarantineObjectReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1335, + serialized_end=1358, +) + + +_UNQUARANTINEOBJECTREQUEST = _descriptor.Descriptor( + name='UnquarantineObjectRequest', + full_name='filemgr.UnquarantineObjectRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='filemgr.UnquarantineObjectRequest.name', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repair_tool', full_name='filemgr.UnquarantineObjectRequest.repair_tool', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1360, + serialized_end=1422, +) + + +_UNQUARANTINEOBJECTREPLY = _descriptor.Descriptor( + name='UnquarantineObjectReply', + full_name='filemgr.UnquarantineObjectReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1424, + serialized_end=1449, +) + + +_LOADOBJECTSBYPREFIXREQUEST = _descriptor.Descriptor( + name='LoadObjectsByPrefixRequest', + full_name='filemgr.LoadObjectsByPrefixRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='prefix', full_name='filemgr.LoadObjectsByPrefixRequest.prefix', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repair_tool', full_name='filemgr.LoadObjectsByPrefixRequest.repair_tool', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1451, + serialized_end=1516, +) + + +_LOADOBJECTSBYPREFIXREPLY = _descriptor.Descriptor( + name='LoadObjectsByPrefixReply', + full_name='filemgr.LoadObjectsByPrefixReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='objects', full_name='filemgr.LoadObjectsByPrefixReply.objects', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1518, + serialized_end=1578, +) + + +_LOADOBJECTSBYVOLUMEREQUEST = _descriptor.Descriptor( + name='LoadObjectsByVolumeRequest', + full_name='filemgr.LoadObjectsByVolumeRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='index', full_name='filemgr.LoadObjectsByVolumeRequest.index', index=0, + number=1, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='quarantined', full_name='filemgr.LoadObjectsByVolumeRequest.quarantined', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_token', full_name='filemgr.LoadObjectsByVolumeRequest.page_token', index=2, + number=3, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_size', full_name='filemgr.LoadObjectsByVolumeRequest.page_size', index=3, + number=4, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repair_tool', full_name='filemgr.LoadObjectsByVolumeRequest.repair_tool', index=4, + number=5, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1580, + serialized_end=1704, +) + + +_LOADOBJECTSBYVOLUMEREPLY = _descriptor.Descriptor( + name='LoadObjectsByVolumeReply', + full_name='filemgr.LoadObjectsByVolumeReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='objects', full_name='filemgr.LoadObjectsByVolumeReply.objects', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='next_page_token', full_name='filemgr.LoadObjectsByVolumeReply.next_page_token', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1706, + serialized_end=1791, +) + + +_LISTPARTITIONSREQUEST = _descriptor.Descriptor( + name='ListPartitionsRequest', + full_name='filemgr.ListPartitionsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partition_bits', full_name='filemgr.ListPartitionsRequest.partition_bits', index=0, + number=1, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1793, + serialized_end=1840, +) + + +_LISTPARTITIONREQUEST = _descriptor.Descriptor( + name='ListPartitionRequest', + full_name='filemgr.ListPartitionRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partition', full_name='filemgr.ListPartitionRequest.partition', index=0, + number=1, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partition_bits', full_name='filemgr.ListPartitionRequest.partition_bits', index=1, + number=2, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1842, + serialized_end=1907, +) + + +_LISTSUFFIXREQUEST = _descriptor.Descriptor( + name='ListSuffixRequest', + full_name='filemgr.ListSuffixRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='partition', full_name='filemgr.ListSuffixRequest.partition', index=0, + number=1, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='suffix', full_name='filemgr.ListSuffixRequest.suffix', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='partition_bits', full_name='filemgr.ListSuffixRequest.partition_bits', index=2, + number=3, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1909, + serialized_end=1987, +) + + +_LISTQUARANTINEDOHASHESREQUEST = _descriptor.Descriptor( + name='ListQuarantinedOHashesRequest', + full_name='filemgr.ListQuarantinedOHashesRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='page_token', full_name='filemgr.ListQuarantinedOHashesRequest.page_token', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='page_size', full_name='filemgr.ListQuarantinedOHashesRequest.page_size', index=1, + number=2, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1989, + serialized_end=2059, +) + + +_LISTQUARANTINEDOHASHESREPLY = _descriptor.Descriptor( + name='ListQuarantinedOHashesReply', + full_name='filemgr.ListQuarantinedOHashesReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='objects', full_name='filemgr.ListQuarantinedOHashesReply.objects', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='next_page_token', full_name='filemgr.ListQuarantinedOHashesReply.next_page_token', index=1, + number=2, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2061, + serialized_end=2164, +) + + +_QUARANTINEDOBJECTNAME = _descriptor.Descriptor( + name='QuarantinedObjectName', + full_name='filemgr.QuarantinedObjectName', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='filemgr.QuarantinedObjectName.name', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2166, + serialized_end=2203, +) + + +_LISTQUARANTINEDOHASHREQUEST = _descriptor.Descriptor( + name='ListQuarantinedOHashRequest', + full_name='filemgr.ListQuarantinedOHashRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='prefix', full_name='filemgr.ListQuarantinedOHashRequest.prefix', index=0, + number=1, type=12, cpp_type=9, label=1, + has_default_value=False, default_value=b"", + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repair_tool', full_name='filemgr.ListQuarantinedOHashRequest.repair_tool', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2205, + serialized_end=2271, +) + + +_LISTQUARANTINEDOHASHREPLY = _descriptor.Descriptor( + name='ListQuarantinedOHashReply', + full_name='filemgr.ListQuarantinedOHashReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='objects', full_name='filemgr.ListQuarantinedOHashReply.objects', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2273, + serialized_end=2334, +) + + +_GETNEXTOFFSETREQUEST = _descriptor.Descriptor( + name='GetNextOffsetRequest', + full_name='filemgr.GetNextOffsetRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='volume_index', full_name='filemgr.GetNextOffsetRequest.volume_index', index=0, + number=1, type=13, cpp_type=3, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='repair_tool', full_name='filemgr.GetNextOffsetRequest.repair_tool', index=1, + number=2, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2336, + serialized_end=2401, +) + + +_GETNEXTOFFSETREPLY = _descriptor.Descriptor( + name='GetNextOffsetReply', + full_name='filemgr.GetNextOffsetReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='offset', full_name='filemgr.GetNextOffsetReply.offset', index=0, + number=1, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2403, + serialized_end=2439, +) + + +_GETSTATSREQUEST = _descriptor.Descriptor( + name='GetStatsRequest', + full_name='filemgr.GetStatsRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2441, + serialized_end=2458, +) + + +_GETSTATSREPLY_STATSENTRY = _descriptor.Descriptor( + name='StatsEntry', + full_name='filemgr.GetStatsReply.StatsEntry', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='key', full_name='filemgr.GetStatsReply.StatsEntry.key', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='value', full_name='filemgr.GetStatsReply.StatsEntry.value', index=1, + number=2, type=4, cpp_type=4, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=b'8\001', + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2527, + serialized_end=2571, +) + +_GETSTATSREPLY = _descriptor.Descriptor( + name='GetStatsReply', + full_name='filemgr.GetStatsReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='stats', full_name='filemgr.GetStatsReply.stats', index=0, + number=1, type=11, cpp_type=10, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[_GETSTATSREPLY_STATSENTRY, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2460, + serialized_end=2571, +) + + +_SETKVSTATEREPLY = _descriptor.Descriptor( + name='SetKvStateReply', + full_name='filemgr.SetKvStateReply', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2573, + serialized_end=2590, +) + + +_GETKVSTATEREQUEST = _descriptor.Descriptor( + name='GetKvStateRequest', + full_name='filemgr.GetKvStateRequest', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2592, + serialized_end=2611, +) + + +_KVSTATE = _descriptor.Descriptor( + name='KvState', + full_name='filemgr.KvState', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='isClean', full_name='filemgr.KvState.isClean', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2613, + serialized_end=2639, ) @@ -343,630 +1657,8 @@ _VOLUME = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=351, - serialized_end=485, -) - - -_GETNEXTOFFSETINFO = _descriptor.Descriptor( - name='GetNextOffsetInfo', - full_name='filemgr.GetNextOffsetInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='volume_index', full_name='filemgr.GetNextOffsetInfo.volume_index', index=0, - number=1, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='volume_type', full_name='filemgr.GetNextOffsetInfo.volume_type', index=1, - number=2, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='volume_state', full_name='filemgr.GetNextOffsetInfo.volume_state', index=2, - number=3, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='repair_tool', full_name='filemgr.GetNextOffsetInfo.repair_tool', index=3, - number=4, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=487, - serialized_end=592, -) - - -_LISTVOLUMESINFO = _descriptor.Descriptor( - name='ListVolumesInfo', - full_name='filemgr.ListVolumesInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partition', full_name='filemgr.ListVolumesInfo.partition', index=0, - number=1, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='filemgr.ListVolumesInfo.type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='repair_tool', full_name='filemgr.ListVolumesInfo.repair_tool', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=594, - serialized_end=686, -) - - -_VOLUMES = _descriptor.Descriptor( - name='Volumes', - full_name='filemgr.Volumes', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='volumes', full_name='filemgr.Volumes.volumes', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=688, - serialized_end=731, -) - - -_VOLUMENEXTOFFSET = _descriptor.Descriptor( - name='VolumeNextOffset', - full_name='filemgr.VolumeNextOffset', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='offset', full_name='filemgr.VolumeNextOffset.offset', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=733, - serialized_end=767, -) - - -_NEWVOLUMEINFO = _descriptor.Descriptor( - name='NewVolumeInfo', - full_name='filemgr.NewVolumeInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='partition', full_name='filemgr.NewVolumeInfo.partition', index=0, - number=1, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='filemgr.NewVolumeInfo.type', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='volume_index', full_name='filemgr.NewVolumeInfo.volume_index', index=2, - number=3, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='offset', full_name='filemgr.NewVolumeInfo.offset', index=3, - number=4, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='filemgr.NewVolumeInfo.state', index=4, - number=5, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='repair_tool', full_name='filemgr.NewVolumeInfo.repair_tool', index=5, - number=6, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=770, - serialized_end=935, -) - - -_NEWVOLUMESTATE = _descriptor.Descriptor( - name='NewVolumeState', - full_name='filemgr.NewVolumeState', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='volume_index', full_name='filemgr.NewVolumeState.volume_index', index=0, - number=1, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='state', full_name='filemgr.NewVolumeState.state', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='repair_tool', full_name='filemgr.NewVolumeState.repair_tool', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=937, - serialized_end=1033, -) - - -_NEWVOLUMEREPLY = _descriptor.Descriptor( - name='NewVolumeReply', - full_name='filemgr.NewVolumeReply', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1035, - serialized_end=1051, -) - - -_DELOBJECTREPLY = _descriptor.Descriptor( - name='DelObjectReply', - full_name='filemgr.DelObjectReply', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1053, - serialized_end=1069, -) - - -_RENAMEREPLY = _descriptor.Descriptor( - name='RenameReply', - full_name='filemgr.RenameReply', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1071, - serialized_end=1084, -) - - -_NEWOBJECTINFO = _descriptor.Descriptor( - name='NewObjectInfo', - full_name='filemgr.NewObjectInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='filemgr.NewObjectInfo.name', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='volume_index', full_name='filemgr.NewObjectInfo.volume_index', index=1, - number=2, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='offset', full_name='filemgr.NewObjectInfo.offset', index=2, - number=3, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_offset', full_name='filemgr.NewObjectInfo.next_offset', index=3, - number=4, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='repair_tool', full_name='filemgr.NewObjectInfo.repair_tool', index=4, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1086, - serialized_end=1195, -) - - -_NEWOBJECTREPLY = _descriptor.Descriptor( - name='NewObjectReply', - full_name='filemgr.NewObjectReply', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1197, - serialized_end=1213, -) - - -_QUARANTINEDOBJECTNAME = _descriptor.Descriptor( - name='QuarantinedObjectName', - full_name='filemgr.QuarantinedObjectName', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='filemgr.QuarantinedObjectName.name', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1215, - serialized_end=1252, -) - - -_QUARANTINEDOBJECTNAMES = _descriptor.Descriptor( - name='QuarantinedObjectNames', - full_name='filemgr.QuarantinedObjectNames', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='objects', full_name='filemgr.QuarantinedObjectNames.objects', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='filemgr.QuarantinedObjectNames.next_page_token', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1254, - serialized_end=1352, -) - - -_OBJECTNAME = _descriptor.Descriptor( - name='ObjectName', - full_name='filemgr.ObjectName', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='filemgr.ObjectName.name', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='repair_tool', full_name='filemgr.ObjectName.repair_tool', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1354, - serialized_end=1401, -) - - -_LOADOBJECTINFO = _descriptor.Descriptor( - name='LoadObjectInfo', - full_name='filemgr.LoadObjectInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='filemgr.LoadObjectInfo.name', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='is_quarantined', full_name='filemgr.LoadObjectInfo.is_quarantined', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='repair_tool', full_name='filemgr.LoadObjectInfo.repair_tool', index=2, - number=5, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1403, - serialized_end=1478, -) - - -_RENAMEINFO = _descriptor.Descriptor( - name='RenameInfo', - full_name='filemgr.RenameInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='filemgr.RenameInfo.name', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='new_name', full_name='filemgr.RenameInfo.new_name', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='repair_tool', full_name='filemgr.RenameInfo.repair_tool', index=2, - number=3, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1480, - serialized_end=1545, + serialized_start=2642, + serialized_end=2776, ) @@ -1010,145 +1702,21 @@ _OBJECT = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=1547, - serialized_end=1607, + serialized_start=2778, + serialized_end=2838, ) -_LOADOBJECTSRESPONSE = _descriptor.Descriptor( - name='LoadObjectsResponse', - full_name='filemgr.LoadObjectsResponse', +_DIRENTRIES = _descriptor.Descriptor( + name='DirEntries', + full_name='filemgr.DirEntries', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='objects', full_name='filemgr.LoadObjectsResponse.objects', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='next_page_token', full_name='filemgr.LoadObjectsResponse.next_page_token', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1609, - serialized_end=1689, -) - - -_OBJECTPREFIX = _descriptor.Descriptor( - name='ObjectPrefix', - full_name='filemgr.ObjectPrefix', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='prefix', full_name='filemgr.ObjectPrefix.prefix', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='repair_tool', full_name='filemgr.ObjectPrefix.repair_tool', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1691, - serialized_end=1742, -) - - -_EMPTY = _descriptor.Descriptor( - name='Empty', - full_name='filemgr.Empty', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1744, - serialized_end=1751, -) - - -_GETSTATSINFO = _descriptor.Descriptor( - name='GetStatsInfo', - full_name='filemgr.GetStatsInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1753, - serialized_end=1767, -) - - -_PARTITIONCONTENT = _descriptor.Descriptor( - name='PartitionContent', - full_name='filemgr.PartitionContent', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='file_entries', full_name='filemgr.PartitionContent.file_entries', index=0, - number=1, type=11, cpp_type=10, label=3, + name='entry', full_name='filemgr.DirEntries.entry', index=0, + number=1, type=9, cpp_type=9, label=3, has_default_value=False, default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -1165,357 +1733,287 @@ _PARTITIONCONTENT = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=1769, - serialized_end=1833, -) - - -_FULLPATHENTRY = _descriptor.Descriptor( - name='FullPathEntry', - full_name='filemgr.FullPathEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='suffix', full_name='filemgr.FullPathEntry.suffix', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ohash', full_name='filemgr.FullPathEntry.ohash', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='filename', full_name='filemgr.FullPathEntry.filename', index=2, - number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1835, - serialized_end=1899, -) - - -_KVSTATE = _descriptor.Descriptor( - name='KvState', - full_name='filemgr.KvState', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='isClean', full_name='filemgr.KvState.isClean', index=0, - number=1, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1901, - serialized_end=1927, -) - - -_KVSTATS_STATSENTRY = _descriptor.Descriptor( - name='StatsEntry', - full_name='filemgr.KVStats.StatsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='filemgr.KVStats.StatsEntry.key', index=0, - number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=b"".decode('utf-8'), - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='filemgr.KVStats.StatsEntry.value', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1984, - serialized_end=2028, -) - -_KVSTATS = _descriptor.Descriptor( - name='KVStats', - full_name='filemgr.KVStats', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='stats', full_name='filemgr.KVStats.stats', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_KVSTATS_STATSENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1929, - serialized_end=2028, -) - - -_LISTQUARANTINEDOHASHESINFO = _descriptor.Descriptor( - name='ListQuarantinedOHashesInfo', - full_name='filemgr.ListQuarantinedOHashesInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='page_token', full_name='filemgr.ListQuarantinedOHashesInfo.page_token', index=0, - number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='page_size', full_name='filemgr.ListQuarantinedOHashesInfo.page_size', index=1, - number=2, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2030, - serialized_end=2097, + serialized_start=2840, + serialized_end=2867, ) +_REGISTERVOLUMEREQUEST.fields_by_name['type'].enum_type = _VOLUMETYPE +_REGISTERVOLUMEREQUEST.fields_by_name['state'].enum_type = _VOLUMESTATE +_UPDATEVOLUMESTATEREQUEST.fields_by_name['state'].enum_type = _VOLUMESTATE +_GETVOLUMEREPLY.fields_by_name['volume_type'].enum_type = _VOLUMETYPE +_LISTVOLUMESREQUEST.fields_by_name['type'].enum_type = _VOLUMETYPE +_LISTVOLUMESREPLY.fields_by_name['volumes'].message_type = _VOLUME +_LOADOBJECTSBYPREFIXREPLY.fields_by_name['objects'].message_type = _OBJECT +_LOADOBJECTSBYVOLUMEREPLY.fields_by_name['objects'].message_type = _OBJECT +_LISTQUARANTINEDOHASHESREPLY.fields_by_name['objects'].message_type = _QUARANTINEDOBJECTNAME +_LISTQUARANTINEDOHASHREPLY.fields_by_name['objects'].message_type = _OBJECT +_GETSTATSREPLY_STATSENTRY.containing_type = _GETSTATSREPLY +_GETSTATSREPLY.fields_by_name['stats'].message_type = _GETSTATSREPLY_STATSENTRY _VOLUME.fields_by_name['volume_type'].enum_type = _VOLUMETYPE -_LISTVOLUMESINFO.fields_by_name['type'].enum_type = _VOLUMETYPE -_VOLUMES.fields_by_name['volumes'].message_type = _VOLUME -_NEWVOLUMEINFO.fields_by_name['type'].enum_type = _VOLUMETYPE -_NEWVOLUMEINFO.fields_by_name['state'].enum_type = _VOLUMESTATE -_NEWVOLUMESTATE.fields_by_name['state'].enum_type = _VOLUMESTATE -_QUARANTINEDOBJECTNAMES.fields_by_name['objects'].message_type = _QUARANTINEDOBJECTNAME -_LOADOBJECTSRESPONSE.fields_by_name['objects'].message_type = _OBJECT -_PARTITIONCONTENT.fields_by_name['file_entries'].message_type = _FULLPATHENTRY -_KVSTATS_STATSENTRY.containing_type = _KVSTATS -_KVSTATS.fields_by_name['stats'].message_type = _KVSTATS_STATSENTRY -DESCRIPTOR.message_types_by_name['ListPartitionsInfo'] = _LISTPARTITIONSINFO -DESCRIPTOR.message_types_by_name['ListPartitionInfo'] = _LISTPARTITIONINFO -DESCRIPTOR.message_types_by_name['ListSuffixInfo'] = _LISTSUFFIXINFO -DESCRIPTOR.message_types_by_name['DirEntries'] = _DIRENTRIES -DESCRIPTOR.message_types_by_name['VolumeIndex'] = _VOLUMEINDEX -DESCRIPTOR.message_types_by_name['Volume'] = _VOLUME -DESCRIPTOR.message_types_by_name['GetNextOffsetInfo'] = _GETNEXTOFFSETINFO -DESCRIPTOR.message_types_by_name['ListVolumesInfo'] = _LISTVOLUMESINFO -DESCRIPTOR.message_types_by_name['Volumes'] = _VOLUMES -DESCRIPTOR.message_types_by_name['VolumeNextOffset'] = _VOLUMENEXTOFFSET -DESCRIPTOR.message_types_by_name['NewVolumeInfo'] = _NEWVOLUMEINFO -DESCRIPTOR.message_types_by_name['NewVolumeState'] = _NEWVOLUMESTATE -DESCRIPTOR.message_types_by_name['NewVolumeReply'] = _NEWVOLUMEREPLY -DESCRIPTOR.message_types_by_name['DelObjectReply'] = _DELOBJECTREPLY -DESCRIPTOR.message_types_by_name['RenameReply'] = _RENAMEREPLY -DESCRIPTOR.message_types_by_name['NewObjectInfo'] = _NEWOBJECTINFO -DESCRIPTOR.message_types_by_name['NewObjectReply'] = _NEWOBJECTREPLY +DESCRIPTOR.message_types_by_name['RegisterVolumeRequest'] = _REGISTERVOLUMEREQUEST +DESCRIPTOR.message_types_by_name['RegisterVolumeReply'] = _REGISTERVOLUMEREPLY +DESCRIPTOR.message_types_by_name['UnregisterVolumeRequest'] = _UNREGISTERVOLUMEREQUEST +DESCRIPTOR.message_types_by_name['UnregisterVolumeReply'] = _UNREGISTERVOLUMEREPLY +DESCRIPTOR.message_types_by_name['UpdateVolumeStateRequest'] = _UPDATEVOLUMESTATEREQUEST +DESCRIPTOR.message_types_by_name['UpdateVolumeStateReply'] = _UPDATEVOLUMESTATEREPLY +DESCRIPTOR.message_types_by_name['GetVolumeRequest'] = _GETVOLUMEREQUEST +DESCRIPTOR.message_types_by_name['GetVolumeReply'] = _GETVOLUMEREPLY +DESCRIPTOR.message_types_by_name['ListVolumesRequest'] = _LISTVOLUMESREQUEST +DESCRIPTOR.message_types_by_name['ListVolumesReply'] = _LISTVOLUMESREPLY +DESCRIPTOR.message_types_by_name['RegisterObjectRequest'] = _REGISTEROBJECTREQUEST +DESCRIPTOR.message_types_by_name['RegisterObjectReply'] = _REGISTEROBJECTREPLY +DESCRIPTOR.message_types_by_name['UnregisterObjectRequest'] = _UNREGISTEROBJECTREQUEST +DESCRIPTOR.message_types_by_name['UnregisterObjectReply'] = _UNREGISTEROBJECTREPLY +DESCRIPTOR.message_types_by_name['RenameObjectRequest'] = _RENAMEOBJECTREQUEST +DESCRIPTOR.message_types_by_name['RenameObjectReply'] = _RENAMEOBJECTREPLY +DESCRIPTOR.message_types_by_name['LoadObjectRequest'] = _LOADOBJECTREQUEST +DESCRIPTOR.message_types_by_name['LoadObjectReply'] = _LOADOBJECTREPLY +DESCRIPTOR.message_types_by_name['QuarantineObjectRequest'] = _QUARANTINEOBJECTREQUEST +DESCRIPTOR.message_types_by_name['QuarantineObjectReply'] = _QUARANTINEOBJECTREPLY +DESCRIPTOR.message_types_by_name['UnquarantineObjectRequest'] = _UNQUARANTINEOBJECTREQUEST +DESCRIPTOR.message_types_by_name['UnquarantineObjectReply'] = _UNQUARANTINEOBJECTREPLY +DESCRIPTOR.message_types_by_name['LoadObjectsByPrefixRequest'] = _LOADOBJECTSBYPREFIXREQUEST +DESCRIPTOR.message_types_by_name['LoadObjectsByPrefixReply'] = _LOADOBJECTSBYPREFIXREPLY +DESCRIPTOR.message_types_by_name['LoadObjectsByVolumeRequest'] = _LOADOBJECTSBYVOLUMEREQUEST +DESCRIPTOR.message_types_by_name['LoadObjectsByVolumeReply'] = _LOADOBJECTSBYVOLUMEREPLY +DESCRIPTOR.message_types_by_name['ListPartitionsRequest'] = _LISTPARTITIONSREQUEST +DESCRIPTOR.message_types_by_name['ListPartitionRequest'] = _LISTPARTITIONREQUEST +DESCRIPTOR.message_types_by_name['ListSuffixRequest'] = _LISTSUFFIXREQUEST +DESCRIPTOR.message_types_by_name['ListQuarantinedOHashesRequest'] = _LISTQUARANTINEDOHASHESREQUEST +DESCRIPTOR.message_types_by_name['ListQuarantinedOHashesReply'] = _LISTQUARANTINEDOHASHESREPLY DESCRIPTOR.message_types_by_name['QuarantinedObjectName'] = _QUARANTINEDOBJECTNAME -DESCRIPTOR.message_types_by_name['QuarantinedObjectNames'] = _QUARANTINEDOBJECTNAMES -DESCRIPTOR.message_types_by_name['ObjectName'] = _OBJECTNAME -DESCRIPTOR.message_types_by_name['LoadObjectInfo'] = _LOADOBJECTINFO -DESCRIPTOR.message_types_by_name['RenameInfo'] = _RENAMEINFO -DESCRIPTOR.message_types_by_name['Object'] = _OBJECT -DESCRIPTOR.message_types_by_name['LoadObjectsResponse'] = _LOADOBJECTSRESPONSE -DESCRIPTOR.message_types_by_name['ObjectPrefix'] = _OBJECTPREFIX -DESCRIPTOR.message_types_by_name['Empty'] = _EMPTY -DESCRIPTOR.message_types_by_name['GetStatsInfo'] = _GETSTATSINFO -DESCRIPTOR.message_types_by_name['PartitionContent'] = _PARTITIONCONTENT -DESCRIPTOR.message_types_by_name['FullPathEntry'] = _FULLPATHENTRY +DESCRIPTOR.message_types_by_name['ListQuarantinedOHashRequest'] = _LISTQUARANTINEDOHASHREQUEST +DESCRIPTOR.message_types_by_name['ListQuarantinedOHashReply'] = _LISTQUARANTINEDOHASHREPLY +DESCRIPTOR.message_types_by_name['GetNextOffsetRequest'] = _GETNEXTOFFSETREQUEST +DESCRIPTOR.message_types_by_name['GetNextOffsetReply'] = _GETNEXTOFFSETREPLY +DESCRIPTOR.message_types_by_name['GetStatsRequest'] = _GETSTATSREQUEST +DESCRIPTOR.message_types_by_name['GetStatsReply'] = _GETSTATSREPLY +DESCRIPTOR.message_types_by_name['SetKvStateReply'] = _SETKVSTATEREPLY +DESCRIPTOR.message_types_by_name['GetKvStateRequest'] = _GETKVSTATEREQUEST DESCRIPTOR.message_types_by_name['KvState'] = _KVSTATE -DESCRIPTOR.message_types_by_name['KVStats'] = _KVSTATS -DESCRIPTOR.message_types_by_name['ListQuarantinedOHashesInfo'] = _LISTQUARANTINEDOHASHESINFO +DESCRIPTOR.message_types_by_name['Volume'] = _VOLUME +DESCRIPTOR.message_types_by_name['Object'] = _OBJECT +DESCRIPTOR.message_types_by_name['DirEntries'] = _DIRENTRIES DESCRIPTOR.enum_types_by_name['VolumeType'] = _VOLUMETYPE DESCRIPTOR.enum_types_by_name['VolumeState'] = _VOLUMESTATE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -ListPartitionsInfo = _reflection.GeneratedProtocolMessageType('ListPartitionsInfo', (_message.Message,), { - 'DESCRIPTOR' : _LISTPARTITIONSINFO, +RegisterVolumeRequest = _reflection.GeneratedProtocolMessageType('RegisterVolumeRequest', (_message.Message,), { + 'DESCRIPTOR' : _REGISTERVOLUMEREQUEST, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.ListPartitionsInfo) + # @@protoc_insertion_point(class_scope:filemgr.RegisterVolumeRequest) }) -_sym_db.RegisterMessage(ListPartitionsInfo) +_sym_db.RegisterMessage(RegisterVolumeRequest) -ListPartitionInfo = _reflection.GeneratedProtocolMessageType('ListPartitionInfo', (_message.Message,), { - 'DESCRIPTOR' : _LISTPARTITIONINFO, +RegisterVolumeReply = _reflection.GeneratedProtocolMessageType('RegisterVolumeReply', (_message.Message,), { + 'DESCRIPTOR' : _REGISTERVOLUMEREPLY, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.ListPartitionInfo) + # @@protoc_insertion_point(class_scope:filemgr.RegisterVolumeReply) }) -_sym_db.RegisterMessage(ListPartitionInfo) +_sym_db.RegisterMessage(RegisterVolumeReply) -ListSuffixInfo = _reflection.GeneratedProtocolMessageType('ListSuffixInfo', (_message.Message,), { - 'DESCRIPTOR' : _LISTSUFFIXINFO, +UnregisterVolumeRequest = _reflection.GeneratedProtocolMessageType('UnregisterVolumeRequest', (_message.Message,), { + 'DESCRIPTOR' : _UNREGISTERVOLUMEREQUEST, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.ListSuffixInfo) + # @@protoc_insertion_point(class_scope:filemgr.UnregisterVolumeRequest) }) -_sym_db.RegisterMessage(ListSuffixInfo) +_sym_db.RegisterMessage(UnregisterVolumeRequest) -DirEntries = _reflection.GeneratedProtocolMessageType('DirEntries', (_message.Message,), { - 'DESCRIPTOR' : _DIRENTRIES, +UnregisterVolumeReply = _reflection.GeneratedProtocolMessageType('UnregisterVolumeReply', (_message.Message,), { + 'DESCRIPTOR' : _UNREGISTERVOLUMEREPLY, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.DirEntries) + # @@protoc_insertion_point(class_scope:filemgr.UnregisterVolumeReply) }) -_sym_db.RegisterMessage(DirEntries) +_sym_db.RegisterMessage(UnregisterVolumeReply) -VolumeIndex = _reflection.GeneratedProtocolMessageType('VolumeIndex', (_message.Message,), { - 'DESCRIPTOR' : _VOLUMEINDEX, +UpdateVolumeStateRequest = _reflection.GeneratedProtocolMessageType('UpdateVolumeStateRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATEVOLUMESTATEREQUEST, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.VolumeIndex) + # @@protoc_insertion_point(class_scope:filemgr.UpdateVolumeStateRequest) }) -_sym_db.RegisterMessage(VolumeIndex) +_sym_db.RegisterMessage(UpdateVolumeStateRequest) -Volume = _reflection.GeneratedProtocolMessageType('Volume', (_message.Message,), { - 'DESCRIPTOR' : _VOLUME, +UpdateVolumeStateReply = _reflection.GeneratedProtocolMessageType('UpdateVolumeStateReply', (_message.Message,), { + 'DESCRIPTOR' : _UPDATEVOLUMESTATEREPLY, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.Volume) + # @@protoc_insertion_point(class_scope:filemgr.UpdateVolumeStateReply) }) -_sym_db.RegisterMessage(Volume) +_sym_db.RegisterMessage(UpdateVolumeStateReply) -GetNextOffsetInfo = _reflection.GeneratedProtocolMessageType('GetNextOffsetInfo', (_message.Message,), { - 'DESCRIPTOR' : _GETNEXTOFFSETINFO, +GetVolumeRequest = _reflection.GeneratedProtocolMessageType('GetVolumeRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETVOLUMEREQUEST, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.GetNextOffsetInfo) + # @@protoc_insertion_point(class_scope:filemgr.GetVolumeRequest) }) -_sym_db.RegisterMessage(GetNextOffsetInfo) +_sym_db.RegisterMessage(GetVolumeRequest) -ListVolumesInfo = _reflection.GeneratedProtocolMessageType('ListVolumesInfo', (_message.Message,), { - 'DESCRIPTOR' : _LISTVOLUMESINFO, +GetVolumeReply = _reflection.GeneratedProtocolMessageType('GetVolumeReply', (_message.Message,), { + 'DESCRIPTOR' : _GETVOLUMEREPLY, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.ListVolumesInfo) + # @@protoc_insertion_point(class_scope:filemgr.GetVolumeReply) }) -_sym_db.RegisterMessage(ListVolumesInfo) +_sym_db.RegisterMessage(GetVolumeReply) -Volumes = _reflection.GeneratedProtocolMessageType('Volumes', (_message.Message,), { - 'DESCRIPTOR' : _VOLUMES, +ListVolumesRequest = _reflection.GeneratedProtocolMessageType('ListVolumesRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTVOLUMESREQUEST, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.Volumes) + # @@protoc_insertion_point(class_scope:filemgr.ListVolumesRequest) }) -_sym_db.RegisterMessage(Volumes) +_sym_db.RegisterMessage(ListVolumesRequest) -VolumeNextOffset = _reflection.GeneratedProtocolMessageType('VolumeNextOffset', (_message.Message,), { - 'DESCRIPTOR' : _VOLUMENEXTOFFSET, +ListVolumesReply = _reflection.GeneratedProtocolMessageType('ListVolumesReply', (_message.Message,), { + 'DESCRIPTOR' : _LISTVOLUMESREPLY, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.VolumeNextOffset) + # @@protoc_insertion_point(class_scope:filemgr.ListVolumesReply) }) -_sym_db.RegisterMessage(VolumeNextOffset) +_sym_db.RegisterMessage(ListVolumesReply) -NewVolumeInfo = _reflection.GeneratedProtocolMessageType('NewVolumeInfo', (_message.Message,), { - 'DESCRIPTOR' : _NEWVOLUMEINFO, +RegisterObjectRequest = _reflection.GeneratedProtocolMessageType('RegisterObjectRequest', (_message.Message,), { + 'DESCRIPTOR' : _REGISTEROBJECTREQUEST, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.NewVolumeInfo) + # @@protoc_insertion_point(class_scope:filemgr.RegisterObjectRequest) }) -_sym_db.RegisterMessage(NewVolumeInfo) +_sym_db.RegisterMessage(RegisterObjectRequest) -NewVolumeState = _reflection.GeneratedProtocolMessageType('NewVolumeState', (_message.Message,), { - 'DESCRIPTOR' : _NEWVOLUMESTATE, +RegisterObjectReply = _reflection.GeneratedProtocolMessageType('RegisterObjectReply', (_message.Message,), { + 'DESCRIPTOR' : _REGISTEROBJECTREPLY, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.NewVolumeState) + # @@protoc_insertion_point(class_scope:filemgr.RegisterObjectReply) }) -_sym_db.RegisterMessage(NewVolumeState) +_sym_db.RegisterMessage(RegisterObjectReply) -NewVolumeReply = _reflection.GeneratedProtocolMessageType('NewVolumeReply', (_message.Message,), { - 'DESCRIPTOR' : _NEWVOLUMEREPLY, +UnregisterObjectRequest = _reflection.GeneratedProtocolMessageType('UnregisterObjectRequest', (_message.Message,), { + 'DESCRIPTOR' : _UNREGISTEROBJECTREQUEST, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.NewVolumeReply) + # @@protoc_insertion_point(class_scope:filemgr.UnregisterObjectRequest) }) -_sym_db.RegisterMessage(NewVolumeReply) +_sym_db.RegisterMessage(UnregisterObjectRequest) -DelObjectReply = _reflection.GeneratedProtocolMessageType('DelObjectReply', (_message.Message,), { - 'DESCRIPTOR' : _DELOBJECTREPLY, +UnregisterObjectReply = _reflection.GeneratedProtocolMessageType('UnregisterObjectReply', (_message.Message,), { + 'DESCRIPTOR' : _UNREGISTEROBJECTREPLY, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.DelObjectReply) + # @@protoc_insertion_point(class_scope:filemgr.UnregisterObjectReply) }) -_sym_db.RegisterMessage(DelObjectReply) +_sym_db.RegisterMessage(UnregisterObjectReply) -RenameReply = _reflection.GeneratedProtocolMessageType('RenameReply', (_message.Message,), { - 'DESCRIPTOR' : _RENAMEREPLY, +RenameObjectRequest = _reflection.GeneratedProtocolMessageType('RenameObjectRequest', (_message.Message,), { + 'DESCRIPTOR' : _RENAMEOBJECTREQUEST, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.RenameReply) + # @@protoc_insertion_point(class_scope:filemgr.RenameObjectRequest) }) -_sym_db.RegisterMessage(RenameReply) +_sym_db.RegisterMessage(RenameObjectRequest) -NewObjectInfo = _reflection.GeneratedProtocolMessageType('NewObjectInfo', (_message.Message,), { - 'DESCRIPTOR' : _NEWOBJECTINFO, +RenameObjectReply = _reflection.GeneratedProtocolMessageType('RenameObjectReply', (_message.Message,), { + 'DESCRIPTOR' : _RENAMEOBJECTREPLY, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.NewObjectInfo) + # @@protoc_insertion_point(class_scope:filemgr.RenameObjectReply) }) -_sym_db.RegisterMessage(NewObjectInfo) +_sym_db.RegisterMessage(RenameObjectReply) -NewObjectReply = _reflection.GeneratedProtocolMessageType('NewObjectReply', (_message.Message,), { - 'DESCRIPTOR' : _NEWOBJECTREPLY, +LoadObjectRequest = _reflection.GeneratedProtocolMessageType('LoadObjectRequest', (_message.Message,), { + 'DESCRIPTOR' : _LOADOBJECTREQUEST, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.NewObjectReply) + # @@protoc_insertion_point(class_scope:filemgr.LoadObjectRequest) }) -_sym_db.RegisterMessage(NewObjectReply) +_sym_db.RegisterMessage(LoadObjectRequest) + +LoadObjectReply = _reflection.GeneratedProtocolMessageType('LoadObjectReply', (_message.Message,), { + 'DESCRIPTOR' : _LOADOBJECTREPLY, + '__module__' : 'fmgr_pb2' + # @@protoc_insertion_point(class_scope:filemgr.LoadObjectReply) + }) +_sym_db.RegisterMessage(LoadObjectReply) + +QuarantineObjectRequest = _reflection.GeneratedProtocolMessageType('QuarantineObjectRequest', (_message.Message,), { + 'DESCRIPTOR' : _QUARANTINEOBJECTREQUEST, + '__module__' : 'fmgr_pb2' + # @@protoc_insertion_point(class_scope:filemgr.QuarantineObjectRequest) + }) +_sym_db.RegisterMessage(QuarantineObjectRequest) + +QuarantineObjectReply = _reflection.GeneratedProtocolMessageType('QuarantineObjectReply', (_message.Message,), { + 'DESCRIPTOR' : _QUARANTINEOBJECTREPLY, + '__module__' : 'fmgr_pb2' + # @@protoc_insertion_point(class_scope:filemgr.QuarantineObjectReply) + }) +_sym_db.RegisterMessage(QuarantineObjectReply) + +UnquarantineObjectRequest = _reflection.GeneratedProtocolMessageType('UnquarantineObjectRequest', (_message.Message,), { + 'DESCRIPTOR' : _UNQUARANTINEOBJECTREQUEST, + '__module__' : 'fmgr_pb2' + # @@protoc_insertion_point(class_scope:filemgr.UnquarantineObjectRequest) + }) +_sym_db.RegisterMessage(UnquarantineObjectRequest) + +UnquarantineObjectReply = _reflection.GeneratedProtocolMessageType('UnquarantineObjectReply', (_message.Message,), { + 'DESCRIPTOR' : _UNQUARANTINEOBJECTREPLY, + '__module__' : 'fmgr_pb2' + # @@protoc_insertion_point(class_scope:filemgr.UnquarantineObjectReply) + }) +_sym_db.RegisterMessage(UnquarantineObjectReply) + +LoadObjectsByPrefixRequest = _reflection.GeneratedProtocolMessageType('LoadObjectsByPrefixRequest', (_message.Message,), { + 'DESCRIPTOR' : _LOADOBJECTSBYPREFIXREQUEST, + '__module__' : 'fmgr_pb2' + # @@protoc_insertion_point(class_scope:filemgr.LoadObjectsByPrefixRequest) + }) +_sym_db.RegisterMessage(LoadObjectsByPrefixRequest) + +LoadObjectsByPrefixReply = _reflection.GeneratedProtocolMessageType('LoadObjectsByPrefixReply', (_message.Message,), { + 'DESCRIPTOR' : _LOADOBJECTSBYPREFIXREPLY, + '__module__' : 'fmgr_pb2' + # @@protoc_insertion_point(class_scope:filemgr.LoadObjectsByPrefixReply) + }) +_sym_db.RegisterMessage(LoadObjectsByPrefixReply) + +LoadObjectsByVolumeRequest = _reflection.GeneratedProtocolMessageType('LoadObjectsByVolumeRequest', (_message.Message,), { + 'DESCRIPTOR' : _LOADOBJECTSBYVOLUMEREQUEST, + '__module__' : 'fmgr_pb2' + # @@protoc_insertion_point(class_scope:filemgr.LoadObjectsByVolumeRequest) + }) +_sym_db.RegisterMessage(LoadObjectsByVolumeRequest) + +LoadObjectsByVolumeReply = _reflection.GeneratedProtocolMessageType('LoadObjectsByVolumeReply', (_message.Message,), { + 'DESCRIPTOR' : _LOADOBJECTSBYVOLUMEREPLY, + '__module__' : 'fmgr_pb2' + # @@protoc_insertion_point(class_scope:filemgr.LoadObjectsByVolumeReply) + }) +_sym_db.RegisterMessage(LoadObjectsByVolumeReply) + +ListPartitionsRequest = _reflection.GeneratedProtocolMessageType('ListPartitionsRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTPARTITIONSREQUEST, + '__module__' : 'fmgr_pb2' + # @@protoc_insertion_point(class_scope:filemgr.ListPartitionsRequest) + }) +_sym_db.RegisterMessage(ListPartitionsRequest) + +ListPartitionRequest = _reflection.GeneratedProtocolMessageType('ListPartitionRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTPARTITIONREQUEST, + '__module__' : 'fmgr_pb2' + # @@protoc_insertion_point(class_scope:filemgr.ListPartitionRequest) + }) +_sym_db.RegisterMessage(ListPartitionRequest) + +ListSuffixRequest = _reflection.GeneratedProtocolMessageType('ListSuffixRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTSUFFIXREQUEST, + '__module__' : 'fmgr_pb2' + # @@protoc_insertion_point(class_scope:filemgr.ListSuffixRequest) + }) +_sym_db.RegisterMessage(ListSuffixRequest) + +ListQuarantinedOHashesRequest = _reflection.GeneratedProtocolMessageType('ListQuarantinedOHashesRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTQUARANTINEDOHASHESREQUEST, + '__module__' : 'fmgr_pb2' + # @@protoc_insertion_point(class_scope:filemgr.ListQuarantinedOHashesRequest) + }) +_sym_db.RegisterMessage(ListQuarantinedOHashesRequest) + +ListQuarantinedOHashesReply = _reflection.GeneratedProtocolMessageType('ListQuarantinedOHashesReply', (_message.Message,), { + 'DESCRIPTOR' : _LISTQUARANTINEDOHASHESREPLY, + '__module__' : 'fmgr_pb2' + # @@protoc_insertion_point(class_scope:filemgr.ListQuarantinedOHashesReply) + }) +_sym_db.RegisterMessage(ListQuarantinedOHashesReply) QuarantinedObjectName = _reflection.GeneratedProtocolMessageType('QuarantinedObjectName', (_message.Message,), { 'DESCRIPTOR' : _QUARANTINEDOBJECTNAME, @@ -1524,82 +2022,69 @@ QuarantinedObjectName = _reflection.GeneratedProtocolMessageType('QuarantinedObj }) _sym_db.RegisterMessage(QuarantinedObjectName) -QuarantinedObjectNames = _reflection.GeneratedProtocolMessageType('QuarantinedObjectNames', (_message.Message,), { - 'DESCRIPTOR' : _QUARANTINEDOBJECTNAMES, +ListQuarantinedOHashRequest = _reflection.GeneratedProtocolMessageType('ListQuarantinedOHashRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTQUARANTINEDOHASHREQUEST, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.QuarantinedObjectNames) + # @@protoc_insertion_point(class_scope:filemgr.ListQuarantinedOHashRequest) }) -_sym_db.RegisterMessage(QuarantinedObjectNames) +_sym_db.RegisterMessage(ListQuarantinedOHashRequest) -ObjectName = _reflection.GeneratedProtocolMessageType('ObjectName', (_message.Message,), { - 'DESCRIPTOR' : _OBJECTNAME, +ListQuarantinedOHashReply = _reflection.GeneratedProtocolMessageType('ListQuarantinedOHashReply', (_message.Message,), { + 'DESCRIPTOR' : _LISTQUARANTINEDOHASHREPLY, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.ObjectName) + # @@protoc_insertion_point(class_scope:filemgr.ListQuarantinedOHashReply) }) -_sym_db.RegisterMessage(ObjectName) +_sym_db.RegisterMessage(ListQuarantinedOHashReply) -LoadObjectInfo = _reflection.GeneratedProtocolMessageType('LoadObjectInfo', (_message.Message,), { - 'DESCRIPTOR' : _LOADOBJECTINFO, +GetNextOffsetRequest = _reflection.GeneratedProtocolMessageType('GetNextOffsetRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETNEXTOFFSETREQUEST, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.LoadObjectInfo) + # @@protoc_insertion_point(class_scope:filemgr.GetNextOffsetRequest) }) -_sym_db.RegisterMessage(LoadObjectInfo) +_sym_db.RegisterMessage(GetNextOffsetRequest) -RenameInfo = _reflection.GeneratedProtocolMessageType('RenameInfo', (_message.Message,), { - 'DESCRIPTOR' : _RENAMEINFO, +GetNextOffsetReply = _reflection.GeneratedProtocolMessageType('GetNextOffsetReply', (_message.Message,), { + 'DESCRIPTOR' : _GETNEXTOFFSETREPLY, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.RenameInfo) + # @@protoc_insertion_point(class_scope:filemgr.GetNextOffsetReply) }) -_sym_db.RegisterMessage(RenameInfo) +_sym_db.RegisterMessage(GetNextOffsetReply) -Object = _reflection.GeneratedProtocolMessageType('Object', (_message.Message,), { - 'DESCRIPTOR' : _OBJECT, +GetStatsRequest = _reflection.GeneratedProtocolMessageType('GetStatsRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETSTATSREQUEST, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.Object) + # @@protoc_insertion_point(class_scope:filemgr.GetStatsRequest) }) -_sym_db.RegisterMessage(Object) +_sym_db.RegisterMessage(GetStatsRequest) -LoadObjectsResponse = _reflection.GeneratedProtocolMessageType('LoadObjectsResponse', (_message.Message,), { - 'DESCRIPTOR' : _LOADOBJECTSRESPONSE, - '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.LoadObjectsResponse) - }) -_sym_db.RegisterMessage(LoadObjectsResponse) +GetStatsReply = _reflection.GeneratedProtocolMessageType('GetStatsReply', (_message.Message,), { -ObjectPrefix = _reflection.GeneratedProtocolMessageType('ObjectPrefix', (_message.Message,), { - 'DESCRIPTOR' : _OBJECTPREFIX, + 'StatsEntry' : _reflection.GeneratedProtocolMessageType('StatsEntry', (_message.Message,), { + 'DESCRIPTOR' : _GETSTATSREPLY_STATSENTRY, + '__module__' : 'fmgr_pb2' + # @@protoc_insertion_point(class_scope:filemgr.GetStatsReply.StatsEntry) + }) + , + 'DESCRIPTOR' : _GETSTATSREPLY, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.ObjectPrefix) + # @@protoc_insertion_point(class_scope:filemgr.GetStatsReply) }) -_sym_db.RegisterMessage(ObjectPrefix) +_sym_db.RegisterMessage(GetStatsReply) +_sym_db.RegisterMessage(GetStatsReply.StatsEntry) -Empty = _reflection.GeneratedProtocolMessageType('Empty', (_message.Message,), { - 'DESCRIPTOR' : _EMPTY, +SetKvStateReply = _reflection.GeneratedProtocolMessageType('SetKvStateReply', (_message.Message,), { + 'DESCRIPTOR' : _SETKVSTATEREPLY, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.Empty) + # @@protoc_insertion_point(class_scope:filemgr.SetKvStateReply) }) -_sym_db.RegisterMessage(Empty) +_sym_db.RegisterMessage(SetKvStateReply) -GetStatsInfo = _reflection.GeneratedProtocolMessageType('GetStatsInfo', (_message.Message,), { - 'DESCRIPTOR' : _GETSTATSINFO, +GetKvStateRequest = _reflection.GeneratedProtocolMessageType('GetKvStateRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETKVSTATEREQUEST, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.GetStatsInfo) + # @@protoc_insertion_point(class_scope:filemgr.GetKvStateRequest) }) -_sym_db.RegisterMessage(GetStatsInfo) - -PartitionContent = _reflection.GeneratedProtocolMessageType('PartitionContent', (_message.Message,), { - 'DESCRIPTOR' : _PARTITIONCONTENT, - '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.PartitionContent) - }) -_sym_db.RegisterMessage(PartitionContent) - -FullPathEntry = _reflection.GeneratedProtocolMessageType('FullPathEntry', (_message.Message,), { - 'DESCRIPTOR' : _FULLPATHENTRY, - '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.FullPathEntry) - }) -_sym_db.RegisterMessage(FullPathEntry) +_sym_db.RegisterMessage(GetKvStateRequest) KvState = _reflection.GeneratedProtocolMessageType('KvState', (_message.Message,), { 'DESCRIPTOR' : _KVSTATE, @@ -1608,28 +2093,27 @@ KvState = _reflection.GeneratedProtocolMessageType('KvState', (_message.Message, }) _sym_db.RegisterMessage(KvState) -KVStats = _reflection.GeneratedProtocolMessageType('KVStats', (_message.Message,), { - - 'StatsEntry' : _reflection.GeneratedProtocolMessageType('StatsEntry', (_message.Message,), { - 'DESCRIPTOR' : _KVSTATS_STATSENTRY, - '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.KVStats.StatsEntry) - }) - , - 'DESCRIPTOR' : _KVSTATS, +Volume = _reflection.GeneratedProtocolMessageType('Volume', (_message.Message,), { + 'DESCRIPTOR' : _VOLUME, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.KVStats) + # @@protoc_insertion_point(class_scope:filemgr.Volume) }) -_sym_db.RegisterMessage(KVStats) -_sym_db.RegisterMessage(KVStats.StatsEntry) +_sym_db.RegisterMessage(Volume) -ListQuarantinedOHashesInfo = _reflection.GeneratedProtocolMessageType('ListQuarantinedOHashesInfo', (_message.Message,), { - 'DESCRIPTOR' : _LISTQUARANTINEDOHASHESINFO, +Object = _reflection.GeneratedProtocolMessageType('Object', (_message.Message,), { + 'DESCRIPTOR' : _OBJECT, '__module__' : 'fmgr_pb2' - # @@protoc_insertion_point(class_scope:filemgr.ListQuarantinedOHashesInfo) + # @@protoc_insertion_point(class_scope:filemgr.Object) }) -_sym_db.RegisterMessage(ListQuarantinedOHashesInfo) +_sym_db.RegisterMessage(Object) + +DirEntries = _reflection.GeneratedProtocolMessageType('DirEntries', (_message.Message,), { + 'DESCRIPTOR' : _DIRENTRIES, + '__module__' : 'fmgr_pb2' + # @@protoc_insertion_point(class_scope:filemgr.DirEntries) + }) +_sym_db.RegisterMessage(DirEntries) -_KVSTATS_STATSENTRY._options = None +_GETSTATSREPLY_STATSENTRY._options = None # @@protoc_insertion_point(module_scope) diff --git a/swift/obj/rpc_http.py b/swift/obj/rpc_http.py index 86ec38f559..df3ff6e941 100644 --- a/swift/obj/rpc_http.py +++ b/swift/obj/rpc_http.py @@ -22,6 +22,7 @@ from swift.obj import fmgr_pb2 as pb class UnixHTTPConnection(httplib.HTTPConnection): """Support for unix domain socket with httplib""" + def __init__(self, path, host='localhost', port=None, strict=None, timeout=None): httplib.HTTPConnection.__init__(self, host, port=port, strict=strict, @@ -76,43 +77,45 @@ def get_next_offset(socket_path, volume_index, repair_tool=False): """ Returns the next offset to use in the volume """ - volume = pb.GetNextOffsetInfo(volume_index=int(volume_index), - repair_tool=repair_tool) + volume = pb.GetNextOffsetRequest(volume_index=int(volume_index), + repair_tool=repair_tool) conn = UnixHTTPConnection(socket_path) conn.request('POST', '/get_next_offset', volume.SerializeToString()) - response = get_rpc_reply(conn, pb.VolumeNextOffset) + response = get_rpc_reply(conn, pb.GetNextOffsetReply) return response.offset def register_volume(socket_path, partition, volume_type, volume_index, first_obj_offset, state, repair_tool=False): - volume = pb.NewVolumeInfo(partition=int(partition), type=int(volume_type), - volume_index=int(volume_index), - offset=first_obj_offset, state=state, - repair_tool=repair_tool) + volume = pb.RegisterVolumeRequest(partition=int(partition), + type=int(volume_type), + volume_index=int(volume_index), + offset=first_obj_offset, state=state, + repair_tool=repair_tool) conn = UnixHTTPConnection(socket_path) conn.request('POST', '/register_volume', volume.SerializeToString()) - response = get_rpc_reply(conn, pb.NewVolumeReply) + response = get_rpc_reply(conn, pb.RegisterVolumeReply) return response def unregister_volume(socket_path, volume_index): - index = pb.VolumeIndex(index=volume_index) + index = pb.UnregisterVolumeRequest(index=volume_index) conn = UnixHTTPConnection(socket_path) conn.request('POST', '/unregister_volume', index.SerializeToString()) - response = get_rpc_reply(conn, pb.Empty) + response = get_rpc_reply(conn, pb.UnregisterVolumeReply) return response def update_volume_state(socket_path, volume_index, new_state, repair_tool=False): - state_update = pb.NewVolumeState(volume_index=int(volume_index), - state=new_state, repair_tool=repair_tool) + state_update = pb.UpdateVolumeStateRequest(volume_index=int(volume_index), + state=new_state, + repair_tool=repair_tool) conn = UnixHTTPConnection(socket_path) conn.request('POST', '/update_volume_state', state_update.SerializeToString()) - response = get_rpc_reply(conn, pb.Empty) + response = get_rpc_reply(conn, pb.UpdateVolumeStateReply) return response @@ -121,46 +124,49 @@ def register_object(socket_path, name, volume_index, offset, next_offset, """ register a vfile """ - obj = pb.NewObjectInfo(name=str(name), volume_index=int(volume_index), - offset=int(offset), - next_offset=int(next_offset), - repair_tool=repair_tool) + obj = pb.RegisterObjectRequest(name=str(name), + volume_index=int(volume_index), + offset=int(offset), + next_offset=int(next_offset), + repair_tool=repair_tool) conn = UnixHTTPConnection(socket_path) conn.request('POST', '/register_object', obj.SerializeToString()) - response = get_rpc_reply(conn, pb.NewObjectReply) + response = get_rpc_reply(conn, pb.RegisterObjectReply) return response -def unregister_object(socket_path, name): - obj = pb.ObjectName(name=str(name)) +def unregister_object(socket_path, name, repair_tool=False): + obj = pb.UnregisterObjectRequest(name=str(name), repair_tool=repair_tool) conn = UnixHTTPConnection(socket_path) conn.request('POST', '/unregister_object', obj.SerializeToString()) - response = get_rpc_reply(conn, pb.DelObjectReply) + response = get_rpc_reply(conn, pb.UnregisterObjectReply) return response def rename_object(socket_path, name, new_name, repair_tool=False): - rename_info = pb.RenameInfo(name=str(name), new_name=str(new_name), - repair_tool=repair_tool) + rename_req = pb.RenameObjectRequest(name=str(name), new_name=str(new_name), + repair_tool=repair_tool) conn = UnixHTTPConnection(socket_path) - conn.request('POST', '/rename_object', rename_info.SerializeToString()) - response = get_rpc_reply(conn, pb.RenameReply) + conn.request('POST', '/rename_object', rename_req.SerializeToString()) + response = get_rpc_reply(conn, pb.RenameObjectReply) return response def quarantine_object(socket_path, name, repair_tool=False): - objname = pb.ObjectName(name=str(name), repair_tool=repair_tool) + objname = pb.QuarantineObjectRequest(name=str(name), + repair_tool=repair_tool) conn = UnixHTTPConnection(socket_path) conn.request('POST', '/quarantine_object', objname.SerializeToString()) - response = get_rpc_reply(conn, pb.Empty) + response = get_rpc_reply(conn, pb.QuarantineObjectReply) return response def unquarantine_object(socket_path, name, repair_tool=False): - objname = pb.ObjectName(name=str(name), repair_tool=repair_tool) + objname = pb.UnquarantineObjectRequest(name=str(name), + repair_tool=repair_tool) conn = UnixHTTPConnection(socket_path) conn.request('POST', '/unquarantine_object', objname.SerializeToString()) - response = get_rpc_reply(conn, pb.Empty) + response = get_rpc_reply(conn, pb.UnquarantineObjectReply) return response @@ -173,12 +179,12 @@ def _list_quarantined_ohashes(socket_path, page_token, page_size): :param page_size: maximum number of results to be returned :return: A list of quarantined object hashes """ - req_args = pb.ListQuarantinedOHashesInfo(page_token=str(page_token), - page_size=page_size) + req_args = pb.ListQuarantinedOHashesRequest(page_token=str(page_token), + page_size=page_size) conn = UnixHTTPConnection(socket_path) conn.request('POST', '/list_quarantined_ohashes', req_args.SerializeToString()) - response = get_rpc_reply(conn, pb.QuarantinedObjectNames) + response = get_rpc_reply(conn, pb.ListQuarantinedOHashesReply) return response @@ -195,7 +201,7 @@ def list_quarantined_ohashes(socket_path, page_size=10000): response = _list_quarantined_ohashes(socket_path, page_token, page_size) for r in response.objects: - yield(r) + yield (r) page_token = response.next_page_token if not page_token: break @@ -215,13 +221,15 @@ def _list_objects_by_volume(socket_path, volume_index, quarantined, page_token, :param repair_tool: set to true if caller is a repair tool :return: A list of objects for the volume """ - req_args = pb.VolumeIndex(index=volume_index, quarantined=quarantined, - page_token=page_token, page_size=page_size, - repair_tool=repair_tool) + req_args = pb.LoadObjectsByVolumeRequest(index=volume_index, + quarantined=quarantined, + page_token=page_token, + page_size=page_size, + repair_tool=repair_tool) conn = UnixHTTPConnection(socket_path) conn.request('POST', '/load_objects_by_volume', req_args.SerializeToString()) - response = get_rpc_reply(conn, pb.LoadObjectsResponse) + response = get_rpc_reply(conn, pb.LoadObjectsByVolumeReply) return response @@ -233,7 +241,7 @@ def list_objects_by_volume(socket_path, volume_index, quarantined=False, quarantined, page_token, page_size, repair_tool) for r in response.objects: - yield(r) + yield (r) page_token = response.next_page_token if not page_token: break @@ -241,10 +249,11 @@ def list_objects_by_volume(socket_path, volume_index, quarantined=False, def list_quarantined_ohash(socket_path, prefix, repair_tool=False): len_prefix = len(prefix) - prefix = pb.ObjectPrefix(prefix=str(prefix), repair_tool=repair_tool) + prefix = pb.ListQuarantinedOHashRequest(prefix=str(prefix), + repair_tool=repair_tool) conn = UnixHTTPConnection(socket_path) conn.request('POST', '/list_quarantined_ohash', prefix.SerializeToString()) - response = get_rpc_reply(conn, pb.LoadObjectsResponse) + response = get_rpc_reply(conn, pb.ListQuarantinedOHashReply) # Caller expects object names without the prefix, similar # to os.listdir, not actual objects. @@ -259,10 +268,11 @@ def list_quarantined_ohash(socket_path, prefix, repair_tool=False): def list_prefix(socket_path, prefix, repair_tool=False): len_prefix = len(prefix) prefix = str(prefix) - prefix = pb.ObjectPrefix(prefix=prefix, repair_tool=repair_tool) + prefix = pb.LoadObjectsByPrefixRequest(prefix=prefix, + repair_tool=repair_tool) conn = UnixHTTPConnection(socket_path) conn.request('POST', '/load_objects_by_prefix', prefix.SerializeToString()) - response = get_rpc_reply(conn, pb.LoadObjectsResponse) + response = get_rpc_reply(conn, pb.LoadObjectsByPrefixReply) # response.objets is an iterable # TBD, caller expects object names without the prefix, similar # to os.listdir, not actual objects. @@ -279,65 +289,57 @@ def get_object(socket_path, name, is_quarantined=False, repair_tool=False): """ returns an object given its whole key """ - object_name = pb.LoadObjectInfo(name=str(name), - is_quarantined=is_quarantined, - repair_tool=repair_tool) + object_name = pb.LoadObjectRequest(name=str(name), + is_quarantined=is_quarantined, + repair_tool=repair_tool) conn = UnixHTTPConnection(socket_path) conn.request('POST', '/load_object', object_name.SerializeToString()) - response = get_rpc_reply(conn, pb.Object) + response = get_rpc_reply(conn, pb.LoadObjectReply) return response def list_partitions(socket_path, partition_bits): - list_partitions_info = pb.ListPartitionsInfo( + list_partitions_req = pb.ListPartitionsRequest( partition_bits=partition_bits) conn = UnixHTTPConnection(socket_path) conn.request('POST', '/list_partitions', - list_partitions_info.SerializeToString()) + list_partitions_req.SerializeToString()) response = get_rpc_reply(conn, pb.DirEntries) return response.entry def list_partition(socket_path, partition, partition_bits): - list_partition_info = pb.ListPartitionInfo(partition=partition, - partition_bits=partition_bits) + list_partition_req = pb.ListPartitionRequest(partition=partition, + partition_bits=partition_bits) conn = UnixHTTPConnection(socket_path) conn.request('POST', '/list_partition', - list_partition_info.SerializeToString()) + list_partition_req.SerializeToString()) response = get_rpc_reply(conn, pb.DirEntries) return response.entry def list_suffix(socket_path, partition, suffix, partition_bits): suffix = str(suffix) - list_suffix_info = pb.ListSuffixInfo(partition=partition, - suffix=suffix, - partition_bits=partition_bits) + list_suffix_req = pb.ListSuffixRequest(partition=partition, + suffix=suffix, + partition_bits=partition_bits) conn = UnixHTTPConnection(socket_path) - conn.request('POST', '/list_suffix', list_suffix_info.SerializeToString()) + conn.request('POST', '/list_suffix', list_suffix_req.SerializeToString()) response = get_rpc_reply(conn, pb.DirEntries) return response.entry def list_volumes(socket_path, partition, type, repair_tool=False): - list_info = pb.ListVolumesInfo(partition=int(partition), type=type, - repair_tool=repair_tool) + list_req = pb.ListVolumesRequest(partition=int(partition), type=type, + repair_tool=repair_tool) conn = UnixHTTPConnection(socket_path) - conn.request('POST', '/list_volumes', list_info.SerializeToString()) - response = get_rpc_reply(conn, pb.Volumes) + conn.request('POST', '/list_volumes', list_req.SerializeToString()) + response = get_rpc_reply(conn, pb.ListVolumesReply) return response.volumes -def get_volume_stats(socket_path): - e = pb.Empty() - conn = UnixHTTPConnection(socket_path) - conn.request('POST', '/get_volume_stats', e.SerializeToString()) - response = get_rpc_reply(conn, pb.VolumeStats) - return response.volume - - def get_volume(socket_path, index, repair_tool=False): - volume_idx = pb.VolumeIndex(index=index, repair_tool=repair_tool) + volume_idx = pb.GetVolumeRequest(index=index, repair_tool=repair_tool) conn = UnixHTTPConnection(socket_path) conn.request('POST', '/get_volume', volume_idx.SerializeToString()) response = get_rpc_reply(conn, pb.Volume) @@ -345,16 +347,17 @@ def get_volume(socket_path, index, repair_tool=False): def get_stats(socket_path): - stats_info = pb.GetStatsInfo() + stats_req = pb.GetStatsInfo() conn = UnixHTTPConnection(socket_path) - conn.request('POST', '/get_stats', stats_info.SerializeToString()) - response = get_rpc_reply(conn, pb.LoadObjectsResponse) + conn.request('POST', '/get_stats', stats_req.SerializeToString()) + response = get_rpc_reply(conn, pb.GetStatsReply) return response def get_kv_state(socket_path): + pb_out = pb.GetKvStateRequest() conn = UnixHTTPConnection(socket_path) - conn.request('POST', '/get_kv_state') + conn.request('POST', '/get_kv_state', pb_out.SerializeToString()) response = get_rpc_reply(conn, pb.KvState) return response @@ -363,5 +366,5 @@ def set_kv_state(socket_path, isClean): conn = UnixHTTPConnection(socket_path) newKvState = pb.KvState(isClean=isClean) conn.request('POST', '/set_kv_state', newKvState.SerializeToString()) - response = get_rpc_reply(conn, pb.Empty) + response = get_rpc_reply(conn, pb.SetKvStateReply) return response diff --git a/test/unit/obj/test_rpc_http.py b/test/unit/obj/test_rpc_http.py index 588c427dfb..08a1a4cf2d 100644 --- a/test/unit/obj/test_rpc_http.py +++ b/test/unit/obj/test_rpc_http.py @@ -32,8 +32,8 @@ class TestRpcHttp(unittest.TestCase): with mock.patch("swift.obj.rpc_http.UnixHTTPConnection", return_value=m_conn): rpc_http.list_partitions(self.socket_path, self.part_power) - arg = fmgr_pb2.ListPartitionsInfo(partition_bits=self.part_power) - # m_conn[self.socket_path].stub.ListPartitions.assert_called_once_with(arg) + arg = fmgr_pb2.ListPartitionsRequest( + partition_bits=self.part_power) serialized_arg = arg.SerializeToString() m_conn.request.assert_called_once_with('POST', '/list_partitions', serialized_arg) diff --git a/test/unit/obj/test_vfile.py b/test/unit/obj/test_vfile.py index a966f96fb3..66c1125a5c 100644 --- a/test/unit/obj/test_vfile.py +++ b/test/unit/obj/test_vfile.py @@ -945,7 +945,7 @@ class TestVFileWriter(unittest.TestCase): conf = {} logger = None - rpc_reply = fmgr_pb2.Volumes() + rpc_reply = fmgr_pb2.ListVolumesReply() volume = fmgr_pb2.Volume(volume_index=1, volume_type=fmgr_pb2.VOLUME_DEFAULT, volume_state=fmgr_pb2.STATE_COMPACTION_TARGET, @@ -1059,7 +1059,7 @@ class TestVFileWriter(unittest.TestCase): for t in test_sets: # build the RPC reply - rpc_reply = fmgr_pb2.Volumes() + rpc_reply = fmgr_pb2.ListVolumesReply() for vol in t["volumes"]: volume = fmgr_pb2.Volume(volume_index=vol["index"], volume_type=vol["type"],