#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RerunChunk {
#[prost(enumeration = "EncoderVersion", tag = "1")]
pub encoder_version: i32,
#[prost(bytes = "vec", tag = "2")]
pub payload: ::prost::alloc::vec::Vec<u8>,
}
impl ::prost::Name for RerunChunk {
const NAME: &'static str = "RerunChunk";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.RerunChunk".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.RerunChunk".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RecordingId {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
impl ::prost::Name for RecordingId {
const NAME: &'static str = "RecordingId";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.RecordingId".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.RecordingId".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TableId {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
impl ::prost::Name for TableId {
const NAME: &'static str = "TableId";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.TableId".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.TableId".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Timeline {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
impl ::prost::Name for Timeline {
const NAME: &'static str = "Timeline";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.Timeline".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.Timeline".into()
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TimeRange {
#[prost(int64, tag = "1")]
pub start: i64,
#[prost(int64, tag = "2")]
pub end: i64,
}
impl ::prost::Name for TimeRange {
const NAME: &'static str = "TimeRange";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.TimeRange".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.TimeRange".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Schema {
#[prost(bytes = "vec", optional, tag = "1")]
pub arrow_schema: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
}
impl ::prost::Name for Schema {
const NAME: &'static str = "Schema";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.Schema".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.Schema".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Query {
#[prost(message, optional, tag = "1")]
pub view_contents: ::core::option::Option<ViewContents>,
#[prost(bool, tag = "2")]
pub include_semantically_empty_columns: bool,
#[prost(bool, tag = "3")]
pub include_indicator_columns: bool,
#[prost(bool, tag = "4")]
pub include_tombstone_columns: bool,
#[prost(message, optional, tag = "5")]
pub filtered_index: ::core::option::Option<IndexColumnSelector>,
#[prost(message, optional, tag = "6")]
pub filtered_index_range: ::core::option::Option<IndexRange>,
#[prost(message, optional, tag = "7")]
pub filtered_index_values: ::core::option::Option<IndexValues>,
#[prost(message, optional, tag = "8")]
pub using_index_values: ::core::option::Option<IndexValues>,
#[prost(message, optional, tag = "9")]
pub filtered_is_not_null: ::core::option::Option<ComponentColumnSelector>,
#[prost(message, optional, tag = "10")]
pub column_selection: ::core::option::Option<ColumnSelection>,
#[prost(enumeration = "SparseFillStrategy", tag = "11")]
pub sparse_fill_strategy: i32,
}
impl ::prost::Name for Query {
const NAME: &'static str = "Query";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.Query".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.Query".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ColumnSelection {
#[prost(message, repeated, tag = "1")]
pub columns: ::prost::alloc::vec::Vec<ColumnSelector>,
}
impl ::prost::Name for ColumnSelection {
const NAME: &'static str = "ColumnSelection";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.ColumnSelection".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.ColumnSelection".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ColumnSelector {
#[prost(oneof = "column_selector::SelectorType", tags = "2, 3")]
pub selector_type: ::core::option::Option<column_selector::SelectorType>,
}
pub mod column_selector {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum SelectorType {
#[prost(message, tag = "2")]
ComponentColumn(super::ComponentColumnSelector),
#[prost(message, tag = "3")]
TimeColumn(super::TimeColumnSelector),
}
}
impl ::prost::Name for ColumnSelector {
const NAME: &'static str = "ColumnSelector";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.ColumnSelector".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.ColumnSelector".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IndexColumnSelector {
#[prost(message, optional, tag = "1")]
pub timeline: ::core::option::Option<Timeline>,
}
impl ::prost::Name for IndexColumnSelector {
const NAME: &'static str = "IndexColumnSelector";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.IndexColumnSelector".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.IndexColumnSelector".into()
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct IndexRange {
#[prost(message, optional, tag = "1")]
pub time_range: ::core::option::Option<TimeRange>,
}
impl ::prost::Name for IndexRange {
const NAME: &'static str = "IndexRange";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.IndexRange".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.IndexRange".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IndexValues {
#[prost(message, repeated, tag = "1")]
pub time_points: ::prost::alloc::vec::Vec<TimeInt>,
}
impl ::prost::Name for IndexValues {
const NAME: &'static str = "IndexValues";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.IndexValues".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.IndexValues".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SampledIndexValues {
#[prost(message, repeated, tag = "1")]
pub sample_points: ::prost::alloc::vec::Vec<TimeInt>,
}
impl ::prost::Name for SampledIndexValues {
const NAME: &'static str = "SampledIndexValues";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.SampledIndexValues".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.SampledIndexValues".into()
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TimeInt {
#[prost(int64, tag = "1")]
pub time: i64,
}
impl ::prost::Name for TimeInt {
const NAME: &'static str = "TimeInt";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.TimeInt".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.TimeInt".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ViewContents {
#[prost(message, repeated, tag = "1")]
pub contents: ::prost::alloc::vec::Vec<ViewContentsPart>,
}
impl ::prost::Name for ViewContents {
const NAME: &'static str = "ViewContents";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.ViewContents".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.ViewContents".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ViewContentsPart {
#[prost(message, optional, tag = "1")]
pub path: ::core::option::Option<EntityPath>,
#[prost(message, optional, tag = "2")]
pub components: ::core::option::Option<ComponentsSet>,
}
impl ::prost::Name for ViewContentsPart {
const NAME: &'static str = "ViewContentsPart";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.ViewContentsPart".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.ViewContentsPart".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ComponentsSet {
#[prost(message, repeated, tag = "1")]
pub components: ::prost::alloc::vec::Vec<Component>,
}
impl ::prost::Name for ComponentsSet {
const NAME: &'static str = "ComponentsSet";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.ComponentsSet".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.ComponentsSet".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EntityPath {
#[prost(string, tag = "1")]
pub path: ::prost::alloc::string::String,
}
impl ::prost::Name for EntityPath {
const NAME: &'static str = "EntityPath";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.EntityPath".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.EntityPath".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Component {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
impl ::prost::Name for Component {
const NAME: &'static str = "Component";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.Component".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.Component".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimeColumnSelector {
#[prost(message, optional, tag = "1")]
pub timeline: ::core::option::Option<Timeline>,
}
impl ::prost::Name for TimeColumnSelector {
const NAME: &'static str = "TimeColumnSelector";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.TimeColumnSelector".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.TimeColumnSelector".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ComponentColumnSelector {
#[prost(message, optional, tag = "1")]
pub entity_path: ::core::option::Option<EntityPath>,
#[prost(message, optional, tag = "2")]
pub component: ::core::option::Option<Component>,
}
impl ::prost::Name for ComponentColumnSelector {
const NAME: &'static str = "ComponentColumnSelector";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.ComponentColumnSelector".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.ComponentColumnSelector".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApplicationId {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
impl ::prost::Name for ApplicationId {
const NAME: &'static str = "ApplicationId";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.ApplicationId".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.ApplicationId".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StoreId {
#[prost(enumeration = "StoreKind", tag = "1")]
pub kind: i32,
#[prost(string, tag = "2")]
pub id: ::prost::alloc::string::String,
}
impl ::prost::Name for StoreId {
const NAME: &'static str = "StoreId";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.StoreId".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.StoreId".into()
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Tuid {
#[prost(fixed64, optional, tag = "1")]
pub time_ns: ::core::option::Option<u64>,
#[prost(fixed64, optional, tag = "2")]
pub inc: ::core::option::Option<u64>,
}
impl ::prost::Name for Tuid {
const NAME: &'static str = "Tuid";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.Tuid".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.Tuid".into()
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct EntryId {
#[prost(message, optional, tag = "1")]
pub id: ::core::option::Option<Tuid>,
}
impl ::prost::Name for EntryId {
const NAME: &'static str = "EntryId";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.EntryId".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.EntryId".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DatasetHandle {
#[prost(message, optional, tag = "1")]
pub entry_id: ::core::option::Option<EntryId>,
#[prost(string, optional, tag = "2")]
pub dataset_url: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for DatasetHandle {
const NAME: &'static str = "DatasetHandle";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.DatasetHandle".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.DatasetHandle".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataframePart {
#[prost(enumeration = "EncoderVersion", tag = "1")]
pub encoder_version: i32,
#[prost(bytes = "vec", optional, tag = "2")]
pub payload: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
}
impl ::prost::Name for DataframePart {
const NAME: &'static str = "DataframePart";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.DataframePart".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.DataframePart".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ScanParameters {
#[prost(string, repeated, tag = "1")]
pub columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(enumeration = "IfMissingBehavior", tag = "2")]
pub on_missing_columns: i32,
#[prost(string, optional, tag = "3")]
pub filter: ::core::option::Option<::prost::alloc::string::String>,
#[prost(int64, optional, tag = "4")]
pub limit_offset: ::core::option::Option<i64>,
#[prost(int64, optional, tag = "5")]
pub limit_len: ::core::option::Option<i64>,
#[prost(message, optional, tag = "6")]
pub order_by: ::core::option::Option<ScanParametersOrderClause>,
#[prost(bool, tag = "7")]
pub explain_plan: bool,
#[prost(bool, tag = "8")]
pub explain_filter: bool,
}
impl ::prost::Name for ScanParameters {
const NAME: &'static str = "ScanParameters";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.ScanParameters".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.ScanParameters".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ScanParametersOrderClause {
#[prost(bool, tag = "1")]
pub descending: bool,
#[prost(bool, tag = "2")]
pub nulls_last: bool,
#[prost(string, optional, tag = "3")]
pub column_name: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for ScanParametersOrderClause {
const NAME: &'static str = "ScanParametersOrderClause";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.ScanParametersOrderClause".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.ScanParametersOrderClause".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PartitionId {
#[prost(string, optional, tag = "1")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for PartitionId {
const NAME: &'static str = "PartitionId";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.PartitionId".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.PartitionId".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ComponentDescriptor {
#[prost(string, optional, tag = "1")]
pub archetype_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "2")]
pub archetype_field_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub component_name: ::core::option::Option<::prost::alloc::string::String>,
}
impl ::prost::Name for ComponentDescriptor {
const NAME: &'static str = "ComponentDescriptor";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.ComponentDescriptor".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.ComponentDescriptor".into()
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TaskId {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
}
impl ::prost::Name for TaskId {
const NAME: &'static str = "TaskId";
const PACKAGE: &'static str = "rerun.common.v1alpha1";
fn full_name() -> ::prost::alloc::string::String {
"rerun.common.v1alpha1.TaskId".into()
}
fn type_url() -> ::prost::alloc::string::String {
"/rerun.common.v1alpha1.TaskId".into()
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum EncoderVersion {
Unspecified = 0,
V0 = 1,
}
impl EncoderVersion {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "ENCODER_VERSION_UNSPECIFIED",
Self::V0 => "ENCODER_VERSION_V0",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ENCODER_VERSION_UNSPECIFIED" => Some(Self::Unspecified),
"ENCODER_VERSION_V0" => Some(Self::V0),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SparseFillStrategy {
Unspecified = 0,
None = 1,
LatestAtGlobal = 2,
}
impl SparseFillStrategy {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "SPARSE_FILL_STRATEGY_UNSPECIFIED",
Self::None => "SPARSE_FILL_STRATEGY_NONE",
Self::LatestAtGlobal => "SPARSE_FILL_STRATEGY_LATEST_AT_GLOBAL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SPARSE_FILL_STRATEGY_UNSPECIFIED" => Some(Self::Unspecified),
"SPARSE_FILL_STRATEGY_NONE" => Some(Self::None),
"SPARSE_FILL_STRATEGY_LATEST_AT_GLOBAL" => Some(Self::LatestAtGlobal),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum StoreKind {
Unspecified = 0,
Recording = 1,
Blueprint = 2,
}
impl StoreKind {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "STORE_KIND_UNSPECIFIED",
Self::Recording => "STORE_KIND_RECORDING",
Self::Blueprint => "STORE_KIND_BLUEPRINT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STORE_KIND_UNSPECIFIED" => Some(Self::Unspecified),
"STORE_KIND_RECORDING" => Some(Self::Recording),
"STORE_KIND_BLUEPRINT" => Some(Self::Blueprint),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum IfMissingBehavior {
Unspecified = 0,
Skip = 1,
Error = 2,
}
impl IfMissingBehavior {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "IF_MISSING_BEHAVIOR_UNSPECIFIED",
Self::Skip => "IF_MISSING_BEHAVIOR_SKIP",
Self::Error => "IF_MISSING_BEHAVIOR_ERROR",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"IF_MISSING_BEHAVIOR_UNSPECIFIED" => Some(Self::Unspecified),
"IF_MISSING_BEHAVIOR_SKIP" => Some(Self::Skip),
"IF_MISSING_BEHAVIOR_ERROR" => Some(Self::Error),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum IfDuplicateBehavior {
Unspecified = 0,
Overwrite = 1,
Skip = 2,
Error = 3,
}
impl IfDuplicateBehavior {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "IF_DUPLICATE_BEHAVIOR_UNSPECIFIED",
Self::Overwrite => "IF_DUPLICATE_BEHAVIOR_OVERWRITE",
Self::Skip => "IF_DUPLICATE_BEHAVIOR_SKIP",
Self::Error => "IF_DUPLICATE_BEHAVIOR_ERROR",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"IF_DUPLICATE_BEHAVIOR_UNSPECIFIED" => Some(Self::Unspecified),
"IF_DUPLICATE_BEHAVIOR_OVERWRITE" => Some(Self::Overwrite),
"IF_DUPLICATE_BEHAVIOR_SKIP" => Some(Self::Skip),
"IF_DUPLICATE_BEHAVIOR_ERROR" => Some(Self::Error),
_ => None,
}
}
}