@@ -62,95 +62,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
62
62
return this .unknownFields ;
63
63
}
64
64
65
- private AppEngineHttpTarget (
66
- com .google .protobuf .CodedInputStream input ,
67
- com .google .protobuf .ExtensionRegistryLite extensionRegistry )
68
- throws com .google .protobuf .InvalidProtocolBufferException {
69
- this ();
70
- if (extensionRegistry == null ) {
71
- throw new java .lang .NullPointerException ();
72
- }
73
- int mutable_bitField0_ = 0 ;
74
- com .google .protobuf .UnknownFieldSet .Builder unknownFields =
75
- com .google .protobuf .UnknownFieldSet .newBuilder ();
76
- try {
77
- boolean done = false ;
78
- while (!done ) {
79
- int tag = input .readTag ();
80
- switch (tag ) {
81
- case 0 :
82
- done = true ;
83
- break ;
84
- case 8 :
85
- {
86
- int rawValue = input .readEnum ();
87
-
88
- httpMethod_ = rawValue ;
89
- break ;
90
- }
91
- case 18 :
92
- {
93
- com .google .cloud .scheduler .v1 .AppEngineRouting .Builder subBuilder = null ;
94
- if (appEngineRouting_ != null ) {
95
- subBuilder = appEngineRouting_ .toBuilder ();
96
- }
97
- appEngineRouting_ =
98
- input .readMessage (
99
- com .google .cloud .scheduler .v1 .AppEngineRouting .parser (), extensionRegistry );
100
- if (subBuilder != null ) {
101
- subBuilder .mergeFrom (appEngineRouting_ );
102
- appEngineRouting_ = subBuilder .buildPartial ();
103
- }
104
-
105
- break ;
106
- }
107
- case 26 :
108
- {
109
- java .lang .String s = input .readStringRequireUtf8 ();
110
-
111
- relativeUri_ = s ;
112
- break ;
113
- }
114
- case 34 :
115
- {
116
- if (!((mutable_bitField0_ & 0x00000001 ) != 0 )) {
117
- headers_ =
118
- com .google .protobuf .MapField .newMapField (
119
- HeadersDefaultEntryHolder .defaultEntry );
120
- mutable_bitField0_ |= 0x00000001 ;
121
- }
122
- com .google .protobuf .MapEntry <java .lang .String , java .lang .String > headers__ =
123
- input .readMessage (
124
- HeadersDefaultEntryHolder .defaultEntry .getParserForType (), extensionRegistry );
125
- headers_ .getMutableMap ().put (headers__ .getKey (), headers__ .getValue ());
126
- break ;
127
- }
128
- case 42 :
129
- {
130
- body_ = input .readBytes ();
131
- break ;
132
- }
133
- default :
134
- {
135
- if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
136
- done = true ;
137
- }
138
- break ;
139
- }
140
- }
141
- }
142
- } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
143
- throw e .setUnfinishedMessage (this );
144
- } catch (com .google .protobuf .UninitializedMessageException e ) {
145
- throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (this );
146
- } catch (java .io .IOException e ) {
147
- throw new com .google .protobuf .InvalidProtocolBufferException (e ).setUnfinishedMessage (this );
148
- } finally {
149
- this .unknownFields = unknownFields .build ();
150
- makeExtensionsImmutable ();
151
- }
152
- }
153
-
154
65
public static final com .google .protobuf .Descriptors .Descriptor getDescriptor () {
155
66
return com .google .cloud .scheduler .v1 .TargetProto
156
67
.internal_static_google_cloud_scheduler_v1_AppEngineHttpTarget_descriptor ;
@@ -560,7 +471,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
560
471
if (!body_ .isEmpty ()) {
561
472
output .writeBytes (5 , body_ );
562
473
}
563
- unknownFields .writeTo (output );
474
+ getUnknownFields () .writeTo (output );
564
475
}
565
476
566
477
@ java .lang .Override
@@ -592,7 +503,7 @@ public int getSerializedSize() {
592
503
if (!body_ .isEmpty ()) {
593
504
size += com .google .protobuf .CodedOutputStream .computeBytesSize (5 , body_ );
594
505
}
595
- size += unknownFields .getSerializedSize ();
506
+ size += getUnknownFields () .getSerializedSize ();
596
507
memoizedSize = size ;
597
508
return size ;
598
509
}
@@ -616,7 +527,7 @@ public boolean equals(final java.lang.Object obj) {
616
527
if (!getRelativeUri ().equals (other .getRelativeUri ())) return false ;
617
528
if (!internalGetHeaders ().equals (other .internalGetHeaders ())) return false ;
618
529
if (!getBody ().equals (other .getBody ())) return false ;
619
- if (!unknownFields .equals (other .unknownFields )) return false ;
530
+ if (!getUnknownFields () .equals (other .getUnknownFields () )) return false ;
620
531
return true ;
621
532
}
622
533
@@ -641,7 +552,7 @@ public int hashCode() {
641
552
}
642
553
hash = (37 * hash ) + BODY_FIELD_NUMBER ;
643
554
hash = (53 * hash ) + getBody ().hashCode ();
644
- hash = (29 * hash ) + unknownFields .hashCode ();
555
+ hash = (29 * hash ) + getUnknownFields () .hashCode ();
645
556
memoizedHashCode = hash ;
646
557
return hash ;
647
558
}
@@ -798,17 +709,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
798
709
}
799
710
800
711
// Construct using com.google.cloud.scheduler.v1.AppEngineHttpTarget.newBuilder()
801
- private Builder () {
802
- maybeForceBuilderInitialization ();
803
- }
712
+ private Builder () {}
804
713
805
714
private Builder (com .google .protobuf .GeneratedMessageV3 .BuilderParent parent ) {
806
715
super (parent );
807
- maybeForceBuilderInitialization ();
808
- }
809
-
810
- private void maybeForceBuilderInitialization () {
811
- if (com .google .protobuf .GeneratedMessageV3 .alwaysUseFieldBuilders ) {}
812
716
}
813
717
814
718
@ java .lang .Override
@@ -929,7 +833,7 @@ public Builder mergeFrom(com.google.cloud.scheduler.v1.AppEngineHttpTarget other
929
833
if (other .getBody () != com .google .protobuf .ByteString .EMPTY ) {
930
834
setBody (other .getBody ());
931
835
}
932
- this .mergeUnknownFields (other .unknownFields );
836
+ this .mergeUnknownFields (other .getUnknownFields () );
933
837
onChanged ();
934
838
return this ;
935
839
}
@@ -944,18 +848,67 @@ public Builder mergeFrom(
944
848
com .google .protobuf .CodedInputStream input ,
945
849
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
946
850
throws java .io .IOException {
947
- com .google .cloud .scheduler .v1 .AppEngineHttpTarget parsedMessage = null ;
851
+ if (extensionRegistry == null ) {
852
+ throw new java .lang .NullPointerException ();
853
+ }
948
854
try {
949
- parsedMessage = PARSER .parsePartialFrom (input , extensionRegistry );
855
+ boolean done = false ;
856
+ while (!done ) {
857
+ int tag = input .readTag ();
858
+ switch (tag ) {
859
+ case 0 :
860
+ done = true ;
861
+ break ;
862
+ case 8 :
863
+ {
864
+ httpMethod_ = input .readEnum ();
865
+
866
+ break ;
867
+ } // case 8
868
+ case 18 :
869
+ {
870
+ input .readMessage (
871
+ getAppEngineRoutingFieldBuilder ().getBuilder (), extensionRegistry );
872
+
873
+ break ;
874
+ } // case 18
875
+ case 26 :
876
+ {
877
+ relativeUri_ = input .readStringRequireUtf8 ();
878
+
879
+ break ;
880
+ } // case 26
881
+ case 34 :
882
+ {
883
+ com .google .protobuf .MapEntry <java .lang .String , java .lang .String > headers__ =
884
+ input .readMessage (
885
+ HeadersDefaultEntryHolder .defaultEntry .getParserForType (),
886
+ extensionRegistry );
887
+ internalGetMutableHeaders ()
888
+ .getMutableMap ()
889
+ .put (headers__ .getKey (), headers__ .getValue ());
890
+ break ;
891
+ } // case 34
892
+ case 42 :
893
+ {
894
+ body_ = input .readBytes ();
895
+
896
+ break ;
897
+ } // case 42
898
+ default :
899
+ {
900
+ if (!super .parseUnknownField (input , extensionRegistry , tag )) {
901
+ done = true ; // was an endgroup tag
902
+ }
903
+ break ;
904
+ } // default:
905
+ } // switch (tag)
906
+ } // while (!done)
950
907
} catch (com .google .protobuf .InvalidProtocolBufferException e ) {
951
- parsedMessage =
952
- (com .google .cloud .scheduler .v1 .AppEngineHttpTarget ) e .getUnfinishedMessage ();
953
908
throw e .unwrapIOException ();
954
909
} finally {
955
- if (parsedMessage != null ) {
956
- mergeFrom (parsedMessage );
957
- }
958
- }
910
+ onChanged ();
911
+ } // finally
959
912
return this ;
960
913
}
961
914
@@ -1784,7 +1737,18 @@ public AppEngineHttpTarget parsePartialFrom(
1784
1737
com .google .protobuf .CodedInputStream input ,
1785
1738
com .google .protobuf .ExtensionRegistryLite extensionRegistry )
1786
1739
throws com .google .protobuf .InvalidProtocolBufferException {
1787
- return new AppEngineHttpTarget (input , extensionRegistry );
1740
+ Builder builder = newBuilder ();
1741
+ try {
1742
+ builder .mergeFrom (input , extensionRegistry );
1743
+ } catch (com .google .protobuf .InvalidProtocolBufferException e ) {
1744
+ throw e .setUnfinishedMessage (builder .buildPartial ());
1745
+ } catch (com .google .protobuf .UninitializedMessageException e ) {
1746
+ throw e .asInvalidProtocolBufferException ().setUnfinishedMessage (builder .buildPartial ());
1747
+ } catch (java .io .IOException e ) {
1748
+ throw new com .google .protobuf .InvalidProtocolBufferException (e )
1749
+ .setUnfinishedMessage (builder .buildPartial ());
1750
+ }
1751
+ return builder .buildPartial ();
1788
1752
}
1789
1753
};
1790
1754
0 commit comments