001// Generated by the protocol buffer compiler. DO NOT EDIT! 002// NO CHECKED-IN PROTOBUF GENCODE 003// source: java/dev/enola/common/protobuf/validation.proto 004// Protobuf Java Version: 4.32.0 005 006package dev.enola.common.validation; 007 008/** 009 * Protobuf type {@code dev.enola.validation.Validation} 010 */ 011@com.google.protobuf.Generated 012public final class Validation extends 013 com.google.protobuf.GeneratedMessage implements 014 // @@protoc_insertion_point(message_implements:dev.enola.validation.Validation) 015 ValidationOrBuilder { 016private static final long serialVersionUID = 0L; 017 static { 018 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( 019 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, 020 /* major= */ 4, 021 /* minor= */ 32, 022 /* patch= */ 0, 023 /* suffix= */ "", 024 Validation.class.getName()); 025 } 026 // Use Validation.newBuilder() to construct. 027 private Validation(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 028 super(builder); 029 } 030 private Validation() { 031 path_ = ""; 032 error_ = ""; 033 } 034 035 public static final com.google.protobuf.Descriptors.Descriptor 036 getDescriptor() { 037 return dev.enola.common.validation.ValidationOuterClass.internal_static_dev_enola_validation_Validation_descriptor; 038 } 039 040 @java.lang.Override 041 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 042 internalGetFieldAccessorTable() { 043 return dev.enola.common.validation.ValidationOuterClass.internal_static_dev_enola_validation_Validation_fieldAccessorTable 044 .ensureFieldAccessorsInitialized( 045 dev.enola.common.validation.Validation.class, dev.enola.common.validation.Validation.Builder.class); 046 } 047 048 public static final int PATH_FIELD_NUMBER = 1; 049 @SuppressWarnings("serial") 050 private volatile java.lang.Object path_ = ""; 051 /** 052 * <pre> 053 * As in 054 * https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/field_mask.proto 055 * </pre> 056 * 057 * <code>string path = 1;</code> 058 * @return The path. 059 */ 060 @java.lang.Override 061 public java.lang.String getPath() { 062 java.lang.Object ref = path_; 063 if (ref instanceof java.lang.String) { 064 return (java.lang.String) ref; 065 } else { 066 com.google.protobuf.ByteString bs = 067 (com.google.protobuf.ByteString) ref; 068 java.lang.String s = bs.toStringUtf8(); 069 path_ = s; 070 return s; 071 } 072 } 073 /** 074 * <pre> 075 * As in 076 * https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/field_mask.proto 077 * </pre> 078 * 079 * <code>string path = 1;</code> 080 * @return The bytes for path. 081 */ 082 @java.lang.Override 083 public com.google.protobuf.ByteString 084 getPathBytes() { 085 java.lang.Object ref = path_; 086 if (ref instanceof java.lang.String) { 087 com.google.protobuf.ByteString b = 088 com.google.protobuf.ByteString.copyFromUtf8( 089 (java.lang.String) ref); 090 path_ = b; 091 return b; 092 } else { 093 return (com.google.protobuf.ByteString) ref; 094 } 095 } 096 097 public static final int ERROR_FIELD_NUMBER = 2; 098 @SuppressWarnings("serial") 099 private volatile java.lang.Object error_ = ""; 100 /** 101 * <code>string error = 2;</code> 102 * @return The error. 103 */ 104 @java.lang.Override 105 public java.lang.String getError() { 106 java.lang.Object ref = error_; 107 if (ref instanceof java.lang.String) { 108 return (java.lang.String) ref; 109 } else { 110 com.google.protobuf.ByteString bs = 111 (com.google.protobuf.ByteString) ref; 112 java.lang.String s = bs.toStringUtf8(); 113 error_ = s; 114 return s; 115 } 116 } 117 /** 118 * <code>string error = 2;</code> 119 * @return The bytes for error. 120 */ 121 @java.lang.Override 122 public com.google.protobuf.ByteString 123 getErrorBytes() { 124 java.lang.Object ref = error_; 125 if (ref instanceof java.lang.String) { 126 com.google.protobuf.ByteString b = 127 com.google.protobuf.ByteString.copyFromUtf8( 128 (java.lang.String) ref); 129 error_ = b; 130 return b; 131 } else { 132 return (com.google.protobuf.ByteString) ref; 133 } 134 } 135 136 private byte memoizedIsInitialized = -1; 137 @java.lang.Override 138 public final boolean isInitialized() { 139 byte isInitialized = memoizedIsInitialized; 140 if (isInitialized == 1) return true; 141 if (isInitialized == 0) return false; 142 143 memoizedIsInitialized = 1; 144 return true; 145 } 146 147 @java.lang.Override 148 public void writeTo(com.google.protobuf.CodedOutputStream output) 149 throws java.io.IOException { 150 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(path_)) { 151 com.google.protobuf.GeneratedMessage.writeString(output, 1, path_); 152 } 153 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(error_)) { 154 com.google.protobuf.GeneratedMessage.writeString(output, 2, error_); 155 } 156 getUnknownFields().writeTo(output); 157 } 158 159 @java.lang.Override 160 public int getSerializedSize() { 161 int size = memoizedSize; 162 if (size != -1) return size; 163 164 size = 0; 165 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(path_)) { 166 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, path_); 167 } 168 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(error_)) { 169 size += com.google.protobuf.GeneratedMessage.computeStringSize(2, error_); 170 } 171 size += getUnknownFields().getSerializedSize(); 172 memoizedSize = size; 173 return size; 174 } 175 176 @java.lang.Override 177 public boolean equals(final java.lang.Object obj) { 178 if (obj == this) { 179 return true; 180 } 181 if (!(obj instanceof dev.enola.common.validation.Validation)) { 182 return super.equals(obj); 183 } 184 dev.enola.common.validation.Validation other = (dev.enola.common.validation.Validation) obj; 185 186 if (!getPath() 187 .equals(other.getPath())) return false; 188 if (!getError() 189 .equals(other.getError())) return false; 190 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 191 return true; 192 } 193 194 @java.lang.Override 195 public int hashCode() { 196 if (memoizedHashCode != 0) { 197 return memoizedHashCode; 198 } 199 int hash = 41; 200 hash = (19 * hash) + getDescriptor().hashCode(); 201 hash = (37 * hash) + PATH_FIELD_NUMBER; 202 hash = (53 * hash) + getPath().hashCode(); 203 hash = (37 * hash) + ERROR_FIELD_NUMBER; 204 hash = (53 * hash) + getError().hashCode(); 205 hash = (29 * hash) + getUnknownFields().hashCode(); 206 memoizedHashCode = hash; 207 return hash; 208 } 209 210 public static dev.enola.common.validation.Validation parseFrom( 211 java.nio.ByteBuffer data) 212 throws com.google.protobuf.InvalidProtocolBufferException { 213 return PARSER.parseFrom(data); 214 } 215 public static dev.enola.common.validation.Validation parseFrom( 216 java.nio.ByteBuffer data, 217 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 218 throws com.google.protobuf.InvalidProtocolBufferException { 219 return PARSER.parseFrom(data, extensionRegistry); 220 } 221 public static dev.enola.common.validation.Validation parseFrom( 222 com.google.protobuf.ByteString data) 223 throws com.google.protobuf.InvalidProtocolBufferException { 224 return PARSER.parseFrom(data); 225 } 226 public static dev.enola.common.validation.Validation parseFrom( 227 com.google.protobuf.ByteString data, 228 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 229 throws com.google.protobuf.InvalidProtocolBufferException { 230 return PARSER.parseFrom(data, extensionRegistry); 231 } 232 public static dev.enola.common.validation.Validation parseFrom(byte[] data) 233 throws com.google.protobuf.InvalidProtocolBufferException { 234 return PARSER.parseFrom(data); 235 } 236 public static dev.enola.common.validation.Validation parseFrom( 237 byte[] data, 238 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 239 throws com.google.protobuf.InvalidProtocolBufferException { 240 return PARSER.parseFrom(data, extensionRegistry); 241 } 242 public static dev.enola.common.validation.Validation parseFrom(java.io.InputStream input) 243 throws java.io.IOException { 244 return com.google.protobuf.GeneratedMessage 245 .parseWithIOException(PARSER, input); 246 } 247 public static dev.enola.common.validation.Validation parseFrom( 248 java.io.InputStream input, 249 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 250 throws java.io.IOException { 251 return com.google.protobuf.GeneratedMessage 252 .parseWithIOException(PARSER, input, extensionRegistry); 253 } 254 255 public static dev.enola.common.validation.Validation parseDelimitedFrom(java.io.InputStream input) 256 throws java.io.IOException { 257 return com.google.protobuf.GeneratedMessage 258 .parseDelimitedWithIOException(PARSER, input); 259 } 260 261 public static dev.enola.common.validation.Validation parseDelimitedFrom( 262 java.io.InputStream input, 263 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 264 throws java.io.IOException { 265 return com.google.protobuf.GeneratedMessage 266 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 267 } 268 public static dev.enola.common.validation.Validation parseFrom( 269 com.google.protobuf.CodedInputStream input) 270 throws java.io.IOException { 271 return com.google.protobuf.GeneratedMessage 272 .parseWithIOException(PARSER, input); 273 } 274 public static dev.enola.common.validation.Validation parseFrom( 275 com.google.protobuf.CodedInputStream input, 276 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 277 throws java.io.IOException { 278 return com.google.protobuf.GeneratedMessage 279 .parseWithIOException(PARSER, input, extensionRegistry); 280 } 281 282 @java.lang.Override 283 public Builder newBuilderForType() { return newBuilder(); } 284 public static Builder newBuilder() { 285 return DEFAULT_INSTANCE.toBuilder(); 286 } 287 public static Builder newBuilder(dev.enola.common.validation.Validation prototype) { 288 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 289 } 290 @java.lang.Override 291 public Builder toBuilder() { 292 return this == DEFAULT_INSTANCE 293 ? new Builder() : new Builder().mergeFrom(this); 294 } 295 296 @java.lang.Override 297 protected Builder newBuilderForType( 298 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 299 Builder builder = new Builder(parent); 300 return builder; 301 } 302 /** 303 * Protobuf type {@code dev.enola.validation.Validation} 304 */ 305 public static final class Builder extends 306 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 307 // @@protoc_insertion_point(builder_implements:dev.enola.validation.Validation) 308 dev.enola.common.validation.ValidationOrBuilder { 309 public static final com.google.protobuf.Descriptors.Descriptor 310 getDescriptor() { 311 return dev.enola.common.validation.ValidationOuterClass.internal_static_dev_enola_validation_Validation_descriptor; 312 } 313 314 @java.lang.Override 315 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 316 internalGetFieldAccessorTable() { 317 return dev.enola.common.validation.ValidationOuterClass.internal_static_dev_enola_validation_Validation_fieldAccessorTable 318 .ensureFieldAccessorsInitialized( 319 dev.enola.common.validation.Validation.class, dev.enola.common.validation.Validation.Builder.class); 320 } 321 322 // Construct using dev.enola.common.validation.Validation.newBuilder() 323 private Builder() { 324 325 } 326 327 private Builder( 328 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 329 super(parent); 330 331 } 332 @java.lang.Override 333 public Builder clear() { 334 super.clear(); 335 bitField0_ = 0; 336 path_ = ""; 337 error_ = ""; 338 return this; 339 } 340 341 @java.lang.Override 342 public com.google.protobuf.Descriptors.Descriptor 343 getDescriptorForType() { 344 return dev.enola.common.validation.ValidationOuterClass.internal_static_dev_enola_validation_Validation_descriptor; 345 } 346 347 @java.lang.Override 348 public dev.enola.common.validation.Validation getDefaultInstanceForType() { 349 return dev.enola.common.validation.Validation.getDefaultInstance(); 350 } 351 352 @java.lang.Override 353 public dev.enola.common.validation.Validation build() { 354 dev.enola.common.validation.Validation result = buildPartial(); 355 if (!result.isInitialized()) { 356 throw newUninitializedMessageException(result); 357 } 358 return result; 359 } 360 361 @java.lang.Override 362 public dev.enola.common.validation.Validation buildPartial() { 363 dev.enola.common.validation.Validation result = new dev.enola.common.validation.Validation(this); 364 if (bitField0_ != 0) { buildPartial0(result); } 365 onBuilt(); 366 return result; 367 } 368 369 private void buildPartial0(dev.enola.common.validation.Validation result) { 370 int from_bitField0_ = bitField0_; 371 if (((from_bitField0_ & 0x00000001) != 0)) { 372 result.path_ = path_; 373 } 374 if (((from_bitField0_ & 0x00000002) != 0)) { 375 result.error_ = error_; 376 } 377 } 378 379 @java.lang.Override 380 public Builder mergeFrom(com.google.protobuf.Message other) { 381 if (other instanceof dev.enola.common.validation.Validation) { 382 return mergeFrom((dev.enola.common.validation.Validation)other); 383 } else { 384 super.mergeFrom(other); 385 return this; 386 } 387 } 388 389 public Builder mergeFrom(dev.enola.common.validation.Validation other) { 390 if (other == dev.enola.common.validation.Validation.getDefaultInstance()) return this; 391 if (!other.getPath().isEmpty()) { 392 path_ = other.path_; 393 bitField0_ |= 0x00000001; 394 onChanged(); 395 } 396 if (!other.getError().isEmpty()) { 397 error_ = other.error_; 398 bitField0_ |= 0x00000002; 399 onChanged(); 400 } 401 this.mergeUnknownFields(other.getUnknownFields()); 402 onChanged(); 403 return this; 404 } 405 406 @java.lang.Override 407 public final boolean isInitialized() { 408 return true; 409 } 410 411 @java.lang.Override 412 public Builder mergeFrom( 413 com.google.protobuf.CodedInputStream input, 414 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 415 throws java.io.IOException { 416 if (extensionRegistry == null) { 417 throw new java.lang.NullPointerException(); 418 } 419 try { 420 boolean done = false; 421 while (!done) { 422 int tag = input.readTag(); 423 switch (tag) { 424 case 0: 425 done = true; 426 break; 427 case 10: { 428 path_ = input.readStringRequireUtf8(); 429 bitField0_ |= 0x00000001; 430 break; 431 } // case 10 432 case 18: { 433 error_ = input.readStringRequireUtf8(); 434 bitField0_ |= 0x00000002; 435 break; 436 } // case 18 437 default: { 438 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 439 done = true; // was an endgroup tag 440 } 441 break; 442 } // default: 443 } // switch (tag) 444 } // while (!done) 445 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 446 throw e.unwrapIOException(); 447 } finally { 448 onChanged(); 449 } // finally 450 return this; 451 } 452 private int bitField0_; 453 454 private java.lang.Object path_ = ""; 455 /** 456 * <pre> 457 * As in 458 * https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/field_mask.proto 459 * </pre> 460 * 461 * <code>string path = 1;</code> 462 * @return The path. 463 */ 464 public java.lang.String getPath() { 465 java.lang.Object ref = path_; 466 if (!(ref instanceof java.lang.String)) { 467 com.google.protobuf.ByteString bs = 468 (com.google.protobuf.ByteString) ref; 469 java.lang.String s = bs.toStringUtf8(); 470 path_ = s; 471 return s; 472 } else { 473 return (java.lang.String) ref; 474 } 475 } 476 /** 477 * <pre> 478 * As in 479 * https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/field_mask.proto 480 * </pre> 481 * 482 * <code>string path = 1;</code> 483 * @return The bytes for path. 484 */ 485 public com.google.protobuf.ByteString 486 getPathBytes() { 487 java.lang.Object ref = path_; 488 if (ref instanceof String) { 489 com.google.protobuf.ByteString b = 490 com.google.protobuf.ByteString.copyFromUtf8( 491 (java.lang.String) ref); 492 path_ = b; 493 return b; 494 } else { 495 return (com.google.protobuf.ByteString) ref; 496 } 497 } 498 /** 499 * <pre> 500 * As in 501 * https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/field_mask.proto 502 * </pre> 503 * 504 * <code>string path = 1;</code> 505 * @param value The path to set. 506 * @return This builder for chaining. 507 */ 508 public Builder setPath( 509 java.lang.String value) { 510 if (value == null) { throw new NullPointerException(); } 511 path_ = value; 512 bitField0_ |= 0x00000001; 513 onChanged(); 514 return this; 515 } 516 /** 517 * <pre> 518 * As in 519 * https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/field_mask.proto 520 * </pre> 521 * 522 * <code>string path = 1;</code> 523 * @return This builder for chaining. 524 */ 525 public Builder clearPath() { 526 path_ = getDefaultInstance().getPath(); 527 bitField0_ = (bitField0_ & ~0x00000001); 528 onChanged(); 529 return this; 530 } 531 /** 532 * <pre> 533 * As in 534 * https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/field_mask.proto 535 * </pre> 536 * 537 * <code>string path = 1;</code> 538 * @param value The bytes for path to set. 539 * @return This builder for chaining. 540 */ 541 public Builder setPathBytes( 542 com.google.protobuf.ByteString value) { 543 if (value == null) { throw new NullPointerException(); } 544 checkByteStringIsUtf8(value); 545 path_ = value; 546 bitField0_ |= 0x00000001; 547 onChanged(); 548 return this; 549 } 550 551 private java.lang.Object error_ = ""; 552 /** 553 * <code>string error = 2;</code> 554 * @return The error. 555 */ 556 public java.lang.String getError() { 557 java.lang.Object ref = error_; 558 if (!(ref instanceof java.lang.String)) { 559 com.google.protobuf.ByteString bs = 560 (com.google.protobuf.ByteString) ref; 561 java.lang.String s = bs.toStringUtf8(); 562 error_ = s; 563 return s; 564 } else { 565 return (java.lang.String) ref; 566 } 567 } 568 /** 569 * <code>string error = 2;</code> 570 * @return The bytes for error. 571 */ 572 public com.google.protobuf.ByteString 573 getErrorBytes() { 574 java.lang.Object ref = error_; 575 if (ref instanceof String) { 576 com.google.protobuf.ByteString b = 577 com.google.protobuf.ByteString.copyFromUtf8( 578 (java.lang.String) ref); 579 error_ = b; 580 return b; 581 } else { 582 return (com.google.protobuf.ByteString) ref; 583 } 584 } 585 /** 586 * <code>string error = 2;</code> 587 * @param value The error to set. 588 * @return This builder for chaining. 589 */ 590 public Builder setError( 591 java.lang.String value) { 592 if (value == null) { throw new NullPointerException(); } 593 error_ = value; 594 bitField0_ |= 0x00000002; 595 onChanged(); 596 return this; 597 } 598 /** 599 * <code>string error = 2;</code> 600 * @return This builder for chaining. 601 */ 602 public Builder clearError() { 603 error_ = getDefaultInstance().getError(); 604 bitField0_ = (bitField0_ & ~0x00000002); 605 onChanged(); 606 return this; 607 } 608 /** 609 * <code>string error = 2;</code> 610 * @param value The bytes for error to set. 611 * @return This builder for chaining. 612 */ 613 public Builder setErrorBytes( 614 com.google.protobuf.ByteString value) { 615 if (value == null) { throw new NullPointerException(); } 616 checkByteStringIsUtf8(value); 617 error_ = value; 618 bitField0_ |= 0x00000002; 619 onChanged(); 620 return this; 621 } 622 623 // @@protoc_insertion_point(builder_scope:dev.enola.validation.Validation) 624 } 625 626 // @@protoc_insertion_point(class_scope:dev.enola.validation.Validation) 627 private static final dev.enola.common.validation.Validation DEFAULT_INSTANCE; 628 static { 629 DEFAULT_INSTANCE = new dev.enola.common.validation.Validation(); 630 } 631 632 public static dev.enola.common.validation.Validation getDefaultInstance() { 633 return DEFAULT_INSTANCE; 634 } 635 636 private static final com.google.protobuf.Parser<Validation> 637 PARSER = new com.google.protobuf.AbstractParser<Validation>() { 638 @java.lang.Override 639 public Validation parsePartialFrom( 640 com.google.protobuf.CodedInputStream input, 641 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 642 throws com.google.protobuf.InvalidProtocolBufferException { 643 Builder builder = newBuilder(); 644 try { 645 builder.mergeFrom(input, extensionRegistry); 646 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 647 throw e.setUnfinishedMessage(builder.buildPartial()); 648 } catch (com.google.protobuf.UninitializedMessageException e) { 649 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 650 } catch (java.io.IOException e) { 651 throw new com.google.protobuf.InvalidProtocolBufferException(e) 652 .setUnfinishedMessage(builder.buildPartial()); 653 } 654 return builder.buildPartial(); 655 } 656 }; 657 658 public static com.google.protobuf.Parser<Validation> parser() { 659 return PARSER; 660 } 661 662 @java.lang.Override 663 public com.google.protobuf.Parser<Validation> getParserForType() { 664 return PARSER; 665 } 666 667 @java.lang.Override 668 public dev.enola.common.validation.Validation getDefaultInstanceForType() { 669 return DEFAULT_INSTANCE; 670 } 671 672} 673