1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/asset/v1/assets.proto 18 19 package com.google.cloud.asset.v1; 20 21 /** 22 * 23 * 24 * <pre> 25 * The Condition evaluation. 26 * </pre> 27 * 28 * Protobuf type {@code google.cloud.asset.v1.ConditionEvaluation} 29 */ 30 public final class ConditionEvaluation extends com.google.protobuf.GeneratedMessageV3 31 implements 32 // @@protoc_insertion_point(message_implements:google.cloud.asset.v1.ConditionEvaluation) 33 ConditionEvaluationOrBuilder { 34 private static final long serialVersionUID = 0L; 35 // Use ConditionEvaluation.newBuilder() to construct. ConditionEvaluation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36 private ConditionEvaluation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 37 super(builder); 38 } 39 ConditionEvaluation()40 private ConditionEvaluation() { 41 evaluationValue_ = 0; 42 } 43 44 @java.lang.Override 45 @SuppressWarnings({"unused"}) newInstance(UnusedPrivateParameter unused)46 protected java.lang.Object newInstance(UnusedPrivateParameter unused) { 47 return new ConditionEvaluation(); 48 } 49 50 @java.lang.Override getUnknownFields()51 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { 52 return this.unknownFields; 53 } 54 getDescriptor()55 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 56 return com.google.cloud.asset.v1.AssetProto 57 .internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; 58 } 59 60 @java.lang.Override 61 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()62 internalGetFieldAccessorTable() { 63 return com.google.cloud.asset.v1.AssetProto 64 .internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable 65 .ensureFieldAccessorsInitialized( 66 com.google.cloud.asset.v1.ConditionEvaluation.class, 67 com.google.cloud.asset.v1.ConditionEvaluation.Builder.class); 68 } 69 70 /** 71 * 72 * 73 * <pre> 74 * Value of this expression. 75 * </pre> 76 * 77 * Protobuf enum {@code google.cloud.asset.v1.ConditionEvaluation.EvaluationValue} 78 */ 79 public enum EvaluationValue implements com.google.protobuf.ProtocolMessageEnum { 80 /** 81 * 82 * 83 * <pre> 84 * Reserved for future use. 85 * </pre> 86 * 87 * <code>EVALUATION_VALUE_UNSPECIFIED = 0;</code> 88 */ 89 EVALUATION_VALUE_UNSPECIFIED(0), 90 /** 91 * 92 * 93 * <pre> 94 * The evaluation result is `true`. 95 * </pre> 96 * 97 * <code>TRUE = 1;</code> 98 */ 99 TRUE(1), 100 /** 101 * 102 * 103 * <pre> 104 * The evaluation result is `false`. 105 * </pre> 106 * 107 * <code>FALSE = 2;</code> 108 */ 109 FALSE(2), 110 /** 111 * 112 * 113 * <pre> 114 * The evaluation result is `conditional` when the condition expression 115 * contains variables that are either missing input values or have not been 116 * supported by Analyzer yet. 117 * </pre> 118 * 119 * <code>CONDITIONAL = 3;</code> 120 */ 121 CONDITIONAL(3), 122 UNRECOGNIZED(-1), 123 ; 124 125 /** 126 * 127 * 128 * <pre> 129 * Reserved for future use. 130 * </pre> 131 * 132 * <code>EVALUATION_VALUE_UNSPECIFIED = 0;</code> 133 */ 134 public static final int EVALUATION_VALUE_UNSPECIFIED_VALUE = 0; 135 /** 136 * 137 * 138 * <pre> 139 * The evaluation result is `true`. 140 * </pre> 141 * 142 * <code>TRUE = 1;</code> 143 */ 144 public static final int TRUE_VALUE = 1; 145 /** 146 * 147 * 148 * <pre> 149 * The evaluation result is `false`. 150 * </pre> 151 * 152 * <code>FALSE = 2;</code> 153 */ 154 public static final int FALSE_VALUE = 2; 155 /** 156 * 157 * 158 * <pre> 159 * The evaluation result is `conditional` when the condition expression 160 * contains variables that are either missing input values or have not been 161 * supported by Analyzer yet. 162 * </pre> 163 * 164 * <code>CONDITIONAL = 3;</code> 165 */ 166 public static final int CONDITIONAL_VALUE = 3; 167 getNumber()168 public final int getNumber() { 169 if (this == UNRECOGNIZED) { 170 throw new java.lang.IllegalArgumentException( 171 "Can't get the number of an unknown enum value."); 172 } 173 return value; 174 } 175 176 /** 177 * @param value The numeric wire value of the corresponding enum entry. 178 * @return The enum associated with the given numeric wire value. 179 * @deprecated Use {@link #forNumber(int)} instead. 180 */ 181 @java.lang.Deprecated valueOf(int value)182 public static EvaluationValue valueOf(int value) { 183 return forNumber(value); 184 } 185 186 /** 187 * @param value The numeric wire value of the corresponding enum entry. 188 * @return The enum associated with the given numeric wire value. 189 */ forNumber(int value)190 public static EvaluationValue forNumber(int value) { 191 switch (value) { 192 case 0: 193 return EVALUATION_VALUE_UNSPECIFIED; 194 case 1: 195 return TRUE; 196 case 2: 197 return FALSE; 198 case 3: 199 return CONDITIONAL; 200 default: 201 return null; 202 } 203 } 204 internalGetValueMap()205 public static com.google.protobuf.Internal.EnumLiteMap<EvaluationValue> internalGetValueMap() { 206 return internalValueMap; 207 } 208 209 private static final com.google.protobuf.Internal.EnumLiteMap<EvaluationValue> 210 internalValueMap = 211 new com.google.protobuf.Internal.EnumLiteMap<EvaluationValue>() { 212 public EvaluationValue findValueByNumber(int number) { 213 return EvaluationValue.forNumber(number); 214 } 215 }; 216 getValueDescriptor()217 public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 218 if (this == UNRECOGNIZED) { 219 throw new java.lang.IllegalStateException( 220 "Can't get the descriptor of an unrecognized enum value."); 221 } 222 return getDescriptor().getValues().get(ordinal()); 223 } 224 getDescriptorForType()225 public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { 226 return getDescriptor(); 227 } 228 getDescriptor()229 public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { 230 return com.google.cloud.asset.v1.ConditionEvaluation.getDescriptor().getEnumTypes().get(0); 231 } 232 233 private static final EvaluationValue[] VALUES = values(); 234 valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)235 public static EvaluationValue valueOf( 236 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 237 if (desc.getType() != getDescriptor()) { 238 throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); 239 } 240 if (desc.getIndex() == -1) { 241 return UNRECOGNIZED; 242 } 243 return VALUES[desc.getIndex()]; 244 } 245 246 private final int value; 247 EvaluationValue(int value)248 private EvaluationValue(int value) { 249 this.value = value; 250 } 251 252 // @@protoc_insertion_point(enum_scope:google.cloud.asset.v1.ConditionEvaluation.EvaluationValue) 253 } 254 255 public static final int EVALUATION_VALUE_FIELD_NUMBER = 1; 256 private int evaluationValue_ = 0; 257 /** 258 * 259 * 260 * <pre> 261 * The evaluation result. 262 * </pre> 263 * 264 * <code>.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1;</code> 265 * 266 * @return The enum numeric value on the wire for evaluationValue. 267 */ 268 @java.lang.Override getEvaluationValueValue()269 public int getEvaluationValueValue() { 270 return evaluationValue_; 271 } 272 /** 273 * 274 * 275 * <pre> 276 * The evaluation result. 277 * </pre> 278 * 279 * <code>.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1;</code> 280 * 281 * @return The evaluationValue. 282 */ 283 @java.lang.Override getEvaluationValue()284 public com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue getEvaluationValue() { 285 com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue result = 286 com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.forNumber(evaluationValue_); 287 return result == null 288 ? com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.UNRECOGNIZED 289 : result; 290 } 291 292 private byte memoizedIsInitialized = -1; 293 294 @java.lang.Override isInitialized()295 public final boolean isInitialized() { 296 byte isInitialized = memoizedIsInitialized; 297 if (isInitialized == 1) return true; 298 if (isInitialized == 0) return false; 299 300 memoizedIsInitialized = 1; 301 return true; 302 } 303 304 @java.lang.Override writeTo(com.google.protobuf.CodedOutputStream output)305 public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { 306 if (evaluationValue_ 307 != com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue 308 .EVALUATION_VALUE_UNSPECIFIED 309 .getNumber()) { 310 output.writeEnum(1, evaluationValue_); 311 } 312 getUnknownFields().writeTo(output); 313 } 314 315 @java.lang.Override getSerializedSize()316 public int getSerializedSize() { 317 int size = memoizedSize; 318 if (size != -1) return size; 319 320 size = 0; 321 if (evaluationValue_ 322 != com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue 323 .EVALUATION_VALUE_UNSPECIFIED 324 .getNumber()) { 325 size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, evaluationValue_); 326 } 327 size += getUnknownFields().getSerializedSize(); 328 memoizedSize = size; 329 return size; 330 } 331 332 @java.lang.Override equals(final java.lang.Object obj)333 public boolean equals(final java.lang.Object obj) { 334 if (obj == this) { 335 return true; 336 } 337 if (!(obj instanceof com.google.cloud.asset.v1.ConditionEvaluation)) { 338 return super.equals(obj); 339 } 340 com.google.cloud.asset.v1.ConditionEvaluation other = 341 (com.google.cloud.asset.v1.ConditionEvaluation) obj; 342 343 if (evaluationValue_ != other.evaluationValue_) return false; 344 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 345 return true; 346 } 347 348 @java.lang.Override hashCode()349 public int hashCode() { 350 if (memoizedHashCode != 0) { 351 return memoizedHashCode; 352 } 353 int hash = 41; 354 hash = (19 * hash) + getDescriptor().hashCode(); 355 hash = (37 * hash) + EVALUATION_VALUE_FIELD_NUMBER; 356 hash = (53 * hash) + evaluationValue_; 357 hash = (29 * hash) + getUnknownFields().hashCode(); 358 memoizedHashCode = hash; 359 return hash; 360 } 361 parseFrom(java.nio.ByteBuffer data)362 public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom(java.nio.ByteBuffer data) 363 throws com.google.protobuf.InvalidProtocolBufferException { 364 return PARSER.parseFrom(data); 365 } 366 parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)367 public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( 368 java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 369 throws com.google.protobuf.InvalidProtocolBufferException { 370 return PARSER.parseFrom(data, extensionRegistry); 371 } 372 parseFrom( com.google.protobuf.ByteString data)373 public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( 374 com.google.protobuf.ByteString data) 375 throws com.google.protobuf.InvalidProtocolBufferException { 376 return PARSER.parseFrom(data); 377 } 378 parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)379 public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( 380 com.google.protobuf.ByteString data, 381 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 382 throws com.google.protobuf.InvalidProtocolBufferException { 383 return PARSER.parseFrom(data, extensionRegistry); 384 } 385 parseFrom(byte[] data)386 public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom(byte[] data) 387 throws com.google.protobuf.InvalidProtocolBufferException { 388 return PARSER.parseFrom(data); 389 } 390 parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)391 public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( 392 byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 393 throws com.google.protobuf.InvalidProtocolBufferException { 394 return PARSER.parseFrom(data, extensionRegistry); 395 } 396 parseFrom(java.io.InputStream input)397 public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom(java.io.InputStream input) 398 throws java.io.IOException { 399 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 400 } 401 parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)402 public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( 403 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 404 throws java.io.IOException { 405 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 406 PARSER, input, extensionRegistry); 407 } 408 parseDelimitedFrom( java.io.InputStream input)409 public static com.google.cloud.asset.v1.ConditionEvaluation parseDelimitedFrom( 410 java.io.InputStream input) throws java.io.IOException { 411 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); 412 } 413 parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)414 public static com.google.cloud.asset.v1.ConditionEvaluation parseDelimitedFrom( 415 java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) 416 throws java.io.IOException { 417 return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( 418 PARSER, input, extensionRegistry); 419 } 420 parseFrom( com.google.protobuf.CodedInputStream input)421 public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( 422 com.google.protobuf.CodedInputStream input) throws java.io.IOException { 423 return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); 424 } 425 parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)426 public static com.google.cloud.asset.v1.ConditionEvaluation parseFrom( 427 com.google.protobuf.CodedInputStream input, 428 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 429 throws java.io.IOException { 430 return com.google.protobuf.GeneratedMessageV3.parseWithIOException( 431 PARSER, input, extensionRegistry); 432 } 433 434 @java.lang.Override newBuilderForType()435 public Builder newBuilderForType() { 436 return newBuilder(); 437 } 438 newBuilder()439 public static Builder newBuilder() { 440 return DEFAULT_INSTANCE.toBuilder(); 441 } 442 newBuilder(com.google.cloud.asset.v1.ConditionEvaluation prototype)443 public static Builder newBuilder(com.google.cloud.asset.v1.ConditionEvaluation prototype) { 444 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 445 } 446 447 @java.lang.Override toBuilder()448 public Builder toBuilder() { 449 return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); 450 } 451 452 @java.lang.Override newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)453 protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 454 Builder builder = new Builder(parent); 455 return builder; 456 } 457 /** 458 * 459 * 460 * <pre> 461 * The Condition evaluation. 462 * </pre> 463 * 464 * Protobuf type {@code google.cloud.asset.v1.ConditionEvaluation} 465 */ 466 public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder> 467 implements 468 // @@protoc_insertion_point(builder_implements:google.cloud.asset.v1.ConditionEvaluation) 469 com.google.cloud.asset.v1.ConditionEvaluationOrBuilder { getDescriptor()470 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 471 return com.google.cloud.asset.v1.AssetProto 472 .internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; 473 } 474 475 @java.lang.Override 476 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()477 internalGetFieldAccessorTable() { 478 return com.google.cloud.asset.v1.AssetProto 479 .internal_static_google_cloud_asset_v1_ConditionEvaluation_fieldAccessorTable 480 .ensureFieldAccessorsInitialized( 481 com.google.cloud.asset.v1.ConditionEvaluation.class, 482 com.google.cloud.asset.v1.ConditionEvaluation.Builder.class); 483 } 484 485 // Construct using com.google.cloud.asset.v1.ConditionEvaluation.newBuilder() Builder()486 private Builder() {} 487 Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)488 private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 489 super(parent); 490 } 491 492 @java.lang.Override clear()493 public Builder clear() { 494 super.clear(); 495 bitField0_ = 0; 496 evaluationValue_ = 0; 497 return this; 498 } 499 500 @java.lang.Override getDescriptorForType()501 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { 502 return com.google.cloud.asset.v1.AssetProto 503 .internal_static_google_cloud_asset_v1_ConditionEvaluation_descriptor; 504 } 505 506 @java.lang.Override getDefaultInstanceForType()507 public com.google.cloud.asset.v1.ConditionEvaluation getDefaultInstanceForType() { 508 return com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance(); 509 } 510 511 @java.lang.Override build()512 public com.google.cloud.asset.v1.ConditionEvaluation build() { 513 com.google.cloud.asset.v1.ConditionEvaluation result = buildPartial(); 514 if (!result.isInitialized()) { 515 throw newUninitializedMessageException(result); 516 } 517 return result; 518 } 519 520 @java.lang.Override buildPartial()521 public com.google.cloud.asset.v1.ConditionEvaluation buildPartial() { 522 com.google.cloud.asset.v1.ConditionEvaluation result = 523 new com.google.cloud.asset.v1.ConditionEvaluation(this); 524 if (bitField0_ != 0) { 525 buildPartial0(result); 526 } 527 onBuilt(); 528 return result; 529 } 530 buildPartial0(com.google.cloud.asset.v1.ConditionEvaluation result)531 private void buildPartial0(com.google.cloud.asset.v1.ConditionEvaluation result) { 532 int from_bitField0_ = bitField0_; 533 if (((from_bitField0_ & 0x00000001) != 0)) { 534 result.evaluationValue_ = evaluationValue_; 535 } 536 } 537 538 @java.lang.Override clone()539 public Builder clone() { 540 return super.clone(); 541 } 542 543 @java.lang.Override setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)544 public Builder setField( 545 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 546 return super.setField(field, value); 547 } 548 549 @java.lang.Override clearField(com.google.protobuf.Descriptors.FieldDescriptor field)550 public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { 551 return super.clearField(field); 552 } 553 554 @java.lang.Override clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)555 public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { 556 return super.clearOneof(oneof); 557 } 558 559 @java.lang.Override setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)560 public Builder setRepeatedField( 561 com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { 562 return super.setRepeatedField(field, index, value); 563 } 564 565 @java.lang.Override addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)566 public Builder addRepeatedField( 567 com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { 568 return super.addRepeatedField(field, value); 569 } 570 571 @java.lang.Override mergeFrom(com.google.protobuf.Message other)572 public Builder mergeFrom(com.google.protobuf.Message other) { 573 if (other instanceof com.google.cloud.asset.v1.ConditionEvaluation) { 574 return mergeFrom((com.google.cloud.asset.v1.ConditionEvaluation) other); 575 } else { 576 super.mergeFrom(other); 577 return this; 578 } 579 } 580 mergeFrom(com.google.cloud.asset.v1.ConditionEvaluation other)581 public Builder mergeFrom(com.google.cloud.asset.v1.ConditionEvaluation other) { 582 if (other == com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance()) return this; 583 if (other.evaluationValue_ != 0) { 584 setEvaluationValueValue(other.getEvaluationValueValue()); 585 } 586 this.mergeUnknownFields(other.getUnknownFields()); 587 onChanged(); 588 return this; 589 } 590 591 @java.lang.Override isInitialized()592 public final boolean isInitialized() { 593 return true; 594 } 595 596 @java.lang.Override mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)597 public Builder mergeFrom( 598 com.google.protobuf.CodedInputStream input, 599 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 600 throws java.io.IOException { 601 if (extensionRegistry == null) { 602 throw new java.lang.NullPointerException(); 603 } 604 try { 605 boolean done = false; 606 while (!done) { 607 int tag = input.readTag(); 608 switch (tag) { 609 case 0: 610 done = true; 611 break; 612 case 8: 613 { 614 evaluationValue_ = input.readEnum(); 615 bitField0_ |= 0x00000001; 616 break; 617 } // case 8 618 default: 619 { 620 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 621 done = true; // was an endgroup tag 622 } 623 break; 624 } // default: 625 } // switch (tag) 626 } // while (!done) 627 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 628 throw e.unwrapIOException(); 629 } finally { 630 onChanged(); 631 } // finally 632 return this; 633 } 634 635 private int bitField0_; 636 637 private int evaluationValue_ = 0; 638 /** 639 * 640 * 641 * <pre> 642 * The evaluation result. 643 * </pre> 644 * 645 * <code>.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1;</code> 646 * 647 * @return The enum numeric value on the wire for evaluationValue. 648 */ 649 @java.lang.Override getEvaluationValueValue()650 public int getEvaluationValueValue() { 651 return evaluationValue_; 652 } 653 /** 654 * 655 * 656 * <pre> 657 * The evaluation result. 658 * </pre> 659 * 660 * <code>.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1;</code> 661 * 662 * @param value The enum numeric value on the wire for evaluationValue to set. 663 * @return This builder for chaining. 664 */ setEvaluationValueValue(int value)665 public Builder setEvaluationValueValue(int value) { 666 evaluationValue_ = value; 667 bitField0_ |= 0x00000001; 668 onChanged(); 669 return this; 670 } 671 /** 672 * 673 * 674 * <pre> 675 * The evaluation result. 676 * </pre> 677 * 678 * <code>.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1;</code> 679 * 680 * @return The evaluationValue. 681 */ 682 @java.lang.Override getEvaluationValue()683 public com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue getEvaluationValue() { 684 com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue result = 685 com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.forNumber(evaluationValue_); 686 return result == null 687 ? com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue.UNRECOGNIZED 688 : result; 689 } 690 /** 691 * 692 * 693 * <pre> 694 * The evaluation result. 695 * </pre> 696 * 697 * <code>.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1;</code> 698 * 699 * @param value The evaluationValue to set. 700 * @return This builder for chaining. 701 */ setEvaluationValue( com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue value)702 public Builder setEvaluationValue( 703 com.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue value) { 704 if (value == null) { 705 throw new NullPointerException(); 706 } 707 bitField0_ |= 0x00000001; 708 evaluationValue_ = value.getNumber(); 709 onChanged(); 710 return this; 711 } 712 /** 713 * 714 * 715 * <pre> 716 * The evaluation result. 717 * </pre> 718 * 719 * <code>.google.cloud.asset.v1.ConditionEvaluation.EvaluationValue evaluation_value = 1;</code> 720 * 721 * @return This builder for chaining. 722 */ clearEvaluationValue()723 public Builder clearEvaluationValue() { 724 bitField0_ = (bitField0_ & ~0x00000001); 725 evaluationValue_ = 0; 726 onChanged(); 727 return this; 728 } 729 730 @java.lang.Override setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)731 public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { 732 return super.setUnknownFields(unknownFields); 733 } 734 735 @java.lang.Override mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)736 public final Builder mergeUnknownFields( 737 final com.google.protobuf.UnknownFieldSet unknownFields) { 738 return super.mergeUnknownFields(unknownFields); 739 } 740 741 // @@protoc_insertion_point(builder_scope:google.cloud.asset.v1.ConditionEvaluation) 742 } 743 744 // @@protoc_insertion_point(class_scope:google.cloud.asset.v1.ConditionEvaluation) 745 private static final com.google.cloud.asset.v1.ConditionEvaluation DEFAULT_INSTANCE; 746 747 static { 748 DEFAULT_INSTANCE = new com.google.cloud.asset.v1.ConditionEvaluation(); 749 } 750 getDefaultInstance()751 public static com.google.cloud.asset.v1.ConditionEvaluation getDefaultInstance() { 752 return DEFAULT_INSTANCE; 753 } 754 755 private static final com.google.protobuf.Parser<ConditionEvaluation> PARSER = 756 new com.google.protobuf.AbstractParser<ConditionEvaluation>() { 757 @java.lang.Override 758 public ConditionEvaluation parsePartialFrom( 759 com.google.protobuf.CodedInputStream input, 760 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 761 throws com.google.protobuf.InvalidProtocolBufferException { 762 Builder builder = newBuilder(); 763 try { 764 builder.mergeFrom(input, extensionRegistry); 765 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 766 throw e.setUnfinishedMessage(builder.buildPartial()); 767 } catch (com.google.protobuf.UninitializedMessageException e) { 768 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 769 } catch (java.io.IOException e) { 770 throw new com.google.protobuf.InvalidProtocolBufferException(e) 771 .setUnfinishedMessage(builder.buildPartial()); 772 } 773 return builder.buildPartial(); 774 } 775 }; 776 parser()777 public static com.google.protobuf.Parser<ConditionEvaluation> parser() { 778 return PARSER; 779 } 780 781 @java.lang.Override getParserForType()782 public com.google.protobuf.Parser<ConditionEvaluation> getParserForType() { 783 return PARSER; 784 } 785 786 @java.lang.Override getDefaultInstanceForType()787 public com.google.cloud.asset.v1.ConditionEvaluation getDefaultInstanceForType() { 788 return DEFAULT_INSTANCE; 789 } 790 } 791