@@ -25,32 +25,32 @@ static GapicMetadataReflection() {
2525 byte [ ] descriptorData = global ::System . Convert . FromBase64String (
2626 string . Concat (
2727 "ChRnYXBpY19tZXRhZGF0YS5wcm90bxIVZ29vZ2xlLmdhcGljLm1ldGFkYXRh" ,
28- "IvAFCg1HYXBpY01ldGFkYXRhEg4KBnNjaGVtYRgBIAEoCRIPCgdjb21tZW50 " ,
28+ "IoUGCg1HYXBpY01ldGFkYXRhEg4KBnNjaGVtYRgBIAEoCRIPCgdjb21tZW50 " ,
2929 "GAIgASgJEhAKCGxhbmd1YWdlGAMgASgJEhUKDXByb3RvX3BhY2thZ2UYBCAB" ,
3030 "KAkSFwoPbGlicmFyeV9wYWNrYWdlGAUgASgJEkQKCHNlcnZpY2VzGAYgAygL" ,
3131 "MjIuZ29vZ2xlLmdhcGljLm1ldGFkYXRhLkdhcGljTWV0YWRhdGEuU2Vydmlj" ,
3232 "ZXNFbnRyeRppCg1TZXJ2aWNlc0VudHJ5EgsKA2tleRgBIAEoCRJHCgV2YWx1" ,
3333 "ZRgCIAEoCzI4Lmdvb2dsZS5nYXBpYy5tZXRhZGF0YS5HYXBpY01ldGFkYXRh" ,
34- "LlNlcnZpY2VGb3JUcmFuc3BvcnQ6AjgBGtMBChNTZXJ2aWNlRm9yVHJhbnNw " ,
34+ "LlNlcnZpY2VGb3JUcmFuc3BvcnQ6AjgBGugBChNTZXJ2aWNlRm9yVHJhbnNw " ,
3535 "b3J0ElYKB2NsaWVudHMYASADKAsyRS5nb29nbGUuZ2FwaWMubWV0YWRhdGEu" ,
3636 "R2FwaWNNZXRhZGF0YS5TZXJ2aWNlRm9yVHJhbnNwb3J0LkNsaWVudHNFbnRy" ,
37- "eRpkCgxDbGllbnRzRW50cnkSCwoDa2V5GAEgASgJEkMKBXZhbHVlGAIgASgL " ,
38- "MjQuZ29vZ2xlLmdhcGljLm1ldGFkYXRhLkdhcGljTWV0YWRhdGEuU2Vydmlj " ,
39- "ZUFzQ2xpZW50OgI4ARrV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ILCgNrZXkYASAB " ,
43+ "KAkSPgoFdmFsdWUYAiABKAsyLy5nb29nbGUuZ2FwaWMubWV0YWRhdGEuR2Fw " ,
44+ "aWNNZXRhZGF0YS5NZXRob2RMaXN0OgI4ARodCgpNZXRob2RMaXN0Eg8KB21l " ,
45+ "dGhvZHMYASADKAlCugEKGWNvbS5nb29nbGUuZ2FwaWMubWV0YWRhdGFCEkdh " ,
46+ "cGljTWV0YWRhdGFQcm90b1ABWj1nb29nbGUuZ29sYW5nLm9yZy9nZW5wcm90 " ,
47+ "by9nb29nbGVhcGlzL2dhcGljL21ldGFkYXRhO21ldGFkYXRhqgIVR29vZ2xl " ,
48+ "LkdhcGljLk1ldGFkYXRhygIVR29vZ2xlXEdhcGljXE1ldGFkYXRh6gIXR29v " ,
49+ "Z2xlOjpHYXBpYzo6TWV0YWRhdGFiBnByb3RvMw ==" ) ) ;
5050 descriptor = pbr ::FileDescriptor . FromGeneratedCode ( descriptorData ,
5151 new pbr ::FileDescriptor [ ] { } ,
5252 new pbr ::GeneratedClrTypeInfo ( null , null , new pbr ::GeneratedClrTypeInfo [ ] {
53- new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Google . Gapic . Metadata . GapicMetadata ) , global ::Google . Gapic . Metadata . GapicMetadata . Parser , new [ ] { "Schema" , "Comment" , "Language" , "ProtoPackage" , "LibraryPackage" , "Services" } , null , null , null , new pbr ::GeneratedClrTypeInfo [ ] { null , new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Google . Gapic . Metadata . GapicMetadata . Types . ServiceForTransport ) , global ::Google . Gapic . Metadata . GapicMetadata . Types . ServiceForTransport . Parser , new [ ] { "Clients" } , null , null , null , new pbr ::GeneratedClrTypeInfo [ ] { null , } ) ,
53+ new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Google . Gapic . Metadata . GapicMetadata ) , global ::Google . Gapic . Metadata . GapicMetadata . Parser , new [ ] { "Schema" , "Comment" , "Language" , "ProtoPackage" , "LibraryPackage" , "Services" } , null , null , null , new pbr ::GeneratedClrTypeInfo [ ] { null , new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Google . Gapic . Metadata . GapicMetadata . Types . ServiceForTransport ) , global ::Google . Gapic . Metadata . GapicMetadata . Types . ServiceForTransport . Parser , new [ ] { "Clients" , "ApiVersion" } , null , null , null , new pbr ::GeneratedClrTypeInfo [ ] { null , } ) ,
5454 new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Google . Gapic . Metadata . GapicMetadata . Types . ServiceAsClient ) , global ::Google . Gapic . Metadata . GapicMetadata . Types . ServiceAsClient . Parser , new [ ] { "LibraryClient" , "Rpcs" } , null , null , null , new pbr ::GeneratedClrTypeInfo [ ] { null , } ) ,
5555 new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Google . Gapic . Metadata . GapicMetadata . Types . MethodList ) , global ::Google . Gapic . Metadata . GapicMetadata . Types . MethodList . Parser , new [ ] { "Methods" } , null , null , null , null ) } )
5656 } ) ) ;
@@ -60,9 +60,10 @@ static GapicMetadataReflection() {
6060 }
6161 #region Messages
6262 /// <summary>
63- /// Metadata about a GAPIC library for a specific combination of API, version, and
64- /// computer language.
63+ /// Metadata about a GAPIC library service for a specific combination of API,
64+ /// version, and computer language.
6565 /// </summary>
66+ [ global ::System . Diagnostics . DebuggerDisplayAttribute ( "{ToString(),nq}" ) ]
6667 public sealed partial class GapicMetadata : pb ::IMessage < GapicMetadata >
6768 #if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
6869 , pb ::IBufferMessage
@@ -378,7 +379,11 @@ public void MergeFrom(pb::CodedInputStream input) {
378379 #else
379380 uint tag ;
380381 while ( ( tag = input . ReadTag ( ) ) != 0 ) {
381- switch ( tag ) {
382+ if ( ( tag & 7 ) == 4 ) {
383+ // Abort on any end group tag.
384+ return ;
385+ }
386+ switch ( tag ) {
382387 default :
383388 _unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , input ) ;
384389 break ;
@@ -417,7 +422,11 @@ public void MergeFrom(pb::CodedInputStream input) {
417422 void pb ::IBufferMessage . InternalMergeFrom ( ref pb ::ParseContext input ) {
418423 uint tag ;
419424 while ( ( tag = input . ReadTag ( ) ) != 0 ) {
420- switch ( tag ) {
425+ if ( ( tag & 7 ) == 4 ) {
426+ // Abort on any end group tag.
427+ return ;
428+ }
429+ switch ( tag ) {
421430 default :
422431 _unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , ref input ) ;
423432 break ;
@@ -459,10 +468,8 @@ public static partial class Types {
459468 /// A map from a transport name to ServiceAsClient, which allows
460469 /// listing information about the client objects that implement the
461470 /// parent RPC service for the specified transport.
462- ///
463- /// The key name is the transport, lower-cased with no separators
464- /// (e.g. "grpc", "rest").
465471 /// </summary>
472+ [ global ::System . Diagnostics . DebuggerDisplayAttribute ( "{ToString(),nq}" ) ]
466473 public sealed partial class ServiceForTransport : pb ::IMessage < ServiceForTransport >
467474 #if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
468475 , pb ::IBufferMessage
@@ -498,6 +505,7 @@ public ServiceForTransport() {
498505 [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
499506 public ServiceForTransport ( ServiceForTransport other ) : this ( ) {
500507 clients_ = other . clients_ . Clone ( ) ;
508+ apiVersion_ = other . apiVersion_ ;
501509 _unknownFields = pb ::UnknownFieldSet . Clone ( other . _unknownFields ) ;
502510 }
503511
@@ -512,12 +520,36 @@ public ServiceForTransport Clone() {
512520 private static readonly pbc ::MapField < string , global ::Google . Gapic . Metadata . GapicMetadata . Types . ServiceAsClient > . Codec _map_clients_codec
513521 = new pbc ::MapField < string , global ::Google . Gapic . Metadata . GapicMetadata . Types . ServiceAsClient > . Codec ( pb ::FieldCodec . ForString ( 10 , "" ) , pb ::FieldCodec . ForMessage ( 18 , global ::Google . Gapic . Metadata . GapicMetadata . Types . ServiceAsClient . Parser ) , 10 ) ;
514522 private readonly pbc ::MapField < string , global ::Google . Gapic . Metadata . GapicMetadata . Types . ServiceAsClient > clients_ = new pbc ::MapField < string , global ::Google . Gapic . Metadata . GapicMetadata . Types . ServiceAsClient > ( ) ;
523+ /// <summary>
524+ /// Map of transport name to ServiceAsClient. The key name is the transport,
525+ /// lower-cased with no separators (e.g. "grpc", "rest").
526+ /// </summary>
515527 [ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
516528 [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
517529 public pbc ::MapField < string , global ::Google . Gapic . Metadata . GapicMetadata . Types . ServiceAsClient > Clients {
518530 get { return clients_ ; }
519531 }
520532
533+ /// <summary>Field number for the "api_version" field.</summary>
534+ public const int ApiVersionFieldNumber = 2 ;
535+ private string apiVersion_ = "" ;
536+ /// <summary>
537+ /// The API version for the interface definition found in the
538+ /// `google.api.api_version` annotation of this proto-defined service during
539+ /// code generation.
540+ /// This is the value populated by the client in the API version request
541+ /// parameter as per
542+ /// [AIP-4236](https://google.aip.dev/client-libraries/4236).
543+ /// </summary>
544+ [ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
545+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
546+ public string ApiVersion {
547+ get { return apiVersion_ ; }
548+ set {
549+ apiVersion_ = pb ::ProtoPreconditions . CheckNotNull ( value , "value" ) ;
550+ }
551+ }
552+
521553 [ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
522554 [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
523555 public override bool Equals ( object other ) {
@@ -534,6 +566,7 @@ public bool Equals(ServiceForTransport other) {
534566 return true ;
535567 }
536568 if ( ! Clients . Equals ( other . Clients ) ) return false ;
569+ if ( ApiVersion != other . ApiVersion ) return false ;
537570 return Equals ( _unknownFields , other . _unknownFields ) ;
538571 }
539572
@@ -542,6 +575,7 @@ public bool Equals(ServiceForTransport other) {
542575 public override int GetHashCode ( ) {
543576 int hash = 1 ;
544577 hash ^= Clients . GetHashCode ( ) ;
578+ if ( ApiVersion . Length != 0 ) hash ^= ApiVersion . GetHashCode ( ) ;
545579 if ( _unknownFields != null ) {
546580 hash ^= _unknownFields . GetHashCode ( ) ;
547581 }
@@ -561,6 +595,10 @@ public void WriteTo(pb::CodedOutputStream output) {
561595 output . WriteRawMessage ( this ) ;
562596 #else
563597 clients_ . WriteTo ( output , _map_clients_codec ) ;
598+ if ( ApiVersion . Length != 0 ) {
599+ output . WriteRawTag ( 18 ) ;
600+ output . WriteString ( ApiVersion ) ;
601+ }
564602 if ( _unknownFields != null ) {
565603 _unknownFields . WriteTo ( output ) ;
566604 }
@@ -572,6 +610,10 @@ public void WriteTo(pb::CodedOutputStream output) {
572610 [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
573611 void pb ::IBufferMessage . InternalWriteTo ( ref pb ::WriteContext output ) {
574612 clients_ . WriteTo ( ref output , _map_clients_codec ) ;
613+ if ( ApiVersion . Length != 0 ) {
614+ output . WriteRawTag ( 18 ) ;
615+ output . WriteString ( ApiVersion ) ;
616+ }
575617 if ( _unknownFields != null ) {
576618 _unknownFields . WriteTo ( ref output ) ;
577619 }
@@ -583,6 +625,9 @@ public void WriteTo(pb::CodedOutputStream output) {
583625 public int CalculateSize ( ) {
584626 int size = 0 ;
585627 size += clients_ . CalculateSize ( _map_clients_codec ) ;
628+ if ( ApiVersion . Length != 0 ) {
629+ size += 1 + pb ::CodedOutputStream . ComputeStringSize ( ApiVersion ) ;
630+ }
586631 if ( _unknownFields != null ) {
587632 size += _unknownFields . CalculateSize ( ) ;
588633 }
@@ -596,6 +641,9 @@ public void MergeFrom(ServiceForTransport other) {
596641 return ;
597642 }
598643 clients_ . MergeFrom ( other . clients_ ) ;
644+ if ( other . ApiVersion . Length != 0 ) {
645+ ApiVersion = other . ApiVersion ;
646+ }
599647 _unknownFields = pb ::UnknownFieldSet . MergeFrom ( _unknownFields , other . _unknownFields ) ;
600648 }
601649
@@ -607,14 +655,22 @@ public void MergeFrom(pb::CodedInputStream input) {
607655 #else
608656 uint tag ;
609657 while ( ( tag = input . ReadTag ( ) ) != 0 ) {
610- switch ( tag ) {
658+ if ( ( tag & 7 ) == 4 ) {
659+ // Abort on any end group tag.
660+ return ;
661+ }
662+ switch ( tag ) {
611663 default :
612664 _unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , input ) ;
613665 break ;
614666 case 10 : {
615667 clients_ . AddEntriesFrom ( input , _map_clients_codec ) ;
616668 break ;
617669 }
670+ case 18 : {
671+ ApiVersion = input . ReadString ( ) ;
672+ break ;
673+ }
618674 }
619675 }
620676 #endif
@@ -626,14 +682,22 @@ public void MergeFrom(pb::CodedInputStream input) {
626682 void pb ::IBufferMessage . InternalMergeFrom ( ref pb ::ParseContext input ) {
627683 uint tag ;
628684 while ( ( tag = input . ReadTag ( ) ) != 0 ) {
629- switch ( tag ) {
685+ if ( ( tag & 7 ) == 4 ) {
686+ // Abort on any end group tag.
687+ return ;
688+ }
689+ switch ( tag ) {
630690 default :
631691 _unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , ref input ) ;
632692 break ;
633693 case 10 : {
634694 clients_ . AddEntriesFrom ( ref input , _map_clients_codec ) ;
635695 break ;
636696 }
697+ case 18 : {
698+ ApiVersion = input . ReadString ( ) ;
699+ break ;
700+ }
637701 }
638702 }
639703 }
@@ -644,6 +708,7 @@ public void MergeFrom(pb::CodedInputStream input) {
644708 /// <summary>
645709 /// Information about a specific client implementing a proto-defined service.
646710 /// </summary>
711+ [ global ::System . Diagnostics . DebuggerDisplayAttribute ( "{ToString(),nq}" ) ]
647712 public sealed partial class ServiceAsClient : pb ::IMessage < ServiceAsClient >
648713 #if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
649714 , pb ::IBufferMessage
@@ -715,7 +780,7 @@ public string LibraryClient {
715780 /// than one library_client method for each RPC. RPCs with no
716781 /// library_client methods need not be included.
717782 ///
718- /// The key name is the name of the RPC as defined and formated in
783+ /// The key name is the name of the RPC as defined and formatted in
719784 /// the proto file.
720785 /// </summary>
721786 [ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
@@ -829,7 +894,11 @@ public void MergeFrom(pb::CodedInputStream input) {
829894 #else
830895 uint tag ;
831896 while ( ( tag = input . ReadTag ( ) ) != 0 ) {
832- switch ( tag ) {
897+ if ( ( tag & 7 ) == 4 ) {
898+ // Abort on any end group tag.
899+ return ;
900+ }
901+ switch ( tag ) {
833902 default :
834903 _unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , input ) ;
835904 break ;
@@ -852,7 +921,11 @@ public void MergeFrom(pb::CodedInputStream input) {
852921 void pb ::IBufferMessage . InternalMergeFrom ( ref pb ::ParseContext input ) {
853922 uint tag ;
854923 while ( ( tag = input . ReadTag ( ) ) != 0 ) {
855- switch ( tag ) {
924+ if ( ( tag & 7 ) == 4 ) {
925+ // Abort on any end group tag.
926+ return ;
927+ }
928+ switch ( tag ) {
856929 default :
857930 _unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , ref input ) ;
858931 break ;
@@ -876,6 +949,7 @@ public void MergeFrom(pb::CodedInputStream input) {
876949 /// for the transport and service specified in the containing
877950 /// structures.
878951 /// </summary>
952+ [ global ::System . Diagnostics . DebuggerDisplayAttribute ( "{ToString(),nq}" ) ]
879953 public sealed partial class MethodList : pb ::IMessage < MethodList >
880954 #if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
881955 , pb ::IBufferMessage
@@ -1025,7 +1099,11 @@ public void MergeFrom(pb::CodedInputStream input) {
10251099 #else
10261100 uint tag ;
10271101 while ( ( tag = input . ReadTag ( ) ) != 0 ) {
1028- switch ( tag ) {
1102+ if ( ( tag & 7 ) == 4 ) {
1103+ // Abort on any end group tag.
1104+ return ;
1105+ }
1106+ switch ( tag ) {
10291107 default :
10301108 _unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , input ) ;
10311109 break ;
@@ -1044,7 +1122,11 @@ public void MergeFrom(pb::CodedInputStream input) {
10441122 void pb ::IBufferMessage . InternalMergeFrom ( ref pb ::ParseContext input ) {
10451123 uint tag ;
10461124 while ( ( tag = input . ReadTag ( ) ) != 0 ) {
1047- switch ( tag ) {
1125+ if ( ( tag & 7 ) == 4 ) {
1126+ // Abort on any end group tag.
1127+ return ;
1128+ }
1129+ switch ( tag ) {
10481130 default :
10491131 _unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , ref input ) ;
10501132 break ;
0 commit comments