// Copyright (C) 2024 Quickwit, Inc.
//
// Quickwit is offered under the AGPL v3.0 and as commercial software.
// For commercial licensing, contact us at hello@quickwit.io.
//
// AGPL:
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

syntax = "proto3";

package quickwit.common;

// The corresponding Rust struct [`crate::types::DocMappingUid`] is defined manually and
// externally provided during code generation (see `build.rs`).
//
// Modify at your own risk.
message DocMappingUid {
  // ULID encoded as a sequence of 16 bytes (big-endian u128).
  bytes doc_mapping_uid = 1;
}

// The corresponding Rust struct [`crate::types::DocUid`] is defined manually and
// externally provided during code generation (see `build.rs`).
//
// Modify at your own risk.
message DocUid {
  // ULID encoded as a sequence of 16 bytes (big-endian u128).
  bytes doc_uid = 1;
}

// The corresponding Rust struct [`crate::types::IndexUid`] is defined manually and
// externally provided during code generation (see `build.rs`).
//
// Modify at your own risk.
message IndexUid {
  string index_id = 1;
  // ULID encoded as a sequence of 16 bytes (big-endian u128).
  bytes incarnation_id = 2;
}
