• 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  * Shifts dates by random number of days, with option to be consistent for the
26  * same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
27  * to learn more.
28  * </pre>
29  *
30  * Protobuf type {@code google.privacy.dlp.v2.DateShiftConfig}
31  */
32 public final class DateShiftConfig extends com.google.protobuf.GeneratedMessageV3
33     implements
34     // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DateShiftConfig)
35     DateShiftConfigOrBuilder {
36   private static final long serialVersionUID = 0L;
37   // Use DateShiftConfig.newBuilder() to construct.
DateShiftConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)38   private DateShiftConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
39     super(builder);
40   }
41 
DateShiftConfig()42   private DateShiftConfig() {}
43 
44   @java.lang.Override
45   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)46   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
47     return new DateShiftConfig();
48   }
49 
50   @java.lang.Override
getUnknownFields()51   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
52     return this.unknownFields;
53   }
54 
getDescriptor()55   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
56     return com.google.privacy.dlp.v2.DlpProto
57         .internal_static_google_privacy_dlp_v2_DateShiftConfig_descriptor;
58   }
59 
60   @java.lang.Override
61   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()62       internalGetFieldAccessorTable() {
63     return com.google.privacy.dlp.v2.DlpProto
64         .internal_static_google_privacy_dlp_v2_DateShiftConfig_fieldAccessorTable
65         .ensureFieldAccessorsInitialized(
66             com.google.privacy.dlp.v2.DateShiftConfig.class,
67             com.google.privacy.dlp.v2.DateShiftConfig.Builder.class);
68   }
69 
70   private int methodCase_ = 0;
71   private java.lang.Object method_;
72 
73   public enum MethodCase
74       implements
75           com.google.protobuf.Internal.EnumLite,
76           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
77     CRYPTO_KEY(4),
78     METHOD_NOT_SET(0);
79     private final int value;
80 
MethodCase(int value)81     private MethodCase(int value) {
82       this.value = value;
83     }
84     /**
85      * @param value The number of the enum to look for.
86      * @return The enum associated with the given number.
87      * @deprecated Use {@link #forNumber(int)} instead.
88      */
89     @java.lang.Deprecated
valueOf(int value)90     public static MethodCase valueOf(int value) {
91       return forNumber(value);
92     }
93 
forNumber(int value)94     public static MethodCase forNumber(int value) {
95       switch (value) {
96         case 4:
97           return CRYPTO_KEY;
98         case 0:
99           return METHOD_NOT_SET;
100         default:
101           return null;
102       }
103     }
104 
getNumber()105     public int getNumber() {
106       return this.value;
107     }
108   };
109 
getMethodCase()110   public MethodCase getMethodCase() {
111     return MethodCase.forNumber(methodCase_);
112   }
113 
114   public static final int UPPER_BOUND_DAYS_FIELD_NUMBER = 1;
115   private int upperBoundDays_ = 0;
116   /**
117    *
118    *
119    * <pre>
120    * Required. Range of shift in days. Actual shift will be selected at random within this
121    * range (inclusive ends). Negative means shift to earlier in time. Must not
122    * be more than 365250 days (1000 years) each direction.
123    * For example, 3 means shift date to at most 3 days into the future.
124    * </pre>
125    *
126    * <code>int32 upper_bound_days = 1 [(.google.api.field_behavior) = REQUIRED];</code>
127    *
128    * @return The upperBoundDays.
129    */
130   @java.lang.Override
getUpperBoundDays()131   public int getUpperBoundDays() {
132     return upperBoundDays_;
133   }
134 
135   public static final int LOWER_BOUND_DAYS_FIELD_NUMBER = 2;
136   private int lowerBoundDays_ = 0;
137   /**
138    *
139    *
140    * <pre>
141    * Required. For example, -5 means shift date to at most 5 days back in the past.
142    * </pre>
143    *
144    * <code>int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED];</code>
145    *
146    * @return The lowerBoundDays.
147    */
148   @java.lang.Override
getLowerBoundDays()149   public int getLowerBoundDays() {
150     return lowerBoundDays_;
151   }
152 
153   public static final int CONTEXT_FIELD_NUMBER = 3;
154   private com.google.privacy.dlp.v2.FieldId context_;
155   /**
156    *
157    *
158    * <pre>
159    * Points to the field that contains the context, for example, an entity id.
160    * If set, must also set cryptoKey. If set, shift will be consistent for the
161    * given context.
162    * </pre>
163    *
164    * <code>.google.privacy.dlp.v2.FieldId context = 3;</code>
165    *
166    * @return Whether the context field is set.
167    */
168   @java.lang.Override
hasContext()169   public boolean hasContext() {
170     return context_ != null;
171   }
172   /**
173    *
174    *
175    * <pre>
176    * Points to the field that contains the context, for example, an entity id.
177    * If set, must also set cryptoKey. If set, shift will be consistent for the
178    * given context.
179    * </pre>
180    *
181    * <code>.google.privacy.dlp.v2.FieldId context = 3;</code>
182    *
183    * @return The context.
184    */
185   @java.lang.Override
getContext()186   public com.google.privacy.dlp.v2.FieldId getContext() {
187     return context_ == null ? com.google.privacy.dlp.v2.FieldId.getDefaultInstance() : context_;
188   }
189   /**
190    *
191    *
192    * <pre>
193    * Points to the field that contains the context, for example, an entity id.
194    * If set, must also set cryptoKey. If set, shift will be consistent for the
195    * given context.
196    * </pre>
197    *
198    * <code>.google.privacy.dlp.v2.FieldId context = 3;</code>
199    */
200   @java.lang.Override
getContextOrBuilder()201   public com.google.privacy.dlp.v2.FieldIdOrBuilder getContextOrBuilder() {
202     return context_ == null ? com.google.privacy.dlp.v2.FieldId.getDefaultInstance() : context_;
203   }
204 
205   public static final int CRYPTO_KEY_FIELD_NUMBER = 4;
206   /**
207    *
208    *
209    * <pre>
210    * Causes the shift to be computed based on this key and the context. This
211    * results in the same shift for the same context and crypto_key. If
212    * set, must also set context. Can only be applied to table items.
213    * </pre>
214    *
215    * <code>.google.privacy.dlp.v2.CryptoKey crypto_key = 4;</code>
216    *
217    * @return Whether the cryptoKey field is set.
218    */
219   @java.lang.Override
hasCryptoKey()220   public boolean hasCryptoKey() {
221     return methodCase_ == 4;
222   }
223   /**
224    *
225    *
226    * <pre>
227    * Causes the shift to be computed based on this key and the context. This
228    * results in the same shift for the same context and crypto_key. If
229    * set, must also set context. Can only be applied to table items.
230    * </pre>
231    *
232    * <code>.google.privacy.dlp.v2.CryptoKey crypto_key = 4;</code>
233    *
234    * @return The cryptoKey.
235    */
236   @java.lang.Override
getCryptoKey()237   public com.google.privacy.dlp.v2.CryptoKey getCryptoKey() {
238     if (methodCase_ == 4) {
239       return (com.google.privacy.dlp.v2.CryptoKey) method_;
240     }
241     return com.google.privacy.dlp.v2.CryptoKey.getDefaultInstance();
242   }
243   /**
244    *
245    *
246    * <pre>
247    * Causes the shift to be computed based on this key and the context. This
248    * results in the same shift for the same context and crypto_key. If
249    * set, must also set context. Can only be applied to table items.
250    * </pre>
251    *
252    * <code>.google.privacy.dlp.v2.CryptoKey crypto_key = 4;</code>
253    */
254   @java.lang.Override
getCryptoKeyOrBuilder()255   public com.google.privacy.dlp.v2.CryptoKeyOrBuilder getCryptoKeyOrBuilder() {
256     if (methodCase_ == 4) {
257       return (com.google.privacy.dlp.v2.CryptoKey) method_;
258     }
259     return com.google.privacy.dlp.v2.CryptoKey.getDefaultInstance();
260   }
261 
262   private byte memoizedIsInitialized = -1;
263 
264   @java.lang.Override
isInitialized()265   public final boolean isInitialized() {
266     byte isInitialized = memoizedIsInitialized;
267     if (isInitialized == 1) return true;
268     if (isInitialized == 0) return false;
269 
270     memoizedIsInitialized = 1;
271     return true;
272   }
273 
274   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)275   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
276     if (upperBoundDays_ != 0) {
277       output.writeInt32(1, upperBoundDays_);
278     }
279     if (lowerBoundDays_ != 0) {
280       output.writeInt32(2, lowerBoundDays_);
281     }
282     if (context_ != null) {
283       output.writeMessage(3, getContext());
284     }
285     if (methodCase_ == 4) {
286       output.writeMessage(4, (com.google.privacy.dlp.v2.CryptoKey) method_);
287     }
288     getUnknownFields().writeTo(output);
289   }
290 
291   @java.lang.Override
getSerializedSize()292   public int getSerializedSize() {
293     int size = memoizedSize;
294     if (size != -1) return size;
295 
296     size = 0;
297     if (upperBoundDays_ != 0) {
298       size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, upperBoundDays_);
299     }
300     if (lowerBoundDays_ != 0) {
301       size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, lowerBoundDays_);
302     }
303     if (context_ != null) {
304       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getContext());
305     }
306     if (methodCase_ == 4) {
307       size +=
308           com.google.protobuf.CodedOutputStream.computeMessageSize(
309               4, (com.google.privacy.dlp.v2.CryptoKey) method_);
310     }
311     size += getUnknownFields().getSerializedSize();
312     memoizedSize = size;
313     return size;
314   }
315 
316   @java.lang.Override
equals(final java.lang.Object obj)317   public boolean equals(final java.lang.Object obj) {
318     if (obj == this) {
319       return true;
320     }
321     if (!(obj instanceof com.google.privacy.dlp.v2.DateShiftConfig)) {
322       return super.equals(obj);
323     }
324     com.google.privacy.dlp.v2.DateShiftConfig other =
325         (com.google.privacy.dlp.v2.DateShiftConfig) obj;
326 
327     if (getUpperBoundDays() != other.getUpperBoundDays()) return false;
328     if (getLowerBoundDays() != other.getLowerBoundDays()) return false;
329     if (hasContext() != other.hasContext()) return false;
330     if (hasContext()) {
331       if (!getContext().equals(other.getContext())) return false;
332     }
333     if (!getMethodCase().equals(other.getMethodCase())) return false;
334     switch (methodCase_) {
335       case 4:
336         if (!getCryptoKey().equals(other.getCryptoKey())) return false;
337         break;
338       case 0:
339       default:
340     }
341     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
342     return true;
343   }
344 
345   @java.lang.Override
hashCode()346   public int hashCode() {
347     if (memoizedHashCode != 0) {
348       return memoizedHashCode;
349     }
350     int hash = 41;
351     hash = (19 * hash) + getDescriptor().hashCode();
352     hash = (37 * hash) + UPPER_BOUND_DAYS_FIELD_NUMBER;
353     hash = (53 * hash) + getUpperBoundDays();
354     hash = (37 * hash) + LOWER_BOUND_DAYS_FIELD_NUMBER;
355     hash = (53 * hash) + getLowerBoundDays();
356     if (hasContext()) {
357       hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
358       hash = (53 * hash) + getContext().hashCode();
359     }
360     switch (methodCase_) {
361       case 4:
362         hash = (37 * hash) + CRYPTO_KEY_FIELD_NUMBER;
363         hash = (53 * hash) + getCryptoKey().hashCode();
364         break;
365       case 0:
366       default:
367     }
368     hash = (29 * hash) + getUnknownFields().hashCode();
369     memoizedHashCode = hash;
370     return hash;
371   }
372 
parseFrom(java.nio.ByteBuffer data)373   public static com.google.privacy.dlp.v2.DateShiftConfig parseFrom(java.nio.ByteBuffer data)
374       throws com.google.protobuf.InvalidProtocolBufferException {
375     return PARSER.parseFrom(data);
376   }
377 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)378   public static com.google.privacy.dlp.v2.DateShiftConfig parseFrom(
379       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
380       throws com.google.protobuf.InvalidProtocolBufferException {
381     return PARSER.parseFrom(data, extensionRegistry);
382   }
383 
parseFrom( com.google.protobuf.ByteString data)384   public static com.google.privacy.dlp.v2.DateShiftConfig parseFrom(
385       com.google.protobuf.ByteString data)
386       throws com.google.protobuf.InvalidProtocolBufferException {
387     return PARSER.parseFrom(data);
388   }
389 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)390   public static com.google.privacy.dlp.v2.DateShiftConfig parseFrom(
391       com.google.protobuf.ByteString data,
392       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
393       throws com.google.protobuf.InvalidProtocolBufferException {
394     return PARSER.parseFrom(data, extensionRegistry);
395   }
396 
parseFrom(byte[] data)397   public static com.google.privacy.dlp.v2.DateShiftConfig parseFrom(byte[] data)
398       throws com.google.protobuf.InvalidProtocolBufferException {
399     return PARSER.parseFrom(data);
400   }
401 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)402   public static com.google.privacy.dlp.v2.DateShiftConfig parseFrom(
403       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
404       throws com.google.protobuf.InvalidProtocolBufferException {
405     return PARSER.parseFrom(data, extensionRegistry);
406   }
407 
parseFrom(java.io.InputStream input)408   public static com.google.privacy.dlp.v2.DateShiftConfig parseFrom(java.io.InputStream input)
409       throws java.io.IOException {
410     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
411   }
412 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)413   public static com.google.privacy.dlp.v2.DateShiftConfig parseFrom(
414       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
415       throws java.io.IOException {
416     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
417         PARSER, input, extensionRegistry);
418   }
419 
parseDelimitedFrom( java.io.InputStream input)420   public static com.google.privacy.dlp.v2.DateShiftConfig parseDelimitedFrom(
421       java.io.InputStream input) throws java.io.IOException {
422     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
423   }
424 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)425   public static com.google.privacy.dlp.v2.DateShiftConfig parseDelimitedFrom(
426       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
427       throws java.io.IOException {
428     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
429         PARSER, input, extensionRegistry);
430   }
431 
parseFrom( com.google.protobuf.CodedInputStream input)432   public static com.google.privacy.dlp.v2.DateShiftConfig parseFrom(
433       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
434     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
435   }
436 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)437   public static com.google.privacy.dlp.v2.DateShiftConfig parseFrom(
438       com.google.protobuf.CodedInputStream input,
439       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
440       throws java.io.IOException {
441     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
442         PARSER, input, extensionRegistry);
443   }
444 
445   @java.lang.Override
newBuilderForType()446   public Builder newBuilderForType() {
447     return newBuilder();
448   }
449 
newBuilder()450   public static Builder newBuilder() {
451     return DEFAULT_INSTANCE.toBuilder();
452   }
453 
newBuilder(com.google.privacy.dlp.v2.DateShiftConfig prototype)454   public static Builder newBuilder(com.google.privacy.dlp.v2.DateShiftConfig prototype) {
455     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
456   }
457 
458   @java.lang.Override
toBuilder()459   public Builder toBuilder() {
460     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
461   }
462 
463   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)464   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
465     Builder builder = new Builder(parent);
466     return builder;
467   }
468   /**
469    *
470    *
471    * <pre>
472    * Shifts dates by random number of days, with option to be consistent for the
473    * same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
474    * to learn more.
475    * </pre>
476    *
477    * Protobuf type {@code google.privacy.dlp.v2.DateShiftConfig}
478    */
479   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
480       implements
481       // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DateShiftConfig)
482       com.google.privacy.dlp.v2.DateShiftConfigOrBuilder {
getDescriptor()483     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
484       return com.google.privacy.dlp.v2.DlpProto
485           .internal_static_google_privacy_dlp_v2_DateShiftConfig_descriptor;
486     }
487 
488     @java.lang.Override
489     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()490         internalGetFieldAccessorTable() {
491       return com.google.privacy.dlp.v2.DlpProto
492           .internal_static_google_privacy_dlp_v2_DateShiftConfig_fieldAccessorTable
493           .ensureFieldAccessorsInitialized(
494               com.google.privacy.dlp.v2.DateShiftConfig.class,
495               com.google.privacy.dlp.v2.DateShiftConfig.Builder.class);
496     }
497 
498     // Construct using com.google.privacy.dlp.v2.DateShiftConfig.newBuilder()
Builder()499     private Builder() {}
500 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)501     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
502       super(parent);
503     }
504 
505     @java.lang.Override
clear()506     public Builder clear() {
507       super.clear();
508       bitField0_ = 0;
509       upperBoundDays_ = 0;
510       lowerBoundDays_ = 0;
511       context_ = null;
512       if (contextBuilder_ != null) {
513         contextBuilder_.dispose();
514         contextBuilder_ = null;
515       }
516       if (cryptoKeyBuilder_ != null) {
517         cryptoKeyBuilder_.clear();
518       }
519       methodCase_ = 0;
520       method_ = null;
521       return this;
522     }
523 
524     @java.lang.Override
getDescriptorForType()525     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
526       return com.google.privacy.dlp.v2.DlpProto
527           .internal_static_google_privacy_dlp_v2_DateShiftConfig_descriptor;
528     }
529 
530     @java.lang.Override
getDefaultInstanceForType()531     public com.google.privacy.dlp.v2.DateShiftConfig getDefaultInstanceForType() {
532       return com.google.privacy.dlp.v2.DateShiftConfig.getDefaultInstance();
533     }
534 
535     @java.lang.Override
build()536     public com.google.privacy.dlp.v2.DateShiftConfig build() {
537       com.google.privacy.dlp.v2.DateShiftConfig result = buildPartial();
538       if (!result.isInitialized()) {
539         throw newUninitializedMessageException(result);
540       }
541       return result;
542     }
543 
544     @java.lang.Override
buildPartial()545     public com.google.privacy.dlp.v2.DateShiftConfig buildPartial() {
546       com.google.privacy.dlp.v2.DateShiftConfig result =
547           new com.google.privacy.dlp.v2.DateShiftConfig(this);
548       if (bitField0_ != 0) {
549         buildPartial0(result);
550       }
551       buildPartialOneofs(result);
552       onBuilt();
553       return result;
554     }
555 
buildPartial0(com.google.privacy.dlp.v2.DateShiftConfig result)556     private void buildPartial0(com.google.privacy.dlp.v2.DateShiftConfig result) {
557       int from_bitField0_ = bitField0_;
558       if (((from_bitField0_ & 0x00000001) != 0)) {
559         result.upperBoundDays_ = upperBoundDays_;
560       }
561       if (((from_bitField0_ & 0x00000002) != 0)) {
562         result.lowerBoundDays_ = lowerBoundDays_;
563       }
564       if (((from_bitField0_ & 0x00000004) != 0)) {
565         result.context_ = contextBuilder_ == null ? context_ : contextBuilder_.build();
566       }
567     }
568 
buildPartialOneofs(com.google.privacy.dlp.v2.DateShiftConfig result)569     private void buildPartialOneofs(com.google.privacy.dlp.v2.DateShiftConfig result) {
570       result.methodCase_ = methodCase_;
571       result.method_ = this.method_;
572       if (methodCase_ == 4 && cryptoKeyBuilder_ != null) {
573         result.method_ = cryptoKeyBuilder_.build();
574       }
575     }
576 
577     @java.lang.Override
clone()578     public Builder clone() {
579       return super.clone();
580     }
581 
582     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)583     public Builder setField(
584         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
585       return super.setField(field, value);
586     }
587 
588     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)589     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
590       return super.clearField(field);
591     }
592 
593     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)594     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
595       return super.clearOneof(oneof);
596     }
597 
598     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)599     public Builder setRepeatedField(
600         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
601       return super.setRepeatedField(field, index, value);
602     }
603 
604     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)605     public Builder addRepeatedField(
606         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
607       return super.addRepeatedField(field, value);
608     }
609 
610     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)611     public Builder mergeFrom(com.google.protobuf.Message other) {
612       if (other instanceof com.google.privacy.dlp.v2.DateShiftConfig) {
613         return mergeFrom((com.google.privacy.dlp.v2.DateShiftConfig) other);
614       } else {
615         super.mergeFrom(other);
616         return this;
617       }
618     }
619 
mergeFrom(com.google.privacy.dlp.v2.DateShiftConfig other)620     public Builder mergeFrom(com.google.privacy.dlp.v2.DateShiftConfig other) {
621       if (other == com.google.privacy.dlp.v2.DateShiftConfig.getDefaultInstance()) return this;
622       if (other.getUpperBoundDays() != 0) {
623         setUpperBoundDays(other.getUpperBoundDays());
624       }
625       if (other.getLowerBoundDays() != 0) {
626         setLowerBoundDays(other.getLowerBoundDays());
627       }
628       if (other.hasContext()) {
629         mergeContext(other.getContext());
630       }
631       switch (other.getMethodCase()) {
632         case CRYPTO_KEY:
633           {
634             mergeCryptoKey(other.getCryptoKey());
635             break;
636           }
637         case METHOD_NOT_SET:
638           {
639             break;
640           }
641       }
642       this.mergeUnknownFields(other.getUnknownFields());
643       onChanged();
644       return this;
645     }
646 
647     @java.lang.Override
isInitialized()648     public final boolean isInitialized() {
649       return true;
650     }
651 
652     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)653     public Builder mergeFrom(
654         com.google.protobuf.CodedInputStream input,
655         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
656         throws java.io.IOException {
657       if (extensionRegistry == null) {
658         throw new java.lang.NullPointerException();
659       }
660       try {
661         boolean done = false;
662         while (!done) {
663           int tag = input.readTag();
664           switch (tag) {
665             case 0:
666               done = true;
667               break;
668             case 8:
669               {
670                 upperBoundDays_ = input.readInt32();
671                 bitField0_ |= 0x00000001;
672                 break;
673               } // case 8
674             case 16:
675               {
676                 lowerBoundDays_ = input.readInt32();
677                 bitField0_ |= 0x00000002;
678                 break;
679               } // case 16
680             case 26:
681               {
682                 input.readMessage(getContextFieldBuilder().getBuilder(), extensionRegistry);
683                 bitField0_ |= 0x00000004;
684                 break;
685               } // case 26
686             case 34:
687               {
688                 input.readMessage(getCryptoKeyFieldBuilder().getBuilder(), extensionRegistry);
689                 methodCase_ = 4;
690                 break;
691               } // case 34
692             default:
693               {
694                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
695                   done = true; // was an endgroup tag
696                 }
697                 break;
698               } // default:
699           } // switch (tag)
700         } // while (!done)
701       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
702         throw e.unwrapIOException();
703       } finally {
704         onChanged();
705       } // finally
706       return this;
707     }
708 
709     private int methodCase_ = 0;
710     private java.lang.Object method_;
711 
getMethodCase()712     public MethodCase getMethodCase() {
713       return MethodCase.forNumber(methodCase_);
714     }
715 
clearMethod()716     public Builder clearMethod() {
717       methodCase_ = 0;
718       method_ = null;
719       onChanged();
720       return this;
721     }
722 
723     private int bitField0_;
724 
725     private int upperBoundDays_;
726     /**
727      *
728      *
729      * <pre>
730      * Required. Range of shift in days. Actual shift will be selected at random within this
731      * range (inclusive ends). Negative means shift to earlier in time. Must not
732      * be more than 365250 days (1000 years) each direction.
733      * For example, 3 means shift date to at most 3 days into the future.
734      * </pre>
735      *
736      * <code>int32 upper_bound_days = 1 [(.google.api.field_behavior) = REQUIRED];</code>
737      *
738      * @return The upperBoundDays.
739      */
740     @java.lang.Override
getUpperBoundDays()741     public int getUpperBoundDays() {
742       return upperBoundDays_;
743     }
744     /**
745      *
746      *
747      * <pre>
748      * Required. Range of shift in days. Actual shift will be selected at random within this
749      * range (inclusive ends). Negative means shift to earlier in time. Must not
750      * be more than 365250 days (1000 years) each direction.
751      * For example, 3 means shift date to at most 3 days into the future.
752      * </pre>
753      *
754      * <code>int32 upper_bound_days = 1 [(.google.api.field_behavior) = REQUIRED];</code>
755      *
756      * @param value The upperBoundDays to set.
757      * @return This builder for chaining.
758      */
setUpperBoundDays(int value)759     public Builder setUpperBoundDays(int value) {
760 
761       upperBoundDays_ = value;
762       bitField0_ |= 0x00000001;
763       onChanged();
764       return this;
765     }
766     /**
767      *
768      *
769      * <pre>
770      * Required. Range of shift in days. Actual shift will be selected at random within this
771      * range (inclusive ends). Negative means shift to earlier in time. Must not
772      * be more than 365250 days (1000 years) each direction.
773      * For example, 3 means shift date to at most 3 days into the future.
774      * </pre>
775      *
776      * <code>int32 upper_bound_days = 1 [(.google.api.field_behavior) = REQUIRED];</code>
777      *
778      * @return This builder for chaining.
779      */
clearUpperBoundDays()780     public Builder clearUpperBoundDays() {
781       bitField0_ = (bitField0_ & ~0x00000001);
782       upperBoundDays_ = 0;
783       onChanged();
784       return this;
785     }
786 
787     private int lowerBoundDays_;
788     /**
789      *
790      *
791      * <pre>
792      * Required. For example, -5 means shift date to at most 5 days back in the past.
793      * </pre>
794      *
795      * <code>int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED];</code>
796      *
797      * @return The lowerBoundDays.
798      */
799     @java.lang.Override
getLowerBoundDays()800     public int getLowerBoundDays() {
801       return lowerBoundDays_;
802     }
803     /**
804      *
805      *
806      * <pre>
807      * Required. For example, -5 means shift date to at most 5 days back in the past.
808      * </pre>
809      *
810      * <code>int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED];</code>
811      *
812      * @param value The lowerBoundDays to set.
813      * @return This builder for chaining.
814      */
setLowerBoundDays(int value)815     public Builder setLowerBoundDays(int value) {
816 
817       lowerBoundDays_ = value;
818       bitField0_ |= 0x00000002;
819       onChanged();
820       return this;
821     }
822     /**
823      *
824      *
825      * <pre>
826      * Required. For example, -5 means shift date to at most 5 days back in the past.
827      * </pre>
828      *
829      * <code>int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED];</code>
830      *
831      * @return This builder for chaining.
832      */
clearLowerBoundDays()833     public Builder clearLowerBoundDays() {
834       bitField0_ = (bitField0_ & ~0x00000002);
835       lowerBoundDays_ = 0;
836       onChanged();
837       return this;
838     }
839 
840     private com.google.privacy.dlp.v2.FieldId context_;
841     private com.google.protobuf.SingleFieldBuilderV3<
842             com.google.privacy.dlp.v2.FieldId,
843             com.google.privacy.dlp.v2.FieldId.Builder,
844             com.google.privacy.dlp.v2.FieldIdOrBuilder>
845         contextBuilder_;
846     /**
847      *
848      *
849      * <pre>
850      * Points to the field that contains the context, for example, an entity id.
851      * If set, must also set cryptoKey. If set, shift will be consistent for the
852      * given context.
853      * </pre>
854      *
855      * <code>.google.privacy.dlp.v2.FieldId context = 3;</code>
856      *
857      * @return Whether the context field is set.
858      */
hasContext()859     public boolean hasContext() {
860       return ((bitField0_ & 0x00000004) != 0);
861     }
862     /**
863      *
864      *
865      * <pre>
866      * Points to the field that contains the context, for example, an entity id.
867      * If set, must also set cryptoKey. If set, shift will be consistent for the
868      * given context.
869      * </pre>
870      *
871      * <code>.google.privacy.dlp.v2.FieldId context = 3;</code>
872      *
873      * @return The context.
874      */
getContext()875     public com.google.privacy.dlp.v2.FieldId getContext() {
876       if (contextBuilder_ == null) {
877         return context_ == null ? com.google.privacy.dlp.v2.FieldId.getDefaultInstance() : context_;
878       } else {
879         return contextBuilder_.getMessage();
880       }
881     }
882     /**
883      *
884      *
885      * <pre>
886      * Points to the field that contains the context, for example, an entity id.
887      * If set, must also set cryptoKey. If set, shift will be consistent for the
888      * given context.
889      * </pre>
890      *
891      * <code>.google.privacy.dlp.v2.FieldId context = 3;</code>
892      */
setContext(com.google.privacy.dlp.v2.FieldId value)893     public Builder setContext(com.google.privacy.dlp.v2.FieldId value) {
894       if (contextBuilder_ == null) {
895         if (value == null) {
896           throw new NullPointerException();
897         }
898         context_ = value;
899       } else {
900         contextBuilder_.setMessage(value);
901       }
902       bitField0_ |= 0x00000004;
903       onChanged();
904       return this;
905     }
906     /**
907      *
908      *
909      * <pre>
910      * Points to the field that contains the context, for example, an entity id.
911      * If set, must also set cryptoKey. If set, shift will be consistent for the
912      * given context.
913      * </pre>
914      *
915      * <code>.google.privacy.dlp.v2.FieldId context = 3;</code>
916      */
setContext(com.google.privacy.dlp.v2.FieldId.Builder builderForValue)917     public Builder setContext(com.google.privacy.dlp.v2.FieldId.Builder builderForValue) {
918       if (contextBuilder_ == null) {
919         context_ = builderForValue.build();
920       } else {
921         contextBuilder_.setMessage(builderForValue.build());
922       }
923       bitField0_ |= 0x00000004;
924       onChanged();
925       return this;
926     }
927     /**
928      *
929      *
930      * <pre>
931      * Points to the field that contains the context, for example, an entity id.
932      * If set, must also set cryptoKey. If set, shift will be consistent for the
933      * given context.
934      * </pre>
935      *
936      * <code>.google.privacy.dlp.v2.FieldId context = 3;</code>
937      */
mergeContext(com.google.privacy.dlp.v2.FieldId value)938     public Builder mergeContext(com.google.privacy.dlp.v2.FieldId value) {
939       if (contextBuilder_ == null) {
940         if (((bitField0_ & 0x00000004) != 0)
941             && context_ != null
942             && context_ != com.google.privacy.dlp.v2.FieldId.getDefaultInstance()) {
943           getContextBuilder().mergeFrom(value);
944         } else {
945           context_ = value;
946         }
947       } else {
948         contextBuilder_.mergeFrom(value);
949       }
950       bitField0_ |= 0x00000004;
951       onChanged();
952       return this;
953     }
954     /**
955      *
956      *
957      * <pre>
958      * Points to the field that contains the context, for example, an entity id.
959      * If set, must also set cryptoKey. If set, shift will be consistent for the
960      * given context.
961      * </pre>
962      *
963      * <code>.google.privacy.dlp.v2.FieldId context = 3;</code>
964      */
clearContext()965     public Builder clearContext() {
966       bitField0_ = (bitField0_ & ~0x00000004);
967       context_ = null;
968       if (contextBuilder_ != null) {
969         contextBuilder_.dispose();
970         contextBuilder_ = null;
971       }
972       onChanged();
973       return this;
974     }
975     /**
976      *
977      *
978      * <pre>
979      * Points to the field that contains the context, for example, an entity id.
980      * If set, must also set cryptoKey. If set, shift will be consistent for the
981      * given context.
982      * </pre>
983      *
984      * <code>.google.privacy.dlp.v2.FieldId context = 3;</code>
985      */
getContextBuilder()986     public com.google.privacy.dlp.v2.FieldId.Builder getContextBuilder() {
987       bitField0_ |= 0x00000004;
988       onChanged();
989       return getContextFieldBuilder().getBuilder();
990     }
991     /**
992      *
993      *
994      * <pre>
995      * Points to the field that contains the context, for example, an entity id.
996      * If set, must also set cryptoKey. If set, shift will be consistent for the
997      * given context.
998      * </pre>
999      *
1000      * <code>.google.privacy.dlp.v2.FieldId context = 3;</code>
1001      */
getContextOrBuilder()1002     public com.google.privacy.dlp.v2.FieldIdOrBuilder getContextOrBuilder() {
1003       if (contextBuilder_ != null) {
1004         return contextBuilder_.getMessageOrBuilder();
1005       } else {
1006         return context_ == null ? com.google.privacy.dlp.v2.FieldId.getDefaultInstance() : context_;
1007       }
1008     }
1009     /**
1010      *
1011      *
1012      * <pre>
1013      * Points to the field that contains the context, for example, an entity id.
1014      * If set, must also set cryptoKey. If set, shift will be consistent for the
1015      * given context.
1016      * </pre>
1017      *
1018      * <code>.google.privacy.dlp.v2.FieldId context = 3;</code>
1019      */
1020     private com.google.protobuf.SingleFieldBuilderV3<
1021             com.google.privacy.dlp.v2.FieldId,
1022             com.google.privacy.dlp.v2.FieldId.Builder,
1023             com.google.privacy.dlp.v2.FieldIdOrBuilder>
getContextFieldBuilder()1024         getContextFieldBuilder() {
1025       if (contextBuilder_ == null) {
1026         contextBuilder_ =
1027             new com.google.protobuf.SingleFieldBuilderV3<
1028                 com.google.privacy.dlp.v2.FieldId,
1029                 com.google.privacy.dlp.v2.FieldId.Builder,
1030                 com.google.privacy.dlp.v2.FieldIdOrBuilder>(
1031                 getContext(), getParentForChildren(), isClean());
1032         context_ = null;
1033       }
1034       return contextBuilder_;
1035     }
1036 
1037     private com.google.protobuf.SingleFieldBuilderV3<
1038             com.google.privacy.dlp.v2.CryptoKey,
1039             com.google.privacy.dlp.v2.CryptoKey.Builder,
1040             com.google.privacy.dlp.v2.CryptoKeyOrBuilder>
1041         cryptoKeyBuilder_;
1042     /**
1043      *
1044      *
1045      * <pre>
1046      * Causes the shift to be computed based on this key and the context. This
1047      * results in the same shift for the same context and crypto_key. If
1048      * set, must also set context. Can only be applied to table items.
1049      * </pre>
1050      *
1051      * <code>.google.privacy.dlp.v2.CryptoKey crypto_key = 4;</code>
1052      *
1053      * @return Whether the cryptoKey field is set.
1054      */
1055     @java.lang.Override
hasCryptoKey()1056     public boolean hasCryptoKey() {
1057       return methodCase_ == 4;
1058     }
1059     /**
1060      *
1061      *
1062      * <pre>
1063      * Causes the shift to be computed based on this key and the context. This
1064      * results in the same shift for the same context and crypto_key. If
1065      * set, must also set context. Can only be applied to table items.
1066      * </pre>
1067      *
1068      * <code>.google.privacy.dlp.v2.CryptoKey crypto_key = 4;</code>
1069      *
1070      * @return The cryptoKey.
1071      */
1072     @java.lang.Override
getCryptoKey()1073     public com.google.privacy.dlp.v2.CryptoKey getCryptoKey() {
1074       if (cryptoKeyBuilder_ == null) {
1075         if (methodCase_ == 4) {
1076           return (com.google.privacy.dlp.v2.CryptoKey) method_;
1077         }
1078         return com.google.privacy.dlp.v2.CryptoKey.getDefaultInstance();
1079       } else {
1080         if (methodCase_ == 4) {
1081           return cryptoKeyBuilder_.getMessage();
1082         }
1083         return com.google.privacy.dlp.v2.CryptoKey.getDefaultInstance();
1084       }
1085     }
1086     /**
1087      *
1088      *
1089      * <pre>
1090      * Causes the shift to be computed based on this key and the context. This
1091      * results in the same shift for the same context and crypto_key. If
1092      * set, must also set context. Can only be applied to table items.
1093      * </pre>
1094      *
1095      * <code>.google.privacy.dlp.v2.CryptoKey crypto_key = 4;</code>
1096      */
setCryptoKey(com.google.privacy.dlp.v2.CryptoKey value)1097     public Builder setCryptoKey(com.google.privacy.dlp.v2.CryptoKey value) {
1098       if (cryptoKeyBuilder_ == null) {
1099         if (value == null) {
1100           throw new NullPointerException();
1101         }
1102         method_ = value;
1103         onChanged();
1104       } else {
1105         cryptoKeyBuilder_.setMessage(value);
1106       }
1107       methodCase_ = 4;
1108       return this;
1109     }
1110     /**
1111      *
1112      *
1113      * <pre>
1114      * Causes the shift to be computed based on this key and the context. This
1115      * results in the same shift for the same context and crypto_key. If
1116      * set, must also set context. Can only be applied to table items.
1117      * </pre>
1118      *
1119      * <code>.google.privacy.dlp.v2.CryptoKey crypto_key = 4;</code>
1120      */
setCryptoKey(com.google.privacy.dlp.v2.CryptoKey.Builder builderForValue)1121     public Builder setCryptoKey(com.google.privacy.dlp.v2.CryptoKey.Builder builderForValue) {
1122       if (cryptoKeyBuilder_ == null) {
1123         method_ = builderForValue.build();
1124         onChanged();
1125       } else {
1126         cryptoKeyBuilder_.setMessage(builderForValue.build());
1127       }
1128       methodCase_ = 4;
1129       return this;
1130     }
1131     /**
1132      *
1133      *
1134      * <pre>
1135      * Causes the shift to be computed based on this key and the context. This
1136      * results in the same shift for the same context and crypto_key. If
1137      * set, must also set context. Can only be applied to table items.
1138      * </pre>
1139      *
1140      * <code>.google.privacy.dlp.v2.CryptoKey crypto_key = 4;</code>
1141      */
mergeCryptoKey(com.google.privacy.dlp.v2.CryptoKey value)1142     public Builder mergeCryptoKey(com.google.privacy.dlp.v2.CryptoKey value) {
1143       if (cryptoKeyBuilder_ == null) {
1144         if (methodCase_ == 4
1145             && method_ != com.google.privacy.dlp.v2.CryptoKey.getDefaultInstance()) {
1146           method_ =
1147               com.google.privacy.dlp.v2.CryptoKey.newBuilder(
1148                       (com.google.privacy.dlp.v2.CryptoKey) method_)
1149                   .mergeFrom(value)
1150                   .buildPartial();
1151         } else {
1152           method_ = value;
1153         }
1154         onChanged();
1155       } else {
1156         if (methodCase_ == 4) {
1157           cryptoKeyBuilder_.mergeFrom(value);
1158         } else {
1159           cryptoKeyBuilder_.setMessage(value);
1160         }
1161       }
1162       methodCase_ = 4;
1163       return this;
1164     }
1165     /**
1166      *
1167      *
1168      * <pre>
1169      * Causes the shift to be computed based on this key and the context. This
1170      * results in the same shift for the same context and crypto_key. If
1171      * set, must also set context. Can only be applied to table items.
1172      * </pre>
1173      *
1174      * <code>.google.privacy.dlp.v2.CryptoKey crypto_key = 4;</code>
1175      */
clearCryptoKey()1176     public Builder clearCryptoKey() {
1177       if (cryptoKeyBuilder_ == null) {
1178         if (methodCase_ == 4) {
1179           methodCase_ = 0;
1180           method_ = null;
1181           onChanged();
1182         }
1183       } else {
1184         if (methodCase_ == 4) {
1185           methodCase_ = 0;
1186           method_ = null;
1187         }
1188         cryptoKeyBuilder_.clear();
1189       }
1190       return this;
1191     }
1192     /**
1193      *
1194      *
1195      * <pre>
1196      * Causes the shift to be computed based on this key and the context. This
1197      * results in the same shift for the same context and crypto_key. If
1198      * set, must also set context. Can only be applied to table items.
1199      * </pre>
1200      *
1201      * <code>.google.privacy.dlp.v2.CryptoKey crypto_key = 4;</code>
1202      */
getCryptoKeyBuilder()1203     public com.google.privacy.dlp.v2.CryptoKey.Builder getCryptoKeyBuilder() {
1204       return getCryptoKeyFieldBuilder().getBuilder();
1205     }
1206     /**
1207      *
1208      *
1209      * <pre>
1210      * Causes the shift to be computed based on this key and the context. This
1211      * results in the same shift for the same context and crypto_key. If
1212      * set, must also set context. Can only be applied to table items.
1213      * </pre>
1214      *
1215      * <code>.google.privacy.dlp.v2.CryptoKey crypto_key = 4;</code>
1216      */
1217     @java.lang.Override
getCryptoKeyOrBuilder()1218     public com.google.privacy.dlp.v2.CryptoKeyOrBuilder getCryptoKeyOrBuilder() {
1219       if ((methodCase_ == 4) && (cryptoKeyBuilder_ != null)) {
1220         return cryptoKeyBuilder_.getMessageOrBuilder();
1221       } else {
1222         if (methodCase_ == 4) {
1223           return (com.google.privacy.dlp.v2.CryptoKey) method_;
1224         }
1225         return com.google.privacy.dlp.v2.CryptoKey.getDefaultInstance();
1226       }
1227     }
1228     /**
1229      *
1230      *
1231      * <pre>
1232      * Causes the shift to be computed based on this key and the context. This
1233      * results in the same shift for the same context and crypto_key. If
1234      * set, must also set context. Can only be applied to table items.
1235      * </pre>
1236      *
1237      * <code>.google.privacy.dlp.v2.CryptoKey crypto_key = 4;</code>
1238      */
1239     private com.google.protobuf.SingleFieldBuilderV3<
1240             com.google.privacy.dlp.v2.CryptoKey,
1241             com.google.privacy.dlp.v2.CryptoKey.Builder,
1242             com.google.privacy.dlp.v2.CryptoKeyOrBuilder>
getCryptoKeyFieldBuilder()1243         getCryptoKeyFieldBuilder() {
1244       if (cryptoKeyBuilder_ == null) {
1245         if (!(methodCase_ == 4)) {
1246           method_ = com.google.privacy.dlp.v2.CryptoKey.getDefaultInstance();
1247         }
1248         cryptoKeyBuilder_ =
1249             new com.google.protobuf.SingleFieldBuilderV3<
1250                 com.google.privacy.dlp.v2.CryptoKey,
1251                 com.google.privacy.dlp.v2.CryptoKey.Builder,
1252                 com.google.privacy.dlp.v2.CryptoKeyOrBuilder>(
1253                 (com.google.privacy.dlp.v2.CryptoKey) method_, getParentForChildren(), isClean());
1254         method_ = null;
1255       }
1256       methodCase_ = 4;
1257       onChanged();
1258       return cryptoKeyBuilder_;
1259     }
1260 
1261     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1262     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1263       return super.setUnknownFields(unknownFields);
1264     }
1265 
1266     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1267     public final Builder mergeUnknownFields(
1268         final com.google.protobuf.UnknownFieldSet unknownFields) {
1269       return super.mergeUnknownFields(unknownFields);
1270     }
1271 
1272     // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DateShiftConfig)
1273   }
1274 
1275   // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DateShiftConfig)
1276   private static final com.google.privacy.dlp.v2.DateShiftConfig DEFAULT_INSTANCE;
1277 
1278   static {
1279     DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DateShiftConfig();
1280   }
1281 
getDefaultInstance()1282   public static com.google.privacy.dlp.v2.DateShiftConfig getDefaultInstance() {
1283     return DEFAULT_INSTANCE;
1284   }
1285 
1286   private static final com.google.protobuf.Parser<DateShiftConfig> PARSER =
1287       new com.google.protobuf.AbstractParser<DateShiftConfig>() {
1288         @java.lang.Override
1289         public DateShiftConfig parsePartialFrom(
1290             com.google.protobuf.CodedInputStream input,
1291             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1292             throws com.google.protobuf.InvalidProtocolBufferException {
1293           Builder builder = newBuilder();
1294           try {
1295             builder.mergeFrom(input, extensionRegistry);
1296           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1297             throw e.setUnfinishedMessage(builder.buildPartial());
1298           } catch (com.google.protobuf.UninitializedMessageException e) {
1299             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1300           } catch (java.io.IOException e) {
1301             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1302                 .setUnfinishedMessage(builder.buildPartial());
1303           }
1304           return builder.buildPartial();
1305         }
1306       };
1307 
parser()1308   public static com.google.protobuf.Parser<DateShiftConfig> parser() {
1309     return PARSER;
1310   }
1311 
1312   @java.lang.Override
getParserForType()1313   public com.google.protobuf.Parser<DateShiftConfig> getParserForType() {
1314     return PARSER;
1315   }
1316 
1317   @java.lang.Override
getDefaultInstanceForType()1318   public com.google.privacy.dlp.v2.DateShiftConfig getDefaultInstanceForType() {
1319     return DEFAULT_INSTANCE;
1320   }
1321 }
1322