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