1 /* 2 * Copyright 2019 The Grafeas Authors. All rights reserved. 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 17 // Generated by the protocol buffer compiler. DO NOT EDIT! 18 // source: grafeas/v1/upgrade.proto 19 20 package io.grafeas.v1; 21 22 /** 23 * 24 * 25 * <pre> 26 * Windows Update represents the metadata about the update for the Windows 27 * operating system. The fields in this message come from the Windows Update API 28 * documented at 29 * https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate. 30 * </pre> 31 * 32 * Protobuf type {@code grafeas.v1.WindowsUpdate} 33 */ 34 public final class WindowsUpdate extends com.google.protobuf.GeneratedMessageV3 35 implements 36 // @@protoc_insertion_point(message_implements:grafeas.v1.WindowsUpdate) 37 WindowsUpdateOrBuilder { 38 private static final long serialVersionUID = 0L; 39 // Use WindowsUpdate.newBuilder() to construct. WindowsUpdate(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)40 private WindowsUpdate(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 41 super(builder); 42 } 43 WindowsUpdate()44 private WindowsUpdate() { 45 title_ = ""; 46 description_ = ""; 47 categories_ = java.util.Collections.emptyList(); 48 kbArticleIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; 49 supportUrl_ = ""; 50 } 51 52 @java.lang.Override 53 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)54 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 55 return new WindowsUpdate(); 56 } 57 58 @java.lang.Override getUnknownFields()59 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 60 return this.unknownFields; 61 } 62 getDescriptor()63 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 64 return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_descriptor; 65 } 66 67 @java.lang.Override 68 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()69 internalGetFieldAccessorTable() { 70 return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_fieldAccessorTable 71 .ensureFieldAccessorsInitialized( 72 io.grafeas.v1.WindowsUpdate.class, io.grafeas.v1.WindowsUpdate.Builder.class); 73 } 74 75 public interface IdentityOrBuilder 76 extends 77 // @@protoc_insertion_point(interface_extends:grafeas.v1.WindowsUpdate.Identity) 78 com.google.protobuf.MessageOrBuilder { 79 80 /** 81 * 82 * 83 * <pre> 84 * The revision independent identifier of the update. 85 * </pre> 86 * 87 * <code>string update_id = 1;</code> 88 * 89 * @return The updateId. 90 */ getUpdateId()91 java.lang.String getUpdateId(); 92 /** 93 * 94 * 95 * <pre> 96 * The revision independent identifier of the update. 97 * </pre> 98 * 99 * <code>string update_id = 1;</code> 100 * 101 * @return The bytes for updateId. 102 */ getUpdateIdBytes()103 com.google.protobuf.ByteString getUpdateIdBytes(); 104 105 /** 106 * 107 * 108 * <pre> 109 * The revision number of the update. 110 * </pre> 111 * 112 * <code>int32 revision = 2;</code> 113 * 114 * @return The revision. 115 */ getRevision()116 int getRevision(); 117 } 118 /** 119 * 120 * 121 * <pre> 122 * The unique identifier of the update. 123 * </pre> 124 * 125 * Protobuf type {@code grafeas.v1.WindowsUpdate.Identity} 126 */ 127 public static final class Identity extends com.google.protobuf.GeneratedMessageV3 128 implements 129 // @@protoc_insertion_point(message_implements:grafeas.v1.WindowsUpdate.Identity) 130 IdentityOrBuilder { 131 private static final long serialVersionUID = 0L; 132 // Use Identity.newBuilder() to construct. Identity(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)133 private Identity(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 134 super(builder); 135 } 136 Identity()137 private Identity() { 138 updateId_ = ""; 139 } 140 141 @java.lang.Override 142 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)143 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 144 return new Identity(); 145 } 146 147 @java.lang.Override getUnknownFields()148 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 149 return this.unknownFields; 150 } 151 getDescriptor()152 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 153 return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_Identity_descriptor; 154 } 155 156 @java.lang.Override 157 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()158 internalGetFieldAccessorTable() { 159 return io.grafeas.v1.Upgrade 160 .internal_static_grafeas_v1_WindowsUpdate_Identity_fieldAccessorTable 161 .ensureFieldAccessorsInitialized( 162 io.grafeas.v1.WindowsUpdate.Identity.class, 163 io.grafeas.v1.WindowsUpdate.Identity.Builder.class); 164 } 165 166 public static final int UPDATE_ID_FIELD_NUMBER = 1; 167 168 @SuppressWarnings("serial") 169 private volatile java.lang.Object updateId_ = ""; 170 /** 171 * 172 * 173 * <pre> 174 * The revision independent identifier of the update. 175 * </pre> 176 * 177 * <code>string update_id = 1;</code> 178 * 179 * @return The updateId. 180 */ 181 @java.lang.Override getUpdateId()182 public java.lang.String getUpdateId() { 183 java.lang.Object ref = updateId_; 184 if (ref instanceof java.lang.String) { 185 return (java.lang.String) ref; 186 } else { 187 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 188 java.lang.String s = bs.toStringUtf8(); 189 updateId_ = s; 190 return s; 191 } 192 } 193 /** 194 * 195 * 196 * <pre> 197 * The revision independent identifier of the update. 198 * </pre> 199 * 200 * <code>string update_id = 1;</code> 201 * 202 * @return The bytes for updateId. 203 */ 204 @java.lang.Override getUpdateIdBytes()205 public com.google.protobuf.ByteString getUpdateIdBytes() { 206 java.lang.Object ref = updateId_; 207 if (ref instanceof java.lang.String) { 208 com.google.protobuf.ByteString b = 209 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 210 updateId_ = b; 211 return b; 212 } else { 213 return (com.google.protobuf.ByteString) ref; 214 } 215 } 216 217 public static final int REVISION_FIELD_NUMBER = 2; 218 private int revision_ = 0; 219 /** 220 * 221 * 222 * <pre> 223 * The revision number of the update. 224 * </pre> 225 * 226 * <code>int32 revision = 2;</code> 227 * 228 * @return The revision. 229 */ 230 @java.lang.Override getRevision()231 public int getRevision() { 232 return revision_; 233 } 234 235 private byte memoizedIsInitialized = -1; 236 237 @java.lang.Override isInitialized()238 public final boolean isInitialized() { 239 byte isInitialized = memoizedIsInitialized; 240 if (isInitialized == 1) return true; 241 if (isInitialized == 0) return false; 242 243 memoizedIsInitialized = 1; 244 return true; 245 } 246 247 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)248 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 249 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(updateId_)) { 250 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, updateId_); 251 } 252 if (revision_ != 0) { 253 output.writeInt32(2, revision_); 254 } 255 getUnknownFields().writeTo(output); 256 } 257 258 @java.lang.Override getSerializedSize()259 public int getSerializedSize() { 260 int size = memoizedSize; 261 if (size != -1) return size; 262 263 size = 0; 264 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(updateId_)) { 265 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, updateId_); 266 } 267 if (revision_ != 0) { 268 size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, revision_); 269 } 270 size += getUnknownFields().getSerializedSize(); 271 memoizedSize = size; 272 return size; 273 } 274 275 @java.lang.Override equals(final java.lang.Object obj)276 public boolean equals(final java.lang.Object obj) { 277 if (obj == this) { 278 return true; 279 } 280 if (!(obj instanceof io.grafeas.v1.WindowsUpdate.Identity)) { 281 return super.equals(obj); 282 } 283 io.grafeas.v1.WindowsUpdate.Identity other = (io.grafeas.v1.WindowsUpdate.Identity) obj; 284 285 if (!getUpdateId().equals(other.getUpdateId())) return false; 286 if (getRevision() != other.getRevision()) return false; 287 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 288 return true; 289 } 290 291 @java.lang.Override hashCode()292 public int hashCode() { 293 if (memoizedHashCode != 0) { 294 return memoizedHashCode; 295 } 296 int hash = 41; 297 hash = (19 * hash) + getDescriptor().hashCode(); 298 hash = (37 * hash) + UPDATE_ID_FIELD_NUMBER; 299 hash = (53 * hash) + getUpdateId().hashCode(); 300 hash = (37 * hash) + REVISION_FIELD_NUMBER; 301 hash = (53 * hash) + getRevision(); 302 hash = (29 * hash) + getUnknownFields().hashCode(); 303 memoizedHashCode = hash; 304 return hash; 305 } 306 parseFrom(java.nio.ByteBuffer data)307 public static io.grafeas.v1.WindowsUpdate.Identity parseFrom(java.nio.ByteBuffer data) 308 throws com.google.protobuf.InvalidProtocolBufferException { 309 return PARSER.parseFrom(data); 310 } 311 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)312 public static io.grafeas.v1.WindowsUpdate.Identity parseFrom( 313 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 314 throws com.google.protobuf.InvalidProtocolBufferException { 315 return PARSER.parseFrom(data, extensionRegistry); 316 } 317 parseFrom( com.google.protobuf.ByteString data)318 public static io.grafeas.v1.WindowsUpdate.Identity parseFrom( 319 com.google.protobuf.ByteString data) 320 throws com.google.protobuf.InvalidProtocolBufferException { 321 return PARSER.parseFrom(data); 322 } 323 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)324 public static io.grafeas.v1.WindowsUpdate.Identity parseFrom( 325 com.google.protobuf.ByteString data, 326 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 327 throws com.google.protobuf.InvalidProtocolBufferException { 328 return PARSER.parseFrom(data, extensionRegistry); 329 } 330 parseFrom(byte[] data)331 public static io.grafeas.v1.WindowsUpdate.Identity parseFrom(byte[] data) 332 throws com.google.protobuf.InvalidProtocolBufferException { 333 return PARSER.parseFrom(data); 334 } 335 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)336 public static io.grafeas.v1.WindowsUpdate.Identity parseFrom( 337 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 338 throws com.google.protobuf.InvalidProtocolBufferException { 339 return PARSER.parseFrom(data, extensionRegistry); 340 } 341 parseFrom(java.io.InputStream input)342 public static io.grafeas.v1.WindowsUpdate.Identity parseFrom(java.io.InputStream input) 343 throws java.io.IOException { 344 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 345 } 346 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)347 public static io.grafeas.v1.WindowsUpdate.Identity parseFrom( 348 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 349 throws java.io.IOException { 350 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 351 PARSER, input, extensionRegistry); 352 } 353 parseDelimitedFrom(java.io.InputStream input)354 public static io.grafeas.v1.WindowsUpdate.Identity parseDelimitedFrom(java.io.InputStream input) 355 throws java.io.IOException { 356 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 357 } 358 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)359 public static io.grafeas.v1.WindowsUpdate.Identity parseDelimitedFrom( 360 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 361 throws java.io.IOException { 362 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 363 PARSER, input, extensionRegistry); 364 } 365 parseFrom( com.google.protobuf.CodedInputStream input)366 public static io.grafeas.v1.WindowsUpdate.Identity parseFrom( 367 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 368 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 369 } 370 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)371 public static io.grafeas.v1.WindowsUpdate.Identity parseFrom( 372 com.google.protobuf.CodedInputStream input, 373 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 374 throws java.io.IOException { 375 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 376 PARSER, input, extensionRegistry); 377 } 378 379 @java.lang.Override newBuilderForType()380 public Builder newBuilderForType() { 381 return newBuilder(); 382 } 383 newBuilder()384 public static Builder newBuilder() { 385 return DEFAULT_INSTANCE.toBuilder(); 386 } 387 newBuilder(io.grafeas.v1.WindowsUpdate.Identity prototype)388 public static Builder newBuilder(io.grafeas.v1.WindowsUpdate.Identity prototype) { 389 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 390 } 391 392 @java.lang.Override toBuilder()393 public Builder toBuilder() { 394 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 395 } 396 397 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)398 protected Builder newBuilderForType( 399 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 400 Builder builder = new Builder(parent); 401 return builder; 402 } 403 /** 404 * 405 * 406 * <pre> 407 * The unique identifier of the update. 408 * </pre> 409 * 410 * Protobuf type {@code grafeas.v1.WindowsUpdate.Identity} 411 */ 412 public static final class Builder 413 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 414 implements 415 // @@protoc_insertion_point(builder_implements:grafeas.v1.WindowsUpdate.Identity) 416 io.grafeas.v1.WindowsUpdate.IdentityOrBuilder { getDescriptor()417 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 418 return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_Identity_descriptor; 419 } 420 421 @java.lang.Override 422 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()423 internalGetFieldAccessorTable() { 424 return io.grafeas.v1.Upgrade 425 .internal_static_grafeas_v1_WindowsUpdate_Identity_fieldAccessorTable 426 .ensureFieldAccessorsInitialized( 427 io.grafeas.v1.WindowsUpdate.Identity.class, 428 io.grafeas.v1.WindowsUpdate.Identity.Builder.class); 429 } 430 431 // Construct using io.grafeas.v1.WindowsUpdate.Identity.newBuilder() Builder()432 private Builder() {} 433 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)434 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 435 super(parent); 436 } 437 438 @java.lang.Override clear()439 public Builder clear() { 440 super.clear(); 441 bitField0_ = 0; 442 updateId_ = ""; 443 revision_ = 0; 444 return this; 445 } 446 447 @java.lang.Override getDescriptorForType()448 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 449 return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_Identity_descriptor; 450 } 451 452 @java.lang.Override getDefaultInstanceForType()453 public io.grafeas.v1.WindowsUpdate.Identity getDefaultInstanceForType() { 454 return io.grafeas.v1.WindowsUpdate.Identity.getDefaultInstance(); 455 } 456 457 @java.lang.Override build()458 public io.grafeas.v1.WindowsUpdate.Identity build() { 459 io.grafeas.v1.WindowsUpdate.Identity 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.v1.WindowsUpdate.Identity buildPartial() { 468 io.grafeas.v1.WindowsUpdate.Identity result = 469 new io.grafeas.v1.WindowsUpdate.Identity(this); 470 if (bitField0_ != 0) { 471 buildPartial0(result); 472 } 473 onBuilt(); 474 return result; 475 } 476 buildPartial0(io.grafeas.v1.WindowsUpdate.Identity result)477 private void buildPartial0(io.grafeas.v1.WindowsUpdate.Identity result) { 478 int from_bitField0_ = bitField0_; 479 if (((from_bitField0_ & 0x00000001) != 0)) { 480 result.updateId_ = updateId_; 481 } 482 if (((from_bitField0_ & 0x00000002) != 0)) { 483 result.revision_ = revision_; 484 } 485 } 486 487 @java.lang.Override clone()488 public Builder clone() { 489 return super.clone(); 490 } 491 492 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)493 public Builder setField( 494 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 495 return super.setField(field, value); 496 } 497 498 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)499 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 500 return super.clearField(field); 501 } 502 503 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)504 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 505 return super.clearOneof(oneof); 506 } 507 508 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)509 public Builder setRepeatedField( 510 com.google.protobuf.Descriptors.FieldDescriptor field, 511 int index, 512 java.lang.Object value) { 513 return super.setRepeatedField(field, index, value); 514 } 515 516 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)517 public Builder addRepeatedField( 518 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 519 return super.addRepeatedField(field, value); 520 } 521 522 @java.lang.Override mergeFrom(com.google.protobuf.Message other)523 public Builder mergeFrom(com.google.protobuf.Message other) { 524 if (other instanceof io.grafeas.v1.WindowsUpdate.Identity) { 525 return mergeFrom((io.grafeas.v1.WindowsUpdate.Identity) other); 526 } else { 527 super.mergeFrom(other); 528 return this; 529 } 530 } 531 mergeFrom(io.grafeas.v1.WindowsUpdate.Identity other)532 public Builder mergeFrom(io.grafeas.v1.WindowsUpdate.Identity other) { 533 if (other == io.grafeas.v1.WindowsUpdate.Identity.getDefaultInstance()) return this; 534 if (!other.getUpdateId().isEmpty()) { 535 updateId_ = other.updateId_; 536 bitField0_ |= 0x00000001; 537 onChanged(); 538 } 539 if (other.getRevision() != 0) { 540 setRevision(other.getRevision()); 541 } 542 this.mergeUnknownFields(other.getUnknownFields()); 543 onChanged(); 544 return this; 545 } 546 547 @java.lang.Override isInitialized()548 public final boolean isInitialized() { 549 return true; 550 } 551 552 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)553 public Builder mergeFrom( 554 com.google.protobuf.CodedInputStream input, 555 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 556 throws java.io.IOException { 557 if (extensionRegistry == null) { 558 throw new java.lang.NullPointerException(); 559 } 560 try { 561 boolean done = false; 562 while (!done) { 563 int tag = input.readTag(); 564 switch (tag) { 565 case 0: 566 done = true; 567 break; 568 case 10: 569 { 570 updateId_ = input.readStringRequireUtf8(); 571 bitField0_ |= 0x00000001; 572 break; 573 } // case 10 574 case 16: 575 { 576 revision_ = input.readInt32(); 577 bitField0_ |= 0x00000002; 578 break; 579 } // case 16 580 default: 581 { 582 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 583 done = true; // was an endgroup tag 584 } 585 break; 586 } // default: 587 } // switch (tag) 588 } // while (!done) 589 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 590 throw e.unwrapIOException(); 591 } finally { 592 onChanged(); 593 } // finally 594 return this; 595 } 596 597 private int bitField0_; 598 599 private java.lang.Object updateId_ = ""; 600 /** 601 * 602 * 603 * <pre> 604 * The revision independent identifier of the update. 605 * </pre> 606 * 607 * <code>string update_id = 1;</code> 608 * 609 * @return The updateId. 610 */ getUpdateId()611 public java.lang.String getUpdateId() { 612 java.lang.Object ref = updateId_; 613 if (!(ref instanceof java.lang.String)) { 614 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 615 java.lang.String s = bs.toStringUtf8(); 616 updateId_ = s; 617 return s; 618 } else { 619 return (java.lang.String) ref; 620 } 621 } 622 /** 623 * 624 * 625 * <pre> 626 * The revision independent identifier of the update. 627 * </pre> 628 * 629 * <code>string update_id = 1;</code> 630 * 631 * @return The bytes for updateId. 632 */ getUpdateIdBytes()633 public com.google.protobuf.ByteString getUpdateIdBytes() { 634 java.lang.Object ref = updateId_; 635 if (ref instanceof String) { 636 com.google.protobuf.ByteString b = 637 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 638 updateId_ = b; 639 return b; 640 } else { 641 return (com.google.protobuf.ByteString) ref; 642 } 643 } 644 /** 645 * 646 * 647 * <pre> 648 * The revision independent identifier of the update. 649 * </pre> 650 * 651 * <code>string update_id = 1;</code> 652 * 653 * @param value The updateId to set. 654 * @return This builder for chaining. 655 */ setUpdateId(java.lang.String value)656 public Builder setUpdateId(java.lang.String value) { 657 if (value == null) { 658 throw new NullPointerException(); 659 } 660 updateId_ = value; 661 bitField0_ |= 0x00000001; 662 onChanged(); 663 return this; 664 } 665 /** 666 * 667 * 668 * <pre> 669 * The revision independent identifier of the update. 670 * </pre> 671 * 672 * <code>string update_id = 1;</code> 673 * 674 * @return This builder for chaining. 675 */ clearUpdateId()676 public Builder clearUpdateId() { 677 updateId_ = getDefaultInstance().getUpdateId(); 678 bitField0_ = (bitField0_ & ~0x00000001); 679 onChanged(); 680 return this; 681 } 682 /** 683 * 684 * 685 * <pre> 686 * The revision independent identifier of the update. 687 * </pre> 688 * 689 * <code>string update_id = 1;</code> 690 * 691 * @param value The bytes for updateId to set. 692 * @return This builder for chaining. 693 */ setUpdateIdBytes(com.google.protobuf.ByteString value)694 public Builder setUpdateIdBytes(com.google.protobuf.ByteString value) { 695 if (value == null) { 696 throw new NullPointerException(); 697 } 698 checkByteStringIsUtf8(value); 699 updateId_ = value; 700 bitField0_ |= 0x00000001; 701 onChanged(); 702 return this; 703 } 704 705 private int revision_; 706 /** 707 * 708 * 709 * <pre> 710 * The revision number of the update. 711 * </pre> 712 * 713 * <code>int32 revision = 2;</code> 714 * 715 * @return The revision. 716 */ 717 @java.lang.Override getRevision()718 public int getRevision() { 719 return revision_; 720 } 721 /** 722 * 723 * 724 * <pre> 725 * The revision number of the update. 726 * </pre> 727 * 728 * <code>int32 revision = 2;</code> 729 * 730 * @param value The revision to set. 731 * @return This builder for chaining. 732 */ setRevision(int value)733 public Builder setRevision(int value) { 734 735 revision_ = value; 736 bitField0_ |= 0x00000002; 737 onChanged(); 738 return this; 739 } 740 /** 741 * 742 * 743 * <pre> 744 * The revision number of the update. 745 * </pre> 746 * 747 * <code>int32 revision = 2;</code> 748 * 749 * @return This builder for chaining. 750 */ clearRevision()751 public Builder clearRevision() { 752 bitField0_ = (bitField0_ & ~0x00000002); 753 revision_ = 0; 754 onChanged(); 755 return this; 756 } 757 758 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)759 public final Builder setUnknownFields( 760 final com.google.protobuf.UnknownFieldSet unknownFields) { 761 return super.setUnknownFields(unknownFields); 762 } 763 764 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)765 public final Builder mergeUnknownFields( 766 final com.google.protobuf.UnknownFieldSet unknownFields) { 767 return super.mergeUnknownFields(unknownFields); 768 } 769 770 // @@protoc_insertion_point(builder_scope:grafeas.v1.WindowsUpdate.Identity) 771 } 772 773 // @@protoc_insertion_point(class_scope:grafeas.v1.WindowsUpdate.Identity) 774 private static final io.grafeas.v1.WindowsUpdate.Identity DEFAULT_INSTANCE; 775 776 static { 777 DEFAULT_INSTANCE = new io.grafeas.v1.WindowsUpdate.Identity(); 778 } 779 getDefaultInstance()780 public static io.grafeas.v1.WindowsUpdate.Identity getDefaultInstance() { 781 return DEFAULT_INSTANCE; 782 } 783 784 private static final com.google.protobuf.Parser<Identity> PARSER = 785 new com.google.protobuf.AbstractParser<Identity>() { 786 @java.lang.Override 787 public Identity parsePartialFrom( 788 com.google.protobuf.CodedInputStream input, 789 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 790 throws com.google.protobuf.InvalidProtocolBufferException { 791 Builder builder = newBuilder(); 792 try { 793 builder.mergeFrom(input, extensionRegistry); 794 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 795 throw e.setUnfinishedMessage(builder.buildPartial()); 796 } catch (com.google.protobuf.UninitializedMessageException e) { 797 throw e.asInvalidProtocolBufferException() 798 .setUnfinishedMessage(builder.buildPartial()); 799 } catch (java.io.IOException e) { 800 throw new com.google.protobuf.InvalidProtocolBufferException(e) 801 .setUnfinishedMessage(builder.buildPartial()); 802 } 803 return builder.buildPartial(); 804 } 805 }; 806 parser()807 public static com.google.protobuf.Parser<Identity> parser() { 808 return PARSER; 809 } 810 811 @java.lang.Override getParserForType()812 public com.google.protobuf.Parser<Identity> getParserForType() { 813 return PARSER; 814 } 815 816 @java.lang.Override getDefaultInstanceForType()817 public io.grafeas.v1.WindowsUpdate.Identity getDefaultInstanceForType() { 818 return DEFAULT_INSTANCE; 819 } 820 } 821 822 public interface CategoryOrBuilder 823 extends 824 // @@protoc_insertion_point(interface_extends:grafeas.v1.WindowsUpdate.Category) 825 com.google.protobuf.MessageOrBuilder { 826 827 /** 828 * 829 * 830 * <pre> 831 * The identifier of the category. 832 * </pre> 833 * 834 * <code>string category_id = 1;</code> 835 * 836 * @return The categoryId. 837 */ getCategoryId()838 java.lang.String getCategoryId(); 839 /** 840 * 841 * 842 * <pre> 843 * The identifier of the category. 844 * </pre> 845 * 846 * <code>string category_id = 1;</code> 847 * 848 * @return The bytes for categoryId. 849 */ getCategoryIdBytes()850 com.google.protobuf.ByteString getCategoryIdBytes(); 851 852 /** 853 * 854 * 855 * <pre> 856 * The localized name of the category. 857 * </pre> 858 * 859 * <code>string name = 2;</code> 860 * 861 * @return The name. 862 */ getName()863 java.lang.String getName(); 864 /** 865 * 866 * 867 * <pre> 868 * The localized name of the category. 869 * </pre> 870 * 871 * <code>string name = 2;</code> 872 * 873 * @return The bytes for name. 874 */ getNameBytes()875 com.google.protobuf.ByteString getNameBytes(); 876 } 877 /** 878 * 879 * 880 * <pre> 881 * The category to which the update belongs. 882 * </pre> 883 * 884 * Protobuf type {@code grafeas.v1.WindowsUpdate.Category} 885 */ 886 public static final class Category extends com.google.protobuf.GeneratedMessageV3 887 implements 888 // @@protoc_insertion_point(message_implements:grafeas.v1.WindowsUpdate.Category) 889 CategoryOrBuilder { 890 private static final long serialVersionUID = 0L; 891 // Use Category.newBuilder() to construct. Category(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)892 private Category(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 893 super(builder); 894 } 895 Category()896 private Category() { 897 categoryId_ = ""; 898 name_ = ""; 899 } 900 901 @java.lang.Override 902 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)903 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 904 return new Category(); 905 } 906 907 @java.lang.Override getUnknownFields()908 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 909 return this.unknownFields; 910 } 911 getDescriptor()912 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 913 return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_Category_descriptor; 914 } 915 916 @java.lang.Override 917 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()918 internalGetFieldAccessorTable() { 919 return io.grafeas.v1.Upgrade 920 .internal_static_grafeas_v1_WindowsUpdate_Category_fieldAccessorTable 921 .ensureFieldAccessorsInitialized( 922 io.grafeas.v1.WindowsUpdate.Category.class, 923 io.grafeas.v1.WindowsUpdate.Category.Builder.class); 924 } 925 926 public static final int CATEGORY_ID_FIELD_NUMBER = 1; 927 928 @SuppressWarnings("serial") 929 private volatile java.lang.Object categoryId_ = ""; 930 /** 931 * 932 * 933 * <pre> 934 * The identifier of the category. 935 * </pre> 936 * 937 * <code>string category_id = 1;</code> 938 * 939 * @return The categoryId. 940 */ 941 @java.lang.Override getCategoryId()942 public java.lang.String getCategoryId() { 943 java.lang.Object ref = categoryId_; 944 if (ref instanceof java.lang.String) { 945 return (java.lang.String) ref; 946 } else { 947 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 948 java.lang.String s = bs.toStringUtf8(); 949 categoryId_ = s; 950 return s; 951 } 952 } 953 /** 954 * 955 * 956 * <pre> 957 * The identifier of the category. 958 * </pre> 959 * 960 * <code>string category_id = 1;</code> 961 * 962 * @return The bytes for categoryId. 963 */ 964 @java.lang.Override getCategoryIdBytes()965 public com.google.protobuf.ByteString getCategoryIdBytes() { 966 java.lang.Object ref = categoryId_; 967 if (ref instanceof java.lang.String) { 968 com.google.protobuf.ByteString b = 969 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 970 categoryId_ = b; 971 return b; 972 } else { 973 return (com.google.protobuf.ByteString) ref; 974 } 975 } 976 977 public static final int NAME_FIELD_NUMBER = 2; 978 979 @SuppressWarnings("serial") 980 private volatile java.lang.Object name_ = ""; 981 /** 982 * 983 * 984 * <pre> 985 * The localized name of the category. 986 * </pre> 987 * 988 * <code>string name = 2;</code> 989 * 990 * @return The name. 991 */ 992 @java.lang.Override getName()993 public java.lang.String getName() { 994 java.lang.Object ref = name_; 995 if (ref instanceof java.lang.String) { 996 return (java.lang.String) ref; 997 } else { 998 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 999 java.lang.String s = bs.toStringUtf8(); 1000 name_ = s; 1001 return s; 1002 } 1003 } 1004 /** 1005 * 1006 * 1007 * <pre> 1008 * The localized name of the category. 1009 * </pre> 1010 * 1011 * <code>string name = 2;</code> 1012 * 1013 * @return The bytes for name. 1014 */ 1015 @java.lang.Override getNameBytes()1016 public com.google.protobuf.ByteString getNameBytes() { 1017 java.lang.Object ref = name_; 1018 if (ref instanceof java.lang.String) { 1019 com.google.protobuf.ByteString b = 1020 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1021 name_ = b; 1022 return b; 1023 } else { 1024 return (com.google.protobuf.ByteString) ref; 1025 } 1026 } 1027 1028 private byte memoizedIsInitialized = -1; 1029 1030 @java.lang.Override isInitialized()1031 public final boolean isInitialized() { 1032 byte isInitialized = memoizedIsInitialized; 1033 if (isInitialized == 1) return true; 1034 if (isInitialized == 0) return false; 1035 1036 memoizedIsInitialized = 1; 1037 return true; 1038 } 1039 1040 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1041 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1042 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(categoryId_)) { 1043 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, categoryId_); 1044 } 1045 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 1046 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); 1047 } 1048 getUnknownFields().writeTo(output); 1049 } 1050 1051 @java.lang.Override getSerializedSize()1052 public int getSerializedSize() { 1053 int size = memoizedSize; 1054 if (size != -1) return size; 1055 1056 size = 0; 1057 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(categoryId_)) { 1058 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, categoryId_); 1059 } 1060 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 1061 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); 1062 } 1063 size += getUnknownFields().getSerializedSize(); 1064 memoizedSize = size; 1065 return size; 1066 } 1067 1068 @java.lang.Override equals(final java.lang.Object obj)1069 public boolean equals(final java.lang.Object obj) { 1070 if (obj == this) { 1071 return true; 1072 } 1073 if (!(obj instanceof io.grafeas.v1.WindowsUpdate.Category)) { 1074 return super.equals(obj); 1075 } 1076 io.grafeas.v1.WindowsUpdate.Category other = (io.grafeas.v1.WindowsUpdate.Category) obj; 1077 1078 if (!getCategoryId().equals(other.getCategoryId())) return false; 1079 if (!getName().equals(other.getName())) return false; 1080 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1081 return true; 1082 } 1083 1084 @java.lang.Override hashCode()1085 public int hashCode() { 1086 if (memoizedHashCode != 0) { 1087 return memoizedHashCode; 1088 } 1089 int hash = 41; 1090 hash = (19 * hash) + getDescriptor().hashCode(); 1091 hash = (37 * hash) + CATEGORY_ID_FIELD_NUMBER; 1092 hash = (53 * hash) + getCategoryId().hashCode(); 1093 hash = (37 * hash) + NAME_FIELD_NUMBER; 1094 hash = (53 * hash) + getName().hashCode(); 1095 hash = (29 * hash) + getUnknownFields().hashCode(); 1096 memoizedHashCode = hash; 1097 return hash; 1098 } 1099 parseFrom(java.nio.ByteBuffer data)1100 public static io.grafeas.v1.WindowsUpdate.Category parseFrom(java.nio.ByteBuffer data) 1101 throws com.google.protobuf.InvalidProtocolBufferException { 1102 return PARSER.parseFrom(data); 1103 } 1104 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1105 public static io.grafeas.v1.WindowsUpdate.Category parseFrom( 1106 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1107 throws com.google.protobuf.InvalidProtocolBufferException { 1108 return PARSER.parseFrom(data, extensionRegistry); 1109 } 1110 parseFrom( com.google.protobuf.ByteString data)1111 public static io.grafeas.v1.WindowsUpdate.Category parseFrom( 1112 com.google.protobuf.ByteString data) 1113 throws com.google.protobuf.InvalidProtocolBufferException { 1114 return PARSER.parseFrom(data); 1115 } 1116 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1117 public static io.grafeas.v1.WindowsUpdate.Category parseFrom( 1118 com.google.protobuf.ByteString data, 1119 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1120 throws com.google.protobuf.InvalidProtocolBufferException { 1121 return PARSER.parseFrom(data, extensionRegistry); 1122 } 1123 parseFrom(byte[] data)1124 public static io.grafeas.v1.WindowsUpdate.Category parseFrom(byte[] data) 1125 throws com.google.protobuf.InvalidProtocolBufferException { 1126 return PARSER.parseFrom(data); 1127 } 1128 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1129 public static io.grafeas.v1.WindowsUpdate.Category parseFrom( 1130 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1131 throws com.google.protobuf.InvalidProtocolBufferException { 1132 return PARSER.parseFrom(data, extensionRegistry); 1133 } 1134 parseFrom(java.io.InputStream input)1135 public static io.grafeas.v1.WindowsUpdate.Category parseFrom(java.io.InputStream input) 1136 throws java.io.IOException { 1137 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1138 } 1139 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1140 public static io.grafeas.v1.WindowsUpdate.Category parseFrom( 1141 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1142 throws java.io.IOException { 1143 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1144 PARSER, input, extensionRegistry); 1145 } 1146 parseDelimitedFrom(java.io.InputStream input)1147 public static io.grafeas.v1.WindowsUpdate.Category parseDelimitedFrom(java.io.InputStream input) 1148 throws java.io.IOException { 1149 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1150 } 1151 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1152 public static io.grafeas.v1.WindowsUpdate.Category parseDelimitedFrom( 1153 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1154 throws java.io.IOException { 1155 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1156 PARSER, input, extensionRegistry); 1157 } 1158 parseFrom( com.google.protobuf.CodedInputStream input)1159 public static io.grafeas.v1.WindowsUpdate.Category parseFrom( 1160 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 1161 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1162 } 1163 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1164 public static io.grafeas.v1.WindowsUpdate.Category parseFrom( 1165 com.google.protobuf.CodedInputStream input, 1166 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1167 throws java.io.IOException { 1168 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1169 PARSER, input, extensionRegistry); 1170 } 1171 1172 @java.lang.Override newBuilderForType()1173 public Builder newBuilderForType() { 1174 return newBuilder(); 1175 } 1176 newBuilder()1177 public static Builder newBuilder() { 1178 return DEFAULT_INSTANCE.toBuilder(); 1179 } 1180 newBuilder(io.grafeas.v1.WindowsUpdate.Category prototype)1181 public static Builder newBuilder(io.grafeas.v1.WindowsUpdate.Category prototype) { 1182 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1183 } 1184 1185 @java.lang.Override toBuilder()1186 public Builder toBuilder() { 1187 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1188 } 1189 1190 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1191 protected Builder newBuilderForType( 1192 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1193 Builder builder = new Builder(parent); 1194 return builder; 1195 } 1196 /** 1197 * 1198 * 1199 * <pre> 1200 * The category to which the update belongs. 1201 * </pre> 1202 * 1203 * Protobuf type {@code grafeas.v1.WindowsUpdate.Category} 1204 */ 1205 public static final class Builder 1206 extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1207 implements 1208 // @@protoc_insertion_point(builder_implements:grafeas.v1.WindowsUpdate.Category) 1209 io.grafeas.v1.WindowsUpdate.CategoryOrBuilder { getDescriptor()1210 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1211 return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_Category_descriptor; 1212 } 1213 1214 @java.lang.Override 1215 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1216 internalGetFieldAccessorTable() { 1217 return io.grafeas.v1.Upgrade 1218 .internal_static_grafeas_v1_WindowsUpdate_Category_fieldAccessorTable 1219 .ensureFieldAccessorsInitialized( 1220 io.grafeas.v1.WindowsUpdate.Category.class, 1221 io.grafeas.v1.WindowsUpdate.Category.Builder.class); 1222 } 1223 1224 // Construct using io.grafeas.v1.WindowsUpdate.Category.newBuilder() Builder()1225 private Builder() {} 1226 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1227 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1228 super(parent); 1229 } 1230 1231 @java.lang.Override clear()1232 public Builder clear() { 1233 super.clear(); 1234 bitField0_ = 0; 1235 categoryId_ = ""; 1236 name_ = ""; 1237 return this; 1238 } 1239 1240 @java.lang.Override getDescriptorForType()1241 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1242 return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_Category_descriptor; 1243 } 1244 1245 @java.lang.Override getDefaultInstanceForType()1246 public io.grafeas.v1.WindowsUpdate.Category getDefaultInstanceForType() { 1247 return io.grafeas.v1.WindowsUpdate.Category.getDefaultInstance(); 1248 } 1249 1250 @java.lang.Override build()1251 public io.grafeas.v1.WindowsUpdate.Category build() { 1252 io.grafeas.v1.WindowsUpdate.Category result = buildPartial(); 1253 if (!result.isInitialized()) { 1254 throw newUninitializedMessageException(result); 1255 } 1256 return result; 1257 } 1258 1259 @java.lang.Override buildPartial()1260 public io.grafeas.v1.WindowsUpdate.Category buildPartial() { 1261 io.grafeas.v1.WindowsUpdate.Category result = 1262 new io.grafeas.v1.WindowsUpdate.Category(this); 1263 if (bitField0_ != 0) { 1264 buildPartial0(result); 1265 } 1266 onBuilt(); 1267 return result; 1268 } 1269 buildPartial0(io.grafeas.v1.WindowsUpdate.Category result)1270 private void buildPartial0(io.grafeas.v1.WindowsUpdate.Category result) { 1271 int from_bitField0_ = bitField0_; 1272 if (((from_bitField0_ & 0x00000001) != 0)) { 1273 result.categoryId_ = categoryId_; 1274 } 1275 if (((from_bitField0_ & 0x00000002) != 0)) { 1276 result.name_ = name_; 1277 } 1278 } 1279 1280 @java.lang.Override clone()1281 public Builder clone() { 1282 return super.clone(); 1283 } 1284 1285 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1286 public Builder setField( 1287 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1288 return super.setField(field, value); 1289 } 1290 1291 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1292 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1293 return super.clearField(field); 1294 } 1295 1296 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1297 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1298 return super.clearOneof(oneof); 1299 } 1300 1301 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1302 public Builder setRepeatedField( 1303 com.google.protobuf.Descriptors.FieldDescriptor field, 1304 int index, 1305 java.lang.Object value) { 1306 return super.setRepeatedField(field, index, value); 1307 } 1308 1309 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1310 public Builder addRepeatedField( 1311 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1312 return super.addRepeatedField(field, value); 1313 } 1314 1315 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1316 public Builder mergeFrom(com.google.protobuf.Message other) { 1317 if (other instanceof io.grafeas.v1.WindowsUpdate.Category) { 1318 return mergeFrom((io.grafeas.v1.WindowsUpdate.Category) other); 1319 } else { 1320 super.mergeFrom(other); 1321 return this; 1322 } 1323 } 1324 mergeFrom(io.grafeas.v1.WindowsUpdate.Category other)1325 public Builder mergeFrom(io.grafeas.v1.WindowsUpdate.Category other) { 1326 if (other == io.grafeas.v1.WindowsUpdate.Category.getDefaultInstance()) return this; 1327 if (!other.getCategoryId().isEmpty()) { 1328 categoryId_ = other.categoryId_; 1329 bitField0_ |= 0x00000001; 1330 onChanged(); 1331 } 1332 if (!other.getName().isEmpty()) { 1333 name_ = other.name_; 1334 bitField0_ |= 0x00000002; 1335 onChanged(); 1336 } 1337 this.mergeUnknownFields(other.getUnknownFields()); 1338 onChanged(); 1339 return this; 1340 } 1341 1342 @java.lang.Override isInitialized()1343 public final boolean isInitialized() { 1344 return true; 1345 } 1346 1347 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1348 public Builder mergeFrom( 1349 com.google.protobuf.CodedInputStream input, 1350 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1351 throws java.io.IOException { 1352 if (extensionRegistry == null) { 1353 throw new java.lang.NullPointerException(); 1354 } 1355 try { 1356 boolean done = false; 1357 while (!done) { 1358 int tag = input.readTag(); 1359 switch (tag) { 1360 case 0: 1361 done = true; 1362 break; 1363 case 10: 1364 { 1365 categoryId_ = input.readStringRequireUtf8(); 1366 bitField0_ |= 0x00000001; 1367 break; 1368 } // case 10 1369 case 18: 1370 { 1371 name_ = input.readStringRequireUtf8(); 1372 bitField0_ |= 0x00000002; 1373 break; 1374 } // case 18 1375 default: 1376 { 1377 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1378 done = true; // was an endgroup tag 1379 } 1380 break; 1381 } // default: 1382 } // switch (tag) 1383 } // while (!done) 1384 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1385 throw e.unwrapIOException(); 1386 } finally { 1387 onChanged(); 1388 } // finally 1389 return this; 1390 } 1391 1392 private int bitField0_; 1393 1394 private java.lang.Object categoryId_ = ""; 1395 /** 1396 * 1397 * 1398 * <pre> 1399 * The identifier of the category. 1400 * </pre> 1401 * 1402 * <code>string category_id = 1;</code> 1403 * 1404 * @return The categoryId. 1405 */ getCategoryId()1406 public java.lang.String getCategoryId() { 1407 java.lang.Object ref = categoryId_; 1408 if (!(ref instanceof java.lang.String)) { 1409 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1410 java.lang.String s = bs.toStringUtf8(); 1411 categoryId_ = s; 1412 return s; 1413 } else { 1414 return (java.lang.String) ref; 1415 } 1416 } 1417 /** 1418 * 1419 * 1420 * <pre> 1421 * The identifier of the category. 1422 * </pre> 1423 * 1424 * <code>string category_id = 1;</code> 1425 * 1426 * @return The bytes for categoryId. 1427 */ getCategoryIdBytes()1428 public com.google.protobuf.ByteString getCategoryIdBytes() { 1429 java.lang.Object ref = categoryId_; 1430 if (ref instanceof String) { 1431 com.google.protobuf.ByteString b = 1432 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1433 categoryId_ = b; 1434 return b; 1435 } else { 1436 return (com.google.protobuf.ByteString) ref; 1437 } 1438 } 1439 /** 1440 * 1441 * 1442 * <pre> 1443 * The identifier of the category. 1444 * </pre> 1445 * 1446 * <code>string category_id = 1;</code> 1447 * 1448 * @param value The categoryId to set. 1449 * @return This builder for chaining. 1450 */ setCategoryId(java.lang.String value)1451 public Builder setCategoryId(java.lang.String value) { 1452 if (value == null) { 1453 throw new NullPointerException(); 1454 } 1455 categoryId_ = value; 1456 bitField0_ |= 0x00000001; 1457 onChanged(); 1458 return this; 1459 } 1460 /** 1461 * 1462 * 1463 * <pre> 1464 * The identifier of the category. 1465 * </pre> 1466 * 1467 * <code>string category_id = 1;</code> 1468 * 1469 * @return This builder for chaining. 1470 */ clearCategoryId()1471 public Builder clearCategoryId() { 1472 categoryId_ = getDefaultInstance().getCategoryId(); 1473 bitField0_ = (bitField0_ & ~0x00000001); 1474 onChanged(); 1475 return this; 1476 } 1477 /** 1478 * 1479 * 1480 * <pre> 1481 * The identifier of the category. 1482 * </pre> 1483 * 1484 * <code>string category_id = 1;</code> 1485 * 1486 * @param value The bytes for categoryId to set. 1487 * @return This builder for chaining. 1488 */ setCategoryIdBytes(com.google.protobuf.ByteString value)1489 public Builder setCategoryIdBytes(com.google.protobuf.ByteString value) { 1490 if (value == null) { 1491 throw new NullPointerException(); 1492 } 1493 checkByteStringIsUtf8(value); 1494 categoryId_ = value; 1495 bitField0_ |= 0x00000001; 1496 onChanged(); 1497 return this; 1498 } 1499 1500 private java.lang.Object name_ = ""; 1501 /** 1502 * 1503 * 1504 * <pre> 1505 * The localized name of the category. 1506 * </pre> 1507 * 1508 * <code>string name = 2;</code> 1509 * 1510 * @return The name. 1511 */ getName()1512 public java.lang.String getName() { 1513 java.lang.Object ref = name_; 1514 if (!(ref instanceof java.lang.String)) { 1515 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1516 java.lang.String s = bs.toStringUtf8(); 1517 name_ = s; 1518 return s; 1519 } else { 1520 return (java.lang.String) ref; 1521 } 1522 } 1523 /** 1524 * 1525 * 1526 * <pre> 1527 * The localized name of the category. 1528 * </pre> 1529 * 1530 * <code>string name = 2;</code> 1531 * 1532 * @return The bytes for name. 1533 */ getNameBytes()1534 public com.google.protobuf.ByteString getNameBytes() { 1535 java.lang.Object ref = name_; 1536 if (ref instanceof String) { 1537 com.google.protobuf.ByteString b = 1538 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1539 name_ = b; 1540 return b; 1541 } else { 1542 return (com.google.protobuf.ByteString) ref; 1543 } 1544 } 1545 /** 1546 * 1547 * 1548 * <pre> 1549 * The localized name of the category. 1550 * </pre> 1551 * 1552 * <code>string name = 2;</code> 1553 * 1554 * @param value The name to set. 1555 * @return This builder for chaining. 1556 */ setName(java.lang.String value)1557 public Builder setName(java.lang.String value) { 1558 if (value == null) { 1559 throw new NullPointerException(); 1560 } 1561 name_ = value; 1562 bitField0_ |= 0x00000002; 1563 onChanged(); 1564 return this; 1565 } 1566 /** 1567 * 1568 * 1569 * <pre> 1570 * The localized name of the category. 1571 * </pre> 1572 * 1573 * <code>string name = 2;</code> 1574 * 1575 * @return This builder for chaining. 1576 */ clearName()1577 public Builder clearName() { 1578 name_ = getDefaultInstance().getName(); 1579 bitField0_ = (bitField0_ & ~0x00000002); 1580 onChanged(); 1581 return this; 1582 } 1583 /** 1584 * 1585 * 1586 * <pre> 1587 * The localized name of the category. 1588 * </pre> 1589 * 1590 * <code>string name = 2;</code> 1591 * 1592 * @param value The bytes for name to set. 1593 * @return This builder for chaining. 1594 */ setNameBytes(com.google.protobuf.ByteString value)1595 public Builder setNameBytes(com.google.protobuf.ByteString value) { 1596 if (value == null) { 1597 throw new NullPointerException(); 1598 } 1599 checkByteStringIsUtf8(value); 1600 name_ = value; 1601 bitField0_ |= 0x00000002; 1602 onChanged(); 1603 return this; 1604 } 1605 1606 @java.lang.Override setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1607 public final Builder setUnknownFields( 1608 final com.google.protobuf.UnknownFieldSet unknownFields) { 1609 return super.setUnknownFields(unknownFields); 1610 } 1611 1612 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1613 public final Builder mergeUnknownFields( 1614 final com.google.protobuf.UnknownFieldSet unknownFields) { 1615 return super.mergeUnknownFields(unknownFields); 1616 } 1617 1618 // @@protoc_insertion_point(builder_scope:grafeas.v1.WindowsUpdate.Category) 1619 } 1620 1621 // @@protoc_insertion_point(class_scope:grafeas.v1.WindowsUpdate.Category) 1622 private static final io.grafeas.v1.WindowsUpdate.Category DEFAULT_INSTANCE; 1623 1624 static { 1625 DEFAULT_INSTANCE = new io.grafeas.v1.WindowsUpdate.Category(); 1626 } 1627 getDefaultInstance()1628 public static io.grafeas.v1.WindowsUpdate.Category getDefaultInstance() { 1629 return DEFAULT_INSTANCE; 1630 } 1631 1632 private static final com.google.protobuf.Parser<Category> PARSER = 1633 new com.google.protobuf.AbstractParser<Category>() { 1634 @java.lang.Override 1635 public Category parsePartialFrom( 1636 com.google.protobuf.CodedInputStream input, 1637 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1638 throws com.google.protobuf.InvalidProtocolBufferException { 1639 Builder builder = newBuilder(); 1640 try { 1641 builder.mergeFrom(input, extensionRegistry); 1642 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1643 throw e.setUnfinishedMessage(builder.buildPartial()); 1644 } catch (com.google.protobuf.UninitializedMessageException e) { 1645 throw e.asInvalidProtocolBufferException() 1646 .setUnfinishedMessage(builder.buildPartial()); 1647 } catch (java.io.IOException e) { 1648 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1649 .setUnfinishedMessage(builder.buildPartial()); 1650 } 1651 return builder.buildPartial(); 1652 } 1653 }; 1654 parser()1655 public static com.google.protobuf.Parser<Category> parser() { 1656 return PARSER; 1657 } 1658 1659 @java.lang.Override getParserForType()1660 public com.google.protobuf.Parser<Category> getParserForType() { 1661 return PARSER; 1662 } 1663 1664 @java.lang.Override getDefaultInstanceForType()1665 public io.grafeas.v1.WindowsUpdate.Category getDefaultInstanceForType() { 1666 return DEFAULT_INSTANCE; 1667 } 1668 } 1669 1670 public static final int IDENTITY_FIELD_NUMBER = 1; 1671 private io.grafeas.v1.WindowsUpdate.Identity identity_; 1672 /** 1673 * 1674 * 1675 * <pre> 1676 * Required - The unique identifier for the update. 1677 * </pre> 1678 * 1679 * <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code> 1680 * 1681 * @return Whether the identity field is set. 1682 */ 1683 @java.lang.Override hasIdentity()1684 public boolean hasIdentity() { 1685 return identity_ != null; 1686 } 1687 /** 1688 * 1689 * 1690 * <pre> 1691 * Required - The unique identifier for the update. 1692 * </pre> 1693 * 1694 * <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code> 1695 * 1696 * @return The identity. 1697 */ 1698 @java.lang.Override getIdentity()1699 public io.grafeas.v1.WindowsUpdate.Identity getIdentity() { 1700 return identity_ == null 1701 ? io.grafeas.v1.WindowsUpdate.Identity.getDefaultInstance() 1702 : identity_; 1703 } 1704 /** 1705 * 1706 * 1707 * <pre> 1708 * Required - The unique identifier for the update. 1709 * </pre> 1710 * 1711 * <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code> 1712 */ 1713 @java.lang.Override getIdentityOrBuilder()1714 public io.grafeas.v1.WindowsUpdate.IdentityOrBuilder getIdentityOrBuilder() { 1715 return identity_ == null 1716 ? io.grafeas.v1.WindowsUpdate.Identity.getDefaultInstance() 1717 : identity_; 1718 } 1719 1720 public static final int TITLE_FIELD_NUMBER = 2; 1721 1722 @SuppressWarnings("serial") 1723 private volatile java.lang.Object title_ = ""; 1724 /** 1725 * 1726 * 1727 * <pre> 1728 * The localized title of the update. 1729 * </pre> 1730 * 1731 * <code>string title = 2;</code> 1732 * 1733 * @return The title. 1734 */ 1735 @java.lang.Override getTitle()1736 public java.lang.String getTitle() { 1737 java.lang.Object ref = title_; 1738 if (ref instanceof java.lang.String) { 1739 return (java.lang.String) ref; 1740 } else { 1741 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1742 java.lang.String s = bs.toStringUtf8(); 1743 title_ = s; 1744 return s; 1745 } 1746 } 1747 /** 1748 * 1749 * 1750 * <pre> 1751 * The localized title of the update. 1752 * </pre> 1753 * 1754 * <code>string title = 2;</code> 1755 * 1756 * @return The bytes for title. 1757 */ 1758 @java.lang.Override getTitleBytes()1759 public com.google.protobuf.ByteString getTitleBytes() { 1760 java.lang.Object ref = title_; 1761 if (ref instanceof java.lang.String) { 1762 com.google.protobuf.ByteString b = 1763 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1764 title_ = b; 1765 return b; 1766 } else { 1767 return (com.google.protobuf.ByteString) ref; 1768 } 1769 } 1770 1771 public static final int DESCRIPTION_FIELD_NUMBER = 3; 1772 1773 @SuppressWarnings("serial") 1774 private volatile java.lang.Object description_ = ""; 1775 /** 1776 * 1777 * 1778 * <pre> 1779 * The localized description of the update. 1780 * </pre> 1781 * 1782 * <code>string description = 3;</code> 1783 * 1784 * @return The description. 1785 */ 1786 @java.lang.Override getDescription()1787 public java.lang.String getDescription() { 1788 java.lang.Object ref = description_; 1789 if (ref instanceof java.lang.String) { 1790 return (java.lang.String) ref; 1791 } else { 1792 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1793 java.lang.String s = bs.toStringUtf8(); 1794 description_ = s; 1795 return s; 1796 } 1797 } 1798 /** 1799 * 1800 * 1801 * <pre> 1802 * The localized description of the update. 1803 * </pre> 1804 * 1805 * <code>string description = 3;</code> 1806 * 1807 * @return The bytes for description. 1808 */ 1809 @java.lang.Override getDescriptionBytes()1810 public com.google.protobuf.ByteString getDescriptionBytes() { 1811 java.lang.Object ref = description_; 1812 if (ref instanceof java.lang.String) { 1813 com.google.protobuf.ByteString b = 1814 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 1815 description_ = b; 1816 return b; 1817 } else { 1818 return (com.google.protobuf.ByteString) ref; 1819 } 1820 } 1821 1822 public static final int CATEGORIES_FIELD_NUMBER = 4; 1823 1824 @SuppressWarnings("serial") 1825 private java.util.List<io.grafeas.v1.WindowsUpdate.Category> categories_; 1826 /** 1827 * 1828 * 1829 * <pre> 1830 * The list of categories to which the update belongs. 1831 * </pre> 1832 * 1833 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 1834 */ 1835 @java.lang.Override getCategoriesList()1836 public java.util.List<io.grafeas.v1.WindowsUpdate.Category> getCategoriesList() { 1837 return categories_; 1838 } 1839 /** 1840 * 1841 * 1842 * <pre> 1843 * The list of categories to which the update belongs. 1844 * </pre> 1845 * 1846 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 1847 */ 1848 @java.lang.Override 1849 public java.util.List<? extends io.grafeas.v1.WindowsUpdate.CategoryOrBuilder> getCategoriesOrBuilderList()1850 getCategoriesOrBuilderList() { 1851 return categories_; 1852 } 1853 /** 1854 * 1855 * 1856 * <pre> 1857 * The list of categories to which the update belongs. 1858 * </pre> 1859 * 1860 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 1861 */ 1862 @java.lang.Override getCategoriesCount()1863 public int getCategoriesCount() { 1864 return categories_.size(); 1865 } 1866 /** 1867 * 1868 * 1869 * <pre> 1870 * The list of categories to which the update belongs. 1871 * </pre> 1872 * 1873 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 1874 */ 1875 @java.lang.Override getCategories(int index)1876 public io.grafeas.v1.WindowsUpdate.Category getCategories(int index) { 1877 return categories_.get(index); 1878 } 1879 /** 1880 * 1881 * 1882 * <pre> 1883 * The list of categories to which the update belongs. 1884 * </pre> 1885 * 1886 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 1887 */ 1888 @java.lang.Override getCategoriesOrBuilder(int index)1889 public io.grafeas.v1.WindowsUpdate.CategoryOrBuilder getCategoriesOrBuilder(int index) { 1890 return categories_.get(index); 1891 } 1892 1893 public static final int KB_ARTICLE_IDS_FIELD_NUMBER = 5; 1894 1895 @SuppressWarnings("serial") 1896 private com.google.protobuf.LazyStringList kbArticleIds_; 1897 /** 1898 * 1899 * 1900 * <pre> 1901 * The Microsoft Knowledge Base article IDs that are associated with the 1902 * update. 1903 * </pre> 1904 * 1905 * <code>repeated string kb_article_ids = 5;</code> 1906 * 1907 * @return A list containing the kbArticleIds. 1908 */ getKbArticleIdsList()1909 public com.google.protobuf.ProtocolStringList getKbArticleIdsList() { 1910 return kbArticleIds_; 1911 } 1912 /** 1913 * 1914 * 1915 * <pre> 1916 * The Microsoft Knowledge Base article IDs that are associated with the 1917 * update. 1918 * </pre> 1919 * 1920 * <code>repeated string kb_article_ids = 5;</code> 1921 * 1922 * @return The count of kbArticleIds. 1923 */ getKbArticleIdsCount()1924 public int getKbArticleIdsCount() { 1925 return kbArticleIds_.size(); 1926 } 1927 /** 1928 * 1929 * 1930 * <pre> 1931 * The Microsoft Knowledge Base article IDs that are associated with the 1932 * update. 1933 * </pre> 1934 * 1935 * <code>repeated string kb_article_ids = 5;</code> 1936 * 1937 * @param index The index of the element to return. 1938 * @return The kbArticleIds at the given index. 1939 */ getKbArticleIds(int index)1940 public java.lang.String getKbArticleIds(int index) { 1941 return kbArticleIds_.get(index); 1942 } 1943 /** 1944 * 1945 * 1946 * <pre> 1947 * The Microsoft Knowledge Base article IDs that are associated with the 1948 * update. 1949 * </pre> 1950 * 1951 * <code>repeated string kb_article_ids = 5;</code> 1952 * 1953 * @param index The index of the value to return. 1954 * @return The bytes of the kbArticleIds at the given index. 1955 */ getKbArticleIdsBytes(int index)1956 public com.google.protobuf.ByteString getKbArticleIdsBytes(int index) { 1957 return kbArticleIds_.getByteString(index); 1958 } 1959 1960 public static final int SUPPORT_URL_FIELD_NUMBER = 6; 1961 1962 @SuppressWarnings("serial") 1963 private volatile java.lang.Object supportUrl_ = ""; 1964 /** 1965 * 1966 * 1967 * <pre> 1968 * The hyperlink to the support information for the update. 1969 * </pre> 1970 * 1971 * <code>string support_url = 6;</code> 1972 * 1973 * @return The supportUrl. 1974 */ 1975 @java.lang.Override getSupportUrl()1976 public java.lang.String getSupportUrl() { 1977 java.lang.Object ref = supportUrl_; 1978 if (ref instanceof java.lang.String) { 1979 return (java.lang.String) ref; 1980 } else { 1981 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 1982 java.lang.String s = bs.toStringUtf8(); 1983 supportUrl_ = s; 1984 return s; 1985 } 1986 } 1987 /** 1988 * 1989 * 1990 * <pre> 1991 * The hyperlink to the support information for the update. 1992 * </pre> 1993 * 1994 * <code>string support_url = 6;</code> 1995 * 1996 * @return The bytes for supportUrl. 1997 */ 1998 @java.lang.Override getSupportUrlBytes()1999 public com.google.protobuf.ByteString getSupportUrlBytes() { 2000 java.lang.Object ref = supportUrl_; 2001 if (ref instanceof java.lang.String) { 2002 com.google.protobuf.ByteString b = 2003 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2004 supportUrl_ = b; 2005 return b; 2006 } else { 2007 return (com.google.protobuf.ByteString) ref; 2008 } 2009 } 2010 2011 public static final int LAST_PUBLISHED_TIMESTAMP_FIELD_NUMBER = 7; 2012 private com.google.protobuf.Timestamp lastPublishedTimestamp_; 2013 /** 2014 * 2015 * 2016 * <pre> 2017 * The last published timestamp of the update. 2018 * </pre> 2019 * 2020 * <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code> 2021 * 2022 * @return Whether the lastPublishedTimestamp field is set. 2023 */ 2024 @java.lang.Override hasLastPublishedTimestamp()2025 public boolean hasLastPublishedTimestamp() { 2026 return lastPublishedTimestamp_ != null; 2027 } 2028 /** 2029 * 2030 * 2031 * <pre> 2032 * The last published timestamp of the update. 2033 * </pre> 2034 * 2035 * <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code> 2036 * 2037 * @return The lastPublishedTimestamp. 2038 */ 2039 @java.lang.Override getLastPublishedTimestamp()2040 public com.google.protobuf.Timestamp getLastPublishedTimestamp() { 2041 return lastPublishedTimestamp_ == null 2042 ? com.google.protobuf.Timestamp.getDefaultInstance() 2043 : lastPublishedTimestamp_; 2044 } 2045 /** 2046 * 2047 * 2048 * <pre> 2049 * The last published timestamp of the update. 2050 * </pre> 2051 * 2052 * <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code> 2053 */ 2054 @java.lang.Override getLastPublishedTimestampOrBuilder()2055 public com.google.protobuf.TimestampOrBuilder getLastPublishedTimestampOrBuilder() { 2056 return lastPublishedTimestamp_ == null 2057 ? com.google.protobuf.Timestamp.getDefaultInstance() 2058 : lastPublishedTimestamp_; 2059 } 2060 2061 private byte memoizedIsInitialized = -1; 2062 2063 @java.lang.Override isInitialized()2064 public final boolean isInitialized() { 2065 byte isInitialized = memoizedIsInitialized; 2066 if (isInitialized == 1) return true; 2067 if (isInitialized == 0) return false; 2068 2069 memoizedIsInitialized = 1; 2070 return true; 2071 } 2072 2073 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)2074 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 2075 if (identity_ != null) { 2076 output.writeMessage(1, getIdentity()); 2077 } 2078 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { 2079 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); 2080 } 2081 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { 2082 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); 2083 } 2084 for (int i = 0; i < categories_.size(); i++) { 2085 output.writeMessage(4, categories_.get(i)); 2086 } 2087 for (int i = 0; i < kbArticleIds_.size(); i++) { 2088 com.google.protobuf.GeneratedMessageV3.writeString(output, 5, kbArticleIds_.getRaw(i)); 2089 } 2090 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(supportUrl_)) { 2091 com.google.protobuf.GeneratedMessageV3.writeString(output, 6, supportUrl_); 2092 } 2093 if (lastPublishedTimestamp_ != null) { 2094 output.writeMessage(7, getLastPublishedTimestamp()); 2095 } 2096 getUnknownFields().writeTo(output); 2097 } 2098 2099 @java.lang.Override getSerializedSize()2100 public int getSerializedSize() { 2101 int size = memoizedSize; 2102 if (size != -1) return size; 2103 2104 size = 0; 2105 if (identity_ != null) { 2106 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIdentity()); 2107 } 2108 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { 2109 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); 2110 } 2111 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { 2112 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); 2113 } 2114 for (int i = 0; i < categories_.size(); i++) { 2115 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, categories_.get(i)); 2116 } 2117 { 2118 int dataSize = 0; 2119 for (int i = 0; i < kbArticleIds_.size(); i++) { 2120 dataSize += computeStringSizeNoTag(kbArticleIds_.getRaw(i)); 2121 } 2122 size += dataSize; 2123 size += 1 * getKbArticleIdsList().size(); 2124 } 2125 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(supportUrl_)) { 2126 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, supportUrl_); 2127 } 2128 if (lastPublishedTimestamp_ != null) { 2129 size += 2130 com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLastPublishedTimestamp()); 2131 } 2132 size += getUnknownFields().getSerializedSize(); 2133 memoizedSize = size; 2134 return size; 2135 } 2136 2137 @java.lang.Override equals(final java.lang.Object obj)2138 public boolean equals(final java.lang.Object obj) { 2139 if (obj == this) { 2140 return true; 2141 } 2142 if (!(obj instanceof io.grafeas.v1.WindowsUpdate)) { 2143 return super.equals(obj); 2144 } 2145 io.grafeas.v1.WindowsUpdate other = (io.grafeas.v1.WindowsUpdate) obj; 2146 2147 if (hasIdentity() != other.hasIdentity()) return false; 2148 if (hasIdentity()) { 2149 if (!getIdentity().equals(other.getIdentity())) return false; 2150 } 2151 if (!getTitle().equals(other.getTitle())) return false; 2152 if (!getDescription().equals(other.getDescription())) return false; 2153 if (!getCategoriesList().equals(other.getCategoriesList())) return false; 2154 if (!getKbArticleIdsList().equals(other.getKbArticleIdsList())) return false; 2155 if (!getSupportUrl().equals(other.getSupportUrl())) return false; 2156 if (hasLastPublishedTimestamp() != other.hasLastPublishedTimestamp()) return false; 2157 if (hasLastPublishedTimestamp()) { 2158 if (!getLastPublishedTimestamp().equals(other.getLastPublishedTimestamp())) return false; 2159 } 2160 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 2161 return true; 2162 } 2163 2164 @java.lang.Override hashCode()2165 public int hashCode() { 2166 if (memoizedHashCode != 0) { 2167 return memoizedHashCode; 2168 } 2169 int hash = 41; 2170 hash = (19 * hash) + getDescriptor().hashCode(); 2171 if (hasIdentity()) { 2172 hash = (37 * hash) + IDENTITY_FIELD_NUMBER; 2173 hash = (53 * hash) + getIdentity().hashCode(); 2174 } 2175 hash = (37 * hash) + TITLE_FIELD_NUMBER; 2176 hash = (53 * hash) + getTitle().hashCode(); 2177 hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; 2178 hash = (53 * hash) + getDescription().hashCode(); 2179 if (getCategoriesCount() > 0) { 2180 hash = (37 * hash) + CATEGORIES_FIELD_NUMBER; 2181 hash = (53 * hash) + getCategoriesList().hashCode(); 2182 } 2183 if (getKbArticleIdsCount() > 0) { 2184 hash = (37 * hash) + KB_ARTICLE_IDS_FIELD_NUMBER; 2185 hash = (53 * hash) + getKbArticleIdsList().hashCode(); 2186 } 2187 hash = (37 * hash) + SUPPORT_URL_FIELD_NUMBER; 2188 hash = (53 * hash) + getSupportUrl().hashCode(); 2189 if (hasLastPublishedTimestamp()) { 2190 hash = (37 * hash) + LAST_PUBLISHED_TIMESTAMP_FIELD_NUMBER; 2191 hash = (53 * hash) + getLastPublishedTimestamp().hashCode(); 2192 } 2193 hash = (29 * hash) + getUnknownFields().hashCode(); 2194 memoizedHashCode = hash; 2195 return hash; 2196 } 2197 parseFrom(java.nio.ByteBuffer data)2198 public static io.grafeas.v1.WindowsUpdate parseFrom(java.nio.ByteBuffer data) 2199 throws com.google.protobuf.InvalidProtocolBufferException { 2200 return PARSER.parseFrom(data); 2201 } 2202 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2203 public static io.grafeas.v1.WindowsUpdate parseFrom( 2204 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2205 throws com.google.protobuf.InvalidProtocolBufferException { 2206 return PARSER.parseFrom(data, extensionRegistry); 2207 } 2208 parseFrom(com.google.protobuf.ByteString data)2209 public static io.grafeas.v1.WindowsUpdate parseFrom(com.google.protobuf.ByteString data) 2210 throws com.google.protobuf.InvalidProtocolBufferException { 2211 return PARSER.parseFrom(data); 2212 } 2213 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2214 public static io.grafeas.v1.WindowsUpdate parseFrom( 2215 com.google.protobuf.ByteString data, 2216 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2217 throws com.google.protobuf.InvalidProtocolBufferException { 2218 return PARSER.parseFrom(data, extensionRegistry); 2219 } 2220 parseFrom(byte[] data)2221 public static io.grafeas.v1.WindowsUpdate parseFrom(byte[] data) 2222 throws com.google.protobuf.InvalidProtocolBufferException { 2223 return PARSER.parseFrom(data); 2224 } 2225 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2226 public static io.grafeas.v1.WindowsUpdate parseFrom( 2227 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2228 throws com.google.protobuf.InvalidProtocolBufferException { 2229 return PARSER.parseFrom(data, extensionRegistry); 2230 } 2231 parseFrom(java.io.InputStream input)2232 public static io.grafeas.v1.WindowsUpdate parseFrom(java.io.InputStream input) 2233 throws java.io.IOException { 2234 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2235 } 2236 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2237 public static io.grafeas.v1.WindowsUpdate parseFrom( 2238 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2239 throws java.io.IOException { 2240 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2241 PARSER, input, extensionRegistry); 2242 } 2243 parseDelimitedFrom(java.io.InputStream input)2244 public static io.grafeas.v1.WindowsUpdate parseDelimitedFrom(java.io.InputStream input) 2245 throws java.io.IOException { 2246 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 2247 } 2248 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2249 public static io.grafeas.v1.WindowsUpdate parseDelimitedFrom( 2250 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2251 throws java.io.IOException { 2252 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 2253 PARSER, input, extensionRegistry); 2254 } 2255 parseFrom(com.google.protobuf.CodedInputStream input)2256 public static io.grafeas.v1.WindowsUpdate parseFrom(com.google.protobuf.CodedInputStream input) 2257 throws java.io.IOException { 2258 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 2259 } 2260 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2261 public static io.grafeas.v1.WindowsUpdate parseFrom( 2262 com.google.protobuf.CodedInputStream input, 2263 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2264 throws java.io.IOException { 2265 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 2266 PARSER, input, extensionRegistry); 2267 } 2268 2269 @java.lang.Override newBuilderForType()2270 public Builder newBuilderForType() { 2271 return newBuilder(); 2272 } 2273 newBuilder()2274 public static Builder newBuilder() { 2275 return DEFAULT_INSTANCE.toBuilder(); 2276 } 2277 newBuilder(io.grafeas.v1.WindowsUpdate prototype)2278 public static Builder newBuilder(io.grafeas.v1.WindowsUpdate prototype) { 2279 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2280 } 2281 2282 @java.lang.Override toBuilder()2283 public Builder toBuilder() { 2284 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 2285 } 2286 2287 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2288 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2289 Builder builder = new Builder(parent); 2290 return builder; 2291 } 2292 /** 2293 * 2294 * 2295 * <pre> 2296 * Windows Update represents the metadata about the update for the Windows 2297 * operating system. The fields in this message come from the Windows Update API 2298 * documented at 2299 * https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate. 2300 * </pre> 2301 * 2302 * Protobuf type {@code grafeas.v1.WindowsUpdate} 2303 */ 2304 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 2305 implements 2306 // @@protoc_insertion_point(builder_implements:grafeas.v1.WindowsUpdate) 2307 io.grafeas.v1.WindowsUpdateOrBuilder { getDescriptor()2308 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 2309 return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_descriptor; 2310 } 2311 2312 @java.lang.Override 2313 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()2314 internalGetFieldAccessorTable() { 2315 return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_fieldAccessorTable 2316 .ensureFieldAccessorsInitialized( 2317 io.grafeas.v1.WindowsUpdate.class, io.grafeas.v1.WindowsUpdate.Builder.class); 2318 } 2319 2320 // Construct using io.grafeas.v1.WindowsUpdate.newBuilder() Builder()2321 private Builder() {} 2322 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)2323 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 2324 super(parent); 2325 } 2326 2327 @java.lang.Override clear()2328 public Builder clear() { 2329 super.clear(); 2330 bitField0_ = 0; 2331 identity_ = null; 2332 if (identityBuilder_ != null) { 2333 identityBuilder_.dispose(); 2334 identityBuilder_ = null; 2335 } 2336 title_ = ""; 2337 description_ = ""; 2338 if (categoriesBuilder_ == null) { 2339 categories_ = java.util.Collections.emptyList(); 2340 } else { 2341 categories_ = null; 2342 categoriesBuilder_.clear(); 2343 } 2344 bitField0_ = (bitField0_ & ~0x00000008); 2345 kbArticleIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2346 bitField0_ = (bitField0_ & ~0x00000010); 2347 supportUrl_ = ""; 2348 lastPublishedTimestamp_ = null; 2349 if (lastPublishedTimestampBuilder_ != null) { 2350 lastPublishedTimestampBuilder_.dispose(); 2351 lastPublishedTimestampBuilder_ = null; 2352 } 2353 return this; 2354 } 2355 2356 @java.lang.Override getDescriptorForType()2357 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 2358 return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_WindowsUpdate_descriptor; 2359 } 2360 2361 @java.lang.Override getDefaultInstanceForType()2362 public io.grafeas.v1.WindowsUpdate getDefaultInstanceForType() { 2363 return io.grafeas.v1.WindowsUpdate.getDefaultInstance(); 2364 } 2365 2366 @java.lang.Override build()2367 public io.grafeas.v1.WindowsUpdate build() { 2368 io.grafeas.v1.WindowsUpdate result = buildPartial(); 2369 if (!result.isInitialized()) { 2370 throw newUninitializedMessageException(result); 2371 } 2372 return result; 2373 } 2374 2375 @java.lang.Override buildPartial()2376 public io.grafeas.v1.WindowsUpdate buildPartial() { 2377 io.grafeas.v1.WindowsUpdate result = new io.grafeas.v1.WindowsUpdate(this); 2378 buildPartialRepeatedFields(result); 2379 if (bitField0_ != 0) { 2380 buildPartial0(result); 2381 } 2382 onBuilt(); 2383 return result; 2384 } 2385 buildPartialRepeatedFields(io.grafeas.v1.WindowsUpdate result)2386 private void buildPartialRepeatedFields(io.grafeas.v1.WindowsUpdate result) { 2387 if (categoriesBuilder_ == null) { 2388 if (((bitField0_ & 0x00000008) != 0)) { 2389 categories_ = java.util.Collections.unmodifiableList(categories_); 2390 bitField0_ = (bitField0_ & ~0x00000008); 2391 } 2392 result.categories_ = categories_; 2393 } else { 2394 result.categories_ = categoriesBuilder_.build(); 2395 } 2396 if (((bitField0_ & 0x00000010) != 0)) { 2397 kbArticleIds_ = kbArticleIds_.getUnmodifiableView(); 2398 bitField0_ = (bitField0_ & ~0x00000010); 2399 } 2400 result.kbArticleIds_ = kbArticleIds_; 2401 } 2402 buildPartial0(io.grafeas.v1.WindowsUpdate result)2403 private void buildPartial0(io.grafeas.v1.WindowsUpdate result) { 2404 int from_bitField0_ = bitField0_; 2405 if (((from_bitField0_ & 0x00000001) != 0)) { 2406 result.identity_ = identityBuilder_ == null ? identity_ : identityBuilder_.build(); 2407 } 2408 if (((from_bitField0_ & 0x00000002) != 0)) { 2409 result.title_ = title_; 2410 } 2411 if (((from_bitField0_ & 0x00000004) != 0)) { 2412 result.description_ = description_; 2413 } 2414 if (((from_bitField0_ & 0x00000020) != 0)) { 2415 result.supportUrl_ = supportUrl_; 2416 } 2417 if (((from_bitField0_ & 0x00000040) != 0)) { 2418 result.lastPublishedTimestamp_ = 2419 lastPublishedTimestampBuilder_ == null 2420 ? lastPublishedTimestamp_ 2421 : lastPublishedTimestampBuilder_.build(); 2422 } 2423 } 2424 2425 @java.lang.Override clone()2426 public Builder clone() { 2427 return super.clone(); 2428 } 2429 2430 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2431 public Builder setField( 2432 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2433 return super.setField(field, value); 2434 } 2435 2436 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)2437 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 2438 return super.clearField(field); 2439 } 2440 2441 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)2442 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 2443 return super.clearOneof(oneof); 2444 } 2445 2446 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)2447 public Builder setRepeatedField( 2448 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 2449 return super.setRepeatedField(field, index, value); 2450 } 2451 2452 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)2453 public Builder addRepeatedField( 2454 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 2455 return super.addRepeatedField(field, value); 2456 } 2457 2458 @java.lang.Override mergeFrom(com.google.protobuf.Message other)2459 public Builder mergeFrom(com.google.protobuf.Message other) { 2460 if (other instanceof io.grafeas.v1.WindowsUpdate) { 2461 return mergeFrom((io.grafeas.v1.WindowsUpdate) other); 2462 } else { 2463 super.mergeFrom(other); 2464 return this; 2465 } 2466 } 2467 mergeFrom(io.grafeas.v1.WindowsUpdate other)2468 public Builder mergeFrom(io.grafeas.v1.WindowsUpdate other) { 2469 if (other == io.grafeas.v1.WindowsUpdate.getDefaultInstance()) return this; 2470 if (other.hasIdentity()) { 2471 mergeIdentity(other.getIdentity()); 2472 } 2473 if (!other.getTitle().isEmpty()) { 2474 title_ = other.title_; 2475 bitField0_ |= 0x00000002; 2476 onChanged(); 2477 } 2478 if (!other.getDescription().isEmpty()) { 2479 description_ = other.description_; 2480 bitField0_ |= 0x00000004; 2481 onChanged(); 2482 } 2483 if (categoriesBuilder_ == null) { 2484 if (!other.categories_.isEmpty()) { 2485 if (categories_.isEmpty()) { 2486 categories_ = other.categories_; 2487 bitField0_ = (bitField0_ & ~0x00000008); 2488 } else { 2489 ensureCategoriesIsMutable(); 2490 categories_.addAll(other.categories_); 2491 } 2492 onChanged(); 2493 } 2494 } else { 2495 if (!other.categories_.isEmpty()) { 2496 if (categoriesBuilder_.isEmpty()) { 2497 categoriesBuilder_.dispose(); 2498 categoriesBuilder_ = null; 2499 categories_ = other.categories_; 2500 bitField0_ = (bitField0_ & ~0x00000008); 2501 categoriesBuilder_ = 2502 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders 2503 ? getCategoriesFieldBuilder() 2504 : null; 2505 } else { 2506 categoriesBuilder_.addAllMessages(other.categories_); 2507 } 2508 } 2509 } 2510 if (!other.kbArticleIds_.isEmpty()) { 2511 if (kbArticleIds_.isEmpty()) { 2512 kbArticleIds_ = other.kbArticleIds_; 2513 bitField0_ = (bitField0_ & ~0x00000010); 2514 } else { 2515 ensureKbArticleIdsIsMutable(); 2516 kbArticleIds_.addAll(other.kbArticleIds_); 2517 } 2518 onChanged(); 2519 } 2520 if (!other.getSupportUrl().isEmpty()) { 2521 supportUrl_ = other.supportUrl_; 2522 bitField0_ |= 0x00000020; 2523 onChanged(); 2524 } 2525 if (other.hasLastPublishedTimestamp()) { 2526 mergeLastPublishedTimestamp(other.getLastPublishedTimestamp()); 2527 } 2528 this.mergeUnknownFields(other.getUnknownFields()); 2529 onChanged(); 2530 return this; 2531 } 2532 2533 @java.lang.Override isInitialized()2534 public final boolean isInitialized() { 2535 return true; 2536 } 2537 2538 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)2539 public Builder mergeFrom( 2540 com.google.protobuf.CodedInputStream input, 2541 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2542 throws java.io.IOException { 2543 if (extensionRegistry == null) { 2544 throw new java.lang.NullPointerException(); 2545 } 2546 try { 2547 boolean done = false; 2548 while (!done) { 2549 int tag = input.readTag(); 2550 switch (tag) { 2551 case 0: 2552 done = true; 2553 break; 2554 case 10: 2555 { 2556 input.readMessage(getIdentityFieldBuilder().getBuilder(), extensionRegistry); 2557 bitField0_ |= 0x00000001; 2558 break; 2559 } // case 10 2560 case 18: 2561 { 2562 title_ = input.readStringRequireUtf8(); 2563 bitField0_ |= 0x00000002; 2564 break; 2565 } // case 18 2566 case 26: 2567 { 2568 description_ = input.readStringRequireUtf8(); 2569 bitField0_ |= 0x00000004; 2570 break; 2571 } // case 26 2572 case 34: 2573 { 2574 io.grafeas.v1.WindowsUpdate.Category m = 2575 input.readMessage( 2576 io.grafeas.v1.WindowsUpdate.Category.parser(), extensionRegistry); 2577 if (categoriesBuilder_ == null) { 2578 ensureCategoriesIsMutable(); 2579 categories_.add(m); 2580 } else { 2581 categoriesBuilder_.addMessage(m); 2582 } 2583 break; 2584 } // case 34 2585 case 42: 2586 { 2587 java.lang.String s = input.readStringRequireUtf8(); 2588 ensureKbArticleIdsIsMutable(); 2589 kbArticleIds_.add(s); 2590 break; 2591 } // case 42 2592 case 50: 2593 { 2594 supportUrl_ = input.readStringRequireUtf8(); 2595 bitField0_ |= 0x00000020; 2596 break; 2597 } // case 50 2598 case 58: 2599 { 2600 input.readMessage( 2601 getLastPublishedTimestampFieldBuilder().getBuilder(), extensionRegistry); 2602 bitField0_ |= 0x00000040; 2603 break; 2604 } // case 58 2605 default: 2606 { 2607 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 2608 done = true; // was an endgroup tag 2609 } 2610 break; 2611 } // default: 2612 } // switch (tag) 2613 } // while (!done) 2614 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2615 throw e.unwrapIOException(); 2616 } finally { 2617 onChanged(); 2618 } // finally 2619 return this; 2620 } 2621 2622 private int bitField0_; 2623 2624 private io.grafeas.v1.WindowsUpdate.Identity identity_; 2625 private com.google.protobuf.SingleFieldBuilderV3< 2626 io.grafeas.v1.WindowsUpdate.Identity, 2627 io.grafeas.v1.WindowsUpdate.Identity.Builder, 2628 io.grafeas.v1.WindowsUpdate.IdentityOrBuilder> 2629 identityBuilder_; 2630 /** 2631 * 2632 * 2633 * <pre> 2634 * Required - The unique identifier for the update. 2635 * </pre> 2636 * 2637 * <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code> 2638 * 2639 * @return Whether the identity field is set. 2640 */ hasIdentity()2641 public boolean hasIdentity() { 2642 return ((bitField0_ & 0x00000001) != 0); 2643 } 2644 /** 2645 * 2646 * 2647 * <pre> 2648 * Required - The unique identifier for the update. 2649 * </pre> 2650 * 2651 * <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code> 2652 * 2653 * @return The identity. 2654 */ getIdentity()2655 public io.grafeas.v1.WindowsUpdate.Identity getIdentity() { 2656 if (identityBuilder_ == null) { 2657 return identity_ == null 2658 ? io.grafeas.v1.WindowsUpdate.Identity.getDefaultInstance() 2659 : identity_; 2660 } else { 2661 return identityBuilder_.getMessage(); 2662 } 2663 } 2664 /** 2665 * 2666 * 2667 * <pre> 2668 * Required - The unique identifier for the update. 2669 * </pre> 2670 * 2671 * <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code> 2672 */ setIdentity(io.grafeas.v1.WindowsUpdate.Identity value)2673 public Builder setIdentity(io.grafeas.v1.WindowsUpdate.Identity value) { 2674 if (identityBuilder_ == null) { 2675 if (value == null) { 2676 throw new NullPointerException(); 2677 } 2678 identity_ = value; 2679 } else { 2680 identityBuilder_.setMessage(value); 2681 } 2682 bitField0_ |= 0x00000001; 2683 onChanged(); 2684 return this; 2685 } 2686 /** 2687 * 2688 * 2689 * <pre> 2690 * Required - The unique identifier for the update. 2691 * </pre> 2692 * 2693 * <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code> 2694 */ setIdentity(io.grafeas.v1.WindowsUpdate.Identity.Builder builderForValue)2695 public Builder setIdentity(io.grafeas.v1.WindowsUpdate.Identity.Builder builderForValue) { 2696 if (identityBuilder_ == null) { 2697 identity_ = builderForValue.build(); 2698 } else { 2699 identityBuilder_.setMessage(builderForValue.build()); 2700 } 2701 bitField0_ |= 0x00000001; 2702 onChanged(); 2703 return this; 2704 } 2705 /** 2706 * 2707 * 2708 * <pre> 2709 * Required - The unique identifier for the update. 2710 * </pre> 2711 * 2712 * <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code> 2713 */ mergeIdentity(io.grafeas.v1.WindowsUpdate.Identity value)2714 public Builder mergeIdentity(io.grafeas.v1.WindowsUpdate.Identity value) { 2715 if (identityBuilder_ == null) { 2716 if (((bitField0_ & 0x00000001) != 0) 2717 && identity_ != null 2718 && identity_ != io.grafeas.v1.WindowsUpdate.Identity.getDefaultInstance()) { 2719 getIdentityBuilder().mergeFrom(value); 2720 } else { 2721 identity_ = value; 2722 } 2723 } else { 2724 identityBuilder_.mergeFrom(value); 2725 } 2726 bitField0_ |= 0x00000001; 2727 onChanged(); 2728 return this; 2729 } 2730 /** 2731 * 2732 * 2733 * <pre> 2734 * Required - The unique identifier for the update. 2735 * </pre> 2736 * 2737 * <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code> 2738 */ clearIdentity()2739 public Builder clearIdentity() { 2740 bitField0_ = (bitField0_ & ~0x00000001); 2741 identity_ = null; 2742 if (identityBuilder_ != null) { 2743 identityBuilder_.dispose(); 2744 identityBuilder_ = null; 2745 } 2746 onChanged(); 2747 return this; 2748 } 2749 /** 2750 * 2751 * 2752 * <pre> 2753 * Required - The unique identifier for the update. 2754 * </pre> 2755 * 2756 * <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code> 2757 */ getIdentityBuilder()2758 public io.grafeas.v1.WindowsUpdate.Identity.Builder getIdentityBuilder() { 2759 bitField0_ |= 0x00000001; 2760 onChanged(); 2761 return getIdentityFieldBuilder().getBuilder(); 2762 } 2763 /** 2764 * 2765 * 2766 * <pre> 2767 * Required - The unique identifier for the update. 2768 * </pre> 2769 * 2770 * <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code> 2771 */ getIdentityOrBuilder()2772 public io.grafeas.v1.WindowsUpdate.IdentityOrBuilder getIdentityOrBuilder() { 2773 if (identityBuilder_ != null) { 2774 return identityBuilder_.getMessageOrBuilder(); 2775 } else { 2776 return identity_ == null 2777 ? io.grafeas.v1.WindowsUpdate.Identity.getDefaultInstance() 2778 : identity_; 2779 } 2780 } 2781 /** 2782 * 2783 * 2784 * <pre> 2785 * Required - The unique identifier for the update. 2786 * </pre> 2787 * 2788 * <code>.grafeas.v1.WindowsUpdate.Identity identity = 1;</code> 2789 */ 2790 private com.google.protobuf.SingleFieldBuilderV3< 2791 io.grafeas.v1.WindowsUpdate.Identity, 2792 io.grafeas.v1.WindowsUpdate.Identity.Builder, 2793 io.grafeas.v1.WindowsUpdate.IdentityOrBuilder> getIdentityFieldBuilder()2794 getIdentityFieldBuilder() { 2795 if (identityBuilder_ == null) { 2796 identityBuilder_ = 2797 new com.google.protobuf.SingleFieldBuilderV3< 2798 io.grafeas.v1.WindowsUpdate.Identity, 2799 io.grafeas.v1.WindowsUpdate.Identity.Builder, 2800 io.grafeas.v1.WindowsUpdate.IdentityOrBuilder>( 2801 getIdentity(), getParentForChildren(), isClean()); 2802 identity_ = null; 2803 } 2804 return identityBuilder_; 2805 } 2806 2807 private java.lang.Object title_ = ""; 2808 /** 2809 * 2810 * 2811 * <pre> 2812 * The localized title of the update. 2813 * </pre> 2814 * 2815 * <code>string title = 2;</code> 2816 * 2817 * @return The title. 2818 */ getTitle()2819 public java.lang.String getTitle() { 2820 java.lang.Object ref = title_; 2821 if (!(ref instanceof java.lang.String)) { 2822 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2823 java.lang.String s = bs.toStringUtf8(); 2824 title_ = s; 2825 return s; 2826 } else { 2827 return (java.lang.String) ref; 2828 } 2829 } 2830 /** 2831 * 2832 * 2833 * <pre> 2834 * The localized title of the update. 2835 * </pre> 2836 * 2837 * <code>string title = 2;</code> 2838 * 2839 * @return The bytes for title. 2840 */ getTitleBytes()2841 public com.google.protobuf.ByteString getTitleBytes() { 2842 java.lang.Object ref = title_; 2843 if (ref instanceof String) { 2844 com.google.protobuf.ByteString b = 2845 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2846 title_ = b; 2847 return b; 2848 } else { 2849 return (com.google.protobuf.ByteString) ref; 2850 } 2851 } 2852 /** 2853 * 2854 * 2855 * <pre> 2856 * The localized title of the update. 2857 * </pre> 2858 * 2859 * <code>string title = 2;</code> 2860 * 2861 * @param value The title to set. 2862 * @return This builder for chaining. 2863 */ setTitle(java.lang.String value)2864 public Builder setTitle(java.lang.String value) { 2865 if (value == null) { 2866 throw new NullPointerException(); 2867 } 2868 title_ = value; 2869 bitField0_ |= 0x00000002; 2870 onChanged(); 2871 return this; 2872 } 2873 /** 2874 * 2875 * 2876 * <pre> 2877 * The localized title of the update. 2878 * </pre> 2879 * 2880 * <code>string title = 2;</code> 2881 * 2882 * @return This builder for chaining. 2883 */ clearTitle()2884 public Builder clearTitle() { 2885 title_ = getDefaultInstance().getTitle(); 2886 bitField0_ = (bitField0_ & ~0x00000002); 2887 onChanged(); 2888 return this; 2889 } 2890 /** 2891 * 2892 * 2893 * <pre> 2894 * The localized title of the update. 2895 * </pre> 2896 * 2897 * <code>string title = 2;</code> 2898 * 2899 * @param value The bytes for title to set. 2900 * @return This builder for chaining. 2901 */ setTitleBytes(com.google.protobuf.ByteString value)2902 public Builder setTitleBytes(com.google.protobuf.ByteString value) { 2903 if (value == null) { 2904 throw new NullPointerException(); 2905 } 2906 checkByteStringIsUtf8(value); 2907 title_ = value; 2908 bitField0_ |= 0x00000002; 2909 onChanged(); 2910 return this; 2911 } 2912 2913 private java.lang.Object description_ = ""; 2914 /** 2915 * 2916 * 2917 * <pre> 2918 * The localized description of the update. 2919 * </pre> 2920 * 2921 * <code>string description = 3;</code> 2922 * 2923 * @return The description. 2924 */ getDescription()2925 public java.lang.String getDescription() { 2926 java.lang.Object ref = description_; 2927 if (!(ref instanceof java.lang.String)) { 2928 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 2929 java.lang.String s = bs.toStringUtf8(); 2930 description_ = s; 2931 return s; 2932 } else { 2933 return (java.lang.String) ref; 2934 } 2935 } 2936 /** 2937 * 2938 * 2939 * <pre> 2940 * The localized description of the update. 2941 * </pre> 2942 * 2943 * <code>string description = 3;</code> 2944 * 2945 * @return The bytes for description. 2946 */ getDescriptionBytes()2947 public com.google.protobuf.ByteString getDescriptionBytes() { 2948 java.lang.Object ref = description_; 2949 if (ref instanceof String) { 2950 com.google.protobuf.ByteString b = 2951 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 2952 description_ = b; 2953 return b; 2954 } else { 2955 return (com.google.protobuf.ByteString) ref; 2956 } 2957 } 2958 /** 2959 * 2960 * 2961 * <pre> 2962 * The localized description of the update. 2963 * </pre> 2964 * 2965 * <code>string description = 3;</code> 2966 * 2967 * @param value The description to set. 2968 * @return This builder for chaining. 2969 */ setDescription(java.lang.String value)2970 public Builder setDescription(java.lang.String value) { 2971 if (value == null) { 2972 throw new NullPointerException(); 2973 } 2974 description_ = value; 2975 bitField0_ |= 0x00000004; 2976 onChanged(); 2977 return this; 2978 } 2979 /** 2980 * 2981 * 2982 * <pre> 2983 * The localized description of the update. 2984 * </pre> 2985 * 2986 * <code>string description = 3;</code> 2987 * 2988 * @return This builder for chaining. 2989 */ clearDescription()2990 public Builder clearDescription() { 2991 description_ = getDefaultInstance().getDescription(); 2992 bitField0_ = (bitField0_ & ~0x00000004); 2993 onChanged(); 2994 return this; 2995 } 2996 /** 2997 * 2998 * 2999 * <pre> 3000 * The localized description of the update. 3001 * </pre> 3002 * 3003 * <code>string description = 3;</code> 3004 * 3005 * @param value The bytes for description to set. 3006 * @return This builder for chaining. 3007 */ setDescriptionBytes(com.google.protobuf.ByteString value)3008 public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 3009 if (value == null) { 3010 throw new NullPointerException(); 3011 } 3012 checkByteStringIsUtf8(value); 3013 description_ = value; 3014 bitField0_ |= 0x00000004; 3015 onChanged(); 3016 return this; 3017 } 3018 3019 private java.util.List<io.grafeas.v1.WindowsUpdate.Category> categories_ = 3020 java.util.Collections.emptyList(); 3021 ensureCategoriesIsMutable()3022 private void ensureCategoriesIsMutable() { 3023 if (!((bitField0_ & 0x00000008) != 0)) { 3024 categories_ = new java.util.ArrayList<io.grafeas.v1.WindowsUpdate.Category>(categories_); 3025 bitField0_ |= 0x00000008; 3026 } 3027 } 3028 3029 private com.google.protobuf.RepeatedFieldBuilderV3< 3030 io.grafeas.v1.WindowsUpdate.Category, 3031 io.grafeas.v1.WindowsUpdate.Category.Builder, 3032 io.grafeas.v1.WindowsUpdate.CategoryOrBuilder> 3033 categoriesBuilder_; 3034 3035 /** 3036 * 3037 * 3038 * <pre> 3039 * The list of categories to which the update belongs. 3040 * </pre> 3041 * 3042 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3043 */ getCategoriesList()3044 public java.util.List<io.grafeas.v1.WindowsUpdate.Category> getCategoriesList() { 3045 if (categoriesBuilder_ == null) { 3046 return java.util.Collections.unmodifiableList(categories_); 3047 } else { 3048 return categoriesBuilder_.getMessageList(); 3049 } 3050 } 3051 /** 3052 * 3053 * 3054 * <pre> 3055 * The list of categories to which the update belongs. 3056 * </pre> 3057 * 3058 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3059 */ getCategoriesCount()3060 public int getCategoriesCount() { 3061 if (categoriesBuilder_ == null) { 3062 return categories_.size(); 3063 } else { 3064 return categoriesBuilder_.getCount(); 3065 } 3066 } 3067 /** 3068 * 3069 * 3070 * <pre> 3071 * The list of categories to which the update belongs. 3072 * </pre> 3073 * 3074 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3075 */ getCategories(int index)3076 public io.grafeas.v1.WindowsUpdate.Category getCategories(int index) { 3077 if (categoriesBuilder_ == null) { 3078 return categories_.get(index); 3079 } else { 3080 return categoriesBuilder_.getMessage(index); 3081 } 3082 } 3083 /** 3084 * 3085 * 3086 * <pre> 3087 * The list of categories to which the update belongs. 3088 * </pre> 3089 * 3090 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3091 */ setCategories(int index, io.grafeas.v1.WindowsUpdate.Category value)3092 public Builder setCategories(int index, io.grafeas.v1.WindowsUpdate.Category value) { 3093 if (categoriesBuilder_ == null) { 3094 if (value == null) { 3095 throw new NullPointerException(); 3096 } 3097 ensureCategoriesIsMutable(); 3098 categories_.set(index, value); 3099 onChanged(); 3100 } else { 3101 categoriesBuilder_.setMessage(index, value); 3102 } 3103 return this; 3104 } 3105 /** 3106 * 3107 * 3108 * <pre> 3109 * The list of categories to which the update belongs. 3110 * </pre> 3111 * 3112 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3113 */ setCategories( int index, io.grafeas.v1.WindowsUpdate.Category.Builder builderForValue)3114 public Builder setCategories( 3115 int index, io.grafeas.v1.WindowsUpdate.Category.Builder builderForValue) { 3116 if (categoriesBuilder_ == null) { 3117 ensureCategoriesIsMutable(); 3118 categories_.set(index, builderForValue.build()); 3119 onChanged(); 3120 } else { 3121 categoriesBuilder_.setMessage(index, builderForValue.build()); 3122 } 3123 return this; 3124 } 3125 /** 3126 * 3127 * 3128 * <pre> 3129 * The list of categories to which the update belongs. 3130 * </pre> 3131 * 3132 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3133 */ addCategories(io.grafeas.v1.WindowsUpdate.Category value)3134 public Builder addCategories(io.grafeas.v1.WindowsUpdate.Category value) { 3135 if (categoriesBuilder_ == null) { 3136 if (value == null) { 3137 throw new NullPointerException(); 3138 } 3139 ensureCategoriesIsMutable(); 3140 categories_.add(value); 3141 onChanged(); 3142 } else { 3143 categoriesBuilder_.addMessage(value); 3144 } 3145 return this; 3146 } 3147 /** 3148 * 3149 * 3150 * <pre> 3151 * The list of categories to which the update belongs. 3152 * </pre> 3153 * 3154 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3155 */ addCategories(int index, io.grafeas.v1.WindowsUpdate.Category value)3156 public Builder addCategories(int index, io.grafeas.v1.WindowsUpdate.Category value) { 3157 if (categoriesBuilder_ == null) { 3158 if (value == null) { 3159 throw new NullPointerException(); 3160 } 3161 ensureCategoriesIsMutable(); 3162 categories_.add(index, value); 3163 onChanged(); 3164 } else { 3165 categoriesBuilder_.addMessage(index, value); 3166 } 3167 return this; 3168 } 3169 /** 3170 * 3171 * 3172 * <pre> 3173 * The list of categories to which the update belongs. 3174 * </pre> 3175 * 3176 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3177 */ addCategories(io.grafeas.v1.WindowsUpdate.Category.Builder builderForValue)3178 public Builder addCategories(io.grafeas.v1.WindowsUpdate.Category.Builder builderForValue) { 3179 if (categoriesBuilder_ == null) { 3180 ensureCategoriesIsMutable(); 3181 categories_.add(builderForValue.build()); 3182 onChanged(); 3183 } else { 3184 categoriesBuilder_.addMessage(builderForValue.build()); 3185 } 3186 return this; 3187 } 3188 /** 3189 * 3190 * 3191 * <pre> 3192 * The list of categories to which the update belongs. 3193 * </pre> 3194 * 3195 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3196 */ addCategories( int index, io.grafeas.v1.WindowsUpdate.Category.Builder builderForValue)3197 public Builder addCategories( 3198 int index, io.grafeas.v1.WindowsUpdate.Category.Builder builderForValue) { 3199 if (categoriesBuilder_ == null) { 3200 ensureCategoriesIsMutable(); 3201 categories_.add(index, builderForValue.build()); 3202 onChanged(); 3203 } else { 3204 categoriesBuilder_.addMessage(index, builderForValue.build()); 3205 } 3206 return this; 3207 } 3208 /** 3209 * 3210 * 3211 * <pre> 3212 * The list of categories to which the update belongs. 3213 * </pre> 3214 * 3215 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3216 */ addAllCategories( java.lang.Iterable<? extends io.grafeas.v1.WindowsUpdate.Category> values)3217 public Builder addAllCategories( 3218 java.lang.Iterable<? extends io.grafeas.v1.WindowsUpdate.Category> values) { 3219 if (categoriesBuilder_ == null) { 3220 ensureCategoriesIsMutable(); 3221 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, categories_); 3222 onChanged(); 3223 } else { 3224 categoriesBuilder_.addAllMessages(values); 3225 } 3226 return this; 3227 } 3228 /** 3229 * 3230 * 3231 * <pre> 3232 * The list of categories to which the update belongs. 3233 * </pre> 3234 * 3235 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3236 */ clearCategories()3237 public Builder clearCategories() { 3238 if (categoriesBuilder_ == null) { 3239 categories_ = java.util.Collections.emptyList(); 3240 bitField0_ = (bitField0_ & ~0x00000008); 3241 onChanged(); 3242 } else { 3243 categoriesBuilder_.clear(); 3244 } 3245 return this; 3246 } 3247 /** 3248 * 3249 * 3250 * <pre> 3251 * The list of categories to which the update belongs. 3252 * </pre> 3253 * 3254 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3255 */ removeCategories(int index)3256 public Builder removeCategories(int index) { 3257 if (categoriesBuilder_ == null) { 3258 ensureCategoriesIsMutable(); 3259 categories_.remove(index); 3260 onChanged(); 3261 } else { 3262 categoriesBuilder_.remove(index); 3263 } 3264 return this; 3265 } 3266 /** 3267 * 3268 * 3269 * <pre> 3270 * The list of categories to which the update belongs. 3271 * </pre> 3272 * 3273 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3274 */ getCategoriesBuilder(int index)3275 public io.grafeas.v1.WindowsUpdate.Category.Builder getCategoriesBuilder(int index) { 3276 return getCategoriesFieldBuilder().getBuilder(index); 3277 } 3278 /** 3279 * 3280 * 3281 * <pre> 3282 * The list of categories to which the update belongs. 3283 * </pre> 3284 * 3285 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3286 */ getCategoriesOrBuilder(int index)3287 public io.grafeas.v1.WindowsUpdate.CategoryOrBuilder getCategoriesOrBuilder(int index) { 3288 if (categoriesBuilder_ == null) { 3289 return categories_.get(index); 3290 } else { 3291 return categoriesBuilder_.getMessageOrBuilder(index); 3292 } 3293 } 3294 /** 3295 * 3296 * 3297 * <pre> 3298 * The list of categories to which the update belongs. 3299 * </pre> 3300 * 3301 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3302 */ 3303 public java.util.List<? extends io.grafeas.v1.WindowsUpdate.CategoryOrBuilder> getCategoriesOrBuilderList()3304 getCategoriesOrBuilderList() { 3305 if (categoriesBuilder_ != null) { 3306 return categoriesBuilder_.getMessageOrBuilderList(); 3307 } else { 3308 return java.util.Collections.unmodifiableList(categories_); 3309 } 3310 } 3311 /** 3312 * 3313 * 3314 * <pre> 3315 * The list of categories to which the update belongs. 3316 * </pre> 3317 * 3318 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3319 */ addCategoriesBuilder()3320 public io.grafeas.v1.WindowsUpdate.Category.Builder addCategoriesBuilder() { 3321 return getCategoriesFieldBuilder() 3322 .addBuilder(io.grafeas.v1.WindowsUpdate.Category.getDefaultInstance()); 3323 } 3324 /** 3325 * 3326 * 3327 * <pre> 3328 * The list of categories to which the update belongs. 3329 * </pre> 3330 * 3331 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3332 */ addCategoriesBuilder(int index)3333 public io.grafeas.v1.WindowsUpdate.Category.Builder addCategoriesBuilder(int index) { 3334 return getCategoriesFieldBuilder() 3335 .addBuilder(index, io.grafeas.v1.WindowsUpdate.Category.getDefaultInstance()); 3336 } 3337 /** 3338 * 3339 * 3340 * <pre> 3341 * The list of categories to which the update belongs. 3342 * </pre> 3343 * 3344 * <code>repeated .grafeas.v1.WindowsUpdate.Category categories = 4;</code> 3345 */ getCategoriesBuilderList()3346 public java.util.List<io.grafeas.v1.WindowsUpdate.Category.Builder> getCategoriesBuilderList() { 3347 return getCategoriesFieldBuilder().getBuilderList(); 3348 } 3349 3350 private com.google.protobuf.RepeatedFieldBuilderV3< 3351 io.grafeas.v1.WindowsUpdate.Category, 3352 io.grafeas.v1.WindowsUpdate.Category.Builder, 3353 io.grafeas.v1.WindowsUpdate.CategoryOrBuilder> getCategoriesFieldBuilder()3354 getCategoriesFieldBuilder() { 3355 if (categoriesBuilder_ == null) { 3356 categoriesBuilder_ = 3357 new com.google.protobuf.RepeatedFieldBuilderV3< 3358 io.grafeas.v1.WindowsUpdate.Category, 3359 io.grafeas.v1.WindowsUpdate.Category.Builder, 3360 io.grafeas.v1.WindowsUpdate.CategoryOrBuilder>( 3361 categories_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); 3362 categories_ = null; 3363 } 3364 return categoriesBuilder_; 3365 } 3366 3367 private com.google.protobuf.LazyStringList kbArticleIds_ = 3368 com.google.protobuf.LazyStringArrayList.EMPTY; 3369 ensureKbArticleIdsIsMutable()3370 private void ensureKbArticleIdsIsMutable() { 3371 if (!((bitField0_ & 0x00000010) != 0)) { 3372 kbArticleIds_ = new com.google.protobuf.LazyStringArrayList(kbArticleIds_); 3373 bitField0_ |= 0x00000010; 3374 } 3375 } 3376 /** 3377 * 3378 * 3379 * <pre> 3380 * The Microsoft Knowledge Base article IDs that are associated with the 3381 * update. 3382 * </pre> 3383 * 3384 * <code>repeated string kb_article_ids = 5;</code> 3385 * 3386 * @return A list containing the kbArticleIds. 3387 */ getKbArticleIdsList()3388 public com.google.protobuf.ProtocolStringList getKbArticleIdsList() { 3389 return kbArticleIds_.getUnmodifiableView(); 3390 } 3391 /** 3392 * 3393 * 3394 * <pre> 3395 * The Microsoft Knowledge Base article IDs that are associated with the 3396 * update. 3397 * </pre> 3398 * 3399 * <code>repeated string kb_article_ids = 5;</code> 3400 * 3401 * @return The count of kbArticleIds. 3402 */ getKbArticleIdsCount()3403 public int getKbArticleIdsCount() { 3404 return kbArticleIds_.size(); 3405 } 3406 /** 3407 * 3408 * 3409 * <pre> 3410 * The Microsoft Knowledge Base article IDs that are associated with the 3411 * update. 3412 * </pre> 3413 * 3414 * <code>repeated string kb_article_ids = 5;</code> 3415 * 3416 * @param index The index of the element to return. 3417 * @return The kbArticleIds at the given index. 3418 */ getKbArticleIds(int index)3419 public java.lang.String getKbArticleIds(int index) { 3420 return kbArticleIds_.get(index); 3421 } 3422 /** 3423 * 3424 * 3425 * <pre> 3426 * The Microsoft Knowledge Base article IDs that are associated with the 3427 * update. 3428 * </pre> 3429 * 3430 * <code>repeated string kb_article_ids = 5;</code> 3431 * 3432 * @param index The index of the value to return. 3433 * @return The bytes of the kbArticleIds at the given index. 3434 */ getKbArticleIdsBytes(int index)3435 public com.google.protobuf.ByteString getKbArticleIdsBytes(int index) { 3436 return kbArticleIds_.getByteString(index); 3437 } 3438 /** 3439 * 3440 * 3441 * <pre> 3442 * The Microsoft Knowledge Base article IDs that are associated with the 3443 * update. 3444 * </pre> 3445 * 3446 * <code>repeated string kb_article_ids = 5;</code> 3447 * 3448 * @param index The index to set the value at. 3449 * @param value The kbArticleIds to set. 3450 * @return This builder for chaining. 3451 */ setKbArticleIds(int index, java.lang.String value)3452 public Builder setKbArticleIds(int index, java.lang.String value) { 3453 if (value == null) { 3454 throw new NullPointerException(); 3455 } 3456 ensureKbArticleIdsIsMutable(); 3457 kbArticleIds_.set(index, value); 3458 onChanged(); 3459 return this; 3460 } 3461 /** 3462 * 3463 * 3464 * <pre> 3465 * The Microsoft Knowledge Base article IDs that are associated with the 3466 * update. 3467 * </pre> 3468 * 3469 * <code>repeated string kb_article_ids = 5;</code> 3470 * 3471 * @param value The kbArticleIds to add. 3472 * @return This builder for chaining. 3473 */ addKbArticleIds(java.lang.String value)3474 public Builder addKbArticleIds(java.lang.String value) { 3475 if (value == null) { 3476 throw new NullPointerException(); 3477 } 3478 ensureKbArticleIdsIsMutable(); 3479 kbArticleIds_.add(value); 3480 onChanged(); 3481 return this; 3482 } 3483 /** 3484 * 3485 * 3486 * <pre> 3487 * The Microsoft Knowledge Base article IDs that are associated with the 3488 * update. 3489 * </pre> 3490 * 3491 * <code>repeated string kb_article_ids = 5;</code> 3492 * 3493 * @param values The kbArticleIds to add. 3494 * @return This builder for chaining. 3495 */ addAllKbArticleIds(java.lang.Iterable<java.lang.String> values)3496 public Builder addAllKbArticleIds(java.lang.Iterable<java.lang.String> values) { 3497 ensureKbArticleIdsIsMutable(); 3498 com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kbArticleIds_); 3499 onChanged(); 3500 return this; 3501 } 3502 /** 3503 * 3504 * 3505 * <pre> 3506 * The Microsoft Knowledge Base article IDs that are associated with the 3507 * update. 3508 * </pre> 3509 * 3510 * <code>repeated string kb_article_ids = 5;</code> 3511 * 3512 * @return This builder for chaining. 3513 */ clearKbArticleIds()3514 public Builder clearKbArticleIds() { 3515 kbArticleIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; 3516 bitField0_ = (bitField0_ & ~0x00000010); 3517 onChanged(); 3518 return this; 3519 } 3520 /** 3521 * 3522 * 3523 * <pre> 3524 * The Microsoft Knowledge Base article IDs that are associated with the 3525 * update. 3526 * </pre> 3527 * 3528 * <code>repeated string kb_article_ids = 5;</code> 3529 * 3530 * @param value The bytes of the kbArticleIds to add. 3531 * @return This builder for chaining. 3532 */ addKbArticleIdsBytes(com.google.protobuf.ByteString value)3533 public Builder addKbArticleIdsBytes(com.google.protobuf.ByteString value) { 3534 if (value == null) { 3535 throw new NullPointerException(); 3536 } 3537 checkByteStringIsUtf8(value); 3538 ensureKbArticleIdsIsMutable(); 3539 kbArticleIds_.add(value); 3540 onChanged(); 3541 return this; 3542 } 3543 3544 private java.lang.Object supportUrl_ = ""; 3545 /** 3546 * 3547 * 3548 * <pre> 3549 * The hyperlink to the support information for the update. 3550 * </pre> 3551 * 3552 * <code>string support_url = 6;</code> 3553 * 3554 * @return The supportUrl. 3555 */ getSupportUrl()3556 public java.lang.String getSupportUrl() { 3557 java.lang.Object ref = supportUrl_; 3558 if (!(ref instanceof java.lang.String)) { 3559 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 3560 java.lang.String s = bs.toStringUtf8(); 3561 supportUrl_ = s; 3562 return s; 3563 } else { 3564 return (java.lang.String) ref; 3565 } 3566 } 3567 /** 3568 * 3569 * 3570 * <pre> 3571 * The hyperlink to the support information for the update. 3572 * </pre> 3573 * 3574 * <code>string support_url = 6;</code> 3575 * 3576 * @return The bytes for supportUrl. 3577 */ getSupportUrlBytes()3578 public com.google.protobuf.ByteString getSupportUrlBytes() { 3579 java.lang.Object ref = supportUrl_; 3580 if (ref instanceof String) { 3581 com.google.protobuf.ByteString b = 3582 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 3583 supportUrl_ = b; 3584 return b; 3585 } else { 3586 return (com.google.protobuf.ByteString) ref; 3587 } 3588 } 3589 /** 3590 * 3591 * 3592 * <pre> 3593 * The hyperlink to the support information for the update. 3594 * </pre> 3595 * 3596 * <code>string support_url = 6;</code> 3597 * 3598 * @param value The supportUrl to set. 3599 * @return This builder for chaining. 3600 */ setSupportUrl(java.lang.String value)3601 public Builder setSupportUrl(java.lang.String value) { 3602 if (value == null) { 3603 throw new NullPointerException(); 3604 } 3605 supportUrl_ = value; 3606 bitField0_ |= 0x00000020; 3607 onChanged(); 3608 return this; 3609 } 3610 /** 3611 * 3612 * 3613 * <pre> 3614 * The hyperlink to the support information for the update. 3615 * </pre> 3616 * 3617 * <code>string support_url = 6;</code> 3618 * 3619 * @return This builder for chaining. 3620 */ clearSupportUrl()3621 public Builder clearSupportUrl() { 3622 supportUrl_ = getDefaultInstance().getSupportUrl(); 3623 bitField0_ = (bitField0_ & ~0x00000020); 3624 onChanged(); 3625 return this; 3626 } 3627 /** 3628 * 3629 * 3630 * <pre> 3631 * The hyperlink to the support information for the update. 3632 * </pre> 3633 * 3634 * <code>string support_url = 6;</code> 3635 * 3636 * @param value The bytes for supportUrl to set. 3637 * @return This builder for chaining. 3638 */ setSupportUrlBytes(com.google.protobuf.ByteString value)3639 public Builder setSupportUrlBytes(com.google.protobuf.ByteString value) { 3640 if (value == null) { 3641 throw new NullPointerException(); 3642 } 3643 checkByteStringIsUtf8(value); 3644 supportUrl_ = value; 3645 bitField0_ |= 0x00000020; 3646 onChanged(); 3647 return this; 3648 } 3649 3650 private com.google.protobuf.Timestamp lastPublishedTimestamp_; 3651 private com.google.protobuf.SingleFieldBuilderV3< 3652 com.google.protobuf.Timestamp, 3653 com.google.protobuf.Timestamp.Builder, 3654 com.google.protobuf.TimestampOrBuilder> 3655 lastPublishedTimestampBuilder_; 3656 /** 3657 * 3658 * 3659 * <pre> 3660 * The last published timestamp of the update. 3661 * </pre> 3662 * 3663 * <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code> 3664 * 3665 * @return Whether the lastPublishedTimestamp field is set. 3666 */ hasLastPublishedTimestamp()3667 public boolean hasLastPublishedTimestamp() { 3668 return ((bitField0_ & 0x00000040) != 0); 3669 } 3670 /** 3671 * 3672 * 3673 * <pre> 3674 * The last published timestamp of the update. 3675 * </pre> 3676 * 3677 * <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code> 3678 * 3679 * @return The lastPublishedTimestamp. 3680 */ getLastPublishedTimestamp()3681 public com.google.protobuf.Timestamp getLastPublishedTimestamp() { 3682 if (lastPublishedTimestampBuilder_ == null) { 3683 return lastPublishedTimestamp_ == null 3684 ? com.google.protobuf.Timestamp.getDefaultInstance() 3685 : lastPublishedTimestamp_; 3686 } else { 3687 return lastPublishedTimestampBuilder_.getMessage(); 3688 } 3689 } 3690 /** 3691 * 3692 * 3693 * <pre> 3694 * The last published timestamp of the update. 3695 * </pre> 3696 * 3697 * <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code> 3698 */ setLastPublishedTimestamp(com.google.protobuf.Timestamp value)3699 public Builder setLastPublishedTimestamp(com.google.protobuf.Timestamp value) { 3700 if (lastPublishedTimestampBuilder_ == null) { 3701 if (value == null) { 3702 throw new NullPointerException(); 3703 } 3704 lastPublishedTimestamp_ = value; 3705 } else { 3706 lastPublishedTimestampBuilder_.setMessage(value); 3707 } 3708 bitField0_ |= 0x00000040; 3709 onChanged(); 3710 return this; 3711 } 3712 /** 3713 * 3714 * 3715 * <pre> 3716 * The last published timestamp of the update. 3717 * </pre> 3718 * 3719 * <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code> 3720 */ setLastPublishedTimestamp( com.google.protobuf.Timestamp.Builder builderForValue)3721 public Builder setLastPublishedTimestamp( 3722 com.google.protobuf.Timestamp.Builder builderForValue) { 3723 if (lastPublishedTimestampBuilder_ == null) { 3724 lastPublishedTimestamp_ = builderForValue.build(); 3725 } else { 3726 lastPublishedTimestampBuilder_.setMessage(builderForValue.build()); 3727 } 3728 bitField0_ |= 0x00000040; 3729 onChanged(); 3730 return this; 3731 } 3732 /** 3733 * 3734 * 3735 * <pre> 3736 * The last published timestamp of the update. 3737 * </pre> 3738 * 3739 * <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code> 3740 */ mergeLastPublishedTimestamp(com.google.protobuf.Timestamp value)3741 public Builder mergeLastPublishedTimestamp(com.google.protobuf.Timestamp value) { 3742 if (lastPublishedTimestampBuilder_ == null) { 3743 if (((bitField0_ & 0x00000040) != 0) 3744 && lastPublishedTimestamp_ != null 3745 && lastPublishedTimestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) { 3746 getLastPublishedTimestampBuilder().mergeFrom(value); 3747 } else { 3748 lastPublishedTimestamp_ = value; 3749 } 3750 } else { 3751 lastPublishedTimestampBuilder_.mergeFrom(value); 3752 } 3753 bitField0_ |= 0x00000040; 3754 onChanged(); 3755 return this; 3756 } 3757 /** 3758 * 3759 * 3760 * <pre> 3761 * The last published timestamp of the update. 3762 * </pre> 3763 * 3764 * <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code> 3765 */ clearLastPublishedTimestamp()3766 public Builder clearLastPublishedTimestamp() { 3767 bitField0_ = (bitField0_ & ~0x00000040); 3768 lastPublishedTimestamp_ = null; 3769 if (lastPublishedTimestampBuilder_ != null) { 3770 lastPublishedTimestampBuilder_.dispose(); 3771 lastPublishedTimestampBuilder_ = null; 3772 } 3773 onChanged(); 3774 return this; 3775 } 3776 /** 3777 * 3778 * 3779 * <pre> 3780 * The last published timestamp of the update. 3781 * </pre> 3782 * 3783 * <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code> 3784 */ getLastPublishedTimestampBuilder()3785 public com.google.protobuf.Timestamp.Builder getLastPublishedTimestampBuilder() { 3786 bitField0_ |= 0x00000040; 3787 onChanged(); 3788 return getLastPublishedTimestampFieldBuilder().getBuilder(); 3789 } 3790 /** 3791 * 3792 * 3793 * <pre> 3794 * The last published timestamp of the update. 3795 * </pre> 3796 * 3797 * <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code> 3798 */ getLastPublishedTimestampOrBuilder()3799 public com.google.protobuf.TimestampOrBuilder getLastPublishedTimestampOrBuilder() { 3800 if (lastPublishedTimestampBuilder_ != null) { 3801 return lastPublishedTimestampBuilder_.getMessageOrBuilder(); 3802 } else { 3803 return lastPublishedTimestamp_ == null 3804 ? com.google.protobuf.Timestamp.getDefaultInstance() 3805 : lastPublishedTimestamp_; 3806 } 3807 } 3808 /** 3809 * 3810 * 3811 * <pre> 3812 * The last published timestamp of the update. 3813 * </pre> 3814 * 3815 * <code>.google.protobuf.Timestamp last_published_timestamp = 7;</code> 3816 */ 3817 private com.google.protobuf.SingleFieldBuilderV3< 3818 com.google.protobuf.Timestamp, 3819 com.google.protobuf.Timestamp.Builder, 3820 com.google.protobuf.TimestampOrBuilder> getLastPublishedTimestampFieldBuilder()3821 getLastPublishedTimestampFieldBuilder() { 3822 if (lastPublishedTimestampBuilder_ == null) { 3823 lastPublishedTimestampBuilder_ = 3824 new com.google.protobuf.SingleFieldBuilderV3< 3825 com.google.protobuf.Timestamp, 3826 com.google.protobuf.Timestamp.Builder, 3827 com.google.protobuf.TimestampOrBuilder>( 3828 getLastPublishedTimestamp(), getParentForChildren(), isClean()); 3829 lastPublishedTimestamp_ = null; 3830 } 3831 return lastPublishedTimestampBuilder_; 3832 } 3833 3834 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)3835 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 3836 return super.setUnknownFields(unknownFields); 3837 } 3838 3839 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3840 public final Builder mergeUnknownFields( 3841 final com.google.protobuf.UnknownFieldSet unknownFields) { 3842 return super.mergeUnknownFields(unknownFields); 3843 } 3844 3845 // @@protoc_insertion_point(builder_scope:grafeas.v1.WindowsUpdate) 3846 } 3847 3848 // @@protoc_insertion_point(class_scope:grafeas.v1.WindowsUpdate) 3849 private static final io.grafeas.v1.WindowsUpdate DEFAULT_INSTANCE; 3850 3851 static { 3852 DEFAULT_INSTANCE = new io.grafeas.v1.WindowsUpdate(); 3853 } 3854 getDefaultInstance()3855 public static io.grafeas.v1.WindowsUpdate getDefaultInstance() { 3856 return DEFAULT_INSTANCE; 3857 } 3858 3859 private static final com.google.protobuf.Parser<WindowsUpdate> PARSER = 3860 new com.google.protobuf.AbstractParser<WindowsUpdate>() { 3861 @java.lang.Override 3862 public WindowsUpdate parsePartialFrom( 3863 com.google.protobuf.CodedInputStream input, 3864 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3865 throws com.google.protobuf.InvalidProtocolBufferException { 3866 Builder builder = newBuilder(); 3867 try { 3868 builder.mergeFrom(input, extensionRegistry); 3869 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3870 throw e.setUnfinishedMessage(builder.buildPartial()); 3871 } catch (com.google.protobuf.UninitializedMessageException e) { 3872 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 3873 } catch (java.io.IOException e) { 3874 throw new com.google.protobuf.InvalidProtocolBufferException(e) 3875 .setUnfinishedMessage(builder.buildPartial()); 3876 } 3877 return builder.buildPartial(); 3878 } 3879 }; 3880 parser()3881 public static com.google.protobuf.Parser<WindowsUpdate> parser() { 3882 return PARSER; 3883 } 3884 3885 @java.lang.Override getParserForType()3886 public com.google.protobuf.Parser<WindowsUpdate> getParserForType() { 3887 return PARSER; 3888 } 3889 3890 @java.lang.Override getDefaultInstanceForType()3891 public io.grafeas.v1.WindowsUpdate getDefaultInstanceForType() { 3892 return DEFAULT_INSTANCE; 3893 } 3894 } 3895