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 * An Upgrade Occurrence represents that a specific resource_url could install a 27 * specific upgrade. This presence is supplied via local sources (i.e. it is 28 * present in the mirror and the running system has noticed its availability). 29 * For Windows, both distribution and windows_update contain information for the 30 * Windows update. 31 * </pre> 32 * 33 * Protobuf type {@code grafeas.v1.UpgradeOccurrence} 34 */ 35 public final class UpgradeOccurrence extends com.google.protobuf.GeneratedMessageV3 36 implements 37 // @@protoc_insertion_point(message_implements:grafeas.v1.UpgradeOccurrence) 38 UpgradeOccurrenceOrBuilder { 39 private static final long serialVersionUID = 0L; 40 // Use UpgradeOccurrence.newBuilder() to construct. UpgradeOccurrence(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)41 private UpgradeOccurrence(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 42 super(builder); 43 } 44 UpgradeOccurrence()45 private UpgradeOccurrence() { 46 package_ = ""; 47 } 48 49 @java.lang.Override 50 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)51 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 52 return new UpgradeOccurrence(); 53 } 54 55 @java.lang.Override getUnknownFields()56 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 57 return this.unknownFields; 58 } 59 getDescriptor()60 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 61 return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_UpgradeOccurrence_descriptor; 62 } 63 64 @java.lang.Override 65 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()66 internalGetFieldAccessorTable() { 67 return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_UpgradeOccurrence_fieldAccessorTable 68 .ensureFieldAccessorsInitialized( 69 io.grafeas.v1.UpgradeOccurrence.class, io.grafeas.v1.UpgradeOccurrence.Builder.class); 70 } 71 72 public static final int PACKAGE_FIELD_NUMBER = 1; 73 74 @SuppressWarnings("serial") 75 private volatile java.lang.Object package_ = ""; 76 /** 77 * 78 * 79 * <pre> 80 * Required for non-Windows OS. The package this Upgrade is for. 81 * </pre> 82 * 83 * <code>string package = 1;</code> 84 * 85 * @return The package. 86 */ 87 @java.lang.Override getPackage()88 public java.lang.String getPackage() { 89 java.lang.Object ref = package_; 90 if (ref instanceof java.lang.String) { 91 return (java.lang.String) ref; 92 } else { 93 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 94 java.lang.String s = bs.toStringUtf8(); 95 package_ = s; 96 return s; 97 } 98 } 99 /** 100 * 101 * 102 * <pre> 103 * Required for non-Windows OS. The package this Upgrade is for. 104 * </pre> 105 * 106 * <code>string package = 1;</code> 107 * 108 * @return The bytes for package. 109 */ 110 @java.lang.Override getPackageBytes()111 public com.google.protobuf.ByteString getPackageBytes() { 112 java.lang.Object ref = package_; 113 if (ref instanceof java.lang.String) { 114 com.google.protobuf.ByteString b = 115 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 116 package_ = b; 117 return b; 118 } else { 119 return (com.google.protobuf.ByteString) ref; 120 } 121 } 122 123 public static final int PARSED_VERSION_FIELD_NUMBER = 3; 124 private io.grafeas.v1.Version parsedVersion_; 125 /** 126 * 127 * 128 * <pre> 129 * Required for non-Windows OS. The version of the package in a machine + 130 * human readable form. 131 * </pre> 132 * 133 * <code>.grafeas.v1.Version parsed_version = 3;</code> 134 * 135 * @return Whether the parsedVersion field is set. 136 */ 137 @java.lang.Override hasParsedVersion()138 public boolean hasParsedVersion() { 139 return parsedVersion_ != null; 140 } 141 /** 142 * 143 * 144 * <pre> 145 * Required for non-Windows OS. The version of the package in a machine + 146 * human readable form. 147 * </pre> 148 * 149 * <code>.grafeas.v1.Version parsed_version = 3;</code> 150 * 151 * @return The parsedVersion. 152 */ 153 @java.lang.Override getParsedVersion()154 public io.grafeas.v1.Version getParsedVersion() { 155 return parsedVersion_ == null ? io.grafeas.v1.Version.getDefaultInstance() : parsedVersion_; 156 } 157 /** 158 * 159 * 160 * <pre> 161 * Required for non-Windows OS. The version of the package in a machine + 162 * human readable form. 163 * </pre> 164 * 165 * <code>.grafeas.v1.Version parsed_version = 3;</code> 166 */ 167 @java.lang.Override getParsedVersionOrBuilder()168 public io.grafeas.v1.VersionOrBuilder getParsedVersionOrBuilder() { 169 return parsedVersion_ == null ? io.grafeas.v1.Version.getDefaultInstance() : parsedVersion_; 170 } 171 172 public static final int DISTRIBUTION_FIELD_NUMBER = 4; 173 private io.grafeas.v1.UpgradeDistribution distribution_; 174 /** 175 * 176 * 177 * <pre> 178 * Metadata about the upgrade for available for the specific operating system 179 * for the resource_url. This allows efficient filtering, as well as 180 * making it easier to use the occurrence. 181 * </pre> 182 * 183 * <code>.grafeas.v1.UpgradeDistribution distribution = 4;</code> 184 * 185 * @return Whether the distribution field is set. 186 */ 187 @java.lang.Override hasDistribution()188 public boolean hasDistribution() { 189 return distribution_ != null; 190 } 191 /** 192 * 193 * 194 * <pre> 195 * Metadata about the upgrade for available for the specific operating system 196 * for the resource_url. This allows efficient filtering, as well as 197 * making it easier to use the occurrence. 198 * </pre> 199 * 200 * <code>.grafeas.v1.UpgradeDistribution distribution = 4;</code> 201 * 202 * @return The distribution. 203 */ 204 @java.lang.Override getDistribution()205 public io.grafeas.v1.UpgradeDistribution getDistribution() { 206 return distribution_ == null 207 ? io.grafeas.v1.UpgradeDistribution.getDefaultInstance() 208 : distribution_; 209 } 210 /** 211 * 212 * 213 * <pre> 214 * Metadata about the upgrade for available for the specific operating system 215 * for the resource_url. This allows efficient filtering, as well as 216 * making it easier to use the occurrence. 217 * </pre> 218 * 219 * <code>.grafeas.v1.UpgradeDistribution distribution = 4;</code> 220 */ 221 @java.lang.Override getDistributionOrBuilder()222 public io.grafeas.v1.UpgradeDistributionOrBuilder getDistributionOrBuilder() { 223 return distribution_ == null 224 ? io.grafeas.v1.UpgradeDistribution.getDefaultInstance() 225 : distribution_; 226 } 227 228 public static final int WINDOWS_UPDATE_FIELD_NUMBER = 5; 229 private io.grafeas.v1.WindowsUpdate windowsUpdate_; 230 /** 231 * 232 * 233 * <pre> 234 * Required for Windows OS. Represents the metadata about the Windows update. 235 * </pre> 236 * 237 * <code>.grafeas.v1.WindowsUpdate windows_update = 5;</code> 238 * 239 * @return Whether the windowsUpdate field is set. 240 */ 241 @java.lang.Override hasWindowsUpdate()242 public boolean hasWindowsUpdate() { 243 return windowsUpdate_ != null; 244 } 245 /** 246 * 247 * 248 * <pre> 249 * Required for Windows OS. Represents the metadata about the Windows update. 250 * </pre> 251 * 252 * <code>.grafeas.v1.WindowsUpdate windows_update = 5;</code> 253 * 254 * @return The windowsUpdate. 255 */ 256 @java.lang.Override getWindowsUpdate()257 public io.grafeas.v1.WindowsUpdate getWindowsUpdate() { 258 return windowsUpdate_ == null 259 ? io.grafeas.v1.WindowsUpdate.getDefaultInstance() 260 : windowsUpdate_; 261 } 262 /** 263 * 264 * 265 * <pre> 266 * Required for Windows OS. Represents the metadata about the Windows update. 267 * </pre> 268 * 269 * <code>.grafeas.v1.WindowsUpdate windows_update = 5;</code> 270 */ 271 @java.lang.Override getWindowsUpdateOrBuilder()272 public io.grafeas.v1.WindowsUpdateOrBuilder getWindowsUpdateOrBuilder() { 273 return windowsUpdate_ == null 274 ? io.grafeas.v1.WindowsUpdate.getDefaultInstance() 275 : windowsUpdate_; 276 } 277 278 private byte memoizedIsInitialized = -1; 279 280 @java.lang.Override isInitialized()281 public final boolean isInitialized() { 282 byte isInitialized = memoizedIsInitialized; 283 if (isInitialized == 1) return true; 284 if (isInitialized == 0) return false; 285 286 memoizedIsInitialized = 1; 287 return true; 288 } 289 290 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)291 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 292 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(package_)) { 293 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, package_); 294 } 295 if (parsedVersion_ != null) { 296 output.writeMessage(3, getParsedVersion()); 297 } 298 if (distribution_ != null) { 299 output.writeMessage(4, getDistribution()); 300 } 301 if (windowsUpdate_ != null) { 302 output.writeMessage(5, getWindowsUpdate()); 303 } 304 getUnknownFields().writeTo(output); 305 } 306 307 @java.lang.Override getSerializedSize()308 public int getSerializedSize() { 309 int size = memoizedSize; 310 if (size != -1) return size; 311 312 size = 0; 313 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(package_)) { 314 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, package_); 315 } 316 if (parsedVersion_ != null) { 317 size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getParsedVersion()); 318 } 319 if (distribution_ != null) { 320 size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDistribution()); 321 } 322 if (windowsUpdate_ != null) { 323 size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getWindowsUpdate()); 324 } 325 size += getUnknownFields().getSerializedSize(); 326 memoizedSize = size; 327 return size; 328 } 329 330 @java.lang.Override equals(final java.lang.Object obj)331 public boolean equals(final java.lang.Object obj) { 332 if (obj == this) { 333 return true; 334 } 335 if (!(obj instanceof io.grafeas.v1.UpgradeOccurrence)) { 336 return super.equals(obj); 337 } 338 io.grafeas.v1.UpgradeOccurrence other = (io.grafeas.v1.UpgradeOccurrence) obj; 339 340 if (!getPackage().equals(other.getPackage())) return false; 341 if (hasParsedVersion() != other.hasParsedVersion()) return false; 342 if (hasParsedVersion()) { 343 if (!getParsedVersion().equals(other.getParsedVersion())) return false; 344 } 345 if (hasDistribution() != other.hasDistribution()) return false; 346 if (hasDistribution()) { 347 if (!getDistribution().equals(other.getDistribution())) return false; 348 } 349 if (hasWindowsUpdate() != other.hasWindowsUpdate()) return false; 350 if (hasWindowsUpdate()) { 351 if (!getWindowsUpdate().equals(other.getWindowsUpdate())) return false; 352 } 353 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 354 return true; 355 } 356 357 @java.lang.Override hashCode()358 public int hashCode() { 359 if (memoizedHashCode != 0) { 360 return memoizedHashCode; 361 } 362 int hash = 41; 363 hash = (19 * hash) + getDescriptor().hashCode(); 364 hash = (37 * hash) + PACKAGE_FIELD_NUMBER; 365 hash = (53 * hash) + getPackage().hashCode(); 366 if (hasParsedVersion()) { 367 hash = (37 * hash) + PARSED_VERSION_FIELD_NUMBER; 368 hash = (53 * hash) + getParsedVersion().hashCode(); 369 } 370 if (hasDistribution()) { 371 hash = (37 * hash) + DISTRIBUTION_FIELD_NUMBER; 372 hash = (53 * hash) + getDistribution().hashCode(); 373 } 374 if (hasWindowsUpdate()) { 375 hash = (37 * hash) + WINDOWS_UPDATE_FIELD_NUMBER; 376 hash = (53 * hash) + getWindowsUpdate().hashCode(); 377 } 378 hash = (29 * hash) + getUnknownFields().hashCode(); 379 memoizedHashCode = hash; 380 return hash; 381 } 382 parseFrom(java.nio.ByteBuffer data)383 public static io.grafeas.v1.UpgradeOccurrence parseFrom(java.nio.ByteBuffer data) 384 throws com.google.protobuf.InvalidProtocolBufferException { 385 return PARSER.parseFrom(data); 386 } 387 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)388 public static io.grafeas.v1.UpgradeOccurrence parseFrom( 389 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 390 throws com.google.protobuf.InvalidProtocolBufferException { 391 return PARSER.parseFrom(data, extensionRegistry); 392 } 393 parseFrom(com.google.protobuf.ByteString data)394 public static io.grafeas.v1.UpgradeOccurrence parseFrom(com.google.protobuf.ByteString data) 395 throws com.google.protobuf.InvalidProtocolBufferException { 396 return PARSER.parseFrom(data); 397 } 398 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)399 public static io.grafeas.v1.UpgradeOccurrence parseFrom( 400 com.google.protobuf.ByteString data, 401 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 402 throws com.google.protobuf.InvalidProtocolBufferException { 403 return PARSER.parseFrom(data, extensionRegistry); 404 } 405 parseFrom(byte[] data)406 public static io.grafeas.v1.UpgradeOccurrence parseFrom(byte[] data) 407 throws com.google.protobuf.InvalidProtocolBufferException { 408 return PARSER.parseFrom(data); 409 } 410 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)411 public static io.grafeas.v1.UpgradeOccurrence parseFrom( 412 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 413 throws com.google.protobuf.InvalidProtocolBufferException { 414 return PARSER.parseFrom(data, extensionRegistry); 415 } 416 parseFrom(java.io.InputStream input)417 public static io.grafeas.v1.UpgradeOccurrence parseFrom(java.io.InputStream input) 418 throws java.io.IOException { 419 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 420 } 421 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)422 public static io.grafeas.v1.UpgradeOccurrence parseFrom( 423 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 424 throws java.io.IOException { 425 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 426 PARSER, input, extensionRegistry); 427 } 428 parseDelimitedFrom(java.io.InputStream input)429 public static io.grafeas.v1.UpgradeOccurrence parseDelimitedFrom(java.io.InputStream input) 430 throws java.io.IOException { 431 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 432 } 433 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)434 public static io.grafeas.v1.UpgradeOccurrence parseDelimitedFrom( 435 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 436 throws java.io.IOException { 437 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 438 PARSER, input, extensionRegistry); 439 } 440 parseFrom( com.google.protobuf.CodedInputStream input)441 public static io.grafeas.v1.UpgradeOccurrence parseFrom( 442 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 443 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 444 } 445 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)446 public static io.grafeas.v1.UpgradeOccurrence parseFrom( 447 com.google.protobuf.CodedInputStream input, 448 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 449 throws java.io.IOException { 450 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 451 PARSER, input, extensionRegistry); 452 } 453 454 @java.lang.Override newBuilderForType()455 public Builder newBuilderForType() { 456 return newBuilder(); 457 } 458 newBuilder()459 public static Builder newBuilder() { 460 return DEFAULT_INSTANCE.toBuilder(); 461 } 462 newBuilder(io.grafeas.v1.UpgradeOccurrence prototype)463 public static Builder newBuilder(io.grafeas.v1.UpgradeOccurrence prototype) { 464 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 465 } 466 467 @java.lang.Override toBuilder()468 public Builder toBuilder() { 469 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 470 } 471 472 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)473 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 474 Builder builder = new Builder(parent); 475 return builder; 476 } 477 /** 478 * 479 * 480 * <pre> 481 * An Upgrade Occurrence represents that a specific resource_url could install a 482 * specific upgrade. This presence is supplied via local sources (i.e. it is 483 * present in the mirror and the running system has noticed its availability). 484 * For Windows, both distribution and windows_update contain information for the 485 * Windows update. 486 * </pre> 487 * 488 * Protobuf type {@code grafeas.v1.UpgradeOccurrence} 489 */ 490 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 491 implements 492 // @@protoc_insertion_point(builder_implements:grafeas.v1.UpgradeOccurrence) 493 io.grafeas.v1.UpgradeOccurrenceOrBuilder { getDescriptor()494 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 495 return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_UpgradeOccurrence_descriptor; 496 } 497 498 @java.lang.Override 499 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()500 internalGetFieldAccessorTable() { 501 return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_UpgradeOccurrence_fieldAccessorTable 502 .ensureFieldAccessorsInitialized( 503 io.grafeas.v1.UpgradeOccurrence.class, io.grafeas.v1.UpgradeOccurrence.Builder.class); 504 } 505 506 // Construct using io.grafeas.v1.UpgradeOccurrence.newBuilder() Builder()507 private Builder() {} 508 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)509 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 510 super(parent); 511 } 512 513 @java.lang.Override clear()514 public Builder clear() { 515 super.clear(); 516 bitField0_ = 0; 517 package_ = ""; 518 parsedVersion_ = null; 519 if (parsedVersionBuilder_ != null) { 520 parsedVersionBuilder_.dispose(); 521 parsedVersionBuilder_ = null; 522 } 523 distribution_ = null; 524 if (distributionBuilder_ != null) { 525 distributionBuilder_.dispose(); 526 distributionBuilder_ = null; 527 } 528 windowsUpdate_ = null; 529 if (windowsUpdateBuilder_ != null) { 530 windowsUpdateBuilder_.dispose(); 531 windowsUpdateBuilder_ = null; 532 } 533 return this; 534 } 535 536 @java.lang.Override getDescriptorForType()537 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 538 return io.grafeas.v1.Upgrade.internal_static_grafeas_v1_UpgradeOccurrence_descriptor; 539 } 540 541 @java.lang.Override getDefaultInstanceForType()542 public io.grafeas.v1.UpgradeOccurrence getDefaultInstanceForType() { 543 return io.grafeas.v1.UpgradeOccurrence.getDefaultInstance(); 544 } 545 546 @java.lang.Override build()547 public io.grafeas.v1.UpgradeOccurrence build() { 548 io.grafeas.v1.UpgradeOccurrence result = buildPartial(); 549 if (!result.isInitialized()) { 550 throw newUninitializedMessageException(result); 551 } 552 return result; 553 } 554 555 @java.lang.Override buildPartial()556 public io.grafeas.v1.UpgradeOccurrence buildPartial() { 557 io.grafeas.v1.UpgradeOccurrence result = new io.grafeas.v1.UpgradeOccurrence(this); 558 if (bitField0_ != 0) { 559 buildPartial0(result); 560 } 561 onBuilt(); 562 return result; 563 } 564 buildPartial0(io.grafeas.v1.UpgradeOccurrence result)565 private void buildPartial0(io.grafeas.v1.UpgradeOccurrence result) { 566 int from_bitField0_ = bitField0_; 567 if (((from_bitField0_ & 0x00000001) != 0)) { 568 result.package_ = package_; 569 } 570 if (((from_bitField0_ & 0x00000002) != 0)) { 571 result.parsedVersion_ = 572 parsedVersionBuilder_ == null ? parsedVersion_ : parsedVersionBuilder_.build(); 573 } 574 if (((from_bitField0_ & 0x00000004) != 0)) { 575 result.distribution_ = 576 distributionBuilder_ == null ? distribution_ : distributionBuilder_.build(); 577 } 578 if (((from_bitField0_ & 0x00000008) != 0)) { 579 result.windowsUpdate_ = 580 windowsUpdateBuilder_ == null ? windowsUpdate_ : windowsUpdateBuilder_.build(); 581 } 582 } 583 584 @java.lang.Override clone()585 public Builder clone() { 586 return super.clone(); 587 } 588 589 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)590 public Builder setField( 591 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 592 return super.setField(field, value); 593 } 594 595 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)596 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 597 return super.clearField(field); 598 } 599 600 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)601 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 602 return super.clearOneof(oneof); 603 } 604 605 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)606 public Builder setRepeatedField( 607 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 608 return super.setRepeatedField(field, index, value); 609 } 610 611 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)612 public Builder addRepeatedField( 613 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 614 return super.addRepeatedField(field, value); 615 } 616 617 @java.lang.Override mergeFrom(com.google.protobuf.Message other)618 public Builder mergeFrom(com.google.protobuf.Message other) { 619 if (other instanceof io.grafeas.v1.UpgradeOccurrence) { 620 return mergeFrom((io.grafeas.v1.UpgradeOccurrence) other); 621 } else { 622 super.mergeFrom(other); 623 return this; 624 } 625 } 626 mergeFrom(io.grafeas.v1.UpgradeOccurrence other)627 public Builder mergeFrom(io.grafeas.v1.UpgradeOccurrence other) { 628 if (other == io.grafeas.v1.UpgradeOccurrence.getDefaultInstance()) return this; 629 if (!other.getPackage().isEmpty()) { 630 package_ = other.package_; 631 bitField0_ |= 0x00000001; 632 onChanged(); 633 } 634 if (other.hasParsedVersion()) { 635 mergeParsedVersion(other.getParsedVersion()); 636 } 637 if (other.hasDistribution()) { 638 mergeDistribution(other.getDistribution()); 639 } 640 if (other.hasWindowsUpdate()) { 641 mergeWindowsUpdate(other.getWindowsUpdate()); 642 } 643 this.mergeUnknownFields(other.getUnknownFields()); 644 onChanged(); 645 return this; 646 } 647 648 @java.lang.Override isInitialized()649 public final boolean isInitialized() { 650 return true; 651 } 652 653 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)654 public Builder mergeFrom( 655 com.google.protobuf.CodedInputStream input, 656 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 657 throws java.io.IOException { 658 if (extensionRegistry == null) { 659 throw new java.lang.NullPointerException(); 660 } 661 try { 662 boolean done = false; 663 while (!done) { 664 int tag = input.readTag(); 665 switch (tag) { 666 case 0: 667 done = true; 668 break; 669 case 10: 670 { 671 package_ = input.readStringRequireUtf8(); 672 bitField0_ |= 0x00000001; 673 break; 674 } // case 10 675 case 26: 676 { 677 input.readMessage(getParsedVersionFieldBuilder().getBuilder(), extensionRegistry); 678 bitField0_ |= 0x00000002; 679 break; 680 } // case 26 681 case 34: 682 { 683 input.readMessage(getDistributionFieldBuilder().getBuilder(), extensionRegistry); 684 bitField0_ |= 0x00000004; 685 break; 686 } // case 34 687 case 42: 688 { 689 input.readMessage(getWindowsUpdateFieldBuilder().getBuilder(), extensionRegistry); 690 bitField0_ |= 0x00000008; 691 break; 692 } // case 42 693 default: 694 { 695 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 696 done = true; // was an endgroup tag 697 } 698 break; 699 } // default: 700 } // switch (tag) 701 } // while (!done) 702 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 703 throw e.unwrapIOException(); 704 } finally { 705 onChanged(); 706 } // finally 707 return this; 708 } 709 710 private int bitField0_; 711 712 private java.lang.Object package_ = ""; 713 /** 714 * 715 * 716 * <pre> 717 * Required for non-Windows OS. The package this Upgrade is for. 718 * </pre> 719 * 720 * <code>string package = 1;</code> 721 * 722 * @return The package. 723 */ getPackage()724 public java.lang.String getPackage() { 725 java.lang.Object ref = package_; 726 if (!(ref instanceof java.lang.String)) { 727 com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; 728 java.lang.String s = bs.toStringUtf8(); 729 package_ = s; 730 return s; 731 } else { 732 return (java.lang.String) ref; 733 } 734 } 735 /** 736 * 737 * 738 * <pre> 739 * Required for non-Windows OS. The package this Upgrade is for. 740 * </pre> 741 * 742 * <code>string package = 1;</code> 743 * 744 * @return The bytes for package. 745 */ getPackageBytes()746 public com.google.protobuf.ByteString getPackageBytes() { 747 java.lang.Object ref = package_; 748 if (ref instanceof String) { 749 com.google.protobuf.ByteString b = 750 com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); 751 package_ = b; 752 return b; 753 } else { 754 return (com.google.protobuf.ByteString) ref; 755 } 756 } 757 /** 758 * 759 * 760 * <pre> 761 * Required for non-Windows OS. The package this Upgrade is for. 762 * </pre> 763 * 764 * <code>string package = 1;</code> 765 * 766 * @param value The package to set. 767 * @return This builder for chaining. 768 */ setPackage(java.lang.String value)769 public Builder setPackage(java.lang.String value) { 770 if (value == null) { 771 throw new NullPointerException(); 772 } 773 package_ = value; 774 bitField0_ |= 0x00000001; 775 onChanged(); 776 return this; 777 } 778 /** 779 * 780 * 781 * <pre> 782 * Required for non-Windows OS. The package this Upgrade is for. 783 * </pre> 784 * 785 * <code>string package = 1;</code> 786 * 787 * @return This builder for chaining. 788 */ clearPackage()789 public Builder clearPackage() { 790 package_ = getDefaultInstance().getPackage(); 791 bitField0_ = (bitField0_ & ~0x00000001); 792 onChanged(); 793 return this; 794 } 795 /** 796 * 797 * 798 * <pre> 799 * Required for non-Windows OS. The package this Upgrade is for. 800 * </pre> 801 * 802 * <code>string package = 1;</code> 803 * 804 * @param value The bytes for package to set. 805 * @return This builder for chaining. 806 */ setPackageBytes(com.google.protobuf.ByteString value)807 public Builder setPackageBytes(com.google.protobuf.ByteString value) { 808 if (value == null) { 809 throw new NullPointerException(); 810 } 811 checkByteStringIsUtf8(value); 812 package_ = value; 813 bitField0_ |= 0x00000001; 814 onChanged(); 815 return this; 816 } 817 818 private io.grafeas.v1.Version parsedVersion_; 819 private com.google.protobuf.SingleFieldBuilderV3< 820 io.grafeas.v1.Version, io.grafeas.v1.Version.Builder, io.grafeas.v1.VersionOrBuilder> 821 parsedVersionBuilder_; 822 /** 823 * 824 * 825 * <pre> 826 * Required for non-Windows OS. The version of the package in a machine + 827 * human readable form. 828 * </pre> 829 * 830 * <code>.grafeas.v1.Version parsed_version = 3;</code> 831 * 832 * @return Whether the parsedVersion field is set. 833 */ hasParsedVersion()834 public boolean hasParsedVersion() { 835 return ((bitField0_ & 0x00000002) != 0); 836 } 837 /** 838 * 839 * 840 * <pre> 841 * Required for non-Windows OS. The version of the package in a machine + 842 * human readable form. 843 * </pre> 844 * 845 * <code>.grafeas.v1.Version parsed_version = 3;</code> 846 * 847 * @return The parsedVersion. 848 */ getParsedVersion()849 public io.grafeas.v1.Version getParsedVersion() { 850 if (parsedVersionBuilder_ == null) { 851 return parsedVersion_ == null ? io.grafeas.v1.Version.getDefaultInstance() : parsedVersion_; 852 } else { 853 return parsedVersionBuilder_.getMessage(); 854 } 855 } 856 /** 857 * 858 * 859 * <pre> 860 * Required for non-Windows OS. The version of the package in a machine + 861 * human readable form. 862 * </pre> 863 * 864 * <code>.grafeas.v1.Version parsed_version = 3;</code> 865 */ setParsedVersion(io.grafeas.v1.Version value)866 public Builder setParsedVersion(io.grafeas.v1.Version value) { 867 if (parsedVersionBuilder_ == null) { 868 if (value == null) { 869 throw new NullPointerException(); 870 } 871 parsedVersion_ = value; 872 } else { 873 parsedVersionBuilder_.setMessage(value); 874 } 875 bitField0_ |= 0x00000002; 876 onChanged(); 877 return this; 878 } 879 /** 880 * 881 * 882 * <pre> 883 * Required for non-Windows OS. The version of the package in a machine + 884 * human readable form. 885 * </pre> 886 * 887 * <code>.grafeas.v1.Version parsed_version = 3;</code> 888 */ setParsedVersion(io.grafeas.v1.Version.Builder builderForValue)889 public Builder setParsedVersion(io.grafeas.v1.Version.Builder builderForValue) { 890 if (parsedVersionBuilder_ == null) { 891 parsedVersion_ = builderForValue.build(); 892 } else { 893 parsedVersionBuilder_.setMessage(builderForValue.build()); 894 } 895 bitField0_ |= 0x00000002; 896 onChanged(); 897 return this; 898 } 899 /** 900 * 901 * 902 * <pre> 903 * Required for non-Windows OS. The version of the package in a machine + 904 * human readable form. 905 * </pre> 906 * 907 * <code>.grafeas.v1.Version parsed_version = 3;</code> 908 */ mergeParsedVersion(io.grafeas.v1.Version value)909 public Builder mergeParsedVersion(io.grafeas.v1.Version value) { 910 if (parsedVersionBuilder_ == null) { 911 if (((bitField0_ & 0x00000002) != 0) 912 && parsedVersion_ != null 913 && parsedVersion_ != io.grafeas.v1.Version.getDefaultInstance()) { 914 getParsedVersionBuilder().mergeFrom(value); 915 } else { 916 parsedVersion_ = value; 917 } 918 } else { 919 parsedVersionBuilder_.mergeFrom(value); 920 } 921 bitField0_ |= 0x00000002; 922 onChanged(); 923 return this; 924 } 925 /** 926 * 927 * 928 * <pre> 929 * Required for non-Windows OS. The version of the package in a machine + 930 * human readable form. 931 * </pre> 932 * 933 * <code>.grafeas.v1.Version parsed_version = 3;</code> 934 */ clearParsedVersion()935 public Builder clearParsedVersion() { 936 bitField0_ = (bitField0_ & ~0x00000002); 937 parsedVersion_ = null; 938 if (parsedVersionBuilder_ != null) { 939 parsedVersionBuilder_.dispose(); 940 parsedVersionBuilder_ = null; 941 } 942 onChanged(); 943 return this; 944 } 945 /** 946 * 947 * 948 * <pre> 949 * Required for non-Windows OS. The version of the package in a machine + 950 * human readable form. 951 * </pre> 952 * 953 * <code>.grafeas.v1.Version parsed_version = 3;</code> 954 */ getParsedVersionBuilder()955 public io.grafeas.v1.Version.Builder getParsedVersionBuilder() { 956 bitField0_ |= 0x00000002; 957 onChanged(); 958 return getParsedVersionFieldBuilder().getBuilder(); 959 } 960 /** 961 * 962 * 963 * <pre> 964 * Required for non-Windows OS. The version of the package in a machine + 965 * human readable form. 966 * </pre> 967 * 968 * <code>.grafeas.v1.Version parsed_version = 3;</code> 969 */ getParsedVersionOrBuilder()970 public io.grafeas.v1.VersionOrBuilder getParsedVersionOrBuilder() { 971 if (parsedVersionBuilder_ != null) { 972 return parsedVersionBuilder_.getMessageOrBuilder(); 973 } else { 974 return parsedVersion_ == null ? io.grafeas.v1.Version.getDefaultInstance() : parsedVersion_; 975 } 976 } 977 /** 978 * 979 * 980 * <pre> 981 * Required for non-Windows OS. The version of the package in a machine + 982 * human readable form. 983 * </pre> 984 * 985 * <code>.grafeas.v1.Version parsed_version = 3;</code> 986 */ 987 private com.google.protobuf.SingleFieldBuilderV3< 988 io.grafeas.v1.Version, io.grafeas.v1.Version.Builder, io.grafeas.v1.VersionOrBuilder> getParsedVersionFieldBuilder()989 getParsedVersionFieldBuilder() { 990 if (parsedVersionBuilder_ == null) { 991 parsedVersionBuilder_ = 992 new com.google.protobuf.SingleFieldBuilderV3< 993 io.grafeas.v1.Version, 994 io.grafeas.v1.Version.Builder, 995 io.grafeas.v1.VersionOrBuilder>( 996 getParsedVersion(), getParentForChildren(), isClean()); 997 parsedVersion_ = null; 998 } 999 return parsedVersionBuilder_; 1000 } 1001 1002 private io.grafeas.v1.UpgradeDistribution distribution_; 1003 private com.google.protobuf.SingleFieldBuilderV3< 1004 io.grafeas.v1.UpgradeDistribution, 1005 io.grafeas.v1.UpgradeDistribution.Builder, 1006 io.grafeas.v1.UpgradeDistributionOrBuilder> 1007 distributionBuilder_; 1008 /** 1009 * 1010 * 1011 * <pre> 1012 * Metadata about the upgrade for available for the specific operating system 1013 * for the resource_url. This allows efficient filtering, as well as 1014 * making it easier to use the occurrence. 1015 * </pre> 1016 * 1017 * <code>.grafeas.v1.UpgradeDistribution distribution = 4;</code> 1018 * 1019 * @return Whether the distribution field is set. 1020 */ hasDistribution()1021 public boolean hasDistribution() { 1022 return ((bitField0_ & 0x00000004) != 0); 1023 } 1024 /** 1025 * 1026 * 1027 * <pre> 1028 * Metadata about the upgrade for available for the specific operating system 1029 * for the resource_url. This allows efficient filtering, as well as 1030 * making it easier to use the occurrence. 1031 * </pre> 1032 * 1033 * <code>.grafeas.v1.UpgradeDistribution distribution = 4;</code> 1034 * 1035 * @return The distribution. 1036 */ getDistribution()1037 public io.grafeas.v1.UpgradeDistribution getDistribution() { 1038 if (distributionBuilder_ == null) { 1039 return distribution_ == null 1040 ? io.grafeas.v1.UpgradeDistribution.getDefaultInstance() 1041 : distribution_; 1042 } else { 1043 return distributionBuilder_.getMessage(); 1044 } 1045 } 1046 /** 1047 * 1048 * 1049 * <pre> 1050 * Metadata about the upgrade for available for the specific operating system 1051 * for the resource_url. This allows efficient filtering, as well as 1052 * making it easier to use the occurrence. 1053 * </pre> 1054 * 1055 * <code>.grafeas.v1.UpgradeDistribution distribution = 4;</code> 1056 */ setDistribution(io.grafeas.v1.UpgradeDistribution value)1057 public Builder setDistribution(io.grafeas.v1.UpgradeDistribution value) { 1058 if (distributionBuilder_ == null) { 1059 if (value == null) { 1060 throw new NullPointerException(); 1061 } 1062 distribution_ = value; 1063 } else { 1064 distributionBuilder_.setMessage(value); 1065 } 1066 bitField0_ |= 0x00000004; 1067 onChanged(); 1068 return this; 1069 } 1070 /** 1071 * 1072 * 1073 * <pre> 1074 * Metadata about the upgrade for available for the specific operating system 1075 * for the resource_url. This allows efficient filtering, as well as 1076 * making it easier to use the occurrence. 1077 * </pre> 1078 * 1079 * <code>.grafeas.v1.UpgradeDistribution distribution = 4;</code> 1080 */ setDistribution(io.grafeas.v1.UpgradeDistribution.Builder builderForValue)1081 public Builder setDistribution(io.grafeas.v1.UpgradeDistribution.Builder builderForValue) { 1082 if (distributionBuilder_ == null) { 1083 distribution_ = builderForValue.build(); 1084 } else { 1085 distributionBuilder_.setMessage(builderForValue.build()); 1086 } 1087 bitField0_ |= 0x00000004; 1088 onChanged(); 1089 return this; 1090 } 1091 /** 1092 * 1093 * 1094 * <pre> 1095 * Metadata about the upgrade for available for the specific operating system 1096 * for the resource_url. This allows efficient filtering, as well as 1097 * making it easier to use the occurrence. 1098 * </pre> 1099 * 1100 * <code>.grafeas.v1.UpgradeDistribution distribution = 4;</code> 1101 */ mergeDistribution(io.grafeas.v1.UpgradeDistribution value)1102 public Builder mergeDistribution(io.grafeas.v1.UpgradeDistribution value) { 1103 if (distributionBuilder_ == null) { 1104 if (((bitField0_ & 0x00000004) != 0) 1105 && distribution_ != null 1106 && distribution_ != io.grafeas.v1.UpgradeDistribution.getDefaultInstance()) { 1107 getDistributionBuilder().mergeFrom(value); 1108 } else { 1109 distribution_ = value; 1110 } 1111 } else { 1112 distributionBuilder_.mergeFrom(value); 1113 } 1114 bitField0_ |= 0x00000004; 1115 onChanged(); 1116 return this; 1117 } 1118 /** 1119 * 1120 * 1121 * <pre> 1122 * Metadata about the upgrade for available for the specific operating system 1123 * for the resource_url. This allows efficient filtering, as well as 1124 * making it easier to use the occurrence. 1125 * </pre> 1126 * 1127 * <code>.grafeas.v1.UpgradeDistribution distribution = 4;</code> 1128 */ clearDistribution()1129 public Builder clearDistribution() { 1130 bitField0_ = (bitField0_ & ~0x00000004); 1131 distribution_ = null; 1132 if (distributionBuilder_ != null) { 1133 distributionBuilder_.dispose(); 1134 distributionBuilder_ = null; 1135 } 1136 onChanged(); 1137 return this; 1138 } 1139 /** 1140 * 1141 * 1142 * <pre> 1143 * Metadata about the upgrade for available for the specific operating system 1144 * for the resource_url. This allows efficient filtering, as well as 1145 * making it easier to use the occurrence. 1146 * </pre> 1147 * 1148 * <code>.grafeas.v1.UpgradeDistribution distribution = 4;</code> 1149 */ getDistributionBuilder()1150 public io.grafeas.v1.UpgradeDistribution.Builder getDistributionBuilder() { 1151 bitField0_ |= 0x00000004; 1152 onChanged(); 1153 return getDistributionFieldBuilder().getBuilder(); 1154 } 1155 /** 1156 * 1157 * 1158 * <pre> 1159 * Metadata about the upgrade for available for the specific operating system 1160 * for the resource_url. This allows efficient filtering, as well as 1161 * making it easier to use the occurrence. 1162 * </pre> 1163 * 1164 * <code>.grafeas.v1.UpgradeDistribution distribution = 4;</code> 1165 */ getDistributionOrBuilder()1166 public io.grafeas.v1.UpgradeDistributionOrBuilder getDistributionOrBuilder() { 1167 if (distributionBuilder_ != null) { 1168 return distributionBuilder_.getMessageOrBuilder(); 1169 } else { 1170 return distribution_ == null 1171 ? io.grafeas.v1.UpgradeDistribution.getDefaultInstance() 1172 : distribution_; 1173 } 1174 } 1175 /** 1176 * 1177 * 1178 * <pre> 1179 * Metadata about the upgrade for available for the specific operating system 1180 * for the resource_url. This allows efficient filtering, as well as 1181 * making it easier to use the occurrence. 1182 * </pre> 1183 * 1184 * <code>.grafeas.v1.UpgradeDistribution distribution = 4;</code> 1185 */ 1186 private com.google.protobuf.SingleFieldBuilderV3< 1187 io.grafeas.v1.UpgradeDistribution, 1188 io.grafeas.v1.UpgradeDistribution.Builder, 1189 io.grafeas.v1.UpgradeDistributionOrBuilder> getDistributionFieldBuilder()1190 getDistributionFieldBuilder() { 1191 if (distributionBuilder_ == null) { 1192 distributionBuilder_ = 1193 new com.google.protobuf.SingleFieldBuilderV3< 1194 io.grafeas.v1.UpgradeDistribution, 1195 io.grafeas.v1.UpgradeDistribution.Builder, 1196 io.grafeas.v1.UpgradeDistributionOrBuilder>( 1197 getDistribution(), getParentForChildren(), isClean()); 1198 distribution_ = null; 1199 } 1200 return distributionBuilder_; 1201 } 1202 1203 private io.grafeas.v1.WindowsUpdate windowsUpdate_; 1204 private com.google.protobuf.SingleFieldBuilderV3< 1205 io.grafeas.v1.WindowsUpdate, 1206 io.grafeas.v1.WindowsUpdate.Builder, 1207 io.grafeas.v1.WindowsUpdateOrBuilder> 1208 windowsUpdateBuilder_; 1209 /** 1210 * 1211 * 1212 * <pre> 1213 * Required for Windows OS. Represents the metadata about the Windows update. 1214 * </pre> 1215 * 1216 * <code>.grafeas.v1.WindowsUpdate windows_update = 5;</code> 1217 * 1218 * @return Whether the windowsUpdate field is set. 1219 */ hasWindowsUpdate()1220 public boolean hasWindowsUpdate() { 1221 return ((bitField0_ & 0x00000008) != 0); 1222 } 1223 /** 1224 * 1225 * 1226 * <pre> 1227 * Required for Windows OS. Represents the metadata about the Windows update. 1228 * </pre> 1229 * 1230 * <code>.grafeas.v1.WindowsUpdate windows_update = 5;</code> 1231 * 1232 * @return The windowsUpdate. 1233 */ getWindowsUpdate()1234 public io.grafeas.v1.WindowsUpdate getWindowsUpdate() { 1235 if (windowsUpdateBuilder_ == null) { 1236 return windowsUpdate_ == null 1237 ? io.grafeas.v1.WindowsUpdate.getDefaultInstance() 1238 : windowsUpdate_; 1239 } else { 1240 return windowsUpdateBuilder_.getMessage(); 1241 } 1242 } 1243 /** 1244 * 1245 * 1246 * <pre> 1247 * Required for Windows OS. Represents the metadata about the Windows update. 1248 * </pre> 1249 * 1250 * <code>.grafeas.v1.WindowsUpdate windows_update = 5;</code> 1251 */ setWindowsUpdate(io.grafeas.v1.WindowsUpdate value)1252 public Builder setWindowsUpdate(io.grafeas.v1.WindowsUpdate value) { 1253 if (windowsUpdateBuilder_ == null) { 1254 if (value == null) { 1255 throw new NullPointerException(); 1256 } 1257 windowsUpdate_ = value; 1258 } else { 1259 windowsUpdateBuilder_.setMessage(value); 1260 } 1261 bitField0_ |= 0x00000008; 1262 onChanged(); 1263 return this; 1264 } 1265 /** 1266 * 1267 * 1268 * <pre> 1269 * Required for Windows OS. Represents the metadata about the Windows update. 1270 * </pre> 1271 * 1272 * <code>.grafeas.v1.WindowsUpdate windows_update = 5;</code> 1273 */ setWindowsUpdate(io.grafeas.v1.WindowsUpdate.Builder builderForValue)1274 public Builder setWindowsUpdate(io.grafeas.v1.WindowsUpdate.Builder builderForValue) { 1275 if (windowsUpdateBuilder_ == null) { 1276 windowsUpdate_ = builderForValue.build(); 1277 } else { 1278 windowsUpdateBuilder_.setMessage(builderForValue.build()); 1279 } 1280 bitField0_ |= 0x00000008; 1281 onChanged(); 1282 return this; 1283 } 1284 /** 1285 * 1286 * 1287 * <pre> 1288 * Required for Windows OS. Represents the metadata about the Windows update. 1289 * </pre> 1290 * 1291 * <code>.grafeas.v1.WindowsUpdate windows_update = 5;</code> 1292 */ mergeWindowsUpdate(io.grafeas.v1.WindowsUpdate value)1293 public Builder mergeWindowsUpdate(io.grafeas.v1.WindowsUpdate value) { 1294 if (windowsUpdateBuilder_ == null) { 1295 if (((bitField0_ & 0x00000008) != 0) 1296 && windowsUpdate_ != null 1297 && windowsUpdate_ != io.grafeas.v1.WindowsUpdate.getDefaultInstance()) { 1298 getWindowsUpdateBuilder().mergeFrom(value); 1299 } else { 1300 windowsUpdate_ = value; 1301 } 1302 } else { 1303 windowsUpdateBuilder_.mergeFrom(value); 1304 } 1305 bitField0_ |= 0x00000008; 1306 onChanged(); 1307 return this; 1308 } 1309 /** 1310 * 1311 * 1312 * <pre> 1313 * Required for Windows OS. Represents the metadata about the Windows update. 1314 * </pre> 1315 * 1316 * <code>.grafeas.v1.WindowsUpdate windows_update = 5;</code> 1317 */ clearWindowsUpdate()1318 public Builder clearWindowsUpdate() { 1319 bitField0_ = (bitField0_ & ~0x00000008); 1320 windowsUpdate_ = null; 1321 if (windowsUpdateBuilder_ != null) { 1322 windowsUpdateBuilder_.dispose(); 1323 windowsUpdateBuilder_ = null; 1324 } 1325 onChanged(); 1326 return this; 1327 } 1328 /** 1329 * 1330 * 1331 * <pre> 1332 * Required for Windows OS. Represents the metadata about the Windows update. 1333 * </pre> 1334 * 1335 * <code>.grafeas.v1.WindowsUpdate windows_update = 5;</code> 1336 */ getWindowsUpdateBuilder()1337 public io.grafeas.v1.WindowsUpdate.Builder getWindowsUpdateBuilder() { 1338 bitField0_ |= 0x00000008; 1339 onChanged(); 1340 return getWindowsUpdateFieldBuilder().getBuilder(); 1341 } 1342 /** 1343 * 1344 * 1345 * <pre> 1346 * Required for Windows OS. Represents the metadata about the Windows update. 1347 * </pre> 1348 * 1349 * <code>.grafeas.v1.WindowsUpdate windows_update = 5;</code> 1350 */ getWindowsUpdateOrBuilder()1351 public io.grafeas.v1.WindowsUpdateOrBuilder getWindowsUpdateOrBuilder() { 1352 if (windowsUpdateBuilder_ != null) { 1353 return windowsUpdateBuilder_.getMessageOrBuilder(); 1354 } else { 1355 return windowsUpdate_ == null 1356 ? io.grafeas.v1.WindowsUpdate.getDefaultInstance() 1357 : windowsUpdate_; 1358 } 1359 } 1360 /** 1361 * 1362 * 1363 * <pre> 1364 * Required for Windows OS. Represents the metadata about the Windows update. 1365 * </pre> 1366 * 1367 * <code>.grafeas.v1.WindowsUpdate windows_update = 5;</code> 1368 */ 1369 private com.google.protobuf.SingleFieldBuilderV3< 1370 io.grafeas.v1.WindowsUpdate, 1371 io.grafeas.v1.WindowsUpdate.Builder, 1372 io.grafeas.v1.WindowsUpdateOrBuilder> getWindowsUpdateFieldBuilder()1373 getWindowsUpdateFieldBuilder() { 1374 if (windowsUpdateBuilder_ == null) { 1375 windowsUpdateBuilder_ = 1376 new com.google.protobuf.SingleFieldBuilderV3< 1377 io.grafeas.v1.WindowsUpdate, 1378 io.grafeas.v1.WindowsUpdate.Builder, 1379 io.grafeas.v1.WindowsUpdateOrBuilder>( 1380 getWindowsUpdate(), getParentForChildren(), isClean()); 1381 windowsUpdate_ = null; 1382 } 1383 return windowsUpdateBuilder_; 1384 } 1385 1386 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1387 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 1388 return super.setUnknownFields(unknownFields); 1389 } 1390 1391 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1392 public final Builder mergeUnknownFields( 1393 final com.google.protobuf.UnknownFieldSet unknownFields) { 1394 return super.mergeUnknownFields(unknownFields); 1395 } 1396 1397 // @@protoc_insertion_point(builder_scope:grafeas.v1.UpgradeOccurrence) 1398 } 1399 1400 // @@protoc_insertion_point(class_scope:grafeas.v1.UpgradeOccurrence) 1401 private static final io.grafeas.v1.UpgradeOccurrence DEFAULT_INSTANCE; 1402 1403 static { 1404 DEFAULT_INSTANCE = new io.grafeas.v1.UpgradeOccurrence(); 1405 } 1406 getDefaultInstance()1407 public static io.grafeas.v1.UpgradeOccurrence getDefaultInstance() { 1408 return DEFAULT_INSTANCE; 1409 } 1410 1411 private static final com.google.protobuf.Parser<UpgradeOccurrence> PARSER = 1412 new com.google.protobuf.AbstractParser<UpgradeOccurrence>() { 1413 @java.lang.Override 1414 public UpgradeOccurrence parsePartialFrom( 1415 com.google.protobuf.CodedInputStream input, 1416 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1417 throws com.google.protobuf.InvalidProtocolBufferException { 1418 Builder builder = newBuilder(); 1419 try { 1420 builder.mergeFrom(input, extensionRegistry); 1421 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1422 throw e.setUnfinishedMessage(builder.buildPartial()); 1423 } catch (com.google.protobuf.UninitializedMessageException e) { 1424 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1425 } catch (java.io.IOException e) { 1426 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1427 .setUnfinishedMessage(builder.buildPartial()); 1428 } 1429 return builder.buildPartial(); 1430 } 1431 }; 1432 parser()1433 public static com.google.protobuf.Parser<UpgradeOccurrence> parser() { 1434 return PARSER; 1435 } 1436 1437 @java.lang.Override getParserForType()1438 public com.google.protobuf.Parser<UpgradeOccurrence> getParserForType() { 1439 return PARSER; 1440 } 1441 1442 @java.lang.Override getDefaultInstanceForType()1443 public io.grafeas.v1.UpgradeOccurrence getDefaultInstanceForType() { 1444 return DEFAULT_INSTANCE; 1445 } 1446 } 1447