diff --git a/assets/v2/assets/merklelogentry.pb.go b/assets/v2/assets/merklelogentry.pb.go index 01b5432..83e33c8 100644 --- a/assets/v2/assets/merklelogentry.pb.go +++ b/assets/v2/assets/merklelogentry.pb.go @@ -84,6 +84,153 @@ func (x *MerkleLogCommit) GetIdtimestamp() string { return "" } +type MerkleLogActiveItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TenantIdentity string `protobuf:"bytes,1,opt,name=tenant_identity,json=tenantIdentity,proto3" json:"tenant_identity,omitempty"` + // -1 indicates not set + Massif int64 `protobuf:"varint,2,opt,name=massif,proto3" json:"massif,omitempty"` + // -1 indicates not set + Seal int64 `protobuf:"varint,3,opt,name=seal,proto3" json:"seal,omitempty"` + // the most recent last ids in the blob tag index for the massif and the seal + MassifLastid string `protobuf:"bytes,4,opt,name=massif_lastid,json=massifLastid,proto3" json:"massif_lastid,omitempty"` + SealLastid string `protobuf:"bytes,5,opt,name=seal_lastid,json=sealLastid,proto3" json:"seal_lastid,omitempty"` +} + +func (x *MerkleLogActiveItem) Reset() { + *x = MerkleLogActiveItem{} + if protoimpl.UnsafeEnabled { + mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MerkleLogActiveItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MerkleLogActiveItem) ProtoMessage() {} + +func (x *MerkleLogActiveItem) ProtoReflect() protoreflect.Message { + mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MerkleLogActiveItem.ProtoReflect.Descriptor instead. +func (*MerkleLogActiveItem) Descriptor() ([]byte, []int) { + return file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDescGZIP(), []int{1} +} + +func (x *MerkleLogActiveItem) GetTenantIdentity() string { + if x != nil { + return x.TenantIdentity + } + return "" +} + +func (x *MerkleLogActiveItem) GetMassif() int64 { + if x != nil { + return x.Massif + } + return 0 +} + +func (x *MerkleLogActiveItem) GetSeal() int64 { + if x != nil { + return x.Seal + } + return 0 +} + +func (x *MerkleLogActiveItem) GetMassifLastid() string { + if x != nil { + return x.MassifLastid + } + return "" +} + +func (x *MerkleLogActiveItem) GetSealLastid() string { + if x != nil { + return x.SealLastid + } + return "" +} + +type MerkleLogActiveSince struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The idtimestamp used for the lastid > idtimestamp filter + SinceIdtimestamp string `protobuf:"bytes,1,opt,name=since_idtimestamp,json=sinceIdtimestamp,proto3" json:"since_idtimestamp,omitempty"` + // The regular unix time, in milliseconds, the watch set was create + TimestampMs int64 `protobuf:"varint,2,opt,name=timestamp_ms,json=timestampMs,proto3" json:"timestamp_ms,omitempty"` + Items []*MerkleLogActiveItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` +} + +func (x *MerkleLogActiveSince) Reset() { + *x = MerkleLogActiveSince{} + if protoimpl.UnsafeEnabled { + mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MerkleLogActiveSince) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MerkleLogActiveSince) ProtoMessage() {} + +func (x *MerkleLogActiveSince) ProtoReflect() protoreflect.Message { + mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MerkleLogActiveSince.ProtoReflect.Descriptor instead. +func (*MerkleLogActiveSince) Descriptor() ([]byte, []int) { + return file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDescGZIP(), []int{2} +} + +func (x *MerkleLogActiveSince) GetSinceIdtimestamp() string { + if x != nil { + return x.SinceIdtimestamp + } + return "" +} + +func (x *MerkleLogActiveSince) GetTimestampMs() int64 { + if x != nil { + return x.TimestampMs + } + return 0 +} + +func (x *MerkleLogActiveSince) GetItems() []*MerkleLogActiveItem { + if x != nil { + return x.Items + } + return nil +} + type MerkleLogConfirm struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -103,7 +250,7 @@ type MerkleLogConfirm struct { func (x *MerkleLogConfirm) Reset() { *x = MerkleLogConfirm{} if protoimpl.UnsafeEnabled { - mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[1] + mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -116,7 +263,7 @@ func (x *MerkleLogConfirm) String() string { func (*MerkleLogConfirm) ProtoMessage() {} func (x *MerkleLogConfirm) ProtoReflect() protoreflect.Message { - mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[1] + mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -129,7 +276,7 @@ func (x *MerkleLogConfirm) ProtoReflect() protoreflect.Message { // Deprecated: Use MerkleLogConfirm.ProtoReflect.Descriptor instead. func (*MerkleLogConfirm) Descriptor() ([]byte, []int) { - return file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDescGZIP(), []int{1} + return file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDescGZIP(), []int{3} } func (x *MerkleLogConfirm) GetMmrSize() uint64 { @@ -176,7 +323,7 @@ type MerkleLogUnequivocal struct { func (x *MerkleLogUnequivocal) Reset() { *x = MerkleLogUnequivocal{} if protoimpl.UnsafeEnabled { - mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[2] + mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -189,7 +336,7 @@ func (x *MerkleLogUnequivocal) String() string { func (*MerkleLogUnequivocal) ProtoMessage() {} func (x *MerkleLogUnequivocal) ProtoReflect() protoreflect.Message { - mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[2] + mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -202,7 +349,7 @@ func (x *MerkleLogUnequivocal) ProtoReflect() protoreflect.Message { // Deprecated: Use MerkleLogUnequivocal.ProtoReflect.Descriptor instead. func (*MerkleLogUnequivocal) Descriptor() ([]byte, []int) { - return file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDescGZIP(), []int{2} + return file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDescGZIP(), []int{4} } // The message sent from forestrie to avid notifying that the corresponding @@ -223,7 +370,7 @@ type MerkleLogCommitMessage struct { func (x *MerkleLogCommitMessage) Reset() { *x = MerkleLogCommitMessage{} if protoimpl.UnsafeEnabled { - mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[3] + mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -236,7 +383,7 @@ func (x *MerkleLogCommitMessage) String() string { func (*MerkleLogCommitMessage) ProtoMessage() {} func (x *MerkleLogCommitMessage) ProtoReflect() protoreflect.Message { - mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[3] + mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -249,7 +396,7 @@ func (x *MerkleLogCommitMessage) ProtoReflect() protoreflect.Message { // Deprecated: Use MerkleLogCommitMessage.ProtoReflect.Descriptor instead. func (*MerkleLogCommitMessage) Descriptor() ([]byte, []int) { - return file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDescGZIP(), []int{3} + return file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDescGZIP(), []int{5} } func (x *MerkleLogCommitMessage) GetTenantIdentity() string { @@ -292,7 +439,7 @@ type MerkleLogConfirmMessage struct { func (x *MerkleLogConfirmMessage) Reset() { *x = MerkleLogConfirmMessage{} if protoimpl.UnsafeEnabled { - mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[4] + mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -305,7 +452,7 @@ func (x *MerkleLogConfirmMessage) String() string { func (*MerkleLogConfirmMessage) ProtoMessage() {} func (x *MerkleLogConfirmMessage) ProtoReflect() protoreflect.Message { - mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[4] + mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -318,7 +465,7 @@ func (x *MerkleLogConfirmMessage) ProtoReflect() protoreflect.Message { // Deprecated: Use MerkleLogConfirmMessage.ProtoReflect.Descriptor instead. func (*MerkleLogConfirmMessage) Descriptor() ([]byte, []int) { - return file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDescGZIP(), []int{4} + return file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDescGZIP(), []int{6} } func (x *MerkleLogConfirmMessage) GetTenantIdentity() string { @@ -347,7 +494,7 @@ type MerkleLogUnequivocalMessage struct { func (x *MerkleLogUnequivocalMessage) Reset() { *x = MerkleLogUnequivocalMessage{} if protoimpl.UnsafeEnabled { - mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[5] + mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -360,7 +507,7 @@ func (x *MerkleLogUnequivocalMessage) String() string { func (*MerkleLogUnequivocalMessage) ProtoMessage() {} func (x *MerkleLogUnequivocalMessage) ProtoReflect() protoreflect.Message { - mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[5] + mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -373,7 +520,7 @@ func (x *MerkleLogUnequivocalMessage) ProtoReflect() protoreflect.Message { // Deprecated: Use MerkleLogUnequivocalMessage.ProtoReflect.Descriptor instead. func (*MerkleLogUnequivocalMessage) Descriptor() ([]byte, []int) { - return file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDescGZIP(), []int{5} + return file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDescGZIP(), []int{7} } func (x *MerkleLogUnequivocalMessage) GetTenantIdentity() string { @@ -407,7 +554,7 @@ type MerkleLogEntry struct { func (x *MerkleLogEntry) Reset() { *x = MerkleLogEntry{} if protoimpl.UnsafeEnabled { - mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[6] + mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -420,7 +567,7 @@ func (x *MerkleLogEntry) String() string { func (*MerkleLogEntry) ProtoMessage() {} func (x *MerkleLogEntry) ProtoReflect() protoreflect.Message { - mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[6] + mi := &file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -433,7 +580,7 @@ func (x *MerkleLogEntry) ProtoReflect() protoreflect.Message { // Deprecated: Use MerkleLogEntry.ProtoReflect.Descriptor instead. func (*MerkleLogEntry) Descriptor() ([]byte, []int) { - return file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDescGZIP(), []int{6} + return file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDescGZIP(), []int{8} } func (x *MerkleLogEntry) GetCommit() *MerkleLogCommit { @@ -471,68 +618,89 @@ var file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDesc = [ 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x64, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x64, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xab, 0x01, 0x0a, 0x10, 0x4d, 0x65, 0x72, 0x6b, - 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x12, 0x19, 0x0a, 0x08, - 0x6d, 0x6d, 0x72, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, - 0x6d, 0x6d, 0x72, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6f, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x64, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x69, 0x64, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x28, 0x0a, 0x10, 0x73, - 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x74, 0x72, 0x65, 0x65, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x54, 0x72, 0x65, - 0x65, 0x48, 0x65, 0x61, 0x64, 0x22, 0x16, 0x0a, 0x14, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, - 0x6f, 0x67, 0x55, 0x6e, 0x65, 0x71, 0x75, 0x69, 0x76, 0x6f, 0x63, 0x61, 0x6c, 0x22, 0xd9, 0x01, - 0x0a, 0x16, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, - 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x65, 0x6e, 0x61, - 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x12, 0x35, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x69, 0x73, 0x74, 0x2e, 0x76, - 0x32, 0x2e, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, - 0x74, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x22, 0x7c, 0x0a, 0x17, 0x4d, 0x65, 0x72, - 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, - 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x38, 0x0a, - 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xb0, 0x01, 0x0a, 0x13, 0x4d, 0x65, 0x72, 0x6b, + 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x12, + 0x27, 0x0a, 0x0f, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, + 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x61, 0x73, 0x73, + 0x69, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6d, 0x61, 0x73, 0x73, 0x69, 0x66, + 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, + 0x73, 0x65, 0x61, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x73, 0x73, 0x69, 0x66, 0x5f, 0x6c, + 0x61, 0x73, 0x74, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x61, 0x73, + 0x73, 0x69, 0x66, 0x4c, 0x61, 0x73, 0x74, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x65, 0x61, + 0x6c, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x73, 0x65, 0x61, 0x6c, 0x4c, 0x61, 0x73, 0x74, 0x69, 0x64, 0x22, 0x9f, 0x01, 0x0a, 0x14, 0x4d, + 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x69, + 0x6e, 0x63, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x73, 0x69, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, + 0x73, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x73, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x4d, 0x73, 0x12, 0x37, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x69, 0x73, 0x74, 0x2e, 0x76, + 0x32, 0x2e, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x41, 0x63, 0x74, 0x69, 0x76, + 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0xab, 0x01, 0x0a, + 0x10, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, + 0x6d, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x6d, 0x72, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x07, 0x6d, 0x6d, 0x72, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x72, 0x6f, 0x6f, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x74, + 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x20, + 0x0a, 0x0b, 0x69, 0x64, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x64, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x12, 0x28, 0x0a, 0x10, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x74, 0x72, 0x65, 0x65, 0x5f, + 0x68, 0x65, 0x61, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x73, 0x69, 0x67, 0x6e, + 0x65, 0x64, 0x54, 0x72, 0x65, 0x65, 0x48, 0x65, 0x61, 0x64, 0x22, 0x16, 0x0a, 0x14, 0x4d, 0x65, + 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x55, 0x6e, 0x65, 0x71, 0x75, 0x69, 0x76, 0x6f, 0x63, + 0x61, 0x6c, 0x22, 0xd9, 0x01, 0x0a, 0x16, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x27, 0x0a, + 0x0f, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, + 0x65, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x38, 0x0a, + 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x35, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, + 0x69, 0x73, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, + 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x22, 0x7c, + 0x0a, 0x17, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x72, 0x6d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x65, 0x6e, + 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x12, 0x38, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x69, 0x73, 0x74, 0x2e, + 0x76, 0x32, 0x2e, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x72, 0x6d, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x22, 0x8c, 0x01, 0x0a, + 0x1b, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x55, 0x6e, 0x65, 0x71, 0x75, 0x69, + 0x76, 0x6f, 0x63, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x27, 0x0a, 0x0f, + 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x44, 0x0a, 0x0b, 0x75, 0x6e, 0x65, 0x71, 0x75, 0x69, 0x76, + 0x6f, 0x63, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x72, 0x63, + 0x68, 0x69, 0x76, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, + 0x4c, 0x6f, 0x67, 0x55, 0x6e, 0x65, 0x71, 0x75, 0x69, 0x76, 0x6f, 0x63, 0x61, 0x6c, 0x52, 0x0b, + 0x75, 0x6e, 0x65, 0x71, 0x75, 0x69, 0x76, 0x6f, 0x63, 0x61, 0x6c, 0x22, 0xc7, 0x01, 0x0a, 0x0e, + 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x35, + 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x65, - 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x52, 0x07, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x22, 0x8c, 0x01, 0x0a, 0x1b, 0x4d, 0x65, 0x72, 0x6b, - 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x55, 0x6e, 0x65, 0x71, 0x75, 0x69, 0x76, 0x6f, 0x63, 0x61, 0x6c, - 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x74, 0x65, 0x6e, 0x61, 0x6e, - 0x74, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x12, 0x44, 0x0a, 0x0b, 0x75, 0x6e, 0x65, 0x71, 0x75, 0x69, 0x76, 0x6f, 0x63, 0x61, 0x6c, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x69, 0x73, - 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x55, 0x6e, - 0x65, 0x71, 0x75, 0x69, 0x76, 0x6f, 0x63, 0x61, 0x6c, 0x52, 0x0b, 0x75, 0x6e, 0x65, 0x71, 0x75, - 0x69, 0x76, 0x6f, 0x63, 0x61, 0x6c, 0x22, 0xc7, 0x01, 0x0a, 0x0e, 0x4d, 0x65, 0x72, 0x6b, 0x6c, - 0x65, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x35, 0x0a, 0x06, 0x63, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x72, 0x63, 0x68, - 0x69, 0x76, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, - 0x6f, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, - 0x12, 0x38, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x32, - 0x2e, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, - 0x6d, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x12, 0x44, 0x0a, 0x0b, 0x75, 0x6e, - 0x65, 0x71, 0x75, 0x69, 0x76, 0x6f, 0x63, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x22, 0x2e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x4d, - 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x55, 0x6e, 0x65, 0x71, 0x75, 0x69, 0x76, 0x6f, - 0x63, 0x61, 0x6c, 0x52, 0x0b, 0x75, 0x6e, 0x65, 0x71, 0x75, 0x69, 0x76, 0x6f, 0x63, 0x61, 0x6c, - 0x42, 0x4c, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, - 0x61, 0x74, 0x61, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x73, 0x2f, 0x67, 0x6f, 0x2d, 0x64, 0x61, 0x74, - 0x61, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x73, 0x2d, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2d, 0x61, - 0x70, 0x69, 0x2d, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x76, 0x32, - 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x3b, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x06, 0x63, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x69, + 0x73, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x12, + 0x44, 0x0a, 0x0b, 0x75, 0x6e, 0x65, 0x71, 0x75, 0x69, 0x76, 0x6f, 0x63, 0x61, 0x6c, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 0x69, 0x73, 0x74, + 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x55, 0x6e, 0x65, + 0x71, 0x75, 0x69, 0x76, 0x6f, 0x63, 0x61, 0x6c, 0x52, 0x0b, 0x75, 0x6e, 0x65, 0x71, 0x75, 0x69, + 0x76, 0x6f, 0x63, 0x61, 0x6c, 0x42, 0x4c, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x73, 0x2f, 0x67, + 0x6f, 0x2d, 0x64, 0x61, 0x74, 0x61, 0x74, 0x72, 0x61, 0x69, 0x6c, 0x73, 0x2d, 0x63, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x2d, 0x61, 0x70, 0x69, 0x2d, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x73, 0x73, 0x65, + 0x74, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x3b, 0x61, 0x73, 0x73, + 0x65, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -547,30 +715,33 @@ func file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDescGZI return file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDescData } -var file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_goTypes = []interface{}{ (*MerkleLogCommit)(nil), // 0: archivist.v2.MerkleLogCommit - (*MerkleLogConfirm)(nil), // 1: archivist.v2.MerkleLogConfirm - (*MerkleLogUnequivocal)(nil), // 2: archivist.v2.MerkleLogUnequivocal - (*MerkleLogCommitMessage)(nil), // 3: archivist.v2.MerkleLogCommitMessage - (*MerkleLogConfirmMessage)(nil), // 4: archivist.v2.MerkleLogConfirmMessage - (*MerkleLogUnequivocalMessage)(nil), // 5: archivist.v2.MerkleLogUnequivocalMessage - (*MerkleLogEntry)(nil), // 6: archivist.v2.MerkleLogEntry - (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (*MerkleLogActiveItem)(nil), // 1: archivist.v2.MerkleLogActiveItem + (*MerkleLogActiveSince)(nil), // 2: archivist.v2.MerkleLogActiveSince + (*MerkleLogConfirm)(nil), // 3: archivist.v2.MerkleLogConfirm + (*MerkleLogUnequivocal)(nil), // 4: archivist.v2.MerkleLogUnequivocal + (*MerkleLogCommitMessage)(nil), // 5: archivist.v2.MerkleLogCommitMessage + (*MerkleLogConfirmMessage)(nil), // 6: archivist.v2.MerkleLogConfirmMessage + (*MerkleLogUnequivocalMessage)(nil), // 7: archivist.v2.MerkleLogUnequivocalMessage + (*MerkleLogEntry)(nil), // 8: archivist.v2.MerkleLogEntry + (*timestamppb.Timestamp)(nil), // 9: google.protobuf.Timestamp } var file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_depIdxs = []int32{ - 7, // 0: archivist.v2.MerkleLogCommitMessage.timestamp:type_name -> google.protobuf.Timestamp - 0, // 1: archivist.v2.MerkleLogCommitMessage.commit:type_name -> archivist.v2.MerkleLogCommit - 1, // 2: archivist.v2.MerkleLogConfirmMessage.confirm:type_name -> archivist.v2.MerkleLogConfirm - 2, // 3: archivist.v2.MerkleLogUnequivocalMessage.unequivocal:type_name -> archivist.v2.MerkleLogUnequivocal - 0, // 4: archivist.v2.MerkleLogEntry.commit:type_name -> archivist.v2.MerkleLogCommit - 1, // 5: archivist.v2.MerkleLogEntry.confirm:type_name -> archivist.v2.MerkleLogConfirm - 2, // 6: archivist.v2.MerkleLogEntry.unequivocal:type_name -> archivist.v2.MerkleLogUnequivocal - 7, // [7:7] is the sub-list for method output_type - 7, // [7:7] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name + 1, // 0: archivist.v2.MerkleLogActiveSince.items:type_name -> archivist.v2.MerkleLogActiveItem + 9, // 1: archivist.v2.MerkleLogCommitMessage.timestamp:type_name -> google.protobuf.Timestamp + 0, // 2: archivist.v2.MerkleLogCommitMessage.commit:type_name -> archivist.v2.MerkleLogCommit + 3, // 3: archivist.v2.MerkleLogConfirmMessage.confirm:type_name -> archivist.v2.MerkleLogConfirm + 4, // 4: archivist.v2.MerkleLogUnequivocalMessage.unequivocal:type_name -> archivist.v2.MerkleLogUnequivocal + 0, // 5: archivist.v2.MerkleLogEntry.commit:type_name -> archivist.v2.MerkleLogCommit + 3, // 6: archivist.v2.MerkleLogEntry.confirm:type_name -> archivist.v2.MerkleLogConfirm + 4, // 7: archivist.v2.MerkleLogEntry.unequivocal:type_name -> archivist.v2.MerkleLogUnequivocal + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name } func init() { file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_init() } @@ -592,7 +763,7 @@ func file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_init() { } } file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MerkleLogConfirm); i { + switch v := v.(*MerkleLogActiveItem); i { case 0: return &v.state case 1: @@ -604,7 +775,7 @@ func file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_init() { } } file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MerkleLogUnequivocal); i { + switch v := v.(*MerkleLogActiveSince); i { case 0: return &v.state case 1: @@ -616,7 +787,7 @@ func file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_init() { } } file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MerkleLogCommitMessage); i { + switch v := v.(*MerkleLogConfirm); i { case 0: return &v.state case 1: @@ -628,7 +799,7 @@ func file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_init() { } } file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MerkleLogConfirmMessage); i { + switch v := v.(*MerkleLogUnequivocal); i { case 0: return &v.state case 1: @@ -640,7 +811,7 @@ func file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_init() { } } file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MerkleLogUnequivocalMessage); i { + switch v := v.(*MerkleLogCommitMessage); i { case 0: return &v.state case 1: @@ -652,6 +823,30 @@ func file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_init() { } } file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MerkleLogConfirmMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MerkleLogUnequivocalMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MerkleLogEntry); i { case 0: return &v.state @@ -670,7 +865,7 @@ func file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_datatrails_common_api_assets_v2_assets_merklelogentry_proto_rawDesc, NumEnums: 0, - NumMessages: 7, + NumMessages: 9, NumExtensions: 0, NumServices: 0, }, diff --git a/assets/v2/assets/merklelogentry.pb.validate.go b/assets/v2/assets/merklelogentry.pb.validate.go index ae69a90..e9599fb 100644 --- a/assets/v2/assets/merklelogentry.pb.validate.go +++ b/assets/v2/assets/merklelogentry.pb.validate.go @@ -139,6 +139,258 @@ var _ interface { ErrorName() string } = MerkleLogCommitValidationError{} +// Validate checks the field values on MerkleLogActiveItem with the rules +// defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *MerkleLogActiveItem) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on MerkleLogActiveItem with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// MerkleLogActiveItemMultiError, or nil if none found. +func (m *MerkleLogActiveItem) ValidateAll() error { + return m.validate(true) +} + +func (m *MerkleLogActiveItem) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + // no validation rules for TenantIdentity + + // no validation rules for Massif + + // no validation rules for Seal + + // no validation rules for MassifLastid + + // no validation rules for SealLastid + + if len(errors) > 0 { + return MerkleLogActiveItemMultiError(errors) + } + + return nil +} + +// MerkleLogActiveItemMultiError is an error wrapping multiple validation +// errors returned by MerkleLogActiveItem.ValidateAll() if the designated +// constraints aren't met. +type MerkleLogActiveItemMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m MerkleLogActiveItemMultiError) Error() string { + var msgs []string + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m MerkleLogActiveItemMultiError) AllErrors() []error { return m } + +// MerkleLogActiveItemValidationError is the validation error returned by +// MerkleLogActiveItem.Validate if the designated constraints aren't met. +type MerkleLogActiveItemValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MerkleLogActiveItemValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MerkleLogActiveItemValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MerkleLogActiveItemValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MerkleLogActiveItemValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MerkleLogActiveItemValidationError) ErrorName() string { + return "MerkleLogActiveItemValidationError" +} + +// Error satisfies the builtin error interface +func (e MerkleLogActiveItemValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sMerkleLogActiveItem.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MerkleLogActiveItemValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MerkleLogActiveItemValidationError{} + +// Validate checks the field values on MerkleLogActiveSince with the rules +// defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *MerkleLogActiveSince) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on MerkleLogActiveSince with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// MerkleLogActiveSinceMultiError, or nil if none found. +func (m *MerkleLogActiveSince) ValidateAll() error { + return m.validate(true) +} + +func (m *MerkleLogActiveSince) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + // no validation rules for SinceIdtimestamp + + // no validation rules for TimestampMs + + for idx, item := range m.GetItems() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, MerkleLogActiveSinceValidationError{ + field: fmt.Sprintf("Items[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, MerkleLogActiveSinceValidationError{ + field: fmt.Sprintf("Items[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return MerkleLogActiveSinceValidationError{ + field: fmt.Sprintf("Items[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return MerkleLogActiveSinceMultiError(errors) + } + + return nil +} + +// MerkleLogActiveSinceMultiError is an error wrapping multiple validation +// errors returned by MerkleLogActiveSince.ValidateAll() if the designated +// constraints aren't met. +type MerkleLogActiveSinceMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m MerkleLogActiveSinceMultiError) Error() string { + var msgs []string + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m MerkleLogActiveSinceMultiError) AllErrors() []error { return m } + +// MerkleLogActiveSinceValidationError is the validation error returned by +// MerkleLogActiveSince.Validate if the designated constraints aren't met. +type MerkleLogActiveSinceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e MerkleLogActiveSinceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e MerkleLogActiveSinceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e MerkleLogActiveSinceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e MerkleLogActiveSinceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e MerkleLogActiveSinceValidationError) ErrorName() string { + return "MerkleLogActiveSinceValidationError" +} + +// Error satisfies the builtin error interface +func (e MerkleLogActiveSinceValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sMerkleLogActiveSince.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = MerkleLogActiveSinceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = MerkleLogActiveSinceValidationError{} + // Validate checks the field values on MerkleLogConfirm with the rules defined // in the proto definition for this message. If any rules are violated, the // first error encountered is returned, or nil if there are no violations.