@@ -41,6 +41,7 @@ private CreateDeidentifyTemplateRequest(
4141 private CreateDeidentifyTemplateRequest () {
4242 parent_ = "" ;
4343 templateId_ = "" ;
44+ locationId_ = "" ;
4445 }
4546
4647 @ java .lang .Override
@@ -97,6 +98,13 @@ private CreateDeidentifyTemplateRequest(
9798 templateId_ = s ;
9899 break ;
99100 }
101+ case 34 :
102+ {
103+ java .lang .String s = input .readStringRequireUtf8 ();
104+
105+ locationId_ = s ;
106+ break ;
107+ }
100108 default :
101109 {
102110 if (!parseUnknownField (input , unknownFields , extensionRegistry , tag )) {
@@ -270,6 +278,51 @@ public com.google.protobuf.ByteString getTemplateIdBytes() {
270278 }
271279 }
272280
281+ public static final int LOCATION_ID_FIELD_NUMBER = 4 ;
282+ private volatile java .lang .Object locationId_ ;
283+ /**
284+ *
285+ *
286+ * <pre>
287+ * The geographic location to store the deidentification template. Reserved
288+ * for future extensions.
289+ * </pre>
290+ *
291+ * <code>string location_id = 4;</code>
292+ */
293+ public java .lang .String getLocationId () {
294+ java .lang .Object ref = locationId_ ;
295+ if (ref instanceof java .lang .String ) {
296+ return (java .lang .String ) ref ;
297+ } else {
298+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString ) ref ;
299+ java .lang .String s = bs .toStringUtf8 ();
300+ locationId_ = s ;
301+ return s ;
302+ }
303+ }
304+ /**
305+ *
306+ *
307+ * <pre>
308+ * The geographic location to store the deidentification template. Reserved
309+ * for future extensions.
310+ * </pre>
311+ *
312+ * <code>string location_id = 4;</code>
313+ */
314+ public com .google .protobuf .ByteString getLocationIdBytes () {
315+ java .lang .Object ref = locationId_ ;
316+ if (ref instanceof java .lang .String ) {
317+ com .google .protobuf .ByteString b =
318+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String ) ref );
319+ locationId_ = b ;
320+ return b ;
321+ } else {
322+ return (com .google .protobuf .ByteString ) ref ;
323+ }
324+ }
325+
273326 private byte memoizedIsInitialized = -1 ;
274327
275328 @ java .lang .Override
@@ -293,6 +346,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
293346 if (!getTemplateIdBytes ().isEmpty ()) {
294347 com .google .protobuf .GeneratedMessageV3 .writeString (output , 3 , templateId_ );
295348 }
349+ if (!getLocationIdBytes ().isEmpty ()) {
350+ com .google .protobuf .GeneratedMessageV3 .writeString (output , 4 , locationId_ );
351+ }
296352 unknownFields .writeTo (output );
297353 }
298354
@@ -311,6 +367,9 @@ public int getSerializedSize() {
311367 if (!getTemplateIdBytes ().isEmpty ()) {
312368 size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (3 , templateId_ );
313369 }
370+ if (!getLocationIdBytes ().isEmpty ()) {
371+ size += com .google .protobuf .GeneratedMessageV3 .computeStringSize (4 , locationId_ );
372+ }
314373 size += unknownFields .getSerializedSize ();
315374 memoizedSize = size ;
316375 return size ;
@@ -333,6 +392,7 @@ public boolean equals(final java.lang.Object obj) {
333392 if (!getDeidentifyTemplate ().equals (other .getDeidentifyTemplate ())) return false ;
334393 }
335394 if (!getTemplateId ().equals (other .getTemplateId ())) return false ;
395+ if (!getLocationId ().equals (other .getLocationId ())) return false ;
336396 if (!unknownFields .equals (other .unknownFields )) return false ;
337397 return true ;
338398 }
@@ -352,6 +412,8 @@ public int hashCode() {
352412 }
353413 hash = (37 * hash ) + TEMPLATE_ID_FIELD_NUMBER ;
354414 hash = (53 * hash ) + getTemplateId ().hashCode ();
415+ hash = (37 * hash ) + LOCATION_ID_FIELD_NUMBER ;
416+ hash = (53 * hash ) + getLocationId ().hashCode ();
355417 hash = (29 * hash ) + unknownFields .hashCode ();
356418 memoizedHashCode = hash ;
357419 return hash ;
@@ -508,6 +570,8 @@ public Builder clear() {
508570 }
509571 templateId_ = "" ;
510572
573+ locationId_ = "" ;
574+
511575 return this ;
512576 }
513577
@@ -542,6 +606,7 @@ public com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest buildPartial()
542606 result .deidentifyTemplate_ = deidentifyTemplateBuilder_ .build ();
543607 }
544608 result .templateId_ = templateId_ ;
609+ result .locationId_ = locationId_ ;
545610 onBuilt ();
546611 return result ;
547612 }
@@ -603,6 +668,10 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.CreateDeidentifyTemplateReque
603668 templateId_ = other .templateId_ ;
604669 onChanged ();
605670 }
671+ if (!other .getLocationId ().isEmpty ()) {
672+ locationId_ = other .locationId_ ;
673+ onChanged ();
674+ }
606675 this .mergeUnknownFields (other .unknownFields );
607676 onChanged ();
608677 return this ;
@@ -1033,6 +1102,105 @@ public Builder setTemplateIdBytes(com.google.protobuf.ByteString value) {
10331102 return this ;
10341103 }
10351104
1105+ private java .lang .Object locationId_ = "" ;
1106+ /**
1107+ *
1108+ *
1109+ * <pre>
1110+ * The geographic location to store the deidentification template. Reserved
1111+ * for future extensions.
1112+ * </pre>
1113+ *
1114+ * <code>string location_id = 4;</code>
1115+ */
1116+ public java .lang .String getLocationId () {
1117+ java .lang .Object ref = locationId_ ;
1118+ if (!(ref instanceof java .lang .String )) {
1119+ com .google .protobuf .ByteString bs = (com .google .protobuf .ByteString ) ref ;
1120+ java .lang .String s = bs .toStringUtf8 ();
1121+ locationId_ = s ;
1122+ return s ;
1123+ } else {
1124+ return (java .lang .String ) ref ;
1125+ }
1126+ }
1127+ /**
1128+ *
1129+ *
1130+ * <pre>
1131+ * The geographic location to store the deidentification template. Reserved
1132+ * for future extensions.
1133+ * </pre>
1134+ *
1135+ * <code>string location_id = 4;</code>
1136+ */
1137+ public com .google .protobuf .ByteString getLocationIdBytes () {
1138+ java .lang .Object ref = locationId_ ;
1139+ if (ref instanceof String ) {
1140+ com .google .protobuf .ByteString b =
1141+ com .google .protobuf .ByteString .copyFromUtf8 ((java .lang .String ) ref );
1142+ locationId_ = b ;
1143+ return b ;
1144+ } else {
1145+ return (com .google .protobuf .ByteString ) ref ;
1146+ }
1147+ }
1148+ /**
1149+ *
1150+ *
1151+ * <pre>
1152+ * The geographic location to store the deidentification template. Reserved
1153+ * for future extensions.
1154+ * </pre>
1155+ *
1156+ * <code>string location_id = 4;</code>
1157+ */
1158+ public Builder setLocationId (java .lang .String value ) {
1159+ if (value == null ) {
1160+ throw new NullPointerException ();
1161+ }
1162+
1163+ locationId_ = value ;
1164+ onChanged ();
1165+ return this ;
1166+ }
1167+ /**
1168+ *
1169+ *
1170+ * <pre>
1171+ * The geographic location to store the deidentification template. Reserved
1172+ * for future extensions.
1173+ * </pre>
1174+ *
1175+ * <code>string location_id = 4;</code>
1176+ */
1177+ public Builder clearLocationId () {
1178+
1179+ locationId_ = getDefaultInstance ().getLocationId ();
1180+ onChanged ();
1181+ return this ;
1182+ }
1183+ /**
1184+ *
1185+ *
1186+ * <pre>
1187+ * The geographic location to store the deidentification template. Reserved
1188+ * for future extensions.
1189+ * </pre>
1190+ *
1191+ * <code>string location_id = 4;</code>
1192+ */
1193+ public Builder setLocationIdBytes (com .google .protobuf .ByteString value ) {
1194+ if (value == null ) {
1195+ throw new NullPointerException ();
1196+ }
1197+ checkByteStringIsUtf8 (value );
1198+
1199+ locationId_ = value ;
1200+ onChanged ();
1201+ return this ;
1202+ }
1203+
10361204 @ java .lang .Override
10371205 public final Builder setUnknownFields (final com .google .protobuf .UnknownFieldSet unknownFields ) {
10381206 return super .setUnknownFields (unknownFields );
0 commit comments