#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Row {
#[prost(bytes = "bytes", tag = "1")]
pub key: ::prost::bytes::Bytes,
#[prost(message, repeated, tag = "2")]
pub families: ::prost::alloc::vec::Vec<Family>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Family {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub columns: ::prost::alloc::vec::Vec<Column>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Column {
#[prost(bytes = "bytes", tag = "1")]
pub qualifier: ::prost::bytes::Bytes,
#[prost(message, repeated, tag = "2")]
pub cells: ::prost::alloc::vec::Vec<Cell>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Cell {
#[prost(int64, tag = "1")]
pub timestamp_micros: i64,
#[prost(bytes = "bytes", tag = "2")]
pub value: ::prost::bytes::Bytes,
#[prost(string, repeated, tag = "3")]
pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Value {
#[prost(oneof = "value::Kind", tags = "8, 9, 6")]
pub kind: ::core::option::Option<value::Kind>,
}
pub mod value {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Kind {
#[prost(bytes, tag = "8")]
RawValue(::prost::bytes::Bytes),
#[prost(int64, tag = "9")]
RawTimestampMicros(i64),
#[prost(int64, tag = "6")]
IntValue(i64),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RowRange {
#[prost(oneof = "row_range::StartKey", tags = "1, 2")]
pub start_key: ::core::option::Option<row_range::StartKey>,
#[prost(oneof = "row_range::EndKey", tags = "3, 4")]
pub end_key: ::core::option::Option<row_range::EndKey>,
}
pub mod row_range {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum StartKey {
#[prost(bytes, tag = "1")]
StartKeyClosed(::prost::bytes::Bytes),
#[prost(bytes, tag = "2")]
StartKeyOpen(::prost::bytes::Bytes),
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum EndKey {
#[prost(bytes, tag = "3")]
EndKeyOpen(::prost::bytes::Bytes),
#[prost(bytes, tag = "4")]
EndKeyClosed(::prost::bytes::Bytes),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RowSet {
#[prost(bytes = "bytes", repeated, tag = "1")]
pub row_keys: ::prost::alloc::vec::Vec<::prost::bytes::Bytes>,
#[prost(message, repeated, tag = "2")]
pub row_ranges: ::prost::alloc::vec::Vec<RowRange>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ColumnRange {
#[prost(string, tag = "1")]
pub family_name: ::prost::alloc::string::String,
#[prost(oneof = "column_range::StartQualifier", tags = "2, 3")]
pub start_qualifier: ::core::option::Option<column_range::StartQualifier>,
#[prost(oneof = "column_range::EndQualifier", tags = "4, 5")]
pub end_qualifier: ::core::option::Option<column_range::EndQualifier>,
}
pub mod column_range {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum StartQualifier {
#[prost(bytes, tag = "2")]
StartQualifierClosed(::prost::bytes::Bytes),
#[prost(bytes, tag = "3")]
StartQualifierOpen(::prost::bytes::Bytes),
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum EndQualifier {
#[prost(bytes, tag = "4")]
EndQualifierClosed(::prost::bytes::Bytes),
#[prost(bytes, tag = "5")]
EndQualifierOpen(::prost::bytes::Bytes),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimestampRange {
#[prost(int64, tag = "1")]
pub start_timestamp_micros: i64,
#[prost(int64, tag = "2")]
pub end_timestamp_micros: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ValueRange {
#[prost(oneof = "value_range::StartValue", tags = "1, 2")]
pub start_value: ::core::option::Option<value_range::StartValue>,
#[prost(oneof = "value_range::EndValue", tags = "3, 4")]
pub end_value: ::core::option::Option<value_range::EndValue>,
}
pub mod value_range {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum StartValue {
#[prost(bytes, tag = "1")]
StartValueClosed(::prost::bytes::Bytes),
#[prost(bytes, tag = "2")]
StartValueOpen(::prost::bytes::Bytes),
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum EndValue {
#[prost(bytes, tag = "3")]
EndValueClosed(::prost::bytes::Bytes),
#[prost(bytes, tag = "4")]
EndValueOpen(::prost::bytes::Bytes),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RowFilter {
#[prost(
oneof = "row_filter::Filter",
tags = "1, 2, 3, 16, 17, 18, 4, 14, 5, 6, 7, 8, 9, 15, 10, 11, 12, 13, 19"
)]
pub filter: ::core::option::Option<row_filter::Filter>,
}
pub mod row_filter {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Chain {
#[prost(message, repeated, tag = "1")]
pub filters: ::prost::alloc::vec::Vec<super::RowFilter>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Interleave {
#[prost(message, repeated, tag = "1")]
pub filters: ::prost::alloc::vec::Vec<super::RowFilter>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Condition {
#[prost(message, optional, boxed, tag = "1")]
pub predicate_filter: ::core::option::Option<
::prost::alloc::boxed::Box<super::RowFilter>,
>,
#[prost(message, optional, boxed, tag = "2")]
pub true_filter: ::core::option::Option<
::prost::alloc::boxed::Box<super::RowFilter>,
>,
#[prost(message, optional, boxed, tag = "3")]
pub false_filter: ::core::option::Option<
::prost::alloc::boxed::Box<super::RowFilter>,
>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Filter {
#[prost(message, tag = "1")]
Chain(Chain),
#[prost(message, tag = "2")]
Interleave(Interleave),
#[prost(message, tag = "3")]
Condition(::prost::alloc::boxed::Box<Condition>),
#[prost(bool, tag = "16")]
Sink(bool),
#[prost(bool, tag = "17")]
PassAllFilter(bool),
#[prost(bool, tag = "18")]
BlockAllFilter(bool),
#[prost(bytes, tag = "4")]
RowKeyRegexFilter(::prost::bytes::Bytes),
#[prost(double, tag = "14")]
RowSampleFilter(f64),
#[prost(string, tag = "5")]
FamilyNameRegexFilter(::prost::alloc::string::String),
#[prost(bytes, tag = "6")]
ColumnQualifierRegexFilter(::prost::bytes::Bytes),
#[prost(message, tag = "7")]
ColumnRangeFilter(super::ColumnRange),
#[prost(message, tag = "8")]
TimestampRangeFilter(super::TimestampRange),
#[prost(bytes, tag = "9")]
ValueRegexFilter(::prost::bytes::Bytes),
#[prost(message, tag = "15")]
ValueRangeFilter(super::ValueRange),
#[prost(int32, tag = "10")]
CellsPerRowOffsetFilter(i32),
#[prost(int32, tag = "11")]
CellsPerRowLimitFilter(i32),
#[prost(int32, tag = "12")]
CellsPerColumnLimitFilter(i32),
#[prost(bool, tag = "13")]
StripValueTransformer(bool),
#[prost(string, tag = "19")]
ApplyLabelTransformer(::prost::alloc::string::String),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Mutation {
#[prost(oneof = "mutation::Mutation", tags = "1, 5, 2, 3, 4")]
pub mutation: ::core::option::Option<mutation::Mutation>,
}
pub mod mutation {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetCell {
#[prost(string, tag = "1")]
pub family_name: ::prost::alloc::string::String,
#[prost(bytes = "bytes", tag = "2")]
pub column_qualifier: ::prost::bytes::Bytes,
#[prost(int64, tag = "3")]
pub timestamp_micros: i64,
#[prost(bytes = "bytes", tag = "4")]
pub value: ::prost::bytes::Bytes,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddToCell {
#[prost(string, tag = "1")]
pub family_name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub column_qualifier: ::core::option::Option<super::Value>,
#[prost(message, optional, tag = "3")]
pub timestamp: ::core::option::Option<super::Value>,
#[prost(message, optional, tag = "4")]
pub input: ::core::option::Option<super::Value>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteFromColumn {
#[prost(string, tag = "1")]
pub family_name: ::prost::alloc::string::String,
#[prost(bytes = "bytes", tag = "2")]
pub column_qualifier: ::prost::bytes::Bytes,
#[prost(message, optional, tag = "3")]
pub time_range: ::core::option::Option<super::TimestampRange>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteFromFamily {
#[prost(string, tag = "1")]
pub family_name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteFromRow {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Mutation {
#[prost(message, tag = "1")]
SetCell(SetCell),
#[prost(message, tag = "5")]
AddToCell(AddToCell),
#[prost(message, tag = "2")]
DeleteFromColumn(DeleteFromColumn),
#[prost(message, tag = "3")]
DeleteFromFamily(DeleteFromFamily),
#[prost(message, tag = "4")]
DeleteFromRow(DeleteFromRow),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReadModifyWriteRule {
#[prost(string, tag = "1")]
pub family_name: ::prost::alloc::string::String,
#[prost(bytes = "bytes", tag = "2")]
pub column_qualifier: ::prost::bytes::Bytes,
#[prost(oneof = "read_modify_write_rule::Rule", tags = "3, 4")]
pub rule: ::core::option::Option<read_modify_write_rule::Rule>,
}
pub mod read_modify_write_rule {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Rule {
#[prost(bytes, tag = "3")]
AppendValue(::prost::bytes::Bytes),
#[prost(int64, tag = "4")]
IncrementAmount(i64),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamPartition {
#[prost(message, optional, tag = "1")]
pub row_range: ::core::option::Option<RowRange>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamContinuationTokens {
#[prost(message, repeated, tag = "1")]
pub tokens: ::prost::alloc::vec::Vec<StreamContinuationToken>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamContinuationToken {
#[prost(message, optional, tag = "1")]
pub partition: ::core::option::Option<StreamPartition>,
#[prost(string, tag = "2")]
pub token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FeatureFlags {
#[prost(bool, tag = "1")]
pub reverse_scans: bool,
#[prost(bool, tag = "3")]
pub mutate_rows_rate_limit: bool,
#[prost(bool, tag = "5")]
pub mutate_rows_rate_limit2: bool,
#[prost(bool, tag = "4")]
pub last_scanned_row_responses: bool,
#[prost(bool, tag = "6")]
pub routing_cookie: bool,
#[prost(bool, tag = "7")]
pub retry_info: bool,
#[prost(bool, tag = "8")]
pub client_side_metrics_enabled: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReadIterationStats {
#[prost(int64, tag = "1")]
pub rows_seen_count: i64,
#[prost(int64, tag = "2")]
pub rows_returned_count: i64,
#[prost(int64, tag = "3")]
pub cells_seen_count: i64,
#[prost(int64, tag = "4")]
pub cells_returned_count: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestLatencyStats {
#[prost(message, optional, tag = "1")]
pub frontend_server_latency: ::core::option::Option<::prost_types::Duration>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FullReadStatsView {
#[prost(message, optional, tag = "1")]
pub read_iteration_stats: ::core::option::Option<ReadIterationStats>,
#[prost(message, optional, tag = "2")]
pub request_latency_stats: ::core::option::Option<RequestLatencyStats>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestStats {
#[prost(oneof = "request_stats::StatsView", tags = "1")]
pub stats_view: ::core::option::Option<request_stats::StatsView>,
}
pub mod request_stats {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum StatsView {
#[prost(message, tag = "1")]
FullReadStatsView(super::FullReadStatsView),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReadRowsRequest {
#[prost(string, tag = "1")]
pub table_name: ::prost::alloc::string::String,
#[prost(string, tag = "9")]
pub authorized_view_name: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub app_profile_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub rows: ::core::option::Option<RowSet>,
#[prost(message, optional, tag = "3")]
pub filter: ::core::option::Option<RowFilter>,
#[prost(int64, tag = "4")]
pub rows_limit: i64,
#[prost(enumeration = "read_rows_request::RequestStatsView", tag = "6")]
pub request_stats_view: i32,
#[prost(bool, tag = "7")]
pub reversed: bool,
}
pub mod read_rows_request {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum RequestStatsView {
Unspecified = 0,
RequestStatsNone = 1,
RequestStatsFull = 2,
}
impl RequestStatsView {
pub fn as_str_name(&self) -> &'static str {
match self {
RequestStatsView::Unspecified => "REQUEST_STATS_VIEW_UNSPECIFIED",
RequestStatsView::RequestStatsNone => "REQUEST_STATS_NONE",
RequestStatsView::RequestStatsFull => "REQUEST_STATS_FULL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"REQUEST_STATS_VIEW_UNSPECIFIED" => Some(Self::Unspecified),
"REQUEST_STATS_NONE" => Some(Self::RequestStatsNone),
"REQUEST_STATS_FULL" => Some(Self::RequestStatsFull),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReadRowsResponse {
#[prost(message, repeated, tag = "1")]
pub chunks: ::prost::alloc::vec::Vec<read_rows_response::CellChunk>,
#[prost(bytes = "bytes", tag = "2")]
pub last_scanned_row_key: ::prost::bytes::Bytes,
#[prost(message, optional, tag = "3")]
pub request_stats: ::core::option::Option<RequestStats>,
}
pub mod read_rows_response {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CellChunk {
#[prost(bytes = "bytes", tag = "1")]
pub row_key: ::prost::bytes::Bytes,
#[prost(message, optional, tag = "2")]
pub family_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub qualifier: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
#[prost(int64, tag = "4")]
pub timestamp_micros: i64,
#[prost(string, repeated, tag = "5")]
pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(bytes = "bytes", tag = "6")]
pub value: ::prost::bytes::Bytes,
#[prost(int32, tag = "7")]
pub value_size: i32,
#[prost(oneof = "cell_chunk::RowStatus", tags = "8, 9")]
pub row_status: ::core::option::Option<cell_chunk::RowStatus>,
}
pub mod cell_chunk {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum RowStatus {
#[prost(bool, tag = "8")]
ResetRow(bool),
#[prost(bool, tag = "9")]
CommitRow(bool),
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SampleRowKeysRequest {
#[prost(string, tag = "1")]
pub table_name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub authorized_view_name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub app_profile_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SampleRowKeysResponse {
#[prost(bytes = "bytes", tag = "1")]
pub row_key: ::prost::bytes::Bytes,
#[prost(int64, tag = "2")]
pub offset_bytes: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MutateRowRequest {
#[prost(string, tag = "1")]
pub table_name: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub authorized_view_name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub app_profile_id: ::prost::alloc::string::String,
#[prost(bytes = "bytes", tag = "2")]
pub row_key: ::prost::bytes::Bytes,
#[prost(message, repeated, tag = "3")]
pub mutations: ::prost::alloc::vec::Vec<Mutation>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MutateRowResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MutateRowsRequest {
#[prost(string, tag = "1")]
pub table_name: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub authorized_view_name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub app_profile_id: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub entries: ::prost::alloc::vec::Vec<mutate_rows_request::Entry>,
}
pub mod mutate_rows_request {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Entry {
#[prost(bytes = "bytes", tag = "1")]
pub row_key: ::prost::bytes::Bytes,
#[prost(message, repeated, tag = "2")]
pub mutations: ::prost::alloc::vec::Vec<super::Mutation>,
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MutateRowsResponse {
#[prost(message, repeated, tag = "1")]
pub entries: ::prost::alloc::vec::Vec<mutate_rows_response::Entry>,
#[prost(message, optional, tag = "3")]
pub rate_limit_info: ::core::option::Option<RateLimitInfo>,
}
pub mod mutate_rows_response {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Entry {
#[prost(int64, tag = "1")]
pub index: i64,
#[prost(message, optional, tag = "2")]
pub status: ::core::option::Option<super::super::super::rpc::Status>,
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RateLimitInfo {
#[prost(message, optional, tag = "1")]
pub period: ::core::option::Option<::prost_types::Duration>,
#[prost(double, tag = "2")]
pub factor: f64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckAndMutateRowRequest {
#[prost(string, tag = "1")]
pub table_name: ::prost::alloc::string::String,
#[prost(string, tag = "9")]
pub authorized_view_name: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub app_profile_id: ::prost::alloc::string::String,
#[prost(bytes = "bytes", tag = "2")]
pub row_key: ::prost::bytes::Bytes,
#[prost(message, optional, tag = "6")]
pub predicate_filter: ::core::option::Option<RowFilter>,
#[prost(message, repeated, tag = "4")]
pub true_mutations: ::prost::alloc::vec::Vec<Mutation>,
#[prost(message, repeated, tag = "5")]
pub false_mutations: ::prost::alloc::vec::Vec<Mutation>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CheckAndMutateRowResponse {
#[prost(bool, tag = "1")]
pub predicate_matched: bool,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PingAndWarmRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub app_profile_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PingAndWarmResponse {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReadModifyWriteRowRequest {
#[prost(string, tag = "1")]
pub table_name: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub authorized_view_name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub app_profile_id: ::prost::alloc::string::String,
#[prost(bytes = "bytes", tag = "2")]
pub row_key: ::prost::bytes::Bytes,
#[prost(message, repeated, tag = "3")]
pub rules: ::prost::alloc::vec::Vec<ReadModifyWriteRule>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReadModifyWriteRowResponse {
#[prost(message, optional, tag = "1")]
pub row: ::core::option::Option<Row>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenerateInitialChangeStreamPartitionsRequest {
#[prost(string, tag = "1")]
pub table_name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub app_profile_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenerateInitialChangeStreamPartitionsResponse {
#[prost(message, optional, tag = "1")]
pub partition: ::core::option::Option<StreamPartition>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReadChangeStreamRequest {
#[prost(string, tag = "1")]
pub table_name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub app_profile_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub partition: ::core::option::Option<StreamPartition>,
#[prost(message, optional, tag = "5")]
pub end_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "7")]
pub heartbeat_duration: ::core::option::Option<::prost_types::Duration>,
#[prost(oneof = "read_change_stream_request::StartFrom", tags = "4, 6")]
pub start_from: ::core::option::Option<read_change_stream_request::StartFrom>,
}
pub mod read_change_stream_request {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum StartFrom {
#[prost(message, tag = "4")]
StartTime(::prost_types::Timestamp),
#[prost(message, tag = "6")]
ContinuationTokens(super::StreamContinuationTokens),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReadChangeStreamResponse {
#[prost(oneof = "read_change_stream_response::StreamRecord", tags = "1, 2, 3")]
pub stream_record: ::core::option::Option<read_change_stream_response::StreamRecord>,
}
pub mod read_change_stream_response {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MutationChunk {
#[prost(message, optional, tag = "1")]
pub chunk_info: ::core::option::Option<mutation_chunk::ChunkInfo>,
#[prost(message, optional, tag = "2")]
pub mutation: ::core::option::Option<super::Mutation>,
}
pub mod mutation_chunk {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChunkInfo {
#[prost(int32, tag = "1")]
pub chunked_value_size: i32,
#[prost(int32, tag = "2")]
pub chunked_value_offset: i32,
#[prost(bool, tag = "3")]
pub last_chunk: bool,
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataChange {
#[prost(enumeration = "data_change::Type", tag = "1")]
pub r#type: i32,
#[prost(string, tag = "2")]
pub source_cluster_id: ::prost::alloc::string::String,
#[prost(bytes = "bytes", tag = "3")]
pub row_key: ::prost::bytes::Bytes,
#[prost(message, optional, tag = "4")]
pub commit_timestamp: ::core::option::Option<::prost_types::Timestamp>,
#[prost(int32, tag = "5")]
pub tiebreaker: i32,
#[prost(message, repeated, tag = "6")]
pub chunks: ::prost::alloc::vec::Vec<MutationChunk>,
#[prost(bool, tag = "8")]
pub done: bool,
#[prost(string, tag = "9")]
pub token: ::prost::alloc::string::String,
#[prost(message, optional, tag = "10")]
pub estimated_low_watermark: ::core::option::Option<::prost_types::Timestamp>,
}
pub mod data_change {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Type {
Unspecified = 0,
User = 1,
GarbageCollection = 2,
Continuation = 3,
}
impl Type {
pub fn as_str_name(&self) -> &'static str {
match self {
Type::Unspecified => "TYPE_UNSPECIFIED",
Type::User => "USER",
Type::GarbageCollection => "GARBAGE_COLLECTION",
Type::Continuation => "CONTINUATION",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"USER" => Some(Self::User),
"GARBAGE_COLLECTION" => Some(Self::GarbageCollection),
"CONTINUATION" => Some(Self::Continuation),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Heartbeat {
#[prost(message, optional, tag = "1")]
pub continuation_token: ::core::option::Option<super::StreamContinuationToken>,
#[prost(message, optional, tag = "2")]
pub estimated_low_watermark: ::core::option::Option<::prost_types::Timestamp>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CloseStream {
#[prost(message, optional, tag = "1")]
pub status: ::core::option::Option<super::super::super::rpc::Status>,
#[prost(message, repeated, tag = "2")]
pub continuation_tokens: ::prost::alloc::vec::Vec<
super::StreamContinuationToken,
>,
#[prost(message, repeated, tag = "3")]
pub new_partitions: ::prost::alloc::vec::Vec<super::StreamPartition>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum StreamRecord {
#[prost(message, tag = "1")]
DataChange(DataChange),
#[prost(message, tag = "2")]
Heartbeat(Heartbeat),
#[prost(message, tag = "3")]
CloseStream(CloseStream),
}
}
pub mod bigtable_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
pub struct BigtableClient<T> {
inner: tonic::client::Grpc<T>,
}
impl<T> BigtableClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> BigtableClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
BigtableClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
pub async fn read_rows(
&mut self,
request: impl tonic::IntoRequest<super::ReadRowsRequest>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::ReadRowsResponse>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.bigtable.v2.Bigtable/ReadRows",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.bigtable.v2.Bigtable", "ReadRows"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn sample_row_keys(
&mut self,
request: impl tonic::IntoRequest<super::SampleRowKeysRequest>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::SampleRowKeysResponse>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.bigtable.v2.Bigtable/SampleRowKeys",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.bigtable.v2.Bigtable", "SampleRowKeys"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn mutate_row(
&mut self,
request: impl tonic::IntoRequest<super::MutateRowRequest>,
) -> std::result::Result<
tonic::Response<super::MutateRowResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.bigtable.v2.Bigtable/MutateRow",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.bigtable.v2.Bigtable", "MutateRow"));
self.inner.unary(req, path, codec).await
}
pub async fn mutate_rows(
&mut self,
request: impl tonic::IntoRequest<super::MutateRowsRequest>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::MutateRowsResponse>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.bigtable.v2.Bigtable/MutateRows",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.bigtable.v2.Bigtable", "MutateRows"));
self.inner.server_streaming(req, path, codec).await
}
pub async fn check_and_mutate_row(
&mut self,
request: impl tonic::IntoRequest<super::CheckAndMutateRowRequest>,
) -> std::result::Result<
tonic::Response<super::CheckAndMutateRowResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.bigtable.v2.Bigtable/CheckAndMutateRow",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.bigtable.v2.Bigtable", "CheckAndMutateRow"),
);
self.inner.unary(req, path, codec).await
}
pub async fn ping_and_warm(
&mut self,
request: impl tonic::IntoRequest<super::PingAndWarmRequest>,
) -> std::result::Result<
tonic::Response<super::PingAndWarmResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.bigtable.v2.Bigtable/PingAndWarm",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.bigtable.v2.Bigtable", "PingAndWarm"));
self.inner.unary(req, path, codec).await
}
pub async fn read_modify_write_row(
&mut self,
request: impl tonic::IntoRequest<super::ReadModifyWriteRowRequest>,
) -> std::result::Result<
tonic::Response<super::ReadModifyWriteRowResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.bigtable.v2.Bigtable/ReadModifyWriteRow",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.bigtable.v2.Bigtable", "ReadModifyWriteRow"),
);
self.inner.unary(req, path, codec).await
}
pub async fn generate_initial_change_stream_partitions(
&mut self,
request: impl tonic::IntoRequest<
super::GenerateInitialChangeStreamPartitionsRequest,
>,
) -> std::result::Result<
tonic::Response<
tonic::codec::Streaming<
super::GenerateInitialChangeStreamPartitionsResponse,
>,
>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.bigtable.v2.Bigtable/GenerateInitialChangeStreamPartitions",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"google.bigtable.v2.Bigtable",
"GenerateInitialChangeStreamPartitions",
),
);
self.inner.server_streaming(req, path, codec).await
}
pub async fn read_change_stream(
&mut self,
request: impl tonic::IntoRequest<super::ReadChangeStreamRequest>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::ReadChangeStreamResponse>>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.bigtable.v2.Bigtable/ReadChangeStream",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("google.bigtable.v2.Bigtable", "ReadChangeStream"),
);
self.inner.server_streaming(req, path, codec).await
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseParams {
#[prost(string, optional, tag = "1")]
pub zone_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "2")]
pub cluster_id: ::core::option::Option<::prost::alloc::string::String>,
}