@@ -102,93 +102,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
102102 return  this .unknownFields ;
103103 }
104104
105-  private  AppEngineHttpRequest (
106-  com .google .protobuf .CodedInputStream  input ,
107-  com .google .protobuf .ExtensionRegistryLite  extensionRegistry )
108-  throws  com .google .protobuf .InvalidProtocolBufferException  {
109-  this ();
110-  if  (extensionRegistry  == null ) {
111-  throw  new  java .lang .NullPointerException ();
112-  }
113-  int  mutable_bitField0_  = 0 ;
114-  com .google .protobuf .UnknownFieldSet .Builder  unknownFields  =
115-  com .google .protobuf .UnknownFieldSet .newBuilder ();
116-  try  {
117-  boolean  done  = false ;
118-  while  (!done ) {
119-  int  tag  = input .readTag ();
120-  switch  (tag ) {
121-  case  0 :
122-  done  = true ;
123-  break ;
124-  case  8 :
125-  {
126-  int  rawValue  = input .readEnum ();
127- 
128-  httpMethod_  = rawValue ;
129-  break ;
130-  }
131-  case  18 :
132-  {
133-  com .google .cloud .tasks .v2 .AppEngineRouting .Builder  subBuilder  = null ;
134-  if  (appEngineRouting_  != null ) {
135-  subBuilder  = appEngineRouting_ .toBuilder ();
136-  }
137-  appEngineRouting_  =
138-  input .readMessage (
139-  com .google .cloud .tasks .v2 .AppEngineRouting .parser (), extensionRegistry );
140-  if  (subBuilder  != null ) {
141-  subBuilder .mergeFrom (appEngineRouting_ );
142-  appEngineRouting_  = subBuilder .buildPartial ();
143-  }
144- 
145-  break ;
146-  }
147-  case  26 :
148-  {
149-  java .lang .String  s  = input .readStringRequireUtf8 ();
150- 
151-  relativeUri_  = s ;
152-  break ;
153-  }
154-  case  34 :
155-  {
156-  if  (!((mutable_bitField0_  & 0x00000001 ) != 0 )) {
157-  headers_  =
158-  com .google .protobuf .MapField .newMapField (
159-  HeadersDefaultEntryHolder .defaultEntry );
160-  mutable_bitField0_  |= 0x00000001 ;
161-  }
162-  com .google .protobuf .MapEntry <java .lang .String , java .lang .String > headers__  =
163-  input .readMessage (
164-  HeadersDefaultEntryHolder .defaultEntry .getParserForType (), extensionRegistry );
165-  headers_ .getMutableMap ().put (headers__ .getKey (), headers__ .getValue ());
166-  break ;
167-  }
168-  case  42 :
169-  {
170-  body_  = input .readBytes ();
171-  break ;
172-  }
173-  default :
174-  {
175-  if  (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
176-  done  = true ;
177-  }
178-  break ;
179-  }
180-  }
181-  }
182-  } catch  (com .google .protobuf .InvalidProtocolBufferException  e ) {
183-  throw  e .setUnfinishedMessage (this );
184-  } catch  (java .io .IOException  e ) {
185-  throw  new  com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
186-  } finally  {
187-  this .unknownFields  = unknownFields .build ();
188-  makeExtensionsImmutable ();
189-  }
190-  }
191- 
192105 public  static  final  com .google .protobuf .Descriptors .Descriptor  getDescriptor () {
193106 return  com .google .cloud .tasks .v2 .TargetProto 
194107 .internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_descriptor ;
@@ -455,7 +368,7 @@ public int getHeadersCount() {
455368 @ java .lang .Override 
456369 public  boolean  containsHeaders (java .lang .String  key ) {
457370 if  (key  == null ) {
458-  throw  new  java . lang . NullPointerException ();
371+  throw  new  NullPointerException ("map key" );
459372 }
460373 return  internalGetHeaders ().getMap ().containsKey (key );
461374 }
@@ -554,7 +467,7 @@ public java.util.Map<java.lang.String, java.lang.String> getHeadersMap() {
554467 @ java .lang .Override 
555468 public  java .lang .String  getHeadersOrDefault (java .lang .String  key , java .lang .String  defaultValue ) {
556469 if  (key  == null ) {
557-  throw  new  java . lang . NullPointerException ();
470+  throw  new  NullPointerException ("map key" );
558471 }
559472 java .util .Map <java .lang .String , java .lang .String > map  = internalGetHeaders ().getMap ();
560473 return  map .containsKey (key ) ? map .get (key ) : defaultValue ;
@@ -603,7 +516,7 @@ public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.Stri
603516 @ java .lang .Override 
604517 public  java .lang .String  getHeadersOrThrow (java .lang .String  key ) {
605518 if  (key  == null ) {
606-  throw  new  java . lang . NullPointerException ();
519+  throw  new  NullPointerException ("map key" );
607520 }
608521 java .util .Map <java .lang .String , java .lang .String > map  = internalGetHeaders ().getMap ();
609522 if  (!map .containsKey (key )) {
@@ -660,7 +573,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
660573 if  (!body_ .isEmpty ()) {
661574 output .writeBytes (5 , body_ );
662575 }
663-  unknownFields .writeTo (output );
576+  getUnknownFields () .writeTo (output );
664577 }
665578
666579 @ java .lang .Override 
@@ -691,7 +604,7 @@ public int getSerializedSize() {
691604 if  (!body_ .isEmpty ()) {
692605 size  += com .google .protobuf .CodedOutputStream .computeBytesSize (5 , body_ );
693606 }
694-  size  += unknownFields .getSerializedSize ();
607+  size  += getUnknownFields () .getSerializedSize ();
695608 memoizedSize  = size ;
696609 return  size ;
697610 }
@@ -715,7 +628,7 @@ public boolean equals(final java.lang.Object obj) {
715628 if  (!getRelativeUri ().equals (other .getRelativeUri ())) return  false ;
716629 if  (!internalGetHeaders ().equals (other .internalGetHeaders ())) return  false ;
717630 if  (!getBody ().equals (other .getBody ())) return  false ;
718-  if  (!unknownFields .equals (other .unknownFields )) return  false ;
631+  if  (!getUnknownFields () .equals (other .getUnknownFields () )) return  false ;
719632 return  true ;
720633 }
721634
@@ -740,7 +653,7 @@ public int hashCode() {
740653 }
741654 hash  = (37  * hash ) + BODY_FIELD_NUMBER ;
742655 hash  = (53  * hash ) + getBody ().hashCode ();
743-  hash  = (29  * hash ) + unknownFields .hashCode ();
656+  hash  = (29  * hash ) + getUnknownFields () .hashCode ();
744657 memoizedHashCode  = hash ;
745658 return  hash ;
746659 }
@@ -937,17 +850,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
937850 }
938851
939852 // Construct using com.google.cloud.tasks.v2.AppEngineHttpRequest.newBuilder() 
940-  private  Builder () {
941-  maybeForceBuilderInitialization ();
942-  }
853+  private  Builder () {}
943854
944855 private  Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent  parent ) {
945856 super (parent );
946-  maybeForceBuilderInitialization ();
947-  }
948- 
949-  private  void  maybeForceBuilderInitialization () {
950-  if  (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
951857 }
952858
953859 @ java .lang .Override 
@@ -1067,7 +973,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.AppEngineHttpRequest other) {
1067973 if  (other .getBody () != com .google .protobuf .ByteString .EMPTY ) {
1068974 setBody (other .getBody ());
1069975 }
1070-  this .mergeUnknownFields (other .unknownFields );
976+  this .mergeUnknownFields (other .getUnknownFields () );
1071977 onChanged ();
1072978 return  this ;
1073979 }
@@ -1082,17 +988,67 @@ public Builder mergeFrom(
1082988 com .google .protobuf .CodedInputStream  input ,
1083989 com .google .protobuf .ExtensionRegistryLite  extensionRegistry )
1084990 throws  java .io .IOException  {
1085-  com .google .cloud .tasks .v2 .AppEngineHttpRequest  parsedMessage  = null ;
991+  if  (extensionRegistry  == null ) {
992+  throw  new  java .lang .NullPointerException ();
993+  }
1086994 try  {
1087-  parsedMessage  = PARSER .parsePartialFrom (input , extensionRegistry );
995+  boolean  done  = false ;
996+  while  (!done ) {
997+  int  tag  = input .readTag ();
998+  switch  (tag ) {
999+  case  0 :
1000+  done  = true ;
1001+  break ;
1002+  case  8 :
1003+  {
1004+  httpMethod_  = input .readEnum ();
1005+ 
1006+  break ;
1007+  } // case 8 
1008+  case  18 :
1009+  {
1010+  input .readMessage (
1011+  getAppEngineRoutingFieldBuilder ().getBuilder (), extensionRegistry );
1012+ 
1013+  break ;
1014+  } // case 18 
1015+  case  26 :
1016+  {
1017+  relativeUri_  = input .readStringRequireUtf8 ();
1018+ 
1019+  break ;
1020+  } // case 26 
1021+  case  34 :
1022+  {
1023+  com .google .protobuf .MapEntry <java .lang .String , java .lang .String > headers__  =
1024+  input .readMessage (
1025+  HeadersDefaultEntryHolder .defaultEntry .getParserForType (),
1026+  extensionRegistry );
1027+  internalGetMutableHeaders ()
1028+  .getMutableMap ()
1029+  .put (headers__ .getKey (), headers__ .getValue ());
1030+  break ;
1031+  } // case 34 
1032+  case  42 :
1033+  {
1034+  body_  = input .readBytes ();
1035+ 
1036+  break ;
1037+  } // case 42 
1038+  default :
1039+  {
1040+  if  (!super .parseUnknownField (input , extensionRegistry , tag )) {
1041+  done  = true ; // was an endgroup tag 
1042+  }
1043+  break ;
1044+  } // default: 
1045+  } // switch (tag) 
1046+  } // while (!done) 
10881047 } catch  (com .google .protobuf .InvalidProtocolBufferException  e ) {
1089-  parsedMessage  = (com .google .cloud .tasks .v2 .AppEngineHttpRequest ) e .getUnfinishedMessage ();
10901048 throw  e .unwrapIOException ();
10911049 } finally  {
1092-  if  (parsedMessage  != null ) {
1093-  mergeFrom (parsedMessage );
1094-  }
1095-  }
1050+  onChanged ();
1051+  } // finally 
10961052 return  this ;
10971053 }
10981054
@@ -1651,7 +1607,7 @@ public int getHeadersCount() {
16511607 @ java .lang .Override 
16521608 public  boolean  containsHeaders (java .lang .String  key ) {
16531609 if  (key  == null ) {
1654-  throw  new  java . lang . NullPointerException ();
1610+  throw  new  NullPointerException ("map key" );
16551611 }
16561612 return  internalGetHeaders ().getMap ().containsKey (key );
16571613 }
@@ -1751,7 +1707,7 @@ public java.util.Map<java.lang.String, java.lang.String> getHeadersMap() {
17511707 public  java .lang .String  getHeadersOrDefault (
17521708 java .lang .String  key , java .lang .String  defaultValue ) {
17531709 if  (key  == null ) {
1754-  throw  new  java . lang . NullPointerException ();
1710+  throw  new  NullPointerException ("map key" );
17551711 }
17561712 java .util .Map <java .lang .String , java .lang .String > map  = internalGetHeaders ().getMap ();
17571713 return  map .containsKey (key ) ? map .get (key ) : defaultValue ;
@@ -1800,7 +1756,7 @@ public java.lang.String getHeadersOrDefault(
18001756 @ java .lang .Override 
18011757 public  java .lang .String  getHeadersOrThrow (java .lang .String  key ) {
18021758 if  (key  == null ) {
1803-  throw  new  java . lang . NullPointerException ();
1759+  throw  new  NullPointerException ("map key" );
18041760 }
18051761 java .util .Map <java .lang .String , java .lang .String > map  = internalGetHeaders ().getMap ();
18061762 if  (!map .containsKey (key )) {
@@ -1856,7 +1812,7 @@ public Builder clearHeaders() {
18561812 */ 
18571813 public  Builder  removeHeaders (java .lang .String  key ) {
18581814 if  (key  == null ) {
1859-  throw  new  java . lang . NullPointerException ();
1815+  throw  new  NullPointerException ("map key" );
18601816 }
18611817 internalGetMutableHeaders ().getMutableMap ().remove (key );
18621818 return  this ;
@@ -1909,11 +1865,12 @@ public java.util.Map<java.lang.String, java.lang.String> getMutableHeaders() {
19091865 */ 
19101866 public  Builder  putHeaders (java .lang .String  key , java .lang .String  value ) {
19111867 if  (key  == null ) {
1912-  throw  new  java . lang . NullPointerException ();
1868+  throw  new  NullPointerException ("map key" );
19131869 }
19141870 if  (value  == null ) {
1915-  throw  new  java . lang . NullPointerException ();
1871+  throw  new  NullPointerException ("map value" );
19161872 }
1873+ 
19171874 internalGetMutableHeaders ().getMutableMap ().put (key , value );
19181875 return  this ;
19191876 }
@@ -2056,7 +2013,18 @@ public AppEngineHttpRequest parsePartialFrom(
20562013 com .google .protobuf .CodedInputStream  input ,
20572014 com .google .protobuf .ExtensionRegistryLite  extensionRegistry )
20582015 throws  com .google .protobuf .InvalidProtocolBufferException  {
2059-  return  new  AppEngineHttpRequest (input , extensionRegistry );
2016+  Builder  builder  = newBuilder ();
2017+  try  {
2018+  builder .mergeFrom (input , extensionRegistry );
2019+  } catch  (com .google .protobuf .InvalidProtocolBufferException  e ) {
2020+  throw  e .setUnfinishedMessage (builder .buildPartial ());
2021+  } catch  (com .google .protobuf .UninitializedMessageException  e ) {
2022+  throw  e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
2023+  } catch  (java .io .IOException  e ) {
2024+  throw  new  com .google .protobuf .InvalidProtocolBufferException (e )
2025+  .setUnfinishedMessage (builder .buildPartial ());
2026+  }
2027+  return  builder .buildPartial ();
20602028 }
20612029 };
20622030
0 commit comments