Skip to content

Commit

Permalink
chore: regen protos from rc.9
Browse files Browse the repository at this point in the history
Signed-off-by: mikeee <[email protected]>
  • Loading branch information
mikeee committed Feb 3, 2025
1 parent 3d0ff03 commit b2299bb
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
32 changes: 16 additions & 16 deletions dapr/src/dapr/dapr.proto.common.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ pub mod http_extension {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Verb::None => "NONE",
Verb::Get => "GET",
Verb::Head => "HEAD",
Verb::Post => "POST",
Verb::Put => "PUT",
Verb::Delete => "DELETE",
Verb::Connect => "CONNECT",
Verb::Options => "OPTIONS",
Verb::Trace => "TRACE",
Verb::Patch => "PATCH",
Self::None => "NONE",
Self::Get => "GET",
Self::Head => "HEAD",
Self::Post => "POST",
Self::Put => "PUT",
Self::Delete => "DELETE",
Self::Connect => "CONNECT",
Self::Options => "OPTIONS",
Self::Trace => "TRACE",
Self::Patch => "PATCH",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -198,9 +198,9 @@ pub mod state_options {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
StateConcurrency::ConcurrencyUnspecified => "CONCURRENCY_UNSPECIFIED",
StateConcurrency::ConcurrencyFirstWrite => "CONCURRENCY_FIRST_WRITE",
StateConcurrency::ConcurrencyLastWrite => "CONCURRENCY_LAST_WRITE",
Self::ConcurrencyUnspecified => "CONCURRENCY_UNSPECIFIED",
Self::ConcurrencyFirstWrite => "CONCURRENCY_FIRST_WRITE",
Self::ConcurrencyLastWrite => "CONCURRENCY_LAST_WRITE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -238,9 +238,9 @@ pub mod state_options {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
StateConsistency::ConsistencyUnspecified => "CONSISTENCY_UNSPECIFIED",
StateConsistency::ConsistencyEventual => "CONSISTENCY_EVENTUAL",
StateConsistency::ConsistencyStrong => "CONSISTENCY_STRONG",
Self::ConsistencyUnspecified => "CONSISTENCY_UNSPECIFIED",
Self::ConsistencyEventual => "CONSISTENCY_EVENTUAL",
Self::ConsistencyStrong => "CONSISTENCY_STRONG",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down
36 changes: 18 additions & 18 deletions dapr/src/dapr/dapr.proto.runtime.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ pub mod topic_event_response {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
TopicEventResponseStatus::Success => "SUCCESS",
TopicEventResponseStatus::Retry => "RETRY",
TopicEventResponseStatus::Drop => "DROP",
Self::Success => "SUCCESS",
Self::Retry => "RETRY",
Self::Drop => "DROP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -288,8 +288,8 @@ pub mod binding_event_response {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
BindingEventConcurrency::Sequential => "SEQUENTIAL",
BindingEventConcurrency::Parallel => "PARALLEL",
Self::Sequential => "SEQUENTIAL",
Self::Parallel => "PARALLEL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -2422,9 +2422,9 @@ pub mod actor_runtime {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ActorRuntimeStatus::Initializing => "INITIALIZING",
ActorRuntimeStatus::Disabled => "DISABLED",
ActorRuntimeStatus::Running => "RUNNING",
Self::Initializing => "INITIALIZING",
Self::Disabled => "DISABLED",
Self::Running => "RUNNING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -2674,10 +2674,10 @@ pub mod unlock_response {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Status::Success => "SUCCESS",
Status::LockDoesNotExist => "LOCK_DOES_NOT_EXIST",
Status::LockBelongsToOthers => "LOCK_BELONGS_TO_OTHERS",
Status::InternalError => "INTERNAL_ERROR",
Self::Success => "SUCCESS",
Self::LockDoesNotExist => "LOCK_DOES_NOT_EXIST",
Self::LockBelongsToOthers => "LOCK_BELONGS_TO_OTHERS",
Self::InternalError => "INTERNAL_ERROR",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -2732,8 +2732,8 @@ pub mod subtle_get_key_request {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
KeyFormat::Pem => "PEM",
KeyFormat::Json => "JSON",
Self::Pem => "PEM",
Self::Json => "JSON",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -3314,10 +3314,10 @@ impl PubsubSubscriptionType {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
PubsubSubscriptionType::Unknown => "UNKNOWN",
PubsubSubscriptionType::Declarative => "DECLARATIVE",
PubsubSubscriptionType::Programmatic => "PROGRAMMATIC",
PubsubSubscriptionType::Streaming => "STREAMING",
Self::Unknown => "UNKNOWN",
Self::Declarative => "DECLARATIVE",
Self::Programmatic => "PROGRAMMATIC",
Self::Streaming => "STREAMING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down

0 comments on commit b2299bb

Please sign in to comment.