From 904c560557fefc944bb64c20fc60ab5f250229c9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 18 Dec 2019 14:51:07 -0800 Subject: [PATCH] docs(regen): updated javadocs from protoc update (#27) --- .../webrisk/v1beta1/CompressionType.java | 10 +- .../v1beta1/ComputeThreatListDiffRequest.java | 153 ++++++++++++++++-- ...ComputeThreatListDiffRequestOrBuilder.java | 10 ++ .../ComputeThreatListDiffResponse.java | 92 ++++++++++- ...omputeThreatListDiffResponseOrBuilder.java | 22 +++ .../com/google/webrisk/v1beta1/RawHashes.java | 25 ++- .../webrisk/v1beta1/RawHashesOrBuilder.java | 4 + .../google/webrisk/v1beta1/RawIndices.java | 32 ++++ .../webrisk/v1beta1/RawIndicesOrBuilder.java | 7 + .../webrisk/v1beta1/RiceDeltaEncoding.java | 43 ++++- .../v1beta1/RiceDeltaEncodingOrBuilder.java | 8 + .../webrisk/v1beta1/SearchHashesRequest.java | 88 ++++++++-- .../v1beta1/SearchHashesRequestOrBuilder.java | 14 ++ .../webrisk/v1beta1/SearchHashesResponse.java | 107 +++++++++++- .../SearchHashesResponseOrBuilder.java | 4 + .../webrisk/v1beta1/SearchUrisRequest.java | 95 +++++++++-- .../v1beta1/SearchUrisRequestOrBuilder.java | 16 ++ .../webrisk/v1beta1/SearchUrisResponse.java | 94 ++++++++++- .../v1beta1/SearchUrisResponseOrBuilder.java | 4 + .../webrisk/v1beta1/ThreatEntryAdditions.java | 17 +- .../ThreatEntryAdditionsOrBuilder.java | 4 + .../webrisk/v1beta1/ThreatEntryRemovals.java | 23 ++- .../v1beta1/ThreatEntryRemovalsOrBuilder.java | 8 + .../google/webrisk/v1beta1/ThreatType.java | 10 +- .../google/webrisk/v1beta1/WebRiskProto.java | 26 ++- synth.metadata | 10 +- 26 files changed, 837 insertions(+), 89 deletions(-) diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/CompressionType.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/CompressionType.java index 9ca51970..1a96bc60 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/CompressionType.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/CompressionType.java @@ -100,12 +100,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static CompressionType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static CompressionType forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequest.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequest.java index 870c1eac..d0371b8d 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequest.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequest.java @@ -42,6 +42,12 @@ private ComputeThreatListDiffRequest() { versionToken_ = com.google.protobuf.ByteString.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ComputeThreatListDiffRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private ComputeThreatListDiffRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -145,6 +150,8 @@ public interface ConstraintsOrBuilder * * * int32 max_diff_entries = 1; + * + * @return The maxDiffEntries. */ int getMaxDiffEntries(); @@ -158,6 +165,8 @@ public interface ConstraintsOrBuilder * * * int32 max_database_entries = 2; + * + * @return The maxDatabaseEntries. */ int getMaxDatabaseEntries(); @@ -170,6 +179,8 @@ public interface ConstraintsOrBuilder * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @return A list containing the supportedCompressions. */ java.util.List getSupportedCompressionsList(); /** @@ -181,6 +192,8 @@ public interface ConstraintsOrBuilder * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @return The count of supportedCompressions. */ int getSupportedCompressionsCount(); /** @@ -192,6 +205,9 @@ public interface ConstraintsOrBuilder * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @param index The index of the element to return. + * @return The supportedCompressions at the given index. */ com.google.webrisk.v1beta1.CompressionType getSupportedCompressions(int index); /** @@ -203,6 +219,8 @@ public interface ConstraintsOrBuilder * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @return A list containing the enum numeric values on the wire for supportedCompressions. */ java.util.List getSupportedCompressionsValueList(); /** @@ -214,6 +232,9 @@ public interface ConstraintsOrBuilder * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of supportedCompressions at the given index. */ int getSupportedCompressionsValue(int index); } @@ -240,6 +261,12 @@ private Constraints() { supportedCompressions_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Constraints(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -277,9 +304,9 @@ private Constraints( case 24: { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { supportedCompressions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } supportedCompressions_.add(rawValue); break; @@ -290,9 +317,9 @@ private Constraints( int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { supportedCompressions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } supportedCompressions_.add(rawValue); } @@ -313,7 +340,7 @@ private Constraints( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { supportedCompressions_ = java.util.Collections.unmodifiableList(supportedCompressions_); } this.unknownFields = unknownFields.build(); @@ -336,7 +363,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints.Builder.class); } - private int bitField0_; public static final int MAX_DIFF_ENTRIES_FIELD_NUMBER = 1; private int maxDiffEntries_; /** @@ -349,6 +375,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * int32 max_diff_entries = 1; + * + * @return The maxDiffEntries. */ public int getMaxDiffEntries() { return maxDiffEntries_; @@ -366,6 +394,8 @@ public int getMaxDiffEntries() { * * * int32 max_database_entries = 2; + * + * @return The maxDatabaseEntries. */ public int getMaxDatabaseEntries() { return maxDatabaseEntries_; @@ -396,6 +426,8 @@ public com.google.webrisk.v1beta1.CompressionType convert(java.lang.Integer from * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @return A list containing the supportedCompressions. */ public java.util.List getSupportedCompressionsList() { @@ -412,6 +444,8 @@ public com.google.webrisk.v1beta1.CompressionType convert(java.lang.Integer from * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @param value The supportedCompressions to add. */ public int getSupportedCompressionsCount() { return supportedCompressions_.size(); @@ -425,6 +459,9 @@ public int getSupportedCompressionsCount() { * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @param index The index of the element to return. + * @return The supportedCompressions at the given index. */ public com.google.webrisk.v1beta1.CompressionType getSupportedCompressions(int index) { return supportedCompressions_converter_.convert(supportedCompressions_.get(index)); @@ -438,6 +475,8 @@ public com.google.webrisk.v1beta1.CompressionType getSupportedCompressions(int i * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @return A list containing the enum numeric values on the wire for supportedCompressions. */ public java.util.List getSupportedCompressionsValueList() { return supportedCompressions_; @@ -451,6 +490,9 @@ public java.util.List getSupportedCompressionsValueList() { * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of supportedCompressions at the given index. */ public int getSupportedCompressionsValue(int index) { return supportedCompressions_.get(index); @@ -708,7 +750,7 @@ public Builder clear() { maxDatabaseEntries_ = 0; supportedCompressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -739,15 +781,13 @@ public com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints build com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints result = new com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.maxDiffEntries_ = maxDiffEntries_; result.maxDatabaseEntries_ = maxDatabaseEntries_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { supportedCompressions_ = java.util.Collections.unmodifiableList(supportedCompressions_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.supportedCompressions_ = supportedCompressions_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -812,7 +852,7 @@ public Builder mergeFrom( if (!other.supportedCompressions_.isEmpty()) { if (supportedCompressions_.isEmpty()) { supportedCompressions_ = other.supportedCompressions_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSupportedCompressionsIsMutable(); supportedCompressions_.addAll(other.supportedCompressions_); @@ -863,6 +903,8 @@ public Builder mergeFrom( * * * int32 max_diff_entries = 1; + * + * @return The maxDiffEntries. */ public int getMaxDiffEntries() { return maxDiffEntries_; @@ -877,6 +919,9 @@ public int getMaxDiffEntries() { * * * int32 max_diff_entries = 1; + * + * @param value The maxDiffEntries to set. + * @return This builder for chaining. */ public Builder setMaxDiffEntries(int value) { @@ -894,6 +939,8 @@ public Builder setMaxDiffEntries(int value) { * * * int32 max_diff_entries = 1; + * + * @return This builder for chaining. */ public Builder clearMaxDiffEntries() { @@ -913,6 +960,8 @@ public Builder clearMaxDiffEntries() { * * * int32 max_database_entries = 2; + * + * @return The maxDatabaseEntries. */ public int getMaxDatabaseEntries() { return maxDatabaseEntries_; @@ -927,6 +976,9 @@ public int getMaxDatabaseEntries() { * * * int32 max_database_entries = 2; + * + * @param value The maxDatabaseEntries to set. + * @return This builder for chaining. */ public Builder setMaxDatabaseEntries(int value) { @@ -944,6 +996,8 @@ public Builder setMaxDatabaseEntries(int value) { * * * int32 max_database_entries = 2; + * + * @return This builder for chaining. */ public Builder clearMaxDatabaseEntries() { @@ -956,10 +1010,10 @@ public Builder clearMaxDatabaseEntries() { java.util.Collections.emptyList(); private void ensureSupportedCompressionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { supportedCompressions_ = new java.util.ArrayList(supportedCompressions_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } /** @@ -971,6 +1025,8 @@ private void ensureSupportedCompressionsIsMutable() { * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @return A list containing the supportedCompressions. */ public java.util.List getSupportedCompressionsList() { @@ -987,6 +1043,8 @@ private void ensureSupportedCompressionsIsMutable() { * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @return The count of supportedCompressions. */ public int getSupportedCompressionsCount() { return supportedCompressions_.size(); @@ -1000,6 +1058,9 @@ public int getSupportedCompressionsCount() { * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @param index The index of the element to return. + * @return The supportedCompressions at the given index. */ public com.google.webrisk.v1beta1.CompressionType getSupportedCompressions(int index) { return supportedCompressions_converter_.convert(supportedCompressions_.get(index)); @@ -1013,6 +1074,10 @@ public com.google.webrisk.v1beta1.CompressionType getSupportedCompressions(int i * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @param index The index to set the value at. + * @param value The supportedCompressions to set. + * @return This builder for chaining. */ public Builder setSupportedCompressions( int index, com.google.webrisk.v1beta1.CompressionType value) { @@ -1033,6 +1098,9 @@ public Builder setSupportedCompressions( * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @param value The supportedCompressions to add. + * @return This builder for chaining. */ public Builder addSupportedCompressions(com.google.webrisk.v1beta1.CompressionType value) { if (value == null) { @@ -1052,6 +1120,9 @@ public Builder addSupportedCompressions(com.google.webrisk.v1beta1.CompressionTy * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @param values The supportedCompressions to add. + * @return This builder for chaining. */ public Builder addAllSupportedCompressions( java.lang.Iterable values) { @@ -1071,10 +1142,12 @@ public Builder addAllSupportedCompressions( * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @return This builder for chaining. */ public Builder clearSupportedCompressions() { supportedCompressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1087,6 +1160,8 @@ public Builder clearSupportedCompressions() { * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @return A list containing the enum numeric values on the wire for supportedCompressions. */ public java.util.List getSupportedCompressionsValueList() { return java.util.Collections.unmodifiableList(supportedCompressions_); @@ -1100,6 +1175,9 @@ public java.util.List getSupportedCompressionsValueList() { * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of supportedCompressions at the given index. */ public int getSupportedCompressionsValue(int index) { return supportedCompressions_.get(index); @@ -1113,6 +1191,10 @@ public int getSupportedCompressionsValue(int index) { * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of supportedCompressions at the given index. + * @return This builder for chaining. */ public Builder setSupportedCompressionsValue(int index, int value) { ensureSupportedCompressionsIsMutable(); @@ -1129,6 +1211,9 @@ public Builder setSupportedCompressionsValue(int index, int value) { * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @param value The enum numeric value on the wire for supportedCompressions to add. + * @return This builder for chaining. */ public Builder addSupportedCompressionsValue(int value) { ensureSupportedCompressionsIsMutable(); @@ -1145,6 +1230,9 @@ public Builder addSupportedCompressionsValue(int value) { * * repeated .google.cloud.webrisk.v1beta1.CompressionType supported_compressions = 3; * + * + * @param values The enum numeric values on the wire for supportedCompressions to add. + * @return This builder for chaining. */ public Builder addAllSupportedCompressionsValue( java.lang.Iterable values) { @@ -1223,6 +1311,8 @@ public com.google.protobuf.Parser getParserForType() { * * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The enum numeric value on the wire for threatType. */ public int getThreatTypeValue() { return threatType_; @@ -1237,6 +1327,8 @@ public int getThreatTypeValue() { * * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The threatType. */ public com.google.webrisk.v1beta1.ThreatType getThreatType() { @SuppressWarnings("deprecation") @@ -1256,6 +1348,8 @@ public com.google.webrisk.v1beta1.ThreatType getThreatType() { * * * bytes version_token = 2; + * + * @return The versionToken. */ public com.google.protobuf.ByteString getVersionToken() { return versionToken_; @@ -1273,6 +1367,8 @@ public com.google.protobuf.ByteString getVersionToken() { * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the constraints field is set. */ public boolean hasConstraints() { return constraints_ != null; @@ -1287,6 +1383,8 @@ public boolean hasConstraints() { * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The constraints. */ public com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints getConstraints() { return constraints_ == null @@ -1681,6 +1779,8 @@ public Builder mergeFrom( * * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The enum numeric value on the wire for threatType. */ public int getThreatTypeValue() { return threatType_; @@ -1695,6 +1795,9 @@ public int getThreatTypeValue() { * * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The enum numeric value on the wire for threatType to set. + * @return This builder for chaining. */ public Builder setThreatTypeValue(int value) { threatType_ = value; @@ -1711,6 +1814,8 @@ public Builder setThreatTypeValue(int value) { * * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The threatType. */ public com.google.webrisk.v1beta1.ThreatType getThreatType() { @SuppressWarnings("deprecation") @@ -1728,6 +1833,9 @@ public com.google.webrisk.v1beta1.ThreatType getThreatType() { * * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The threatType to set. + * @return This builder for chaining. */ public Builder setThreatType(com.google.webrisk.v1beta1.ThreatType value) { if (value == null) { @@ -1748,6 +1856,8 @@ public Builder setThreatType(com.google.webrisk.v1beta1.ThreatType value) { * * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return This builder for chaining. */ public Builder clearThreatType() { @@ -1766,6 +1876,8 @@ public Builder clearThreatType() { * * * bytes version_token = 2; + * + * @return The versionToken. */ public com.google.protobuf.ByteString getVersionToken() { return versionToken_; @@ -1779,6 +1891,9 @@ public com.google.protobuf.ByteString getVersionToken() { * * * bytes version_token = 2; + * + * @param value The versionToken to set. + * @return This builder for chaining. */ public Builder setVersionToken(com.google.protobuf.ByteString value) { if (value == null) { @@ -1798,6 +1913,8 @@ public Builder setVersionToken(com.google.protobuf.ByteString value) { * * * bytes version_token = 2; + * + * @return This builder for chaining. */ public Builder clearVersionToken() { @@ -1822,6 +1939,8 @@ public Builder clearVersionToken() { * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the constraints field is set. */ public boolean hasConstraints() { return constraintsBuilder_ != null || constraints_ != null; @@ -1836,6 +1955,8 @@ public boolean hasConstraints() { * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The constraints. */ public com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints getConstraints() { if (constraintsBuilder_ == null) { diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequestOrBuilder.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequestOrBuilder.java index 922ba04d..7b401845 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequestOrBuilder.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffRequestOrBuilder.java @@ -33,6 +33,8 @@ public interface ComputeThreatListDiffRequestOrBuilder * * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The enum numeric value on the wire for threatType. */ int getThreatTypeValue(); /** @@ -45,6 +47,8 @@ public interface ComputeThreatListDiffRequestOrBuilder * * .google.cloud.webrisk.v1beta1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The threatType. */ com.google.webrisk.v1beta1.ThreatType getThreatType(); @@ -57,6 +61,8 @@ public interface ComputeThreatListDiffRequestOrBuilder * * * bytes version_token = 2; + * + * @return The versionToken. */ com.google.protobuf.ByteString getVersionToken(); @@ -70,6 +76,8 @@ public interface ComputeThreatListDiffRequestOrBuilder * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return Whether the constraints field is set. */ boolean hasConstraints(); /** @@ -82,6 +90,8 @@ public interface ComputeThreatListDiffRequestOrBuilder * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The constraints. */ com.google.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints getConstraints(); /** diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponse.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponse.java index 9705ab68..d68ae226 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponse.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponse.java @@ -34,6 +34,12 @@ private ComputeThreatListDiffResponse() { newVersionToken_ = com.google.protobuf.ByteString.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ComputeThreatListDiffResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -47,7 +53,6 @@ private ComputeThreatListDiffResponse( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -255,12 +260,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static ResponseType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static ResponseType forNumber(int value) { switch (value) { case 0: @@ -334,6 +347,8 @@ public interface ChecksumOrBuilder * * * bytes sha256 = 1; + * + * @return The sha256. */ com.google.protobuf.ByteString getSha256(); } @@ -360,6 +375,12 @@ private Checksum() { sha256_ = com.google.protobuf.ByteString.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Checksum(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -373,7 +394,6 @@ private Checksum( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -434,6 +454,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * bytes sha256 = 1; + * + * @return The sha256. */ public com.google.protobuf.ByteString getSha256() { return sha256_; @@ -779,6 +801,8 @@ public Builder mergeFrom( * * * bytes sha256 = 1; + * + * @return The sha256. */ public com.google.protobuf.ByteString getSha256() { return sha256_; @@ -792,6 +816,9 @@ public com.google.protobuf.ByteString getSha256() { * * * bytes sha256 = 1; + * + * @param value The sha256 to set. + * @return This builder for chaining. */ public Builder setSha256(com.google.protobuf.ByteString value) { if (value == null) { @@ -811,6 +838,8 @@ public Builder setSha256(com.google.protobuf.ByteString value) { * * * bytes sha256 = 1; + * + * @return This builder for chaining. */ public Builder clearSha256() { @@ -887,6 +916,8 @@ public com.google.protobuf.Parser getParserForType() { * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType response_type = 4; * + * + * @return The enum numeric value on the wire for responseType. */ public int getResponseTypeValue() { return responseType_; @@ -902,6 +933,8 @@ public int getResponseTypeValue() { * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType response_type = 4; * + * + * @return The responseType. */ public com.google.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType getResponseType() { @SuppressWarnings("deprecation") @@ -923,6 +956,8 @@ public com.google.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType get * * * .google.cloud.webrisk.v1beta1.ThreatEntryAdditions additions = 5; + * + * @return Whether the additions field is set. */ public boolean hasAdditions() { return additions_ != null; @@ -935,6 +970,8 @@ public boolean hasAdditions() { * * * .google.cloud.webrisk.v1beta1.ThreatEntryAdditions additions = 5; + * + * @return The additions. */ public com.google.webrisk.v1beta1.ThreatEntryAdditions getAdditions() { return additions_ == null @@ -965,6 +1002,8 @@ public com.google.webrisk.v1beta1.ThreatEntryAdditionsOrBuilder getAdditionsOrBu * * * .google.cloud.webrisk.v1beta1.ThreatEntryRemovals removals = 6; + * + * @return Whether the removals field is set. */ public boolean hasRemovals() { return removals_ != null; @@ -978,6 +1017,8 @@ public boolean hasRemovals() { * * * .google.cloud.webrisk.v1beta1.ThreatEntryRemovals removals = 6; + * + * @return The removals. */ public com.google.webrisk.v1beta1.ThreatEntryRemovals getRemovals() { return removals_ == null @@ -1008,6 +1049,8 @@ public com.google.webrisk.v1beta1.ThreatEntryRemovalsOrBuilder getRemovalsOrBuil * * * bytes new_version_token = 7; + * + * @return The newVersionToken. */ public com.google.protobuf.ByteString getNewVersionToken() { return newVersionToken_; @@ -1026,6 +1069,8 @@ public com.google.protobuf.ByteString getNewVersionToken() { * * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.Checksum checksum = 8; + * + * @return Whether the checksum field is set. */ public boolean hasChecksum() { return checksum_ != null; @@ -1041,6 +1086,8 @@ public boolean hasChecksum() { * * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.Checksum checksum = 8; + * + * @return The checksum. */ public com.google.webrisk.v1beta1.ComputeThreatListDiffResponse.Checksum getChecksum() { return checksum_ == null @@ -1077,6 +1124,8 @@ public com.google.webrisk.v1beta1.ComputeThreatListDiffResponse.Checksum getChec * * * .google.protobuf.Timestamp recommended_next_diff = 2; + * + * @return Whether the recommendedNextDiff field is set. */ public boolean hasRecommendedNextDiff() { return recommendedNextDiff_ != null; @@ -1092,6 +1141,8 @@ public boolean hasRecommendedNextDiff() { * * * .google.protobuf.Timestamp recommended_next_diff = 2; + * + * @return The recommendedNextDiff. */ public com.google.protobuf.Timestamp getRecommendedNextDiff() { return recommendedNextDiff_ == null @@ -1569,6 +1620,8 @@ public Builder mergeFrom( * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType response_type = 4; * + * + * @return The enum numeric value on the wire for responseType. */ public int getResponseTypeValue() { return responseType_; @@ -1584,6 +1637,9 @@ public int getResponseTypeValue() { * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType response_type = 4; * + * + * @param value The enum numeric value on the wire for responseType to set. + * @return This builder for chaining. */ public Builder setResponseTypeValue(int value) { responseType_ = value; @@ -1601,6 +1657,8 @@ public Builder setResponseTypeValue(int value) { * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType response_type = 4; * + * + * @return The responseType. */ public com.google.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType getResponseType() { @SuppressWarnings("deprecation") @@ -1622,6 +1680,9 @@ public com.google.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType get * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType response_type = 4; * + * + * @param value The responseType to set. + * @return This builder for chaining. */ public Builder setResponseType( com.google.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType value) { @@ -1644,6 +1705,8 @@ public Builder setResponseType( * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType response_type = 4; * + * + * @return This builder for chaining. */ public Builder clearResponseType() { @@ -1666,6 +1729,8 @@ public Builder clearResponseType() { * * * .google.cloud.webrisk.v1beta1.ThreatEntryAdditions additions = 5; + * + * @return Whether the additions field is set. */ public boolean hasAdditions() { return additionsBuilder_ != null || additions_ != null; @@ -1678,6 +1743,8 @@ public boolean hasAdditions() { * * * .google.cloud.webrisk.v1beta1.ThreatEntryAdditions additions = 5; + * + * @return The additions. */ public com.google.webrisk.v1beta1.ThreatEntryAdditions getAdditions() { if (additionsBuilder_ == null) { @@ -1849,6 +1916,8 @@ public com.google.webrisk.v1beta1.ThreatEntryAdditionsOrBuilder getAdditionsOrBu * * * .google.cloud.webrisk.v1beta1.ThreatEntryRemovals removals = 6; + * + * @return Whether the removals field is set. */ public boolean hasRemovals() { return removalsBuilder_ != null || removals_ != null; @@ -1862,6 +1931,8 @@ public boolean hasRemovals() { * * * .google.cloud.webrisk.v1beta1.ThreatEntryRemovals removals = 6; + * + * @return The removals. */ public com.google.webrisk.v1beta1.ThreatEntryRemovals getRemovals() { if (removalsBuilder_ == null) { @@ -2034,6 +2105,8 @@ public com.google.webrisk.v1beta1.ThreatEntryRemovalsOrBuilder getRemovalsOrBuil * * * bytes new_version_token = 7; + * + * @return The newVersionToken. */ public com.google.protobuf.ByteString getNewVersionToken() { return newVersionToken_; @@ -2046,6 +2119,9 @@ public com.google.protobuf.ByteString getNewVersionToken() { * * * bytes new_version_token = 7; + * + * @param value The newVersionToken to set. + * @return This builder for chaining. */ public Builder setNewVersionToken(com.google.protobuf.ByteString value) { if (value == null) { @@ -2064,6 +2140,8 @@ public Builder setNewVersionToken(com.google.protobuf.ByteString value) { * * * bytes new_version_token = 7; + * + * @return This builder for chaining. */ public Builder clearNewVersionToken() { @@ -2090,6 +2168,8 @@ public Builder clearNewVersionToken() { * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.Checksum checksum = 8; * + * + * @return Whether the checksum field is set. */ public boolean hasChecksum() { return checksumBuilder_ != null || checksum_ != null; @@ -2106,6 +2186,8 @@ public boolean hasChecksum() { * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.Checksum checksum = 8; * + * + * @return The checksum. */ public com.google.webrisk.v1beta1.ComputeThreatListDiffResponse.Checksum getChecksum() { if (checksumBuilder_ == null) { @@ -2312,6 +2394,8 @@ public Builder clearChecksum() { * * * .google.protobuf.Timestamp recommended_next_diff = 2; + * + * @return Whether the recommendedNextDiff field is set. */ public boolean hasRecommendedNextDiff() { return recommendedNextDiffBuilder_ != null || recommendedNextDiff_ != null; @@ -2327,6 +2411,8 @@ public boolean hasRecommendedNextDiff() { * * * .google.protobuf.Timestamp recommended_next_diff = 2; + * + * @return The recommendedNextDiff. */ public com.google.protobuf.Timestamp getRecommendedNextDiff() { if (recommendedNextDiffBuilder_ == null) { diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponseOrBuilder.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponseOrBuilder.java index fd394425..3014f033 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponseOrBuilder.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ComputeThreatListDiffResponseOrBuilder.java @@ -34,6 +34,8 @@ public interface ComputeThreatListDiffResponseOrBuilder * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType response_type = 4; * + * + * @return The enum numeric value on the wire for responseType. */ int getResponseTypeValue(); /** @@ -47,6 +49,8 @@ public interface ComputeThreatListDiffResponseOrBuilder * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType response_type = 4; * + * + * @return The responseType. */ com.google.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType getResponseType(); @@ -58,6 +62,8 @@ public interface ComputeThreatListDiffResponseOrBuilder * * * .google.cloud.webrisk.v1beta1.ThreatEntryAdditions additions = 5; + * + * @return Whether the additions field is set. */ boolean hasAdditions(); /** @@ -68,6 +74,8 @@ public interface ComputeThreatListDiffResponseOrBuilder * * * .google.cloud.webrisk.v1beta1.ThreatEntryAdditions additions = 5; + * + * @return The additions. */ com.google.webrisk.v1beta1.ThreatEntryAdditions getAdditions(); /** @@ -90,6 +98,8 @@ public interface ComputeThreatListDiffResponseOrBuilder * * * .google.cloud.webrisk.v1beta1.ThreatEntryRemovals removals = 6; + * + * @return Whether the removals field is set. */ boolean hasRemovals(); /** @@ -101,6 +111,8 @@ public interface ComputeThreatListDiffResponseOrBuilder * * * .google.cloud.webrisk.v1beta1.ThreatEntryRemovals removals = 6; + * + * @return The removals. */ com.google.webrisk.v1beta1.ThreatEntryRemovals getRemovals(); /** @@ -123,6 +135,8 @@ public interface ComputeThreatListDiffResponseOrBuilder * * * bytes new_version_token = 7; + * + * @return The newVersionToken. */ com.google.protobuf.ByteString getNewVersionToken(); @@ -137,6 +151,8 @@ public interface ComputeThreatListDiffResponseOrBuilder * * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.Checksum checksum = 8; + * + * @return Whether the checksum field is set. */ boolean hasChecksum(); /** @@ -150,6 +166,8 @@ public interface ComputeThreatListDiffResponseOrBuilder * * * .google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.Checksum checksum = 8; + * + * @return The checksum. */ com.google.webrisk.v1beta1.ComputeThreatListDiffResponse.Checksum getChecksum(); /** @@ -177,6 +195,8 @@ public interface ComputeThreatListDiffResponseOrBuilder * * * .google.protobuf.Timestamp recommended_next_diff = 2; + * + * @return Whether the recommendedNextDiff field is set. */ boolean hasRecommendedNextDiff(); /** @@ -190,6 +210,8 @@ public interface ComputeThreatListDiffResponseOrBuilder * * * .google.protobuf.Timestamp recommended_next_diff = 2; + * + * @return The recommendedNextDiff. */ com.google.protobuf.Timestamp getRecommendedNextDiff(); /** diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawHashes.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawHashes.java index 7273524f..b329fbed 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawHashes.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawHashes.java @@ -47,6 +47,12 @@ private RawHashes() { rawHashes_ = com.google.protobuf.ByteString.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RawHashes(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -60,7 +66,6 @@ private RawHashes( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -126,6 +131,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * int32 prefix_size = 1; + * + * @return The prefixSize. */ public int getPrefixSize() { return prefixSize_; @@ -143,6 +150,8 @@ public int getPrefixSize() { * * * bytes raw_hashes = 2; + * + * @return The rawHashes. */ public com.google.protobuf.ByteString getRawHashes() { return rawHashes_; @@ -491,6 +500,8 @@ public Builder mergeFrom( * * * int32 prefix_size = 1; + * + * @return The prefixSize. */ public int getPrefixSize() { return prefixSize_; @@ -504,6 +515,9 @@ public int getPrefixSize() { * * * int32 prefix_size = 1; + * + * @param value The prefixSize to set. + * @return This builder for chaining. */ public Builder setPrefixSize(int value) { @@ -520,6 +534,8 @@ public Builder setPrefixSize(int value) { * * * int32 prefix_size = 1; + * + * @return This builder for chaining. */ public Builder clearPrefixSize() { @@ -539,6 +555,8 @@ public Builder clearPrefixSize() { * * * bytes raw_hashes = 2; + * + * @return The rawHashes. */ public com.google.protobuf.ByteString getRawHashes() { return rawHashes_; @@ -553,6 +571,9 @@ public com.google.protobuf.ByteString getRawHashes() { * * * bytes raw_hashes = 2; + * + * @param value The rawHashes to set. + * @return This builder for chaining. */ public Builder setRawHashes(com.google.protobuf.ByteString value) { if (value == null) { @@ -573,6 +594,8 @@ public Builder setRawHashes(com.google.protobuf.ByteString value) { * * * bytes raw_hashes = 2; + * + * @return This builder for chaining. */ public Builder clearRawHashes() { diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawHashesOrBuilder.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawHashesOrBuilder.java index 5b869b23..787e0116 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawHashesOrBuilder.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawHashesOrBuilder.java @@ -32,6 +32,8 @@ public interface RawHashesOrBuilder * * * int32 prefix_size = 1; + * + * @return The prefixSize. */ int getPrefixSize(); @@ -45,6 +47,8 @@ public interface RawHashesOrBuilder * * * bytes raw_hashes = 2; + * + * @return The rawHashes. */ com.google.protobuf.ByteString getRawHashes(); } diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawIndices.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawIndices.java index ec0630d8..702dd775 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawIndices.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawIndices.java @@ -41,6 +41,12 @@ private RawIndices() { indices_ = emptyIntList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RawIndices(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -135,6 +141,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * repeated int32 indices = 1; + * + * @return A list containing the indices. */ public java.util.List getIndicesList() { return indices_; @@ -147,6 +155,8 @@ public java.util.List getIndicesList() { * * * repeated int32 indices = 1; + * + * @return The count of indices. */ public int getIndicesCount() { return indices_.size(); @@ -159,6 +169,9 @@ public int getIndicesCount() { * * * repeated int32 indices = 1; + * + * @param index The index of the element to return. + * @return The indices at the given index. */ public int getIndices(int index) { return indices_.getInt(index); @@ -525,6 +538,8 @@ private void ensureIndicesIsMutable() { * * * repeated int32 indices = 1; + * + * @return A list containing the indices. */ public java.util.List getIndicesList() { return ((bitField0_ & 0x00000001) != 0) @@ -539,6 +554,8 @@ public java.util.List getIndicesList() { * * * repeated int32 indices = 1; + * + * @return The count of indices. */ public int getIndicesCount() { return indices_.size(); @@ -551,6 +568,9 @@ public int getIndicesCount() { * * * repeated int32 indices = 1; + * + * @param index The index of the element to return. + * @return The indices at the given index. */ public int getIndices(int index) { return indices_.getInt(index); @@ -563,6 +583,10 @@ public int getIndices(int index) { * * * repeated int32 indices = 1; + * + * @param index The index to set the value at. + * @param value The indices to set. + * @return This builder for chaining. */ public Builder setIndices(int index, int value) { ensureIndicesIsMutable(); @@ -578,6 +602,9 @@ public Builder setIndices(int index, int value) { * * * repeated int32 indices = 1; + * + * @param value The indices to add. + * @return This builder for chaining. */ public Builder addIndices(int value) { ensureIndicesIsMutable(); @@ -593,6 +620,9 @@ public Builder addIndices(int value) { * * * repeated int32 indices = 1; + * + * @param values The indices to add. + * @return This builder for chaining. */ public Builder addAllIndices(java.lang.Iterable values) { ensureIndicesIsMutable(); @@ -608,6 +638,8 @@ public Builder addAllIndices(java.lang.Iterable val * * * repeated int32 indices = 1; + * + * @return This builder for chaining. */ public Builder clearIndices() { indices_ = emptyIntList(); diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawIndicesOrBuilder.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawIndicesOrBuilder.java index 0e49cb05..59b2ae5c 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawIndicesOrBuilder.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RawIndicesOrBuilder.java @@ -31,6 +31,8 @@ public interface RawIndicesOrBuilder * * * repeated int32 indices = 1; + * + * @return A list containing the indices. */ java.util.List getIndicesList(); /** @@ -41,6 +43,8 @@ public interface RawIndicesOrBuilder * * * repeated int32 indices = 1; + * + * @return The count of indices. */ int getIndicesCount(); /** @@ -51,6 +55,9 @@ public interface RawIndicesOrBuilder * * * repeated int32 indices = 1; + * + * @param index The index of the element to return. + * @return The indices at the given index. */ int getIndices(int index); } diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RiceDeltaEncoding.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RiceDeltaEncoding.java index d315f0a4..00a43cd3 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RiceDeltaEncoding.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RiceDeltaEncoding.java @@ -42,6 +42,12 @@ private RiceDeltaEncoding() { encodedData_ = com.google.protobuf.ByteString.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RiceDeltaEncoding(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -55,7 +61,6 @@ private RiceDeltaEncoding( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -132,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * int64 first_value = 1; + * + * @return The firstValue. */ public long getFirstValue() { return firstValue_; @@ -148,6 +155,8 @@ public long getFirstValue() { * * * int32 rice_parameter = 2; + * + * @return The riceParameter. */ public int getRiceParameter() { return riceParameter_; @@ -165,6 +174,8 @@ public int getRiceParameter() { * * * int32 entry_count = 3; + * + * @return The entryCount. */ public int getEntryCount() { return entryCount_; @@ -180,6 +191,8 @@ public int getEntryCount() { * * * bytes encoded_data = 4; + * + * @return The encodedData. */ public com.google.protobuf.ByteString getEncodedData() { return encodedData_; @@ -557,6 +570,8 @@ public Builder mergeFrom( * * * int64 first_value = 1; + * + * @return The firstValue. */ public long getFirstValue() { return firstValue_; @@ -571,6 +586,9 @@ public long getFirstValue() { * * * int64 first_value = 1; + * + * @param value The firstValue to set. + * @return This builder for chaining. */ public Builder setFirstValue(long value) { @@ -588,6 +606,8 @@ public Builder setFirstValue(long value) { * * * int64 first_value = 1; + * + * @return This builder for chaining. */ public Builder clearFirstValue() { @@ -606,6 +626,8 @@ public Builder clearFirstValue() { * * * int32 rice_parameter = 2; + * + * @return The riceParameter. */ public int getRiceParameter() { return riceParameter_; @@ -619,6 +641,9 @@ public int getRiceParameter() { * * * int32 rice_parameter = 2; + * + * @param value The riceParameter to set. + * @return This builder for chaining. */ public Builder setRiceParameter(int value) { @@ -635,6 +660,8 @@ public Builder setRiceParameter(int value) { * * * int32 rice_parameter = 2; + * + * @return This builder for chaining. */ public Builder clearRiceParameter() { @@ -654,6 +681,8 @@ public Builder clearRiceParameter() { * * * int32 entry_count = 3; + * + * @return The entryCount. */ public int getEntryCount() { return entryCount_; @@ -668,6 +697,9 @@ public int getEntryCount() { * * * int32 entry_count = 3; + * + * @param value The entryCount to set. + * @return This builder for chaining. */ public Builder setEntryCount(int value) { @@ -685,6 +717,8 @@ public Builder setEntryCount(int value) { * * * int32 entry_count = 3; + * + * @return This builder for chaining. */ public Builder clearEntryCount() { @@ -702,6 +736,8 @@ public Builder clearEntryCount() { * * * bytes encoded_data = 4; + * + * @return The encodedData. */ public com.google.protobuf.ByteString getEncodedData() { return encodedData_; @@ -714,6 +750,9 @@ public com.google.protobuf.ByteString getEncodedData() { * * * bytes encoded_data = 4; + * + * @param value The encodedData to set. + * @return This builder for chaining. */ public Builder setEncodedData(com.google.protobuf.ByteString value) { if (value == null) { @@ -732,6 +771,8 @@ public Builder setEncodedData(com.google.protobuf.ByteString value) { * * * bytes encoded_data = 4; + * + * @return This builder for chaining. */ public Builder clearEncodedData() { diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RiceDeltaEncodingOrBuilder.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RiceDeltaEncodingOrBuilder.java index 81d9f15c..1ae1a5a6 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RiceDeltaEncodingOrBuilder.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/RiceDeltaEncodingOrBuilder.java @@ -33,6 +33,8 @@ public interface RiceDeltaEncodingOrBuilder * * * int64 first_value = 1; + * + * @return The firstValue. */ long getFirstValue(); @@ -45,6 +47,8 @@ public interface RiceDeltaEncodingOrBuilder * * * int32 rice_parameter = 2; + * + * @return The riceParameter. */ int getRiceParameter(); @@ -58,6 +62,8 @@ public interface RiceDeltaEncodingOrBuilder * * * int32 entry_count = 3; + * + * @return The entryCount. */ int getEntryCount(); @@ -69,6 +75,8 @@ public interface RiceDeltaEncodingOrBuilder * * * bytes encoded_data = 4; + * + * @return The encodedData. */ com.google.protobuf.ByteString getEncodedData(); } diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequest.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequest.java index c15756ae..bda1e4a0 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequest.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequest.java @@ -42,6 +42,12 @@ private SearchHashesRequest() { threatTypes_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchHashesRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -74,9 +80,9 @@ private SearchHashesRequest( case 16: { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { threatTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } threatTypes_.add(rawValue); break; @@ -87,9 +93,9 @@ private SearchHashesRequest( int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { threatTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } threatTypes_.add(rawValue); } @@ -110,7 +116,7 @@ private SearchHashesRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { threatTypes_ = java.util.Collections.unmodifiableList(threatTypes_); } this.unknownFields = unknownFields.build(); @@ -133,7 +139,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.webrisk.v1beta1.SearchHashesRequest.Builder.class); } - private int bitField0_; public static final int HASH_PREFIX_FIELD_NUMBER = 1; private com.google.protobuf.ByteString hashPrefix_; /** @@ -145,6 +150,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * bytes hash_prefix = 1; + * + * @return The hashPrefix. */ public com.google.protobuf.ByteString getHashPrefix() { return hashPrefix_; @@ -174,6 +181,8 @@ public com.google.webrisk.v1beta1.ThreatType convert(java.lang.Integer from) { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the threatTypes. */ public java.util.List getThreatTypesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -190,6 +199,8 @@ public java.util.List getThreatTypesList( * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The threatTypes to add. */ public int getThreatTypesCount() { return threatTypes_.size(); @@ -204,6 +215,9 @@ public int getThreatTypesCount() { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the element to return. + * @return The threatTypes at the given index. */ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { return threatTypes_converter_.convert(threatTypes_.get(index)); @@ -218,6 +232,8 @@ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the enum numeric values on the wire for threatTypes. */ public java.util.List getThreatTypesValueList() { return threatTypes_; @@ -232,6 +248,9 @@ public java.util.List getThreatTypesValueList() { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of threatTypes at the given index. */ public int getThreatTypesValue(int index) { return threatTypes_.get(index); @@ -471,7 +490,7 @@ public Builder clear() { hashPrefix_ = com.google.protobuf.ByteString.EMPTY; threatTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -500,14 +519,12 @@ public com.google.webrisk.v1beta1.SearchHashesRequest buildPartial() { com.google.webrisk.v1beta1.SearchHashesRequest result = new com.google.webrisk.v1beta1.SearchHashesRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.hashPrefix_ = hashPrefix_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { threatTypes_ = java.util.Collections.unmodifiableList(threatTypes_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.threatTypes_ = threatTypes_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -563,7 +580,7 @@ public Builder mergeFrom(com.google.webrisk.v1beta1.SearchHashesRequest other) { if (!other.threatTypes_.isEmpty()) { if (threatTypes_.isEmpty()) { threatTypes_ = other.threatTypes_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureThreatTypesIsMutable(); threatTypes_.addAll(other.threatTypes_); @@ -611,6 +628,8 @@ public Builder mergeFrom( * * * bytes hash_prefix = 1; + * + * @return The hashPrefix. */ public com.google.protobuf.ByteString getHashPrefix() { return hashPrefix_; @@ -624,6 +643,9 @@ public com.google.protobuf.ByteString getHashPrefix() { * * * bytes hash_prefix = 1; + * + * @param value The hashPrefix to set. + * @return This builder for chaining. */ public Builder setHashPrefix(com.google.protobuf.ByteString value) { if (value == null) { @@ -643,6 +665,8 @@ public Builder setHashPrefix(com.google.protobuf.ByteString value) { * * * bytes hash_prefix = 1; + * + * @return This builder for chaining. */ public Builder clearHashPrefix() { @@ -654,9 +678,9 @@ public Builder clearHashPrefix() { private java.util.List threatTypes_ = java.util.Collections.emptyList(); private void ensureThreatTypesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { threatTypes_ = new java.util.ArrayList(threatTypes_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } /** @@ -669,6 +693,8 @@ private void ensureThreatTypesIsMutable() { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the threatTypes. */ public java.util.List getThreatTypesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -685,6 +711,8 @@ public java.util.List getThreatTypesList( * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The count of threatTypes. */ public int getThreatTypesCount() { return threatTypes_.size(); @@ -699,6 +727,9 @@ public int getThreatTypesCount() { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the element to return. + * @return The threatTypes at the given index. */ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { return threatTypes_converter_.convert(threatTypes_.get(index)); @@ -713,6 +744,10 @@ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index to set the value at. + * @param value The threatTypes to set. + * @return This builder for chaining. */ public Builder setThreatTypes(int index, com.google.webrisk.v1beta1.ThreatType value) { if (value == null) { @@ -733,6 +768,9 @@ public Builder setThreatTypes(int index, com.google.webrisk.v1beta1.ThreatType v * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The threatTypes to add. + * @return This builder for chaining. */ public Builder addThreatTypes(com.google.webrisk.v1beta1.ThreatType value) { if (value == null) { @@ -753,6 +791,9 @@ public Builder addThreatTypes(com.google.webrisk.v1beta1.ThreatType value) { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param values The threatTypes to add. + * @return This builder for chaining. */ public Builder addAllThreatTypes( java.lang.Iterable values) { @@ -773,10 +814,12 @@ public Builder addAllThreatTypes( * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return This builder for chaining. */ public Builder clearThreatTypes() { threatTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -790,6 +833,8 @@ public Builder clearThreatTypes() { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the enum numeric values on the wire for threatTypes. */ public java.util.List getThreatTypesValueList() { return java.util.Collections.unmodifiableList(threatTypes_); @@ -804,6 +849,9 @@ public java.util.List getThreatTypesValueList() { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of threatTypes at the given index. */ public int getThreatTypesValue(int index) { return threatTypes_.get(index); @@ -818,6 +866,10 @@ public int getThreatTypesValue(int index) { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of threatTypes at the given index. + * @return This builder for chaining. */ public Builder setThreatTypesValue(int index, int value) { ensureThreatTypesIsMutable(); @@ -835,6 +887,9 @@ public Builder setThreatTypesValue(int index, int value) { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The enum numeric value on the wire for threatTypes to add. + * @return This builder for chaining. */ public Builder addThreatTypesValue(int value) { ensureThreatTypesIsMutable(); @@ -852,6 +907,9 @@ public Builder addThreatTypesValue(int value) { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param values The enum numeric values on the wire for threatTypes to add. + * @return This builder for chaining. */ public Builder addAllThreatTypesValue(java.lang.Iterable values) { ensureThreatTypesIsMutable(); diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequestOrBuilder.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequestOrBuilder.java index 7e5b34d1..63afa6c2 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequestOrBuilder.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesRequestOrBuilder.java @@ -32,6 +32,8 @@ public interface SearchHashesRequestOrBuilder * * * bytes hash_prefix = 1; + * + * @return The hashPrefix. */ com.google.protobuf.ByteString getHashPrefix(); @@ -45,6 +47,8 @@ public interface SearchHashesRequestOrBuilder * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the threatTypes. */ java.util.List getThreatTypesList(); /** @@ -57,6 +61,8 @@ public interface SearchHashesRequestOrBuilder * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The count of threatTypes. */ int getThreatTypesCount(); /** @@ -69,6 +75,9 @@ public interface SearchHashesRequestOrBuilder * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the element to return. + * @return The threatTypes at the given index. */ com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index); /** @@ -81,6 +90,8 @@ public interface SearchHashesRequestOrBuilder * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the enum numeric values on the wire for threatTypes. */ java.util.List getThreatTypesValueList(); /** @@ -93,6 +104,9 @@ public interface SearchHashesRequestOrBuilder * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of threatTypes at the given index. */ int getThreatTypesValue(int index); } diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesResponse.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesResponse.java index 843899fb..d07e79c8 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesResponse.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesResponse.java @@ -33,6 +33,12 @@ private SearchHashesResponse() { threats_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchHashesResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -137,6 +143,8 @@ public interface ThreatHashOrBuilder * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return A list containing the threatTypes. */ java.util.List getThreatTypesList(); /** @@ -148,6 +156,8 @@ public interface ThreatHashOrBuilder * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return The count of threatTypes. */ int getThreatTypesCount(); /** @@ -159,6 +169,9 @@ public interface ThreatHashOrBuilder * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param index The index of the element to return. + * @return The threatTypes at the given index. */ com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index); /** @@ -170,6 +183,8 @@ public interface ThreatHashOrBuilder * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return A list containing the enum numeric values on the wire for threatTypes. */ java.util.List getThreatTypesValueList(); /** @@ -181,6 +196,9 @@ public interface ThreatHashOrBuilder * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of threatTypes at the given index. */ int getThreatTypesValue(int index); @@ -193,6 +211,8 @@ public interface ThreatHashOrBuilder * * * bytes hash = 2; + * + * @return The hash. */ com.google.protobuf.ByteString getHash(); @@ -205,6 +225,8 @@ public interface ThreatHashOrBuilder * * * .google.protobuf.Timestamp expire_time = 3; + * + * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** @@ -216,6 +238,8 @@ public interface ThreatHashOrBuilder * * * .google.protobuf.Timestamp expire_time = 3; + * + * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** @@ -254,6 +278,12 @@ private ThreatHash() { hash_ = com.google.protobuf.ByteString.EMPTY; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ThreatHash(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -360,7 +390,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.webrisk.v1beta1.SearchHashesResponse.ThreatHash.Builder.class); } - private int bitField0_; public static final int THREAT_TYPES_FIELD_NUMBER = 1; private java.util.List threatTypes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< @@ -384,6 +413,8 @@ public com.google.webrisk.v1beta1.ThreatType convert(java.lang.Integer from) { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return A list containing the threatTypes. */ public java.util.List getThreatTypesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -399,6 +430,8 @@ public java.util.List getThreatTypesList( * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param value The threatTypes to add. */ public int getThreatTypesCount() { return threatTypes_.size(); @@ -412,6 +445,9 @@ public int getThreatTypesCount() { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param index The index of the element to return. + * @return The threatTypes at the given index. */ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { return threatTypes_converter_.convert(threatTypes_.get(index)); @@ -425,6 +461,8 @@ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return A list containing the enum numeric values on the wire for threatTypes. */ public java.util.List getThreatTypesValueList() { return threatTypes_; @@ -438,6 +476,9 @@ public java.util.List getThreatTypesValueList() { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of threatTypes at the given index. */ public int getThreatTypesValue(int index) { return threatTypes_.get(index); @@ -456,6 +497,8 @@ public int getThreatTypesValue(int index) { * * * bytes hash = 2; + * + * @return The hash. */ public com.google.protobuf.ByteString getHash() { return hash_; @@ -472,6 +515,8 @@ public com.google.protobuf.ByteString getHash() { * * * .google.protobuf.Timestamp expire_time = 3; + * + * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTime_ != null; @@ -485,6 +530,8 @@ public boolean hasExpireTime() { * * * .google.protobuf.Timestamp expire_time = 3; + * + * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; @@ -789,7 +836,6 @@ public com.google.webrisk.v1beta1.SearchHashesResponse.ThreatHash buildPartial() com.google.webrisk.v1beta1.SearchHashesResponse.ThreatHash result = new com.google.webrisk.v1beta1.SearchHashesResponse.ThreatHash(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { threatTypes_ = java.util.Collections.unmodifiableList(threatTypes_); bitField0_ = (bitField0_ & ~0x00000001); @@ -801,7 +847,6 @@ public com.google.webrisk.v1beta1.SearchHashesResponse.ThreatHash buildPartial() } else { result.expireTime_ = expireTimeBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -920,6 +965,8 @@ private void ensureThreatTypesIsMutable() { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return A list containing the threatTypes. */ public java.util.List getThreatTypesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -935,6 +982,8 @@ public java.util.List getThreatTypesList( * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return The count of threatTypes. */ public int getThreatTypesCount() { return threatTypes_.size(); @@ -948,6 +997,9 @@ public int getThreatTypesCount() { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param index The index of the element to return. + * @return The threatTypes at the given index. */ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { return threatTypes_converter_.convert(threatTypes_.get(index)); @@ -961,6 +1013,10 @@ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param index The index to set the value at. + * @param value The threatTypes to set. + * @return This builder for chaining. */ public Builder setThreatTypes(int index, com.google.webrisk.v1beta1.ThreatType value) { if (value == null) { @@ -980,6 +1036,9 @@ public Builder setThreatTypes(int index, com.google.webrisk.v1beta1.ThreatType v * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param value The threatTypes to add. + * @return This builder for chaining. */ public Builder addThreatTypes(com.google.webrisk.v1beta1.ThreatType value) { if (value == null) { @@ -999,6 +1058,9 @@ public Builder addThreatTypes(com.google.webrisk.v1beta1.ThreatType value) { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param values The threatTypes to add. + * @return This builder for chaining. */ public Builder addAllThreatTypes( java.lang.Iterable values) { @@ -1018,6 +1080,8 @@ public Builder addAllThreatTypes( * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return This builder for chaining. */ public Builder clearThreatTypes() { threatTypes_ = java.util.Collections.emptyList(); @@ -1034,6 +1098,8 @@ public Builder clearThreatTypes() { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return A list containing the enum numeric values on the wire for threatTypes. */ public java.util.List getThreatTypesValueList() { return java.util.Collections.unmodifiableList(threatTypes_); @@ -1047,6 +1113,9 @@ public java.util.List getThreatTypesValueList() { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of threatTypes at the given index. */ public int getThreatTypesValue(int index) { return threatTypes_.get(index); @@ -1060,6 +1129,10 @@ public int getThreatTypesValue(int index) { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of threatTypes at the given index. + * @return This builder for chaining. */ public Builder setThreatTypesValue(int index, int value) { ensureThreatTypesIsMutable(); @@ -1076,6 +1149,9 @@ public Builder setThreatTypesValue(int index, int value) { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param value The enum numeric value on the wire for threatTypes to add. + * @return This builder for chaining. */ public Builder addThreatTypesValue(int value) { ensureThreatTypesIsMutable(); @@ -1092,6 +1168,9 @@ public Builder addThreatTypesValue(int value) { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param values The enum numeric values on the wire for threatTypes to add. + * @return This builder for chaining. */ public Builder addAllThreatTypesValue(java.lang.Iterable values) { ensureThreatTypesIsMutable(); @@ -1112,6 +1191,8 @@ public Builder addAllThreatTypesValue(java.lang.Iterable valu * * * bytes hash = 2; + * + * @return The hash. */ public com.google.protobuf.ByteString getHash() { return hash_; @@ -1125,6 +1206,9 @@ public com.google.protobuf.ByteString getHash() { * * * bytes hash = 2; + * + * @param value The hash to set. + * @return This builder for chaining. */ public Builder setHash(com.google.protobuf.ByteString value) { if (value == null) { @@ -1144,6 +1228,8 @@ public Builder setHash(com.google.protobuf.ByteString value) { * * * bytes hash = 2; + * + * @return This builder for chaining. */ public Builder clearHash() { @@ -1167,6 +1253,8 @@ public Builder clearHash() { * * * .google.protobuf.Timestamp expire_time = 3; + * + * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; @@ -1180,6 +1268,8 @@ public boolean hasExpireTime() { * * * .google.protobuf.Timestamp expire_time = 3; + * + * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { @@ -1395,7 +1485,6 @@ public com.google.webrisk.v1beta1.SearchHashesResponse.ThreatHash getDefaultInst } } - private int bitField0_; public static final int THREATS_FIELD_NUMBER = 1; private java.util.List threats_; /** @@ -1484,6 +1573,8 @@ public com.google.webrisk.v1beta1.SearchHashesResponse.ThreatHashOrBuilder getTh * * * .google.protobuf.Timestamp negative_expire_time = 2; + * + * @return Whether the negativeExpireTime field is set. */ public boolean hasNegativeExpireTime() { return negativeExpireTime_ != null; @@ -1497,6 +1588,8 @@ public boolean hasNegativeExpireTime() { * * * .google.protobuf.Timestamp negative_expire_time = 2; + * + * @return The negativeExpireTime. */ public com.google.protobuf.Timestamp getNegativeExpireTime() { return negativeExpireTime_ == null @@ -1771,7 +1864,6 @@ public com.google.webrisk.v1beta1.SearchHashesResponse buildPartial() { com.google.webrisk.v1beta1.SearchHashesResponse result = new com.google.webrisk.v1beta1.SearchHashesResponse(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (threatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { threats_ = java.util.Collections.unmodifiableList(threats_); @@ -1786,7 +1878,6 @@ public com.google.webrisk.v1beta1.SearchHashesResponse buildPartial() { } else { result.negativeExpireTime_ = negativeExpireTimeBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -2314,6 +2405,8 @@ public com.google.webrisk.v1beta1.SearchHashesResponse.ThreatHash.Builder addThr * * * .google.protobuf.Timestamp negative_expire_time = 2; + * + * @return Whether the negativeExpireTime field is set. */ public boolean hasNegativeExpireTime() { return negativeExpireTimeBuilder_ != null || negativeExpireTime_ != null; @@ -2327,6 +2420,8 @@ public boolean hasNegativeExpireTime() { * * * .google.protobuf.Timestamp negative_expire_time = 2; + * + * @return The negativeExpireTime. */ public com.google.protobuf.Timestamp getNegativeExpireTime() { if (negativeExpireTimeBuilder_ == null) { diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesResponseOrBuilder.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesResponseOrBuilder.java index 756fed58..5bca6814 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesResponseOrBuilder.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchHashesResponseOrBuilder.java @@ -95,6 +95,8 @@ com.google.webrisk.v1beta1.SearchHashesResponse.ThreatHashOrBuilder getThreatsOr * * * .google.protobuf.Timestamp negative_expire_time = 2; + * + * @return Whether the negativeExpireTime field is set. */ boolean hasNegativeExpireTime(); /** @@ -106,6 +108,8 @@ com.google.webrisk.v1beta1.SearchHashesResponse.ThreatHashOrBuilder getThreatsOr * * * .google.protobuf.Timestamp negative_expire_time = 2; + * + * @return The negativeExpireTime. */ com.google.protobuf.Timestamp getNegativeExpireTime(); /** diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequest.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequest.java index 7220fe8e..0ac02880 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequest.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequest.java @@ -42,6 +42,12 @@ private SearchUrisRequest() { threatTypes_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchUrisRequest(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -76,9 +82,9 @@ private SearchUrisRequest( case 16: { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { threatTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } threatTypes_.add(rawValue); break; @@ -89,9 +95,9 @@ private SearchUrisRequest( int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { threatTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } threatTypes_.add(rawValue); } @@ -112,7 +118,7 @@ private SearchUrisRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { threatTypes_ = java.util.Collections.unmodifiableList(threatTypes_); } this.unknownFields = unknownFields.build(); @@ -135,7 +141,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.webrisk.v1beta1.SearchUrisRequest.Builder.class); } - private int bitField0_; public static final int URI_FIELD_NUMBER = 1; private volatile java.lang.Object uri_; /** @@ -146,6 +151,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; @@ -166,6 +173,8 @@ public java.lang.String getUri() { * * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; @@ -203,6 +212,8 @@ public com.google.webrisk.v1beta1.ThreatType convert(java.lang.Integer from) { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the threatTypes. */ public java.util.List getThreatTypesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -219,6 +230,8 @@ public java.util.List getThreatTypesList( * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The threatTypes to add. */ public int getThreatTypesCount() { return threatTypes_.size(); @@ -233,6 +246,9 @@ public int getThreatTypesCount() { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the element to return. + * @return The threatTypes at the given index. */ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { return threatTypes_converter_.convert(threatTypes_.get(index)); @@ -247,6 +263,8 @@ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the enum numeric values on the wire for threatTypes. */ public java.util.List getThreatTypesValueList() { return threatTypes_; @@ -261,6 +279,9 @@ public java.util.List getThreatTypesValueList() { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of threatTypes at the given index. */ public int getThreatTypesValue(int index) { return threatTypes_.get(index); @@ -500,7 +521,7 @@ public Builder clear() { uri_ = ""; threatTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -529,14 +550,12 @@ public com.google.webrisk.v1beta1.SearchUrisRequest buildPartial() { com.google.webrisk.v1beta1.SearchUrisRequest result = new com.google.webrisk.v1beta1.SearchUrisRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.uri_ = uri_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { threatTypes_ = java.util.Collections.unmodifiableList(threatTypes_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.threatTypes_ = threatTypes_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -593,7 +612,7 @@ public Builder mergeFrom(com.google.webrisk.v1beta1.SearchUrisRequest other) { if (!other.threatTypes_.isEmpty()) { if (threatTypes_.isEmpty()) { threatTypes_ = other.threatTypes_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureThreatTypesIsMutable(); threatTypes_.addAll(other.threatTypes_); @@ -640,6 +659,8 @@ public Builder mergeFrom( * * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; @@ -660,6 +681,8 @@ public java.lang.String getUri() { * * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; @@ -680,6 +703,9 @@ public com.google.protobuf.ByteString getUriBytes() { * * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The uri to set. + * @return This builder for chaining. */ public Builder setUri(java.lang.String value) { if (value == null) { @@ -698,6 +724,8 @@ public Builder setUri(java.lang.String value) { * * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearUri() { @@ -713,6 +741,9 @@ public Builder clearUri() { * * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. */ public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -728,9 +759,9 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { private java.util.List threatTypes_ = java.util.Collections.emptyList(); private void ensureThreatTypesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { threatTypes_ = new java.util.ArrayList(threatTypes_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } /** @@ -743,6 +774,8 @@ private void ensureThreatTypesIsMutable() { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the threatTypes. */ public java.util.List getThreatTypesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -759,6 +792,8 @@ public java.util.List getThreatTypesList( * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The count of threatTypes. */ public int getThreatTypesCount() { return threatTypes_.size(); @@ -773,6 +808,9 @@ public int getThreatTypesCount() { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the element to return. + * @return The threatTypes at the given index. */ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { return threatTypes_converter_.convert(threatTypes_.get(index)); @@ -787,6 +825,10 @@ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index to set the value at. + * @param value The threatTypes to set. + * @return This builder for chaining. */ public Builder setThreatTypes(int index, com.google.webrisk.v1beta1.ThreatType value) { if (value == null) { @@ -807,6 +849,9 @@ public Builder setThreatTypes(int index, com.google.webrisk.v1beta1.ThreatType v * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The threatTypes to add. + * @return This builder for chaining. */ public Builder addThreatTypes(com.google.webrisk.v1beta1.ThreatType value) { if (value == null) { @@ -827,6 +872,9 @@ public Builder addThreatTypes(com.google.webrisk.v1beta1.ThreatType value) { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param values The threatTypes to add. + * @return This builder for chaining. */ public Builder addAllThreatTypes( java.lang.Iterable values) { @@ -847,10 +895,12 @@ public Builder addAllThreatTypes( * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return This builder for chaining. */ public Builder clearThreatTypes() { threatTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -864,6 +914,8 @@ public Builder clearThreatTypes() { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the enum numeric values on the wire for threatTypes. */ public java.util.List getThreatTypesValueList() { return java.util.Collections.unmodifiableList(threatTypes_); @@ -878,6 +930,9 @@ public java.util.List getThreatTypesValueList() { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of threatTypes at the given index. */ public int getThreatTypesValue(int index) { return threatTypes_.get(index); @@ -892,6 +947,10 @@ public int getThreatTypesValue(int index) { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of threatTypes at the given index. + * @return This builder for chaining. */ public Builder setThreatTypesValue(int index, int value) { ensureThreatTypesIsMutable(); @@ -909,6 +968,9 @@ public Builder setThreatTypesValue(int index, int value) { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param value The enum numeric value on the wire for threatTypes to add. + * @return This builder for chaining. */ public Builder addThreatTypesValue(int value) { ensureThreatTypesIsMutable(); @@ -926,6 +988,9 @@ public Builder addThreatTypesValue(int value) { * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param values The enum numeric values on the wire for threatTypes to add. + * @return This builder for chaining. */ public Builder addAllThreatTypesValue(java.lang.Iterable values) { ensureThreatTypesIsMutable(); diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequestOrBuilder.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequestOrBuilder.java index af122216..f6587fe8 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequestOrBuilder.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisRequestOrBuilder.java @@ -31,6 +31,8 @@ public interface SearchUrisRequestOrBuilder * * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The uri. */ java.lang.String getUri(); /** @@ -41,6 +43,8 @@ public interface SearchUrisRequestOrBuilder * * * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for uri. */ com.google.protobuf.ByteString getUriBytes(); @@ -54,6 +58,8 @@ public interface SearchUrisRequestOrBuilder * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the threatTypes. */ java.util.List getThreatTypesList(); /** @@ -66,6 +72,8 @@ public interface SearchUrisRequestOrBuilder * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return The count of threatTypes. */ int getThreatTypesCount(); /** @@ -78,6 +86,9 @@ public interface SearchUrisRequestOrBuilder * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the element to return. + * @return The threatTypes at the given index. */ com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index); /** @@ -90,6 +101,8 @@ public interface SearchUrisRequestOrBuilder * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @return A list containing the enum numeric values on the wire for threatTypes. */ java.util.List getThreatTypesValueList(); /** @@ -102,6 +115,9 @@ public interface SearchUrisRequestOrBuilder * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of threatTypes at the given index. */ int getThreatTypesValue(int index); } diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisResponse.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisResponse.java index 469913f3..9cb9d72f 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisResponse.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisResponse.java @@ -31,6 +31,12 @@ private SearchUrisResponse(com.google.protobuf.GeneratedMessageV3.Builder bui private SearchUrisResponse() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchUrisResponse(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -44,7 +50,6 @@ private SearchUrisResponse( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -119,6 +124,8 @@ public interface ThreatUriOrBuilder * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return A list containing the threatTypes. */ java.util.List getThreatTypesList(); /** @@ -129,6 +136,8 @@ public interface ThreatUriOrBuilder * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return The count of threatTypes. */ int getThreatTypesCount(); /** @@ -139,6 +148,9 @@ public interface ThreatUriOrBuilder * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param index The index of the element to return. + * @return The threatTypes at the given index. */ com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index); /** @@ -149,6 +161,8 @@ public interface ThreatUriOrBuilder * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return A list containing the enum numeric values on the wire for threatTypes. */ java.util.List getThreatTypesValueList(); /** @@ -159,6 +173,9 @@ public interface ThreatUriOrBuilder * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of threatTypes at the given index. */ int getThreatTypesValue(int index); @@ -171,6 +188,8 @@ public interface ThreatUriOrBuilder * * * .google.protobuf.Timestamp expire_time = 2; + * + * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** @@ -182,6 +201,8 @@ public interface ThreatUriOrBuilder * * * .google.protobuf.Timestamp expire_time = 2; + * + * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** @@ -219,6 +240,12 @@ private ThreatUri() { threatTypes_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ThreatUri(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -320,7 +347,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.webrisk.v1beta1.SearchUrisResponse.ThreatUri.Builder.class); } - private int bitField0_; public static final int THREAT_TYPES_FIELD_NUMBER = 1; private java.util.List threatTypes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< @@ -343,6 +369,8 @@ public com.google.webrisk.v1beta1.ThreatType convert(java.lang.Integer from) { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return A list containing the threatTypes. */ public java.util.List getThreatTypesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -357,6 +385,8 @@ public java.util.List getThreatTypesList( * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param value The threatTypes to add. */ public int getThreatTypesCount() { return threatTypes_.size(); @@ -369,6 +399,9 @@ public int getThreatTypesCount() { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param index The index of the element to return. + * @return The threatTypes at the given index. */ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { return threatTypes_converter_.convert(threatTypes_.get(index)); @@ -381,6 +414,8 @@ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return A list containing the enum numeric values on the wire for threatTypes. */ public java.util.List getThreatTypesValueList() { return threatTypes_; @@ -393,6 +428,9 @@ public java.util.List getThreatTypesValueList() { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of threatTypes at the given index. */ public int getThreatTypesValue(int index) { return threatTypes_.get(index); @@ -411,6 +449,8 @@ public int getThreatTypesValue(int index) { * * * .google.protobuf.Timestamp expire_time = 2; + * + * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTime_ != null; @@ -424,6 +464,8 @@ public boolean hasExpireTime() { * * * .google.protobuf.Timestamp expire_time = 2; + * + * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; @@ -716,7 +758,6 @@ public com.google.webrisk.v1beta1.SearchUrisResponse.ThreatUri buildPartial() { com.google.webrisk.v1beta1.SearchUrisResponse.ThreatUri result = new com.google.webrisk.v1beta1.SearchUrisResponse.ThreatUri(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) != 0)) { threatTypes_ = java.util.Collections.unmodifiableList(threatTypes_); bitField0_ = (bitField0_ & ~0x00000001); @@ -727,7 +768,6 @@ public com.google.webrisk.v1beta1.SearchUrisResponse.ThreatUri buildPartial() { } else { result.expireTime_ = expireTimeBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -841,6 +881,8 @@ private void ensureThreatTypesIsMutable() { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return A list containing the threatTypes. */ public java.util.List getThreatTypesList() { return new com.google.protobuf.Internal.ListAdapter< @@ -855,6 +897,8 @@ public java.util.List getThreatTypesList( * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return The count of threatTypes. */ public int getThreatTypesCount() { return threatTypes_.size(); @@ -867,6 +911,9 @@ public int getThreatTypesCount() { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param index The index of the element to return. + * @return The threatTypes at the given index. */ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { return threatTypes_converter_.convert(threatTypes_.get(index)); @@ -879,6 +926,10 @@ public com.google.webrisk.v1beta1.ThreatType getThreatTypes(int index) { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param index The index to set the value at. + * @param value The threatTypes to set. + * @return This builder for chaining. */ public Builder setThreatTypes(int index, com.google.webrisk.v1beta1.ThreatType value) { if (value == null) { @@ -897,6 +948,9 @@ public Builder setThreatTypes(int index, com.google.webrisk.v1beta1.ThreatType v * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param value The threatTypes to add. + * @return This builder for chaining. */ public Builder addThreatTypes(com.google.webrisk.v1beta1.ThreatType value) { if (value == null) { @@ -915,6 +969,9 @@ public Builder addThreatTypes(com.google.webrisk.v1beta1.ThreatType value) { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param values The threatTypes to add. + * @return This builder for chaining. */ public Builder addAllThreatTypes( java.lang.Iterable values) { @@ -933,6 +990,8 @@ public Builder addAllThreatTypes( * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return This builder for chaining. */ public Builder clearThreatTypes() { threatTypes_ = java.util.Collections.emptyList(); @@ -948,6 +1007,8 @@ public Builder clearThreatTypes() { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @return A list containing the enum numeric values on the wire for threatTypes. */ public java.util.List getThreatTypesValueList() { return java.util.Collections.unmodifiableList(threatTypes_); @@ -960,6 +1021,9 @@ public java.util.List getThreatTypesValueList() { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of threatTypes at the given index. */ public int getThreatTypesValue(int index) { return threatTypes_.get(index); @@ -972,6 +1036,10 @@ public int getThreatTypesValue(int index) { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of threatTypes at the given index. + * @return This builder for chaining. */ public Builder setThreatTypesValue(int index, int value) { ensureThreatTypesIsMutable(); @@ -987,6 +1055,9 @@ public Builder setThreatTypesValue(int index, int value) { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param value The enum numeric value on the wire for threatTypes to add. + * @return This builder for chaining. */ public Builder addThreatTypesValue(int value) { ensureThreatTypesIsMutable(); @@ -1002,6 +1073,9 @@ public Builder addThreatTypesValue(int value) { * * * repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1; + * + * @param values The enum numeric values on the wire for threatTypes to add. + * @return This builder for chaining. */ public Builder addAllThreatTypesValue(java.lang.Iterable values) { ensureThreatTypesIsMutable(); @@ -1027,6 +1101,8 @@ public Builder addAllThreatTypesValue(java.lang.Iterable valu * * * .google.protobuf.Timestamp expire_time = 2; + * + * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; @@ -1040,6 +1116,8 @@ public boolean hasExpireTime() { * * * .google.protobuf.Timestamp expire_time = 2; + * + * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { @@ -1264,6 +1342,8 @@ public com.google.webrisk.v1beta1.SearchUrisResponse.ThreatUri getDefaultInstanc * * * .google.cloud.webrisk.v1beta1.SearchUrisResponse.ThreatUri threat = 1; + * + * @return Whether the threat field is set. */ public boolean hasThreat() { return threat_ != null; @@ -1276,6 +1356,8 @@ public boolean hasThreat() { * * * .google.cloud.webrisk.v1beta1.SearchUrisResponse.ThreatUri threat = 1; + * + * @return The threat. */ public com.google.webrisk.v1beta1.SearchUrisResponse.ThreatUri getThreat() { return threat_ == null @@ -1629,6 +1711,8 @@ public Builder mergeFrom( * * * .google.cloud.webrisk.v1beta1.SearchUrisResponse.ThreatUri threat = 1; + * + * @return Whether the threat field is set. */ public boolean hasThreat() { return threatBuilder_ != null || threat_ != null; @@ -1641,6 +1725,8 @@ public boolean hasThreat() { * * * .google.cloud.webrisk.v1beta1.SearchUrisResponse.ThreatUri threat = 1; + * + * @return The threat. */ public com.google.webrisk.v1beta1.SearchUrisResponse.ThreatUri getThreat() { if (threatBuilder_ == null) { diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisResponseOrBuilder.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisResponseOrBuilder.java index 63c86015..e2fe66b8 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisResponseOrBuilder.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/SearchUrisResponseOrBuilder.java @@ -31,6 +31,8 @@ public interface SearchUrisResponseOrBuilder * * * .google.cloud.webrisk.v1beta1.SearchUrisResponse.ThreatUri threat = 1; + * + * @return Whether the threat field is set. */ boolean hasThreat(); /** @@ -41,6 +43,8 @@ public interface SearchUrisResponseOrBuilder * * * .google.cloud.webrisk.v1beta1.SearchUrisResponse.ThreatUri threat = 1; + * + * @return The threat. */ com.google.webrisk.v1beta1.SearchUrisResponse.ThreatUri getThreat(); /** diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryAdditions.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryAdditions.java index 335d79bd..5ef5f93f 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryAdditions.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryAdditions.java @@ -42,6 +42,12 @@ private ThreatEntryAdditions() { rawHashes_ = java.util.Collections.emptyList(); } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ThreatEntryAdditions(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -130,7 +136,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.webrisk.v1beta1.ThreatEntryAdditions.Builder.class); } - private int bitField0_; public static final int RAW_HASHES_FIELD_NUMBER = 1; private java.util.List rawHashes_; /** @@ -212,6 +217,8 @@ public com.google.webrisk.v1beta1.RawHashesOrBuilder getRawHashesOrBuilder(int i * * * .google.cloud.webrisk.v1beta1.RiceDeltaEncoding rice_hashes = 2; + * + * @return Whether the riceHashes field is set. */ public boolean hasRiceHashes() { return riceHashes_ != null; @@ -226,6 +233,8 @@ public boolean hasRiceHashes() { * * * .google.cloud.webrisk.v1beta1.RiceDeltaEncoding rice_hashes = 2; + * + * @return The riceHashes. */ public com.google.webrisk.v1beta1.RiceDeltaEncoding getRiceHashes() { return riceHashes_ == null @@ -510,7 +519,6 @@ public com.google.webrisk.v1beta1.ThreatEntryAdditions buildPartial() { com.google.webrisk.v1beta1.ThreatEntryAdditions result = new com.google.webrisk.v1beta1.ThreatEntryAdditions(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; if (rawHashesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { rawHashes_ = java.util.Collections.unmodifiableList(rawHashes_); @@ -525,7 +533,6 @@ public com.google.webrisk.v1beta1.ThreatEntryAdditions buildPartial() { } else { result.riceHashes_ = riceHashesBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1019,6 +1026,8 @@ public java.util.List getRawHashes * * * .google.cloud.webrisk.v1beta1.RiceDeltaEncoding rice_hashes = 2; + * + * @return Whether the riceHashes field is set. */ public boolean hasRiceHashes() { return riceHashesBuilder_ != null || riceHashes_ != null; @@ -1033,6 +1042,8 @@ public boolean hasRiceHashes() { * * * .google.cloud.webrisk.v1beta1.RiceDeltaEncoding rice_hashes = 2; + * + * @return The riceHashes. */ public com.google.webrisk.v1beta1.RiceDeltaEncoding getRiceHashes() { if (riceHashesBuilder_ == null) { diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryAdditionsOrBuilder.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryAdditionsOrBuilder.java index 06dcdb5f..825b4813 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryAdditionsOrBuilder.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryAdditionsOrBuilder.java @@ -90,6 +90,8 @@ public interface ThreatEntryAdditionsOrBuilder * * * .google.cloud.webrisk.v1beta1.RiceDeltaEncoding rice_hashes = 2; + * + * @return Whether the riceHashes field is set. */ boolean hasRiceHashes(); /** @@ -102,6 +104,8 @@ public interface ThreatEntryAdditionsOrBuilder * * * .google.cloud.webrisk.v1beta1.RiceDeltaEncoding rice_hashes = 2; + * + * @return The riceHashes. */ com.google.webrisk.v1beta1.RiceDeltaEncoding getRiceHashes(); /** diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryRemovals.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryRemovals.java index 46ba0c87..e00730e2 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryRemovals.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryRemovals.java @@ -39,6 +39,12 @@ private ThreatEntryRemovals(com.google.protobuf.GeneratedMessageV3.Builder bu private ThreatEntryRemovals() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ThreatEntryRemovals(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -52,7 +58,6 @@ private ThreatEntryRemovals( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -139,6 +144,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.cloud.webrisk.v1beta1.RawIndices raw_indices = 1; + * + * @return Whether the rawIndices field is set. */ public boolean hasRawIndices() { return rawIndices_ != null; @@ -151,6 +158,8 @@ public boolean hasRawIndices() { * * * .google.cloud.webrisk.v1beta1.RawIndices raw_indices = 1; + * + * @return The rawIndices. */ public com.google.webrisk.v1beta1.RawIndices getRawIndices() { return rawIndices_ == null @@ -183,6 +192,8 @@ public com.google.webrisk.v1beta1.RawIndicesOrBuilder getRawIndicesOrBuilder() { * * * .google.cloud.webrisk.v1beta1.RiceDeltaEncoding rice_indices = 2; + * + * @return Whether the riceIndices field is set. */ public boolean hasRiceIndices() { return riceIndices_ != null; @@ -198,6 +209,8 @@ public boolean hasRiceIndices() { * * * .google.cloud.webrisk.v1beta1.RiceDeltaEncoding rice_indices = 2; + * + * @return The riceIndices. */ public com.google.webrisk.v1beta1.RiceDeltaEncoding getRiceIndices() { return riceIndices_ == null @@ -590,6 +603,8 @@ public Builder mergeFrom( * * * .google.cloud.webrisk.v1beta1.RawIndices raw_indices = 1; + * + * @return Whether the rawIndices field is set. */ public boolean hasRawIndices() { return rawIndicesBuilder_ != null || rawIndices_ != null; @@ -602,6 +617,8 @@ public boolean hasRawIndices() { * * * .google.cloud.webrisk.v1beta1.RawIndices raw_indices = 1; + * + * @return The rawIndices. */ public com.google.webrisk.v1beta1.RawIndices getRawIndices() { if (rawIndicesBuilder_ == null) { @@ -774,6 +791,8 @@ public com.google.webrisk.v1beta1.RawIndicesOrBuilder getRawIndicesOrBuilder() { * * * .google.cloud.webrisk.v1beta1.RiceDeltaEncoding rice_indices = 2; + * + * @return Whether the riceIndices field is set. */ public boolean hasRiceIndices() { return riceIndicesBuilder_ != null || riceIndices_ != null; @@ -789,6 +808,8 @@ public boolean hasRiceIndices() { * * * .google.cloud.webrisk.v1beta1.RiceDeltaEncoding rice_indices = 2; + * + * @return The riceIndices. */ public com.google.webrisk.v1beta1.RiceDeltaEncoding getRiceIndices() { if (riceIndicesBuilder_ == null) { diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryRemovalsOrBuilder.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryRemovalsOrBuilder.java index 2875e4b9..b1a62dda 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryRemovalsOrBuilder.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatEntryRemovalsOrBuilder.java @@ -31,6 +31,8 @@ public interface ThreatEntryRemovalsOrBuilder * * * .google.cloud.webrisk.v1beta1.RawIndices raw_indices = 1; + * + * @return Whether the rawIndices field is set. */ boolean hasRawIndices(); /** @@ -41,6 +43,8 @@ public interface ThreatEntryRemovalsOrBuilder * * * .google.cloud.webrisk.v1beta1.RawIndices raw_indices = 1; + * + * @return The rawIndices. */ com.google.webrisk.v1beta1.RawIndices getRawIndices(); /** @@ -65,6 +69,8 @@ public interface ThreatEntryRemovalsOrBuilder * * * .google.cloud.webrisk.v1beta1.RiceDeltaEncoding rice_indices = 2; + * + * @return Whether the riceIndices field is set. */ boolean hasRiceIndices(); /** @@ -78,6 +84,8 @@ public interface ThreatEntryRemovalsOrBuilder * * * .google.cloud.webrisk.v1beta1.RiceDeltaEncoding rice_indices = 2; + * + * @return The riceIndices. */ com.google.webrisk.v1beta1.RiceDeltaEncoding getRiceIndices(); /** diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatType.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatType.java index 93894458..8e664c41 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatType.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/ThreatType.java @@ -121,12 +121,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ @java.lang.Deprecated public static ThreatType valueOf(int value) { return forNumber(value); } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ public static ThreatType forNumber(int value) { switch (value) { case 0: diff --git a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/WebRiskProto.java b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/WebRiskProto.java index 144d7947..fa0e6c2b 100644 --- a/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/WebRiskProto.java +++ b/proto-google-cloud-webrisk-v1beta1/src/main/java/com/google/webrisk/v1beta1/WebRiskProto.java @@ -183,23 +183,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "sk.V1Beta1\312\002\034Google\\Cloud\\WebRisk\\V1beta" + "1b\006proto3" }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, - assigner); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); internal_static_google_cloud_webrisk_v1beta1_ComputeThreatListDiffRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_webrisk_v1beta1_ComputeThreatListDiffRequest_fieldAccessorTable = diff --git a/synth.metadata b/synth.metadata index 22992774..ae0ca4c8 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-11-19T20:07:43.974685Z", + "updateTime": "2019-12-12T08:56:55.208268Z", "sources": [ { "generator": { "name": "artman", - "version": "0.42.1", - "dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57" + "version": "0.42.2", + "dockerImage": "googleapis/artman@sha256:a86051ce32e2454ca2558ec9e437d46c2184b6dd291f57b0686676d77242658e" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "5af83f47b9656261cafcf88b0b3334521ab266b3", - "internalRef": "281334391" + "sha": "19c4589a3cb44b3679f7b3fba88365b3d055d5f8", + "internalRef": "285013366" } }, {