@@ -59,117 +59,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
|
59 | 59 | return this.unknownFields;
|
60 | 60 | }
|
61 | 61 |
|
62 |
| -private Channel( |
63 |
| -com.google.protobuf.CodedInputStream input, |
64 |
| -com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
65 |
| -throws com.google.protobuf.InvalidProtocolBufferException { |
66 |
| -this(); |
67 |
| -if (extensionRegistry == null) { |
68 |
| -throw new java.lang.NullPointerException(); |
69 |
| -} |
70 |
| -com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
71 |
| -com.google.protobuf.UnknownFieldSet.newBuilder(); |
72 |
| -try { |
73 |
| -boolean done = false; |
74 |
| -while (!done) { |
75 |
| -int tag = input.readTag(); |
76 |
| -switch (tag) { |
77 |
| -case 0: |
78 |
| -done = true; |
79 |
| -break; |
80 |
| -case 10: |
81 |
| -{ |
82 |
| -java.lang.String s = input.readStringRequireUtf8(); |
83 |
| - |
84 |
| -name_ = s; |
85 |
| -break; |
86 |
| -} |
87 |
| -case 18: |
88 |
| -{ |
89 |
| -java.lang.String s = input.readStringRequireUtf8(); |
90 |
| - |
91 |
| -uid_ = s; |
92 |
| -break; |
93 |
| -} |
94 |
| -case 42: |
95 |
| -{ |
96 |
| -com.google.protobuf.Timestamp.Builder subBuilder = null; |
97 |
| -if (createTime_ != null) { |
98 |
| -subBuilder = createTime_.toBuilder(); |
99 |
| -} |
100 |
| -createTime_ = |
101 |
| -input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); |
102 |
| -if (subBuilder != null) { |
103 |
| -subBuilder.mergeFrom(createTime_); |
104 |
| -createTime_ = subBuilder.buildPartial(); |
105 |
| -} |
106 |
| - |
107 |
| -break; |
108 |
| -} |
109 |
| -case 50: |
110 |
| -{ |
111 |
| -com.google.protobuf.Timestamp.Builder subBuilder = null; |
112 |
| -if (updateTime_ != null) { |
113 |
| -subBuilder = updateTime_.toBuilder(); |
114 |
| -} |
115 |
| -updateTime_ = |
116 |
| -input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); |
117 |
| -if (subBuilder != null) { |
118 |
| -subBuilder.mergeFrom(updateTime_); |
119 |
| -updateTime_ = subBuilder.buildPartial(); |
120 |
| -} |
121 |
| - |
122 |
| -break; |
123 |
| -} |
124 |
| -case 58: |
125 |
| -{ |
126 |
| -java.lang.String s = input.readStringRequireUtf8(); |
127 |
| - |
128 |
| -provider_ = s; |
129 |
| -break; |
130 |
| -} |
131 |
| -case 66: |
132 |
| -{ |
133 |
| -java.lang.String s = input.readStringRequireUtf8(); |
134 |
| -transportCase_ = 8; |
135 |
| -transport_ = s; |
136 |
| -break; |
137 |
| -} |
138 |
| -case 72: |
139 |
| -{ |
140 |
| -int rawValue = input.readEnum(); |
141 |
| - |
142 |
| -state_ = rawValue; |
143 |
| -break; |
144 |
| -} |
145 |
| -case 82: |
146 |
| -{ |
147 |
| -java.lang.String s = input.readStringRequireUtf8(); |
148 |
| - |
149 |
| -activationToken_ = s; |
150 |
| -break; |
151 |
| -} |
152 |
| -default: |
153 |
| -{ |
154 |
| -if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { |
155 |
| -done = true; |
156 |
| -} |
157 |
| -break; |
158 |
| -} |
159 |
| -} |
160 |
| -} |
161 |
| -} catch (com.google.protobuf.InvalidProtocolBufferException e) { |
162 |
| -throw e.setUnfinishedMessage(this); |
163 |
| -} catch (com.google.protobuf.UninitializedMessageException e) { |
164 |
| -throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); |
165 |
| -} catch (java.io.IOException e) { |
166 |
| -throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); |
167 |
| -} finally { |
168 |
| -this.unknownFields = unknownFields.build(); |
169 |
| -makeExtensionsImmutable(); |
170 |
| -} |
171 |
| -} |
172 |
| - |
173 | 62 | public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
|
174 | 63 | return com.google.cloud.eventarc.v1.ChannelProto
|
175 | 64 | .internal_static_google_cloud_eventarc_v1_Channel_descriptor;
|
@@ -892,7 +781,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
|
892 | 781 | if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activationToken_)) {
|
893 | 782 | com.google.protobuf.GeneratedMessageV3.writeString(output, 10, activationToken_);
|
894 | 783 | }
|
895 |
| -unknownFields.writeTo(output); |
| 784 | +getUnknownFields().writeTo(output); |
896 | 785 | }
|
897 | 786 |
|
898 | 787 | @java.lang.Override
|
@@ -925,7 +814,7 @@ public int getSerializedSize() {
|
925 | 814 | if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(activationToken_)) {
|
926 | 815 | size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, activationToken_);
|
927 | 816 | }
|
928 |
| -size += unknownFields.getSerializedSize(); |
| 817 | +size += getUnknownFields().getSerializedSize(); |
929 | 818 | memoizedSize = size;
|
930 | 819 | return size;
|
931 | 820 | }
|
@@ -961,7 +850,7 @@ public boolean equals(final java.lang.Object obj) {
|
961 | 850 | case 0:
|
962 | 851 | default:
|
963 | 852 | }
|
964 |
| -if (!unknownFields.equals(other.unknownFields)) return false; |
| 853 | +if (!getUnknownFields().equals(other.getUnknownFields())) return false; |
965 | 854 | return true;
|
966 | 855 | }
|
967 | 856 |
|
@@ -998,7 +887,7 @@ public int hashCode() {
|
998 | 887 | case 0:
|
999 | 888 | default:
|
1000 | 889 | }
|
1001 |
| -hash = (29 * hash) + unknownFields.hashCode(); |
| 890 | +hash = (29 * hash) + getUnknownFields().hashCode(); |
1002 | 891 | memoizedHashCode = hash;
|
1003 | 892 | return hash;
|
1004 | 893 | }
|
@@ -1129,17 +1018,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
|
1129 | 1018 | }
|
1130 | 1019 |
|
1131 | 1020 | // Construct using com.google.cloud.eventarc.v1.Channel.newBuilder()
|
1132 |
| -private Builder() { |
1133 |
| -maybeForceBuilderInitialization(); |
1134 |
| -} |
| 1021 | +private Builder() {} |
1135 | 1022 |
|
1136 | 1023 | private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
1137 | 1024 | super(parent);
|
1138 |
| -maybeForceBuilderInitialization(); |
1139 |
| -} |
1140 |
| - |
1141 |
| -private void maybeForceBuilderInitialization() { |
1142 |
| -if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} |
1143 | 1025 | }
|
1144 | 1026 |
|
1145 | 1027 | @java.lang.Override
|
@@ -1301,7 +1183,7 @@ public Builder mergeFrom(com.google.cloud.eventarc.v1.Channel other) {
|
1301 | 1183 | break;
|
1302 | 1184 | }
|
1303 | 1185 | }
|
1304 |
| -this.mergeUnknownFields(other.unknownFields); |
| 1186 | +this.mergeUnknownFields(other.getUnknownFields()); |
1305 | 1187 | onChanged();
|
1306 | 1188 | return this;
|
1307 | 1189 | }
|
@@ -1316,17 +1198,80 @@ public Builder mergeFrom(
|
1316 | 1198 | com.google.protobuf.CodedInputStream input,
|
1317 | 1199 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
1318 | 1200 | throws java.io.IOException {
|
1319 |
| -com.google.cloud.eventarc.v1.Channel parsedMessage = null; |
| 1201 | +if (extensionRegistry == null) { |
| 1202 | +throw new java.lang.NullPointerException(); |
| 1203 | +} |
1320 | 1204 | try {
|
1321 |
| -parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| 1205 | +boolean done = false; |
| 1206 | +while (!done) { |
| 1207 | +int tag = input.readTag(); |
| 1208 | +switch (tag) { |
| 1209 | +case 0: |
| 1210 | +done = true; |
| 1211 | +break; |
| 1212 | +case 10: |
| 1213 | +{ |
| 1214 | +name_ = input.readStringRequireUtf8(); |
| 1215 | + |
| 1216 | +break; |
| 1217 | +} // case 10 |
| 1218 | +case 18: |
| 1219 | +{ |
| 1220 | +uid_ = input.readStringRequireUtf8(); |
| 1221 | + |
| 1222 | +break; |
| 1223 | +} // case 18 |
| 1224 | +case 42: |
| 1225 | +{ |
| 1226 | +input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); |
| 1227 | + |
| 1228 | +break; |
| 1229 | +} // case 42 |
| 1230 | +case 50: |
| 1231 | +{ |
| 1232 | +input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); |
| 1233 | + |
| 1234 | +break; |
| 1235 | +} // case 50 |
| 1236 | +case 58: |
| 1237 | +{ |
| 1238 | +provider_ = input.readStringRequireUtf8(); |
| 1239 | + |
| 1240 | +break; |
| 1241 | +} // case 58 |
| 1242 | +case 66: |
| 1243 | +{ |
| 1244 | +java.lang.String s = input.readStringRequireUtf8(); |
| 1245 | +transportCase_ = 8; |
| 1246 | +transport_ = s; |
| 1247 | +break; |
| 1248 | +} // case 66 |
| 1249 | +case 72: |
| 1250 | +{ |
| 1251 | +state_ = input.readEnum(); |
| 1252 | + |
| 1253 | +break; |
| 1254 | +} // case 72 |
| 1255 | +case 82: |
| 1256 | +{ |
| 1257 | +activationToken_ = input.readStringRequireUtf8(); |
| 1258 | + |
| 1259 | +break; |
| 1260 | +} // case 82 |
| 1261 | +default: |
| 1262 | +{ |
| 1263 | +if (!super.parseUnknownField(input, extensionRegistry, tag)) { |
| 1264 | +done = true; // was an endgroup tag |
| 1265 | +} |
| 1266 | +break; |
| 1267 | +} // default: |
| 1268 | +} // switch (tag) |
| 1269 | +} // while (!done) |
1322 | 1270 | } catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
1323 |
| -parsedMessage = (com.google.cloud.eventarc.v1.Channel) e.getUnfinishedMessage(); |
1324 | 1271 | throw e.unwrapIOException();
|
1325 | 1272 | } finally {
|
1326 |
| -if (parsedMessage != null) { |
1327 |
| -mergeFrom(parsedMessage); |
1328 |
| -} |
1329 |
| -} |
| 1273 | +onChanged(); |
| 1274 | +} // finally |
1330 | 1275 | return this;
|
1331 | 1276 | }
|
1332 | 1277 |
|
@@ -2484,7 +2429,18 @@ public Channel parsePartialFrom(
|
2484 | 2429 | com.google.protobuf.CodedInputStream input,
|
2485 | 2430 | com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
2486 | 2431 | throws com.google.protobuf.InvalidProtocolBufferException {
|
2487 |
| -return new Channel(input, extensionRegistry); |
| 2432 | +Builder builder = newBuilder(); |
| 2433 | +try { |
| 2434 | +builder.mergeFrom(input, extensionRegistry); |
| 2435 | +} catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| 2436 | +throw e.setUnfinishedMessage(builder.buildPartial()); |
| 2437 | +} catch (com.google.protobuf.UninitializedMessageException e) { |
| 2438 | +throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); |
| 2439 | +} catch (java.io.IOException e) { |
| 2440 | +throw new com.google.protobuf.InvalidProtocolBufferException(e) |
| 2441 | +.setUnfinishedMessage(builder.buildPartial()); |
| 2442 | +} |
| 2443 | +return builder.buildPartial(); |
2488 | 2444 | }
|
2489 | 2445 | };
|
2490 | 2446 |
|
|
0 commit comments