• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/webrisk/v1/webrisk.proto
18 
19 package com.google.webrisk.v1;
20 
21 /** Protobuf type {@code google.cloud.webrisk.v1.SearchUrisResponse} */
22 public final class SearchUrisResponse extends com.google.protobuf.GeneratedMessageV3
23     implements
24     // @@protoc_insertion_point(message_implements:google.cloud.webrisk.v1.SearchUrisResponse)
25     SearchUrisResponseOrBuilder {
26   private static final long serialVersionUID = 0L;
27   // Use SearchUrisResponse.newBuilder() to construct.
SearchUrisResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)28   private SearchUrisResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
29     super(builder);
30   }
31 
SearchUrisResponse()32   private SearchUrisResponse() {}
33 
34   @java.lang.Override
35   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)36   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
37     return new SearchUrisResponse();
38   }
39 
40   @java.lang.Override
getUnknownFields()41   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
42     return this.unknownFields;
43   }
44 
getDescriptor()45   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
46     return com.google.webrisk.v1.WebRiskProto
47         .internal_static_google_cloud_webrisk_v1_SearchUrisResponse_descriptor;
48   }
49 
50   @java.lang.Override
51   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()52       internalGetFieldAccessorTable() {
53     return com.google.webrisk.v1.WebRiskProto
54         .internal_static_google_cloud_webrisk_v1_SearchUrisResponse_fieldAccessorTable
55         .ensureFieldAccessorsInitialized(
56             com.google.webrisk.v1.SearchUrisResponse.class,
57             com.google.webrisk.v1.SearchUrisResponse.Builder.class);
58   }
59 
60   public interface ThreatUriOrBuilder
61       extends
62       // @@protoc_insertion_point(interface_extends:google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri)
63       com.google.protobuf.MessageOrBuilder {
64 
65     /**
66      *
67      *
68      * <pre>
69      * The ThreatList this threat belongs to.
70      * </pre>
71      *
72      * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
73      *
74      * @return A list containing the threatTypes.
75      */
getThreatTypesList()76     java.util.List<com.google.webrisk.v1.ThreatType> getThreatTypesList();
77     /**
78      *
79      *
80      * <pre>
81      * The ThreatList this threat belongs to.
82      * </pre>
83      *
84      * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
85      *
86      * @return The count of threatTypes.
87      */
getThreatTypesCount()88     int getThreatTypesCount();
89     /**
90      *
91      *
92      * <pre>
93      * The ThreatList this threat belongs to.
94      * </pre>
95      *
96      * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
97      *
98      * @param index The index of the element to return.
99      * @return The threatTypes at the given index.
100      */
getThreatTypes(int index)101     com.google.webrisk.v1.ThreatType getThreatTypes(int index);
102     /**
103      *
104      *
105      * <pre>
106      * The ThreatList this threat belongs to.
107      * </pre>
108      *
109      * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
110      *
111      * @return A list containing the enum numeric values on the wire for threatTypes.
112      */
getThreatTypesValueList()113     java.util.List<java.lang.Integer> getThreatTypesValueList();
114     /**
115      *
116      *
117      * <pre>
118      * The ThreatList this threat belongs to.
119      * </pre>
120      *
121      * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
122      *
123      * @param index The index of the value to return.
124      * @return The enum numeric value on the wire of threatTypes at the given index.
125      */
getThreatTypesValue(int index)126     int getThreatTypesValue(int index);
127 
128     /**
129      *
130      *
131      * <pre>
132      * The cache lifetime for the returned match. Clients must not cache this
133      * response past this timestamp to avoid false positives.
134      * </pre>
135      *
136      * <code>.google.protobuf.Timestamp expire_time = 2;</code>
137      *
138      * @return Whether the expireTime field is set.
139      */
hasExpireTime()140     boolean hasExpireTime();
141     /**
142      *
143      *
144      * <pre>
145      * The cache lifetime for the returned match. Clients must not cache this
146      * response past this timestamp to avoid false positives.
147      * </pre>
148      *
149      * <code>.google.protobuf.Timestamp expire_time = 2;</code>
150      *
151      * @return The expireTime.
152      */
getExpireTime()153     com.google.protobuf.Timestamp getExpireTime();
154     /**
155      *
156      *
157      * <pre>
158      * The cache lifetime for the returned match. Clients must not cache this
159      * response past this timestamp to avoid false positives.
160      * </pre>
161      *
162      * <code>.google.protobuf.Timestamp expire_time = 2;</code>
163      */
getExpireTimeOrBuilder()164     com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
165   }
166   /**
167    *
168    *
169    * <pre>
170    * Contains threat information on a matching uri.
171    * </pre>
172    *
173    * Protobuf type {@code google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri}
174    */
175   public static final class ThreatUri extends com.google.protobuf.GeneratedMessageV3
176       implements
177       // @@protoc_insertion_point(message_implements:google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri)
178       ThreatUriOrBuilder {
179     private static final long serialVersionUID = 0L;
180     // Use ThreatUri.newBuilder() to construct.
ThreatUri(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)181     private ThreatUri(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
182       super(builder);
183     }
184 
ThreatUri()185     private ThreatUri() {
186       threatTypes_ = java.util.Collections.emptyList();
187     }
188 
189     @java.lang.Override
190     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)191     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
192       return new ThreatUri();
193     }
194 
195     @java.lang.Override
getUnknownFields()196     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
197       return this.unknownFields;
198     }
199 
getDescriptor()200     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
201       return com.google.webrisk.v1.WebRiskProto
202           .internal_static_google_cloud_webrisk_v1_SearchUrisResponse_ThreatUri_descriptor;
203     }
204 
205     @java.lang.Override
206     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()207         internalGetFieldAccessorTable() {
208       return com.google.webrisk.v1.WebRiskProto
209           .internal_static_google_cloud_webrisk_v1_SearchUrisResponse_ThreatUri_fieldAccessorTable
210           .ensureFieldAccessorsInitialized(
211               com.google.webrisk.v1.SearchUrisResponse.ThreatUri.class,
212               com.google.webrisk.v1.SearchUrisResponse.ThreatUri.Builder.class);
213     }
214 
215     public static final int THREAT_TYPES_FIELD_NUMBER = 1;
216 
217     @SuppressWarnings("serial")
218     private java.util.List<java.lang.Integer> threatTypes_;
219 
220     private static final com.google.protobuf.Internal.ListAdapter.Converter<
221             java.lang.Integer, com.google.webrisk.v1.ThreatType>
222         threatTypes_converter_ =
223             new com.google.protobuf.Internal.ListAdapter.Converter<
224                 java.lang.Integer, com.google.webrisk.v1.ThreatType>() {
225               public com.google.webrisk.v1.ThreatType convert(java.lang.Integer from) {
226                 com.google.webrisk.v1.ThreatType result =
227                     com.google.webrisk.v1.ThreatType.forNumber(from);
228                 return result == null ? com.google.webrisk.v1.ThreatType.UNRECOGNIZED : result;
229               }
230             };
231     /**
232      *
233      *
234      * <pre>
235      * The ThreatList this threat belongs to.
236      * </pre>
237      *
238      * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
239      *
240      * @return A list containing the threatTypes.
241      */
242     @java.lang.Override
getThreatTypesList()243     public java.util.List<com.google.webrisk.v1.ThreatType> getThreatTypesList() {
244       return new com.google.protobuf.Internal.ListAdapter<
245           java.lang.Integer, com.google.webrisk.v1.ThreatType>(
246           threatTypes_, threatTypes_converter_);
247     }
248     /**
249      *
250      *
251      * <pre>
252      * The ThreatList this threat belongs to.
253      * </pre>
254      *
255      * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
256      *
257      * @return The count of threatTypes.
258      */
259     @java.lang.Override
getThreatTypesCount()260     public int getThreatTypesCount() {
261       return threatTypes_.size();
262     }
263     /**
264      *
265      *
266      * <pre>
267      * The ThreatList this threat belongs to.
268      * </pre>
269      *
270      * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
271      *
272      * @param index The index of the element to return.
273      * @return The threatTypes at the given index.
274      */
275     @java.lang.Override
getThreatTypes(int index)276     public com.google.webrisk.v1.ThreatType getThreatTypes(int index) {
277       return threatTypes_converter_.convert(threatTypes_.get(index));
278     }
279     /**
280      *
281      *
282      * <pre>
283      * The ThreatList this threat belongs to.
284      * </pre>
285      *
286      * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
287      *
288      * @return A list containing the enum numeric values on the wire for threatTypes.
289      */
290     @java.lang.Override
getThreatTypesValueList()291     public java.util.List<java.lang.Integer> getThreatTypesValueList() {
292       return threatTypes_;
293     }
294     /**
295      *
296      *
297      * <pre>
298      * The ThreatList this threat belongs to.
299      * </pre>
300      *
301      * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
302      *
303      * @param index The index of the value to return.
304      * @return The enum numeric value on the wire of threatTypes at the given index.
305      */
306     @java.lang.Override
getThreatTypesValue(int index)307     public int getThreatTypesValue(int index) {
308       return threatTypes_.get(index);
309     }
310 
311     private int threatTypesMemoizedSerializedSize;
312 
313     public static final int EXPIRE_TIME_FIELD_NUMBER = 2;
314     private com.google.protobuf.Timestamp expireTime_;
315     /**
316      *
317      *
318      * <pre>
319      * The cache lifetime for the returned match. Clients must not cache this
320      * response past this timestamp to avoid false positives.
321      * </pre>
322      *
323      * <code>.google.protobuf.Timestamp expire_time = 2;</code>
324      *
325      * @return Whether the expireTime field is set.
326      */
327     @java.lang.Override
hasExpireTime()328     public boolean hasExpireTime() {
329       return expireTime_ != null;
330     }
331     /**
332      *
333      *
334      * <pre>
335      * The cache lifetime for the returned match. Clients must not cache this
336      * response past this timestamp to avoid false positives.
337      * </pre>
338      *
339      * <code>.google.protobuf.Timestamp expire_time = 2;</code>
340      *
341      * @return The expireTime.
342      */
343     @java.lang.Override
getExpireTime()344     public com.google.protobuf.Timestamp getExpireTime() {
345       return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
346     }
347     /**
348      *
349      *
350      * <pre>
351      * The cache lifetime for the returned match. Clients must not cache this
352      * response past this timestamp to avoid false positives.
353      * </pre>
354      *
355      * <code>.google.protobuf.Timestamp expire_time = 2;</code>
356      */
357     @java.lang.Override
getExpireTimeOrBuilder()358     public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
359       return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
360     }
361 
362     private byte memoizedIsInitialized = -1;
363 
364     @java.lang.Override
isInitialized()365     public final boolean isInitialized() {
366       byte isInitialized = memoizedIsInitialized;
367       if (isInitialized == 1) return true;
368       if (isInitialized == 0) return false;
369 
370       memoizedIsInitialized = 1;
371       return true;
372     }
373 
374     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)375     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
376       getSerializedSize();
377       if (getThreatTypesList().size() > 0) {
378         output.writeUInt32NoTag(10);
379         output.writeUInt32NoTag(threatTypesMemoizedSerializedSize);
380       }
381       for (int i = 0; i < threatTypes_.size(); i++) {
382         output.writeEnumNoTag(threatTypes_.get(i));
383       }
384       if (expireTime_ != null) {
385         output.writeMessage(2, getExpireTime());
386       }
387       getUnknownFields().writeTo(output);
388     }
389 
390     @java.lang.Override
getSerializedSize()391     public int getSerializedSize() {
392       int size = memoizedSize;
393       if (size != -1) return size;
394 
395       size = 0;
396       {
397         int dataSize = 0;
398         for (int i = 0; i < threatTypes_.size(); i++) {
399           dataSize +=
400               com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(threatTypes_.get(i));
401         }
402         size += dataSize;
403         if (!getThreatTypesList().isEmpty()) {
404           size += 1;
405           size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
406         }
407         threatTypesMemoizedSerializedSize = dataSize;
408       }
409       if (expireTime_ != null) {
410         size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime());
411       }
412       size += getUnknownFields().getSerializedSize();
413       memoizedSize = size;
414       return size;
415     }
416 
417     @java.lang.Override
equals(final java.lang.Object obj)418     public boolean equals(final java.lang.Object obj) {
419       if (obj == this) {
420         return true;
421       }
422       if (!(obj instanceof com.google.webrisk.v1.SearchUrisResponse.ThreatUri)) {
423         return super.equals(obj);
424       }
425       com.google.webrisk.v1.SearchUrisResponse.ThreatUri other =
426           (com.google.webrisk.v1.SearchUrisResponse.ThreatUri) obj;
427 
428       if (!threatTypes_.equals(other.threatTypes_)) return false;
429       if (hasExpireTime() != other.hasExpireTime()) return false;
430       if (hasExpireTime()) {
431         if (!getExpireTime().equals(other.getExpireTime())) return false;
432       }
433       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
434       return true;
435     }
436 
437     @java.lang.Override
hashCode()438     public int hashCode() {
439       if (memoizedHashCode != 0) {
440         return memoizedHashCode;
441       }
442       int hash = 41;
443       hash = (19 * hash) + getDescriptor().hashCode();
444       if (getThreatTypesCount() > 0) {
445         hash = (37 * hash) + THREAT_TYPES_FIELD_NUMBER;
446         hash = (53 * hash) + threatTypes_.hashCode();
447       }
448       if (hasExpireTime()) {
449         hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
450         hash = (53 * hash) + getExpireTime().hashCode();
451       }
452       hash = (29 * hash) + getUnknownFields().hashCode();
453       memoizedHashCode = hash;
454       return hash;
455     }
456 
parseFrom( java.nio.ByteBuffer data)457     public static com.google.webrisk.v1.SearchUrisResponse.ThreatUri parseFrom(
458         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
459       return PARSER.parseFrom(data);
460     }
461 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)462     public static com.google.webrisk.v1.SearchUrisResponse.ThreatUri parseFrom(
463         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
464         throws com.google.protobuf.InvalidProtocolBufferException {
465       return PARSER.parseFrom(data, extensionRegistry);
466     }
467 
parseFrom( com.google.protobuf.ByteString data)468     public static com.google.webrisk.v1.SearchUrisResponse.ThreatUri parseFrom(
469         com.google.protobuf.ByteString data)
470         throws com.google.protobuf.InvalidProtocolBufferException {
471       return PARSER.parseFrom(data);
472     }
473 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)474     public static com.google.webrisk.v1.SearchUrisResponse.ThreatUri parseFrom(
475         com.google.protobuf.ByteString data,
476         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
477         throws com.google.protobuf.InvalidProtocolBufferException {
478       return PARSER.parseFrom(data, extensionRegistry);
479     }
480 
parseFrom(byte[] data)481     public static com.google.webrisk.v1.SearchUrisResponse.ThreatUri parseFrom(byte[] data)
482         throws com.google.protobuf.InvalidProtocolBufferException {
483       return PARSER.parseFrom(data);
484     }
485 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)486     public static com.google.webrisk.v1.SearchUrisResponse.ThreatUri parseFrom(
487         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
488         throws com.google.protobuf.InvalidProtocolBufferException {
489       return PARSER.parseFrom(data, extensionRegistry);
490     }
491 
parseFrom( java.io.InputStream input)492     public static com.google.webrisk.v1.SearchUrisResponse.ThreatUri parseFrom(
493         java.io.InputStream input) throws java.io.IOException {
494       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
495     }
496 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)497     public static com.google.webrisk.v1.SearchUrisResponse.ThreatUri parseFrom(
498         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
499         throws java.io.IOException {
500       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
501           PARSER, input, extensionRegistry);
502     }
503 
parseDelimitedFrom( java.io.InputStream input)504     public static com.google.webrisk.v1.SearchUrisResponse.ThreatUri parseDelimitedFrom(
505         java.io.InputStream input) throws java.io.IOException {
506       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
507     }
508 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)509     public static com.google.webrisk.v1.SearchUrisResponse.ThreatUri parseDelimitedFrom(
510         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
511         throws java.io.IOException {
512       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
513           PARSER, input, extensionRegistry);
514     }
515 
parseFrom( com.google.protobuf.CodedInputStream input)516     public static com.google.webrisk.v1.SearchUrisResponse.ThreatUri parseFrom(
517         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
518       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
519     }
520 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)521     public static com.google.webrisk.v1.SearchUrisResponse.ThreatUri parseFrom(
522         com.google.protobuf.CodedInputStream input,
523         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
524         throws java.io.IOException {
525       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
526           PARSER, input, extensionRegistry);
527     }
528 
529     @java.lang.Override
newBuilderForType()530     public Builder newBuilderForType() {
531       return newBuilder();
532     }
533 
newBuilder()534     public static Builder newBuilder() {
535       return DEFAULT_INSTANCE.toBuilder();
536     }
537 
newBuilder(com.google.webrisk.v1.SearchUrisResponse.ThreatUri prototype)538     public static Builder newBuilder(com.google.webrisk.v1.SearchUrisResponse.ThreatUri prototype) {
539       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
540     }
541 
542     @java.lang.Override
toBuilder()543     public Builder toBuilder() {
544       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
545     }
546 
547     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)548     protected Builder newBuilderForType(
549         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
550       Builder builder = new Builder(parent);
551       return builder;
552     }
553     /**
554      *
555      *
556      * <pre>
557      * Contains threat information on a matching uri.
558      * </pre>
559      *
560      * Protobuf type {@code google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri}
561      */
562     public static final class Builder
563         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
564         implements
565         // @@protoc_insertion_point(builder_implements:google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri)
566         com.google.webrisk.v1.SearchUrisResponse.ThreatUriOrBuilder {
getDescriptor()567       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
568         return com.google.webrisk.v1.WebRiskProto
569             .internal_static_google_cloud_webrisk_v1_SearchUrisResponse_ThreatUri_descriptor;
570       }
571 
572       @java.lang.Override
573       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()574           internalGetFieldAccessorTable() {
575         return com.google.webrisk.v1.WebRiskProto
576             .internal_static_google_cloud_webrisk_v1_SearchUrisResponse_ThreatUri_fieldAccessorTable
577             .ensureFieldAccessorsInitialized(
578                 com.google.webrisk.v1.SearchUrisResponse.ThreatUri.class,
579                 com.google.webrisk.v1.SearchUrisResponse.ThreatUri.Builder.class);
580       }
581 
582       // Construct using com.google.webrisk.v1.SearchUrisResponse.ThreatUri.newBuilder()
Builder()583       private Builder() {}
584 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)585       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
586         super(parent);
587       }
588 
589       @java.lang.Override
clear()590       public Builder clear() {
591         super.clear();
592         bitField0_ = 0;
593         threatTypes_ = java.util.Collections.emptyList();
594         bitField0_ = (bitField0_ & ~0x00000001);
595         expireTime_ = null;
596         if (expireTimeBuilder_ != null) {
597           expireTimeBuilder_.dispose();
598           expireTimeBuilder_ = null;
599         }
600         return this;
601       }
602 
603       @java.lang.Override
getDescriptorForType()604       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
605         return com.google.webrisk.v1.WebRiskProto
606             .internal_static_google_cloud_webrisk_v1_SearchUrisResponse_ThreatUri_descriptor;
607       }
608 
609       @java.lang.Override
getDefaultInstanceForType()610       public com.google.webrisk.v1.SearchUrisResponse.ThreatUri getDefaultInstanceForType() {
611         return com.google.webrisk.v1.SearchUrisResponse.ThreatUri.getDefaultInstance();
612       }
613 
614       @java.lang.Override
build()615       public com.google.webrisk.v1.SearchUrisResponse.ThreatUri build() {
616         com.google.webrisk.v1.SearchUrisResponse.ThreatUri result = buildPartial();
617         if (!result.isInitialized()) {
618           throw newUninitializedMessageException(result);
619         }
620         return result;
621       }
622 
623       @java.lang.Override
buildPartial()624       public com.google.webrisk.v1.SearchUrisResponse.ThreatUri buildPartial() {
625         com.google.webrisk.v1.SearchUrisResponse.ThreatUri result =
626             new com.google.webrisk.v1.SearchUrisResponse.ThreatUri(this);
627         buildPartialRepeatedFields(result);
628         if (bitField0_ != 0) {
629           buildPartial0(result);
630         }
631         onBuilt();
632         return result;
633       }
634 
buildPartialRepeatedFields( com.google.webrisk.v1.SearchUrisResponse.ThreatUri result)635       private void buildPartialRepeatedFields(
636           com.google.webrisk.v1.SearchUrisResponse.ThreatUri result) {
637         if (((bitField0_ & 0x00000001) != 0)) {
638           threatTypes_ = java.util.Collections.unmodifiableList(threatTypes_);
639           bitField0_ = (bitField0_ & ~0x00000001);
640         }
641         result.threatTypes_ = threatTypes_;
642       }
643 
buildPartial0(com.google.webrisk.v1.SearchUrisResponse.ThreatUri result)644       private void buildPartial0(com.google.webrisk.v1.SearchUrisResponse.ThreatUri result) {
645         int from_bitField0_ = bitField0_;
646         if (((from_bitField0_ & 0x00000002) != 0)) {
647           result.expireTime_ =
648               expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build();
649         }
650       }
651 
652       @java.lang.Override
clone()653       public Builder clone() {
654         return super.clone();
655       }
656 
657       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)658       public Builder setField(
659           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
660         return super.setField(field, value);
661       }
662 
663       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)664       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
665         return super.clearField(field);
666       }
667 
668       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)669       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
670         return super.clearOneof(oneof);
671       }
672 
673       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)674       public Builder setRepeatedField(
675           com.google.protobuf.Descriptors.FieldDescriptor field,
676           int index,
677           java.lang.Object value) {
678         return super.setRepeatedField(field, index, value);
679       }
680 
681       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)682       public Builder addRepeatedField(
683           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
684         return super.addRepeatedField(field, value);
685       }
686 
687       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)688       public Builder mergeFrom(com.google.protobuf.Message other) {
689         if (other instanceof com.google.webrisk.v1.SearchUrisResponse.ThreatUri) {
690           return mergeFrom((com.google.webrisk.v1.SearchUrisResponse.ThreatUri) other);
691         } else {
692           super.mergeFrom(other);
693           return this;
694         }
695       }
696 
mergeFrom(com.google.webrisk.v1.SearchUrisResponse.ThreatUri other)697       public Builder mergeFrom(com.google.webrisk.v1.SearchUrisResponse.ThreatUri other) {
698         if (other == com.google.webrisk.v1.SearchUrisResponse.ThreatUri.getDefaultInstance())
699           return this;
700         if (!other.threatTypes_.isEmpty()) {
701           if (threatTypes_.isEmpty()) {
702             threatTypes_ = other.threatTypes_;
703             bitField0_ = (bitField0_ & ~0x00000001);
704           } else {
705             ensureThreatTypesIsMutable();
706             threatTypes_.addAll(other.threatTypes_);
707           }
708           onChanged();
709         }
710         if (other.hasExpireTime()) {
711           mergeExpireTime(other.getExpireTime());
712         }
713         this.mergeUnknownFields(other.getUnknownFields());
714         onChanged();
715         return this;
716       }
717 
718       @java.lang.Override
isInitialized()719       public final boolean isInitialized() {
720         return true;
721       }
722 
723       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)724       public Builder mergeFrom(
725           com.google.protobuf.CodedInputStream input,
726           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
727           throws java.io.IOException {
728         if (extensionRegistry == null) {
729           throw new java.lang.NullPointerException();
730         }
731         try {
732           boolean done = false;
733           while (!done) {
734             int tag = input.readTag();
735             switch (tag) {
736               case 0:
737                 done = true;
738                 break;
739               case 8:
740                 {
741                   int tmpRaw = input.readEnum();
742                   ensureThreatTypesIsMutable();
743                   threatTypes_.add(tmpRaw);
744                   break;
745                 } // case 8
746               case 10:
747                 {
748                   int length = input.readRawVarint32();
749                   int oldLimit = input.pushLimit(length);
750                   while (input.getBytesUntilLimit() > 0) {
751                     int tmpRaw = input.readEnum();
752                     ensureThreatTypesIsMutable();
753                     threatTypes_.add(tmpRaw);
754                   }
755                   input.popLimit(oldLimit);
756                   break;
757                 } // case 10
758               case 18:
759                 {
760                   input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
761                   bitField0_ |= 0x00000002;
762                   break;
763                 } // case 18
764               default:
765                 {
766                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
767                     done = true; // was an endgroup tag
768                   }
769                   break;
770                 } // default:
771             } // switch (tag)
772           } // while (!done)
773         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
774           throw e.unwrapIOException();
775         } finally {
776           onChanged();
777         } // finally
778         return this;
779       }
780 
781       private int bitField0_;
782 
783       private java.util.List<java.lang.Integer> threatTypes_ = java.util.Collections.emptyList();
784 
ensureThreatTypesIsMutable()785       private void ensureThreatTypesIsMutable() {
786         if (!((bitField0_ & 0x00000001) != 0)) {
787           threatTypes_ = new java.util.ArrayList<java.lang.Integer>(threatTypes_);
788           bitField0_ |= 0x00000001;
789         }
790       }
791       /**
792        *
793        *
794        * <pre>
795        * The ThreatList this threat belongs to.
796        * </pre>
797        *
798        * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
799        *
800        * @return A list containing the threatTypes.
801        */
getThreatTypesList()802       public java.util.List<com.google.webrisk.v1.ThreatType> getThreatTypesList() {
803         return new com.google.protobuf.Internal.ListAdapter<
804             java.lang.Integer, com.google.webrisk.v1.ThreatType>(
805             threatTypes_, threatTypes_converter_);
806       }
807       /**
808        *
809        *
810        * <pre>
811        * The ThreatList this threat belongs to.
812        * </pre>
813        *
814        * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
815        *
816        * @return The count of threatTypes.
817        */
getThreatTypesCount()818       public int getThreatTypesCount() {
819         return threatTypes_.size();
820       }
821       /**
822        *
823        *
824        * <pre>
825        * The ThreatList this threat belongs to.
826        * </pre>
827        *
828        * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
829        *
830        * @param index The index of the element to return.
831        * @return The threatTypes at the given index.
832        */
getThreatTypes(int index)833       public com.google.webrisk.v1.ThreatType getThreatTypes(int index) {
834         return threatTypes_converter_.convert(threatTypes_.get(index));
835       }
836       /**
837        *
838        *
839        * <pre>
840        * The ThreatList this threat belongs to.
841        * </pre>
842        *
843        * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
844        *
845        * @param index The index to set the value at.
846        * @param value The threatTypes to set.
847        * @return This builder for chaining.
848        */
setThreatTypes(int index, com.google.webrisk.v1.ThreatType value)849       public Builder setThreatTypes(int index, com.google.webrisk.v1.ThreatType value) {
850         if (value == null) {
851           throw new NullPointerException();
852         }
853         ensureThreatTypesIsMutable();
854         threatTypes_.set(index, value.getNumber());
855         onChanged();
856         return this;
857       }
858       /**
859        *
860        *
861        * <pre>
862        * The ThreatList this threat belongs to.
863        * </pre>
864        *
865        * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
866        *
867        * @param value The threatTypes to add.
868        * @return This builder for chaining.
869        */
addThreatTypes(com.google.webrisk.v1.ThreatType value)870       public Builder addThreatTypes(com.google.webrisk.v1.ThreatType value) {
871         if (value == null) {
872           throw new NullPointerException();
873         }
874         ensureThreatTypesIsMutable();
875         threatTypes_.add(value.getNumber());
876         onChanged();
877         return this;
878       }
879       /**
880        *
881        *
882        * <pre>
883        * The ThreatList this threat belongs to.
884        * </pre>
885        *
886        * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
887        *
888        * @param values The threatTypes to add.
889        * @return This builder for chaining.
890        */
addAllThreatTypes( java.lang.Iterable<? extends com.google.webrisk.v1.ThreatType> values)891       public Builder addAllThreatTypes(
892           java.lang.Iterable<? extends com.google.webrisk.v1.ThreatType> values) {
893         ensureThreatTypesIsMutable();
894         for (com.google.webrisk.v1.ThreatType value : values) {
895           threatTypes_.add(value.getNumber());
896         }
897         onChanged();
898         return this;
899       }
900       /**
901        *
902        *
903        * <pre>
904        * The ThreatList this threat belongs to.
905        * </pre>
906        *
907        * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
908        *
909        * @return This builder for chaining.
910        */
clearThreatTypes()911       public Builder clearThreatTypes() {
912         threatTypes_ = java.util.Collections.emptyList();
913         bitField0_ = (bitField0_ & ~0x00000001);
914         onChanged();
915         return this;
916       }
917       /**
918        *
919        *
920        * <pre>
921        * The ThreatList this threat belongs to.
922        * </pre>
923        *
924        * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
925        *
926        * @return A list containing the enum numeric values on the wire for threatTypes.
927        */
getThreatTypesValueList()928       public java.util.List<java.lang.Integer> getThreatTypesValueList() {
929         return java.util.Collections.unmodifiableList(threatTypes_);
930       }
931       /**
932        *
933        *
934        * <pre>
935        * The ThreatList this threat belongs to.
936        * </pre>
937        *
938        * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
939        *
940        * @param index The index of the value to return.
941        * @return The enum numeric value on the wire of threatTypes at the given index.
942        */
getThreatTypesValue(int index)943       public int getThreatTypesValue(int index) {
944         return threatTypes_.get(index);
945       }
946       /**
947        *
948        *
949        * <pre>
950        * The ThreatList this threat belongs to.
951        * </pre>
952        *
953        * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
954        *
955        * @param index The index to set the value at.
956        * @param value The enum numeric value on the wire for threatTypes to set.
957        * @return This builder for chaining.
958        */
setThreatTypesValue(int index, int value)959       public Builder setThreatTypesValue(int index, int value) {
960         ensureThreatTypesIsMutable();
961         threatTypes_.set(index, value);
962         onChanged();
963         return this;
964       }
965       /**
966        *
967        *
968        * <pre>
969        * The ThreatList this threat belongs to.
970        * </pre>
971        *
972        * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
973        *
974        * @param value The enum numeric value on the wire for threatTypes to add.
975        * @return This builder for chaining.
976        */
addThreatTypesValue(int value)977       public Builder addThreatTypesValue(int value) {
978         ensureThreatTypesIsMutable();
979         threatTypes_.add(value);
980         onChanged();
981         return this;
982       }
983       /**
984        *
985        *
986        * <pre>
987        * The ThreatList this threat belongs to.
988        * </pre>
989        *
990        * <code>repeated .google.cloud.webrisk.v1.ThreatType threat_types = 1;</code>
991        *
992        * @param values The enum numeric values on the wire for threatTypes to add.
993        * @return This builder for chaining.
994        */
addAllThreatTypesValue(java.lang.Iterable<java.lang.Integer> values)995       public Builder addAllThreatTypesValue(java.lang.Iterable<java.lang.Integer> values) {
996         ensureThreatTypesIsMutable();
997         for (int value : values) {
998           threatTypes_.add(value);
999         }
1000         onChanged();
1001         return this;
1002       }
1003 
1004       private com.google.protobuf.Timestamp expireTime_;
1005       private com.google.protobuf.SingleFieldBuilderV3<
1006               com.google.protobuf.Timestamp,
1007               com.google.protobuf.Timestamp.Builder,
1008               com.google.protobuf.TimestampOrBuilder>
1009           expireTimeBuilder_;
1010       /**
1011        *
1012        *
1013        * <pre>
1014        * The cache lifetime for the returned match. Clients must not cache this
1015        * response past this timestamp to avoid false positives.
1016        * </pre>
1017        *
1018        * <code>.google.protobuf.Timestamp expire_time = 2;</code>
1019        *
1020        * @return Whether the expireTime field is set.
1021        */
hasExpireTime()1022       public boolean hasExpireTime() {
1023         return ((bitField0_ & 0x00000002) != 0);
1024       }
1025       /**
1026        *
1027        *
1028        * <pre>
1029        * The cache lifetime for the returned match. Clients must not cache this
1030        * response past this timestamp to avoid false positives.
1031        * </pre>
1032        *
1033        * <code>.google.protobuf.Timestamp expire_time = 2;</code>
1034        *
1035        * @return The expireTime.
1036        */
getExpireTime()1037       public com.google.protobuf.Timestamp getExpireTime() {
1038         if (expireTimeBuilder_ == null) {
1039           return expireTime_ == null
1040               ? com.google.protobuf.Timestamp.getDefaultInstance()
1041               : expireTime_;
1042         } else {
1043           return expireTimeBuilder_.getMessage();
1044         }
1045       }
1046       /**
1047        *
1048        *
1049        * <pre>
1050        * The cache lifetime for the returned match. Clients must not cache this
1051        * response past this timestamp to avoid false positives.
1052        * </pre>
1053        *
1054        * <code>.google.protobuf.Timestamp expire_time = 2;</code>
1055        */
setExpireTime(com.google.protobuf.Timestamp value)1056       public Builder setExpireTime(com.google.protobuf.Timestamp value) {
1057         if (expireTimeBuilder_ == null) {
1058           if (value == null) {
1059             throw new NullPointerException();
1060           }
1061           expireTime_ = value;
1062         } else {
1063           expireTimeBuilder_.setMessage(value);
1064         }
1065         bitField0_ |= 0x00000002;
1066         onChanged();
1067         return this;
1068       }
1069       /**
1070        *
1071        *
1072        * <pre>
1073        * The cache lifetime for the returned match. Clients must not cache this
1074        * response past this timestamp to avoid false positives.
1075        * </pre>
1076        *
1077        * <code>.google.protobuf.Timestamp expire_time = 2;</code>
1078        */
setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)1079       public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
1080         if (expireTimeBuilder_ == null) {
1081           expireTime_ = builderForValue.build();
1082         } else {
1083           expireTimeBuilder_.setMessage(builderForValue.build());
1084         }
1085         bitField0_ |= 0x00000002;
1086         onChanged();
1087         return this;
1088       }
1089       /**
1090        *
1091        *
1092        * <pre>
1093        * The cache lifetime for the returned match. Clients must not cache this
1094        * response past this timestamp to avoid false positives.
1095        * </pre>
1096        *
1097        * <code>.google.protobuf.Timestamp expire_time = 2;</code>
1098        */
mergeExpireTime(com.google.protobuf.Timestamp value)1099       public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
1100         if (expireTimeBuilder_ == null) {
1101           if (((bitField0_ & 0x00000002) != 0)
1102               && expireTime_ != null
1103               && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
1104             getExpireTimeBuilder().mergeFrom(value);
1105           } else {
1106             expireTime_ = value;
1107           }
1108         } else {
1109           expireTimeBuilder_.mergeFrom(value);
1110         }
1111         bitField0_ |= 0x00000002;
1112         onChanged();
1113         return this;
1114       }
1115       /**
1116        *
1117        *
1118        * <pre>
1119        * The cache lifetime for the returned match. Clients must not cache this
1120        * response past this timestamp to avoid false positives.
1121        * </pre>
1122        *
1123        * <code>.google.protobuf.Timestamp expire_time = 2;</code>
1124        */
clearExpireTime()1125       public Builder clearExpireTime() {
1126         bitField0_ = (bitField0_ & ~0x00000002);
1127         expireTime_ = null;
1128         if (expireTimeBuilder_ != null) {
1129           expireTimeBuilder_.dispose();
1130           expireTimeBuilder_ = null;
1131         }
1132         onChanged();
1133         return this;
1134       }
1135       /**
1136        *
1137        *
1138        * <pre>
1139        * The cache lifetime for the returned match. Clients must not cache this
1140        * response past this timestamp to avoid false positives.
1141        * </pre>
1142        *
1143        * <code>.google.protobuf.Timestamp expire_time = 2;</code>
1144        */
getExpireTimeBuilder()1145       public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
1146         bitField0_ |= 0x00000002;
1147         onChanged();
1148         return getExpireTimeFieldBuilder().getBuilder();
1149       }
1150       /**
1151        *
1152        *
1153        * <pre>
1154        * The cache lifetime for the returned match. Clients must not cache this
1155        * response past this timestamp to avoid false positives.
1156        * </pre>
1157        *
1158        * <code>.google.protobuf.Timestamp expire_time = 2;</code>
1159        */
getExpireTimeOrBuilder()1160       public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
1161         if (expireTimeBuilder_ != null) {
1162           return expireTimeBuilder_.getMessageOrBuilder();
1163         } else {
1164           return expireTime_ == null
1165               ? com.google.protobuf.Timestamp.getDefaultInstance()
1166               : expireTime_;
1167         }
1168       }
1169       /**
1170        *
1171        *
1172        * <pre>
1173        * The cache lifetime for the returned match. Clients must not cache this
1174        * response past this timestamp to avoid false positives.
1175        * </pre>
1176        *
1177        * <code>.google.protobuf.Timestamp expire_time = 2;</code>
1178        */
1179       private com.google.protobuf.SingleFieldBuilderV3<
1180               com.google.protobuf.Timestamp,
1181               com.google.protobuf.Timestamp.Builder,
1182               com.google.protobuf.TimestampOrBuilder>
getExpireTimeFieldBuilder()1183           getExpireTimeFieldBuilder() {
1184         if (expireTimeBuilder_ == null) {
1185           expireTimeBuilder_ =
1186               new com.google.protobuf.SingleFieldBuilderV3<
1187                   com.google.protobuf.Timestamp,
1188                   com.google.protobuf.Timestamp.Builder,
1189                   com.google.protobuf.TimestampOrBuilder>(
1190                   getExpireTime(), getParentForChildren(), isClean());
1191           expireTime_ = null;
1192         }
1193         return expireTimeBuilder_;
1194       }
1195 
1196       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1197       public final Builder setUnknownFields(
1198           final com.google.protobuf.UnknownFieldSet unknownFields) {
1199         return super.setUnknownFields(unknownFields);
1200       }
1201 
1202       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1203       public final Builder mergeUnknownFields(
1204           final com.google.protobuf.UnknownFieldSet unknownFields) {
1205         return super.mergeUnknownFields(unknownFields);
1206       }
1207 
1208       // @@protoc_insertion_point(builder_scope:google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri)
1209     }
1210 
1211     // @@protoc_insertion_point(class_scope:google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri)
1212     private static final com.google.webrisk.v1.SearchUrisResponse.ThreatUri DEFAULT_INSTANCE;
1213 
1214     static {
1215       DEFAULT_INSTANCE = new com.google.webrisk.v1.SearchUrisResponse.ThreatUri();
1216     }
1217 
getDefaultInstance()1218     public static com.google.webrisk.v1.SearchUrisResponse.ThreatUri getDefaultInstance() {
1219       return DEFAULT_INSTANCE;
1220     }
1221 
1222     private static final com.google.protobuf.Parser<ThreatUri> PARSER =
1223         new com.google.protobuf.AbstractParser<ThreatUri>() {
1224           @java.lang.Override
1225           public ThreatUri parsePartialFrom(
1226               com.google.protobuf.CodedInputStream input,
1227               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1228               throws com.google.protobuf.InvalidProtocolBufferException {
1229             Builder builder = newBuilder();
1230             try {
1231               builder.mergeFrom(input, extensionRegistry);
1232             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1233               throw e.setUnfinishedMessage(builder.buildPartial());
1234             } catch (com.google.protobuf.UninitializedMessageException e) {
1235               throw e.asInvalidProtocolBufferException()
1236                   .setUnfinishedMessage(builder.buildPartial());
1237             } catch (java.io.IOException e) {
1238               throw new com.google.protobuf.InvalidProtocolBufferException(e)
1239                   .setUnfinishedMessage(builder.buildPartial());
1240             }
1241             return builder.buildPartial();
1242           }
1243         };
1244 
parser()1245     public static com.google.protobuf.Parser<ThreatUri> parser() {
1246       return PARSER;
1247     }
1248 
1249     @java.lang.Override
getParserForType()1250     public com.google.protobuf.Parser<ThreatUri> getParserForType() {
1251       return PARSER;
1252     }
1253 
1254     @java.lang.Override
getDefaultInstanceForType()1255     public com.google.webrisk.v1.SearchUrisResponse.ThreatUri getDefaultInstanceForType() {
1256       return DEFAULT_INSTANCE;
1257     }
1258   }
1259 
1260   public static final int THREAT_FIELD_NUMBER = 1;
1261   private com.google.webrisk.v1.SearchUrisResponse.ThreatUri threat_;
1262   /**
1263    *
1264    *
1265    * <pre>
1266    * The threat list matches. This might be empty if the URI is on no list.
1267    * </pre>
1268    *
1269    * <code>.google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri threat = 1;</code>
1270    *
1271    * @return Whether the threat field is set.
1272    */
1273   @java.lang.Override
hasThreat()1274   public boolean hasThreat() {
1275     return threat_ != null;
1276   }
1277   /**
1278    *
1279    *
1280    * <pre>
1281    * The threat list matches. This might be empty if the URI is on no list.
1282    * </pre>
1283    *
1284    * <code>.google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri threat = 1;</code>
1285    *
1286    * @return The threat.
1287    */
1288   @java.lang.Override
getThreat()1289   public com.google.webrisk.v1.SearchUrisResponse.ThreatUri getThreat() {
1290     return threat_ == null
1291         ? com.google.webrisk.v1.SearchUrisResponse.ThreatUri.getDefaultInstance()
1292         : threat_;
1293   }
1294   /**
1295    *
1296    *
1297    * <pre>
1298    * The threat list matches. This might be empty if the URI is on no list.
1299    * </pre>
1300    *
1301    * <code>.google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri threat = 1;</code>
1302    */
1303   @java.lang.Override
getThreatOrBuilder()1304   public com.google.webrisk.v1.SearchUrisResponse.ThreatUriOrBuilder getThreatOrBuilder() {
1305     return threat_ == null
1306         ? com.google.webrisk.v1.SearchUrisResponse.ThreatUri.getDefaultInstance()
1307         : threat_;
1308   }
1309 
1310   private byte memoizedIsInitialized = -1;
1311 
1312   @java.lang.Override
isInitialized()1313   public final boolean isInitialized() {
1314     byte isInitialized = memoizedIsInitialized;
1315     if (isInitialized == 1) return true;
1316     if (isInitialized == 0) return false;
1317 
1318     memoizedIsInitialized = 1;
1319     return true;
1320   }
1321 
1322   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1323   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1324     if (threat_ != null) {
1325       output.writeMessage(1, getThreat());
1326     }
1327     getUnknownFields().writeTo(output);
1328   }
1329 
1330   @java.lang.Override
getSerializedSize()1331   public int getSerializedSize() {
1332     int size = memoizedSize;
1333     if (size != -1) return size;
1334 
1335     size = 0;
1336     if (threat_ != null) {
1337       size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getThreat());
1338     }
1339     size += getUnknownFields().getSerializedSize();
1340     memoizedSize = size;
1341     return size;
1342   }
1343 
1344   @java.lang.Override
equals(final java.lang.Object obj)1345   public boolean equals(final java.lang.Object obj) {
1346     if (obj == this) {
1347       return true;
1348     }
1349     if (!(obj instanceof com.google.webrisk.v1.SearchUrisResponse)) {
1350       return super.equals(obj);
1351     }
1352     com.google.webrisk.v1.SearchUrisResponse other = (com.google.webrisk.v1.SearchUrisResponse) obj;
1353 
1354     if (hasThreat() != other.hasThreat()) return false;
1355     if (hasThreat()) {
1356       if (!getThreat().equals(other.getThreat())) return false;
1357     }
1358     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1359     return true;
1360   }
1361 
1362   @java.lang.Override
hashCode()1363   public int hashCode() {
1364     if (memoizedHashCode != 0) {
1365       return memoizedHashCode;
1366     }
1367     int hash = 41;
1368     hash = (19 * hash) + getDescriptor().hashCode();
1369     if (hasThreat()) {
1370       hash = (37 * hash) + THREAT_FIELD_NUMBER;
1371       hash = (53 * hash) + getThreat().hashCode();
1372     }
1373     hash = (29 * hash) + getUnknownFields().hashCode();
1374     memoizedHashCode = hash;
1375     return hash;
1376   }
1377 
parseFrom(java.nio.ByteBuffer data)1378   public static com.google.webrisk.v1.SearchUrisResponse parseFrom(java.nio.ByteBuffer data)
1379       throws com.google.protobuf.InvalidProtocolBufferException {
1380     return PARSER.parseFrom(data);
1381   }
1382 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1383   public static com.google.webrisk.v1.SearchUrisResponse parseFrom(
1384       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1385       throws com.google.protobuf.InvalidProtocolBufferException {
1386     return PARSER.parseFrom(data, extensionRegistry);
1387   }
1388 
parseFrom( com.google.protobuf.ByteString data)1389   public static com.google.webrisk.v1.SearchUrisResponse parseFrom(
1390       com.google.protobuf.ByteString data)
1391       throws com.google.protobuf.InvalidProtocolBufferException {
1392     return PARSER.parseFrom(data);
1393   }
1394 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1395   public static com.google.webrisk.v1.SearchUrisResponse parseFrom(
1396       com.google.protobuf.ByteString data,
1397       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1398       throws com.google.protobuf.InvalidProtocolBufferException {
1399     return PARSER.parseFrom(data, extensionRegistry);
1400   }
1401 
parseFrom(byte[] data)1402   public static com.google.webrisk.v1.SearchUrisResponse parseFrom(byte[] data)
1403       throws com.google.protobuf.InvalidProtocolBufferException {
1404     return PARSER.parseFrom(data);
1405   }
1406 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1407   public static com.google.webrisk.v1.SearchUrisResponse parseFrom(
1408       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1409       throws com.google.protobuf.InvalidProtocolBufferException {
1410     return PARSER.parseFrom(data, extensionRegistry);
1411   }
1412 
parseFrom(java.io.InputStream input)1413   public static com.google.webrisk.v1.SearchUrisResponse parseFrom(java.io.InputStream input)
1414       throws java.io.IOException {
1415     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1416   }
1417 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1418   public static com.google.webrisk.v1.SearchUrisResponse parseFrom(
1419       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1420       throws java.io.IOException {
1421     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1422         PARSER, input, extensionRegistry);
1423   }
1424 
parseDelimitedFrom( java.io.InputStream input)1425   public static com.google.webrisk.v1.SearchUrisResponse parseDelimitedFrom(
1426       java.io.InputStream input) throws java.io.IOException {
1427     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1428   }
1429 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1430   public static com.google.webrisk.v1.SearchUrisResponse parseDelimitedFrom(
1431       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1432       throws java.io.IOException {
1433     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1434         PARSER, input, extensionRegistry);
1435   }
1436 
parseFrom( com.google.protobuf.CodedInputStream input)1437   public static com.google.webrisk.v1.SearchUrisResponse parseFrom(
1438       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1439     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1440   }
1441 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1442   public static com.google.webrisk.v1.SearchUrisResponse parseFrom(
1443       com.google.protobuf.CodedInputStream input,
1444       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1445       throws java.io.IOException {
1446     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1447         PARSER, input, extensionRegistry);
1448   }
1449 
1450   @java.lang.Override
newBuilderForType()1451   public Builder newBuilderForType() {
1452     return newBuilder();
1453   }
1454 
newBuilder()1455   public static Builder newBuilder() {
1456     return DEFAULT_INSTANCE.toBuilder();
1457   }
1458 
newBuilder(com.google.webrisk.v1.SearchUrisResponse prototype)1459   public static Builder newBuilder(com.google.webrisk.v1.SearchUrisResponse prototype) {
1460     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1461   }
1462 
1463   @java.lang.Override
toBuilder()1464   public Builder toBuilder() {
1465     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1466   }
1467 
1468   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1469   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1470     Builder builder = new Builder(parent);
1471     return builder;
1472   }
1473   /** Protobuf type {@code google.cloud.webrisk.v1.SearchUrisResponse} */
1474   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1475       implements
1476       // @@protoc_insertion_point(builder_implements:google.cloud.webrisk.v1.SearchUrisResponse)
1477       com.google.webrisk.v1.SearchUrisResponseOrBuilder {
getDescriptor()1478     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1479       return com.google.webrisk.v1.WebRiskProto
1480           .internal_static_google_cloud_webrisk_v1_SearchUrisResponse_descriptor;
1481     }
1482 
1483     @java.lang.Override
1484     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1485         internalGetFieldAccessorTable() {
1486       return com.google.webrisk.v1.WebRiskProto
1487           .internal_static_google_cloud_webrisk_v1_SearchUrisResponse_fieldAccessorTable
1488           .ensureFieldAccessorsInitialized(
1489               com.google.webrisk.v1.SearchUrisResponse.class,
1490               com.google.webrisk.v1.SearchUrisResponse.Builder.class);
1491     }
1492 
1493     // Construct using com.google.webrisk.v1.SearchUrisResponse.newBuilder()
Builder()1494     private Builder() {}
1495 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1496     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1497       super(parent);
1498     }
1499 
1500     @java.lang.Override
clear()1501     public Builder clear() {
1502       super.clear();
1503       bitField0_ = 0;
1504       threat_ = null;
1505       if (threatBuilder_ != null) {
1506         threatBuilder_.dispose();
1507         threatBuilder_ = null;
1508       }
1509       return this;
1510     }
1511 
1512     @java.lang.Override
getDescriptorForType()1513     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1514       return com.google.webrisk.v1.WebRiskProto
1515           .internal_static_google_cloud_webrisk_v1_SearchUrisResponse_descriptor;
1516     }
1517 
1518     @java.lang.Override
getDefaultInstanceForType()1519     public com.google.webrisk.v1.SearchUrisResponse getDefaultInstanceForType() {
1520       return com.google.webrisk.v1.SearchUrisResponse.getDefaultInstance();
1521     }
1522 
1523     @java.lang.Override
build()1524     public com.google.webrisk.v1.SearchUrisResponse build() {
1525       com.google.webrisk.v1.SearchUrisResponse result = buildPartial();
1526       if (!result.isInitialized()) {
1527         throw newUninitializedMessageException(result);
1528       }
1529       return result;
1530     }
1531 
1532     @java.lang.Override
buildPartial()1533     public com.google.webrisk.v1.SearchUrisResponse buildPartial() {
1534       com.google.webrisk.v1.SearchUrisResponse result =
1535           new com.google.webrisk.v1.SearchUrisResponse(this);
1536       if (bitField0_ != 0) {
1537         buildPartial0(result);
1538       }
1539       onBuilt();
1540       return result;
1541     }
1542 
buildPartial0(com.google.webrisk.v1.SearchUrisResponse result)1543     private void buildPartial0(com.google.webrisk.v1.SearchUrisResponse result) {
1544       int from_bitField0_ = bitField0_;
1545       if (((from_bitField0_ & 0x00000001) != 0)) {
1546         result.threat_ = threatBuilder_ == null ? threat_ : threatBuilder_.build();
1547       }
1548     }
1549 
1550     @java.lang.Override
clone()1551     public Builder clone() {
1552       return super.clone();
1553     }
1554 
1555     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1556     public Builder setField(
1557         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1558       return super.setField(field, value);
1559     }
1560 
1561     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1562     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1563       return super.clearField(field);
1564     }
1565 
1566     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1567     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1568       return super.clearOneof(oneof);
1569     }
1570 
1571     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1572     public Builder setRepeatedField(
1573         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
1574       return super.setRepeatedField(field, index, value);
1575     }
1576 
1577     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1578     public Builder addRepeatedField(
1579         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1580       return super.addRepeatedField(field, value);
1581     }
1582 
1583     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1584     public Builder mergeFrom(com.google.protobuf.Message other) {
1585       if (other instanceof com.google.webrisk.v1.SearchUrisResponse) {
1586         return mergeFrom((com.google.webrisk.v1.SearchUrisResponse) other);
1587       } else {
1588         super.mergeFrom(other);
1589         return this;
1590       }
1591     }
1592 
mergeFrom(com.google.webrisk.v1.SearchUrisResponse other)1593     public Builder mergeFrom(com.google.webrisk.v1.SearchUrisResponse other) {
1594       if (other == com.google.webrisk.v1.SearchUrisResponse.getDefaultInstance()) return this;
1595       if (other.hasThreat()) {
1596         mergeThreat(other.getThreat());
1597       }
1598       this.mergeUnknownFields(other.getUnknownFields());
1599       onChanged();
1600       return this;
1601     }
1602 
1603     @java.lang.Override
isInitialized()1604     public final boolean isInitialized() {
1605       return true;
1606     }
1607 
1608     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1609     public Builder mergeFrom(
1610         com.google.protobuf.CodedInputStream input,
1611         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1612         throws java.io.IOException {
1613       if (extensionRegistry == null) {
1614         throw new java.lang.NullPointerException();
1615       }
1616       try {
1617         boolean done = false;
1618         while (!done) {
1619           int tag = input.readTag();
1620           switch (tag) {
1621             case 0:
1622               done = true;
1623               break;
1624             case 10:
1625               {
1626                 input.readMessage(getThreatFieldBuilder().getBuilder(), extensionRegistry);
1627                 bitField0_ |= 0x00000001;
1628                 break;
1629               } // case 10
1630             default:
1631               {
1632                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1633                   done = true; // was an endgroup tag
1634                 }
1635                 break;
1636               } // default:
1637           } // switch (tag)
1638         } // while (!done)
1639       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1640         throw e.unwrapIOException();
1641       } finally {
1642         onChanged();
1643       } // finally
1644       return this;
1645     }
1646 
1647     private int bitField0_;
1648 
1649     private com.google.webrisk.v1.SearchUrisResponse.ThreatUri threat_;
1650     private com.google.protobuf.SingleFieldBuilderV3<
1651             com.google.webrisk.v1.SearchUrisResponse.ThreatUri,
1652             com.google.webrisk.v1.SearchUrisResponse.ThreatUri.Builder,
1653             com.google.webrisk.v1.SearchUrisResponse.ThreatUriOrBuilder>
1654         threatBuilder_;
1655     /**
1656      *
1657      *
1658      * <pre>
1659      * The threat list matches. This might be empty if the URI is on no list.
1660      * </pre>
1661      *
1662      * <code>.google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri threat = 1;</code>
1663      *
1664      * @return Whether the threat field is set.
1665      */
hasThreat()1666     public boolean hasThreat() {
1667       return ((bitField0_ & 0x00000001) != 0);
1668     }
1669     /**
1670      *
1671      *
1672      * <pre>
1673      * The threat list matches. This might be empty if the URI is on no list.
1674      * </pre>
1675      *
1676      * <code>.google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri threat = 1;</code>
1677      *
1678      * @return The threat.
1679      */
getThreat()1680     public com.google.webrisk.v1.SearchUrisResponse.ThreatUri getThreat() {
1681       if (threatBuilder_ == null) {
1682         return threat_ == null
1683             ? com.google.webrisk.v1.SearchUrisResponse.ThreatUri.getDefaultInstance()
1684             : threat_;
1685       } else {
1686         return threatBuilder_.getMessage();
1687       }
1688     }
1689     /**
1690      *
1691      *
1692      * <pre>
1693      * The threat list matches. This might be empty if the URI is on no list.
1694      * </pre>
1695      *
1696      * <code>.google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri threat = 1;</code>
1697      */
setThreat(com.google.webrisk.v1.SearchUrisResponse.ThreatUri value)1698     public Builder setThreat(com.google.webrisk.v1.SearchUrisResponse.ThreatUri value) {
1699       if (threatBuilder_ == null) {
1700         if (value == null) {
1701           throw new NullPointerException();
1702         }
1703         threat_ = value;
1704       } else {
1705         threatBuilder_.setMessage(value);
1706       }
1707       bitField0_ |= 0x00000001;
1708       onChanged();
1709       return this;
1710     }
1711     /**
1712      *
1713      *
1714      * <pre>
1715      * The threat list matches. This might be empty if the URI is on no list.
1716      * </pre>
1717      *
1718      * <code>.google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri threat = 1;</code>
1719      */
setThreat( com.google.webrisk.v1.SearchUrisResponse.ThreatUri.Builder builderForValue)1720     public Builder setThreat(
1721         com.google.webrisk.v1.SearchUrisResponse.ThreatUri.Builder builderForValue) {
1722       if (threatBuilder_ == null) {
1723         threat_ = builderForValue.build();
1724       } else {
1725         threatBuilder_.setMessage(builderForValue.build());
1726       }
1727       bitField0_ |= 0x00000001;
1728       onChanged();
1729       return this;
1730     }
1731     /**
1732      *
1733      *
1734      * <pre>
1735      * The threat list matches. This might be empty if the URI is on no list.
1736      * </pre>
1737      *
1738      * <code>.google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri threat = 1;</code>
1739      */
mergeThreat(com.google.webrisk.v1.SearchUrisResponse.ThreatUri value)1740     public Builder mergeThreat(com.google.webrisk.v1.SearchUrisResponse.ThreatUri value) {
1741       if (threatBuilder_ == null) {
1742         if (((bitField0_ & 0x00000001) != 0)
1743             && threat_ != null
1744             && threat_ != com.google.webrisk.v1.SearchUrisResponse.ThreatUri.getDefaultInstance()) {
1745           getThreatBuilder().mergeFrom(value);
1746         } else {
1747           threat_ = value;
1748         }
1749       } else {
1750         threatBuilder_.mergeFrom(value);
1751       }
1752       bitField0_ |= 0x00000001;
1753       onChanged();
1754       return this;
1755     }
1756     /**
1757      *
1758      *
1759      * <pre>
1760      * The threat list matches. This might be empty if the URI is on no list.
1761      * </pre>
1762      *
1763      * <code>.google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri threat = 1;</code>
1764      */
clearThreat()1765     public Builder clearThreat() {
1766       bitField0_ = (bitField0_ & ~0x00000001);
1767       threat_ = null;
1768       if (threatBuilder_ != null) {
1769         threatBuilder_.dispose();
1770         threatBuilder_ = null;
1771       }
1772       onChanged();
1773       return this;
1774     }
1775     /**
1776      *
1777      *
1778      * <pre>
1779      * The threat list matches. This might be empty if the URI is on no list.
1780      * </pre>
1781      *
1782      * <code>.google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri threat = 1;</code>
1783      */
getThreatBuilder()1784     public com.google.webrisk.v1.SearchUrisResponse.ThreatUri.Builder getThreatBuilder() {
1785       bitField0_ |= 0x00000001;
1786       onChanged();
1787       return getThreatFieldBuilder().getBuilder();
1788     }
1789     /**
1790      *
1791      *
1792      * <pre>
1793      * The threat list matches. This might be empty if the URI is on no list.
1794      * </pre>
1795      *
1796      * <code>.google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri threat = 1;</code>
1797      */
getThreatOrBuilder()1798     public com.google.webrisk.v1.SearchUrisResponse.ThreatUriOrBuilder getThreatOrBuilder() {
1799       if (threatBuilder_ != null) {
1800         return threatBuilder_.getMessageOrBuilder();
1801       } else {
1802         return threat_ == null
1803             ? com.google.webrisk.v1.SearchUrisResponse.ThreatUri.getDefaultInstance()
1804             : threat_;
1805       }
1806     }
1807     /**
1808      *
1809      *
1810      * <pre>
1811      * The threat list matches. This might be empty if the URI is on no list.
1812      * </pre>
1813      *
1814      * <code>.google.cloud.webrisk.v1.SearchUrisResponse.ThreatUri threat = 1;</code>
1815      */
1816     private com.google.protobuf.SingleFieldBuilderV3<
1817             com.google.webrisk.v1.SearchUrisResponse.ThreatUri,
1818             com.google.webrisk.v1.SearchUrisResponse.ThreatUri.Builder,
1819             com.google.webrisk.v1.SearchUrisResponse.ThreatUriOrBuilder>
getThreatFieldBuilder()1820         getThreatFieldBuilder() {
1821       if (threatBuilder_ == null) {
1822         threatBuilder_ =
1823             new com.google.protobuf.SingleFieldBuilderV3<
1824                 com.google.webrisk.v1.SearchUrisResponse.ThreatUri,
1825                 com.google.webrisk.v1.SearchUrisResponse.ThreatUri.Builder,
1826                 com.google.webrisk.v1.SearchUrisResponse.ThreatUriOrBuilder>(
1827                 getThreat(), getParentForChildren(), isClean());
1828         threat_ = null;
1829       }
1830       return threatBuilder_;
1831     }
1832 
1833     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1834     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1835       return super.setUnknownFields(unknownFields);
1836     }
1837 
1838     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1839     public final Builder mergeUnknownFields(
1840         final com.google.protobuf.UnknownFieldSet unknownFields) {
1841       return super.mergeUnknownFields(unknownFields);
1842     }
1843 
1844     // @@protoc_insertion_point(builder_scope:google.cloud.webrisk.v1.SearchUrisResponse)
1845   }
1846 
1847   // @@protoc_insertion_point(class_scope:google.cloud.webrisk.v1.SearchUrisResponse)
1848   private static final com.google.webrisk.v1.SearchUrisResponse DEFAULT_INSTANCE;
1849 
1850   static {
1851     DEFAULT_INSTANCE = new com.google.webrisk.v1.SearchUrisResponse();
1852   }
1853 
getDefaultInstance()1854   public static com.google.webrisk.v1.SearchUrisResponse getDefaultInstance() {
1855     return DEFAULT_INSTANCE;
1856   }
1857 
1858   private static final com.google.protobuf.Parser<SearchUrisResponse> PARSER =
1859       new com.google.protobuf.AbstractParser<SearchUrisResponse>() {
1860         @java.lang.Override
1861         public SearchUrisResponse parsePartialFrom(
1862             com.google.protobuf.CodedInputStream input,
1863             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1864             throws com.google.protobuf.InvalidProtocolBufferException {
1865           Builder builder = newBuilder();
1866           try {
1867             builder.mergeFrom(input, extensionRegistry);
1868           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1869             throw e.setUnfinishedMessage(builder.buildPartial());
1870           } catch (com.google.protobuf.UninitializedMessageException e) {
1871             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1872           } catch (java.io.IOException e) {
1873             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1874                 .setUnfinishedMessage(builder.buildPartial());
1875           }
1876           return builder.buildPartial();
1877         }
1878       };
1879 
parser()1880   public static com.google.protobuf.Parser<SearchUrisResponse> parser() {
1881     return PARSER;
1882   }
1883 
1884   @java.lang.Override
getParserForType()1885   public com.google.protobuf.Parser<SearchUrisResponse> getParserForType() {
1886     return PARSER;
1887   }
1888 
1889   @java.lang.Override
getDefaultInstanceForType()1890   public com.google.webrisk.v1.SearchUrisResponse getDefaultInstanceForType() {
1891     return DEFAULT_INSTANCE;
1892   }
1893 }
1894