#[non_exhaustive]pub enum State {
Unspecified,
Active,
NotFound,
AppProfileMisconfigured,
PermissionDenied,
SchemaMismatch,
InTransitLocationRestriction,
VertexAiLocationRestriction,
UnknownValue(UnknownValue),
}Expand description
Possible states for a Bigtable subscription. Note: more states could be added in the future. Please code accordingly.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
Default value. This value is unused.
Active
The subscription can actively send messages to Bigtable.
NotFound
Cannot write to Bigtable because the instance, table, or app profile does not exist.
AppProfileMisconfigured
Cannot write to Bigtable because the app profile is not configured for single-cluster routing.
PermissionDenied
Cannot write to Bigtable because of permission denied errors. This can happen if:
- The Pub/Sub service agent has not been granted the appropriate Bigtable IAM permission bigtable.tables.mutateRows
- The bigtable.googleapis.com API is not enabled for the project (instructions)
SchemaMismatch
Cannot write to Bigtable because of a missing column family (“data”) or if there is no structured row key for the subscription name + message ID.
InTransitLocationRestriction
Cannot write to the destination because enforce_in_transit is set to true and the destination locations are not in the allowed regions.
VertexAiLocationRestriction
Cannot write to Bigtable because the table is not in the same location as
where Vertex AI models used in message_transforms are deployed.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using State::value or State::name.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
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 StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.