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/cvss.proto 19 20 package io.grafeas.v1; 21 22 /** 23 * 24 * 25 * <pre> 26 * Common Vulnerability Scoring System. 27 * For details, see https://www.first.org/cvss/specification-document 28 * This is a message we will try to use for storing various versions of CVSS 29 * rather than making a separate proto for storing a specific version. 30 * </pre> 31 * 32 * Protobuf type {@code grafeas.v1.CVSS} 33 */ 34 public final class CVSS extends com.google.protobuf.GeneratedMessageV3 35 implements 36 // @@protoc_insertion_point(message_implements:grafeas.v1.CVSS) 37 CVSSOrBuilder { 38 private static final long serialVersionUID = 0L; 39 // Use CVSS.newBuilder() to construct. CVSS(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)40 private CVSS(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 41 super(builder); 42 } 43 CVSS()44 private CVSS() { 45 attackVector_ = 0; 46 attackComplexity_ = 0; 47 authentication_ = 0; 48 privilegesRequired_ = 0; 49 userInteraction_ = 0; 50 scope_ = 0; 51 confidentialityImpact_ = 0; 52 integrityImpact_ = 0; 53 availabilityImpact_ = 0; 54 } 55 56 @java.lang.Override 57 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)58 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 59 return new CVSS(); 60 } 61 62 @java.lang.Override getUnknownFields()63 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 64 return this.unknownFields; 65 } 66 getDescriptor()67 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 68 return io.grafeas.v1.CVSSProto.internal_static_grafeas_v1_CVSS_descriptor; 69 } 70 71 @java.lang.Override 72 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()73 internalGetFieldAccessorTable() { 74 return io.grafeas.v1.CVSSProto.internal_static_grafeas_v1_CVSS_fieldAccessorTable 75 .ensureFieldAccessorsInitialized( 76 io.grafeas.v1.CVSS.class, io.grafeas.v1.CVSS.Builder.class); 77 } 78 79 /** Protobuf enum {@code grafeas.v1.CVSS.AttackVector} */ 80 public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { 81 /** <code>ATTACK_VECTOR_UNSPECIFIED = 0;</code> */ 82 ATTACK_VECTOR_UNSPECIFIED(0), 83 /** <code>ATTACK_VECTOR_NETWORK = 1;</code> */ 84 ATTACK_VECTOR_NETWORK(1), 85 /** <code>ATTACK_VECTOR_ADJACENT = 2;</code> */ 86 ATTACK_VECTOR_ADJACENT(2), 87 /** <code>ATTACK_VECTOR_LOCAL = 3;</code> */ 88 ATTACK_VECTOR_LOCAL(3), 89 /** <code>ATTACK_VECTOR_PHYSICAL = 4;</code> */ 90 ATTACK_VECTOR_PHYSICAL(4), 91 UNRECOGNIZED(-1), 92 ; 93 94 /** <code>ATTACK_VECTOR_UNSPECIFIED = 0;</code> */ 95 public static final int ATTACK_VECTOR_UNSPECIFIED_VALUE = 0; 96 /** <code>ATTACK_VECTOR_NETWORK = 1;</code> */ 97 public static final int ATTACK_VECTOR_NETWORK_VALUE = 1; 98 /** <code>ATTACK_VECTOR_ADJACENT = 2;</code> */ 99 public static final int ATTACK_VECTOR_ADJACENT_VALUE = 2; 100 /** <code>ATTACK_VECTOR_LOCAL = 3;</code> */ 101 public static final int ATTACK_VECTOR_LOCAL_VALUE = 3; 102 /** <code>ATTACK_VECTOR_PHYSICAL = 4;</code> */ 103 public static final int ATTACK_VECTOR_PHYSICAL_VALUE = 4; 104 getNumber()105 public final int getNumber() { 106 if (this == UNRECOGNIZED) { 107 throw new java.lang.IllegalArgumentException( 108 "Can't get the number of an unknown enum value."); 109 } 110 return value; 111 } 112 113 /** 114 * @param value The numeric wire value of the corresponding enum entry. 115 * @return The enum associated with the given numeric wire value. 116 * @deprecated Use {@link #forNumber(int)} instead. 117 */ 118 @java.lang.Deprecated valueOf(int value)119 public static AttackVector valueOf(int value) { 120 return forNumber(value); 121 } 122 123 /** 124 * @param value The numeric wire value of the corresponding enum entry. 125 * @return The enum associated with the given numeric wire value. 126 */ forNumber(int value)127 public static AttackVector forNumber(int value) { 128 switch (value) { 129 case 0: 130 return ATTACK_VECTOR_UNSPECIFIED; 131 case 1: 132 return ATTACK_VECTOR_NETWORK; 133 case 2: 134 return ATTACK_VECTOR_ADJACENT; 135 case 3: 136 return ATTACK_VECTOR_LOCAL; 137 case 4: 138 return ATTACK_VECTOR_PHYSICAL; 139 default: 140 return null; 141 } 142 } 143 internalGetValueMap()144 public static com.google.protobuf.Internal.EnumLiteMap<AttackVector> internalGetValueMap() { 145 return internalValueMap; 146 } 147 148 private static final com.google.protobuf.Internal.EnumLiteMap<AttackVector> internalValueMap = 149 new com.google.protobuf.Internal.EnumLiteMap<AttackVector>() { 150 public AttackVector findValueByNumber(int number) { 151 return AttackVector.forNumber(number); 152 } 153 }; 154 getValueDescriptor()155 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 156 if (this == UNRECOGNIZED) { 157 throw new java.lang.IllegalStateException( 158 "Can't get the descriptor of an unrecognized enum value."); 159 } 160 return getDescriptor().getValues().get(ordinal()); 161 } 162 getDescriptorForType()163 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 164 return getDescriptor(); 165 } 166 getDescriptor()167 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 168 return io.grafeas.v1.CVSS.getDescriptor().getEnumTypes().get(0); 169 } 170 171 private static final AttackVector[] VALUES = values(); 172 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)173 public static AttackVector valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 174 if (desc.getType() != getDescriptor()) { 175 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 176 } 177 if (desc.getIndex() == -1) { 178 return UNRECOGNIZED; 179 } 180 return VALUES[desc.getIndex()]; 181 } 182 183 private final int value; 184 AttackVector(int value)185 private AttackVector(int value) { 186 this.value = value; 187 } 188 189 // @@protoc_insertion_point(enum_scope:grafeas.v1.CVSS.AttackVector) 190 } 191 192 /** Protobuf enum {@code grafeas.v1.CVSS.AttackComplexity} */ 193 public enum AttackComplexity implements com.google.protobuf.ProtocolMessageEnum { 194 /** <code>ATTACK_COMPLEXITY_UNSPECIFIED = 0;</code> */ 195 ATTACK_COMPLEXITY_UNSPECIFIED(0), 196 /** <code>ATTACK_COMPLEXITY_LOW = 1;</code> */ 197 ATTACK_COMPLEXITY_LOW(1), 198 /** <code>ATTACK_COMPLEXITY_HIGH = 2;</code> */ 199 ATTACK_COMPLEXITY_HIGH(2), 200 /** <code>ATTACK_COMPLEXITY_MEDIUM = 3;</code> */ 201 ATTACK_COMPLEXITY_MEDIUM(3), 202 UNRECOGNIZED(-1), 203 ; 204 205 /** <code>ATTACK_COMPLEXITY_UNSPECIFIED = 0;</code> */ 206 public static final int ATTACK_COMPLEXITY_UNSPECIFIED_VALUE = 0; 207 /** <code>ATTACK_COMPLEXITY_LOW = 1;</code> */ 208 public static final int ATTACK_COMPLEXITY_LOW_VALUE = 1; 209 /** <code>ATTACK_COMPLEXITY_HIGH = 2;</code> */ 210 public static final int ATTACK_COMPLEXITY_HIGH_VALUE = 2; 211 /** <code>ATTACK_COMPLEXITY_MEDIUM = 3;</code> */ 212 public static final int ATTACK_COMPLEXITY_MEDIUM_VALUE = 3; 213 getNumber()214 public final int getNumber() { 215 if (this == UNRECOGNIZED) { 216 throw new java.lang.IllegalArgumentException( 217 "Can't get the number of an unknown enum value."); 218 } 219 return value; 220 } 221 222 /** 223 * @param value The numeric wire value of the corresponding enum entry. 224 * @return The enum associated with the given numeric wire value. 225 * @deprecated Use {@link #forNumber(int)} instead. 226 */ 227 @java.lang.Deprecated valueOf(int value)228 public static AttackComplexity valueOf(int value) { 229 return forNumber(value); 230 } 231 232 /** 233 * @param value The numeric wire value of the corresponding enum entry. 234 * @return The enum associated with the given numeric wire value. 235 */ forNumber(int value)236 public static AttackComplexity forNumber(int value) { 237 switch (value) { 238 case 0: 239 return ATTACK_COMPLEXITY_UNSPECIFIED; 240 case 1: 241 return ATTACK_COMPLEXITY_LOW; 242 case 2: 243 return ATTACK_COMPLEXITY_HIGH; 244 case 3: 245 return ATTACK_COMPLEXITY_MEDIUM; 246 default: 247 return null; 248 } 249 } 250 internalGetValueMap()251 public static com.google.protobuf.Internal.EnumLiteMap<AttackComplexity> internalGetValueMap() { 252 return internalValueMap; 253 } 254 255 private static final com.google.protobuf.Internal.EnumLiteMap<AttackComplexity> 256 internalValueMap = 257 new com.google.protobuf.Internal.EnumLiteMap<AttackComplexity>() { 258 public AttackComplexity findValueByNumber(int number) { 259 return AttackComplexity.forNumber(number); 260 } 261 }; 262 getValueDescriptor()263 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 264 if (this == UNRECOGNIZED) { 265 throw new java.lang.IllegalStateException( 266 "Can't get the descriptor of an unrecognized enum value."); 267 } 268 return getDescriptor().getValues().get(ordinal()); 269 } 270 getDescriptorForType()271 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 272 return getDescriptor(); 273 } 274 getDescriptor()275 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 276 return io.grafeas.v1.CVSS.getDescriptor().getEnumTypes().get(1); 277 } 278 279 private static final AttackComplexity[] VALUES = values(); 280 valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)281 public static AttackComplexity valueOf( 282 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 283 if (desc.getType() != getDescriptor()) { 284 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 285 } 286 if (desc.getIndex() == -1) { 287 return UNRECOGNIZED; 288 } 289 return VALUES[desc.getIndex()]; 290 } 291 292 private final int value; 293 AttackComplexity(int value)294 private AttackComplexity(int value) { 295 this.value = value; 296 } 297 298 // @@protoc_insertion_point(enum_scope:grafeas.v1.CVSS.AttackComplexity) 299 } 300 301 /** Protobuf enum {@code grafeas.v1.CVSS.Authentication} */ 302 public enum Authentication implements com.google.protobuf.ProtocolMessageEnum { 303 /** <code>AUTHENTICATION_UNSPECIFIED = 0;</code> */ 304 AUTHENTICATION_UNSPECIFIED(0), 305 /** <code>AUTHENTICATION_MULTIPLE = 1;</code> */ 306 AUTHENTICATION_MULTIPLE(1), 307 /** <code>AUTHENTICATION_SINGLE = 2;</code> */ 308 AUTHENTICATION_SINGLE(2), 309 /** <code>AUTHENTICATION_NONE = 3;</code> */ 310 AUTHENTICATION_NONE(3), 311 UNRECOGNIZED(-1), 312 ; 313 314 /** <code>AUTHENTICATION_UNSPECIFIED = 0;</code> */ 315 public static final int AUTHENTICATION_UNSPECIFIED_VALUE = 0; 316 /** <code>AUTHENTICATION_MULTIPLE = 1;</code> */ 317 public static final int AUTHENTICATION_MULTIPLE_VALUE = 1; 318 /** <code>AUTHENTICATION_SINGLE = 2;</code> */ 319 public static final int AUTHENTICATION_SINGLE_VALUE = 2; 320 /** <code>AUTHENTICATION_NONE = 3;</code> */ 321 public static final int AUTHENTICATION_NONE_VALUE = 3; 322 getNumber()323 public final int getNumber() { 324 if (this == UNRECOGNIZED) { 325 throw new java.lang.IllegalArgumentException( 326 "Can't get the number of an unknown enum value."); 327 } 328 return value; 329 } 330 331 /** 332 * @param value The numeric wire value of the corresponding enum entry. 333 * @return The enum associated with the given numeric wire value. 334 * @deprecated Use {@link #forNumber(int)} instead. 335 */ 336 @java.lang.Deprecated valueOf(int value)337 public static Authentication valueOf(int value) { 338 return forNumber(value); 339 } 340 341 /** 342 * @param value The numeric wire value of the corresponding enum entry. 343 * @return The enum associated with the given numeric wire value. 344 */ forNumber(int value)345 public static Authentication forNumber(int value) { 346 switch (value) { 347 case 0: 348 return AUTHENTICATION_UNSPECIFIED; 349 case 1: 350 return AUTHENTICATION_MULTIPLE; 351 case 2: 352 return AUTHENTICATION_SINGLE; 353 case 3: 354 return AUTHENTICATION_NONE; 355 default: 356 return null; 357 } 358 } 359 internalGetValueMap()360 public static com.google.protobuf.Internal.EnumLiteMap<Authentication> internalGetValueMap() { 361 return internalValueMap; 362 } 363 364 private static final com.google.protobuf.Internal.EnumLiteMap<Authentication> internalValueMap = 365 new com.google.protobuf.Internal.EnumLiteMap<Authentication>() { 366 public Authentication findValueByNumber(int number) { 367 return Authentication.forNumber(number); 368 } 369 }; 370 getValueDescriptor()371 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 372 if (this == UNRECOGNIZED) { 373 throw new java.lang.IllegalStateException( 374 "Can't get the descriptor of an unrecognized enum value."); 375 } 376 return getDescriptor().getValues().get(ordinal()); 377 } 378 getDescriptorForType()379 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 380 return getDescriptor(); 381 } 382 getDescriptor()383 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 384 return io.grafeas.v1.CVSS.getDescriptor().getEnumTypes().get(2); 385 } 386 387 private static final Authentication[] VALUES = values(); 388 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)389 public static Authentication valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 390 if (desc.getType() != getDescriptor()) { 391 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 392 } 393 if (desc.getIndex() == -1) { 394 return UNRECOGNIZED; 395 } 396 return VALUES[desc.getIndex()]; 397 } 398 399 private final int value; 400 Authentication(int value)401 private Authentication(int value) { 402 this.value = value; 403 } 404 405 // @@protoc_insertion_point(enum_scope:grafeas.v1.CVSS.Authentication) 406 } 407 408 /** Protobuf enum {@code grafeas.v1.CVSS.PrivilegesRequired} */ 409 public enum PrivilegesRequired implements com.google.protobuf.ProtocolMessageEnum { 410 /** <code>PRIVILEGES_REQUIRED_UNSPECIFIED = 0;</code> */ 411 PRIVILEGES_REQUIRED_UNSPECIFIED(0), 412 /** <code>PRIVILEGES_REQUIRED_NONE = 1;</code> */ 413 PRIVILEGES_REQUIRED_NONE(1), 414 /** <code>PRIVILEGES_REQUIRED_LOW = 2;</code> */ 415 PRIVILEGES_REQUIRED_LOW(2), 416 /** <code>PRIVILEGES_REQUIRED_HIGH = 3;</code> */ 417 PRIVILEGES_REQUIRED_HIGH(3), 418 UNRECOGNIZED(-1), 419 ; 420 421 /** <code>PRIVILEGES_REQUIRED_UNSPECIFIED = 0;</code> */ 422 public static final int PRIVILEGES_REQUIRED_UNSPECIFIED_VALUE = 0; 423 /** <code>PRIVILEGES_REQUIRED_NONE = 1;</code> */ 424 public static final int PRIVILEGES_REQUIRED_NONE_VALUE = 1; 425 /** <code>PRIVILEGES_REQUIRED_LOW = 2;</code> */ 426 public static final int PRIVILEGES_REQUIRED_LOW_VALUE = 2; 427 /** <code>PRIVILEGES_REQUIRED_HIGH = 3;</code> */ 428 public static final int PRIVILEGES_REQUIRED_HIGH_VALUE = 3; 429 getNumber()430 public final int getNumber() { 431 if (this == UNRECOGNIZED) { 432 throw new java.lang.IllegalArgumentException( 433 "Can't get the number of an unknown enum value."); 434 } 435 return value; 436 } 437 438 /** 439 * @param value The numeric wire value of the corresponding enum entry. 440 * @return The enum associated with the given numeric wire value. 441 * @deprecated Use {@link #forNumber(int)} instead. 442 */ 443 @java.lang.Deprecated valueOf(int value)444 public static PrivilegesRequired valueOf(int value) { 445 return forNumber(value); 446 } 447 448 /** 449 * @param value The numeric wire value of the corresponding enum entry. 450 * @return The enum associated with the given numeric wire value. 451 */ forNumber(int value)452 public static PrivilegesRequired forNumber(int value) { 453 switch (value) { 454 case 0: 455 return PRIVILEGES_REQUIRED_UNSPECIFIED; 456 case 1: 457 return PRIVILEGES_REQUIRED_NONE; 458 case 2: 459 return PRIVILEGES_REQUIRED_LOW; 460 case 3: 461 return PRIVILEGES_REQUIRED_HIGH; 462 default: 463 return null; 464 } 465 } 466 467 public static com.google.protobuf.Internal.EnumLiteMap<PrivilegesRequired> internalGetValueMap()468 internalGetValueMap() { 469 return internalValueMap; 470 } 471 472 private static final com.google.protobuf.Internal.EnumLiteMap<PrivilegesRequired> 473 internalValueMap = 474 new com.google.protobuf.Internal.EnumLiteMap<PrivilegesRequired>() { 475 public PrivilegesRequired findValueByNumber(int number) { 476 return PrivilegesRequired.forNumber(number); 477 } 478 }; 479 getValueDescriptor()480 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 481 if (this == UNRECOGNIZED) { 482 throw new java.lang.IllegalStateException( 483 "Can't get the descriptor of an unrecognized enum value."); 484 } 485 return getDescriptor().getValues().get(ordinal()); 486 } 487 getDescriptorForType()488 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 489 return getDescriptor(); 490 } 491 getDescriptor()492 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 493 return io.grafeas.v1.CVSS.getDescriptor().getEnumTypes().get(3); 494 } 495 496 private static final PrivilegesRequired[] VALUES = values(); 497 valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)498 public static PrivilegesRequired valueOf( 499 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 500 if (desc.getType() != getDescriptor()) { 501 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 502 } 503 if (desc.getIndex() == -1) { 504 return UNRECOGNIZED; 505 } 506 return VALUES[desc.getIndex()]; 507 } 508 509 private final int value; 510 PrivilegesRequired(int value)511 private PrivilegesRequired(int value) { 512 this.value = value; 513 } 514 515 // @@protoc_insertion_point(enum_scope:grafeas.v1.CVSS.PrivilegesRequired) 516 } 517 518 /** Protobuf enum {@code grafeas.v1.CVSS.UserInteraction} */ 519 public enum UserInteraction implements com.google.protobuf.ProtocolMessageEnum { 520 /** <code>USER_INTERACTION_UNSPECIFIED = 0;</code> */ 521 USER_INTERACTION_UNSPECIFIED(0), 522 /** <code>USER_INTERACTION_NONE = 1;</code> */ 523 USER_INTERACTION_NONE(1), 524 /** <code>USER_INTERACTION_REQUIRED = 2;</code> */ 525 USER_INTERACTION_REQUIRED(2), 526 UNRECOGNIZED(-1), 527 ; 528 529 /** <code>USER_INTERACTION_UNSPECIFIED = 0;</code> */ 530 public static final int USER_INTERACTION_UNSPECIFIED_VALUE = 0; 531 /** <code>USER_INTERACTION_NONE = 1;</code> */ 532 public static final int USER_INTERACTION_NONE_VALUE = 1; 533 /** <code>USER_INTERACTION_REQUIRED = 2;</code> */ 534 public static final int USER_INTERACTION_REQUIRED_VALUE = 2; 535 getNumber()536 public final int getNumber() { 537 if (this == UNRECOGNIZED) { 538 throw new java.lang.IllegalArgumentException( 539 "Can't get the number of an unknown enum value."); 540 } 541 return value; 542 } 543 544 /** 545 * @param value The numeric wire value of the corresponding enum entry. 546 * @return The enum associated with the given numeric wire value. 547 * @deprecated Use {@link #forNumber(int)} instead. 548 */ 549 @java.lang.Deprecated valueOf(int value)550 public static UserInteraction valueOf(int value) { 551 return forNumber(value); 552 } 553 554 /** 555 * @param value The numeric wire value of the corresponding enum entry. 556 * @return The enum associated with the given numeric wire value. 557 */ forNumber(int value)558 public static UserInteraction forNumber(int value) { 559 switch (value) { 560 case 0: 561 return USER_INTERACTION_UNSPECIFIED; 562 case 1: 563 return USER_INTERACTION_NONE; 564 case 2: 565 return USER_INTERACTION_REQUIRED; 566 default: 567 return null; 568 } 569 } 570 internalGetValueMap()571 public static com.google.protobuf.Internal.EnumLiteMap<UserInteraction> internalGetValueMap() { 572 return internalValueMap; 573 } 574 575 private static final com.google.protobuf.Internal.EnumLiteMap<UserInteraction> 576 internalValueMap = 577 new com.google.protobuf.Internal.EnumLiteMap<UserInteraction>() { 578 public UserInteraction findValueByNumber(int number) { 579 return UserInteraction.forNumber(number); 580 } 581 }; 582 getValueDescriptor()583 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 584 if (this == UNRECOGNIZED) { 585 throw new java.lang.IllegalStateException( 586 "Can't get the descriptor of an unrecognized enum value."); 587 } 588 return getDescriptor().getValues().get(ordinal()); 589 } 590 getDescriptorForType()591 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 592 return getDescriptor(); 593 } 594 getDescriptor()595 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 596 return io.grafeas.v1.CVSS.getDescriptor().getEnumTypes().get(4); 597 } 598 599 private static final UserInteraction[] VALUES = values(); 600 valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)601 public static UserInteraction valueOf( 602 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 603 if (desc.getType() != getDescriptor()) { 604 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 605 } 606 if (desc.getIndex() == -1) { 607 return UNRECOGNIZED; 608 } 609 return VALUES[desc.getIndex()]; 610 } 611 612 private final int value; 613 UserInteraction(int value)614 private UserInteraction(int value) { 615 this.value = value; 616 } 617 618 // @@protoc_insertion_point(enum_scope:grafeas.v1.CVSS.UserInteraction) 619 } 620 621 /** Protobuf enum {@code grafeas.v1.CVSS.Scope} */ 622 public enum Scope implements com.google.protobuf.ProtocolMessageEnum { 623 /** <code>SCOPE_UNSPECIFIED = 0;</code> */ 624 SCOPE_UNSPECIFIED(0), 625 /** <code>SCOPE_UNCHANGED = 1;</code> */ 626 SCOPE_UNCHANGED(1), 627 /** <code>SCOPE_CHANGED = 2;</code> */ 628 SCOPE_CHANGED(2), 629 UNRECOGNIZED(-1), 630 ; 631 632 /** <code>SCOPE_UNSPECIFIED = 0;</code> */ 633 public static final int SCOPE_UNSPECIFIED_VALUE = 0; 634 /** <code>SCOPE_UNCHANGED = 1;</code> */ 635 public static final int SCOPE_UNCHANGED_VALUE = 1; 636 /** <code>SCOPE_CHANGED = 2;</code> */ 637 public static final int SCOPE_CHANGED_VALUE = 2; 638 getNumber()639 public final int getNumber() { 640 if (this == UNRECOGNIZED) { 641 throw new java.lang.IllegalArgumentException( 642 "Can't get the number of an unknown enum value."); 643 } 644 return value; 645 } 646 647 /** 648 * @param value The numeric wire value of the corresponding enum entry. 649 * @return The enum associated with the given numeric wire value. 650 * @deprecated Use {@link #forNumber(int)} instead. 651 */ 652 @java.lang.Deprecated valueOf(int value)653 public static Scope valueOf(int value) { 654 return forNumber(value); 655 } 656 657 /** 658 * @param value The numeric wire value of the corresponding enum entry. 659 * @return The enum associated with the given numeric wire value. 660 */ forNumber(int value)661 public static Scope forNumber(int value) { 662 switch (value) { 663 case 0: 664 return SCOPE_UNSPECIFIED; 665 case 1: 666 return SCOPE_UNCHANGED; 667 case 2: 668 return SCOPE_CHANGED; 669 default: 670 return null; 671 } 672 } 673 internalGetValueMap()674 public static com.google.protobuf.Internal.EnumLiteMap<Scope> internalGetValueMap() { 675 return internalValueMap; 676 } 677 678 private static final com.google.protobuf.Internal.EnumLiteMap<Scope> internalValueMap = 679 new com.google.protobuf.Internal.EnumLiteMap<Scope>() { 680 public Scope findValueByNumber(int number) { 681 return Scope.forNumber(number); 682 } 683 }; 684 getValueDescriptor()685 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 686 if (this == UNRECOGNIZED) { 687 throw new java.lang.IllegalStateException( 688 "Can't get the descriptor of an unrecognized enum value."); 689 } 690 return getDescriptor().getValues().get(ordinal()); 691 } 692 getDescriptorForType()693 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 694 return getDescriptor(); 695 } 696 getDescriptor()697 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 698 return io.grafeas.v1.CVSS.getDescriptor().getEnumTypes().get(5); 699 } 700 701 private static final Scope[] VALUES = values(); 702 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)703 public static Scope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 704 if (desc.getType() != getDescriptor()) { 705 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 706 } 707 if (desc.getIndex() == -1) { 708 return UNRECOGNIZED; 709 } 710 return VALUES[desc.getIndex()]; 711 } 712 713 private final int value; 714 Scope(int value)715 private Scope(int value) { 716 this.value = value; 717 } 718 719 // @@protoc_insertion_point(enum_scope:grafeas.v1.CVSS.Scope) 720 } 721 722 /** Protobuf enum {@code grafeas.v1.CVSS.Impact} */ 723 public enum Impact implements com.google.protobuf.ProtocolMessageEnum { 724 /** <code>IMPACT_UNSPECIFIED = 0;</code> */ 725 IMPACT_UNSPECIFIED(0), 726 /** <code>IMPACT_HIGH = 1;</code> */ 727 IMPACT_HIGH(1), 728 /** <code>IMPACT_LOW = 2;</code> */ 729 IMPACT_LOW(2), 730 /** <code>IMPACT_NONE = 3;</code> */ 731 IMPACT_NONE(3), 732 /** <code>IMPACT_PARTIAL = 4;</code> */ 733 IMPACT_PARTIAL(4), 734 /** <code>IMPACT_COMPLETE = 5;</code> */ 735 IMPACT_COMPLETE(5), 736 UNRECOGNIZED(-1), 737 ; 738 739 /** <code>IMPACT_UNSPECIFIED = 0;</code> */ 740 public static final int IMPACT_UNSPECIFIED_VALUE = 0; 741 /** <code>IMPACT_HIGH = 1;</code> */ 742 public static final int IMPACT_HIGH_VALUE = 1; 743 /** <code>IMPACT_LOW = 2;</code> */ 744 public static final int IMPACT_LOW_VALUE = 2; 745 /** <code>IMPACT_NONE = 3;</code> */ 746 public static final int IMPACT_NONE_VALUE = 3; 747 /** <code>IMPACT_PARTIAL = 4;</code> */ 748 public static final int IMPACT_PARTIAL_VALUE = 4; 749 /** <code>IMPACT_COMPLETE = 5;</code> */ 750 public static final int IMPACT_COMPLETE_VALUE = 5; 751 getNumber()752 public final int getNumber() { 753 if (this == UNRECOGNIZED) { 754 throw new java.lang.IllegalArgumentException( 755 "Can't get the number of an unknown enum value."); 756 } 757 return value; 758 } 759 760 /** 761 * @param value The numeric wire value of the corresponding enum entry. 762 * @return The enum associated with the given numeric wire value. 763 * @deprecated Use {@link #forNumber(int)} instead. 764 */ 765 @java.lang.Deprecated valueOf(int value)766 public static Impact valueOf(int value) { 767 return forNumber(value); 768 } 769 770 /** 771 * @param value The numeric wire value of the corresponding enum entry. 772 * @return The enum associated with the given numeric wire value. 773 */ forNumber(int value)774 public static Impact forNumber(int value) { 775 switch (value) { 776 case 0: 777 return IMPACT_UNSPECIFIED; 778 case 1: 779 return IMPACT_HIGH; 780 case 2: 781 return IMPACT_LOW; 782 case 3: 783 return IMPACT_NONE; 784 case 4: 785 return IMPACT_PARTIAL; 786 case 5: 787 return IMPACT_COMPLETE; 788 default: 789 return null; 790 } 791 } 792 internalGetValueMap()793 public static com.google.protobuf.Internal.EnumLiteMap<Impact> internalGetValueMap() { 794 return internalValueMap; 795 } 796 797 private static final com.google.protobuf.Internal.EnumLiteMap<Impact> internalValueMap = 798 new com.google.protobuf.Internal.EnumLiteMap<Impact>() { 799 public Impact findValueByNumber(int number) { 800 return Impact.forNumber(number); 801 } 802 }; 803 getValueDescriptor()804 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 805 if (this == UNRECOGNIZED) { 806 throw new java.lang.IllegalStateException( 807 "Can't get the descriptor of an unrecognized enum value."); 808 } 809 return getDescriptor().getValues().get(ordinal()); 810 } 811 getDescriptorForType()812 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 813 return getDescriptor(); 814 } 815 getDescriptor()816 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 817 return io.grafeas.v1.CVSS.getDescriptor().getEnumTypes().get(6); 818 } 819 820 private static final Impact[] VALUES = values(); 821 valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)822 public static Impact valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 823 if (desc.getType() != getDescriptor()) { 824 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 825 } 826 if (desc.getIndex() == -1) { 827 return UNRECOGNIZED; 828 } 829 return VALUES[desc.getIndex()]; 830 } 831 832 private final int value; 833 Impact(int value)834 private Impact(int value) { 835 this.value = value; 836 } 837 838 // @@protoc_insertion_point(enum_scope:grafeas.v1.CVSS.Impact) 839 } 840 841 public static final int BASE_SCORE_FIELD_NUMBER = 1; 842 private float baseScore_ = 0F; 843 /** 844 * 845 * 846 * <pre> 847 * The base score is a function of the base metric scores. 848 * </pre> 849 * 850 * <code>float base_score = 1;</code> 851 * 852 * @return The baseScore. 853 */ 854 @java.lang.Override getBaseScore()855 public float getBaseScore() { 856 return baseScore_; 857 } 858 859 public static final int EXPLOITABILITY_SCORE_FIELD_NUMBER = 2; 860 private float exploitabilityScore_ = 0F; 861 /** 862 * <code>float exploitability_score = 2;</code> 863 * 864 * @return The exploitabilityScore. 865 */ 866 @java.lang.Override getExploitabilityScore()867 public float getExploitabilityScore() { 868 return exploitabilityScore_; 869 } 870 871 public static final int IMPACT_SCORE_FIELD_NUMBER = 3; 872 private float impactScore_ = 0F; 873 /** 874 * <code>float impact_score = 3;</code> 875 * 876 * @return The impactScore. 877 */ 878 @java.lang.Override getImpactScore()879 public float getImpactScore() { 880 return impactScore_; 881 } 882 883 public static final int ATTACK_VECTOR_FIELD_NUMBER = 4; 884 private int attackVector_ = 0; 885 /** 886 * 887 * 888 * <pre> 889 * Base Metrics 890 * Represents the intrinsic characteristics of a vulnerability that are 891 * constant over time and across user environments. 892 * </pre> 893 * 894 * <code>.grafeas.v1.CVSS.AttackVector attack_vector = 4;</code> 895 * 896 * @return The enum numeric value on the wire for attackVector. 897 */ 898 @java.lang.Override getAttackVectorValue()899 public int getAttackVectorValue() { 900 return attackVector_; 901 } 902 /** 903 * 904 * 905 * <pre> 906 * Base Metrics 907 * Represents the intrinsic characteristics of a vulnerability that are 908 * constant over time and across user environments. 909 * </pre> 910 * 911 * <code>.grafeas.v1.CVSS.AttackVector attack_vector = 4;</code> 912 * 913 * @return The attackVector. 914 */ 915 @java.lang.Override getAttackVector()916 public io.grafeas.v1.CVSS.AttackVector getAttackVector() { 917 io.grafeas.v1.CVSS.AttackVector result = 918 io.grafeas.v1.CVSS.AttackVector.forNumber(attackVector_); 919 return result == null ? io.grafeas.v1.CVSS.AttackVector.UNRECOGNIZED : result; 920 } 921 922 public static final int ATTACK_COMPLEXITY_FIELD_NUMBER = 5; 923 private int attackComplexity_ = 0; 924 /** 925 * <code>.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;</code> 926 * 927 * @return The enum numeric value on the wire for attackComplexity. 928 */ 929 @java.lang.Override getAttackComplexityValue()930 public int getAttackComplexityValue() { 931 return attackComplexity_; 932 } 933 /** 934 * <code>.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;</code> 935 * 936 * @return The attackComplexity. 937 */ 938 @java.lang.Override getAttackComplexity()939 public io.grafeas.v1.CVSS.AttackComplexity getAttackComplexity() { 940 io.grafeas.v1.CVSS.AttackComplexity result = 941 io.grafeas.v1.CVSS.AttackComplexity.forNumber(attackComplexity_); 942 return result == null ? io.grafeas.v1.CVSS.AttackComplexity.UNRECOGNIZED : result; 943 } 944 945 public static final int AUTHENTICATION_FIELD_NUMBER = 6; 946 private int authentication_ = 0; 947 /** 948 * <code>.grafeas.v1.CVSS.Authentication authentication = 6;</code> 949 * 950 * @return The enum numeric value on the wire for authentication. 951 */ 952 @java.lang.Override getAuthenticationValue()953 public int getAuthenticationValue() { 954 return authentication_; 955 } 956 /** 957 * <code>.grafeas.v1.CVSS.Authentication authentication = 6;</code> 958 * 959 * @return The authentication. 960 */ 961 @java.lang.Override getAuthentication()962 public io.grafeas.v1.CVSS.Authentication getAuthentication() { 963 io.grafeas.v1.CVSS.Authentication result = 964 io.grafeas.v1.CVSS.Authentication.forNumber(authentication_); 965 return result == null ? io.grafeas.v1.CVSS.Authentication.UNRECOGNIZED : result; 966 } 967 968 public static final int PRIVILEGES_REQUIRED_FIELD_NUMBER = 7; 969 private int privilegesRequired_ = 0; 970 /** 971 * <code>.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;</code> 972 * 973 * @return The enum numeric value on the wire for privilegesRequired. 974 */ 975 @java.lang.Override getPrivilegesRequiredValue()976 public int getPrivilegesRequiredValue() { 977 return privilegesRequired_; 978 } 979 /** 980 * <code>.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;</code> 981 * 982 * @return The privilegesRequired. 983 */ 984 @java.lang.Override getPrivilegesRequired()985 public io.grafeas.v1.CVSS.PrivilegesRequired getPrivilegesRequired() { 986 io.grafeas.v1.CVSS.PrivilegesRequired result = 987 io.grafeas.v1.CVSS.PrivilegesRequired.forNumber(privilegesRequired_); 988 return result == null ? io.grafeas.v1.CVSS.PrivilegesRequired.UNRECOGNIZED : result; 989 } 990 991 public static final int USER_INTERACTION_FIELD_NUMBER = 8; 992 private int userInteraction_ = 0; 993 /** 994 * <code>.grafeas.v1.CVSS.UserInteraction user_interaction = 8;</code> 995 * 996 * @return The enum numeric value on the wire for userInteraction. 997 */ 998 @java.lang.Override getUserInteractionValue()999 public int getUserInteractionValue() { 1000 return userInteraction_; 1001 } 1002 /** 1003 * <code>.grafeas.v1.CVSS.UserInteraction user_interaction = 8;</code> 1004 * 1005 * @return The userInteraction. 1006 */ 1007 @java.lang.Override getUserInteraction()1008 public io.grafeas.v1.CVSS.UserInteraction getUserInteraction() { 1009 io.grafeas.v1.CVSS.UserInteraction result = 1010 io.grafeas.v1.CVSS.UserInteraction.forNumber(userInteraction_); 1011 return result == null ? io.grafeas.v1.CVSS.UserInteraction.UNRECOGNIZED : result; 1012 } 1013 1014 public static final int SCOPE_FIELD_NUMBER = 9; 1015 private int scope_ = 0; 1016 /** 1017 * <code>.grafeas.v1.CVSS.Scope scope = 9;</code> 1018 * 1019 * @return The enum numeric value on the wire for scope. 1020 */ 1021 @java.lang.Override getScopeValue()1022 public int getScopeValue() { 1023 return scope_; 1024 } 1025 /** 1026 * <code>.grafeas.v1.CVSS.Scope scope = 9;</code> 1027 * 1028 * @return The scope. 1029 */ 1030 @java.lang.Override getScope()1031 public io.grafeas.v1.CVSS.Scope getScope() { 1032 io.grafeas.v1.CVSS.Scope result = io.grafeas.v1.CVSS.Scope.forNumber(scope_); 1033 return result == null ? io.grafeas.v1.CVSS.Scope.UNRECOGNIZED : result; 1034 } 1035 1036 public static final int CONFIDENTIALITY_IMPACT_FIELD_NUMBER = 10; 1037 private int confidentialityImpact_ = 0; 1038 /** 1039 * <code>.grafeas.v1.CVSS.Impact confidentiality_impact = 10;</code> 1040 * 1041 * @return The enum numeric value on the wire for confidentialityImpact. 1042 */ 1043 @java.lang.Override getConfidentialityImpactValue()1044 public int getConfidentialityImpactValue() { 1045 return confidentialityImpact_; 1046 } 1047 /** 1048 * <code>.grafeas.v1.CVSS.Impact confidentiality_impact = 10;</code> 1049 * 1050 * @return The confidentialityImpact. 1051 */ 1052 @java.lang.Override getConfidentialityImpact()1053 public io.grafeas.v1.CVSS.Impact getConfidentialityImpact() { 1054 io.grafeas.v1.CVSS.Impact result = io.grafeas.v1.CVSS.Impact.forNumber(confidentialityImpact_); 1055 return result == null ? io.grafeas.v1.CVSS.Impact.UNRECOGNIZED : result; 1056 } 1057 1058 public static final int INTEGRITY_IMPACT_FIELD_NUMBER = 11; 1059 private int integrityImpact_ = 0; 1060 /** 1061 * <code>.grafeas.v1.CVSS.Impact integrity_impact = 11;</code> 1062 * 1063 * @return The enum numeric value on the wire for integrityImpact. 1064 */ 1065 @java.lang.Override getIntegrityImpactValue()1066 public int getIntegrityImpactValue() { 1067 return integrityImpact_; 1068 } 1069 /** 1070 * <code>.grafeas.v1.CVSS.Impact integrity_impact = 11;</code> 1071 * 1072 * @return The integrityImpact. 1073 */ 1074 @java.lang.Override getIntegrityImpact()1075 public io.grafeas.v1.CVSS.Impact getIntegrityImpact() { 1076 io.grafeas.v1.CVSS.Impact result = io.grafeas.v1.CVSS.Impact.forNumber(integrityImpact_); 1077 return result == null ? io.grafeas.v1.CVSS.Impact.UNRECOGNIZED : result; 1078 } 1079 1080 public static final int AVAILABILITY_IMPACT_FIELD_NUMBER = 12; 1081 private int availabilityImpact_ = 0; 1082 /** 1083 * <code>.grafeas.v1.CVSS.Impact availability_impact = 12;</code> 1084 * 1085 * @return The enum numeric value on the wire for availabilityImpact. 1086 */ 1087 @java.lang.Override getAvailabilityImpactValue()1088 public int getAvailabilityImpactValue() { 1089 return availabilityImpact_; 1090 } 1091 /** 1092 * <code>.grafeas.v1.CVSS.Impact availability_impact = 12;</code> 1093 * 1094 * @return The availabilityImpact. 1095 */ 1096 @java.lang.Override getAvailabilityImpact()1097 public io.grafeas.v1.CVSS.Impact getAvailabilityImpact() { 1098 io.grafeas.v1.CVSS.Impact result = io.grafeas.v1.CVSS.Impact.forNumber(availabilityImpact_); 1099 return result == null ? io.grafeas.v1.CVSS.Impact.UNRECOGNIZED : result; 1100 } 1101 1102 private byte memoizedIsInitialized = -1; 1103 1104 @java.lang.Override isInitialized()1105 public final boolean isInitialized() { 1106 byte isInitialized = memoizedIsInitialized; 1107 if (isInitialized == 1) return true; 1108 if (isInitialized == 0) return false; 1109 1110 memoizedIsInitialized = 1; 1111 return true; 1112 } 1113 1114 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)1115 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 1116 if (java.lang.Float.floatToRawIntBits(baseScore_) != 0) { 1117 output.writeFloat(1, baseScore_); 1118 } 1119 if (java.lang.Float.floatToRawIntBits(exploitabilityScore_) != 0) { 1120 output.writeFloat(2, exploitabilityScore_); 1121 } 1122 if (java.lang.Float.floatToRawIntBits(impactScore_) != 0) { 1123 output.writeFloat(3, impactScore_); 1124 } 1125 if (attackVector_ != io.grafeas.v1.CVSS.AttackVector.ATTACK_VECTOR_UNSPECIFIED.getNumber()) { 1126 output.writeEnum(4, attackVector_); 1127 } 1128 if (attackComplexity_ 1129 != io.grafeas.v1.CVSS.AttackComplexity.ATTACK_COMPLEXITY_UNSPECIFIED.getNumber()) { 1130 output.writeEnum(5, attackComplexity_); 1131 } 1132 if (authentication_ 1133 != io.grafeas.v1.CVSS.Authentication.AUTHENTICATION_UNSPECIFIED.getNumber()) { 1134 output.writeEnum(6, authentication_); 1135 } 1136 if (privilegesRequired_ 1137 != io.grafeas.v1.CVSS.PrivilegesRequired.PRIVILEGES_REQUIRED_UNSPECIFIED.getNumber()) { 1138 output.writeEnum(7, privilegesRequired_); 1139 } 1140 if (userInteraction_ 1141 != io.grafeas.v1.CVSS.UserInteraction.USER_INTERACTION_UNSPECIFIED.getNumber()) { 1142 output.writeEnum(8, userInteraction_); 1143 } 1144 if (scope_ != io.grafeas.v1.CVSS.Scope.SCOPE_UNSPECIFIED.getNumber()) { 1145 output.writeEnum(9, scope_); 1146 } 1147 if (confidentialityImpact_ != io.grafeas.v1.CVSS.Impact.IMPACT_UNSPECIFIED.getNumber()) { 1148 output.writeEnum(10, confidentialityImpact_); 1149 } 1150 if (integrityImpact_ != io.grafeas.v1.CVSS.Impact.IMPACT_UNSPECIFIED.getNumber()) { 1151 output.writeEnum(11, integrityImpact_); 1152 } 1153 if (availabilityImpact_ != io.grafeas.v1.CVSS.Impact.IMPACT_UNSPECIFIED.getNumber()) { 1154 output.writeEnum(12, availabilityImpact_); 1155 } 1156 getUnknownFields().writeTo(output); 1157 } 1158 1159 @java.lang.Override getSerializedSize()1160 public int getSerializedSize() { 1161 int size = memoizedSize; 1162 if (size != -1) return size; 1163 1164 size = 0; 1165 if (java.lang.Float.floatToRawIntBits(baseScore_) != 0) { 1166 size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, baseScore_); 1167 } 1168 if (java.lang.Float.floatToRawIntBits(exploitabilityScore_) != 0) { 1169 size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, exploitabilityScore_); 1170 } 1171 if (java.lang.Float.floatToRawIntBits(impactScore_) != 0) { 1172 size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, impactScore_); 1173 } 1174 if (attackVector_ != io.grafeas.v1.CVSS.AttackVector.ATTACK_VECTOR_UNSPECIFIED.getNumber()) { 1175 size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, attackVector_); 1176 } 1177 if (attackComplexity_ 1178 != io.grafeas.v1.CVSS.AttackComplexity.ATTACK_COMPLEXITY_UNSPECIFIED.getNumber()) { 1179 size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, attackComplexity_); 1180 } 1181 if (authentication_ 1182 != io.grafeas.v1.CVSS.Authentication.AUTHENTICATION_UNSPECIFIED.getNumber()) { 1183 size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, authentication_); 1184 } 1185 if (privilegesRequired_ 1186 != io.grafeas.v1.CVSS.PrivilegesRequired.PRIVILEGES_REQUIRED_UNSPECIFIED.getNumber()) { 1187 size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, privilegesRequired_); 1188 } 1189 if (userInteraction_ 1190 != io.grafeas.v1.CVSS.UserInteraction.USER_INTERACTION_UNSPECIFIED.getNumber()) { 1191 size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, userInteraction_); 1192 } 1193 if (scope_ != io.grafeas.v1.CVSS.Scope.SCOPE_UNSPECIFIED.getNumber()) { 1194 size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, scope_); 1195 } 1196 if (confidentialityImpact_ != io.grafeas.v1.CVSS.Impact.IMPACT_UNSPECIFIED.getNumber()) { 1197 size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, confidentialityImpact_); 1198 } 1199 if (integrityImpact_ != io.grafeas.v1.CVSS.Impact.IMPACT_UNSPECIFIED.getNumber()) { 1200 size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, integrityImpact_); 1201 } 1202 if (availabilityImpact_ != io.grafeas.v1.CVSS.Impact.IMPACT_UNSPECIFIED.getNumber()) { 1203 size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, availabilityImpact_); 1204 } 1205 size += getUnknownFields().getSerializedSize(); 1206 memoizedSize = size; 1207 return size; 1208 } 1209 1210 @java.lang.Override equals(final java.lang.Object obj)1211 public boolean equals(final java.lang.Object obj) { 1212 if (obj == this) { 1213 return true; 1214 } 1215 if (!(obj instanceof io.grafeas.v1.CVSS)) { 1216 return super.equals(obj); 1217 } 1218 io.grafeas.v1.CVSS other = (io.grafeas.v1.CVSS) obj; 1219 1220 if (java.lang.Float.floatToIntBits(getBaseScore()) 1221 != java.lang.Float.floatToIntBits(other.getBaseScore())) return false; 1222 if (java.lang.Float.floatToIntBits(getExploitabilityScore()) 1223 != java.lang.Float.floatToIntBits(other.getExploitabilityScore())) return false; 1224 if (java.lang.Float.floatToIntBits(getImpactScore()) 1225 != java.lang.Float.floatToIntBits(other.getImpactScore())) return false; 1226 if (attackVector_ != other.attackVector_) return false; 1227 if (attackComplexity_ != other.attackComplexity_) return false; 1228 if (authentication_ != other.authentication_) return false; 1229 if (privilegesRequired_ != other.privilegesRequired_) return false; 1230 if (userInteraction_ != other.userInteraction_) return false; 1231 if (scope_ != other.scope_) return false; 1232 if (confidentialityImpact_ != other.confidentialityImpact_) return false; 1233 if (integrityImpact_ != other.integrityImpact_) return false; 1234 if (availabilityImpact_ != other.availabilityImpact_) return false; 1235 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 1236 return true; 1237 } 1238 1239 @java.lang.Override hashCode()1240 public int hashCode() { 1241 if (memoizedHashCode != 0) { 1242 return memoizedHashCode; 1243 } 1244 int hash = 41; 1245 hash = (19 * hash) + getDescriptor().hashCode(); 1246 hash = (37 * hash) + BASE_SCORE_FIELD_NUMBER; 1247 hash = (53 * hash) + java.lang.Float.floatToIntBits(getBaseScore()); 1248 hash = (37 * hash) + EXPLOITABILITY_SCORE_FIELD_NUMBER; 1249 hash = (53 * hash) + java.lang.Float.floatToIntBits(getExploitabilityScore()); 1250 hash = (37 * hash) + IMPACT_SCORE_FIELD_NUMBER; 1251 hash = (53 * hash) + java.lang.Float.floatToIntBits(getImpactScore()); 1252 hash = (37 * hash) + ATTACK_VECTOR_FIELD_NUMBER; 1253 hash = (53 * hash) + attackVector_; 1254 hash = (37 * hash) + ATTACK_COMPLEXITY_FIELD_NUMBER; 1255 hash = (53 * hash) + attackComplexity_; 1256 hash = (37 * hash) + AUTHENTICATION_FIELD_NUMBER; 1257 hash = (53 * hash) + authentication_; 1258 hash = (37 * hash) + PRIVILEGES_REQUIRED_FIELD_NUMBER; 1259 hash = (53 * hash) + privilegesRequired_; 1260 hash = (37 * hash) + USER_INTERACTION_FIELD_NUMBER; 1261 hash = (53 * hash) + userInteraction_; 1262 hash = (37 * hash) + SCOPE_FIELD_NUMBER; 1263 hash = (53 * hash) + scope_; 1264 hash = (37 * hash) + CONFIDENTIALITY_IMPACT_FIELD_NUMBER; 1265 hash = (53 * hash) + confidentialityImpact_; 1266 hash = (37 * hash) + INTEGRITY_IMPACT_FIELD_NUMBER; 1267 hash = (53 * hash) + integrityImpact_; 1268 hash = (37 * hash) + AVAILABILITY_IMPACT_FIELD_NUMBER; 1269 hash = (53 * hash) + availabilityImpact_; 1270 hash = (29 * hash) + getUnknownFields().hashCode(); 1271 memoizedHashCode = hash; 1272 return hash; 1273 } 1274 parseFrom(java.nio.ByteBuffer data)1275 public static io.grafeas.v1.CVSS parseFrom(java.nio.ByteBuffer data) 1276 throws com.google.protobuf.InvalidProtocolBufferException { 1277 return PARSER.parseFrom(data); 1278 } 1279 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1280 public static io.grafeas.v1.CVSS parseFrom( 1281 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1282 throws com.google.protobuf.InvalidProtocolBufferException { 1283 return PARSER.parseFrom(data, extensionRegistry); 1284 } 1285 parseFrom(com.google.protobuf.ByteString data)1286 public static io.grafeas.v1.CVSS parseFrom(com.google.protobuf.ByteString data) 1287 throws com.google.protobuf.InvalidProtocolBufferException { 1288 return PARSER.parseFrom(data); 1289 } 1290 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1291 public static io.grafeas.v1.CVSS parseFrom( 1292 com.google.protobuf.ByteString data, 1293 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1294 throws com.google.protobuf.InvalidProtocolBufferException { 1295 return PARSER.parseFrom(data, extensionRegistry); 1296 } 1297 parseFrom(byte[] data)1298 public static io.grafeas.v1.CVSS parseFrom(byte[] data) 1299 throws com.google.protobuf.InvalidProtocolBufferException { 1300 return PARSER.parseFrom(data); 1301 } 1302 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1303 public static io.grafeas.v1.CVSS parseFrom( 1304 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1305 throws com.google.protobuf.InvalidProtocolBufferException { 1306 return PARSER.parseFrom(data, extensionRegistry); 1307 } 1308 parseFrom(java.io.InputStream input)1309 public static io.grafeas.v1.CVSS parseFrom(java.io.InputStream input) throws java.io.IOException { 1310 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1311 } 1312 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1313 public static io.grafeas.v1.CVSS parseFrom( 1314 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1315 throws java.io.IOException { 1316 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1317 PARSER, input, extensionRegistry); 1318 } 1319 parseDelimitedFrom(java.io.InputStream input)1320 public static io.grafeas.v1.CVSS parseDelimitedFrom(java.io.InputStream input) 1321 throws java.io.IOException { 1322 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 1323 } 1324 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1325 public static io.grafeas.v1.CVSS parseDelimitedFrom( 1326 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1327 throws java.io.IOException { 1328 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 1329 PARSER, input, extensionRegistry); 1330 } 1331 parseFrom(com.google.protobuf.CodedInputStream input)1332 public static io.grafeas.v1.CVSS parseFrom(com.google.protobuf.CodedInputStream input) 1333 throws java.io.IOException { 1334 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 1335 } 1336 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1337 public static io.grafeas.v1.CVSS parseFrom( 1338 com.google.protobuf.CodedInputStream input, 1339 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1340 throws java.io.IOException { 1341 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 1342 PARSER, input, extensionRegistry); 1343 } 1344 1345 @java.lang.Override newBuilderForType()1346 public Builder newBuilderForType() { 1347 return newBuilder(); 1348 } 1349 newBuilder()1350 public static Builder newBuilder() { 1351 return DEFAULT_INSTANCE.toBuilder(); 1352 } 1353 newBuilder(io.grafeas.v1.CVSS prototype)1354 public static Builder newBuilder(io.grafeas.v1.CVSS prototype) { 1355 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1356 } 1357 1358 @java.lang.Override toBuilder()1359 public Builder toBuilder() { 1360 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 1361 } 1362 1363 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1364 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1365 Builder builder = new Builder(parent); 1366 return builder; 1367 } 1368 /** 1369 * 1370 * 1371 * <pre> 1372 * Common Vulnerability Scoring System. 1373 * For details, see https://www.first.org/cvss/specification-document 1374 * This is a message we will try to use for storing various versions of CVSS 1375 * rather than making a separate proto for storing a specific version. 1376 * </pre> 1377 * 1378 * Protobuf type {@code grafeas.v1.CVSS} 1379 */ 1380 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 1381 implements 1382 // @@protoc_insertion_point(builder_implements:grafeas.v1.CVSS) 1383 io.grafeas.v1.CVSSOrBuilder { getDescriptor()1384 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 1385 return io.grafeas.v1.CVSSProto.internal_static_grafeas_v1_CVSS_descriptor; 1386 } 1387 1388 @java.lang.Override 1389 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()1390 internalGetFieldAccessorTable() { 1391 return io.grafeas.v1.CVSSProto.internal_static_grafeas_v1_CVSS_fieldAccessorTable 1392 .ensureFieldAccessorsInitialized( 1393 io.grafeas.v1.CVSS.class, io.grafeas.v1.CVSS.Builder.class); 1394 } 1395 1396 // Construct using io.grafeas.v1.CVSS.newBuilder() Builder()1397 private Builder() {} 1398 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1399 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 1400 super(parent); 1401 } 1402 1403 @java.lang.Override clear()1404 public Builder clear() { 1405 super.clear(); 1406 bitField0_ = 0; 1407 baseScore_ = 0F; 1408 exploitabilityScore_ = 0F; 1409 impactScore_ = 0F; 1410 attackVector_ = 0; 1411 attackComplexity_ = 0; 1412 authentication_ = 0; 1413 privilegesRequired_ = 0; 1414 userInteraction_ = 0; 1415 scope_ = 0; 1416 confidentialityImpact_ = 0; 1417 integrityImpact_ = 0; 1418 availabilityImpact_ = 0; 1419 return this; 1420 } 1421 1422 @java.lang.Override getDescriptorForType()1423 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 1424 return io.grafeas.v1.CVSSProto.internal_static_grafeas_v1_CVSS_descriptor; 1425 } 1426 1427 @java.lang.Override getDefaultInstanceForType()1428 public io.grafeas.v1.CVSS getDefaultInstanceForType() { 1429 return io.grafeas.v1.CVSS.getDefaultInstance(); 1430 } 1431 1432 @java.lang.Override build()1433 public io.grafeas.v1.CVSS build() { 1434 io.grafeas.v1.CVSS result = buildPartial(); 1435 if (!result.isInitialized()) { 1436 throw newUninitializedMessageException(result); 1437 } 1438 return result; 1439 } 1440 1441 @java.lang.Override buildPartial()1442 public io.grafeas.v1.CVSS buildPartial() { 1443 io.grafeas.v1.CVSS result = new io.grafeas.v1.CVSS(this); 1444 if (bitField0_ != 0) { 1445 buildPartial0(result); 1446 } 1447 onBuilt(); 1448 return result; 1449 } 1450 buildPartial0(io.grafeas.v1.CVSS result)1451 private void buildPartial0(io.grafeas.v1.CVSS result) { 1452 int from_bitField0_ = bitField0_; 1453 if (((from_bitField0_ & 0x00000001) != 0)) { 1454 result.baseScore_ = baseScore_; 1455 } 1456 if (((from_bitField0_ & 0x00000002) != 0)) { 1457 result.exploitabilityScore_ = exploitabilityScore_; 1458 } 1459 if (((from_bitField0_ & 0x00000004) != 0)) { 1460 result.impactScore_ = impactScore_; 1461 } 1462 if (((from_bitField0_ & 0x00000008) != 0)) { 1463 result.attackVector_ = attackVector_; 1464 } 1465 if (((from_bitField0_ & 0x00000010) != 0)) { 1466 result.attackComplexity_ = attackComplexity_; 1467 } 1468 if (((from_bitField0_ & 0x00000020) != 0)) { 1469 result.authentication_ = authentication_; 1470 } 1471 if (((from_bitField0_ & 0x00000040) != 0)) { 1472 result.privilegesRequired_ = privilegesRequired_; 1473 } 1474 if (((from_bitField0_ & 0x00000080) != 0)) { 1475 result.userInteraction_ = userInteraction_; 1476 } 1477 if (((from_bitField0_ & 0x00000100) != 0)) { 1478 result.scope_ = scope_; 1479 } 1480 if (((from_bitField0_ & 0x00000200) != 0)) { 1481 result.confidentialityImpact_ = confidentialityImpact_; 1482 } 1483 if (((from_bitField0_ & 0x00000400) != 0)) { 1484 result.integrityImpact_ = integrityImpact_; 1485 } 1486 if (((from_bitField0_ & 0x00000800) != 0)) { 1487 result.availabilityImpact_ = availabilityImpact_; 1488 } 1489 } 1490 1491 @java.lang.Override clone()1492 public Builder clone() { 1493 return super.clone(); 1494 } 1495 1496 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1497 public Builder setField( 1498 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1499 return super.setField(field, value); 1500 } 1501 1502 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1503 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 1504 return super.clearField(field); 1505 } 1506 1507 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1508 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 1509 return super.clearOneof(oneof); 1510 } 1511 1512 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1513 public Builder setRepeatedField( 1514 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 1515 return super.setRepeatedField(field, index, value); 1516 } 1517 1518 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1519 public Builder addRepeatedField( 1520 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 1521 return super.addRepeatedField(field, value); 1522 } 1523 1524 @java.lang.Override mergeFrom(com.google.protobuf.Message other)1525 public Builder mergeFrom(com.google.protobuf.Message other) { 1526 if (other instanceof io.grafeas.v1.CVSS) { 1527 return mergeFrom((io.grafeas.v1.CVSS) other); 1528 } else { 1529 super.mergeFrom(other); 1530 return this; 1531 } 1532 } 1533 mergeFrom(io.grafeas.v1.CVSS other)1534 public Builder mergeFrom(io.grafeas.v1.CVSS other) { 1535 if (other == io.grafeas.v1.CVSS.getDefaultInstance()) return this; 1536 if (other.getBaseScore() != 0F) { 1537 setBaseScore(other.getBaseScore()); 1538 } 1539 if (other.getExploitabilityScore() != 0F) { 1540 setExploitabilityScore(other.getExploitabilityScore()); 1541 } 1542 if (other.getImpactScore() != 0F) { 1543 setImpactScore(other.getImpactScore()); 1544 } 1545 if (other.attackVector_ != 0) { 1546 setAttackVectorValue(other.getAttackVectorValue()); 1547 } 1548 if (other.attackComplexity_ != 0) { 1549 setAttackComplexityValue(other.getAttackComplexityValue()); 1550 } 1551 if (other.authentication_ != 0) { 1552 setAuthenticationValue(other.getAuthenticationValue()); 1553 } 1554 if (other.privilegesRequired_ != 0) { 1555 setPrivilegesRequiredValue(other.getPrivilegesRequiredValue()); 1556 } 1557 if (other.userInteraction_ != 0) { 1558 setUserInteractionValue(other.getUserInteractionValue()); 1559 } 1560 if (other.scope_ != 0) { 1561 setScopeValue(other.getScopeValue()); 1562 } 1563 if (other.confidentialityImpact_ != 0) { 1564 setConfidentialityImpactValue(other.getConfidentialityImpactValue()); 1565 } 1566 if (other.integrityImpact_ != 0) { 1567 setIntegrityImpactValue(other.getIntegrityImpactValue()); 1568 } 1569 if (other.availabilityImpact_ != 0) { 1570 setAvailabilityImpactValue(other.getAvailabilityImpactValue()); 1571 } 1572 this.mergeUnknownFields(other.getUnknownFields()); 1573 onChanged(); 1574 return this; 1575 } 1576 1577 @java.lang.Override isInitialized()1578 public final boolean isInitialized() { 1579 return true; 1580 } 1581 1582 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1583 public Builder mergeFrom( 1584 com.google.protobuf.CodedInputStream input, 1585 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1586 throws java.io.IOException { 1587 if (extensionRegistry == null) { 1588 throw new java.lang.NullPointerException(); 1589 } 1590 try { 1591 boolean done = false; 1592 while (!done) { 1593 int tag = input.readTag(); 1594 switch (tag) { 1595 case 0: 1596 done = true; 1597 break; 1598 case 13: 1599 { 1600 baseScore_ = input.readFloat(); 1601 bitField0_ |= 0x00000001; 1602 break; 1603 } // case 13 1604 case 21: 1605 { 1606 exploitabilityScore_ = input.readFloat(); 1607 bitField0_ |= 0x00000002; 1608 break; 1609 } // case 21 1610 case 29: 1611 { 1612 impactScore_ = input.readFloat(); 1613 bitField0_ |= 0x00000004; 1614 break; 1615 } // case 29 1616 case 32: 1617 { 1618 attackVector_ = input.readEnum(); 1619 bitField0_ |= 0x00000008; 1620 break; 1621 } // case 32 1622 case 40: 1623 { 1624 attackComplexity_ = input.readEnum(); 1625 bitField0_ |= 0x00000010; 1626 break; 1627 } // case 40 1628 case 48: 1629 { 1630 authentication_ = input.readEnum(); 1631 bitField0_ |= 0x00000020; 1632 break; 1633 } // case 48 1634 case 56: 1635 { 1636 privilegesRequired_ = input.readEnum(); 1637 bitField0_ |= 0x00000040; 1638 break; 1639 } // case 56 1640 case 64: 1641 { 1642 userInteraction_ = input.readEnum(); 1643 bitField0_ |= 0x00000080; 1644 break; 1645 } // case 64 1646 case 72: 1647 { 1648 scope_ = input.readEnum(); 1649 bitField0_ |= 0x00000100; 1650 break; 1651 } // case 72 1652 case 80: 1653 { 1654 confidentialityImpact_ = input.readEnum(); 1655 bitField0_ |= 0x00000200; 1656 break; 1657 } // case 80 1658 case 88: 1659 { 1660 integrityImpact_ = input.readEnum(); 1661 bitField0_ |= 0x00000400; 1662 break; 1663 } // case 88 1664 case 96: 1665 { 1666 availabilityImpact_ = input.readEnum(); 1667 bitField0_ |= 0x00000800; 1668 break; 1669 } // case 96 1670 default: 1671 { 1672 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 1673 done = true; // was an endgroup tag 1674 } 1675 break; 1676 } // default: 1677 } // switch (tag) 1678 } // while (!done) 1679 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1680 throw e.unwrapIOException(); 1681 } finally { 1682 onChanged(); 1683 } // finally 1684 return this; 1685 } 1686 1687 private int bitField0_; 1688 1689 private float baseScore_; 1690 /** 1691 * 1692 * 1693 * <pre> 1694 * The base score is a function of the base metric scores. 1695 * </pre> 1696 * 1697 * <code>float base_score = 1;</code> 1698 * 1699 * @return The baseScore. 1700 */ 1701 @java.lang.Override getBaseScore()1702 public float getBaseScore() { 1703 return baseScore_; 1704 } 1705 /** 1706 * 1707 * 1708 * <pre> 1709 * The base score is a function of the base metric scores. 1710 * </pre> 1711 * 1712 * <code>float base_score = 1;</code> 1713 * 1714 * @param value The baseScore to set. 1715 * @return This builder for chaining. 1716 */ setBaseScore(float value)1717 public Builder setBaseScore(float value) { 1718 1719 baseScore_ = value; 1720 bitField0_ |= 0x00000001; 1721 onChanged(); 1722 return this; 1723 } 1724 /** 1725 * 1726 * 1727 * <pre> 1728 * The base score is a function of the base metric scores. 1729 * </pre> 1730 * 1731 * <code>float base_score = 1;</code> 1732 * 1733 * @return This builder for chaining. 1734 */ clearBaseScore()1735 public Builder clearBaseScore() { 1736 bitField0_ = (bitField0_ & ~0x00000001); 1737 baseScore_ = 0F; 1738 onChanged(); 1739 return this; 1740 } 1741 1742 private float exploitabilityScore_; 1743 /** 1744 * <code>float exploitability_score = 2;</code> 1745 * 1746 * @return The exploitabilityScore. 1747 */ 1748 @java.lang.Override getExploitabilityScore()1749 public float getExploitabilityScore() { 1750 return exploitabilityScore_; 1751 } 1752 /** 1753 * <code>float exploitability_score = 2;</code> 1754 * 1755 * @param value The exploitabilityScore to set. 1756 * @return This builder for chaining. 1757 */ setExploitabilityScore(float value)1758 public Builder setExploitabilityScore(float value) { 1759 1760 exploitabilityScore_ = value; 1761 bitField0_ |= 0x00000002; 1762 onChanged(); 1763 return this; 1764 } 1765 /** 1766 * <code>float exploitability_score = 2;</code> 1767 * 1768 * @return This builder for chaining. 1769 */ clearExploitabilityScore()1770 public Builder clearExploitabilityScore() { 1771 bitField0_ = (bitField0_ & ~0x00000002); 1772 exploitabilityScore_ = 0F; 1773 onChanged(); 1774 return this; 1775 } 1776 1777 private float impactScore_; 1778 /** 1779 * <code>float impact_score = 3;</code> 1780 * 1781 * @return The impactScore. 1782 */ 1783 @java.lang.Override getImpactScore()1784 public float getImpactScore() { 1785 return impactScore_; 1786 } 1787 /** 1788 * <code>float impact_score = 3;</code> 1789 * 1790 * @param value The impactScore to set. 1791 * @return This builder for chaining. 1792 */ setImpactScore(float value)1793 public Builder setImpactScore(float value) { 1794 1795 impactScore_ = value; 1796 bitField0_ |= 0x00000004; 1797 onChanged(); 1798 return this; 1799 } 1800 /** 1801 * <code>float impact_score = 3;</code> 1802 * 1803 * @return This builder for chaining. 1804 */ clearImpactScore()1805 public Builder clearImpactScore() { 1806 bitField0_ = (bitField0_ & ~0x00000004); 1807 impactScore_ = 0F; 1808 onChanged(); 1809 return this; 1810 } 1811 1812 private int attackVector_ = 0; 1813 /** 1814 * 1815 * 1816 * <pre> 1817 * Base Metrics 1818 * Represents the intrinsic characteristics of a vulnerability that are 1819 * constant over time and across user environments. 1820 * </pre> 1821 * 1822 * <code>.grafeas.v1.CVSS.AttackVector attack_vector = 4;</code> 1823 * 1824 * @return The enum numeric value on the wire for attackVector. 1825 */ 1826 @java.lang.Override getAttackVectorValue()1827 public int getAttackVectorValue() { 1828 return attackVector_; 1829 } 1830 /** 1831 * 1832 * 1833 * <pre> 1834 * Base Metrics 1835 * Represents the intrinsic characteristics of a vulnerability that are 1836 * constant over time and across user environments. 1837 * </pre> 1838 * 1839 * <code>.grafeas.v1.CVSS.AttackVector attack_vector = 4;</code> 1840 * 1841 * @param value The enum numeric value on the wire for attackVector to set. 1842 * @return This builder for chaining. 1843 */ setAttackVectorValue(int value)1844 public Builder setAttackVectorValue(int value) { 1845 attackVector_ = value; 1846 bitField0_ |= 0x00000008; 1847 onChanged(); 1848 return this; 1849 } 1850 /** 1851 * 1852 * 1853 * <pre> 1854 * Base Metrics 1855 * Represents the intrinsic characteristics of a vulnerability that are 1856 * constant over time and across user environments. 1857 * </pre> 1858 * 1859 * <code>.grafeas.v1.CVSS.AttackVector attack_vector = 4;</code> 1860 * 1861 * @return The attackVector. 1862 */ 1863 @java.lang.Override getAttackVector()1864 public io.grafeas.v1.CVSS.AttackVector getAttackVector() { 1865 io.grafeas.v1.CVSS.AttackVector result = 1866 io.grafeas.v1.CVSS.AttackVector.forNumber(attackVector_); 1867 return result == null ? io.grafeas.v1.CVSS.AttackVector.UNRECOGNIZED : result; 1868 } 1869 /** 1870 * 1871 * 1872 * <pre> 1873 * Base Metrics 1874 * Represents the intrinsic characteristics of a vulnerability that are 1875 * constant over time and across user environments. 1876 * </pre> 1877 * 1878 * <code>.grafeas.v1.CVSS.AttackVector attack_vector = 4;</code> 1879 * 1880 * @param value The attackVector to set. 1881 * @return This builder for chaining. 1882 */ setAttackVector(io.grafeas.v1.CVSS.AttackVector value)1883 public Builder setAttackVector(io.grafeas.v1.CVSS.AttackVector value) { 1884 if (value == null) { 1885 throw new NullPointerException(); 1886 } 1887 bitField0_ |= 0x00000008; 1888 attackVector_ = value.getNumber(); 1889 onChanged(); 1890 return this; 1891 } 1892 /** 1893 * 1894 * 1895 * <pre> 1896 * Base Metrics 1897 * Represents the intrinsic characteristics of a vulnerability that are 1898 * constant over time and across user environments. 1899 * </pre> 1900 * 1901 * <code>.grafeas.v1.CVSS.AttackVector attack_vector = 4;</code> 1902 * 1903 * @return This builder for chaining. 1904 */ clearAttackVector()1905 public Builder clearAttackVector() { 1906 bitField0_ = (bitField0_ & ~0x00000008); 1907 attackVector_ = 0; 1908 onChanged(); 1909 return this; 1910 } 1911 1912 private int attackComplexity_ = 0; 1913 /** 1914 * <code>.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;</code> 1915 * 1916 * @return The enum numeric value on the wire for attackComplexity. 1917 */ 1918 @java.lang.Override getAttackComplexityValue()1919 public int getAttackComplexityValue() { 1920 return attackComplexity_; 1921 } 1922 /** 1923 * <code>.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;</code> 1924 * 1925 * @param value The enum numeric value on the wire for attackComplexity to set. 1926 * @return This builder for chaining. 1927 */ setAttackComplexityValue(int value)1928 public Builder setAttackComplexityValue(int value) { 1929 attackComplexity_ = value; 1930 bitField0_ |= 0x00000010; 1931 onChanged(); 1932 return this; 1933 } 1934 /** 1935 * <code>.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;</code> 1936 * 1937 * @return The attackComplexity. 1938 */ 1939 @java.lang.Override getAttackComplexity()1940 public io.grafeas.v1.CVSS.AttackComplexity getAttackComplexity() { 1941 io.grafeas.v1.CVSS.AttackComplexity result = 1942 io.grafeas.v1.CVSS.AttackComplexity.forNumber(attackComplexity_); 1943 return result == null ? io.grafeas.v1.CVSS.AttackComplexity.UNRECOGNIZED : result; 1944 } 1945 /** 1946 * <code>.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;</code> 1947 * 1948 * @param value The attackComplexity to set. 1949 * @return This builder for chaining. 1950 */ setAttackComplexity(io.grafeas.v1.CVSS.AttackComplexity value)1951 public Builder setAttackComplexity(io.grafeas.v1.CVSS.AttackComplexity value) { 1952 if (value == null) { 1953 throw new NullPointerException(); 1954 } 1955 bitField0_ |= 0x00000010; 1956 attackComplexity_ = value.getNumber(); 1957 onChanged(); 1958 return this; 1959 } 1960 /** 1961 * <code>.grafeas.v1.CVSS.AttackComplexity attack_complexity = 5;</code> 1962 * 1963 * @return This builder for chaining. 1964 */ clearAttackComplexity()1965 public Builder clearAttackComplexity() { 1966 bitField0_ = (bitField0_ & ~0x00000010); 1967 attackComplexity_ = 0; 1968 onChanged(); 1969 return this; 1970 } 1971 1972 private int authentication_ = 0; 1973 /** 1974 * <code>.grafeas.v1.CVSS.Authentication authentication = 6;</code> 1975 * 1976 * @return The enum numeric value on the wire for authentication. 1977 */ 1978 @java.lang.Override getAuthenticationValue()1979 public int getAuthenticationValue() { 1980 return authentication_; 1981 } 1982 /** 1983 * <code>.grafeas.v1.CVSS.Authentication authentication = 6;</code> 1984 * 1985 * @param value The enum numeric value on the wire for authentication to set. 1986 * @return This builder for chaining. 1987 */ setAuthenticationValue(int value)1988 public Builder setAuthenticationValue(int value) { 1989 authentication_ = value; 1990 bitField0_ |= 0x00000020; 1991 onChanged(); 1992 return this; 1993 } 1994 /** 1995 * <code>.grafeas.v1.CVSS.Authentication authentication = 6;</code> 1996 * 1997 * @return The authentication. 1998 */ 1999 @java.lang.Override getAuthentication()2000 public io.grafeas.v1.CVSS.Authentication getAuthentication() { 2001 io.grafeas.v1.CVSS.Authentication result = 2002 io.grafeas.v1.CVSS.Authentication.forNumber(authentication_); 2003 return result == null ? io.grafeas.v1.CVSS.Authentication.UNRECOGNIZED : result; 2004 } 2005 /** 2006 * <code>.grafeas.v1.CVSS.Authentication authentication = 6;</code> 2007 * 2008 * @param value The authentication to set. 2009 * @return This builder for chaining. 2010 */ setAuthentication(io.grafeas.v1.CVSS.Authentication value)2011 public Builder setAuthentication(io.grafeas.v1.CVSS.Authentication value) { 2012 if (value == null) { 2013 throw new NullPointerException(); 2014 } 2015 bitField0_ |= 0x00000020; 2016 authentication_ = value.getNumber(); 2017 onChanged(); 2018 return this; 2019 } 2020 /** 2021 * <code>.grafeas.v1.CVSS.Authentication authentication = 6;</code> 2022 * 2023 * @return This builder for chaining. 2024 */ clearAuthentication()2025 public Builder clearAuthentication() { 2026 bitField0_ = (bitField0_ & ~0x00000020); 2027 authentication_ = 0; 2028 onChanged(); 2029 return this; 2030 } 2031 2032 private int privilegesRequired_ = 0; 2033 /** 2034 * <code>.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;</code> 2035 * 2036 * @return The enum numeric value on the wire for privilegesRequired. 2037 */ 2038 @java.lang.Override getPrivilegesRequiredValue()2039 public int getPrivilegesRequiredValue() { 2040 return privilegesRequired_; 2041 } 2042 /** 2043 * <code>.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;</code> 2044 * 2045 * @param value The enum numeric value on the wire for privilegesRequired to set. 2046 * @return This builder for chaining. 2047 */ setPrivilegesRequiredValue(int value)2048 public Builder setPrivilegesRequiredValue(int value) { 2049 privilegesRequired_ = value; 2050 bitField0_ |= 0x00000040; 2051 onChanged(); 2052 return this; 2053 } 2054 /** 2055 * <code>.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;</code> 2056 * 2057 * @return The privilegesRequired. 2058 */ 2059 @java.lang.Override getPrivilegesRequired()2060 public io.grafeas.v1.CVSS.PrivilegesRequired getPrivilegesRequired() { 2061 io.grafeas.v1.CVSS.PrivilegesRequired result = 2062 io.grafeas.v1.CVSS.PrivilegesRequired.forNumber(privilegesRequired_); 2063 return result == null ? io.grafeas.v1.CVSS.PrivilegesRequired.UNRECOGNIZED : result; 2064 } 2065 /** 2066 * <code>.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;</code> 2067 * 2068 * @param value The privilegesRequired to set. 2069 * @return This builder for chaining. 2070 */ setPrivilegesRequired(io.grafeas.v1.CVSS.PrivilegesRequired value)2071 public Builder setPrivilegesRequired(io.grafeas.v1.CVSS.PrivilegesRequired value) { 2072 if (value == null) { 2073 throw new NullPointerException(); 2074 } 2075 bitField0_ |= 0x00000040; 2076 privilegesRequired_ = value.getNumber(); 2077 onChanged(); 2078 return this; 2079 } 2080 /** 2081 * <code>.grafeas.v1.CVSS.PrivilegesRequired privileges_required = 7;</code> 2082 * 2083 * @return This builder for chaining. 2084 */ clearPrivilegesRequired()2085 public Builder clearPrivilegesRequired() { 2086 bitField0_ = (bitField0_ & ~0x00000040); 2087 privilegesRequired_ = 0; 2088 onChanged(); 2089 return this; 2090 } 2091 2092 private int userInteraction_ = 0; 2093 /** 2094 * <code>.grafeas.v1.CVSS.UserInteraction user_interaction = 8;</code> 2095 * 2096 * @return The enum numeric value on the wire for userInteraction. 2097 */ 2098 @java.lang.Override getUserInteractionValue()2099 public int getUserInteractionValue() { 2100 return userInteraction_; 2101 } 2102 /** 2103 * <code>.grafeas.v1.CVSS.UserInteraction user_interaction = 8;</code> 2104 * 2105 * @param value The enum numeric value on the wire for userInteraction to set. 2106 * @return This builder for chaining. 2107 */ setUserInteractionValue(int value)2108 public Builder setUserInteractionValue(int value) { 2109 userInteraction_ = value; 2110 bitField0_ |= 0x00000080; 2111 onChanged(); 2112 return this; 2113 } 2114 /** 2115 * <code>.grafeas.v1.CVSS.UserInteraction user_interaction = 8;</code> 2116 * 2117 * @return The userInteraction. 2118 */ 2119 @java.lang.Override getUserInteraction()2120 public io.grafeas.v1.CVSS.UserInteraction getUserInteraction() { 2121 io.grafeas.v1.CVSS.UserInteraction result = 2122 io.grafeas.v1.CVSS.UserInteraction.forNumber(userInteraction_); 2123 return result == null ? io.grafeas.v1.CVSS.UserInteraction.UNRECOGNIZED : result; 2124 } 2125 /** 2126 * <code>.grafeas.v1.CVSS.UserInteraction user_interaction = 8;</code> 2127 * 2128 * @param value The userInteraction to set. 2129 * @return This builder for chaining. 2130 */ setUserInteraction(io.grafeas.v1.CVSS.UserInteraction value)2131 public Builder setUserInteraction(io.grafeas.v1.CVSS.UserInteraction value) { 2132 if (value == null) { 2133 throw new NullPointerException(); 2134 } 2135 bitField0_ |= 0x00000080; 2136 userInteraction_ = value.getNumber(); 2137 onChanged(); 2138 return this; 2139 } 2140 /** 2141 * <code>.grafeas.v1.CVSS.UserInteraction user_interaction = 8;</code> 2142 * 2143 * @return This builder for chaining. 2144 */ clearUserInteraction()2145 public Builder clearUserInteraction() { 2146 bitField0_ = (bitField0_ & ~0x00000080); 2147 userInteraction_ = 0; 2148 onChanged(); 2149 return this; 2150 } 2151 2152 private int scope_ = 0; 2153 /** 2154 * <code>.grafeas.v1.CVSS.Scope scope = 9;</code> 2155 * 2156 * @return The enum numeric value on the wire for scope. 2157 */ 2158 @java.lang.Override getScopeValue()2159 public int getScopeValue() { 2160 return scope_; 2161 } 2162 /** 2163 * <code>.grafeas.v1.CVSS.Scope scope = 9;</code> 2164 * 2165 * @param value The enum numeric value on the wire for scope to set. 2166 * @return This builder for chaining. 2167 */ setScopeValue(int value)2168 public Builder setScopeValue(int value) { 2169 scope_ = value; 2170 bitField0_ |= 0x00000100; 2171 onChanged(); 2172 return this; 2173 } 2174 /** 2175 * <code>.grafeas.v1.CVSS.Scope scope = 9;</code> 2176 * 2177 * @return The scope. 2178 */ 2179 @java.lang.Override getScope()2180 public io.grafeas.v1.CVSS.Scope getScope() { 2181 io.grafeas.v1.CVSS.Scope result = io.grafeas.v1.CVSS.Scope.forNumber(scope_); 2182 return result == null ? io.grafeas.v1.CVSS.Scope.UNRECOGNIZED : result; 2183 } 2184 /** 2185 * <code>.grafeas.v1.CVSS.Scope scope = 9;</code> 2186 * 2187 * @param value The scope to set. 2188 * @return This builder for chaining. 2189 */ setScope(io.grafeas.v1.CVSS.Scope value)2190 public Builder setScope(io.grafeas.v1.CVSS.Scope value) { 2191 if (value == null) { 2192 throw new NullPointerException(); 2193 } 2194 bitField0_ |= 0x00000100; 2195 scope_ = value.getNumber(); 2196 onChanged(); 2197 return this; 2198 } 2199 /** 2200 * <code>.grafeas.v1.CVSS.Scope scope = 9;</code> 2201 * 2202 * @return This builder for chaining. 2203 */ clearScope()2204 public Builder clearScope() { 2205 bitField0_ = (bitField0_ & ~0x00000100); 2206 scope_ = 0; 2207 onChanged(); 2208 return this; 2209 } 2210 2211 private int confidentialityImpact_ = 0; 2212 /** 2213 * <code>.grafeas.v1.CVSS.Impact confidentiality_impact = 10;</code> 2214 * 2215 * @return The enum numeric value on the wire for confidentialityImpact. 2216 */ 2217 @java.lang.Override getConfidentialityImpactValue()2218 public int getConfidentialityImpactValue() { 2219 return confidentialityImpact_; 2220 } 2221 /** 2222 * <code>.grafeas.v1.CVSS.Impact confidentiality_impact = 10;</code> 2223 * 2224 * @param value The enum numeric value on the wire for confidentialityImpact to set. 2225 * @return This builder for chaining. 2226 */ setConfidentialityImpactValue(int value)2227 public Builder setConfidentialityImpactValue(int value) { 2228 confidentialityImpact_ = value; 2229 bitField0_ |= 0x00000200; 2230 onChanged(); 2231 return this; 2232 } 2233 /** 2234 * <code>.grafeas.v1.CVSS.Impact confidentiality_impact = 10;</code> 2235 * 2236 * @return The confidentialityImpact. 2237 */ 2238 @java.lang.Override getConfidentialityImpact()2239 public io.grafeas.v1.CVSS.Impact getConfidentialityImpact() { 2240 io.grafeas.v1.CVSS.Impact result = 2241 io.grafeas.v1.CVSS.Impact.forNumber(confidentialityImpact_); 2242 return result == null ? io.grafeas.v1.CVSS.Impact.UNRECOGNIZED : result; 2243 } 2244 /** 2245 * <code>.grafeas.v1.CVSS.Impact confidentiality_impact = 10;</code> 2246 * 2247 * @param value The confidentialityImpact to set. 2248 * @return This builder for chaining. 2249 */ setConfidentialityImpact(io.grafeas.v1.CVSS.Impact value)2250 public Builder setConfidentialityImpact(io.grafeas.v1.CVSS.Impact value) { 2251 if (value == null) { 2252 throw new NullPointerException(); 2253 } 2254 bitField0_ |= 0x00000200; 2255 confidentialityImpact_ = value.getNumber(); 2256 onChanged(); 2257 return this; 2258 } 2259 /** 2260 * <code>.grafeas.v1.CVSS.Impact confidentiality_impact = 10;</code> 2261 * 2262 * @return This builder for chaining. 2263 */ clearConfidentialityImpact()2264 public Builder clearConfidentialityImpact() { 2265 bitField0_ = (bitField0_ & ~0x00000200); 2266 confidentialityImpact_ = 0; 2267 onChanged(); 2268 return this; 2269 } 2270 2271 private int integrityImpact_ = 0; 2272 /** 2273 * <code>.grafeas.v1.CVSS.Impact integrity_impact = 11;</code> 2274 * 2275 * @return The enum numeric value on the wire for integrityImpact. 2276 */ 2277 @java.lang.Override getIntegrityImpactValue()2278 public int getIntegrityImpactValue() { 2279 return integrityImpact_; 2280 } 2281 /** 2282 * <code>.grafeas.v1.CVSS.Impact integrity_impact = 11;</code> 2283 * 2284 * @param value The enum numeric value on the wire for integrityImpact to set. 2285 * @return This builder for chaining. 2286 */ setIntegrityImpactValue(int value)2287 public Builder setIntegrityImpactValue(int value) { 2288 integrityImpact_ = value; 2289 bitField0_ |= 0x00000400; 2290 onChanged(); 2291 return this; 2292 } 2293 /** 2294 * <code>.grafeas.v1.CVSS.Impact integrity_impact = 11;</code> 2295 * 2296 * @return The integrityImpact. 2297 */ 2298 @java.lang.Override getIntegrityImpact()2299 public io.grafeas.v1.CVSS.Impact getIntegrityImpact() { 2300 io.grafeas.v1.CVSS.Impact result = io.grafeas.v1.CVSS.Impact.forNumber(integrityImpact_); 2301 return result == null ? io.grafeas.v1.CVSS.Impact.UNRECOGNIZED : result; 2302 } 2303 /** 2304 * <code>.grafeas.v1.CVSS.Impact integrity_impact = 11;</code> 2305 * 2306 * @param value The integrityImpact to set. 2307 * @return This builder for chaining. 2308 */ setIntegrityImpact(io.grafeas.v1.CVSS.Impact value)2309 public Builder setIntegrityImpact(io.grafeas.v1.CVSS.Impact value) { 2310 if (value == null) { 2311 throw new NullPointerException(); 2312 } 2313 bitField0_ |= 0x00000400; 2314 integrityImpact_ = value.getNumber(); 2315 onChanged(); 2316 return this; 2317 } 2318 /** 2319 * <code>.grafeas.v1.CVSS.Impact integrity_impact = 11;</code> 2320 * 2321 * @return This builder for chaining. 2322 */ clearIntegrityImpact()2323 public Builder clearIntegrityImpact() { 2324 bitField0_ = (bitField0_ & ~0x00000400); 2325 integrityImpact_ = 0; 2326 onChanged(); 2327 return this; 2328 } 2329 2330 private int availabilityImpact_ = 0; 2331 /** 2332 * <code>.grafeas.v1.CVSS.Impact availability_impact = 12;</code> 2333 * 2334 * @return The enum numeric value on the wire for availabilityImpact. 2335 */ 2336 @java.lang.Override getAvailabilityImpactValue()2337 public int getAvailabilityImpactValue() { 2338 return availabilityImpact_; 2339 } 2340 /** 2341 * <code>.grafeas.v1.CVSS.Impact availability_impact = 12;</code> 2342 * 2343 * @param value The enum numeric value on the wire for availabilityImpact to set. 2344 * @return This builder for chaining. 2345 */ setAvailabilityImpactValue(int value)2346 public Builder setAvailabilityImpactValue(int value) { 2347 availabilityImpact_ = value; 2348 bitField0_ |= 0x00000800; 2349 onChanged(); 2350 return this; 2351 } 2352 /** 2353 * <code>.grafeas.v1.CVSS.Impact availability_impact = 12;</code> 2354 * 2355 * @return The availabilityImpact. 2356 */ 2357 @java.lang.Override getAvailabilityImpact()2358 public io.grafeas.v1.CVSS.Impact getAvailabilityImpact() { 2359 io.grafeas.v1.CVSS.Impact result = io.grafeas.v1.CVSS.Impact.forNumber(availabilityImpact_); 2360 return result == null ? io.grafeas.v1.CVSS.Impact.UNRECOGNIZED : result; 2361 } 2362 /** 2363 * <code>.grafeas.v1.CVSS.Impact availability_impact = 12;</code> 2364 * 2365 * @param value The availabilityImpact to set. 2366 * @return This builder for chaining. 2367 */ setAvailabilityImpact(io.grafeas.v1.CVSS.Impact value)2368 public Builder setAvailabilityImpact(io.grafeas.v1.CVSS.Impact value) { 2369 if (value == null) { 2370 throw new NullPointerException(); 2371 } 2372 bitField0_ |= 0x00000800; 2373 availabilityImpact_ = value.getNumber(); 2374 onChanged(); 2375 return this; 2376 } 2377 /** 2378 * <code>.grafeas.v1.CVSS.Impact availability_impact = 12;</code> 2379 * 2380 * @return This builder for chaining. 2381 */ clearAvailabilityImpact()2382 public Builder clearAvailabilityImpact() { 2383 bitField0_ = (bitField0_ & ~0x00000800); 2384 availabilityImpact_ = 0; 2385 onChanged(); 2386 return this; 2387 } 2388 2389 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2390 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 2391 return super.setUnknownFields(unknownFields); 2392 } 2393 2394 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2395 public final Builder mergeUnknownFields( 2396 final com.google.protobuf.UnknownFieldSet unknownFields) { 2397 return super.mergeUnknownFields(unknownFields); 2398 } 2399 2400 // @@protoc_insertion_point(builder_scope:grafeas.v1.CVSS) 2401 } 2402 2403 // @@protoc_insertion_point(class_scope:grafeas.v1.CVSS) 2404 private static final io.grafeas.v1.CVSS DEFAULT_INSTANCE; 2405 2406 static { 2407 DEFAULT_INSTANCE = new io.grafeas.v1.CVSS(); 2408 } 2409 getDefaultInstance()2410 public static io.grafeas.v1.CVSS getDefaultInstance() { 2411 return DEFAULT_INSTANCE; 2412 } 2413 2414 private static final com.google.protobuf.Parser<CVSS> PARSER = 2415 new com.google.protobuf.AbstractParser<CVSS>() { 2416 @java.lang.Override 2417 public CVSS parsePartialFrom( 2418 com.google.protobuf.CodedInputStream input, 2419 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2420 throws com.google.protobuf.InvalidProtocolBufferException { 2421 Builder builder = newBuilder(); 2422 try { 2423 builder.mergeFrom(input, extensionRegistry); 2424 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2425 throw e.setUnfinishedMessage(builder.buildPartial()); 2426 } catch (com.google.protobuf.UninitializedMessageException e) { 2427 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 2428 } catch (java.io.IOException e) { 2429 throw new com.google.protobuf.InvalidProtocolBufferException(e) 2430 .setUnfinishedMessage(builder.buildPartial()); 2431 } 2432 return builder.buildPartial(); 2433 } 2434 }; 2435 parser()2436 public static com.google.protobuf.Parser<CVSS> parser() { 2437 return PARSER; 2438 } 2439 2440 @java.lang.Override getParserForType()2441 public com.google.protobuf.Parser<CVSS> getParserForType() { 2442 return PARSER; 2443 } 2444 2445 @java.lang.Override getDefaultInstanceForType()2446 public io.grafeas.v1.CVSS getDefaultInstanceForType() { 2447 return DEFAULT_INSTANCE; 2448 } 2449 } 2450