#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeyValue {
#[prost(string, tag = "1")]
pub key: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub value: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LabelOntology {
#[prost(string, repeated, tag = "1")]
pub required_label_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Stats {
#[prost(int64, tag = "1")]
pub count: i64,
#[prost(int64, tag = "2")]
pub acc_size: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CollectionStats {
#[prost(message, optional, tag = "1")]
pub object_stats: ::core::option::Option<Stats>,
#[prost(int64, tag = "2")]
pub object_group_count: i64,
#[prost(message, optional, tag = "3")]
pub last_updated: ::core::option::Option<::prost_types::Timestamp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ObjectGroupStats {
#[prost(message, optional, tag = "1")]
pub object_stats: ::core::option::Option<Stats>,
#[prost(message, optional, tag = "2")]
pub last_updated: ::core::option::Option<::prost_types::Timestamp>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Version {
#[prost(int32, tag = "1")]
pub major: i32,
#[prost(int32, tag = "2")]
pub minor: i32,
#[prost(int32, tag = "3")]
pub patch: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Hash {
#[prost(enumeration = "Hashalgorithm", tag = "1")]
pub alg: i32,
#[prost(string, tag = "2")]
pub hash: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Origin {
#[prost(enumeration = "OriginType", tag = "1")]
pub r#type: i32,
#[prost(string, tag = "2")]
pub id: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Source {
#[prost(string, tag = "1")]
pub identifier: ::prost::alloc::string::String,
#[prost(enumeration = "SourceType", tag = "2")]
pub source_type: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Endpoint {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(enumeration = "EndpointType", tag = "2")]
pub ep_type: i32,
#[prost(string, tag = "3")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub proxy_hostname: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub internal_hostname: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub documentation_path: ::prost::alloc::string::String,
#[prost(bool, tag = "7")]
pub is_public: bool,
#[prost(bool, tag = "8")]
pub is_default: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Object {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub filename: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "4")]
pub labels: ::prost::alloc::vec::Vec<KeyValue>,
#[prost(message, repeated, tag = "5")]
pub hooks: ::prost::alloc::vec::Vec<KeyValue>,
#[prost(message, optional, tag = "6")]
pub created: ::core::option::Option<::prost_types::Timestamp>,
#[prost(int64, tag = "7")]
pub content_len: i64,
#[prost(enumeration = "Status", tag = "8")]
pub status: i32,
#[prost(message, optional, tag = "9")]
pub origin: ::core::option::Option<Origin>,
#[prost(enumeration = "DataClass", tag = "10")]
pub data_class: i32,
#[prost(message, optional, tag = "11")]
pub hash: ::core::option::Option<Hash>,
#[prost(int64, tag = "12")]
pub rev_number: i64,
#[prost(message, optional, tag = "13")]
pub source: ::core::option::Option<Source>,
#[prost(bool, tag = "14")]
pub latest: bool,
#[prost(bool, tag = "15")]
pub auto_update: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Objects {
#[prost(message, repeated, tag = "1")]
pub objects: ::prost::alloc::vec::Vec<Object>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ObjectGroup {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub description: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "6")]
pub labels: ::prost::alloc::vec::Vec<KeyValue>,
#[prost(message, repeated, tag = "7")]
pub hooks: ::prost::alloc::vec::Vec<KeyValue>,
#[prost(message, repeated, tag = "8")]
pub objects: ::prost::alloc::vec::Vec<Object>,
#[prost(message, repeated, tag = "9")]
pub meta_objects: ::prost::alloc::vec::Vec<Object>,
#[prost(message, optional, tag = "10")]
pub stats: ::core::option::Option<ObjectGroupStats>,
#[prost(int64, tag = "11")]
pub rev_number: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ObjectGroups {
#[prost(message, repeated, tag = "1")]
pub object_groups: ::prost::alloc::vec::Vec<ObjectGroup>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ObjectGroupOverview {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub description: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "6")]
pub labels: ::prost::alloc::vec::Vec<KeyValue>,
#[prost(message, repeated, tag = "7")]
pub hooks: ::prost::alloc::vec::Vec<KeyValue>,
#[prost(message, optional, tag = "8")]
pub stats: ::core::option::Option<ObjectGroupStats>,
#[prost(int64, tag = "9")]
pub rev_number: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ObjectGroupOverviews {
#[prost(message, repeated, tag = "1")]
pub object_group_overviews: ::prost::alloc::vec::Vec<ObjectGroupOverview>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ObjectGroupWithId {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub description: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "6")]
pub labels: ::prost::alloc::vec::Vec<KeyValue>,
#[prost(message, repeated, tag = "7")]
pub hooks: ::prost::alloc::vec::Vec<KeyValue>,
#[prost(string, repeated, tag = "8")]
pub object_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "9")]
pub meta_object_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "10")]
pub stats: ::core::option::Option<ObjectGroupStats>,
#[prost(int64, tag = "11")]
pub rev_number: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ObjectGroupWithIDs {
#[prost(message, repeated, tag = "1")]
pub object_group_with_ids: ::prost::alloc::vec::Vec<ObjectGroupWithId>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Collection {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub description: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "4")]
pub labels: ::prost::alloc::vec::Vec<KeyValue>,
#[prost(message, repeated, tag = "5")]
pub hooks: ::prost::alloc::vec::Vec<KeyValue>,
#[prost(message, optional, tag = "6")]
pub label_ontology: ::core::option::Option<LabelOntology>,
#[prost(message, optional, tag = "7")]
pub created: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, repeated, tag = "8")]
pub objects: ::prost::alloc::vec::Vec<Object>,
#[prost(message, repeated, tag = "9")]
pub specifications: ::prost::alloc::vec::Vec<Object>,
#[prost(message, repeated, tag = "10")]
pub object_groups: ::prost::alloc::vec::Vec<ObjectGroup>,
#[prost(message, optional, tag = "14")]
pub stats: ::core::option::Option<CollectionStats>,
#[prost(bool, tag = "15")]
pub is_public: bool,
#[prost(oneof = "collection::Version", tags = "12, 13")]
pub version: ::core::option::Option<collection::Version>,
}
pub mod collection {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Version {
#[prost(message, tag = "12")]
SemanticVersion(super::Version),
#[prost(bool, tag = "13")]
Latest(bool),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Collections {
#[prost(message, repeated, tag = "1")]
pub collections: ::prost::alloc::vec::Vec<Collection>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CollectionOverview {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub description: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "4")]
pub labels: ::prost::alloc::vec::Vec<KeyValue>,
#[prost(message, repeated, tag = "5")]
pub hooks: ::prost::alloc::vec::Vec<KeyValue>,
#[prost(message, optional, tag = "6")]
pub label_ontology: ::core::option::Option<LabelOntology>,
#[prost(message, optional, tag = "7")]
pub created: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "14")]
pub stats: ::core::option::Option<CollectionStats>,
#[prost(bool, tag = "15")]
pub is_public: bool,
#[prost(oneof = "collection_overview::Version", tags = "12, 13")]
pub version: ::core::option::Option<collection_overview::Version>,
}
pub mod collection_overview {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Version {
#[prost(message, tag = "12")]
SemanticVersion(super::Version),
#[prost(bool, tag = "13")]
Latest(bool),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CollectionOverviews {
#[prost(message, repeated, tag = "1")]
pub collection_overviews: ::prost::alloc::vec::Vec<CollectionOverview>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CollectionWithId {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub description: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "4")]
pub labels: ::prost::alloc::vec::Vec<KeyValue>,
#[prost(message, repeated, tag = "5")]
pub hooks: ::prost::alloc::vec::Vec<KeyValue>,
#[prost(message, optional, tag = "6")]
pub label_ontology: ::core::option::Option<LabelOntology>,
#[prost(message, optional, tag = "7")]
pub created: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, repeated, tag = "8")]
pub objects: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "9")]
pub specifications: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "10")]
pub object_groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "14")]
pub stats: ::core::option::Option<CollectionStats>,
#[prost(bool, tag = "15")]
pub is_public: bool,
#[prost(oneof = "collection_with_id::Version", tags = "12, 13")]
pub version: ::core::option::Option<collection_with_id::Version>,
}
pub mod collection_with_id {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Version {
#[prost(message, tag = "12")]
SemanticVersion(super::Version),
#[prost(bool, tag = "13")]
Latest(bool),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CollectionWithIDs {
#[prost(message, repeated, tag = "1")]
pub collection_with_ids: ::prost::alloc::vec::Vec<CollectionWithId>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ResourceType {
Unspecified = 0,
Project = 1,
Collection = 2,
ObjectGroup = 3,
Object = 4,
All = 5,
}
impl ResourceType {
pub fn as_str_name(&self) -> &'static str {
match self {
ResourceType::Unspecified => "RESOURCE_TYPE_UNSPECIFIED",
ResourceType::Project => "RESOURCE_TYPE_PROJECT",
ResourceType::Collection => "RESOURCE_TYPE_COLLECTION",
ResourceType::ObjectGroup => "RESOURCE_TYPE_OBJECT_GROUP",
ResourceType::Object => "RESOURCE_TYPE_OBJECT",
ResourceType::All => "RESOURCE_TYPE_ALL",
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ResourceAction {
Unspecified = 0,
Create = 1,
Append = 2,
Update = 3,
Read = 4,
Delete = 5,
}
impl ResourceAction {
pub fn as_str_name(&self) -> &'static str {
match self {
ResourceAction::Unspecified => "RESOURCE_ACTION_UNSPECIFIED",
ResourceAction::Create => "RESOURCE_ACTION_CREATE",
ResourceAction::Append => "RESOURCE_ACTION_APPEND",
ResourceAction::Update => "RESOURCE_ACTION_UPDATE",
ResourceAction::Read => "RESOURCE_ACTION_READ",
ResourceAction::Delete => "RESOURCE_ACTION_DELETE",
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Status {
Unspecified = 0,
Initializing = 1,
Available = 2,
Unavailable = 3,
Error = 4,
Trash = 5,
}
impl Status {
pub fn as_str_name(&self) -> &'static str {
match self {
Status::Unspecified => "STATUS_UNSPECIFIED",
Status::Initializing => "STATUS_INITIALIZING",
Status::Available => "STATUS_AVAILABLE",
Status::Unavailable => "STATUS_UNAVAILABLE",
Status::Error => "STATUS_ERROR",
Status::Trash => "STATUS_TRASH",
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Hashalgorithm {
Unspecified = 0,
Md5 = 1,
Sha1 = 2,
Sha256 = 3,
Sha512 = 4,
Murmur3a32 = 5,
Xxhash32 = 6,
}
impl Hashalgorithm {
pub fn as_str_name(&self) -> &'static str {
match self {
Hashalgorithm::Unspecified => "HASHALGORITHM_UNSPECIFIED",
Hashalgorithm::Md5 => "HASHALGORITHM_MD5",
Hashalgorithm::Sha1 => "HASHALGORITHM_SHA1",
Hashalgorithm::Sha256 => "HASHALGORITHM_SHA256",
Hashalgorithm::Sha512 => "HASHALGORITHM_SHA512",
Hashalgorithm::Murmur3a32 => "HASHALGORITHM_MURMUR3A32",
Hashalgorithm::Xxhash32 => "HASHALGORITHM_XXHASH32",
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum OriginType {
Unspecified = 0,
User = 1,
Objclone = 2,
}
impl OriginType {
pub fn as_str_name(&self) -> &'static str {
match self {
OriginType::Unspecified => "ORIGIN_TYPE_UNSPECIFIED",
OriginType::User => "ORIGIN_TYPE_USER",
OriginType::Objclone => "ORIGIN_TYPE_OBJCLONE",
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum DataClass {
Unspecified = 0,
Public = 1,
Private = 2,
Confidential = 3,
Protected = 4,
}
impl DataClass {
pub fn as_str_name(&self) -> &'static str {
match self {
DataClass::Unspecified => "DATA_CLASS_UNSPECIFIED",
DataClass::Public => "DATA_CLASS_PUBLIC",
DataClass::Private => "DATA_CLASS_PRIVATE",
DataClass::Confidential => "DATA_CLASS_CONFIDENTIAL",
DataClass::Protected => "DATA_CLASS_PROTECTED",
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SourceType {
Unspecified = 0,
Url = 1,
Doi = 2,
}
impl SourceType {
pub fn as_str_name(&self) -> &'static str {
match self {
SourceType::Unspecified => "SOURCE_TYPE_UNSPECIFIED",
SourceType::Url => "SOURCE_TYPE_URL",
SourceType::Doi => "SOURCE_TYPE_DOI",
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum EndpointType {
Unspecified = 0,
S3 = 1,
File = 2,
}
impl EndpointType {
pub fn as_str_name(&self) -> &'static str {
match self {
EndpointType::Unspecified => "ENDPOINT_TYPE_UNSPECIFIED",
EndpointType::S3 => "ENDPOINT_TYPE_S3",
EndpointType::File => "ENDPOINT_TYPE_FILE",
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PageRequest {
#[prost(string, tag = "1")]
pub last_uuid: ::prost::alloc::string::String,
#[prost(int64, tag = "2")]
pub page_size: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LabelFilter {
#[prost(message, repeated, tag = "1")]
pub labels: ::prost::alloc::vec::Vec<KeyValue>,
#[prost(bool, tag = "2")]
pub and_or_or: bool,
#[prost(bool, tag = "3")]
pub keys_only: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LabelOrIdQuery {
#[prost(message, optional, tag = "1")]
pub labels: ::core::option::Option<LabelFilter>,
#[prost(string, repeated, tag = "2")]
pub ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Project {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "3")]
pub user_permissions: ::prost::alloc::vec::Vec<ProjectPermission>,
#[prost(string, repeated, tag = "4")]
pub collection_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, tag = "5")]
pub description: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProjectOverview {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub description: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "4")]
pub collection_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "5")]
pub user_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct User {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub external_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub display_name: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub active: bool,
#[prost(bool, tag = "5")]
pub is_admin: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Token {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(enumeration = "TokenType", tag = "4")]
pub token_type: i32,
#[prost(message, optional, tag = "5")]
pub created_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "6")]
pub expires_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, tag = "7")]
pub collection_id: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub project_id: ::prost::alloc::string::String,
#[prost(enumeration = "Permission", tag = "9")]
pub permission: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProjectPermission {
#[prost(string, tag = "1")]
pub user_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub project_id: ::prost::alloc::string::String,
#[prost(enumeration = "Permission", tag = "3")]
pub permission: i32,
#[prost(bool, tag = "4")]
pub service_account: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProjectPermissionDisplayName {
#[prost(string, tag = "1")]
pub user_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub project_id: ::prost::alloc::string::String,
#[prost(enumeration = "Permission", tag = "3")]
pub permission: i32,
#[prost(string, tag = "4")]
pub display_name: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Permission {
Unspecified = 0,
None = 1,
Read = 2,
Append = 3,
Modify = 4,
Admin = 5,
}
impl Permission {
pub fn as_str_name(&self) -> &'static str {
match self {
Permission::Unspecified => "PERMISSION_UNSPECIFIED",
Permission::None => "PERMISSION_NONE",
Permission::Read => "PERMISSION_READ",
Permission::Append => "PERMISSION_APPEND",
Permission::Modify => "PERMISSION_MODIFY",
Permission::Admin => "PERMISSION_ADMIN",
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PermType {
Unspecified = 0,
User = 1,
Anonymous = 2,
Token = 3,
}
impl PermType {
pub fn as_str_name(&self) -> &'static str {
match self {
PermType::Unspecified => "PERM_TYPE_UNSPECIFIED",
PermType::User => "PERM_TYPE_USER",
PermType::Anonymous => "PERM_TYPE_ANONYMOUS",
PermType::Token => "PERM_TYPE_TOKEN",
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum TokenType {
Unspecified = 0,
Personal = 1,
Scoped = 2,
}
impl TokenType {
pub fn as_str_name(&self) -> &'static str {
match self {
TokenType::Unspecified => "TOKEN_TYPE_UNSPECIFIED",
TokenType::Personal => "TOKEN_TYPE_PERSONAL",
TokenType::Scoped => "TOKEN_TYPE_SCOPED",
}
}
}