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/devtools/containeranalysis/v1beta1/grafeas/grafeas.proto 18 19 package io.grafeas.v1beta1; 20 21 /** 22 * 23 * 24 * <pre> 25 * Request to get a vulnerability summary for some set of occurrences. 26 * </pre> 27 * 28 * Protobuf type {@code grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest} 29 */ 30 public final class GetVulnerabilityOccurrencesSummaryRequest 31 extends com.google.protobuf.GeneratedMessageV3 32 implements 33 // @@protoc_insertion_point(message_implements:grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest) 34 GetVulnerabilityOccurrencesSummaryRequestOrBuilder { 35 private static final long serialVersionUID = 0L; 36 // Use GetVulnerabilityOccurrencesSummaryRequest.newBuilder() to construct. GetVulnerabilityOccurrencesSummaryRequest( com.google.protobuf.GeneratedMessageV3.Builder<?> builder)37 private GetVulnerabilityOccurrencesSummaryRequest( 38 com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 39 super(builder); 40 } 41 GetVulnerabilityOccurrencesSummaryRequest()42 private GetVulnerabilityOccurrencesSummaryRequest() { 43 parent_ = ""; 44 filter_ = ""; 45 } 46 47 @java.lang.Override 48 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)49 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 50 return new GetVulnerabilityOccurrencesSummaryRequest(); 51 } 52 53 @java.lang.Override getUnknownFields()54 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 55 return this.unknownFields; 56 } 57 GetVulnerabilityOccurrencesSummaryRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)58 private GetVulnerabilityOccurrencesSummaryRequest( 59 com.google.protobuf.CodedInputStream input, 60 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 61 throws com.google.protobuf.InvalidProtocolBufferException { 62 this(); 63 if (extensionRegistry == null) { 64 throw new java.lang.NullPointerException(); 65 } 66 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 67 com.google.protobuf.UnknownFieldSet.newBuilder(); 68 try { 69 boolean done = false; 70 while (!done) { 71 int tag = input.readTag(); 72 switch (tag) { 73 case 0: 74 done = true; 75 break; 76 case 10: 77 { 78 java.lang.String s = input.readStringRequireUtf8(); 79 80 parent_ = s; 81 break; 82 } 83 case 18: 84 { 85 java.lang.String s = input.readStringRequireUtf8(); 86 87 filter_ = s; 88 break; 89 } 90 default: 91 { 92 if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { 93 done = true; 94 } 95 break; 96 } 97 } 98 } 99 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 100 throw e.setUnfinishedMessage(this); 101 } catch (java.io.IOException e) { 102 throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); 103 } finally { 104 this.unknownFields = unknownFields.build(); 105 makeExtensionsImmutable(); 106 } 107 } 108 getDescriptor()109 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 110 return io.grafeas.v1beta1.Grafeas 111 .internal_static_grafeas_v1beta1_GetVulnerabilityOccurrencesSummaryRequest_descriptor; 112 } 113 114 @java.lang.Override 115 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()116 internalGetFieldAccessorTable() { 117 return io.grafeas.v1beta1.Grafeas 118 .internal_static_grafeas_v1beta1_GetVulnerabilityOccurrencesSummaryRequest_fieldAccessorTable 119 .ensureFieldAccessorsInitialized( 120 io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest.class, 121 io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest.Builder.class); 122 } 123 124 public static final int PARENT_FIELD_NUMBER = 1; 125 private volatile java.lang.Object parent_; 126 /** 127 * 128 * 129 * <pre> 130 * The name of the project to get a vulnerability summary for in the form of 131 * `projects/[PROJECT_ID]`. 132 * </pre> 133 * 134 * <code>string parent = 1;</code> 135 * 136 * @return The parent. 137 */ 138 @java.lang.Override getParent()139 public java.lang.String getParent() { 140 java.lang.Object ref = parent_; 141 if (ref instanceof java.lang.String) { 142 return (java.lang.String) ref; 143 } else { 144 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 145 java.lang.String s = bs.toStringUtf8(); 146 parent_ = s; 147 return s; 148 } 149 } 150 /** 151 * 152 * 153 * <pre> 154 * The name of the project to get a vulnerability summary for in the form of 155 * `projects/[PROJECT_ID]`. 156 * </pre> 157 * 158 * <code>string parent = 1;</code> 159 * 160 * @return The bytes for parent. 161 */ 162 @java.lang.Override getParentBytes()163 public com.google.protobuf.ByteString getParentBytes() { 164 java.lang.Object ref = parent_; 165 if (ref instanceof java.lang.String) { 166 com.google.protobuf.ByteString b = 167 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 168 parent_ = b; 169 return b; 170 } else { 171 return (com.google.protobuf.ByteString) ref; 172 } 173 } 174 175 public static final int FILTER_FIELD_NUMBER = 2; 176 private volatile java.lang.Object filter_; 177 /** 178 * 179 * 180 * <pre> 181 * The filter expression. 182 * </pre> 183 * 184 * <code>string filter = 2;</code> 185 * 186 * @return The filter. 187 */ 188 @java.lang.Override getFilter()189 public java.lang.String getFilter() { 190 java.lang.Object ref = filter_; 191 if (ref instanceof java.lang.String) { 192 return (java.lang.String) ref; 193 } else { 194 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 195 java.lang.String s = bs.toStringUtf8(); 196 filter_ = s; 197 return s; 198 } 199 } 200 /** 201 * 202 * 203 * <pre> 204 * The filter expression. 205 * </pre> 206 * 207 * <code>string filter = 2;</code> 208 * 209 * @return The bytes for filter. 210 */ 211 @java.lang.Override getFilterBytes()212 public com.google.protobuf.ByteString getFilterBytes() { 213 java.lang.Object ref = filter_; 214 if (ref instanceof java.lang.String) { 215 com.google.protobuf.ByteString b = 216 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 217 filter_ = b; 218 return b; 219 } else { 220 return (com.google.protobuf.ByteString) ref; 221 } 222 } 223 224 private byte memoizedIsInitialized = -1; 225 226 @java.lang.Override isInitialized()227 public final boolean isInitialized() { 228 byte isInitialized = memoizedIsInitialized; 229 if (isInitialized == 1) return true; 230 if (isInitialized == 0) return false; 231 232 memoizedIsInitialized = 1; 233 return true; 234 } 235 236 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)237 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 238 if (!getParentBytes().isEmpty()) { 239 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); 240 } 241 if (!getFilterBytes().isEmpty()) { 242 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); 243 } 244 unknownFields.writeTo(output); 245 } 246 247 @java.lang.Override getSerializedSize()248 public int getSerializedSize() { 249 int size = memoizedSize; 250 if (size != -1) return size; 251 252 size = 0; 253 if (!getParentBytes().isEmpty()) { 254 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); 255 } 256 if (!getFilterBytes().isEmpty()) { 257 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); 258 } 259 size += unknownFields.getSerializedSize(); 260 memoizedSize = size; 261 return size; 262 } 263 264 @java.lang.Override equals(final java.lang.Object obj)265 public boolean equals(final java.lang.Object obj) { 266 if (obj == this) { 267 return true; 268 } 269 if (!(obj instanceof io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest)) { 270 return super.equals(obj); 271 } 272 io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest other = 273 (io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest) obj; 274 275 if (!getParent().equals(other.getParent())) return false; 276 if (!getFilter().equals(other.getFilter())) return false; 277 if (!unknownFields.equals(other.unknownFields)) return false; 278 return true; 279 } 280 281 @java.lang.Override hashCode()282 public int hashCode() { 283 if (memoizedHashCode != 0) { 284 return memoizedHashCode; 285 } 286 int hash = 41; 287 hash = (19 * hash) + getDescriptor().hashCode(); 288 hash = (37 * hash) + PARENT_FIELD_NUMBER; 289 hash = (53 * hash) + getParent().hashCode(); 290 hash = (37 * hash) + FILTER_FIELD_NUMBER; 291 hash = (53 * hash) + getFilter().hashCode(); 292 hash = (29 * hash) + unknownFields.hashCode(); 293 memoizedHashCode = hash; 294 return hash; 295 } 296 parseFrom( java.nio.ByteBuffer data)297 public static io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest parseFrom( 298 java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { 299 return PARSER.parseFrom(data); 300 } 301 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)302 public static io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest parseFrom( 303 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 304 throws com.google.protobuf.InvalidProtocolBufferException { 305 return PARSER.parseFrom(data, extensionRegistry); 306 } 307 parseFrom( com.google.protobuf.ByteString data)308 public static io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest parseFrom( 309 com.google.protobuf.ByteString data) 310 throws com.google.protobuf.InvalidProtocolBufferException { 311 return PARSER.parseFrom(data); 312 } 313 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)314 public static io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest parseFrom( 315 com.google.protobuf.ByteString data, 316 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 317 throws com.google.protobuf.InvalidProtocolBufferException { 318 return PARSER.parseFrom(data, extensionRegistry); 319 } 320 parseFrom(byte[] data)321 public static io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest parseFrom(byte[] data) 322 throws com.google.protobuf.InvalidProtocolBufferException { 323 return PARSER.parseFrom(data); 324 } 325 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)326 public static io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest parseFrom( 327 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 328 throws com.google.protobuf.InvalidProtocolBufferException { 329 return PARSER.parseFrom(data, extensionRegistry); 330 } 331 parseFrom( java.io.InputStream input)332 public static io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest parseFrom( 333 java.io.InputStream input) throws java.io.IOException { 334 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 335 } 336 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)337 public static io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest parseFrom( 338 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 339 throws java.io.IOException { 340 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 341 PARSER, input, extensionRegistry); 342 } 343 parseDelimitedFrom( java.io.InputStream input)344 public static io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest parseDelimitedFrom( 345 java.io.InputStream input) throws java.io.IOException { 346 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 347 } 348 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)349 public static io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest parseDelimitedFrom( 350 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 351 throws java.io.IOException { 352 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 353 PARSER, input, extensionRegistry); 354 } 355 parseFrom( com.google.protobuf.CodedInputStream input)356 public static io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest parseFrom( 357 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 358 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 359 } 360 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)361 public static io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest parseFrom( 362 com.google.protobuf.CodedInputStream input, 363 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 364 throws java.io.IOException { 365 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 366 PARSER, input, extensionRegistry); 367 } 368 369 @java.lang.Override newBuilderForType()370 public Builder newBuilderForType() { 371 return newBuilder(); 372 } 373 newBuilder()374 public static Builder newBuilder() { 375 return DEFAULT_INSTANCE.toBuilder(); 376 } 377 newBuilder( io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest prototype)378 public static Builder newBuilder( 379 io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest prototype) { 380 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 381 } 382 383 @java.lang.Override toBuilder()384 public Builder toBuilder() { 385 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 386 } 387 388 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)389 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 390 Builder builder = new Builder(parent); 391 return builder; 392 } 393 /** 394 * 395 * 396 * <pre> 397 * Request to get a vulnerability summary for some set of occurrences. 398 * </pre> 399 * 400 * Protobuf type {@code grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest} 401 */ 402 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 403 implements 404 // @@protoc_insertion_point(builder_implements:grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest) 405 io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequestOrBuilder { getDescriptor()406 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 407 return io.grafeas.v1beta1.Grafeas 408 .internal_static_grafeas_v1beta1_GetVulnerabilityOccurrencesSummaryRequest_descriptor; 409 } 410 411 @java.lang.Override 412 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()413 internalGetFieldAccessorTable() { 414 return io.grafeas.v1beta1.Grafeas 415 .internal_static_grafeas_v1beta1_GetVulnerabilityOccurrencesSummaryRequest_fieldAccessorTable 416 .ensureFieldAccessorsInitialized( 417 io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest.class, 418 io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest.Builder.class); 419 } 420 421 // Construct using io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest.newBuilder() Builder()422 private Builder() { 423 maybeForceBuilderInitialization(); 424 } 425 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)426 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 427 super(parent); 428 maybeForceBuilderInitialization(); 429 } 430 maybeForceBuilderInitialization()431 private void maybeForceBuilderInitialization() { 432 if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} 433 } 434 435 @java.lang.Override clear()436 public Builder clear() { 437 super.clear(); 438 parent_ = ""; 439 440 filter_ = ""; 441 442 return this; 443 } 444 445 @java.lang.Override getDescriptorForType()446 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 447 return io.grafeas.v1beta1.Grafeas 448 .internal_static_grafeas_v1beta1_GetVulnerabilityOccurrencesSummaryRequest_descriptor; 449 } 450 451 @java.lang.Override 452 public io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest getDefaultInstanceForType()453 getDefaultInstanceForType() { 454 return io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest.getDefaultInstance(); 455 } 456 457 @java.lang.Override build()458 public io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest build() { 459 io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest result = buildPartial(); 460 if (!result.isInitialized()) { 461 throw newUninitializedMessageException(result); 462 } 463 return result; 464 } 465 466 @java.lang.Override buildPartial()467 public io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest buildPartial() { 468 io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest result = 469 new io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest(this); 470 result.parent_ = parent_; 471 result.filter_ = filter_; 472 onBuilt(); 473 return result; 474 } 475 476 @java.lang.Override clone()477 public Builder clone() { 478 return super.clone(); 479 } 480 481 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)482 public Builder setField( 483 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 484 return super.setField(field, value); 485 } 486 487 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)488 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 489 return super.clearField(field); 490 } 491 492 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)493 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 494 return super.clearOneof(oneof); 495 } 496 497 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)498 public Builder setRepeatedField( 499 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 500 return super.setRepeatedField(field, index, value); 501 } 502 503 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)504 public Builder addRepeatedField( 505 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 506 return super.addRepeatedField(field, value); 507 } 508 509 @java.lang.Override mergeFrom(com.google.protobuf.Message other)510 public Builder mergeFrom(com.google.protobuf.Message other) { 511 if (other instanceof io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest) { 512 return mergeFrom((io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest) other); 513 } else { 514 super.mergeFrom(other); 515 return this; 516 } 517 } 518 mergeFrom(io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest other)519 public Builder mergeFrom(io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest other) { 520 if (other 521 == io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest.getDefaultInstance()) 522 return this; 523 if (!other.getParent().isEmpty()) { 524 parent_ = other.parent_; 525 onChanged(); 526 } 527 if (!other.getFilter().isEmpty()) { 528 filter_ = other.filter_; 529 onChanged(); 530 } 531 this.mergeUnknownFields(other.unknownFields); 532 onChanged(); 533 return this; 534 } 535 536 @java.lang.Override isInitialized()537 public final boolean isInitialized() { 538 return true; 539 } 540 541 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)542 public Builder mergeFrom( 543 com.google.protobuf.CodedInputStream input, 544 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 545 throws java.io.IOException { 546 io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest parsedMessage = null; 547 try { 548 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 549 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 550 parsedMessage = 551 (io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest) e.getUnfinishedMessage(); 552 throw e.unwrapIOException(); 553 } finally { 554 if (parsedMessage != null) { 555 mergeFrom(parsedMessage); 556 } 557 } 558 return this; 559 } 560 561 private java.lang.Object parent_ = ""; 562 /** 563 * 564 * 565 * <pre> 566 * The name of the project to get a vulnerability summary for in the form of 567 * `projects/[PROJECT_ID]`. 568 * </pre> 569 * 570 * <code>string parent = 1;</code> 571 * 572 * @return The parent. 573 */ getParent()574 public java.lang.String getParent() { 575 java.lang.Object ref = parent_; 576 if (!(ref instanceof java.lang.String)) { 577 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 578 java.lang.String s = bs.toStringUtf8(); 579 parent_ = s; 580 return s; 581 } else { 582 return (java.lang.String) ref; 583 } 584 } 585 /** 586 * 587 * 588 * <pre> 589 * The name of the project to get a vulnerability summary for in the form of 590 * `projects/[PROJECT_ID]`. 591 * </pre> 592 * 593 * <code>string parent = 1;</code> 594 * 595 * @return The bytes for parent. 596 */ getParentBytes()597 public com.google.protobuf.ByteString getParentBytes() { 598 java.lang.Object ref = parent_; 599 if (ref instanceof String) { 600 com.google.protobuf.ByteString b = 601 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 602 parent_ = b; 603 return b; 604 } else { 605 return (com.google.protobuf.ByteString) ref; 606 } 607 } 608 /** 609 * 610 * 611 * <pre> 612 * The name of the project to get a vulnerability summary for in the form of 613 * `projects/[PROJECT_ID]`. 614 * </pre> 615 * 616 * <code>string parent = 1;</code> 617 * 618 * @param value The parent to set. 619 * @return This builder for chaining. 620 */ setParent(java.lang.String value)621 public Builder setParent(java.lang.String value) { 622 if (value == null) { 623 throw new NullPointerException(); 624 } 625 626 parent_ = value; 627 onChanged(); 628 return this; 629 } 630 /** 631 * 632 * 633 * <pre> 634 * The name of the project to get a vulnerability summary for in the form of 635 * `projects/[PROJECT_ID]`. 636 * </pre> 637 * 638 * <code>string parent = 1;</code> 639 * 640 * @return This builder for chaining. 641 */ clearParent()642 public Builder clearParent() { 643 644 parent_ = getDefaultInstance().getParent(); 645 onChanged(); 646 return this; 647 } 648 /** 649 * 650 * 651 * <pre> 652 * The name of the project to get a vulnerability summary for in the form of 653 * `projects/[PROJECT_ID]`. 654 * </pre> 655 * 656 * <code>string parent = 1;</code> 657 * 658 * @param value The bytes for parent to set. 659 * @return This builder for chaining. 660 */ setParentBytes(com.google.protobuf.ByteString value)661 public Builder setParentBytes(com.google.protobuf.ByteString value) { 662 if (value == null) { 663 throw new NullPointerException(); 664 } 665 checkByteStringIsUtf8(value); 666 667 parent_ = value; 668 onChanged(); 669 return this; 670 } 671 672 private java.lang.Object filter_ = ""; 673 /** 674 * 675 * 676 * <pre> 677 * The filter expression. 678 * </pre> 679 * 680 * <code>string filter = 2;</code> 681 * 682 * @return The filter. 683 */ getFilter()684 public java.lang.String getFilter() { 685 java.lang.Object ref = filter_; 686 if (!(ref instanceof java.lang.String)) { 687 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 688 java.lang.String s = bs.toStringUtf8(); 689 filter_ = s; 690 return s; 691 } else { 692 return (java.lang.String) ref; 693 } 694 } 695 /** 696 * 697 * 698 * <pre> 699 * The filter expression. 700 * </pre> 701 * 702 * <code>string filter = 2;</code> 703 * 704 * @return The bytes for filter. 705 */ getFilterBytes()706 public com.google.protobuf.ByteString getFilterBytes() { 707 java.lang.Object ref = filter_; 708 if (ref instanceof String) { 709 com.google.protobuf.ByteString b = 710 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 711 filter_ = b; 712 return b; 713 } else { 714 return (com.google.protobuf.ByteString) ref; 715 } 716 } 717 /** 718 * 719 * 720 * <pre> 721 * The filter expression. 722 * </pre> 723 * 724 * <code>string filter = 2;</code> 725 * 726 * @param value The filter to set. 727 * @return This builder for chaining. 728 */ setFilter(java.lang.String value)729 public Builder setFilter(java.lang.String value) { 730 if (value == null) { 731 throw new NullPointerException(); 732 } 733 734 filter_ = value; 735 onChanged(); 736 return this; 737 } 738 /** 739 * 740 * 741 * <pre> 742 * The filter expression. 743 * </pre> 744 * 745 * <code>string filter = 2;</code> 746 * 747 * @return This builder for chaining. 748 */ clearFilter()749 public Builder clearFilter() { 750 751 filter_ = getDefaultInstance().getFilter(); 752 onChanged(); 753 return this; 754 } 755 /** 756 * 757 * 758 * <pre> 759 * The filter expression. 760 * </pre> 761 * 762 * <code>string filter = 2;</code> 763 * 764 * @param value The bytes for filter to set. 765 * @return This builder for chaining. 766 */ setFilterBytes(com.google.protobuf.ByteString value)767 public Builder setFilterBytes(com.google.protobuf.ByteString value) { 768 if (value == null) { 769 throw new NullPointerException(); 770 } 771 checkByteStringIsUtf8(value); 772 773 filter_ = value; 774 onChanged(); 775 return this; 776 } 777 778 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)779 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 780 return super.setUnknownFields(unknownFields); 781 } 782 783 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)784 public final Builder mergeUnknownFields( 785 final com.google.protobuf.UnknownFieldSet unknownFields) { 786 return super.mergeUnknownFields(unknownFields); 787 } 788 789 // @@protoc_insertion_point(builder_scope:grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest) 790 } 791 792 // @@protoc_insertion_point(class_scope:grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest) 793 private static final io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest 794 DEFAULT_INSTANCE; 795 796 static { 797 DEFAULT_INSTANCE = new io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest(); 798 } 799 getDefaultInstance()800 public static io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest getDefaultInstance() { 801 return DEFAULT_INSTANCE; 802 } 803 804 private static final com.google.protobuf.Parser<GetVulnerabilityOccurrencesSummaryRequest> 805 PARSER = 806 new com.google.protobuf.AbstractParser<GetVulnerabilityOccurrencesSummaryRequest>() { 807 @java.lang.Override 808 public GetVulnerabilityOccurrencesSummaryRequest parsePartialFrom( 809 com.google.protobuf.CodedInputStream input, 810 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 811 throws com.google.protobuf.InvalidProtocolBufferException { 812 return new GetVulnerabilityOccurrencesSummaryRequest(input, extensionRegistry); 813 } 814 }; 815 parser()816 public static com.google.protobuf.Parser<GetVulnerabilityOccurrencesSummaryRequest> parser() { 817 return PARSER; 818 } 819 820 @java.lang.Override getParserForType()821 public com.google.protobuf.Parser<GetVulnerabilityOccurrencesSummaryRequest> getParserForType() { 822 return PARSER; 823 } 824 825 @java.lang.Override getDefaultInstanceForType()826 public io.grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest getDefaultInstanceForType() { 827 return DEFAULT_INSTANCE; 828 } 829 } 830