pub struct PubSubInputConfig {
pub emulator: Option<String>,
pub credentials: Option<String>,
pub endpoint: Option<String>,
pub pool_size: Option<u32>,
pub timeout_seconds: Option<u32>,
pub connect_timeout_seconds: Option<u32>,
pub project_id: Option<String>,
pub subscription: String,
pub snapshot: Option<String>,
pub timestamp: Option<String>,
}Expand description
Google Pub/Sub input connector configuration.
Fields§
§emulator: Option<String>Set in order to use a Pub/Sub emulator instead of the production service, e.g., ‘localhost:8681’.
credentials: Option<String>The content of a Google Cloud credentials JSON file.
When this option is specified, the connector will use the provided credentials for authentication. Otherwise, it will use Application Default Credentials (ADC) configured in the environment where the Feldera service is running. See Google Cloud documentation for information on configuring application default credentials.
When running Feldera in an environment where ADC are not configured,
e.g., a Docker container, use this option to ship Google Cloud credentials from another environment.
For example, if you use the
gcloud auth application-default login
command for authentication in your local development environment, ADC are stored in the
.config/gcloud/application_default_credentials.json file in your home directory.
endpoint: Option<String>Override the default service endpoint ‘pubsub.googleapis.com’
pool_size: Option<u32>gRPC channel pool size.
timeout_seconds: Option<u32>gRPC request timeout.
connect_timeout_seconds: Option<u32>gRPC connection timeout.
project_id: Option<String>Google Cloud project_id.
When not specified, the connector will use the project id associated with the authenticated account.
subscription: StringSubscription name.
snapshot: Option<String>Reset subscription’s backlog to a given snapshot on startup,
using the Pub/Sub Seek API.
This option is mutually exclusive with the timestamp option.
timestamp: Option<String>Reset subscription’s backlog to a given timestamp on startup,
using the Pub/Sub Seek API.
The value of this option is an ISO 8601-encoded UTC time, e.g., “2024-08-17T16:39:57-08:00”.
This option is mutually exclusive with the snapshot option.
Trait Implementations§
Source§impl Clone for PubSubInputConfig
impl Clone for PubSubInputConfig
Source§fn clone(&self) -> PubSubInputConfig
fn clone(&self) -> PubSubInputConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PubSubInputConfig
impl Debug for PubSubInputConfig
Source§impl<'de> Deserialize<'de> for PubSubInputConfig
impl<'de> Deserialize<'de> for PubSubInputConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for PubSubInputConfig
Source§impl PartialEq for PubSubInputConfig
impl PartialEq for PubSubInputConfig
Source§impl Serialize for PubSubInputConfig
impl Serialize for PubSubInputConfig
impl StructuralPartialEq for PubSubInputConfig
Auto Trait Implementations§
impl Freeze for PubSubInputConfig
impl RefUnwindSafe for PubSubInputConfig
impl Send for PubSubInputConfig
impl Sync for PubSubInputConfig
impl Unpin for PubSubInputConfig
impl UnsafeUnpin for PubSubInputConfig
impl UnwindSafe for PubSubInputConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.