@@ -408,14 +408,14 @@ impl LaunchStage {
408408 /// (if the ProtoBuf definition does not change) and safe for programmatic use.
409409 pub fn as_str_name ( & self ) -> & ' static str {
410410 match self {
411- LaunchStage :: Unspecified => "LAUNCH_STAGE_UNSPECIFIED" ,
412- LaunchStage :: Unimplemented => "UNIMPLEMENTED" ,
413- LaunchStage :: Prelaunch => "PRELAUNCH" ,
414- LaunchStage :: EarlyAccess => "EARLY_ACCESS" ,
415- LaunchStage :: Alpha => "ALPHA" ,
416- LaunchStage :: Beta => "BETA" ,
417- LaunchStage :: Ga => "GA" ,
418- LaunchStage :: Deprecated => "DEPRECATED" ,
411+ Self :: Unspecified => "LAUNCH_STAGE_UNSPECIFIED" ,
412+ Self :: Unimplemented => "UNIMPLEMENTED" ,
413+ Self :: Prelaunch => "PRELAUNCH" ,
414+ Self :: EarlyAccess => "EARLY_ACCESS" ,
415+ Self :: Alpha => "ALPHA" ,
416+ Self :: Beta => "BETA" ,
417+ Self :: Ga => "GA" ,
418+ Self :: Deprecated => "DEPRECATED" ,
419419 }
420420 }
421421 /// Creates an enum from field names used in the ProtoBuf definition.
@@ -772,14 +772,14 @@ impl ClientLibraryOrganization {
772772 /// (if the ProtoBuf definition does not change) and safe for programmatic use.
773773 pub fn as_str_name ( & self ) -> & ' static str {
774774 match self {
775- ClientLibraryOrganization :: Unspecified => "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" ,
776- ClientLibraryOrganization :: Cloud => "CLOUD" ,
777- ClientLibraryOrganization :: Ads => "ADS" ,
778- ClientLibraryOrganization :: Photos => "PHOTOS" ,
779- ClientLibraryOrganization :: StreetView => "STREET_VIEW" ,
780- ClientLibraryOrganization :: Shopping => "SHOPPING" ,
781- ClientLibraryOrganization :: Geo => "GEO" ,
782- ClientLibraryOrganization :: GenerativeAi => "GENERATIVE_AI" ,
775+ Self :: Unspecified => "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" ,
776+ Self :: Cloud => "CLOUD" ,
777+ Self :: Ads => "ADS" ,
778+ Self :: Photos => "PHOTOS" ,
779+ Self :: StreetView => "STREET_VIEW" ,
780+ Self :: Shopping => "SHOPPING" ,
781+ Self :: Geo => "GEO" ,
782+ Self :: GenerativeAi => "GENERATIVE_AI" ,
783783 }
784784 }
785785 /// Creates an enum from field names used in the ProtoBuf definition.
@@ -817,9 +817,9 @@ impl ClientLibraryDestination {
817817 /// (if the ProtoBuf definition does not change) and safe for programmatic use.
818818 pub fn as_str_name ( & self ) -> & ' static str {
819819 match self {
820- ClientLibraryDestination :: Unspecified => "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED" ,
821- ClientLibraryDestination :: Github => "GITHUB" ,
822- ClientLibraryDestination :: PackageManager => "PACKAGE_MANAGER" ,
820+ Self :: Unspecified => "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED" ,
821+ Self :: Github => "GITHUB" ,
822+ Self :: PackageManager => "PACKAGE_MANAGER" ,
823823 }
824824 }
825825 /// Creates an enum from field names used in the ProtoBuf definition.
@@ -895,15 +895,15 @@ impl FieldBehavior {
895895 /// (if the ProtoBuf definition does not change) and safe for programmatic use.
896896 pub fn as_str_name ( & self ) -> & ' static str {
897897 match self {
898- FieldBehavior :: Unspecified => "FIELD_BEHAVIOR_UNSPECIFIED" ,
899- FieldBehavior :: Optional => "OPTIONAL" ,
900- FieldBehavior :: Required => "REQUIRED" ,
901- FieldBehavior :: OutputOnly => "OUTPUT_ONLY" ,
902- FieldBehavior :: InputOnly => "INPUT_ONLY" ,
903- FieldBehavior :: Immutable => "IMMUTABLE" ,
904- FieldBehavior :: UnorderedList => "UNORDERED_LIST" ,
905- FieldBehavior :: NonEmptyDefault => "NON_EMPTY_DEFAULT" ,
906- FieldBehavior :: Identifier => "IDENTIFIER" ,
898+ Self :: Unspecified => "FIELD_BEHAVIOR_UNSPECIFIED" ,
899+ Self :: Optional => "OPTIONAL" ,
900+ Self :: Required => "REQUIRED" ,
901+ Self :: OutputOnly => "OUTPUT_ONLY" ,
902+ Self :: InputOnly => "INPUT_ONLY" ,
903+ Self :: Immutable => "IMMUTABLE" ,
904+ Self :: UnorderedList => "UNORDERED_LIST" ,
905+ Self :: NonEmptyDefault => "NON_EMPTY_DEFAULT" ,
906+ Self :: Identifier => "IDENTIFIER" ,
907907 }
908908 }
909909 /// Creates an enum from field names used in the ProtoBuf definition.
@@ -1075,9 +1075,9 @@ pub mod resource_descriptor {
10751075 /// (if the ProtoBuf definition does not change) and safe for programmatic use.
10761076 pub fn as_str_name ( & self ) -> & ' static str {
10771077 match self {
1078- History :: Unspecified => "HISTORY_UNSPECIFIED" ,
1079- History :: OriginallySinglePattern => "ORIGINALLY_SINGLE_PATTERN" ,
1080- History :: FutureMultiPattern => "FUTURE_MULTI_PATTERN" ,
1078+ Self :: Unspecified => "HISTORY_UNSPECIFIED" ,
1079+ Self :: OriginallySinglePattern => "ORIGINALLY_SINGLE_PATTERN" ,
1080+ Self :: FutureMultiPattern => "FUTURE_MULTI_PATTERN" ,
10811081 }
10821082 }
10831083 /// Creates an enum from field names used in the ProtoBuf definition.
@@ -1113,8 +1113,8 @@ pub mod resource_descriptor {
11131113 /// (if the ProtoBuf definition does not change) and safe for programmatic use.
11141114 pub fn as_str_name ( & self ) -> & ' static str {
11151115 match self {
1116- Style :: Unspecified => "STYLE_UNSPECIFIED" ,
1117- Style :: DeclarativeFriendly => "DECLARATIVE_FRIENDLY" ,
1116+ Self :: Unspecified => "STYLE_UNSPECIFIED" ,
1117+ Self :: DeclarativeFriendly => "DECLARATIVE_FRIENDLY" ,
11181118 }
11191119 }
11201120 /// Creates an enum from field names used in the ProtoBuf definition.
@@ -1200,9 +1200,9 @@ pub mod label_descriptor {
12001200 /// (if the ProtoBuf definition does not change) and safe for programmatic use.
12011201 pub fn as_str_name ( & self ) -> & ' static str {
12021202 match self {
1203- ValueType :: String => "STRING" ,
1204- ValueType :: Bool => "BOOL" ,
1205- ValueType :: Int64 => "INT64" ,
1203+ Self :: String => "STRING" ,
1204+ Self :: Bool => "BOOL" ,
1205+ Self :: Int64 => "INT64" ,
12061206 }
12071207 }
12081208 /// Creates an enum from field names used in the ProtoBuf definition.
0 commit comments