Skip to content

Commit

Permalink
Google APIs updated at 2024-10-02 (#164)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions <>
  • Loading branch information
github-actions[bot] authored Oct 2, 2024
1 parent a86c519 commit f0f4bbc
Show file tree
Hide file tree
Showing 478 changed files with 69,318 additions and 58,865 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ pub mod finding {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
State::Unspecified => "STATE_UNSPECIFIED",
State::Active => "ACTIVE",
State::Remediated => "REMEDIATED",
Self::Unspecified => "STATE_UNSPECIFIED",
Self::Active => "ACTIVE",
Self::Remediated => "REMEDIATED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -146,9 +146,9 @@ impl FindingType {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
FindingType::Unspecified => "FINDING_TYPE_UNSPECIFIED",
FindingType::Misconfig => "FINDING_TYPE_MISCONFIG",
FindingType::Vulnerability => "FINDING_TYPE_VULNERABILITY",
Self::Unspecified => "FINDING_TYPE_UNSPECIFIED",
Self::Misconfig => "FINDING_TYPE_MISCONFIG",
Self::Vulnerability => "FINDING_TYPE_VULNERABILITY",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -183,11 +183,11 @@ impl Severity {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Severity::Unspecified => "SEVERITY_UNSPECIFIED",
Severity::Critical => "SEVERITY_CRITICAL",
Severity::High => "SEVERITY_HIGH",
Severity::Medium => "SEVERITY_MEDIUM",
Severity::Low => "SEVERITY_LOW",
Self::Unspecified => "SEVERITY_UNSPECIFIED",
Self::Critical => "SEVERITY_CRITICAL",
Self::High => "SEVERITY_HIGH",
Self::Medium => "SEVERITY_MEDIUM",
Self::Low => "SEVERITY_LOW",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down
56 changes: 27 additions & 29 deletions gcloud-sdk/genproto/google.actions.sdk.v2.conversation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ pub mod image {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ImageFill::Unspecified => "UNSPECIFIED",
ImageFill::Gray => "GRAY",
ImageFill::White => "WHITE",
ImageFill::Cropped => "CROPPED",
Self::Unspecified => "UNSPECIFIED",
Self::Gray => "GRAY",
Self::White => "WHITE",
Self::Cropped => "CROPPED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -175,8 +175,8 @@ impl UrlHint {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
UrlHint::LinkUnspecified => "LINK_UNSPECIFIED",
UrlHint::Amp => "AMP",
Self::LinkUnspecified => "LINK_UNSPECIFIED",
Self::Amp => "AMP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -316,9 +316,9 @@ pub mod media {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
MediaType::Unspecified => "MEDIA_TYPE_UNSPECIFIED",
MediaType::Audio => "AUDIO",
MediaType::MediaStatusAck => "MEDIA_STATUS_ACK",
Self::Unspecified => "MEDIA_TYPE_UNSPECIFIED",
Self::Audio => "AUDIO",
Self::MediaStatusAck => "MEDIA_STATUS_ACK",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -360,11 +360,9 @@ pub mod media {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
OptionalMediaControls::Unspecified => {
"OPTIONAL_MEDIA_CONTROLS_UNSPECIFIED"
}
OptionalMediaControls::Paused => "PAUSED",
OptionalMediaControls::Stopped => "STOPPED",
Self::Unspecified => "OPTIONAL_MEDIA_CONTROLS_UNSPECIFIED",
Self::Paused => "PAUSED",
Self::Stopped => "STOPPED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -484,10 +482,10 @@ pub mod table_column {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
HorizontalAlignment::Unspecified => "UNSPECIFIED",
HorizontalAlignment::Leading => "LEADING",
HorizontalAlignment::Center => "CENTER",
HorizontalAlignment::Trailing => "TRAILING",
Self::Unspecified => "UNSPECIFIED",
Self::Leading => "LEADING",
Self::Center => "CENTER",
Self::Trailing => "TRAILING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -691,9 +689,9 @@ pub mod slot {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
SlotMode::ModeUnspecified => "MODE_UNSPECIFIED",
SlotMode::Optional => "OPTIONAL",
SlotMode::Required => "REQUIRED",
Self::ModeUnspecified => "MODE_UNSPECIFIED",
Self::Optional => "OPTIONAL",
Self::Required => "REQUIRED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -739,10 +737,10 @@ pub mod slot {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
SlotStatus::SlotUnspecified => "SLOT_UNSPECIFIED",
SlotStatus::Empty => "EMPTY",
SlotStatus::Invalid => "INVALID",
SlotStatus::Filled => "FILLED",
Self::SlotUnspecified => "SLOT_UNSPECIFIED",
Self::Empty => "EMPTY",
Self::Invalid => "INVALID",
Self::Filled => "FILLED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -777,10 +775,10 @@ impl SlotFillingStatus {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
SlotFillingStatus::Unspecified => "UNSPECIFIED",
SlotFillingStatus::Initialized => "INITIALIZED",
SlotFillingStatus::Collecting => "COLLECTING",
SlotFillingStatus::Final => "FINAL",
Self::Unspecified => "UNSPECIFIED",
Self::Initialized => "INITIALIZED",
Self::Collecting => "COLLECTING",
Self::Final => "FINAL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ pub mod static_image_prompt {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
ImageFill::Unspecified => "UNSPECIFIED",
ImageFill::Gray => "GRAY",
ImageFill::White => "WHITE",
ImageFill::Cropped => "CROPPED",
Self::Unspecified => "UNSPECIFIED",
Self::Gray => "GRAY",
Self::White => "WHITE",
Self::Cropped => "CROPPED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -143,8 +143,8 @@ impl UrlHint {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
UrlHint::HintUnspecified => "HINT_UNSPECIFIED",
UrlHint::Amp => "AMP",
Self::HintUnspecified => "HINT_UNSPECIFIED",
Self::Amp => "AMP",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -347,9 +347,9 @@ pub mod static_media_prompt {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
MediaType::Unspecified => "MEDIA_TYPE_UNSPECIFIED",
MediaType::Audio => "AUDIO",
MediaType::MediaStatusAck => "MEDIA_STATUS_ACK",
Self::Unspecified => "MEDIA_TYPE_UNSPECIFIED",
Self::Audio => "AUDIO",
Self::MediaStatusAck => "MEDIA_STATUS_ACK",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -390,11 +390,9 @@ pub mod static_media_prompt {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
OptionalMediaControls::Unspecified => {
"OPTIONAL_MEDIA_CONTROLS_UNSPECIFIED"
}
OptionalMediaControls::Paused => "PAUSED",
OptionalMediaControls::Stopped => "STOPPED",
Self::Unspecified => "OPTIONAL_MEDIA_CONTROLS_UNSPECIFIED",
Self::Paused => "PAUSED",
Self::Stopped => "STOPPED",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -436,9 +434,9 @@ pub mod static_media_prompt {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
RepeatMode::Unspecified => "REPEAT_MODE_UNSPECIFIED",
RepeatMode::Off => "OFF",
RepeatMode::All => "ALL",
Self::Unspecified => "REPEAT_MODE_UNSPECIFIED",
Self::Off => "OFF",
Self::All => "ALL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -558,10 +556,10 @@ pub mod table_column {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
HorizontalAlignment::Unspecified => "UNSPECIFIED",
HorizontalAlignment::Leading => "LEADING",
HorizontalAlignment::Center => "CENTER",
HorizontalAlignment::Trailing => "TRAILING",
Self::Unspecified => "UNSPECIFIED",
Self::Leading => "LEADING",
Self::Center => "CENTER",
Self::Trailing => "TRAILING",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down Expand Up @@ -719,13 +717,13 @@ pub mod surface_capabilities {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Capability::Unspecified => "UNSPECIFIED",
Capability::Speech => "SPEECH",
Capability::RichResponse => "RICH_RESPONSE",
Capability::LongFormAudio => "LONG_FORM_AUDIO",
Capability::InteractiveCanvas => "INTERACTIVE_CANVAS",
Capability::WebLink => "WEB_LINK",
Capability::HomeStorage => "HOME_STORAGE",
Self::Unspecified => "UNSPECIFIED",
Self::Speech => "SPEECH",
Self::RichResponse => "RICH_RESPONSE",
Self::LongFormAudio => "LONG_FORM_AUDIO",
Self::InteractiveCanvas => "INTERACTIVE_CANVAS",
Self::WebLink => "WEB_LINK",
Self::HomeStorage => "HOME_STORAGE",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ pub mod synonym_type {
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
MatchType::Unspecified => "UNSPECIFIED",
MatchType::ExactMatch => "EXACT_MATCH",
MatchType::FuzzyMatch => "FUZZY_MATCH",
Self::Unspecified => "UNSPECIFIED",
Self::ExactMatch => "EXACT_MATCH",
Self::FuzzyMatch => "FUZZY_MATCH",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand Down
Loading

0 comments on commit f0f4bbc

Please sign in to comment.