Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit f0e3d5e

Browse files
chore: regenerate with updated protoc (#167)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/edde2ae8-988f-4790-916d-873296fc352f/targets PiperOrigin-RevId: 313460921 Source-Link: googleapis/googleapis@c4e3701
1 parent 9489960 commit f0e3d5e

29 files changed

+256
-5
lines changed

proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/CompressionType.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ public CompressionType findValueByNumber(int number) {
139139
};
140140

141141
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
142+
if (this == UNRECOGNIZED) {
143+
throw new java.lang.IllegalStateException(
144+
"Can't get the descriptor of an unrecognized enum value.");
145+
}
142146
return getDescriptor().getValues().get(ordinal());
143147
}
144148

proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ComputeThreatListDiffRequest.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
373373
*
374374
* @return The maxDiffEntries.
375375
*/
376+
@java.lang.Override
376377
public int getMaxDiffEntries() {
377378
return maxDiffEntries_;
378379
}
@@ -392,6 +393,7 @@ public int getMaxDiffEntries() {
392393
*
393394
* @return The maxDatabaseEntries.
394395
*/
396+
@java.lang.Override
395397
public int getMaxDatabaseEntries() {
396398
return maxDatabaseEntries_;
397399
}
@@ -421,6 +423,7 @@ public com.google.webrisk.v1.CompressionType convert(java.lang.Integer from) {
421423
*
422424
* @return A list containing the supportedCompressions.
423425
*/
426+
@java.lang.Override
424427
public java.util.List<com.google.webrisk.v1.CompressionType> getSupportedCompressionsList() {
425428
return new com.google.protobuf.Internal.ListAdapter<
426429
java.lang.Integer, com.google.webrisk.v1.CompressionType>(
@@ -437,6 +440,7 @@ public java.util.List<com.google.webrisk.v1.CompressionType> getSupportedCompres
437440
*
438441
* @return The count of supportedCompressions.
439442
*/
443+
@java.lang.Override
440444
public int getSupportedCompressionsCount() {
441445
return supportedCompressions_.size();
442446
}
@@ -452,6 +456,7 @@ public int getSupportedCompressionsCount() {
452456
* @param index The index of the element to return.
453457
* @return The supportedCompressions at the given index.
454458
*/
459+
@java.lang.Override
455460
public com.google.webrisk.v1.CompressionType getSupportedCompressions(int index) {
456461
return supportedCompressions_converter_.convert(supportedCompressions_.get(index));
457462
}
@@ -466,6 +471,7 @@ public com.google.webrisk.v1.CompressionType getSupportedCompressions(int index)
466471
*
467472
* @return A list containing the enum numeric values on the wire for supportedCompressions.
468473
*/
474+
@java.lang.Override
469475
public java.util.List<java.lang.Integer> getSupportedCompressionsValueList() {
470476
return supportedCompressions_;
471477
}
@@ -481,6 +487,7 @@ public java.util.List<java.lang.Integer> getSupportedCompressionsValueList() {
481487
* @param index The index of the value to return.
482488
* @return The enum numeric value on the wire of supportedCompressions at the given index.
483489
*/
490+
@java.lang.Override
484491
public int getSupportedCompressionsValue(int index) {
485492
return supportedCompressions_.get(index);
486493
}
@@ -889,6 +896,7 @@ public Builder mergeFrom(
889896
*
890897
* @return The maxDiffEntries.
891898
*/
899+
@java.lang.Override
892900
public int getMaxDiffEntries() {
893901
return maxDiffEntries_;
894902
}
@@ -946,6 +954,7 @@ public Builder clearMaxDiffEntries() {
946954
*
947955
* @return The maxDatabaseEntries.
948956
*/
957+
@java.lang.Override
949958
public int getMaxDatabaseEntries() {
950959
return maxDatabaseEntries_;
951960
}
@@ -1284,6 +1293,7 @@ public com.google.protobuf.Parser<Constraints> getParserForType() {
12841293
*
12851294
* @return The enum numeric value on the wire for threatType.
12861295
*/
1296+
@java.lang.Override
12871297
public int getThreatTypeValue() {
12881298
return threatType_;
12891299
}
@@ -1300,6 +1310,7 @@ public int getThreatTypeValue() {
13001310
*
13011311
* @return The threatType.
13021312
*/
1313+
@java.lang.Override
13031314
public com.google.webrisk.v1.ThreatType getThreatType() {
13041315
@SuppressWarnings("deprecation")
13051316
com.google.webrisk.v1.ThreatType result = com.google.webrisk.v1.ThreatType.valueOf(threatType_);
@@ -1323,6 +1334,7 @@ public com.google.webrisk.v1.ThreatType getThreatType() {
13231334
*
13241335
* @return The versionToken.
13251336
*/
1337+
@java.lang.Override
13261338
public com.google.protobuf.ByteString getVersionToken() {
13271339
return versionToken_;
13281340
}
@@ -1342,6 +1354,7 @@ public com.google.protobuf.ByteString getVersionToken() {
13421354
*
13431355
* @return Whether the constraints field is set.
13441356
*/
1357+
@java.lang.Override
13451358
public boolean hasConstraints() {
13461359
return constraints_ != null;
13471360
}
@@ -1358,6 +1371,7 @@ public boolean hasConstraints() {
13581371
*
13591372
* @return The constraints.
13601373
*/
1374+
@java.lang.Override
13611375
public com.google.webrisk.v1.ComputeThreatListDiffRequest.Constraints getConstraints() {
13621376
return constraints_ == null
13631377
? com.google.webrisk.v1.ComputeThreatListDiffRequest.Constraints.getDefaultInstance()
@@ -1374,6 +1388,7 @@ public com.google.webrisk.v1.ComputeThreatListDiffRequest.Constraints getConstra
13741388
* .google.cloud.webrisk.v1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];
13751389
* </code>
13761390
*/
1391+
@java.lang.Override
13771392
public com.google.webrisk.v1.ComputeThreatListDiffRequest.ConstraintsOrBuilder
13781393
getConstraintsOrBuilder() {
13791394
return getConstraints();
@@ -1753,6 +1768,7 @@ public Builder mergeFrom(
17531768
*
17541769
* @return The enum numeric value on the wire for threatType.
17551770
*/
1771+
@java.lang.Override
17561772
public int getThreatTypeValue() {
17571773
return threatType_;
17581774
}
@@ -1771,6 +1787,7 @@ public int getThreatTypeValue() {
17711787
* @return This builder for chaining.
17721788
*/
17731789
public Builder setThreatTypeValue(int value) {
1790+
17741791
threatType_ = value;
17751792
onChanged();
17761793
return this;
@@ -1788,6 +1805,7 @@ public Builder setThreatTypeValue(int value) {
17881805
*
17891806
* @return The threatType.
17901807
*/
1808+
@java.lang.Override
17911809
public com.google.webrisk.v1.ThreatType getThreatType() {
17921810
@SuppressWarnings("deprecation")
17931811
com.google.webrisk.v1.ThreatType result =
@@ -1853,6 +1871,7 @@ public Builder clearThreatType() {
18531871
*
18541872
* @return The versionToken.
18551873
*/
1874+
@java.lang.Override
18561875
public com.google.protobuf.ByteString getVersionToken() {
18571876
return versionToken_;
18581877
}

proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/ComputeThreatListDiffResponse.java

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,10 @@ public ResponseType findValueByNumber(int number) {
299299
};
300300

301301
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
302+
if (this == UNRECOGNIZED) {
303+
throw new java.lang.IllegalStateException(
304+
"Can't get the descriptor of an unrecognized enum value.");
305+
}
302306
return getDescriptor().getValues().get(ordinal());
303307
}
304308

@@ -457,6 +461,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
457461
*
458462
* @return The sha256.
459463
*/
464+
@java.lang.Override
460465
public com.google.protobuf.ByteString getSha256() {
461466
return sha256_;
462467
}
@@ -799,6 +804,7 @@ public Builder mergeFrom(
799804
*
800805
* @return The sha256.
801806
*/
807+
@java.lang.Override
802808
public com.google.protobuf.ByteString getSha256() {
803809
return sha256_;
804810
}
@@ -913,6 +919,7 @@ public com.google.protobuf.Parser<Checksum> getParserForType() {
913919
*
914920
* @return The enum numeric value on the wire for responseType.
915921
*/
922+
@java.lang.Override
916923
public int getResponseTypeValue() {
917924
return responseType_;
918925
}
@@ -929,6 +936,7 @@ public int getResponseTypeValue() {
929936
*
930937
* @return The responseType.
931938
*/
939+
@java.lang.Override
932940
public com.google.webrisk.v1.ComputeThreatListDiffResponse.ResponseType getResponseType() {
933941
@SuppressWarnings("deprecation")
934942
com.google.webrisk.v1.ComputeThreatListDiffResponse.ResponseType result =
@@ -951,6 +959,7 @@ public com.google.webrisk.v1.ComputeThreatListDiffResponse.ResponseType getRespo
951959
*
952960
* @return Whether the additions field is set.
953961
*/
962+
@java.lang.Override
954963
public boolean hasAdditions() {
955964
return additions_ != null;
956965
}
@@ -965,6 +974,7 @@ public boolean hasAdditions() {
965974
*
966975
* @return The additions.
967976
*/
977+
@java.lang.Override
968978
public com.google.webrisk.v1.ThreatEntryAdditions getAdditions() {
969979
return additions_ == null
970980
? com.google.webrisk.v1.ThreatEntryAdditions.getDefaultInstance()
@@ -979,6 +989,7 @@ public com.google.webrisk.v1.ThreatEntryAdditions getAdditions() {
979989
*
980990
* <code>.google.cloud.webrisk.v1.ThreatEntryAdditions additions = 5;</code>
981991
*/
992+
@java.lang.Override
982993
public com.google.webrisk.v1.ThreatEntryAdditionsOrBuilder getAdditionsOrBuilder() {
983994
return getAdditions();
984995
}
@@ -997,6 +1008,7 @@ public com.google.webrisk.v1.ThreatEntryAdditionsOrBuilder getAdditionsOrBuilder
9971008
*
9981009
* @return Whether the removals field is set.
9991010
*/
1011+
@java.lang.Override
10001012
public boolean hasRemovals() {
10011013
return removals_ != null;
10021014
}
@@ -1012,6 +1024,7 @@ public boolean hasRemovals() {
10121024
*
10131025
* @return The removals.
10141026
*/
1027+
@java.lang.Override
10151028
public com.google.webrisk.v1.ThreatEntryRemovals getRemovals() {
10161029
return removals_ == null
10171030
? com.google.webrisk.v1.ThreatEntryRemovals.getDefaultInstance()
@@ -1027,6 +1040,7 @@ public com.google.webrisk.v1.ThreatEntryRemovals getRemovals() {
10271040
*
10281041
* <code>.google.cloud.webrisk.v1.ThreatEntryRemovals removals = 6;</code>
10291042
*/
1043+
@java.lang.Override
10301044
public com.google.webrisk.v1.ThreatEntryRemovalsOrBuilder getRemovalsOrBuilder() {
10311045
return getRemovals();
10321046
}
@@ -1046,6 +1060,7 @@ public com.google.webrisk.v1.ThreatEntryRemovalsOrBuilder getRemovalsOrBuilder()
10461060
*
10471061
* @return The newVersionToken.
10481062
*/
1063+
@java.lang.Override
10491064
public com.google.protobuf.ByteString getNewVersionToken() {
10501065
return newVersionToken_;
10511066
}
@@ -1066,6 +1081,7 @@ public com.google.protobuf.ByteString getNewVersionToken() {
10661081
*
10671082
* @return Whether the checksum field is set.
10681083
*/
1084+
@java.lang.Override
10691085
public boolean hasChecksum() {
10701086
return checksum_ != null;
10711087
}
@@ -1083,6 +1099,7 @@ public boolean hasChecksum() {
10831099
*
10841100
* @return The checksum.
10851101
*/
1102+
@java.lang.Override
10861103
public com.google.webrisk.v1.ComputeThreatListDiffResponse.Checksum getChecksum() {
10871104
return checksum_ == null
10881105
? com.google.webrisk.v1.ComputeThreatListDiffResponse.Checksum.getDefaultInstance()
@@ -1100,6 +1117,7 @@ public com.google.webrisk.v1.ComputeThreatListDiffResponse.Checksum getChecksum(
11001117
*
11011118
* <code>.google.cloud.webrisk.v1.ComputeThreatListDiffResponse.Checksum checksum = 8;</code>
11021119
*/
1120+
@java.lang.Override
11031121
public com.google.webrisk.v1.ComputeThreatListDiffResponse.ChecksumOrBuilder
11041122
getChecksumOrBuilder() {
11051123
return getChecksum();
@@ -1121,6 +1139,7 @@ public com.google.webrisk.v1.ComputeThreatListDiffResponse.Checksum getChecksum(
11211139
*
11221140
* @return Whether the recommendedNextDiff field is set.
11231141
*/
1142+
@java.lang.Override
11241143
public boolean hasRecommendedNextDiff() {
11251144
return recommendedNextDiff_ != null;
11261145
}
@@ -1138,6 +1157,7 @@ public boolean hasRecommendedNextDiff() {
11381157
*
11391158
* @return The recommendedNextDiff.
11401159
*/
1160+
@java.lang.Override
11411161
public com.google.protobuf.Timestamp getRecommendedNextDiff() {
11421162
return recommendedNextDiff_ == null
11431163
? com.google.protobuf.Timestamp.getDefaultInstance()
@@ -1155,6 +1175,7 @@ public com.google.protobuf.Timestamp getRecommendedNextDiff() {
11551175
*
11561176
* <code>.google.protobuf.Timestamp recommended_next_diff = 2;</code>
11571177
*/
1178+
@java.lang.Override
11581179
public com.google.protobuf.TimestampOrBuilder getRecommendedNextDiffOrBuilder() {
11591180
return getRecommendedNextDiff();
11601181
}
@@ -1615,6 +1636,7 @@ public Builder mergeFrom(
16151636
*
16161637
* @return The enum numeric value on the wire for responseType.
16171638
*/
1639+
@java.lang.Override
16181640
public int getResponseTypeValue() {
16191641
return responseType_;
16201642
}
@@ -1633,6 +1655,7 @@ public int getResponseTypeValue() {
16331655
* @return This builder for chaining.
16341656
*/
16351657
public Builder setResponseTypeValue(int value) {
1658+
16361659
responseType_ = value;
16371660
onChanged();
16381661
return this;
@@ -1650,6 +1673,7 @@ public Builder setResponseTypeValue(int value) {
16501673
*
16511674
* @return The responseType.
16521675
*/
1676+
@java.lang.Override
16531677
public com.google.webrisk.v1.ComputeThreatListDiffResponse.ResponseType getResponseType() {
16541678
@SuppressWarnings("deprecation")
16551679
com.google.webrisk.v1.ComputeThreatListDiffResponse.ResponseType result =
@@ -2096,6 +2120,7 @@ public com.google.webrisk.v1.ThreatEntryRemovalsOrBuilder getRemovalsOrBuilder()
20962120
*
20972121
* @return The newVersionToken.
20982122
*/
2123+
@java.lang.Override
20992124
public com.google.protobuf.ByteString getNewVersionToken() {
21002125
return newVersionToken_;
21012126
}

proto-google-cloud-webrisk-v1/src/main/java/com/google/webrisk/v1/CreateSubmissionRequest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
142142
*
143143
* @return The parent.
144144
*/
145+
@java.lang.Override
145146
public java.lang.String getParent() {
146147
java.lang.Object ref = parent_;
147148
if (ref instanceof java.lang.String) {
@@ -167,6 +168,7 @@ public java.lang.String getParent() {
167168
*
168169
* @return The bytes for parent.
169170
*/
171+
@java.lang.Override
170172
public com.google.protobuf.ByteString getParentBytes() {
171173
java.lang.Object ref = parent_;
172174
if (ref instanceof java.lang.String) {
@@ -194,6 +196,7 @@ public com.google.protobuf.ByteString getParentBytes() {
194196
*
195197
* @return Whether the submission field is set.
196198
*/
199+
@java.lang.Override
197200
public boolean hasSubmission() {
198201
return submission_ != null;
199202
}
@@ -210,6 +213,7 @@ public boolean hasSubmission() {
210213
*
211214
* @return The submission.
212215
*/
216+
@java.lang.Override
213217
public com.google.webrisk.v1.Submission getSubmission() {
214218
return submission_ == null
215219
? com.google.webrisk.v1.Submission.getDefaultInstance()
@@ -226,6 +230,7 @@ public com.google.webrisk.v1.Submission getSubmission() {
226230
* .google.cloud.webrisk.v1.Submission submission = 2 [(.google.api.field_behavior) = REQUIRED];
227231
* </code>
228232
*/
233+
@java.lang.Override
229234
public com.google.webrisk.v1.SubmissionOrBuilder getSubmissionOrBuilder() {
230235
return getSubmission();
231236
}

0 commit comments

Comments
 (0)