#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct InfluxChannelNameComponent {
#[prost(
oneof = "influx_channel_name_component::InfluxChannelNameComponent",
tags = "1, 2, 3"
)]
pub influx_channel_name_component: ::core::option::Option<
influx_channel_name_component::InfluxChannelNameComponent,
>,
}
pub mod influx_channel_name_component {
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum InfluxChannelNameComponent {
#[prost(message, tag = "1")]
Bucket(super::super::super::super::google::protobuf::Empty),
#[prost(message, tag = "2")]
Measurement(super::super::super::super::google::protobuf::Empty),
#[prost(message, tag = "3")]
Field(super::super::super::super::google::protobuf::Empty),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NominalChannelNameComponent {
#[prost(
oneof = "nominal_channel_name_component::NominalChannelNameComponent",
tags = "1, 2"
)]
pub nominal_channel_name_component: ::core::option::Option<
nominal_channel_name_component::NominalChannelNameComponent,
>,
}
pub mod nominal_channel_name_component {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum NominalChannelNameComponent {
#[prost(message, tag = "1")]
Channel(super::super::super::super::google::protobuf::Empty),
#[prost(string, tag = "2")]
ValueOfTagWithName(::prost::alloc::string::String),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimestreamChannelNameComponent {
#[prost(
oneof = "timestream_channel_name_component::TimestreamChannelNameComponent",
tags = "1, 2, 3, 4"
)]
pub timestream_channel_name_component: ::core::option::Option<
timestream_channel_name_component::TimestreamChannelNameComponent,
>,
}
pub mod timestream_channel_name_component {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum TimestreamChannelNameComponent {
#[prost(message, tag = "1")]
Table(super::super::super::super::google::protobuf::Empty),
#[prost(message, tag = "2")]
Measure(super::super::super::super::google::protobuf::Empty),
#[prost(message, tag = "3")]
Attribute(super::super::super::super::google::protobuf::Empty),
#[prost(string, tag = "4")]
ValueOfTagWithName(::prost::alloc::string::String),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PivotedTimescaleChannelNameComponent {
#[prost(
oneof = "pivoted_timescale_channel_name_component::PivotedTimescaleChannelNameComponent",
tags = "1, 2"
)]
pub pivoted_timescale_channel_name_component: ::core::option::Option<
pivoted_timescale_channel_name_component::PivotedTimescaleChannelNameComponent,
>,
}
pub mod pivoted_timescale_channel_name_component {
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum PivotedTimescaleChannelNameComponent {
#[prost(message, tag = "1")]
Table(super::super::super::super::google::protobuf::Empty),
#[prost(message, tag = "2")]
Name(super::super::super::super::google::protobuf::Empty),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct BigQueryChannelNameComponent {
#[prost(bool, tag = "1")]
pub include_project: bool,
#[prost(bool, tag = "2")]
pub include_dataset: bool,
#[prost(bool, tag = "3")]
pub include_table: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InfluxScrapingFilter {
#[prost(oneof = "influx_scraping_filter::InfluxScrapingFilter", tags = "1, 2, 3")]
pub influx_scraping_filter: ::core::option::Option<
influx_scraping_filter::InfluxScrapingFilter,
>,
}
pub mod influx_scraping_filter {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum InfluxScrapingFilter {
#[prost(message, tag = "1")]
Not(::prost::alloc::boxed::Box<super::InfluxScrapingFilter>),
#[prost(message, tag = "2")]
MatchBucket(super::BucketNames),
#[prost(message, tag = "3")]
MatchMeasurement(super::MeasurementNames),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimestreamScrapingFilter {
#[prost(oneof = "timestream_scraping_filter::TimestreamScrapingFilter", tags = "1")]
pub timestream_scraping_filter: ::core::option::Option<
timestream_scraping_filter::TimestreamScrapingFilter,
>,
}
pub mod timestream_scraping_filter {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum TimestreamScrapingFilter {
#[prost(message, tag = "1")]
MatchTable(super::TableNames),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimescaleScrapingFilter {
#[prost(
oneof = "timescale_scraping_filter::TimescaleScrapingFilter",
tags = "1, 2, 3"
)]
pub timescale_scraping_filter: ::core::option::Option<
timescale_scraping_filter::TimescaleScrapingFilter,
>,
}
pub mod timescale_scraping_filter {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum TimescaleScrapingFilter {
#[prost(message, tag = "1")]
Not(::prost::alloc::boxed::Box<super::TimescaleScrapingFilter>),
#[prost(message, tag = "2")]
MatchTable(super::TableNames),
#[prost(message, tag = "3")]
MatchSchema(super::SchemaNames),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BucketNames {
#[prost(string, repeated, tag = "1")]
pub bucket_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MeasurementNames {
#[prost(string, repeated, tag = "1")]
pub measurement_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TableNames {
#[prost(string, repeated, tag = "1")]
pub table_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SchemaNames {
#[prost(string, repeated, tag = "1")]
pub schema_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InfluxSeriesArchetypeConstructionConfig {
#[prost(message, repeated, tag = "1")]
pub channel_name_components: ::prost::alloc::vec::Vec<InfluxChannelNameComponent>,
#[prost(string, tag = "2")]
pub separator: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InfluxScrapingConfig {
#[prost(message, repeated, tag = "1")]
pub filter: ::prost::alloc::vec::Vec<InfluxScrapingFilter>,
#[prost(message, optional, tag = "2")]
pub series_archetype_construction: ::core::option::Option<
InfluxSeriesArchetypeConstructionConfig,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NominalScrapingConfig {
#[prost(message, repeated, tag = "1")]
pub channel_name_components: ::prost::alloc::vec::Vec<NominalChannelNameComponent>,
#[prost(string, tag = "2")]
pub separator: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VisualCrossingAvailableSeries {
#[prost(string, tag = "1")]
pub channel: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub unit: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "3")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "VisualCrossingType", tag = "4")]
pub r#type: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VisualCrossingScrapingConfig {
#[deprecated]
#[prost(message, repeated, tag = "1")]
pub available_series: ::prost::alloc::vec::Vec<VisualCrossingAvailableSeries>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimestreamScrapingConfig {
#[prost(message, repeated, tag = "1")]
pub filter: ::prost::alloc::vec::Vec<TimestreamScrapingFilter>,
#[prost(message, repeated, tag = "2")]
pub channel_name_components: ::prost::alloc::vec::Vec<
TimestreamChannelNameComponent,
>,
#[prost(string, tag = "3")]
pub separator: ::prost::alloc::string::String,
#[prost(int32, optional, tag = "4")]
pub max_look_back_period_hours: ::core::option::Option<i32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PivotedTimescaleScrapingConfig {
#[prost(message, repeated, tag = "1")]
pub filter: ::prost::alloc::vec::Vec<TimescaleScrapingFilter>,
#[prost(string, tag = "2")]
pub time_column: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub name_column: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub value_column: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "5")]
pub dimension_columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, repeated, tag = "6")]
pub channel_name_components: ::prost::alloc::vec::Vec<
PivotedTimescaleChannelNameComponent,
>,
#[prost(string, tag = "7")]
pub separator: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BigQueryScrapingConfig {
#[prost(string, tag = "1")]
pub time_column: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "2")]
pub tag_columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub channel_name_components: ::core::option::Option<BigQueryChannelNameComponent>,
#[prost(string, optional, tag = "4")]
pub separator: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct AllChannelsConnectionsScrapingConfig {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChannelAllowListConnectionsScrapingConfig {
#[prost(string, repeated, tag = "1")]
pub channel_allow_list: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChannelBlockListConnectionsScrapingConfig {
#[prost(string, repeated, tag = "1")]
pub channel_block_list: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApiScrapingConfig {
#[prost(oneof = "api_scraping_config::ApiScrapingConfig", tags = "1, 2, 3")]
pub api_scraping_config: ::core::option::Option<
api_scraping_config::ApiScrapingConfig,
>,
}
pub mod api_scraping_config {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ApiScrapingConfig {
#[prost(message, tag = "1")]
AllChannels(super::AllChannelsConnectionsScrapingConfig),
#[prost(message, tag = "2")]
ChannelAllowList(super::ChannelAllowListConnectionsScrapingConfig),
#[prost(message, tag = "3")]
ChannelBlockList(super::ChannelBlockListConnectionsScrapingConfig),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ScrapingConfig {
#[prost(oneof = "scraping_config::ScrapingConfig", tags = "1, 2, 3, 4, 5, 6, 7")]
pub scraping_config: ::core::option::Option<scraping_config::ScrapingConfig>,
}
pub mod scraping_config {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ScrapingConfig {
#[prost(message, tag = "1")]
Influx(super::InfluxScrapingConfig),
#[prost(message, tag = "2")]
Nominal(super::NominalScrapingConfig),
#[prost(message, tag = "3")]
Timestream(super::TimestreamScrapingConfig),
#[prost(message, tag = "4")]
Timescale(super::PivotedTimescaleScrapingConfig),
#[prost(message, tag = "5")]
VisualCrossing(super::VisualCrossingScrapingConfig),
#[prost(message, tag = "6")]
BigQuery(super::BigQueryScrapingConfig),
#[prost(message, tag = "7")]
Api(super::ApiScrapingConfig),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HeaderValue {
#[prost(oneof = "header_value::HeaderValue", tags = "1, 2")]
pub header_value: ::core::option::Option<header_value::HeaderValue>,
}
pub mod header_value {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum HeaderValue {
#[prost(string, tag = "1")]
Plain(::prost::alloc::string::String),
#[prost(string, tag = "2")]
SecretRid(::prost::alloc::string::String),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PasswordCredentials {
#[prost(string, tag = "1")]
pub username: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub password_secret_rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimescaleConnectionDetails {
#[prost(string, tag = "1")]
pub database: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub host: ::prost::alloc::string::String,
#[prost(int32, tag = "3")]
pub port: i32,
#[prost(string, tag = "4")]
pub username: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub password_secret_rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Influx2ConnectionDetails {
#[prost(string, tag = "1")]
pub host: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub port: i32,
#[prost(map = "string, message", tag = "3")]
pub headers: ::std::collections::HashMap<
::prost::alloc::string::String,
HeaderValue,
>,
#[prost(string, tag = "4")]
pub org: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub token_secret_rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Influx1ConnectionDetails {
#[prost(string, tag = "1")]
pub host: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub port: i32,
#[prost(map = "string, message", tag = "3")]
pub headers: ::std::collections::HashMap<
::prost::alloc::string::String,
HeaderValue,
>,
#[prost(message, optional, tag = "4")]
pub credentials: ::core::option::Option<PasswordCredentials>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NominalConnectionDetails {
#[prost(string, tag = "1")]
pub nominal_data_source_rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TimestreamConnectionDetails {
#[prost(string, tag = "1")]
pub nominal_role_arn: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub nominal_role_region: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub external_region: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub external_role_arn: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub database: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BigQueryConnectionDetails {
#[prost(string, tag = "1")]
pub region: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub project: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub dataset: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub table: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub service_account_key_secret_rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VisualCrossingConnectionDetails {
#[prost(string, tag = "1")]
pub api_key_secret_rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ApiConnectionDetails {
#[prost(string, tag = "1")]
pub api_uri: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub token_secret_rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectionDetails {
#[prost(
oneof = "connection_details::ConnectionDetails",
tags = "1, 2, 3, 4, 5, 6, 7, 8"
)]
pub connection_details: ::core::option::Option<
connection_details::ConnectionDetails,
>,
}
pub mod connection_details {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ConnectionDetails {
#[prost(message, tag = "1")]
Timescale(super::TimescaleConnectionDetails),
#[prost(message, tag = "2")]
Influx(super::Influx2ConnectionDetails),
#[prost(message, tag = "3")]
Influx1(super::Influx1ConnectionDetails),
#[prost(message, tag = "4")]
Nominal(super::NominalConnectionDetails),
#[prost(message, tag = "5")]
Timestream(super::TimestreamConnectionDetails),
#[prost(message, tag = "6")]
VisualCrossing(super::VisualCrossingConnectionDetails),
#[prost(message, tag = "7")]
BigQuery(super::BigQueryConnectionDetails),
#[prost(message, tag = "8")]
Api(super::ApiConnectionDetails),
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Duration {
#[prost(enumeration = "TemporalUnit", tag = "1")]
pub unit: i32,
#[prost(int32, tag = "2")]
pub count: i32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LimitsConfig {
#[prost(message, optional, tag = "1")]
pub max_query_range: ::core::option::Option<Duration>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ConnectionStatus {
#[prost(bool, tag = "1")]
pub is_connected: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Connection {
#[prost(string, tag = "1")]
pub rid: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub display_name: ::prost::alloc::string::String,
#[prost(string, optional, tag = "3")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub connection_details: ::core::option::Option<ConnectionDetails>,
#[prost(string, repeated, tag = "5")]
pub required_tag_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(map = "string, string", tag = "6")]
pub metadata: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(message, optional, tag = "7")]
pub scraping: ::core::option::Option<ScrapingConfig>,
#[prost(bool, tag = "8")]
pub should_scrape: bool,
#[prost(message, optional, tag = "9")]
pub limits: ::core::option::Option<LimitsConfig>,
#[prost(message, optional, tag = "10")]
pub connection_status: ::core::option::Option<ConnectionStatus>,
#[prost(bool, tag = "11")]
pub is_archived: bool,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ConnectionPlottingConfiguration {
#[prost(int32, optional, tag = "1")]
pub max_undecimated_points_per_page: ::core::option::Option<i32>,
#[prost(int64, optional, tag = "2")]
pub max_unbounded_range: ::core::option::Option<i64>,
#[prost(double, optional, tag = "3")]
pub max_undecimated_page_reads_per_second: ::core::option::Option<f64>,
#[prost(double, optional, tag = "4")]
pub max_permits_per_second: ::core::option::Option<f64>,
#[prost(int32, optional, tag = "5")]
pub max_connections: ::core::option::Option<i32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AvailableTagValuesWrapper {
#[prost(map = "string, message", tag = "1")]
pub available_tag_values: ::std::collections::HashMap<
::prost::alloc::string::String,
TagValueSet,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TagValueSet {
#[prost(string, repeated, tag = "1")]
pub value: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectionCreation {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, optional, tag = "2")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub connection_details: ::core::option::Option<ConnectionDetails>,
#[prost(map = "string, string", tag = "4")]
pub metadata: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(string, repeated, tag = "5")]
pub required_tag_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(map = "string, message", tag = "6")]
pub available_tag_values: ::std::collections::HashMap<
::prost::alloc::string::String,
TagValueSet,
>,
#[prost(message, optional, tag = "7")]
pub scraping: ::core::option::Option<ScrapingConfig>,
#[prost(bool, tag = "8")]
pub should_scrape: bool,
#[prost(message, optional, tag = "9")]
pub limits: ::core::option::Option<LimitsConfig>,
#[prost(string, optional, tag = "10")]
pub workspace: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, repeated, tag = "11")]
pub marking_rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConnectionUpdate {
#[prost(string, optional, tag = "1")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "2")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub metadata: ::core::option::Option<MetadataWrapper>,
#[prost(message, optional, tag = "4")]
pub connection_details: ::core::option::Option<ConnectionDetails>,
#[prost(message, optional, tag = "5")]
pub required_tag_names: ::core::option::Option<RequiredTagNamesWrapper>,
#[prost(message, optional, tag = "6")]
pub available_tag_values: ::core::option::Option<AvailableTagValuesWrapper>,
#[prost(message, optional, tag = "7")]
pub scraping: ::core::option::Option<ScrapingConfig>,
#[prost(bool, optional, tag = "8")]
pub should_scrape: ::core::option::Option<bool>,
#[prost(message, optional, tag = "9")]
pub limits: ::core::option::Option<LimitsConfig>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetadataWrapper {
#[prost(map = "string, string", tag = "1")]
pub metadata: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequiredTagNamesWrapper {
#[prost(string, repeated, tag = "1")]
pub required_tag_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateConnectionRequest {
#[prost(message, optional, tag = "1")]
pub connection: ::core::option::Option<ConnectionCreation>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateConnectionResponse {
#[prost(message, optional, tag = "1")]
pub connection: ::core::option::Option<Connection>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateConnectionRequest {
#[prost(string, tag = "1")]
pub rid: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub update: ::core::option::Option<ConnectionUpdate>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateConnectionResponse {
#[prost(message, optional, tag = "1")]
pub connection: ::core::option::Option<Connection>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateConnectionStatusRequest {
#[prost(string, tag = "1")]
pub rid: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub status: ::core::option::Option<ConnectionStatus>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UpdateConnectionStatusResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddAvailableTagsRequest {
#[prost(string, tag = "1")]
pub rid: ::prost::alloc::string::String,
#[prost(map = "string, message", tag = "2")]
pub tags: ::std::collections::HashMap<::prost::alloc::string::String, TagValueSet>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddAvailableTagsResponse {
#[prost(message, optional, tag = "1")]
pub connection: ::core::option::Option<Connection>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConnectionRequest {
#[prost(string, tag = "1")]
pub rid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetConnectionResponse {
#[prost(message, optional, tag = "1")]
pub connection: ::core::option::Option<Connection>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetConnectionsRequest {
#[prost(string, repeated, tag = "1")]
pub rids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BatchGetConnectionsResponse {
#[prost(message, repeated, tag = "1")]
pub connections: ::prost::alloc::vec::Vec<Connection>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListConnectionsRequest {
#[prost(bool, optional, tag = "1")]
pub include_archived: ::core::option::Option<bool>,
#[prost(string, repeated, tag = "2")]
pub workspaces: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(int32, optional, tag = "3")]
pub page_size: ::core::option::Option<i32>,
#[prost(string, optional, tag = "4")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListConnectionsResponse {
#[prost(message, repeated, tag = "1")]
pub connections: ::prost::alloc::vec::Vec<Connection>,
#[prost(string, optional, tag = "2")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchConnectionsRequest {
#[prost(string, repeated, tag = "1")]
pub nominal_data_source_rids: ::prost::alloc::vec::Vec<
::prost::alloc::string::String,
>,
#[prost(string, repeated, tag = "2")]
pub workspaces: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(int32, optional, tag = "3")]
pub page_size: ::core::option::Option<i32>,
#[prost(string, optional, tag = "4")]
pub page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SearchConnectionsResponse {
#[prost(message, repeated, tag = "1")]
pub connections: ::prost::alloc::vec::Vec<Connection>,
#[prost(string, optional, tag = "2")]
pub next_page_token: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ArchiveConnectionRequest {
#[prost(string, tag = "1")]
pub rid: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ArchiveConnectionResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnarchiveConnectionRequest {
#[prost(string, tag = "1")]
pub rid: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UnarchiveConnectionResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PopulateSeriesRequest {
#[prost(string, tag = "1")]
pub rid: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub start_time: ::core::option::Option<
super::super::super::google::protobuf::Timestamp,
>,
#[prost(message, optional, tag = "3")]
pub end_time: ::core::option::Option<
super::super::super::google::protobuf::Timestamp,
>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PopulateSeriesResponse {}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum VisualCrossingType {
Unspecified = 0,
Double = 1,
String = 2,
}
impl VisualCrossingType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "VISUAL_CROSSING_TYPE_UNSPECIFIED",
Self::Double => "VISUAL_CROSSING_TYPE_DOUBLE",
Self::String => "VISUAL_CROSSING_TYPE_STRING",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"VISUAL_CROSSING_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"VISUAL_CROSSING_TYPE_DOUBLE" => Some(Self::Double),
"VISUAL_CROSSING_TYPE_STRING" => Some(Self::String),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum TemporalUnit {
Unspecified = 0,
Hours = 1,
Days = 2,
Weeks = 3,
}
impl TemporalUnit {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "TEMPORAL_UNIT_UNSPECIFIED",
Self::Hours => "TEMPORAL_UNIT_HOURS",
Self::Days => "TEMPORAL_UNIT_DAYS",
Self::Weeks => "TEMPORAL_UNIT_WEEKS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TEMPORAL_UNIT_UNSPECIFIED" => Some(Self::Unspecified),
"TEMPORAL_UNIT_HOURS" => Some(Self::Hours),
"TEMPORAL_UNIT_DAYS" => Some(Self::Days),
"TEMPORAL_UNIT_WEEKS" => Some(Self::Weeks),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ConnectionError {
ConnectionNotFound = 0,
InvalidArgument = 1,
}
impl ConnectionError {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::ConnectionNotFound => "CONNECTION_ERROR_CONNECTION_NOT_FOUND",
Self::InvalidArgument => "CONNECTION_ERROR_INVALID_ARGUMENT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"CONNECTION_ERROR_CONNECTION_NOT_FOUND" => Some(Self::ConnectionNotFound),
"CONNECTION_ERROR_INVALID_ARGUMENT" => Some(Self::InvalidArgument),
_ => None,
}
}
}
pub mod connection_service_client {
#![allow(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
clippy::let_unit_value,
)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
pub struct ConnectionServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl ConnectionServiceClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> ConnectionServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::Body>,
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,
) -> ConnectionServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::Body>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::Body>,
>>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
{
ConnectionServiceClient::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
}
#[deprecated]
pub async fn create_connection(
&mut self,
request: impl tonic::IntoRequest<super::CreateConnectionRequest>,
) -> std::result::Result<
tonic::Response<super::CreateConnectionResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/nominal.connection.v1.ConnectionService/CreateConnection",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.connection.v1.ConnectionService",
"CreateConnection",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn update_connection(
&mut self,
request: impl tonic::IntoRequest<super::UpdateConnectionRequest>,
) -> std::result::Result<
tonic::Response<super::UpdateConnectionResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/nominal.connection.v1.ConnectionService/UpdateConnection",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.connection.v1.ConnectionService",
"UpdateConnection",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn update_connection_status(
&mut self,
request: impl tonic::IntoRequest<super::UpdateConnectionStatusRequest>,
) -> std::result::Result<
tonic::Response<super::UpdateConnectionStatusResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/nominal.connection.v1.ConnectionService/UpdateConnectionStatus",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.connection.v1.ConnectionService",
"UpdateConnectionStatus",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn add_available_tags(
&mut self,
request: impl tonic::IntoRequest<super::AddAvailableTagsRequest>,
) -> std::result::Result<
tonic::Response<super::AddAvailableTagsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/nominal.connection.v1.ConnectionService/AddAvailableTags",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.connection.v1.ConnectionService",
"AddAvailableTags",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_connection(
&mut self,
request: impl tonic::IntoRequest<super::GetConnectionRequest>,
) -> std::result::Result<
tonic::Response<super::GetConnectionResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/nominal.connection.v1.ConnectionService/GetConnection",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.connection.v1.ConnectionService",
"GetConnection",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn batch_get_connections(
&mut self,
request: impl tonic::IntoRequest<super::BatchGetConnectionsRequest>,
) -> std::result::Result<
tonic::Response<super::BatchGetConnectionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/nominal.connection.v1.ConnectionService/BatchGetConnections",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.connection.v1.ConnectionService",
"BatchGetConnections",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_connections(
&mut self,
request: impl tonic::IntoRequest<super::ListConnectionsRequest>,
) -> std::result::Result<
tonic::Response<super::ListConnectionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/nominal.connection.v1.ConnectionService/ListConnections",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.connection.v1.ConnectionService",
"ListConnections",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn search_connections(
&mut self,
request: impl tonic::IntoRequest<super::SearchConnectionsRequest>,
) -> std::result::Result<
tonic::Response<super::SearchConnectionsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/nominal.connection.v1.ConnectionService/SearchConnections",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.connection.v1.ConnectionService",
"SearchConnections",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn archive_connection(
&mut self,
request: impl tonic::IntoRequest<super::ArchiveConnectionRequest>,
) -> std::result::Result<
tonic::Response<super::ArchiveConnectionResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/nominal.connection.v1.ConnectionService/ArchiveConnection",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.connection.v1.ConnectionService",
"ArchiveConnection",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn unarchive_connection(
&mut self,
request: impl tonic::IntoRequest<super::UnarchiveConnectionRequest>,
) -> std::result::Result<
tonic::Response<super::UnarchiveConnectionResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/nominal.connection.v1.ConnectionService/UnarchiveConnection",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.connection.v1.ConnectionService",
"UnarchiveConnection",
),
);
self.inner.unary(req, path, codec).await
}
}
}
pub mod connection_bootstrapper_service_client {
#![allow(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
clippy::let_unit_value,
)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
pub struct ConnectionBootstrapperServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl ConnectionBootstrapperServiceClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> ConnectionBootstrapperServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::Body>,
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,
) -> ConnectionBootstrapperServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::Body>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::Body>,
>>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
{
ConnectionBootstrapperServiceClient::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 populate_series(
&mut self,
request: impl tonic::IntoRequest<super::PopulateSeriesRequest>,
) -> std::result::Result<
tonic::Response<super::PopulateSeriesResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/nominal.connection.v1.ConnectionBootstrapperService/PopulateSeries",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"nominal.connection.v1.ConnectionBootstrapperService",
"PopulateSeries",
),
);
self.inner.unary(req, path, codec).await
}
}
}