@@ -296,6 +296,8 @@ impl ::prost::Name for CppSettings {
296296pub struct PhpSettings {
297297 #[ prost( message, optional, tag = "1" ) ]
298298 pub common : :: core:: option:: Option < CommonLanguageSettings > ,
299+ #[ prost( string, tag = "2" ) ]
300+ pub library_package : :: prost:: alloc:: string:: String ,
299301}
300302impl :: prost:: Name for PhpSettings {
301303 const NAME : & ' static str = "PhpSettings" ;
@@ -439,6 +441,8 @@ pub struct MethodSettings {
439441 pub long_running : :: core:: option:: Option < method_settings:: LongRunning > ,
440442 #[ prost( string, repeated, tag = "3" ) ]
441443 pub auto_populated_fields : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
444+ #[ prost( message, optional, tag = "4" ) ]
445+ pub batching : :: core:: option:: Option < BatchingConfigProto > ,
442446}
443447/// Nested message and enum types in `MethodSettings`.
444448pub mod method_settings {
@@ -491,6 +495,71 @@ impl ::prost::Name for SelectiveGapicGeneration {
491495 "type.googleapis.com/google.api.SelectiveGapicGeneration" . into ( )
492496 }
493497}
498+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
499+ pub struct BatchingConfigProto {
500+ #[ prost( message, optional, tag = "1" ) ]
501+ pub thresholds : :: core:: option:: Option < BatchingSettingsProto > ,
502+ #[ prost( message, optional, tag = "2" ) ]
503+ pub batch_descriptor : :: core:: option:: Option < BatchingDescriptorProto > ,
504+ }
505+ impl :: prost:: Name for BatchingConfigProto {
506+ const NAME : & ' static str = "BatchingConfigProto" ;
507+ const PACKAGE : & ' static str = "google.api" ;
508+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
509+ "google.api.BatchingConfigProto" . into ( )
510+ }
511+ fn type_url ( ) -> :: prost:: alloc:: string:: String {
512+ "type.googleapis.com/google.api.BatchingConfigProto" . into ( )
513+ }
514+ }
515+ #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
516+ pub struct BatchingSettingsProto {
517+ #[ prost( int32, tag = "1" ) ]
518+ pub element_count_threshold : i32 ,
519+ #[ prost( int64, tag = "2" ) ]
520+ pub request_byte_threshold : i64 ,
521+ #[ prost( message, optional, tag = "3" ) ]
522+ pub delay_threshold : :: core:: option:: Option < :: prost_types:: Duration > ,
523+ #[ prost( int32, tag = "4" ) ]
524+ pub element_count_limit : i32 ,
525+ #[ prost( int32, tag = "5" ) ]
526+ pub request_byte_limit : i32 ,
527+ #[ prost( int32, tag = "6" ) ]
528+ pub flow_control_element_limit : i32 ,
529+ #[ prost( int32, tag = "7" ) ]
530+ pub flow_control_byte_limit : i32 ,
531+ #[ prost( enumeration = "FlowControlLimitExceededBehaviorProto" , tag = "8" ) ]
532+ pub flow_control_limit_exceeded_behavior : i32 ,
533+ }
534+ impl :: prost:: Name for BatchingSettingsProto {
535+ const NAME : & ' static str = "BatchingSettingsProto" ;
536+ const PACKAGE : & ' static str = "google.api" ;
537+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
538+ "google.api.BatchingSettingsProto" . into ( )
539+ }
540+ fn type_url ( ) -> :: prost:: alloc:: string:: String {
541+ "type.googleapis.com/google.api.BatchingSettingsProto" . into ( )
542+ }
543+ }
544+ #[ derive( Clone , PartialEq , :: prost:: Message ) ]
545+ pub struct BatchingDescriptorProto {
546+ #[ prost( string, tag = "1" ) ]
547+ pub batched_field : :: prost:: alloc:: string:: String ,
548+ #[ prost( string, repeated, tag = "2" ) ]
549+ pub discriminator_fields : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: string:: String > ,
550+ #[ prost( string, tag = "3" ) ]
551+ pub subresponse_field : :: prost:: alloc:: string:: String ,
552+ }
553+ impl :: prost:: Name for BatchingDescriptorProto {
554+ const NAME : & ' static str = "BatchingDescriptorProto" ;
555+ const PACKAGE : & ' static str = "google.api" ;
556+ fn full_name ( ) -> :: prost:: alloc:: string:: String {
557+ "google.api.BatchingDescriptorProto" . into ( )
558+ }
559+ fn type_url ( ) -> :: prost:: alloc:: string:: String {
560+ "type.googleapis.com/google.api.BatchingDescriptorProto" . into ( )
561+ }
562+ }
494563#[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
495564#[ repr( i32 ) ]
496565pub enum ClientLibraryOrganization {
@@ -564,6 +633,38 @@ impl ClientLibraryDestination {
564633 }
565634 }
566635}
636+ #[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
637+ #[ repr( i32 ) ]
638+ pub enum FlowControlLimitExceededBehaviorProto {
639+ UnsetBehavior = 0 ,
640+ ThrowException = 1 ,
641+ Block = 2 ,
642+ Ignore = 3 ,
643+ }
644+ impl FlowControlLimitExceededBehaviorProto {
645+ /// String value of the enum field names used in the ProtoBuf definition.
646+ ///
647+ /// The values are not transformed in any way and thus are considered stable
648+ /// (if the ProtoBuf definition does not change) and safe for programmatic use.
649+ pub fn as_str_name ( & self ) -> & ' static str {
650+ match self {
651+ Self :: UnsetBehavior => "UNSET_BEHAVIOR" ,
652+ Self :: ThrowException => "THROW_EXCEPTION" ,
653+ Self :: Block => "BLOCK" ,
654+ Self :: Ignore => "IGNORE" ,
655+ }
656+ }
657+ /// Creates an enum from field names used in the ProtoBuf definition.
658+ pub fn from_str_name ( value : & str ) -> :: core:: option:: Option < Self > {
659+ match value {
660+ "UNSET_BEHAVIOR" => Some ( Self :: UnsetBehavior ) ,
661+ "THROW_EXCEPTION" => Some ( Self :: ThrowException ) ,
662+ "BLOCK" => Some ( Self :: Block ) ,
663+ "IGNORE" => Some ( Self :: Ignore ) ,
664+ _ => None ,
665+ }
666+ }
667+ }
567668#[ derive( Clone , PartialEq , :: prost:: Message ) ]
568669pub struct RoutingRule {
569670 #[ prost( message, repeated, tag = "2" ) ]
0 commit comments