#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Type {
#[prost(oneof = "r#type::Kind", tags = "1, 2, 5, 12, 9, 8, 10, 11, 6, 7, 3, 4")]
pub kind: ::core::option::Option<r#type::Kind>,
}
pub mod r#type {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Bytes {
#[prost(message, optional, tag = "1")]
pub encoding: ::core::option::Option<bytes::Encoding>,
}
pub mod bytes {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Encoding {
#[prost(oneof = "encoding::Encoding", tags = "1")]
pub encoding: ::core::option::Option<encoding::Encoding>,
}
pub mod encoding {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Raw {}
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Encoding {
#[prost(message, tag = "1")]
Raw(Raw),
}
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct String {
#[prost(message, optional, tag = "1")]
pub encoding: ::core::option::Option<string::Encoding>,
}
pub mod string {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Encoding {
#[prost(oneof = "encoding::Encoding", tags = "1, 2")]
pub encoding: ::core::option::Option<encoding::Encoding>,
}
pub mod encoding {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Utf8Raw {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Utf8Bytes {}
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Encoding {
#[prost(message, tag = "1")]
Utf8Raw(Utf8Raw),
#[prost(message, tag = "2")]
Utf8Bytes(Utf8Bytes),
}
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Int64 {
#[prost(message, optional, tag = "1")]
pub encoding: ::core::option::Option<int64::Encoding>,
}
pub mod int64 {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Encoding {
#[prost(oneof = "encoding::Encoding", tags = "1")]
pub encoding: ::core::option::Option<encoding::Encoding>,
}
pub mod encoding {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BigEndianBytes {
#[prost(message, optional, tag = "1")]
pub bytes_type: ::core::option::Option<super::super::Bytes>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Encoding {
#[prost(message, tag = "1")]
BigEndianBytes(BigEndianBytes),
}
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Bool {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Float32 {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Float64 {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Timestamp {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Date {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Struct {
#[prost(message, repeated, tag = "1")]
pub fields: ::prost::alloc::vec::Vec<r#struct::Field>,
}
pub mod r#struct {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Field {
#[prost(string, tag = "1")]
pub field_name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub r#type: ::core::option::Option<super::super::Type>,
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Array {
#[prost(message, optional, boxed, tag = "1")]
pub element_type: ::core::option::Option<
::prost::alloc::boxed::Box<super::Type>,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Map {
#[prost(message, optional, boxed, tag = "1")]
pub key_type: ::core::option::Option<::prost::alloc::boxed::Box<super::Type>>,
#[prost(message, optional, boxed, tag = "2")]
pub value_type: ::core::option::Option<::prost::alloc::boxed::Box<super::Type>>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Aggregate {
#[prost(message, optional, boxed, tag = "1")]
pub input_type: ::core::option::Option<::prost::alloc::boxed::Box<super::Type>>,
#[prost(message, optional, boxed, tag = "2")]
pub state_type: ::core::option::Option<::prost::alloc::boxed::Box<super::Type>>,
#[prost(oneof = "aggregate::Aggregator", tags = "4, 5, 6, 7")]
pub aggregator: ::core::option::Option<aggregate::Aggregator>,
}
pub mod aggregate {
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Sum {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Max {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Min {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct HyperLogLogPlusPlusUniqueCount {}
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Aggregator {
#[prost(message, tag = "4")]
Sum(Sum),
#[prost(message, tag = "5")]
HllppUniqueCount(HyperLogLogPlusPlusUniqueCount),
#[prost(message, tag = "6")]
Max(Max),
#[prost(message, tag = "7")]
Min(Min),
}
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Kind {
#[prost(message, tag = "1")]
BytesType(Bytes),
#[prost(message, tag = "2")]
StringType(String),
#[prost(message, tag = "5")]
Int64Type(Int64),
#[prost(message, tag = "12")]
Float32Type(Float32),
#[prost(message, tag = "9")]
Float64Type(Float64),
#[prost(message, tag = "8")]
BoolType(Bool),
#[prost(message, tag = "10")]
TimestampType(Timestamp),
#[prost(message, tag = "11")]
DateType(Date),
#[prost(message, tag = "6")]
AggregateType(::prost::alloc::boxed::Box<Aggregate>),
#[prost(message, tag = "7")]
StructType(Struct),
#[prost(message, tag = "3")]
ArrayType(::prost::alloc::boxed::Box<Array>),
#[prost(message, tag = "4")]
MapType(::prost::alloc::boxed::Box<Map>),
}
}
#[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>,
}
#[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>,
}
#[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>,
}
#[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>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Value {
#[prost(message, optional, tag = "7")]
pub r#type: ::core::option::Option<Type>,
#[prost(oneof = "value::Kind", tags = "8, 9, 2, 3, 6, 10, 11, 12, 13, 4")]
pub kind: ::core::option::Option<value::Kind>,
}
pub mod value {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Kind {
#[prost(bytes, tag = "8")]
RawValue(::prost::bytes::Bytes),
#[prost(int64, tag = "9")]
RawTimestampMicros(i64),
#[prost(bytes, tag = "2")]
BytesValue(::prost::bytes::Bytes),
#[prost(string, tag = "3")]
StringValue(::prost::alloc::string::String),
#[prost(int64, tag = "6")]
IntValue(i64),
#[prost(bool, tag = "10")]
BoolValue(bool),
#[prost(double, tag = "11")]
FloatValue(f64),
#[prost(message, tag = "12")]
TimestampValue(::prost_types::Timestamp),
#[prost(message, tag = "13")]
DateValue(super::super::super::r#type::Date),
#[prost(message, tag = "4")]
ArrayValue(super::ArrayValue),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ArrayValue {
#[prost(message, repeated, tag = "1")]
pub values: ::prost::alloc::vec::Vec<Value>,
}
#[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 {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum StartKey {
#[prost(bytes, tag = "1")]
StartKeyClosed(::prost::bytes::Bytes),
#[prost(bytes, tag = "2")]
StartKeyOpen(::prost::bytes::Bytes),
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum EndKey {
#[prost(bytes, tag = "3")]
EndKeyOpen(::prost::bytes::Bytes),
#[prost(bytes, tag = "4")]
EndKeyClosed(::prost::bytes::Bytes),
}
}
#[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>,
}
#[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 {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum StartQualifier {
#[prost(bytes, tag = "2")]
StartQualifierClosed(::prost::bytes::Bytes),
#[prost(bytes, tag = "3")]
StartQualifierOpen(::prost::bytes::Bytes),
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum EndQualifier {
#[prost(bytes, tag = "4")]
EndQualifierClosed(::prost::bytes::Bytes),
#[prost(bytes, tag = "5")]
EndQualifierOpen(::prost::bytes::Bytes),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct TimestampRange {
#[prost(int64, tag = "1")]
pub start_timestamp_micros: i64,
#[prost(int64, tag = "2")]
pub end_timestamp_micros: i64,
}
#[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 {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum StartValue {
#[prost(bytes, tag = "1")]
StartValueClosed(::prost::bytes::Bytes),
#[prost(bytes, tag = "2")]
StartValueOpen(::prost::bytes::Bytes),
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum EndValue {
#[prost(bytes, tag = "3")]
EndValueClosed(::prost::bytes::Bytes),
#[prost(bytes, tag = "4")]
EndValueOpen(::prost::bytes::Bytes),
}
}
#[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 {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Chain {
#[prost(message, repeated, tag = "1")]
pub filters: ::prost::alloc::vec::Vec<super::RowFilter>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Interleave {
#[prost(message, repeated, tag = "1")]
pub filters: ::prost::alloc::vec::Vec<super::RowFilter>,
}
#[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>,
>,
}
#[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),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Mutation {
#[prost(oneof = "mutation::Mutation", tags = "1, 5, 6, 2, 3, 4")]
pub mutation: ::core::option::Option<mutation::Mutation>,
}
pub mod mutation {
#[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,
}
#[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>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MergeToCell {
#[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>,
}
#[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>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteFromFamily {
#[prost(string, tag = "1")]
pub family_name: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DeleteFromRow {}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Mutation {
#[prost(message, tag = "1")]
SetCell(SetCell),
#[prost(message, tag = "5")]
AddToCell(AddToCell),
#[prost(message, tag = "6")]
MergeToCell(MergeToCell),
#[prost(message, tag = "2")]
DeleteFromColumn(DeleteFromColumn),
#[prost(message, tag = "3")]
DeleteFromFamily(DeleteFromFamily),
#[prost(message, tag = "4")]
DeleteFromRow(DeleteFromRow),
}
}
#[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 {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Rule {
#[prost(bytes, tag = "3")]
AppendValue(::prost::bytes::Bytes),
#[prost(int64, tag = "4")]
IncrementAmount(i64),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamPartition {
#[prost(message, optional, tag = "1")]
pub row_range: ::core::option::Option<RowRange>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamContinuationTokens {
#[prost(message, repeated, tag = "1")]
pub tokens: ::prost::alloc::vec::Vec<StreamContinuationToken>,
}
#[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,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ProtoFormat {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ColumnMetadata {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub r#type: ::core::option::Option<Type>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoSchema {
#[prost(message, repeated, tag = "1")]
pub columns: ::prost::alloc::vec::Vec<ColumnMetadata>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResultSetMetadata {
#[prost(oneof = "result_set_metadata::Schema", tags = "1")]
pub schema: ::core::option::Option<result_set_metadata::Schema>,
}
pub mod result_set_metadata {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Schema {
#[prost(message, tag = "1")]
ProtoSchema(super::ProtoSchema),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoRows {
#[prost(message, repeated, tag = "2")]
pub values: ::prost::alloc::vec::Vec<Value>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProtoRowsBatch {
#[prost(bytes = "bytes", tag = "1")]
pub batch_data: ::prost::bytes::Bytes,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PartialResultSet {
#[prost(bytes = "bytes", tag = "5")]
pub resume_token: ::prost::bytes::Bytes,
#[prost(int32, tag = "4")]
pub estimated_batch_size: i32,
#[prost(oneof = "partial_result_set::PartialRows", tags = "3")]
pub partial_rows: ::core::option::Option<partial_result_set::PartialRows>,
}
pub mod partial_result_set {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum PartialRows {
#[prost(message, tag = "3")]
ProtoRowsBatch(super::ProtoRowsBatch),
}
}
#[derive(Clone, Copy, 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,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RequestLatencyStats {
#[prost(message, optional, tag = "1")]
pub frontend_server_latency: ::core::option::Option<::prost_types::Duration>,
}
#[derive(Clone, Copy, 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>,
}
#[derive(Clone, Copy, 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 {
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum StatsView {
#[prost(message, tag = "1")]
FullReadStatsView(super::FullReadStatsView),
}
}
#[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,
}
}
}
}
#[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 {
#[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 {
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum RowStatus {
#[prost(bool, tag = "8")]
ResetRow(bool),
#[prost(bool, tag = "9")]
CommitRow(bool),
}
}
}
#[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,
}
#[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,
}
#[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>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct MutateRowResponse {}
#[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 {
#[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>,
}
}
#[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 {
#[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>,
}
}
#[derive(Clone, Copy, 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,
}
#[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>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct CheckAndMutateRowResponse {
#[prost(bool, tag = "1")]
pub predicate_matched: bool,
}
#[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,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PingAndWarmResponse {}
#[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>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReadModifyWriteRowResponse {
#[prost(message, optional, tag = "1")]
pub row: ::core::option::Option<Row>,
}
#[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,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenerateInitialChangeStreamPartitionsResponse {
#[prost(message, optional, tag = "1")]
pub partition: ::core::option::Option<StreamPartition>,
}
#[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 {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum StartFrom {
#[prost(message, tag = "4")]
StartTime(::prost_types::Timestamp),
#[prost(message, tag = "6")]
ContinuationTokens(super::StreamContinuationTokens),
}
}
#[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 {
#[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 {
#[derive(Clone, Copy, 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,
}
}
#[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,
}
}
}
}
#[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>,
}
#[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>,
}
#[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),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteQueryRequest {
#[prost(string, tag = "1")]
pub instance_name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub app_profile_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub query: ::prost::alloc::string::String,
#[prost(bytes = "bytes", tag = "8")]
pub resume_token: ::prost::bytes::Bytes,
#[prost(btree_map = "string, message", tag = "7")]
pub params: ::prost::alloc::collections::BTreeMap<
::prost::alloc::string::String,
Value,
>,
#[prost(oneof = "execute_query_request::DataFormat", tags = "4")]
pub data_format: ::core::option::Option<execute_query_request::DataFormat>,
}
pub mod execute_query_request {
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum DataFormat {
#[prost(message, tag = "4")]
ProtoFormat(super::ProtoFormat),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExecuteQueryResponse {
#[prost(oneof = "execute_query_response::Response", tags = "1, 2")]
pub response: ::core::option::Option<execute_query_response::Response>,
}
pub mod execute_query_response {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Response {
#[prost(message, tag = "1")]
Metadata(super::ResultSetMetadata),
#[prost(message, tag = "2")]
Results(super::PartialResultSet),
}
}
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> + std::marker::Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + std::marker::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> + std::marker::Send + std::marker::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
}
pub async fn execute_query(
&mut self,
request: impl tonic::IntoRequest<super::ExecuteQueryRequest>,
) -> std::result::Result<
tonic::Response<tonic::codec::Streaming<super::ExecuteQueryResponse>>,
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/ExecuteQuery",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(GrpcMethod::new("google.bigtable.v2.Bigtable", "ExecuteQuery"));
self.inner.server_streaming(req, path, codec).await
}
}
}
#[derive(Clone, Copy, 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,
}
#[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>,
}