• 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/privacy/dlp/v2/dlp.proto
18 
19 package com.google.privacy.dlp.v2;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Statistics related to processing hybrid inspect requests.
26  * </pre>
27  *
28  * Protobuf type {@code google.privacy.dlp.v2.HybridInspectStatistics}
29  */
30 public final class HybridInspectStatistics extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.HybridInspectStatistics)
33     HybridInspectStatisticsOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use HybridInspectStatistics.newBuilder() to construct.
HybridInspectStatistics(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private HybridInspectStatistics(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
HybridInspectStatistics()40   private HybridInspectStatistics() {}
41 
42   @java.lang.Override
43   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)44   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
45     return new HybridInspectStatistics();
46   }
47 
48   @java.lang.Override
getUnknownFields()49   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
50     return this.unknownFields;
51   }
52 
getDescriptor()53   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
54     return com.google.privacy.dlp.v2.DlpProto
55         .internal_static_google_privacy_dlp_v2_HybridInspectStatistics_descriptor;
56   }
57 
58   @java.lang.Override
59   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()60       internalGetFieldAccessorTable() {
61     return com.google.privacy.dlp.v2.DlpProto
62         .internal_static_google_privacy_dlp_v2_HybridInspectStatistics_fieldAccessorTable
63         .ensureFieldAccessorsInitialized(
64             com.google.privacy.dlp.v2.HybridInspectStatistics.class,
65             com.google.privacy.dlp.v2.HybridInspectStatistics.Builder.class);
66   }
67 
68   public static final int PROCESSED_COUNT_FIELD_NUMBER = 1;
69   private long processedCount_ = 0L;
70   /**
71    *
72    *
73    * <pre>
74    * The number of hybrid inspection requests processed within this job.
75    * </pre>
76    *
77    * <code>int64 processed_count = 1;</code>
78    *
79    * @return The processedCount.
80    */
81   @java.lang.Override
getProcessedCount()82   public long getProcessedCount() {
83     return processedCount_;
84   }
85 
86   public static final int ABORTED_COUNT_FIELD_NUMBER = 2;
87   private long abortedCount_ = 0L;
88   /**
89    *
90    *
91    * <pre>
92    * The number of hybrid inspection requests aborted because the job ran
93    * out of quota or was ended before they could be processed.
94    * </pre>
95    *
96    * <code>int64 aborted_count = 2;</code>
97    *
98    * @return The abortedCount.
99    */
100   @java.lang.Override
getAbortedCount()101   public long getAbortedCount() {
102     return abortedCount_;
103   }
104 
105   public static final int PENDING_COUNT_FIELD_NUMBER = 3;
106   private long pendingCount_ = 0L;
107   /**
108    *
109    *
110    * <pre>
111    * The number of hybrid requests currently being processed. Only populated
112    * when called via method `getDlpJob`.
113    * A burst of traffic may cause hybrid inspect requests to be enqueued.
114    * Processing will take place as quickly as possible, but resource limitations
115    * may impact how long a request is enqueued for.
116    * </pre>
117    *
118    * <code>int64 pending_count = 3;</code>
119    *
120    * @return The pendingCount.
121    */
122   @java.lang.Override
getPendingCount()123   public long getPendingCount() {
124     return pendingCount_;
125   }
126 
127   private byte memoizedIsInitialized = -1;
128 
129   @java.lang.Override
isInitialized()130   public final boolean isInitialized() {
131     byte isInitialized = memoizedIsInitialized;
132     if (isInitialized == 1) return true;
133     if (isInitialized == 0) return false;
134 
135     memoizedIsInitialized = 1;
136     return true;
137   }
138 
139   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)140   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
141     if (processedCount_ != 0L) {
142       output.writeInt64(1, processedCount_);
143     }
144     if (abortedCount_ != 0L) {
145       output.writeInt64(2, abortedCount_);
146     }
147     if (pendingCount_ != 0L) {
148       output.writeInt64(3, pendingCount_);
149     }
150     getUnknownFields().writeTo(output);
151   }
152 
153   @java.lang.Override
getSerializedSize()154   public int getSerializedSize() {
155     int size = memoizedSize;
156     if (size != -1) return size;
157 
158     size = 0;
159     if (processedCount_ != 0L) {
160       size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, processedCount_);
161     }
162     if (abortedCount_ != 0L) {
163       size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, abortedCount_);
164     }
165     if (pendingCount_ != 0L) {
166       size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, pendingCount_);
167     }
168     size += getUnknownFields().getSerializedSize();
169     memoizedSize = size;
170     return size;
171   }
172 
173   @java.lang.Override
equals(final java.lang.Object obj)174   public boolean equals(final java.lang.Object obj) {
175     if (obj == this) {
176       return true;
177     }
178     if (!(obj instanceof com.google.privacy.dlp.v2.HybridInspectStatistics)) {
179       return super.equals(obj);
180     }
181     com.google.privacy.dlp.v2.HybridInspectStatistics other =
182         (com.google.privacy.dlp.v2.HybridInspectStatistics) obj;
183 
184     if (getProcessedCount() != other.getProcessedCount()) return false;
185     if (getAbortedCount() != other.getAbortedCount()) return false;
186     if (getPendingCount() != other.getPendingCount()) return false;
187     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
188     return true;
189   }
190 
191   @java.lang.Override
hashCode()192   public int hashCode() {
193     if (memoizedHashCode != 0) {
194       return memoizedHashCode;
195     }
196     int hash = 41;
197     hash = (19 * hash) + getDescriptor().hashCode();
198     hash = (37 * hash) + PROCESSED_COUNT_FIELD_NUMBER;
199     hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getProcessedCount());
200     hash = (37 * hash) + ABORTED_COUNT_FIELD_NUMBER;
201     hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAbortedCount());
202     hash = (37 * hash) + PENDING_COUNT_FIELD_NUMBER;
203     hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPendingCount());
204     hash = (29 * hash) + getUnknownFields().hashCode();
205     memoizedHashCode = hash;
206     return hash;
207   }
208 
parseFrom( java.nio.ByteBuffer data)209   public static com.google.privacy.dlp.v2.HybridInspectStatistics parseFrom(
210       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
211     return PARSER.parseFrom(data);
212   }
213 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)214   public static com.google.privacy.dlp.v2.HybridInspectStatistics parseFrom(
215       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
216       throws com.google.protobuf.InvalidProtocolBufferException {
217     return PARSER.parseFrom(data, extensionRegistry);
218   }
219 
parseFrom( com.google.protobuf.ByteString data)220   public static com.google.privacy.dlp.v2.HybridInspectStatistics parseFrom(
221       com.google.protobuf.ByteString data)
222       throws com.google.protobuf.InvalidProtocolBufferException {
223     return PARSER.parseFrom(data);
224   }
225 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)226   public static com.google.privacy.dlp.v2.HybridInspectStatistics parseFrom(
227       com.google.protobuf.ByteString data,
228       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
229       throws com.google.protobuf.InvalidProtocolBufferException {
230     return PARSER.parseFrom(data, extensionRegistry);
231   }
232 
parseFrom(byte[] data)233   public static com.google.privacy.dlp.v2.HybridInspectStatistics parseFrom(byte[] data)
234       throws com.google.protobuf.InvalidProtocolBufferException {
235     return PARSER.parseFrom(data);
236   }
237 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)238   public static com.google.privacy.dlp.v2.HybridInspectStatistics parseFrom(
239       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
240       throws com.google.protobuf.InvalidProtocolBufferException {
241     return PARSER.parseFrom(data, extensionRegistry);
242   }
243 
parseFrom( java.io.InputStream input)244   public static com.google.privacy.dlp.v2.HybridInspectStatistics parseFrom(
245       java.io.InputStream input) throws java.io.IOException {
246     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
247   }
248 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)249   public static com.google.privacy.dlp.v2.HybridInspectStatistics parseFrom(
250       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
251       throws java.io.IOException {
252     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
253         PARSER, input, extensionRegistry);
254   }
255 
parseDelimitedFrom( java.io.InputStream input)256   public static com.google.privacy.dlp.v2.HybridInspectStatistics parseDelimitedFrom(
257       java.io.InputStream input) throws java.io.IOException {
258     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
259   }
260 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)261   public static com.google.privacy.dlp.v2.HybridInspectStatistics parseDelimitedFrom(
262       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
263       throws java.io.IOException {
264     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
265         PARSER, input, extensionRegistry);
266   }
267 
parseFrom( com.google.protobuf.CodedInputStream input)268   public static com.google.privacy.dlp.v2.HybridInspectStatistics parseFrom(
269       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
270     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
271   }
272 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)273   public static com.google.privacy.dlp.v2.HybridInspectStatistics parseFrom(
274       com.google.protobuf.CodedInputStream input,
275       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
276       throws java.io.IOException {
277     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
278         PARSER, input, extensionRegistry);
279   }
280 
281   @java.lang.Override
newBuilderForType()282   public Builder newBuilderForType() {
283     return newBuilder();
284   }
285 
newBuilder()286   public static Builder newBuilder() {
287     return DEFAULT_INSTANCE.toBuilder();
288   }
289 
newBuilder(com.google.privacy.dlp.v2.HybridInspectStatistics prototype)290   public static Builder newBuilder(com.google.privacy.dlp.v2.HybridInspectStatistics prototype) {
291     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
292   }
293 
294   @java.lang.Override
toBuilder()295   public Builder toBuilder() {
296     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
297   }
298 
299   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)300   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
301     Builder builder = new Builder(parent);
302     return builder;
303   }
304   /**
305    *
306    *
307    * <pre>
308    * Statistics related to processing hybrid inspect requests.
309    * </pre>
310    *
311    * Protobuf type {@code google.privacy.dlp.v2.HybridInspectStatistics}
312    */
313   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
314       implements
315       // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.HybridInspectStatistics)
316       com.google.privacy.dlp.v2.HybridInspectStatisticsOrBuilder {
getDescriptor()317     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
318       return com.google.privacy.dlp.v2.DlpProto
319           .internal_static_google_privacy_dlp_v2_HybridInspectStatistics_descriptor;
320     }
321 
322     @java.lang.Override
323     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()324         internalGetFieldAccessorTable() {
325       return com.google.privacy.dlp.v2.DlpProto
326           .internal_static_google_privacy_dlp_v2_HybridInspectStatistics_fieldAccessorTable
327           .ensureFieldAccessorsInitialized(
328               com.google.privacy.dlp.v2.HybridInspectStatistics.class,
329               com.google.privacy.dlp.v2.HybridInspectStatistics.Builder.class);
330     }
331 
332     // Construct using com.google.privacy.dlp.v2.HybridInspectStatistics.newBuilder()
Builder()333     private Builder() {}
334 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)335     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
336       super(parent);
337     }
338 
339     @java.lang.Override
clear()340     public Builder clear() {
341       super.clear();
342       bitField0_ = 0;
343       processedCount_ = 0L;
344       abortedCount_ = 0L;
345       pendingCount_ = 0L;
346       return this;
347     }
348 
349     @java.lang.Override
getDescriptorForType()350     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
351       return com.google.privacy.dlp.v2.DlpProto
352           .internal_static_google_privacy_dlp_v2_HybridInspectStatistics_descriptor;
353     }
354 
355     @java.lang.Override
getDefaultInstanceForType()356     public com.google.privacy.dlp.v2.HybridInspectStatistics getDefaultInstanceForType() {
357       return com.google.privacy.dlp.v2.HybridInspectStatistics.getDefaultInstance();
358     }
359 
360     @java.lang.Override
build()361     public com.google.privacy.dlp.v2.HybridInspectStatistics build() {
362       com.google.privacy.dlp.v2.HybridInspectStatistics result = buildPartial();
363       if (!result.isInitialized()) {
364         throw newUninitializedMessageException(result);
365       }
366       return result;
367     }
368 
369     @java.lang.Override
buildPartial()370     public com.google.privacy.dlp.v2.HybridInspectStatistics buildPartial() {
371       com.google.privacy.dlp.v2.HybridInspectStatistics result =
372           new com.google.privacy.dlp.v2.HybridInspectStatistics(this);
373       if (bitField0_ != 0) {
374         buildPartial0(result);
375       }
376       onBuilt();
377       return result;
378     }
379 
buildPartial0(com.google.privacy.dlp.v2.HybridInspectStatistics result)380     private void buildPartial0(com.google.privacy.dlp.v2.HybridInspectStatistics result) {
381       int from_bitField0_ = bitField0_;
382       if (((from_bitField0_ & 0x00000001) != 0)) {
383         result.processedCount_ = processedCount_;
384       }
385       if (((from_bitField0_ & 0x00000002) != 0)) {
386         result.abortedCount_ = abortedCount_;
387       }
388       if (((from_bitField0_ & 0x00000004) != 0)) {
389         result.pendingCount_ = pendingCount_;
390       }
391     }
392 
393     @java.lang.Override
clone()394     public Builder clone() {
395       return super.clone();
396     }
397 
398     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)399     public Builder setField(
400         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
401       return super.setField(field, value);
402     }
403 
404     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)405     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
406       return super.clearField(field);
407     }
408 
409     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)410     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
411       return super.clearOneof(oneof);
412     }
413 
414     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)415     public Builder setRepeatedField(
416         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
417       return super.setRepeatedField(field, index, value);
418     }
419 
420     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)421     public Builder addRepeatedField(
422         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
423       return super.addRepeatedField(field, value);
424     }
425 
426     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)427     public Builder mergeFrom(com.google.protobuf.Message other) {
428       if (other instanceof com.google.privacy.dlp.v2.HybridInspectStatistics) {
429         return mergeFrom((com.google.privacy.dlp.v2.HybridInspectStatistics) other);
430       } else {
431         super.mergeFrom(other);
432         return this;
433       }
434     }
435 
mergeFrom(com.google.privacy.dlp.v2.HybridInspectStatistics other)436     public Builder mergeFrom(com.google.privacy.dlp.v2.HybridInspectStatistics other) {
437       if (other == com.google.privacy.dlp.v2.HybridInspectStatistics.getDefaultInstance())
438         return this;
439       if (other.getProcessedCount() != 0L) {
440         setProcessedCount(other.getProcessedCount());
441       }
442       if (other.getAbortedCount() != 0L) {
443         setAbortedCount(other.getAbortedCount());
444       }
445       if (other.getPendingCount() != 0L) {
446         setPendingCount(other.getPendingCount());
447       }
448       this.mergeUnknownFields(other.getUnknownFields());
449       onChanged();
450       return this;
451     }
452 
453     @java.lang.Override
isInitialized()454     public final boolean isInitialized() {
455       return true;
456     }
457 
458     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)459     public Builder mergeFrom(
460         com.google.protobuf.CodedInputStream input,
461         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
462         throws java.io.IOException {
463       if (extensionRegistry == null) {
464         throw new java.lang.NullPointerException();
465       }
466       try {
467         boolean done = false;
468         while (!done) {
469           int tag = input.readTag();
470           switch (tag) {
471             case 0:
472               done = true;
473               break;
474             case 8:
475               {
476                 processedCount_ = input.readInt64();
477                 bitField0_ |= 0x00000001;
478                 break;
479               } // case 8
480             case 16:
481               {
482                 abortedCount_ = input.readInt64();
483                 bitField0_ |= 0x00000002;
484                 break;
485               } // case 16
486             case 24:
487               {
488                 pendingCount_ = input.readInt64();
489                 bitField0_ |= 0x00000004;
490                 break;
491               } // case 24
492             default:
493               {
494                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
495                   done = true; // was an endgroup tag
496                 }
497                 break;
498               } // default:
499           } // switch (tag)
500         } // while (!done)
501       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
502         throw e.unwrapIOException();
503       } finally {
504         onChanged();
505       } // finally
506       return this;
507     }
508 
509     private int bitField0_;
510 
511     private long processedCount_;
512     /**
513      *
514      *
515      * <pre>
516      * The number of hybrid inspection requests processed within this job.
517      * </pre>
518      *
519      * <code>int64 processed_count = 1;</code>
520      *
521      * @return The processedCount.
522      */
523     @java.lang.Override
getProcessedCount()524     public long getProcessedCount() {
525       return processedCount_;
526     }
527     /**
528      *
529      *
530      * <pre>
531      * The number of hybrid inspection requests processed within this job.
532      * </pre>
533      *
534      * <code>int64 processed_count = 1;</code>
535      *
536      * @param value The processedCount to set.
537      * @return This builder for chaining.
538      */
setProcessedCount(long value)539     public Builder setProcessedCount(long value) {
540 
541       processedCount_ = value;
542       bitField0_ |= 0x00000001;
543       onChanged();
544       return this;
545     }
546     /**
547      *
548      *
549      * <pre>
550      * The number of hybrid inspection requests processed within this job.
551      * </pre>
552      *
553      * <code>int64 processed_count = 1;</code>
554      *
555      * @return This builder for chaining.
556      */
clearProcessedCount()557     public Builder clearProcessedCount() {
558       bitField0_ = (bitField0_ & ~0x00000001);
559       processedCount_ = 0L;
560       onChanged();
561       return this;
562     }
563 
564     private long abortedCount_;
565     /**
566      *
567      *
568      * <pre>
569      * The number of hybrid inspection requests aborted because the job ran
570      * out of quota or was ended before they could be processed.
571      * </pre>
572      *
573      * <code>int64 aborted_count = 2;</code>
574      *
575      * @return The abortedCount.
576      */
577     @java.lang.Override
getAbortedCount()578     public long getAbortedCount() {
579       return abortedCount_;
580     }
581     /**
582      *
583      *
584      * <pre>
585      * The number of hybrid inspection requests aborted because the job ran
586      * out of quota or was ended before they could be processed.
587      * </pre>
588      *
589      * <code>int64 aborted_count = 2;</code>
590      *
591      * @param value The abortedCount to set.
592      * @return This builder for chaining.
593      */
setAbortedCount(long value)594     public Builder setAbortedCount(long value) {
595 
596       abortedCount_ = value;
597       bitField0_ |= 0x00000002;
598       onChanged();
599       return this;
600     }
601     /**
602      *
603      *
604      * <pre>
605      * The number of hybrid inspection requests aborted because the job ran
606      * out of quota or was ended before they could be processed.
607      * </pre>
608      *
609      * <code>int64 aborted_count = 2;</code>
610      *
611      * @return This builder for chaining.
612      */
clearAbortedCount()613     public Builder clearAbortedCount() {
614       bitField0_ = (bitField0_ & ~0x00000002);
615       abortedCount_ = 0L;
616       onChanged();
617       return this;
618     }
619 
620     private long pendingCount_;
621     /**
622      *
623      *
624      * <pre>
625      * The number of hybrid requests currently being processed. Only populated
626      * when called via method `getDlpJob`.
627      * A burst of traffic may cause hybrid inspect requests to be enqueued.
628      * Processing will take place as quickly as possible, but resource limitations
629      * may impact how long a request is enqueued for.
630      * </pre>
631      *
632      * <code>int64 pending_count = 3;</code>
633      *
634      * @return The pendingCount.
635      */
636     @java.lang.Override
getPendingCount()637     public long getPendingCount() {
638       return pendingCount_;
639     }
640     /**
641      *
642      *
643      * <pre>
644      * The number of hybrid requests currently being processed. Only populated
645      * when called via method `getDlpJob`.
646      * A burst of traffic may cause hybrid inspect requests to be enqueued.
647      * Processing will take place as quickly as possible, but resource limitations
648      * may impact how long a request is enqueued for.
649      * </pre>
650      *
651      * <code>int64 pending_count = 3;</code>
652      *
653      * @param value The pendingCount to set.
654      * @return This builder for chaining.
655      */
setPendingCount(long value)656     public Builder setPendingCount(long value) {
657 
658       pendingCount_ = value;
659       bitField0_ |= 0x00000004;
660       onChanged();
661       return this;
662     }
663     /**
664      *
665      *
666      * <pre>
667      * The number of hybrid requests currently being processed. Only populated
668      * when called via method `getDlpJob`.
669      * A burst of traffic may cause hybrid inspect requests to be enqueued.
670      * Processing will take place as quickly as possible, but resource limitations
671      * may impact how long a request is enqueued for.
672      * </pre>
673      *
674      * <code>int64 pending_count = 3;</code>
675      *
676      * @return This builder for chaining.
677      */
clearPendingCount()678     public Builder clearPendingCount() {
679       bitField0_ = (bitField0_ & ~0x00000004);
680       pendingCount_ = 0L;
681       onChanged();
682       return this;
683     }
684 
685     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)686     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
687       return super.setUnknownFields(unknownFields);
688     }
689 
690     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)691     public final Builder mergeUnknownFields(
692         final com.google.protobuf.UnknownFieldSet unknownFields) {
693       return super.mergeUnknownFields(unknownFields);
694     }
695 
696     // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.HybridInspectStatistics)
697   }
698 
699   // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.HybridInspectStatistics)
700   private static final com.google.privacy.dlp.v2.HybridInspectStatistics DEFAULT_INSTANCE;
701 
702   static {
703     DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.HybridInspectStatistics();
704   }
705 
getDefaultInstance()706   public static com.google.privacy.dlp.v2.HybridInspectStatistics getDefaultInstance() {
707     return DEFAULT_INSTANCE;
708   }
709 
710   private static final com.google.protobuf.Parser<HybridInspectStatistics> PARSER =
711       new com.google.protobuf.AbstractParser<HybridInspectStatistics>() {
712         @java.lang.Override
713         public HybridInspectStatistics parsePartialFrom(
714             com.google.protobuf.CodedInputStream input,
715             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
716             throws com.google.protobuf.InvalidProtocolBufferException {
717           Builder builder = newBuilder();
718           try {
719             builder.mergeFrom(input, extensionRegistry);
720           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
721             throw e.setUnfinishedMessage(builder.buildPartial());
722           } catch (com.google.protobuf.UninitializedMessageException e) {
723             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
724           } catch (java.io.IOException e) {
725             throw new com.google.protobuf.InvalidProtocolBufferException(e)
726                 .setUnfinishedMessage(builder.buildPartial());
727           }
728           return builder.buildPartial();
729         }
730       };
731 
parser()732   public static com.google.protobuf.Parser<HybridInspectStatistics> parser() {
733     return PARSER;
734   }
735 
736   @java.lang.Override
getParserForType()737   public com.google.protobuf.Parser<HybridInspectStatistics> getParserForType() {
738     return PARSER;
739   }
740 
741   @java.lang.Override
getDefaultInstanceForType()742   public com.google.privacy.dlp.v2.HybridInspectStatistics getDefaultInstanceForType() {
743     return DEFAULT_INSTANCE;
744   }
745 }
746