@@ -408,14 +408,14 @@ impl LaunchStage {
408
408
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
409
409
pub fn as_str_name ( & self ) -> & ' static str {
410
410
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" ,
419
419
}
420
420
}
421
421
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -772,14 +772,14 @@ impl ClientLibraryOrganization {
772
772
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
773
773
pub fn as_str_name ( & self ) -> & ' static str {
774
774
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" ,
783
783
}
784
784
}
785
785
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -817,9 +817,9 @@ impl ClientLibraryDestination {
817
817
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
818
818
pub fn as_str_name ( & self ) -> & ' static str {
819
819
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" ,
823
823
}
824
824
}
825
825
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -895,15 +895,15 @@ impl FieldBehavior {
895
895
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
896
896
pub fn as_str_name ( & self ) -> & ' static str {
897
897
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" ,
907
907
}
908
908
}
909
909
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -1075,9 +1075,9 @@ pub mod resource_descriptor {
1075
1075
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
1076
1076
pub fn as_str_name ( & self ) -> & ' static str {
1077
1077
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" ,
1081
1081
}
1082
1082
}
1083
1083
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -1113,8 +1113,8 @@ pub mod resource_descriptor {
1113
1113
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
1114
1114
pub fn as_str_name ( & self ) -> & ' static str {
1115
1115
match self {
1116
- Style :: Unspecified => "STYLE_UNSPECIFIED" ,
1117
- Style :: DeclarativeFriendly => "DECLARATIVE_FRIENDLY" ,
1116
+ Self :: Unspecified => "STYLE_UNSPECIFIED" ,
1117
+ Self :: DeclarativeFriendly => "DECLARATIVE_FRIENDLY" ,
1118
1118
}
1119
1119
}
1120
1120
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -1200,9 +1200,9 @@ pub mod label_descriptor {
1200
1200
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
1201
1201
pub fn as_str_name ( & self ) -> & ' static str {
1202
1202
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" ,
1206
1206
}
1207
1207
}
1208
1208
/// Creates an enum from field names used in the ProtoBuf definition.
0 commit comments