001// Generated by the protocol buffer compiler. DO NOT EDIT! 002// source: ws-settings.proto 003 004package org.sonarqube.ws; 005 006public final class Settings { 007 private Settings() {} 008 public static void registerAllExtensions( 009 com.google.protobuf.ExtensionRegistry registry) { 010 } 011 /** 012 * Protobuf enum {@code sonarqube.ws.settings.Type} 013 */ 014 public enum Type 015 implements com.google.protobuf.ProtocolMessageEnum { 016 /** 017 * <code>STRING = 0;</code> 018 */ 019 STRING(0, 0), 020 /** 021 * <code>TEXT = 1;</code> 022 */ 023 TEXT(1, 1), 024 /** 025 * <code>PASSWORD = 2;</code> 026 */ 027 PASSWORD(2, 2), 028 /** 029 * <code>BOOLEAN = 3;</code> 030 */ 031 BOOLEAN(3, 3), 032 /** 033 * <code>INTEGER = 4;</code> 034 */ 035 INTEGER(4, 4), 036 /** 037 * <code>FLOAT = 5;</code> 038 */ 039 FLOAT(5, 5), 040 /** 041 * <code>LONG = 6;</code> 042 */ 043 LONG(6, 6), 044 /** 045 * <code>REGULAR_EXPRESSION = 7;</code> 046 */ 047 REGULAR_EXPRESSION(7, 7), 048 /** 049 * <code>METRIC = 8;</code> 050 */ 051 METRIC(8, 8), 052 /** 053 * <code>USER_LOGIN = 9;</code> 054 */ 055 USER_LOGIN(9, 9), 056 /** 057 * <code>METRIC_LEVEL = 10;</code> 058 */ 059 METRIC_LEVEL(10, 10), 060 /** 061 * <code>SINGLE_SELECT_LIST = 11;</code> 062 */ 063 SINGLE_SELECT_LIST(11, 11), 064 /** 065 * <code>PROPERTY_SET = 12;</code> 066 */ 067 PROPERTY_SET(12, 12), 068 /** 069 * <code>LICENSE = 13;</code> 070 */ 071 LICENSE(13, 13), 072 ; 073 074 /** 075 * <code>STRING = 0;</code> 076 */ 077 public static final int STRING_VALUE = 0; 078 /** 079 * <code>TEXT = 1;</code> 080 */ 081 public static final int TEXT_VALUE = 1; 082 /** 083 * <code>PASSWORD = 2;</code> 084 */ 085 public static final int PASSWORD_VALUE = 2; 086 /** 087 * <code>BOOLEAN = 3;</code> 088 */ 089 public static final int BOOLEAN_VALUE = 3; 090 /** 091 * <code>INTEGER = 4;</code> 092 */ 093 public static final int INTEGER_VALUE = 4; 094 /** 095 * <code>FLOAT = 5;</code> 096 */ 097 public static final int FLOAT_VALUE = 5; 098 /** 099 * <code>LONG = 6;</code> 100 */ 101 public static final int LONG_VALUE = 6; 102 /** 103 * <code>REGULAR_EXPRESSION = 7;</code> 104 */ 105 public static final int REGULAR_EXPRESSION_VALUE = 7; 106 /** 107 * <code>METRIC = 8;</code> 108 */ 109 public static final int METRIC_VALUE = 8; 110 /** 111 * <code>USER_LOGIN = 9;</code> 112 */ 113 public static final int USER_LOGIN_VALUE = 9; 114 /** 115 * <code>METRIC_LEVEL = 10;</code> 116 */ 117 public static final int METRIC_LEVEL_VALUE = 10; 118 /** 119 * <code>SINGLE_SELECT_LIST = 11;</code> 120 */ 121 public static final int SINGLE_SELECT_LIST_VALUE = 11; 122 /** 123 * <code>PROPERTY_SET = 12;</code> 124 */ 125 public static final int PROPERTY_SET_VALUE = 12; 126 /** 127 * <code>LICENSE = 13;</code> 128 */ 129 public static final int LICENSE_VALUE = 13; 130 131 132 public final int getNumber() { 133 return value; 134 } 135 136 public static Type valueOf(int value) { 137 switch (value) { 138 case 0: return STRING; 139 case 1: return TEXT; 140 case 2: return PASSWORD; 141 case 3: return BOOLEAN; 142 case 4: return INTEGER; 143 case 5: return FLOAT; 144 case 6: return LONG; 145 case 7: return REGULAR_EXPRESSION; 146 case 8: return METRIC; 147 case 9: return USER_LOGIN; 148 case 10: return METRIC_LEVEL; 149 case 11: return SINGLE_SELECT_LIST; 150 case 12: return PROPERTY_SET; 151 case 13: return LICENSE; 152 default: return null; 153 } 154 } 155 156 public static com.google.protobuf.Internal.EnumLiteMap<Type> 157 internalGetValueMap() { 158 return internalValueMap; 159 } 160 private static final com.google.protobuf.Internal.EnumLiteMap< 161 Type> internalValueMap = 162 new com.google.protobuf.Internal.EnumLiteMap<Type>() { 163 public Type findValueByNumber(int number) { 164 return Type.valueOf(number); 165 } 166 }; 167 168 public final com.google.protobuf.Descriptors.EnumValueDescriptor 169 getValueDescriptor() { 170 return getDescriptor().getValues().get(index); 171 } 172 public final com.google.protobuf.Descriptors.EnumDescriptor 173 getDescriptorForType() { 174 return getDescriptor(); 175 } 176 public static final com.google.protobuf.Descriptors.EnumDescriptor 177 getDescriptor() { 178 return org.sonarqube.ws.Settings.getDescriptor().getEnumTypes().get(0); 179 } 180 181 private static final Type[] VALUES = values(); 182 183 public static Type valueOf( 184 com.google.protobuf.Descriptors.EnumValueDescriptor desc) { 185 if (desc.getType() != getDescriptor()) { 186 throw new java.lang.IllegalArgumentException( 187 "EnumValueDescriptor is not for this type."); 188 } 189 return VALUES[desc.getIndex()]; 190 } 191 192 private final int index; 193 private final int value; 194 195 private Type(int index, int value) { 196 this.index = index; 197 this.value = value; 198 } 199 200 // @@protoc_insertion_point(enum_scope:sonarqube.ws.settings.Type) 201 } 202 203 public interface ListDefinitionsWsResponseOrBuilder extends 204 // @@protoc_insertion_point(interface_extends:sonarqube.ws.settings.ListDefinitionsWsResponse) 205 com.google.protobuf.MessageOrBuilder { 206 207 /** 208 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 209 */ 210 java.util.List<org.sonarqube.ws.Settings.Definition> 211 getDefinitionsList(); 212 /** 213 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 214 */ 215 org.sonarqube.ws.Settings.Definition getDefinitions(int index); 216 /** 217 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 218 */ 219 int getDefinitionsCount(); 220 /** 221 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 222 */ 223 java.util.List<? extends org.sonarqube.ws.Settings.DefinitionOrBuilder> 224 getDefinitionsOrBuilderList(); 225 /** 226 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 227 */ 228 org.sonarqube.ws.Settings.DefinitionOrBuilder getDefinitionsOrBuilder( 229 int index); 230 } 231 /** 232 * Protobuf type {@code sonarqube.ws.settings.ListDefinitionsWsResponse} 233 * 234 * <pre> 235 * Response of GET api/settings/list_definitions 236 * </pre> 237 */ 238 public static final class ListDefinitionsWsResponse extends 239 com.google.protobuf.GeneratedMessage implements 240 // @@protoc_insertion_point(message_implements:sonarqube.ws.settings.ListDefinitionsWsResponse) 241 ListDefinitionsWsResponseOrBuilder { 242 // Use ListDefinitionsWsResponse.newBuilder() to construct. 243 private ListDefinitionsWsResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 244 super(builder); 245 } 246 private ListDefinitionsWsResponse() { 247 definitions_ = java.util.Collections.emptyList(); 248 } 249 250 @java.lang.Override 251 public final com.google.protobuf.UnknownFieldSet 252 getUnknownFields() { 253 return this.unknownFields; 254 } 255 private ListDefinitionsWsResponse( 256 com.google.protobuf.CodedInputStream input, 257 com.google.protobuf.ExtensionRegistryLite extensionRegistry) { 258 this(); 259 int mutable_bitField0_ = 0; 260 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 261 com.google.protobuf.UnknownFieldSet.newBuilder(); 262 try { 263 boolean done = false; 264 while (!done) { 265 int tag = input.readTag(); 266 switch (tag) { 267 case 0: 268 done = true; 269 break; 270 default: { 271 if (!parseUnknownField(input, unknownFields, 272 extensionRegistry, tag)) { 273 done = true; 274 } 275 break; 276 } 277 case 10: { 278 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 279 definitions_ = new java.util.ArrayList<org.sonarqube.ws.Settings.Definition>(); 280 mutable_bitField0_ |= 0x00000001; 281 } 282 definitions_.add(input.readMessage(org.sonarqube.ws.Settings.Definition.parser(), extensionRegistry)); 283 break; 284 } 285 } 286 } 287 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 288 throw new RuntimeException(e.setUnfinishedMessage(this)); 289 } catch (java.io.IOException e) { 290 throw new RuntimeException( 291 new com.google.protobuf.InvalidProtocolBufferException( 292 e.getMessage()).setUnfinishedMessage(this)); 293 } finally { 294 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 295 definitions_ = java.util.Collections.unmodifiableList(definitions_); 296 } 297 this.unknownFields = unknownFields.build(); 298 makeExtensionsImmutable(); 299 } 300 } 301 public static final com.google.protobuf.Descriptors.Descriptor 302 getDescriptor() { 303 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_ListDefinitionsWsResponse_descriptor; 304 } 305 306 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 307 internalGetFieldAccessorTable() { 308 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_ListDefinitionsWsResponse_fieldAccessorTable 309 .ensureFieldAccessorsInitialized( 310 org.sonarqube.ws.Settings.ListDefinitionsWsResponse.class, org.sonarqube.ws.Settings.ListDefinitionsWsResponse.Builder.class); 311 } 312 313 public static final int DEFINITIONS_FIELD_NUMBER = 1; 314 private java.util.List<org.sonarqube.ws.Settings.Definition> definitions_; 315 /** 316 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 317 */ 318 public java.util.List<org.sonarqube.ws.Settings.Definition> getDefinitionsList() { 319 return definitions_; 320 } 321 /** 322 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 323 */ 324 public java.util.List<? extends org.sonarqube.ws.Settings.DefinitionOrBuilder> 325 getDefinitionsOrBuilderList() { 326 return definitions_; 327 } 328 /** 329 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 330 */ 331 public int getDefinitionsCount() { 332 return definitions_.size(); 333 } 334 /** 335 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 336 */ 337 public org.sonarqube.ws.Settings.Definition getDefinitions(int index) { 338 return definitions_.get(index); 339 } 340 /** 341 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 342 */ 343 public org.sonarqube.ws.Settings.DefinitionOrBuilder getDefinitionsOrBuilder( 344 int index) { 345 return definitions_.get(index); 346 } 347 348 private byte memoizedIsInitialized = -1; 349 public final boolean isInitialized() { 350 byte isInitialized = memoizedIsInitialized; 351 if (isInitialized == 1) return true; 352 if (isInitialized == 0) return false; 353 354 memoizedIsInitialized = 1; 355 return true; 356 } 357 358 public void writeTo(com.google.protobuf.CodedOutputStream output) 359 throws java.io.IOException { 360 for (int i = 0; i < definitions_.size(); i++) { 361 output.writeMessage(1, definitions_.get(i)); 362 } 363 unknownFields.writeTo(output); 364 } 365 366 public int getSerializedSize() { 367 int size = memoizedSize; 368 if (size != -1) return size; 369 370 size = 0; 371 for (int i = 0; i < definitions_.size(); i++) { 372 size += com.google.protobuf.CodedOutputStream 373 .computeMessageSize(1, definitions_.get(i)); 374 } 375 size += unknownFields.getSerializedSize(); 376 memoizedSize = size; 377 return size; 378 } 379 380 private static final long serialVersionUID = 0L; 381 public static org.sonarqube.ws.Settings.ListDefinitionsWsResponse parseFrom( 382 com.google.protobuf.ByteString data) 383 throws com.google.protobuf.InvalidProtocolBufferException { 384 return PARSER.parseFrom(data); 385 } 386 public static org.sonarqube.ws.Settings.ListDefinitionsWsResponse parseFrom( 387 com.google.protobuf.ByteString data, 388 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 389 throws com.google.protobuf.InvalidProtocolBufferException { 390 return PARSER.parseFrom(data, extensionRegistry); 391 } 392 public static org.sonarqube.ws.Settings.ListDefinitionsWsResponse parseFrom(byte[] data) 393 throws com.google.protobuf.InvalidProtocolBufferException { 394 return PARSER.parseFrom(data); 395 } 396 public static org.sonarqube.ws.Settings.ListDefinitionsWsResponse parseFrom( 397 byte[] data, 398 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 399 throws com.google.protobuf.InvalidProtocolBufferException { 400 return PARSER.parseFrom(data, extensionRegistry); 401 } 402 public static org.sonarqube.ws.Settings.ListDefinitionsWsResponse parseFrom(java.io.InputStream input) 403 throws java.io.IOException { 404 return PARSER.parseFrom(input); 405 } 406 public static org.sonarqube.ws.Settings.ListDefinitionsWsResponse parseFrom( 407 java.io.InputStream input, 408 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 409 throws java.io.IOException { 410 return PARSER.parseFrom(input, extensionRegistry); 411 } 412 public static org.sonarqube.ws.Settings.ListDefinitionsWsResponse parseDelimitedFrom(java.io.InputStream input) 413 throws java.io.IOException { 414 return PARSER.parseDelimitedFrom(input); 415 } 416 public static org.sonarqube.ws.Settings.ListDefinitionsWsResponse parseDelimitedFrom( 417 java.io.InputStream input, 418 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 419 throws java.io.IOException { 420 return PARSER.parseDelimitedFrom(input, extensionRegistry); 421 } 422 public static org.sonarqube.ws.Settings.ListDefinitionsWsResponse parseFrom( 423 com.google.protobuf.CodedInputStream input) 424 throws java.io.IOException { 425 return PARSER.parseFrom(input); 426 } 427 public static org.sonarqube.ws.Settings.ListDefinitionsWsResponse parseFrom( 428 com.google.protobuf.CodedInputStream input, 429 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 430 throws java.io.IOException { 431 return PARSER.parseFrom(input, extensionRegistry); 432 } 433 434 public Builder newBuilderForType() { return newBuilder(); } 435 public static Builder newBuilder() { 436 return DEFAULT_INSTANCE.toBuilder(); 437 } 438 public static Builder newBuilder(org.sonarqube.ws.Settings.ListDefinitionsWsResponse prototype) { 439 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 440 } 441 public Builder toBuilder() { 442 return this == DEFAULT_INSTANCE 443 ? new Builder() : new Builder().mergeFrom(this); 444 } 445 446 @java.lang.Override 447 protected Builder newBuilderForType( 448 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 449 Builder builder = new Builder(parent); 450 return builder; 451 } 452 /** 453 * Protobuf type {@code sonarqube.ws.settings.ListDefinitionsWsResponse} 454 * 455 * <pre> 456 * Response of GET api/settings/list_definitions 457 * </pre> 458 */ 459 public static final class Builder extends 460 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 461 // @@protoc_insertion_point(builder_implements:sonarqube.ws.settings.ListDefinitionsWsResponse) 462 org.sonarqube.ws.Settings.ListDefinitionsWsResponseOrBuilder { 463 public static final com.google.protobuf.Descriptors.Descriptor 464 getDescriptor() { 465 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_ListDefinitionsWsResponse_descriptor; 466 } 467 468 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 469 internalGetFieldAccessorTable() { 470 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_ListDefinitionsWsResponse_fieldAccessorTable 471 .ensureFieldAccessorsInitialized( 472 org.sonarqube.ws.Settings.ListDefinitionsWsResponse.class, org.sonarqube.ws.Settings.ListDefinitionsWsResponse.Builder.class); 473 } 474 475 // Construct using org.sonarqube.ws.Settings.ListDefinitionsWsResponse.newBuilder() 476 private Builder() { 477 maybeForceBuilderInitialization(); 478 } 479 480 private Builder( 481 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 482 super(parent); 483 maybeForceBuilderInitialization(); 484 } 485 private void maybeForceBuilderInitialization() { 486 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 487 getDefinitionsFieldBuilder(); 488 } 489 } 490 public Builder clear() { 491 super.clear(); 492 if (definitionsBuilder_ == null) { 493 definitions_ = java.util.Collections.emptyList(); 494 bitField0_ = (bitField0_ & ~0x00000001); 495 } else { 496 definitionsBuilder_.clear(); 497 } 498 return this; 499 } 500 501 public com.google.protobuf.Descriptors.Descriptor 502 getDescriptorForType() { 503 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_ListDefinitionsWsResponse_descriptor; 504 } 505 506 public org.sonarqube.ws.Settings.ListDefinitionsWsResponse getDefaultInstanceForType() { 507 return org.sonarqube.ws.Settings.ListDefinitionsWsResponse.getDefaultInstance(); 508 } 509 510 public org.sonarqube.ws.Settings.ListDefinitionsWsResponse build() { 511 org.sonarqube.ws.Settings.ListDefinitionsWsResponse result = buildPartial(); 512 if (!result.isInitialized()) { 513 throw newUninitializedMessageException(result); 514 } 515 return result; 516 } 517 518 public org.sonarqube.ws.Settings.ListDefinitionsWsResponse buildPartial() { 519 org.sonarqube.ws.Settings.ListDefinitionsWsResponse result = new org.sonarqube.ws.Settings.ListDefinitionsWsResponse(this); 520 int from_bitField0_ = bitField0_; 521 if (definitionsBuilder_ == null) { 522 if (((bitField0_ & 0x00000001) == 0x00000001)) { 523 definitions_ = java.util.Collections.unmodifiableList(definitions_); 524 bitField0_ = (bitField0_ & ~0x00000001); 525 } 526 result.definitions_ = definitions_; 527 } else { 528 result.definitions_ = definitionsBuilder_.build(); 529 } 530 onBuilt(); 531 return result; 532 } 533 534 public Builder mergeFrom(com.google.protobuf.Message other) { 535 if (other instanceof org.sonarqube.ws.Settings.ListDefinitionsWsResponse) { 536 return mergeFrom((org.sonarqube.ws.Settings.ListDefinitionsWsResponse)other); 537 } else { 538 super.mergeFrom(other); 539 return this; 540 } 541 } 542 543 public Builder mergeFrom(org.sonarqube.ws.Settings.ListDefinitionsWsResponse other) { 544 if (other == org.sonarqube.ws.Settings.ListDefinitionsWsResponse.getDefaultInstance()) return this; 545 if (definitionsBuilder_ == null) { 546 if (!other.definitions_.isEmpty()) { 547 if (definitions_.isEmpty()) { 548 definitions_ = other.definitions_; 549 bitField0_ = (bitField0_ & ~0x00000001); 550 } else { 551 ensureDefinitionsIsMutable(); 552 definitions_.addAll(other.definitions_); 553 } 554 onChanged(); 555 } 556 } else { 557 if (!other.definitions_.isEmpty()) { 558 if (definitionsBuilder_.isEmpty()) { 559 definitionsBuilder_.dispose(); 560 definitionsBuilder_ = null; 561 definitions_ = other.definitions_; 562 bitField0_ = (bitField0_ & ~0x00000001); 563 definitionsBuilder_ = 564 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 565 getDefinitionsFieldBuilder() : null; 566 } else { 567 definitionsBuilder_.addAllMessages(other.definitions_); 568 } 569 } 570 } 571 this.mergeUnknownFields(other.unknownFields); 572 onChanged(); 573 return this; 574 } 575 576 public final boolean isInitialized() { 577 return true; 578 } 579 580 public Builder mergeFrom( 581 com.google.protobuf.CodedInputStream input, 582 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 583 throws java.io.IOException { 584 org.sonarqube.ws.Settings.ListDefinitionsWsResponse parsedMessage = null; 585 try { 586 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 587 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 588 parsedMessage = (org.sonarqube.ws.Settings.ListDefinitionsWsResponse) e.getUnfinishedMessage(); 589 throw e; 590 } finally { 591 if (parsedMessage != null) { 592 mergeFrom(parsedMessage); 593 } 594 } 595 return this; 596 } 597 private int bitField0_; 598 599 private java.util.List<org.sonarqube.ws.Settings.Definition> definitions_ = 600 java.util.Collections.emptyList(); 601 private void ensureDefinitionsIsMutable() { 602 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 603 definitions_ = new java.util.ArrayList<org.sonarqube.ws.Settings.Definition>(definitions_); 604 bitField0_ |= 0x00000001; 605 } 606 } 607 608 private com.google.protobuf.RepeatedFieldBuilder< 609 org.sonarqube.ws.Settings.Definition, org.sonarqube.ws.Settings.Definition.Builder, org.sonarqube.ws.Settings.DefinitionOrBuilder> definitionsBuilder_; 610 611 /** 612 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 613 */ 614 public java.util.List<org.sonarqube.ws.Settings.Definition> getDefinitionsList() { 615 if (definitionsBuilder_ == null) { 616 return java.util.Collections.unmodifiableList(definitions_); 617 } else { 618 return definitionsBuilder_.getMessageList(); 619 } 620 } 621 /** 622 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 623 */ 624 public int getDefinitionsCount() { 625 if (definitionsBuilder_ == null) { 626 return definitions_.size(); 627 } else { 628 return definitionsBuilder_.getCount(); 629 } 630 } 631 /** 632 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 633 */ 634 public org.sonarqube.ws.Settings.Definition getDefinitions(int index) { 635 if (definitionsBuilder_ == null) { 636 return definitions_.get(index); 637 } else { 638 return definitionsBuilder_.getMessage(index); 639 } 640 } 641 /** 642 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 643 */ 644 public Builder setDefinitions( 645 int index, org.sonarqube.ws.Settings.Definition value) { 646 if (definitionsBuilder_ == null) { 647 if (value == null) { 648 throw new NullPointerException(); 649 } 650 ensureDefinitionsIsMutable(); 651 definitions_.set(index, value); 652 onChanged(); 653 } else { 654 definitionsBuilder_.setMessage(index, value); 655 } 656 return this; 657 } 658 /** 659 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 660 */ 661 public Builder setDefinitions( 662 int index, org.sonarqube.ws.Settings.Definition.Builder builderForValue) { 663 if (definitionsBuilder_ == null) { 664 ensureDefinitionsIsMutable(); 665 definitions_.set(index, builderForValue.build()); 666 onChanged(); 667 } else { 668 definitionsBuilder_.setMessage(index, builderForValue.build()); 669 } 670 return this; 671 } 672 /** 673 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 674 */ 675 public Builder addDefinitions(org.sonarqube.ws.Settings.Definition value) { 676 if (definitionsBuilder_ == null) { 677 if (value == null) { 678 throw new NullPointerException(); 679 } 680 ensureDefinitionsIsMutable(); 681 definitions_.add(value); 682 onChanged(); 683 } else { 684 definitionsBuilder_.addMessage(value); 685 } 686 return this; 687 } 688 /** 689 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 690 */ 691 public Builder addDefinitions( 692 int index, org.sonarqube.ws.Settings.Definition value) { 693 if (definitionsBuilder_ == null) { 694 if (value == null) { 695 throw new NullPointerException(); 696 } 697 ensureDefinitionsIsMutable(); 698 definitions_.add(index, value); 699 onChanged(); 700 } else { 701 definitionsBuilder_.addMessage(index, value); 702 } 703 return this; 704 } 705 /** 706 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 707 */ 708 public Builder addDefinitions( 709 org.sonarqube.ws.Settings.Definition.Builder builderForValue) { 710 if (definitionsBuilder_ == null) { 711 ensureDefinitionsIsMutable(); 712 definitions_.add(builderForValue.build()); 713 onChanged(); 714 } else { 715 definitionsBuilder_.addMessage(builderForValue.build()); 716 } 717 return this; 718 } 719 /** 720 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 721 */ 722 public Builder addDefinitions( 723 int index, org.sonarqube.ws.Settings.Definition.Builder builderForValue) { 724 if (definitionsBuilder_ == null) { 725 ensureDefinitionsIsMutable(); 726 definitions_.add(index, builderForValue.build()); 727 onChanged(); 728 } else { 729 definitionsBuilder_.addMessage(index, builderForValue.build()); 730 } 731 return this; 732 } 733 /** 734 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 735 */ 736 public Builder addAllDefinitions( 737 java.lang.Iterable<? extends org.sonarqube.ws.Settings.Definition> values) { 738 if (definitionsBuilder_ == null) { 739 ensureDefinitionsIsMutable(); 740 com.google.protobuf.AbstractMessageLite.Builder.addAll( 741 values, definitions_); 742 onChanged(); 743 } else { 744 definitionsBuilder_.addAllMessages(values); 745 } 746 return this; 747 } 748 /** 749 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 750 */ 751 public Builder clearDefinitions() { 752 if (definitionsBuilder_ == null) { 753 definitions_ = java.util.Collections.emptyList(); 754 bitField0_ = (bitField0_ & ~0x00000001); 755 onChanged(); 756 } else { 757 definitionsBuilder_.clear(); 758 } 759 return this; 760 } 761 /** 762 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 763 */ 764 public Builder removeDefinitions(int index) { 765 if (definitionsBuilder_ == null) { 766 ensureDefinitionsIsMutable(); 767 definitions_.remove(index); 768 onChanged(); 769 } else { 770 definitionsBuilder_.remove(index); 771 } 772 return this; 773 } 774 /** 775 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 776 */ 777 public org.sonarqube.ws.Settings.Definition.Builder getDefinitionsBuilder( 778 int index) { 779 return getDefinitionsFieldBuilder().getBuilder(index); 780 } 781 /** 782 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 783 */ 784 public org.sonarqube.ws.Settings.DefinitionOrBuilder getDefinitionsOrBuilder( 785 int index) { 786 if (definitionsBuilder_ == null) { 787 return definitions_.get(index); } else { 788 return definitionsBuilder_.getMessageOrBuilder(index); 789 } 790 } 791 /** 792 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 793 */ 794 public java.util.List<? extends org.sonarqube.ws.Settings.DefinitionOrBuilder> 795 getDefinitionsOrBuilderList() { 796 if (definitionsBuilder_ != null) { 797 return definitionsBuilder_.getMessageOrBuilderList(); 798 } else { 799 return java.util.Collections.unmodifiableList(definitions_); 800 } 801 } 802 /** 803 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 804 */ 805 public org.sonarqube.ws.Settings.Definition.Builder addDefinitionsBuilder() { 806 return getDefinitionsFieldBuilder().addBuilder( 807 org.sonarqube.ws.Settings.Definition.getDefaultInstance()); 808 } 809 /** 810 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 811 */ 812 public org.sonarqube.ws.Settings.Definition.Builder addDefinitionsBuilder( 813 int index) { 814 return getDefinitionsFieldBuilder().addBuilder( 815 index, org.sonarqube.ws.Settings.Definition.getDefaultInstance()); 816 } 817 /** 818 * <code>repeated .sonarqube.ws.settings.Definition definitions = 1;</code> 819 */ 820 public java.util.List<org.sonarqube.ws.Settings.Definition.Builder> 821 getDefinitionsBuilderList() { 822 return getDefinitionsFieldBuilder().getBuilderList(); 823 } 824 private com.google.protobuf.RepeatedFieldBuilder< 825 org.sonarqube.ws.Settings.Definition, org.sonarqube.ws.Settings.Definition.Builder, org.sonarqube.ws.Settings.DefinitionOrBuilder> 826 getDefinitionsFieldBuilder() { 827 if (definitionsBuilder_ == null) { 828 definitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< 829 org.sonarqube.ws.Settings.Definition, org.sonarqube.ws.Settings.Definition.Builder, org.sonarqube.ws.Settings.DefinitionOrBuilder>( 830 definitions_, 831 ((bitField0_ & 0x00000001) == 0x00000001), 832 getParentForChildren(), 833 isClean()); 834 definitions_ = null; 835 } 836 return definitionsBuilder_; 837 } 838 839 // @@protoc_insertion_point(builder_scope:sonarqube.ws.settings.ListDefinitionsWsResponse) 840 } 841 842 // @@protoc_insertion_point(class_scope:sonarqube.ws.settings.ListDefinitionsWsResponse) 843 private static final org.sonarqube.ws.Settings.ListDefinitionsWsResponse DEFAULT_INSTANCE; 844 static { 845 DEFAULT_INSTANCE = new org.sonarqube.ws.Settings.ListDefinitionsWsResponse(); 846 } 847 848 public static org.sonarqube.ws.Settings.ListDefinitionsWsResponse getDefaultInstance() { 849 return DEFAULT_INSTANCE; 850 } 851 852 @java.lang.Deprecated public static final com.google.protobuf.Parser<ListDefinitionsWsResponse> 853 PARSER = new com.google.protobuf.AbstractParser<ListDefinitionsWsResponse>() { 854 public ListDefinitionsWsResponse parsePartialFrom( 855 com.google.protobuf.CodedInputStream input, 856 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 857 throws com.google.protobuf.InvalidProtocolBufferException { 858 try { 859 return new ListDefinitionsWsResponse(input, extensionRegistry); 860 } catch (RuntimeException e) { 861 if (e.getCause() instanceof 862 com.google.protobuf.InvalidProtocolBufferException) { 863 throw (com.google.protobuf.InvalidProtocolBufferException) 864 e.getCause(); 865 } 866 throw e; 867 } 868 } 869 }; 870 871 public static com.google.protobuf.Parser<ListDefinitionsWsResponse> parser() { 872 return PARSER; 873 } 874 875 @java.lang.Override 876 public com.google.protobuf.Parser<ListDefinitionsWsResponse> getParserForType() { 877 return PARSER; 878 } 879 880 public org.sonarqube.ws.Settings.ListDefinitionsWsResponse getDefaultInstanceForType() { 881 return DEFAULT_INSTANCE; 882 } 883 884 } 885 886 public interface EncryptWsResponseOrBuilder extends 887 // @@protoc_insertion_point(interface_extends:sonarqube.ws.settings.EncryptWsResponse) 888 com.google.protobuf.MessageOrBuilder { 889 890 /** 891 * <code>optional string encryptedValue = 1;</code> 892 */ 893 boolean hasEncryptedValue(); 894 /** 895 * <code>optional string encryptedValue = 1;</code> 896 */ 897 java.lang.String getEncryptedValue(); 898 /** 899 * <code>optional string encryptedValue = 1;</code> 900 */ 901 com.google.protobuf.ByteString 902 getEncryptedValueBytes(); 903 } 904 /** 905 * Protobuf type {@code sonarqube.ws.settings.EncryptWsResponse} 906 * 907 * <pre> 908 * Response of GET api/settings/encrypt 909 * </pre> 910 */ 911 public static final class EncryptWsResponse extends 912 com.google.protobuf.GeneratedMessage implements 913 // @@protoc_insertion_point(message_implements:sonarqube.ws.settings.EncryptWsResponse) 914 EncryptWsResponseOrBuilder { 915 // Use EncryptWsResponse.newBuilder() to construct. 916 private EncryptWsResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 917 super(builder); 918 } 919 private EncryptWsResponse() { 920 encryptedValue_ = ""; 921 } 922 923 @java.lang.Override 924 public final com.google.protobuf.UnknownFieldSet 925 getUnknownFields() { 926 return this.unknownFields; 927 } 928 private EncryptWsResponse( 929 com.google.protobuf.CodedInputStream input, 930 com.google.protobuf.ExtensionRegistryLite extensionRegistry) { 931 this(); 932 int mutable_bitField0_ = 0; 933 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 934 com.google.protobuf.UnknownFieldSet.newBuilder(); 935 try { 936 boolean done = false; 937 while (!done) { 938 int tag = input.readTag(); 939 switch (tag) { 940 case 0: 941 done = true; 942 break; 943 default: { 944 if (!parseUnknownField(input, unknownFields, 945 extensionRegistry, tag)) { 946 done = true; 947 } 948 break; 949 } 950 case 10: { 951 com.google.protobuf.ByteString bs = input.readBytes(); 952 bitField0_ |= 0x00000001; 953 encryptedValue_ = bs; 954 break; 955 } 956 } 957 } 958 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 959 throw new RuntimeException(e.setUnfinishedMessage(this)); 960 } catch (java.io.IOException e) { 961 throw new RuntimeException( 962 new com.google.protobuf.InvalidProtocolBufferException( 963 e.getMessage()).setUnfinishedMessage(this)); 964 } finally { 965 this.unknownFields = unknownFields.build(); 966 makeExtensionsImmutable(); 967 } 968 } 969 public static final com.google.protobuf.Descriptors.Descriptor 970 getDescriptor() { 971 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_EncryptWsResponse_descriptor; 972 } 973 974 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 975 internalGetFieldAccessorTable() { 976 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_EncryptWsResponse_fieldAccessorTable 977 .ensureFieldAccessorsInitialized( 978 org.sonarqube.ws.Settings.EncryptWsResponse.class, org.sonarqube.ws.Settings.EncryptWsResponse.Builder.class); 979 } 980 981 private int bitField0_; 982 public static final int ENCRYPTEDVALUE_FIELD_NUMBER = 1; 983 private volatile java.lang.Object encryptedValue_; 984 /** 985 * <code>optional string encryptedValue = 1;</code> 986 */ 987 public boolean hasEncryptedValue() { 988 return ((bitField0_ & 0x00000001) == 0x00000001); 989 } 990 /** 991 * <code>optional string encryptedValue = 1;</code> 992 */ 993 public java.lang.String getEncryptedValue() { 994 java.lang.Object ref = encryptedValue_; 995 if (ref instanceof java.lang.String) { 996 return (java.lang.String) ref; 997 } else { 998 com.google.protobuf.ByteString bs = 999 (com.google.protobuf.ByteString) ref; 1000 java.lang.String s = bs.toStringUtf8(); 1001 if (bs.isValidUtf8()) { 1002 encryptedValue_ = s; 1003 } 1004 return s; 1005 } 1006 } 1007 /** 1008 * <code>optional string encryptedValue = 1;</code> 1009 */ 1010 public com.google.protobuf.ByteString 1011 getEncryptedValueBytes() { 1012 java.lang.Object ref = encryptedValue_; 1013 if (ref instanceof java.lang.String) { 1014 com.google.protobuf.ByteString b = 1015 com.google.protobuf.ByteString.copyFromUtf8( 1016 (java.lang.String) ref); 1017 encryptedValue_ = b; 1018 return b; 1019 } else { 1020 return (com.google.protobuf.ByteString) ref; 1021 } 1022 } 1023 1024 private byte memoizedIsInitialized = -1; 1025 public final boolean isInitialized() { 1026 byte isInitialized = memoizedIsInitialized; 1027 if (isInitialized == 1) return true; 1028 if (isInitialized == 0) return false; 1029 1030 memoizedIsInitialized = 1; 1031 return true; 1032 } 1033 1034 public void writeTo(com.google.protobuf.CodedOutputStream output) 1035 throws java.io.IOException { 1036 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1037 com.google.protobuf.GeneratedMessage.writeString(output, 1, encryptedValue_); 1038 } 1039 unknownFields.writeTo(output); 1040 } 1041 1042 public int getSerializedSize() { 1043 int size = memoizedSize; 1044 if (size != -1) return size; 1045 1046 size = 0; 1047 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1048 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, encryptedValue_); 1049 } 1050 size += unknownFields.getSerializedSize(); 1051 memoizedSize = size; 1052 return size; 1053 } 1054 1055 private static final long serialVersionUID = 0L; 1056 public static org.sonarqube.ws.Settings.EncryptWsResponse parseFrom( 1057 com.google.protobuf.ByteString data) 1058 throws com.google.protobuf.InvalidProtocolBufferException { 1059 return PARSER.parseFrom(data); 1060 } 1061 public static org.sonarqube.ws.Settings.EncryptWsResponse parseFrom( 1062 com.google.protobuf.ByteString data, 1063 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1064 throws com.google.protobuf.InvalidProtocolBufferException { 1065 return PARSER.parseFrom(data, extensionRegistry); 1066 } 1067 public static org.sonarqube.ws.Settings.EncryptWsResponse parseFrom(byte[] data) 1068 throws com.google.protobuf.InvalidProtocolBufferException { 1069 return PARSER.parseFrom(data); 1070 } 1071 public static org.sonarqube.ws.Settings.EncryptWsResponse parseFrom( 1072 byte[] data, 1073 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1074 throws com.google.protobuf.InvalidProtocolBufferException { 1075 return PARSER.parseFrom(data, extensionRegistry); 1076 } 1077 public static org.sonarqube.ws.Settings.EncryptWsResponse parseFrom(java.io.InputStream input) 1078 throws java.io.IOException { 1079 return PARSER.parseFrom(input); 1080 } 1081 public static org.sonarqube.ws.Settings.EncryptWsResponse parseFrom( 1082 java.io.InputStream input, 1083 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1084 throws java.io.IOException { 1085 return PARSER.parseFrom(input, extensionRegistry); 1086 } 1087 public static org.sonarqube.ws.Settings.EncryptWsResponse parseDelimitedFrom(java.io.InputStream input) 1088 throws java.io.IOException { 1089 return PARSER.parseDelimitedFrom(input); 1090 } 1091 public static org.sonarqube.ws.Settings.EncryptWsResponse parseDelimitedFrom( 1092 java.io.InputStream input, 1093 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1094 throws java.io.IOException { 1095 return PARSER.parseDelimitedFrom(input, extensionRegistry); 1096 } 1097 public static org.sonarqube.ws.Settings.EncryptWsResponse parseFrom( 1098 com.google.protobuf.CodedInputStream input) 1099 throws java.io.IOException { 1100 return PARSER.parseFrom(input); 1101 } 1102 public static org.sonarqube.ws.Settings.EncryptWsResponse parseFrom( 1103 com.google.protobuf.CodedInputStream input, 1104 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1105 throws java.io.IOException { 1106 return PARSER.parseFrom(input, extensionRegistry); 1107 } 1108 1109 public Builder newBuilderForType() { return newBuilder(); } 1110 public static Builder newBuilder() { 1111 return DEFAULT_INSTANCE.toBuilder(); 1112 } 1113 public static Builder newBuilder(org.sonarqube.ws.Settings.EncryptWsResponse prototype) { 1114 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1115 } 1116 public Builder toBuilder() { 1117 return this == DEFAULT_INSTANCE 1118 ? new Builder() : new Builder().mergeFrom(this); 1119 } 1120 1121 @java.lang.Override 1122 protected Builder newBuilderForType( 1123 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 1124 Builder builder = new Builder(parent); 1125 return builder; 1126 } 1127 /** 1128 * Protobuf type {@code sonarqube.ws.settings.EncryptWsResponse} 1129 * 1130 * <pre> 1131 * Response of GET api/settings/encrypt 1132 * </pre> 1133 */ 1134 public static final class Builder extends 1135 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 1136 // @@protoc_insertion_point(builder_implements:sonarqube.ws.settings.EncryptWsResponse) 1137 org.sonarqube.ws.Settings.EncryptWsResponseOrBuilder { 1138 public static final com.google.protobuf.Descriptors.Descriptor 1139 getDescriptor() { 1140 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_EncryptWsResponse_descriptor; 1141 } 1142 1143 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 1144 internalGetFieldAccessorTable() { 1145 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_EncryptWsResponse_fieldAccessorTable 1146 .ensureFieldAccessorsInitialized( 1147 org.sonarqube.ws.Settings.EncryptWsResponse.class, org.sonarqube.ws.Settings.EncryptWsResponse.Builder.class); 1148 } 1149 1150 // Construct using org.sonarqube.ws.Settings.EncryptWsResponse.newBuilder() 1151 private Builder() { 1152 maybeForceBuilderInitialization(); 1153 } 1154 1155 private Builder( 1156 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 1157 super(parent); 1158 maybeForceBuilderInitialization(); 1159 } 1160 private void maybeForceBuilderInitialization() { 1161 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 1162 } 1163 } 1164 public Builder clear() { 1165 super.clear(); 1166 encryptedValue_ = ""; 1167 bitField0_ = (bitField0_ & ~0x00000001); 1168 return this; 1169 } 1170 1171 public com.google.protobuf.Descriptors.Descriptor 1172 getDescriptorForType() { 1173 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_EncryptWsResponse_descriptor; 1174 } 1175 1176 public org.sonarqube.ws.Settings.EncryptWsResponse getDefaultInstanceForType() { 1177 return org.sonarqube.ws.Settings.EncryptWsResponse.getDefaultInstance(); 1178 } 1179 1180 public org.sonarqube.ws.Settings.EncryptWsResponse build() { 1181 org.sonarqube.ws.Settings.EncryptWsResponse result = buildPartial(); 1182 if (!result.isInitialized()) { 1183 throw newUninitializedMessageException(result); 1184 } 1185 return result; 1186 } 1187 1188 public org.sonarqube.ws.Settings.EncryptWsResponse buildPartial() { 1189 org.sonarqube.ws.Settings.EncryptWsResponse result = new org.sonarqube.ws.Settings.EncryptWsResponse(this); 1190 int from_bitField0_ = bitField0_; 1191 int to_bitField0_ = 0; 1192 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 1193 to_bitField0_ |= 0x00000001; 1194 } 1195 result.encryptedValue_ = encryptedValue_; 1196 result.bitField0_ = to_bitField0_; 1197 onBuilt(); 1198 return result; 1199 } 1200 1201 public Builder mergeFrom(com.google.protobuf.Message other) { 1202 if (other instanceof org.sonarqube.ws.Settings.EncryptWsResponse) { 1203 return mergeFrom((org.sonarqube.ws.Settings.EncryptWsResponse)other); 1204 } else { 1205 super.mergeFrom(other); 1206 return this; 1207 } 1208 } 1209 1210 public Builder mergeFrom(org.sonarqube.ws.Settings.EncryptWsResponse other) { 1211 if (other == org.sonarqube.ws.Settings.EncryptWsResponse.getDefaultInstance()) return this; 1212 if (other.hasEncryptedValue()) { 1213 bitField0_ |= 0x00000001; 1214 encryptedValue_ = other.encryptedValue_; 1215 onChanged(); 1216 } 1217 this.mergeUnknownFields(other.unknownFields); 1218 onChanged(); 1219 return this; 1220 } 1221 1222 public final boolean isInitialized() { 1223 return true; 1224 } 1225 1226 public Builder mergeFrom( 1227 com.google.protobuf.CodedInputStream input, 1228 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1229 throws java.io.IOException { 1230 org.sonarqube.ws.Settings.EncryptWsResponse parsedMessage = null; 1231 try { 1232 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 1233 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1234 parsedMessage = (org.sonarqube.ws.Settings.EncryptWsResponse) e.getUnfinishedMessage(); 1235 throw e; 1236 } finally { 1237 if (parsedMessage != null) { 1238 mergeFrom(parsedMessage); 1239 } 1240 } 1241 return this; 1242 } 1243 private int bitField0_; 1244 1245 private java.lang.Object encryptedValue_ = ""; 1246 /** 1247 * <code>optional string encryptedValue = 1;</code> 1248 */ 1249 public boolean hasEncryptedValue() { 1250 return ((bitField0_ & 0x00000001) == 0x00000001); 1251 } 1252 /** 1253 * <code>optional string encryptedValue = 1;</code> 1254 */ 1255 public java.lang.String getEncryptedValue() { 1256 java.lang.Object ref = encryptedValue_; 1257 if (!(ref instanceof java.lang.String)) { 1258 com.google.protobuf.ByteString bs = 1259 (com.google.protobuf.ByteString) ref; 1260 java.lang.String s = bs.toStringUtf8(); 1261 if (bs.isValidUtf8()) { 1262 encryptedValue_ = s; 1263 } 1264 return s; 1265 } else { 1266 return (java.lang.String) ref; 1267 } 1268 } 1269 /** 1270 * <code>optional string encryptedValue = 1;</code> 1271 */ 1272 public com.google.protobuf.ByteString 1273 getEncryptedValueBytes() { 1274 java.lang.Object ref = encryptedValue_; 1275 if (ref instanceof String) { 1276 com.google.protobuf.ByteString b = 1277 com.google.protobuf.ByteString.copyFromUtf8( 1278 (java.lang.String) ref); 1279 encryptedValue_ = b; 1280 return b; 1281 } else { 1282 return (com.google.protobuf.ByteString) ref; 1283 } 1284 } 1285 /** 1286 * <code>optional string encryptedValue = 1;</code> 1287 */ 1288 public Builder setEncryptedValue( 1289 java.lang.String value) { 1290 if (value == null) { 1291 throw new NullPointerException(); 1292 } 1293 bitField0_ |= 0x00000001; 1294 encryptedValue_ = value; 1295 onChanged(); 1296 return this; 1297 } 1298 /** 1299 * <code>optional string encryptedValue = 1;</code> 1300 */ 1301 public Builder clearEncryptedValue() { 1302 bitField0_ = (bitField0_ & ~0x00000001); 1303 encryptedValue_ = getDefaultInstance().getEncryptedValue(); 1304 onChanged(); 1305 return this; 1306 } 1307 /** 1308 * <code>optional string encryptedValue = 1;</code> 1309 */ 1310 public Builder setEncryptedValueBytes( 1311 com.google.protobuf.ByteString value) { 1312 if (value == null) { 1313 throw new NullPointerException(); 1314 } 1315 bitField0_ |= 0x00000001; 1316 encryptedValue_ = value; 1317 onChanged(); 1318 return this; 1319 } 1320 1321 // @@protoc_insertion_point(builder_scope:sonarqube.ws.settings.EncryptWsResponse) 1322 } 1323 1324 // @@protoc_insertion_point(class_scope:sonarqube.ws.settings.EncryptWsResponse) 1325 private static final org.sonarqube.ws.Settings.EncryptWsResponse DEFAULT_INSTANCE; 1326 static { 1327 DEFAULT_INSTANCE = new org.sonarqube.ws.Settings.EncryptWsResponse(); 1328 } 1329 1330 public static org.sonarqube.ws.Settings.EncryptWsResponse getDefaultInstance() { 1331 return DEFAULT_INSTANCE; 1332 } 1333 1334 @java.lang.Deprecated public static final com.google.protobuf.Parser<EncryptWsResponse> 1335 PARSER = new com.google.protobuf.AbstractParser<EncryptWsResponse>() { 1336 public EncryptWsResponse parsePartialFrom( 1337 com.google.protobuf.CodedInputStream input, 1338 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1339 throws com.google.protobuf.InvalidProtocolBufferException { 1340 try { 1341 return new EncryptWsResponse(input, extensionRegistry); 1342 } catch (RuntimeException e) { 1343 if (e.getCause() instanceof 1344 com.google.protobuf.InvalidProtocolBufferException) { 1345 throw (com.google.protobuf.InvalidProtocolBufferException) 1346 e.getCause(); 1347 } 1348 throw e; 1349 } 1350 } 1351 }; 1352 1353 public static com.google.protobuf.Parser<EncryptWsResponse> parser() { 1354 return PARSER; 1355 } 1356 1357 @java.lang.Override 1358 public com.google.protobuf.Parser<EncryptWsResponse> getParserForType() { 1359 return PARSER; 1360 } 1361 1362 public org.sonarqube.ws.Settings.EncryptWsResponse getDefaultInstanceForType() { 1363 return DEFAULT_INSTANCE; 1364 } 1365 1366 } 1367 1368 public interface GenerateSecretKeyWsResponseOrBuilder extends 1369 // @@protoc_insertion_point(interface_extends:sonarqube.ws.settings.GenerateSecretKeyWsResponse) 1370 com.google.protobuf.MessageOrBuilder { 1371 1372 /** 1373 * <code>optional string secretKey = 1;</code> 1374 */ 1375 boolean hasSecretKey(); 1376 /** 1377 * <code>optional string secretKey = 1;</code> 1378 */ 1379 java.lang.String getSecretKey(); 1380 /** 1381 * <code>optional string secretKey = 1;</code> 1382 */ 1383 com.google.protobuf.ByteString 1384 getSecretKeyBytes(); 1385 } 1386 /** 1387 * Protobuf type {@code sonarqube.ws.settings.GenerateSecretKeyWsResponse} 1388 * 1389 * <pre> 1390 * Response of GET api/settings/generate_secret_key 1391 * </pre> 1392 */ 1393 public static final class GenerateSecretKeyWsResponse extends 1394 com.google.protobuf.GeneratedMessage implements 1395 // @@protoc_insertion_point(message_implements:sonarqube.ws.settings.GenerateSecretKeyWsResponse) 1396 GenerateSecretKeyWsResponseOrBuilder { 1397 // Use GenerateSecretKeyWsResponse.newBuilder() to construct. 1398 private GenerateSecretKeyWsResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 1399 super(builder); 1400 } 1401 private GenerateSecretKeyWsResponse() { 1402 secretKey_ = ""; 1403 } 1404 1405 @java.lang.Override 1406 public final com.google.protobuf.UnknownFieldSet 1407 getUnknownFields() { 1408 return this.unknownFields; 1409 } 1410 private GenerateSecretKeyWsResponse( 1411 com.google.protobuf.CodedInputStream input, 1412 com.google.protobuf.ExtensionRegistryLite extensionRegistry) { 1413 this(); 1414 int mutable_bitField0_ = 0; 1415 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 1416 com.google.protobuf.UnknownFieldSet.newBuilder(); 1417 try { 1418 boolean done = false; 1419 while (!done) { 1420 int tag = input.readTag(); 1421 switch (tag) { 1422 case 0: 1423 done = true; 1424 break; 1425 default: { 1426 if (!parseUnknownField(input, unknownFields, 1427 extensionRegistry, tag)) { 1428 done = true; 1429 } 1430 break; 1431 } 1432 case 10: { 1433 com.google.protobuf.ByteString bs = input.readBytes(); 1434 bitField0_ |= 0x00000001; 1435 secretKey_ = bs; 1436 break; 1437 } 1438 } 1439 } 1440 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1441 throw new RuntimeException(e.setUnfinishedMessage(this)); 1442 } catch (java.io.IOException e) { 1443 throw new RuntimeException( 1444 new com.google.protobuf.InvalidProtocolBufferException( 1445 e.getMessage()).setUnfinishedMessage(this)); 1446 } finally { 1447 this.unknownFields = unknownFields.build(); 1448 makeExtensionsImmutable(); 1449 } 1450 } 1451 public static final com.google.protobuf.Descriptors.Descriptor 1452 getDescriptor() { 1453 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_GenerateSecretKeyWsResponse_descriptor; 1454 } 1455 1456 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 1457 internalGetFieldAccessorTable() { 1458 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_GenerateSecretKeyWsResponse_fieldAccessorTable 1459 .ensureFieldAccessorsInitialized( 1460 org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse.class, org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse.Builder.class); 1461 } 1462 1463 private int bitField0_; 1464 public static final int SECRETKEY_FIELD_NUMBER = 1; 1465 private volatile java.lang.Object secretKey_; 1466 /** 1467 * <code>optional string secretKey = 1;</code> 1468 */ 1469 public boolean hasSecretKey() { 1470 return ((bitField0_ & 0x00000001) == 0x00000001); 1471 } 1472 /** 1473 * <code>optional string secretKey = 1;</code> 1474 */ 1475 public java.lang.String getSecretKey() { 1476 java.lang.Object ref = secretKey_; 1477 if (ref instanceof java.lang.String) { 1478 return (java.lang.String) ref; 1479 } else { 1480 com.google.protobuf.ByteString bs = 1481 (com.google.protobuf.ByteString) ref; 1482 java.lang.String s = bs.toStringUtf8(); 1483 if (bs.isValidUtf8()) { 1484 secretKey_ = s; 1485 } 1486 return s; 1487 } 1488 } 1489 /** 1490 * <code>optional string secretKey = 1;</code> 1491 */ 1492 public com.google.protobuf.ByteString 1493 getSecretKeyBytes() { 1494 java.lang.Object ref = secretKey_; 1495 if (ref instanceof java.lang.String) { 1496 com.google.protobuf.ByteString b = 1497 com.google.protobuf.ByteString.copyFromUtf8( 1498 (java.lang.String) ref); 1499 secretKey_ = b; 1500 return b; 1501 } else { 1502 return (com.google.protobuf.ByteString) ref; 1503 } 1504 } 1505 1506 private byte memoizedIsInitialized = -1; 1507 public final boolean isInitialized() { 1508 byte isInitialized = memoizedIsInitialized; 1509 if (isInitialized == 1) return true; 1510 if (isInitialized == 0) return false; 1511 1512 memoizedIsInitialized = 1; 1513 return true; 1514 } 1515 1516 public void writeTo(com.google.protobuf.CodedOutputStream output) 1517 throws java.io.IOException { 1518 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1519 com.google.protobuf.GeneratedMessage.writeString(output, 1, secretKey_); 1520 } 1521 unknownFields.writeTo(output); 1522 } 1523 1524 public int getSerializedSize() { 1525 int size = memoizedSize; 1526 if (size != -1) return size; 1527 1528 size = 0; 1529 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1530 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, secretKey_); 1531 } 1532 size += unknownFields.getSerializedSize(); 1533 memoizedSize = size; 1534 return size; 1535 } 1536 1537 private static final long serialVersionUID = 0L; 1538 public static org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse parseFrom( 1539 com.google.protobuf.ByteString data) 1540 throws com.google.protobuf.InvalidProtocolBufferException { 1541 return PARSER.parseFrom(data); 1542 } 1543 public static org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse parseFrom( 1544 com.google.protobuf.ByteString data, 1545 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1546 throws com.google.protobuf.InvalidProtocolBufferException { 1547 return PARSER.parseFrom(data, extensionRegistry); 1548 } 1549 public static org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse parseFrom(byte[] data) 1550 throws com.google.protobuf.InvalidProtocolBufferException { 1551 return PARSER.parseFrom(data); 1552 } 1553 public static org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse parseFrom( 1554 byte[] data, 1555 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1556 throws com.google.protobuf.InvalidProtocolBufferException { 1557 return PARSER.parseFrom(data, extensionRegistry); 1558 } 1559 public static org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse parseFrom(java.io.InputStream input) 1560 throws java.io.IOException { 1561 return PARSER.parseFrom(input); 1562 } 1563 public static org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse parseFrom( 1564 java.io.InputStream input, 1565 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1566 throws java.io.IOException { 1567 return PARSER.parseFrom(input, extensionRegistry); 1568 } 1569 public static org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse parseDelimitedFrom(java.io.InputStream input) 1570 throws java.io.IOException { 1571 return PARSER.parseDelimitedFrom(input); 1572 } 1573 public static org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse parseDelimitedFrom( 1574 java.io.InputStream input, 1575 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1576 throws java.io.IOException { 1577 return PARSER.parseDelimitedFrom(input, extensionRegistry); 1578 } 1579 public static org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse parseFrom( 1580 com.google.protobuf.CodedInputStream input) 1581 throws java.io.IOException { 1582 return PARSER.parseFrom(input); 1583 } 1584 public static org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse parseFrom( 1585 com.google.protobuf.CodedInputStream input, 1586 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1587 throws java.io.IOException { 1588 return PARSER.parseFrom(input, extensionRegistry); 1589 } 1590 1591 public Builder newBuilderForType() { return newBuilder(); } 1592 public static Builder newBuilder() { 1593 return DEFAULT_INSTANCE.toBuilder(); 1594 } 1595 public static Builder newBuilder(org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse prototype) { 1596 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 1597 } 1598 public Builder toBuilder() { 1599 return this == DEFAULT_INSTANCE 1600 ? new Builder() : new Builder().mergeFrom(this); 1601 } 1602 1603 @java.lang.Override 1604 protected Builder newBuilderForType( 1605 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 1606 Builder builder = new Builder(parent); 1607 return builder; 1608 } 1609 /** 1610 * Protobuf type {@code sonarqube.ws.settings.GenerateSecretKeyWsResponse} 1611 * 1612 * <pre> 1613 * Response of GET api/settings/generate_secret_key 1614 * </pre> 1615 */ 1616 public static final class Builder extends 1617 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 1618 // @@protoc_insertion_point(builder_implements:sonarqube.ws.settings.GenerateSecretKeyWsResponse) 1619 org.sonarqube.ws.Settings.GenerateSecretKeyWsResponseOrBuilder { 1620 public static final com.google.protobuf.Descriptors.Descriptor 1621 getDescriptor() { 1622 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_GenerateSecretKeyWsResponse_descriptor; 1623 } 1624 1625 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 1626 internalGetFieldAccessorTable() { 1627 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_GenerateSecretKeyWsResponse_fieldAccessorTable 1628 .ensureFieldAccessorsInitialized( 1629 org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse.class, org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse.Builder.class); 1630 } 1631 1632 // Construct using org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse.newBuilder() 1633 private Builder() { 1634 maybeForceBuilderInitialization(); 1635 } 1636 1637 private Builder( 1638 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 1639 super(parent); 1640 maybeForceBuilderInitialization(); 1641 } 1642 private void maybeForceBuilderInitialization() { 1643 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 1644 } 1645 } 1646 public Builder clear() { 1647 super.clear(); 1648 secretKey_ = ""; 1649 bitField0_ = (bitField0_ & ~0x00000001); 1650 return this; 1651 } 1652 1653 public com.google.protobuf.Descriptors.Descriptor 1654 getDescriptorForType() { 1655 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_GenerateSecretKeyWsResponse_descriptor; 1656 } 1657 1658 public org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse getDefaultInstanceForType() { 1659 return org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse.getDefaultInstance(); 1660 } 1661 1662 public org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse build() { 1663 org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse result = buildPartial(); 1664 if (!result.isInitialized()) { 1665 throw newUninitializedMessageException(result); 1666 } 1667 return result; 1668 } 1669 1670 public org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse buildPartial() { 1671 org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse result = new org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse(this); 1672 int from_bitField0_ = bitField0_; 1673 int to_bitField0_ = 0; 1674 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 1675 to_bitField0_ |= 0x00000001; 1676 } 1677 result.secretKey_ = secretKey_; 1678 result.bitField0_ = to_bitField0_; 1679 onBuilt(); 1680 return result; 1681 } 1682 1683 public Builder mergeFrom(com.google.protobuf.Message other) { 1684 if (other instanceof org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse) { 1685 return mergeFrom((org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse)other); 1686 } else { 1687 super.mergeFrom(other); 1688 return this; 1689 } 1690 } 1691 1692 public Builder mergeFrom(org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse other) { 1693 if (other == org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse.getDefaultInstance()) return this; 1694 if (other.hasSecretKey()) { 1695 bitField0_ |= 0x00000001; 1696 secretKey_ = other.secretKey_; 1697 onChanged(); 1698 } 1699 this.mergeUnknownFields(other.unknownFields); 1700 onChanged(); 1701 return this; 1702 } 1703 1704 public final boolean isInitialized() { 1705 return true; 1706 } 1707 1708 public Builder mergeFrom( 1709 com.google.protobuf.CodedInputStream input, 1710 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1711 throws java.io.IOException { 1712 org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse parsedMessage = null; 1713 try { 1714 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 1715 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1716 parsedMessage = (org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse) e.getUnfinishedMessage(); 1717 throw e; 1718 } finally { 1719 if (parsedMessage != null) { 1720 mergeFrom(parsedMessage); 1721 } 1722 } 1723 return this; 1724 } 1725 private int bitField0_; 1726 1727 private java.lang.Object secretKey_ = ""; 1728 /** 1729 * <code>optional string secretKey = 1;</code> 1730 */ 1731 public boolean hasSecretKey() { 1732 return ((bitField0_ & 0x00000001) == 0x00000001); 1733 } 1734 /** 1735 * <code>optional string secretKey = 1;</code> 1736 */ 1737 public java.lang.String getSecretKey() { 1738 java.lang.Object ref = secretKey_; 1739 if (!(ref instanceof java.lang.String)) { 1740 com.google.protobuf.ByteString bs = 1741 (com.google.protobuf.ByteString) ref; 1742 java.lang.String s = bs.toStringUtf8(); 1743 if (bs.isValidUtf8()) { 1744 secretKey_ = s; 1745 } 1746 return s; 1747 } else { 1748 return (java.lang.String) ref; 1749 } 1750 } 1751 /** 1752 * <code>optional string secretKey = 1;</code> 1753 */ 1754 public com.google.protobuf.ByteString 1755 getSecretKeyBytes() { 1756 java.lang.Object ref = secretKey_; 1757 if (ref instanceof String) { 1758 com.google.protobuf.ByteString b = 1759 com.google.protobuf.ByteString.copyFromUtf8( 1760 (java.lang.String) ref); 1761 secretKey_ = b; 1762 return b; 1763 } else { 1764 return (com.google.protobuf.ByteString) ref; 1765 } 1766 } 1767 /** 1768 * <code>optional string secretKey = 1;</code> 1769 */ 1770 public Builder setSecretKey( 1771 java.lang.String value) { 1772 if (value == null) { 1773 throw new NullPointerException(); 1774 } 1775 bitField0_ |= 0x00000001; 1776 secretKey_ = value; 1777 onChanged(); 1778 return this; 1779 } 1780 /** 1781 * <code>optional string secretKey = 1;</code> 1782 */ 1783 public Builder clearSecretKey() { 1784 bitField0_ = (bitField0_ & ~0x00000001); 1785 secretKey_ = getDefaultInstance().getSecretKey(); 1786 onChanged(); 1787 return this; 1788 } 1789 /** 1790 * <code>optional string secretKey = 1;</code> 1791 */ 1792 public Builder setSecretKeyBytes( 1793 com.google.protobuf.ByteString value) { 1794 if (value == null) { 1795 throw new NullPointerException(); 1796 } 1797 bitField0_ |= 0x00000001; 1798 secretKey_ = value; 1799 onChanged(); 1800 return this; 1801 } 1802 1803 // @@protoc_insertion_point(builder_scope:sonarqube.ws.settings.GenerateSecretKeyWsResponse) 1804 } 1805 1806 // @@protoc_insertion_point(class_scope:sonarqube.ws.settings.GenerateSecretKeyWsResponse) 1807 private static final org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse DEFAULT_INSTANCE; 1808 static { 1809 DEFAULT_INSTANCE = new org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse(); 1810 } 1811 1812 public static org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse getDefaultInstance() { 1813 return DEFAULT_INSTANCE; 1814 } 1815 1816 @java.lang.Deprecated public static final com.google.protobuf.Parser<GenerateSecretKeyWsResponse> 1817 PARSER = new com.google.protobuf.AbstractParser<GenerateSecretKeyWsResponse>() { 1818 public GenerateSecretKeyWsResponse parsePartialFrom( 1819 com.google.protobuf.CodedInputStream input, 1820 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1821 throws com.google.protobuf.InvalidProtocolBufferException { 1822 try { 1823 return new GenerateSecretKeyWsResponse(input, extensionRegistry); 1824 } catch (RuntimeException e) { 1825 if (e.getCause() instanceof 1826 com.google.protobuf.InvalidProtocolBufferException) { 1827 throw (com.google.protobuf.InvalidProtocolBufferException) 1828 e.getCause(); 1829 } 1830 throw e; 1831 } 1832 } 1833 }; 1834 1835 public static com.google.protobuf.Parser<GenerateSecretKeyWsResponse> parser() { 1836 return PARSER; 1837 } 1838 1839 @java.lang.Override 1840 public com.google.protobuf.Parser<GenerateSecretKeyWsResponse> getParserForType() { 1841 return PARSER; 1842 } 1843 1844 public org.sonarqube.ws.Settings.GenerateSecretKeyWsResponse getDefaultInstanceForType() { 1845 return DEFAULT_INSTANCE; 1846 } 1847 1848 } 1849 1850 public interface CheckSecretKeyWsResponseOrBuilder extends 1851 // @@protoc_insertion_point(interface_extends:sonarqube.ws.settings.CheckSecretKeyWsResponse) 1852 com.google.protobuf.MessageOrBuilder { 1853 1854 /** 1855 * <code>optional bool secretKeyAvailable = 1;</code> 1856 */ 1857 boolean hasSecretKeyAvailable(); 1858 /** 1859 * <code>optional bool secretKeyAvailable = 1;</code> 1860 */ 1861 boolean getSecretKeyAvailable(); 1862 } 1863 /** 1864 * Protobuf type {@code sonarqube.ws.settings.CheckSecretKeyWsResponse} 1865 * 1866 * <pre> 1867 * Response of GET api/settings/check_secret_key 1868 * </pre> 1869 */ 1870 public static final class CheckSecretKeyWsResponse extends 1871 com.google.protobuf.GeneratedMessage implements 1872 // @@protoc_insertion_point(message_implements:sonarqube.ws.settings.CheckSecretKeyWsResponse) 1873 CheckSecretKeyWsResponseOrBuilder { 1874 // Use CheckSecretKeyWsResponse.newBuilder() to construct. 1875 private CheckSecretKeyWsResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 1876 super(builder); 1877 } 1878 private CheckSecretKeyWsResponse() { 1879 secretKeyAvailable_ = false; 1880 } 1881 1882 @java.lang.Override 1883 public final com.google.protobuf.UnknownFieldSet 1884 getUnknownFields() { 1885 return this.unknownFields; 1886 } 1887 private CheckSecretKeyWsResponse( 1888 com.google.protobuf.CodedInputStream input, 1889 com.google.protobuf.ExtensionRegistryLite extensionRegistry) { 1890 this(); 1891 int mutable_bitField0_ = 0; 1892 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 1893 com.google.protobuf.UnknownFieldSet.newBuilder(); 1894 try { 1895 boolean done = false; 1896 while (!done) { 1897 int tag = input.readTag(); 1898 switch (tag) { 1899 case 0: 1900 done = true; 1901 break; 1902 default: { 1903 if (!parseUnknownField(input, unknownFields, 1904 extensionRegistry, tag)) { 1905 done = true; 1906 } 1907 break; 1908 } 1909 case 8: { 1910 bitField0_ |= 0x00000001; 1911 secretKeyAvailable_ = input.readBool(); 1912 break; 1913 } 1914 } 1915 } 1916 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1917 throw new RuntimeException(e.setUnfinishedMessage(this)); 1918 } catch (java.io.IOException e) { 1919 throw new RuntimeException( 1920 new com.google.protobuf.InvalidProtocolBufferException( 1921 e.getMessage()).setUnfinishedMessage(this)); 1922 } finally { 1923 this.unknownFields = unknownFields.build(); 1924 makeExtensionsImmutable(); 1925 } 1926 } 1927 public static final com.google.protobuf.Descriptors.Descriptor 1928 getDescriptor() { 1929 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_CheckSecretKeyWsResponse_descriptor; 1930 } 1931 1932 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 1933 internalGetFieldAccessorTable() { 1934 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_CheckSecretKeyWsResponse_fieldAccessorTable 1935 .ensureFieldAccessorsInitialized( 1936 org.sonarqube.ws.Settings.CheckSecretKeyWsResponse.class, org.sonarqube.ws.Settings.CheckSecretKeyWsResponse.Builder.class); 1937 } 1938 1939 private int bitField0_; 1940 public static final int SECRETKEYAVAILABLE_FIELD_NUMBER = 1; 1941 private boolean secretKeyAvailable_; 1942 /** 1943 * <code>optional bool secretKeyAvailable = 1;</code> 1944 */ 1945 public boolean hasSecretKeyAvailable() { 1946 return ((bitField0_ & 0x00000001) == 0x00000001); 1947 } 1948 /** 1949 * <code>optional bool secretKeyAvailable = 1;</code> 1950 */ 1951 public boolean getSecretKeyAvailable() { 1952 return secretKeyAvailable_; 1953 } 1954 1955 private byte memoizedIsInitialized = -1; 1956 public final boolean isInitialized() { 1957 byte isInitialized = memoizedIsInitialized; 1958 if (isInitialized == 1) return true; 1959 if (isInitialized == 0) return false; 1960 1961 memoizedIsInitialized = 1; 1962 return true; 1963 } 1964 1965 public void writeTo(com.google.protobuf.CodedOutputStream output) 1966 throws java.io.IOException { 1967 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1968 output.writeBool(1, secretKeyAvailable_); 1969 } 1970 unknownFields.writeTo(output); 1971 } 1972 1973 public int getSerializedSize() { 1974 int size = memoizedSize; 1975 if (size != -1) return size; 1976 1977 size = 0; 1978 if (((bitField0_ & 0x00000001) == 0x00000001)) { 1979 size += com.google.protobuf.CodedOutputStream 1980 .computeBoolSize(1, secretKeyAvailable_); 1981 } 1982 size += unknownFields.getSerializedSize(); 1983 memoizedSize = size; 1984 return size; 1985 } 1986 1987 private static final long serialVersionUID = 0L; 1988 public static org.sonarqube.ws.Settings.CheckSecretKeyWsResponse parseFrom( 1989 com.google.protobuf.ByteString data) 1990 throws com.google.protobuf.InvalidProtocolBufferException { 1991 return PARSER.parseFrom(data); 1992 } 1993 public static org.sonarqube.ws.Settings.CheckSecretKeyWsResponse parseFrom( 1994 com.google.protobuf.ByteString data, 1995 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1996 throws com.google.protobuf.InvalidProtocolBufferException { 1997 return PARSER.parseFrom(data, extensionRegistry); 1998 } 1999 public static org.sonarqube.ws.Settings.CheckSecretKeyWsResponse parseFrom(byte[] data) 2000 throws com.google.protobuf.InvalidProtocolBufferException { 2001 return PARSER.parseFrom(data); 2002 } 2003 public static org.sonarqube.ws.Settings.CheckSecretKeyWsResponse parseFrom( 2004 byte[] data, 2005 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2006 throws com.google.protobuf.InvalidProtocolBufferException { 2007 return PARSER.parseFrom(data, extensionRegistry); 2008 } 2009 public static org.sonarqube.ws.Settings.CheckSecretKeyWsResponse parseFrom(java.io.InputStream input) 2010 throws java.io.IOException { 2011 return PARSER.parseFrom(input); 2012 } 2013 public static org.sonarqube.ws.Settings.CheckSecretKeyWsResponse parseFrom( 2014 java.io.InputStream input, 2015 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2016 throws java.io.IOException { 2017 return PARSER.parseFrom(input, extensionRegistry); 2018 } 2019 public static org.sonarqube.ws.Settings.CheckSecretKeyWsResponse parseDelimitedFrom(java.io.InputStream input) 2020 throws java.io.IOException { 2021 return PARSER.parseDelimitedFrom(input); 2022 } 2023 public static org.sonarqube.ws.Settings.CheckSecretKeyWsResponse parseDelimitedFrom( 2024 java.io.InputStream input, 2025 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2026 throws java.io.IOException { 2027 return PARSER.parseDelimitedFrom(input, extensionRegistry); 2028 } 2029 public static org.sonarqube.ws.Settings.CheckSecretKeyWsResponse parseFrom( 2030 com.google.protobuf.CodedInputStream input) 2031 throws java.io.IOException { 2032 return PARSER.parseFrom(input); 2033 } 2034 public static org.sonarqube.ws.Settings.CheckSecretKeyWsResponse parseFrom( 2035 com.google.protobuf.CodedInputStream input, 2036 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2037 throws java.io.IOException { 2038 return PARSER.parseFrom(input, extensionRegistry); 2039 } 2040 2041 public Builder newBuilderForType() { return newBuilder(); } 2042 public static Builder newBuilder() { 2043 return DEFAULT_INSTANCE.toBuilder(); 2044 } 2045 public static Builder newBuilder(org.sonarqube.ws.Settings.CheckSecretKeyWsResponse prototype) { 2046 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 2047 } 2048 public Builder toBuilder() { 2049 return this == DEFAULT_INSTANCE 2050 ? new Builder() : new Builder().mergeFrom(this); 2051 } 2052 2053 @java.lang.Override 2054 protected Builder newBuilderForType( 2055 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 2056 Builder builder = new Builder(parent); 2057 return builder; 2058 } 2059 /** 2060 * Protobuf type {@code sonarqube.ws.settings.CheckSecretKeyWsResponse} 2061 * 2062 * <pre> 2063 * Response of GET api/settings/check_secret_key 2064 * </pre> 2065 */ 2066 public static final class Builder extends 2067 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 2068 // @@protoc_insertion_point(builder_implements:sonarqube.ws.settings.CheckSecretKeyWsResponse) 2069 org.sonarqube.ws.Settings.CheckSecretKeyWsResponseOrBuilder { 2070 public static final com.google.protobuf.Descriptors.Descriptor 2071 getDescriptor() { 2072 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_CheckSecretKeyWsResponse_descriptor; 2073 } 2074 2075 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 2076 internalGetFieldAccessorTable() { 2077 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_CheckSecretKeyWsResponse_fieldAccessorTable 2078 .ensureFieldAccessorsInitialized( 2079 org.sonarqube.ws.Settings.CheckSecretKeyWsResponse.class, org.sonarqube.ws.Settings.CheckSecretKeyWsResponse.Builder.class); 2080 } 2081 2082 // Construct using org.sonarqube.ws.Settings.CheckSecretKeyWsResponse.newBuilder() 2083 private Builder() { 2084 maybeForceBuilderInitialization(); 2085 } 2086 2087 private Builder( 2088 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 2089 super(parent); 2090 maybeForceBuilderInitialization(); 2091 } 2092 private void maybeForceBuilderInitialization() { 2093 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 2094 } 2095 } 2096 public Builder clear() { 2097 super.clear(); 2098 secretKeyAvailable_ = false; 2099 bitField0_ = (bitField0_ & ~0x00000001); 2100 return this; 2101 } 2102 2103 public com.google.protobuf.Descriptors.Descriptor 2104 getDescriptorForType() { 2105 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_CheckSecretKeyWsResponse_descriptor; 2106 } 2107 2108 public org.sonarqube.ws.Settings.CheckSecretKeyWsResponse getDefaultInstanceForType() { 2109 return org.sonarqube.ws.Settings.CheckSecretKeyWsResponse.getDefaultInstance(); 2110 } 2111 2112 public org.sonarqube.ws.Settings.CheckSecretKeyWsResponse build() { 2113 org.sonarqube.ws.Settings.CheckSecretKeyWsResponse result = buildPartial(); 2114 if (!result.isInitialized()) { 2115 throw newUninitializedMessageException(result); 2116 } 2117 return result; 2118 } 2119 2120 public org.sonarqube.ws.Settings.CheckSecretKeyWsResponse buildPartial() { 2121 org.sonarqube.ws.Settings.CheckSecretKeyWsResponse result = new org.sonarqube.ws.Settings.CheckSecretKeyWsResponse(this); 2122 int from_bitField0_ = bitField0_; 2123 int to_bitField0_ = 0; 2124 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 2125 to_bitField0_ |= 0x00000001; 2126 } 2127 result.secretKeyAvailable_ = secretKeyAvailable_; 2128 result.bitField0_ = to_bitField0_; 2129 onBuilt(); 2130 return result; 2131 } 2132 2133 public Builder mergeFrom(com.google.protobuf.Message other) { 2134 if (other instanceof org.sonarqube.ws.Settings.CheckSecretKeyWsResponse) { 2135 return mergeFrom((org.sonarqube.ws.Settings.CheckSecretKeyWsResponse)other); 2136 } else { 2137 super.mergeFrom(other); 2138 return this; 2139 } 2140 } 2141 2142 public Builder mergeFrom(org.sonarqube.ws.Settings.CheckSecretKeyWsResponse other) { 2143 if (other == org.sonarqube.ws.Settings.CheckSecretKeyWsResponse.getDefaultInstance()) return this; 2144 if (other.hasSecretKeyAvailable()) { 2145 setSecretKeyAvailable(other.getSecretKeyAvailable()); 2146 } 2147 this.mergeUnknownFields(other.unknownFields); 2148 onChanged(); 2149 return this; 2150 } 2151 2152 public final boolean isInitialized() { 2153 return true; 2154 } 2155 2156 public Builder mergeFrom( 2157 com.google.protobuf.CodedInputStream input, 2158 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2159 throws java.io.IOException { 2160 org.sonarqube.ws.Settings.CheckSecretKeyWsResponse parsedMessage = null; 2161 try { 2162 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 2163 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2164 parsedMessage = (org.sonarqube.ws.Settings.CheckSecretKeyWsResponse) e.getUnfinishedMessage(); 2165 throw e; 2166 } finally { 2167 if (parsedMessage != null) { 2168 mergeFrom(parsedMessage); 2169 } 2170 } 2171 return this; 2172 } 2173 private int bitField0_; 2174 2175 private boolean secretKeyAvailable_ ; 2176 /** 2177 * <code>optional bool secretKeyAvailable = 1;</code> 2178 */ 2179 public boolean hasSecretKeyAvailable() { 2180 return ((bitField0_ & 0x00000001) == 0x00000001); 2181 } 2182 /** 2183 * <code>optional bool secretKeyAvailable = 1;</code> 2184 */ 2185 public boolean getSecretKeyAvailable() { 2186 return secretKeyAvailable_; 2187 } 2188 /** 2189 * <code>optional bool secretKeyAvailable = 1;</code> 2190 */ 2191 public Builder setSecretKeyAvailable(boolean value) { 2192 bitField0_ |= 0x00000001; 2193 secretKeyAvailable_ = value; 2194 onChanged(); 2195 return this; 2196 } 2197 /** 2198 * <code>optional bool secretKeyAvailable = 1;</code> 2199 */ 2200 public Builder clearSecretKeyAvailable() { 2201 bitField0_ = (bitField0_ & ~0x00000001); 2202 secretKeyAvailable_ = false; 2203 onChanged(); 2204 return this; 2205 } 2206 2207 // @@protoc_insertion_point(builder_scope:sonarqube.ws.settings.CheckSecretKeyWsResponse) 2208 } 2209 2210 // @@protoc_insertion_point(class_scope:sonarqube.ws.settings.CheckSecretKeyWsResponse) 2211 private static final org.sonarqube.ws.Settings.CheckSecretKeyWsResponse DEFAULT_INSTANCE; 2212 static { 2213 DEFAULT_INSTANCE = new org.sonarqube.ws.Settings.CheckSecretKeyWsResponse(); 2214 } 2215 2216 public static org.sonarqube.ws.Settings.CheckSecretKeyWsResponse getDefaultInstance() { 2217 return DEFAULT_INSTANCE; 2218 } 2219 2220 @java.lang.Deprecated public static final com.google.protobuf.Parser<CheckSecretKeyWsResponse> 2221 PARSER = new com.google.protobuf.AbstractParser<CheckSecretKeyWsResponse>() { 2222 public CheckSecretKeyWsResponse parsePartialFrom( 2223 com.google.protobuf.CodedInputStream input, 2224 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 2225 throws com.google.protobuf.InvalidProtocolBufferException { 2226 try { 2227 return new CheckSecretKeyWsResponse(input, extensionRegistry); 2228 } catch (RuntimeException e) { 2229 if (e.getCause() instanceof 2230 com.google.protobuf.InvalidProtocolBufferException) { 2231 throw (com.google.protobuf.InvalidProtocolBufferException) 2232 e.getCause(); 2233 } 2234 throw e; 2235 } 2236 } 2237 }; 2238 2239 public static com.google.protobuf.Parser<CheckSecretKeyWsResponse> parser() { 2240 return PARSER; 2241 } 2242 2243 @java.lang.Override 2244 public com.google.protobuf.Parser<CheckSecretKeyWsResponse> getParserForType() { 2245 return PARSER; 2246 } 2247 2248 public org.sonarqube.ws.Settings.CheckSecretKeyWsResponse getDefaultInstanceForType() { 2249 return DEFAULT_INSTANCE; 2250 } 2251 2252 } 2253 2254 public interface DefinitionOrBuilder extends 2255 // @@protoc_insertion_point(interface_extends:sonarqube.ws.settings.Definition) 2256 com.google.protobuf.MessageOrBuilder { 2257 2258 /** 2259 * <code>optional string key = 1;</code> 2260 */ 2261 boolean hasKey(); 2262 /** 2263 * <code>optional string key = 1;</code> 2264 */ 2265 java.lang.String getKey(); 2266 /** 2267 * <code>optional string key = 1;</code> 2268 */ 2269 com.google.protobuf.ByteString 2270 getKeyBytes(); 2271 2272 /** 2273 * <code>optional string name = 2;</code> 2274 */ 2275 boolean hasName(); 2276 /** 2277 * <code>optional string name = 2;</code> 2278 */ 2279 java.lang.String getName(); 2280 /** 2281 * <code>optional string name = 2;</code> 2282 */ 2283 com.google.protobuf.ByteString 2284 getNameBytes(); 2285 2286 /** 2287 * <code>optional string description = 3;</code> 2288 */ 2289 boolean hasDescription(); 2290 /** 2291 * <code>optional string description = 3;</code> 2292 */ 2293 java.lang.String getDescription(); 2294 /** 2295 * <code>optional string description = 3;</code> 2296 */ 2297 com.google.protobuf.ByteString 2298 getDescriptionBytes(); 2299 2300 /** 2301 * <code>optional .sonarqube.ws.settings.Type type = 4;</code> 2302 */ 2303 boolean hasType(); 2304 /** 2305 * <code>optional .sonarqube.ws.settings.Type type = 4;</code> 2306 */ 2307 org.sonarqube.ws.Settings.Type getType(); 2308 2309 /** 2310 * <code>optional string category = 5;</code> 2311 */ 2312 boolean hasCategory(); 2313 /** 2314 * <code>optional string category = 5;</code> 2315 */ 2316 java.lang.String getCategory(); 2317 /** 2318 * <code>optional string category = 5;</code> 2319 */ 2320 com.google.protobuf.ByteString 2321 getCategoryBytes(); 2322 2323 /** 2324 * <code>optional string subCategory = 6;</code> 2325 */ 2326 boolean hasSubCategory(); 2327 /** 2328 * <code>optional string subCategory = 6;</code> 2329 */ 2330 java.lang.String getSubCategory(); 2331 /** 2332 * <code>optional string subCategory = 6;</code> 2333 */ 2334 com.google.protobuf.ByteString 2335 getSubCategoryBytes(); 2336 2337 /** 2338 * <code>optional string defaultValue = 7;</code> 2339 */ 2340 boolean hasDefaultValue(); 2341 /** 2342 * <code>optional string defaultValue = 7;</code> 2343 */ 2344 java.lang.String getDefaultValue(); 2345 /** 2346 * <code>optional string defaultValue = 7;</code> 2347 */ 2348 com.google.protobuf.ByteString 2349 getDefaultValueBytes(); 2350 2351 /** 2352 * <code>optional bool multiValues = 8;</code> 2353 */ 2354 boolean hasMultiValues(); 2355 /** 2356 * <code>optional bool multiValues = 8;</code> 2357 */ 2358 boolean getMultiValues(); 2359 2360 /** 2361 * <code>repeated string options = 9;</code> 2362 */ 2363 com.google.protobuf.ProtocolStringList 2364 getOptionsList(); 2365 /** 2366 * <code>repeated string options = 9;</code> 2367 */ 2368 int getOptionsCount(); 2369 /** 2370 * <code>repeated string options = 9;</code> 2371 */ 2372 java.lang.String getOptions(int index); 2373 /** 2374 * <code>repeated string options = 9;</code> 2375 */ 2376 com.google.protobuf.ByteString 2377 getOptionsBytes(int index); 2378 2379 /** 2380 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 2381 */ 2382 java.util.List<org.sonarqube.ws.Settings.Field> 2383 getFieldsList(); 2384 /** 2385 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 2386 */ 2387 org.sonarqube.ws.Settings.Field getFields(int index); 2388 /** 2389 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 2390 */ 2391 int getFieldsCount(); 2392 /** 2393 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 2394 */ 2395 java.util.List<? extends org.sonarqube.ws.Settings.FieldOrBuilder> 2396 getFieldsOrBuilderList(); 2397 /** 2398 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 2399 */ 2400 org.sonarqube.ws.Settings.FieldOrBuilder getFieldsOrBuilder( 2401 int index); 2402 2403 /** 2404 * <code>optional string deprecatedKey = 11;</code> 2405 */ 2406 boolean hasDeprecatedKey(); 2407 /** 2408 * <code>optional string deprecatedKey = 11;</code> 2409 */ 2410 java.lang.String getDeprecatedKey(); 2411 /** 2412 * <code>optional string deprecatedKey = 11;</code> 2413 */ 2414 com.google.protobuf.ByteString 2415 getDeprecatedKeyBytes(); 2416 } 2417 /** 2418 * Protobuf type {@code sonarqube.ws.settings.Definition} 2419 */ 2420 public static final class Definition extends 2421 com.google.protobuf.GeneratedMessage implements 2422 // @@protoc_insertion_point(message_implements:sonarqube.ws.settings.Definition) 2423 DefinitionOrBuilder { 2424 // Use Definition.newBuilder() to construct. 2425 private Definition(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 2426 super(builder); 2427 } 2428 private Definition() { 2429 key_ = ""; 2430 name_ = ""; 2431 description_ = ""; 2432 type_ = 0; 2433 category_ = ""; 2434 subCategory_ = ""; 2435 defaultValue_ = ""; 2436 multiValues_ = false; 2437 options_ = com.google.protobuf.LazyStringArrayList.EMPTY; 2438 fields_ = java.util.Collections.emptyList(); 2439 deprecatedKey_ = ""; 2440 } 2441 2442 @java.lang.Override 2443 public final com.google.protobuf.UnknownFieldSet 2444 getUnknownFields() { 2445 return this.unknownFields; 2446 } 2447 private Definition( 2448 com.google.protobuf.CodedInputStream input, 2449 com.google.protobuf.ExtensionRegistryLite extensionRegistry) { 2450 this(); 2451 int mutable_bitField0_ = 0; 2452 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 2453 com.google.protobuf.UnknownFieldSet.newBuilder(); 2454 try { 2455 boolean done = false; 2456 while (!done) { 2457 int tag = input.readTag(); 2458 switch (tag) { 2459 case 0: 2460 done = true; 2461 break; 2462 default: { 2463 if (!parseUnknownField(input, unknownFields, 2464 extensionRegistry, tag)) { 2465 done = true; 2466 } 2467 break; 2468 } 2469 case 10: { 2470 com.google.protobuf.ByteString bs = input.readBytes(); 2471 bitField0_ |= 0x00000001; 2472 key_ = bs; 2473 break; 2474 } 2475 case 18: { 2476 com.google.protobuf.ByteString bs = input.readBytes(); 2477 bitField0_ |= 0x00000002; 2478 name_ = bs; 2479 break; 2480 } 2481 case 26: { 2482 com.google.protobuf.ByteString bs = input.readBytes(); 2483 bitField0_ |= 0x00000004; 2484 description_ = bs; 2485 break; 2486 } 2487 case 32: { 2488 int rawValue = input.readEnum(); 2489 org.sonarqube.ws.Settings.Type value = org.sonarqube.ws.Settings.Type.valueOf(rawValue); 2490 if (value == null) { 2491 unknownFields.mergeVarintField(4, rawValue); 2492 } else { 2493 bitField0_ |= 0x00000008; 2494 type_ = rawValue; 2495 } 2496 break; 2497 } 2498 case 42: { 2499 com.google.protobuf.ByteString bs = input.readBytes(); 2500 bitField0_ |= 0x00000010; 2501 category_ = bs; 2502 break; 2503 } 2504 case 50: { 2505 com.google.protobuf.ByteString bs = input.readBytes(); 2506 bitField0_ |= 0x00000020; 2507 subCategory_ = bs; 2508 break; 2509 } 2510 case 58: { 2511 com.google.protobuf.ByteString bs = input.readBytes(); 2512 bitField0_ |= 0x00000040; 2513 defaultValue_ = bs; 2514 break; 2515 } 2516 case 64: { 2517 bitField0_ |= 0x00000080; 2518 multiValues_ = input.readBool(); 2519 break; 2520 } 2521 case 74: { 2522 com.google.protobuf.ByteString bs = input.readBytes(); 2523 if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { 2524 options_ = new com.google.protobuf.LazyStringArrayList(); 2525 mutable_bitField0_ |= 0x00000100; 2526 } 2527 options_.add(bs); 2528 break; 2529 } 2530 case 82: { 2531 if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { 2532 fields_ = new java.util.ArrayList<org.sonarqube.ws.Settings.Field>(); 2533 mutable_bitField0_ |= 0x00000200; 2534 } 2535 fields_.add(input.readMessage(org.sonarqube.ws.Settings.Field.parser(), extensionRegistry)); 2536 break; 2537 } 2538 case 90: { 2539 com.google.protobuf.ByteString bs = input.readBytes(); 2540 bitField0_ |= 0x00000100; 2541 deprecatedKey_ = bs; 2542 break; 2543 } 2544 } 2545 } 2546 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 2547 throw new RuntimeException(e.setUnfinishedMessage(this)); 2548 } catch (java.io.IOException e) { 2549 throw new RuntimeException( 2550 new com.google.protobuf.InvalidProtocolBufferException( 2551 e.getMessage()).setUnfinishedMessage(this)); 2552 } finally { 2553 if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { 2554 options_ = options_.getUnmodifiableView(); 2555 } 2556 if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { 2557 fields_ = java.util.Collections.unmodifiableList(fields_); 2558 } 2559 this.unknownFields = unknownFields.build(); 2560 makeExtensionsImmutable(); 2561 } 2562 } 2563 public static final com.google.protobuf.Descriptors.Descriptor 2564 getDescriptor() { 2565 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Definition_descriptor; 2566 } 2567 2568 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 2569 internalGetFieldAccessorTable() { 2570 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Definition_fieldAccessorTable 2571 .ensureFieldAccessorsInitialized( 2572 org.sonarqube.ws.Settings.Definition.class, org.sonarqube.ws.Settings.Definition.Builder.class); 2573 } 2574 2575 private int bitField0_; 2576 public static final int KEY_FIELD_NUMBER = 1; 2577 private volatile java.lang.Object key_; 2578 /** 2579 * <code>optional string key = 1;</code> 2580 */ 2581 public boolean hasKey() { 2582 return ((bitField0_ & 0x00000001) == 0x00000001); 2583 } 2584 /** 2585 * <code>optional string key = 1;</code> 2586 */ 2587 public java.lang.String getKey() { 2588 java.lang.Object ref = key_; 2589 if (ref instanceof java.lang.String) { 2590 return (java.lang.String) ref; 2591 } else { 2592 com.google.protobuf.ByteString bs = 2593 (com.google.protobuf.ByteString) ref; 2594 java.lang.String s = bs.toStringUtf8(); 2595 if (bs.isValidUtf8()) { 2596 key_ = s; 2597 } 2598 return s; 2599 } 2600 } 2601 /** 2602 * <code>optional string key = 1;</code> 2603 */ 2604 public com.google.protobuf.ByteString 2605 getKeyBytes() { 2606 java.lang.Object ref = key_; 2607 if (ref instanceof java.lang.String) { 2608 com.google.protobuf.ByteString b = 2609 com.google.protobuf.ByteString.copyFromUtf8( 2610 (java.lang.String) ref); 2611 key_ = b; 2612 return b; 2613 } else { 2614 return (com.google.protobuf.ByteString) ref; 2615 } 2616 } 2617 2618 public static final int NAME_FIELD_NUMBER = 2; 2619 private volatile java.lang.Object name_; 2620 /** 2621 * <code>optional string name = 2;</code> 2622 */ 2623 public boolean hasName() { 2624 return ((bitField0_ & 0x00000002) == 0x00000002); 2625 } 2626 /** 2627 * <code>optional string name = 2;</code> 2628 */ 2629 public java.lang.String getName() { 2630 java.lang.Object ref = name_; 2631 if (ref instanceof java.lang.String) { 2632 return (java.lang.String) ref; 2633 } else { 2634 com.google.protobuf.ByteString bs = 2635 (com.google.protobuf.ByteString) ref; 2636 java.lang.String s = bs.toStringUtf8(); 2637 if (bs.isValidUtf8()) { 2638 name_ = s; 2639 } 2640 return s; 2641 } 2642 } 2643 /** 2644 * <code>optional string name = 2;</code> 2645 */ 2646 public com.google.protobuf.ByteString 2647 getNameBytes() { 2648 java.lang.Object ref = name_; 2649 if (ref instanceof java.lang.String) { 2650 com.google.protobuf.ByteString b = 2651 com.google.protobuf.ByteString.copyFromUtf8( 2652 (java.lang.String) ref); 2653 name_ = b; 2654 return b; 2655 } else { 2656 return (com.google.protobuf.ByteString) ref; 2657 } 2658 } 2659 2660 public static final int DESCRIPTION_FIELD_NUMBER = 3; 2661 private volatile java.lang.Object description_; 2662 /** 2663 * <code>optional string description = 3;</code> 2664 */ 2665 public boolean hasDescription() { 2666 return ((bitField0_ & 0x00000004) == 0x00000004); 2667 } 2668 /** 2669 * <code>optional string description = 3;</code> 2670 */ 2671 public java.lang.String getDescription() { 2672 java.lang.Object ref = description_; 2673 if (ref instanceof java.lang.String) { 2674 return (java.lang.String) ref; 2675 } else { 2676 com.google.protobuf.ByteString bs = 2677 (com.google.protobuf.ByteString) ref; 2678 java.lang.String s = bs.toStringUtf8(); 2679 if (bs.isValidUtf8()) { 2680 description_ = s; 2681 } 2682 return s; 2683 } 2684 } 2685 /** 2686 * <code>optional string description = 3;</code> 2687 */ 2688 public com.google.protobuf.ByteString 2689 getDescriptionBytes() { 2690 java.lang.Object ref = description_; 2691 if (ref instanceof java.lang.String) { 2692 com.google.protobuf.ByteString b = 2693 com.google.protobuf.ByteString.copyFromUtf8( 2694 (java.lang.String) ref); 2695 description_ = b; 2696 return b; 2697 } else { 2698 return (com.google.protobuf.ByteString) ref; 2699 } 2700 } 2701 2702 public static final int TYPE_FIELD_NUMBER = 4; 2703 private int type_; 2704 /** 2705 * <code>optional .sonarqube.ws.settings.Type type = 4;</code> 2706 */ 2707 public boolean hasType() { 2708 return ((bitField0_ & 0x00000008) == 0x00000008); 2709 } 2710 /** 2711 * <code>optional .sonarqube.ws.settings.Type type = 4;</code> 2712 */ 2713 public org.sonarqube.ws.Settings.Type getType() { 2714 org.sonarqube.ws.Settings.Type result = org.sonarqube.ws.Settings.Type.valueOf(type_); 2715 return result == null ? org.sonarqube.ws.Settings.Type.STRING : result; 2716 } 2717 2718 public static final int CATEGORY_FIELD_NUMBER = 5; 2719 private volatile java.lang.Object category_; 2720 /** 2721 * <code>optional string category = 5;</code> 2722 */ 2723 public boolean hasCategory() { 2724 return ((bitField0_ & 0x00000010) == 0x00000010); 2725 } 2726 /** 2727 * <code>optional string category = 5;</code> 2728 */ 2729 public java.lang.String getCategory() { 2730 java.lang.Object ref = category_; 2731 if (ref instanceof java.lang.String) { 2732 return (java.lang.String) ref; 2733 } else { 2734 com.google.protobuf.ByteString bs = 2735 (com.google.protobuf.ByteString) ref; 2736 java.lang.String s = bs.toStringUtf8(); 2737 if (bs.isValidUtf8()) { 2738 category_ = s; 2739 } 2740 return s; 2741 } 2742 } 2743 /** 2744 * <code>optional string category = 5;</code> 2745 */ 2746 public com.google.protobuf.ByteString 2747 getCategoryBytes() { 2748 java.lang.Object ref = category_; 2749 if (ref instanceof java.lang.String) { 2750 com.google.protobuf.ByteString b = 2751 com.google.protobuf.ByteString.copyFromUtf8( 2752 (java.lang.String) ref); 2753 category_ = b; 2754 return b; 2755 } else { 2756 return (com.google.protobuf.ByteString) ref; 2757 } 2758 } 2759 2760 public static final int SUBCATEGORY_FIELD_NUMBER = 6; 2761 private volatile java.lang.Object subCategory_; 2762 /** 2763 * <code>optional string subCategory = 6;</code> 2764 */ 2765 public boolean hasSubCategory() { 2766 return ((bitField0_ & 0x00000020) == 0x00000020); 2767 } 2768 /** 2769 * <code>optional string subCategory = 6;</code> 2770 */ 2771 public java.lang.String getSubCategory() { 2772 java.lang.Object ref = subCategory_; 2773 if (ref instanceof java.lang.String) { 2774 return (java.lang.String) ref; 2775 } else { 2776 com.google.protobuf.ByteString bs = 2777 (com.google.protobuf.ByteString) ref; 2778 java.lang.String s = bs.toStringUtf8(); 2779 if (bs.isValidUtf8()) { 2780 subCategory_ = s; 2781 } 2782 return s; 2783 } 2784 } 2785 /** 2786 * <code>optional string subCategory = 6;</code> 2787 */ 2788 public com.google.protobuf.ByteString 2789 getSubCategoryBytes() { 2790 java.lang.Object ref = subCategory_; 2791 if (ref instanceof java.lang.String) { 2792 com.google.protobuf.ByteString b = 2793 com.google.protobuf.ByteString.copyFromUtf8( 2794 (java.lang.String) ref); 2795 subCategory_ = b; 2796 return b; 2797 } else { 2798 return (com.google.protobuf.ByteString) ref; 2799 } 2800 } 2801 2802 public static final int DEFAULTVALUE_FIELD_NUMBER = 7; 2803 private volatile java.lang.Object defaultValue_; 2804 /** 2805 * <code>optional string defaultValue = 7;</code> 2806 */ 2807 public boolean hasDefaultValue() { 2808 return ((bitField0_ & 0x00000040) == 0x00000040); 2809 } 2810 /** 2811 * <code>optional string defaultValue = 7;</code> 2812 */ 2813 public java.lang.String getDefaultValue() { 2814 java.lang.Object ref = defaultValue_; 2815 if (ref instanceof java.lang.String) { 2816 return (java.lang.String) ref; 2817 } else { 2818 com.google.protobuf.ByteString bs = 2819 (com.google.protobuf.ByteString) ref; 2820 java.lang.String s = bs.toStringUtf8(); 2821 if (bs.isValidUtf8()) { 2822 defaultValue_ = s; 2823 } 2824 return s; 2825 } 2826 } 2827 /** 2828 * <code>optional string defaultValue = 7;</code> 2829 */ 2830 public com.google.protobuf.ByteString 2831 getDefaultValueBytes() { 2832 java.lang.Object ref = defaultValue_; 2833 if (ref instanceof java.lang.String) { 2834 com.google.protobuf.ByteString b = 2835 com.google.protobuf.ByteString.copyFromUtf8( 2836 (java.lang.String) ref); 2837 defaultValue_ = b; 2838 return b; 2839 } else { 2840 return (com.google.protobuf.ByteString) ref; 2841 } 2842 } 2843 2844 public static final int MULTIVALUES_FIELD_NUMBER = 8; 2845 private boolean multiValues_; 2846 /** 2847 * <code>optional bool multiValues = 8;</code> 2848 */ 2849 public boolean hasMultiValues() { 2850 return ((bitField0_ & 0x00000080) == 0x00000080); 2851 } 2852 /** 2853 * <code>optional bool multiValues = 8;</code> 2854 */ 2855 public boolean getMultiValues() { 2856 return multiValues_; 2857 } 2858 2859 public static final int OPTIONS_FIELD_NUMBER = 9; 2860 private com.google.protobuf.LazyStringList options_; 2861 /** 2862 * <code>repeated string options = 9;</code> 2863 */ 2864 public com.google.protobuf.ProtocolStringList 2865 getOptionsList() { 2866 return options_; 2867 } 2868 /** 2869 * <code>repeated string options = 9;</code> 2870 */ 2871 public int getOptionsCount() { 2872 return options_.size(); 2873 } 2874 /** 2875 * <code>repeated string options = 9;</code> 2876 */ 2877 public java.lang.String getOptions(int index) { 2878 return options_.get(index); 2879 } 2880 /** 2881 * <code>repeated string options = 9;</code> 2882 */ 2883 public com.google.protobuf.ByteString 2884 getOptionsBytes(int index) { 2885 return options_.getByteString(index); 2886 } 2887 2888 public static final int FIELDS_FIELD_NUMBER = 10; 2889 private java.util.List<org.sonarqube.ws.Settings.Field> fields_; 2890 /** 2891 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 2892 */ 2893 public java.util.List<org.sonarqube.ws.Settings.Field> getFieldsList() { 2894 return fields_; 2895 } 2896 /** 2897 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 2898 */ 2899 public java.util.List<? extends org.sonarqube.ws.Settings.FieldOrBuilder> 2900 getFieldsOrBuilderList() { 2901 return fields_; 2902 } 2903 /** 2904 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 2905 */ 2906 public int getFieldsCount() { 2907 return fields_.size(); 2908 } 2909 /** 2910 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 2911 */ 2912 public org.sonarqube.ws.Settings.Field getFields(int index) { 2913 return fields_.get(index); 2914 } 2915 /** 2916 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 2917 */ 2918 public org.sonarqube.ws.Settings.FieldOrBuilder getFieldsOrBuilder( 2919 int index) { 2920 return fields_.get(index); 2921 } 2922 2923 public static final int DEPRECATEDKEY_FIELD_NUMBER = 11; 2924 private volatile java.lang.Object deprecatedKey_; 2925 /** 2926 * <code>optional string deprecatedKey = 11;</code> 2927 */ 2928 public boolean hasDeprecatedKey() { 2929 return ((bitField0_ & 0x00000100) == 0x00000100); 2930 } 2931 /** 2932 * <code>optional string deprecatedKey = 11;</code> 2933 */ 2934 public java.lang.String getDeprecatedKey() { 2935 java.lang.Object ref = deprecatedKey_; 2936 if (ref instanceof java.lang.String) { 2937 return (java.lang.String) ref; 2938 } else { 2939 com.google.protobuf.ByteString bs = 2940 (com.google.protobuf.ByteString) ref; 2941 java.lang.String s = bs.toStringUtf8(); 2942 if (bs.isValidUtf8()) { 2943 deprecatedKey_ = s; 2944 } 2945 return s; 2946 } 2947 } 2948 /** 2949 * <code>optional string deprecatedKey = 11;</code> 2950 */ 2951 public com.google.protobuf.ByteString 2952 getDeprecatedKeyBytes() { 2953 java.lang.Object ref = deprecatedKey_; 2954 if (ref instanceof java.lang.String) { 2955 com.google.protobuf.ByteString b = 2956 com.google.protobuf.ByteString.copyFromUtf8( 2957 (java.lang.String) ref); 2958 deprecatedKey_ = b; 2959 return b; 2960 } else { 2961 return (com.google.protobuf.ByteString) ref; 2962 } 2963 } 2964 2965 private byte memoizedIsInitialized = -1; 2966 public final boolean isInitialized() { 2967 byte isInitialized = memoizedIsInitialized; 2968 if (isInitialized == 1) return true; 2969 if (isInitialized == 0) return false; 2970 2971 memoizedIsInitialized = 1; 2972 return true; 2973 } 2974 2975 public void writeTo(com.google.protobuf.CodedOutputStream output) 2976 throws java.io.IOException { 2977 if (((bitField0_ & 0x00000001) == 0x00000001)) { 2978 com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); 2979 } 2980 if (((bitField0_ & 0x00000002) == 0x00000002)) { 2981 com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); 2982 } 2983 if (((bitField0_ & 0x00000004) == 0x00000004)) { 2984 com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); 2985 } 2986 if (((bitField0_ & 0x00000008) == 0x00000008)) { 2987 output.writeEnum(4, type_); 2988 } 2989 if (((bitField0_ & 0x00000010) == 0x00000010)) { 2990 com.google.protobuf.GeneratedMessage.writeString(output, 5, category_); 2991 } 2992 if (((bitField0_ & 0x00000020) == 0x00000020)) { 2993 com.google.protobuf.GeneratedMessage.writeString(output, 6, subCategory_); 2994 } 2995 if (((bitField0_ & 0x00000040) == 0x00000040)) { 2996 com.google.protobuf.GeneratedMessage.writeString(output, 7, defaultValue_); 2997 } 2998 if (((bitField0_ & 0x00000080) == 0x00000080)) { 2999 output.writeBool(8, multiValues_); 3000 } 3001 for (int i = 0; i < options_.size(); i++) { 3002 com.google.protobuf.GeneratedMessage.writeString(output, 9, options_.getRaw(i)); 3003 } 3004 for (int i = 0; i < fields_.size(); i++) { 3005 output.writeMessage(10, fields_.get(i)); 3006 } 3007 if (((bitField0_ & 0x00000100) == 0x00000100)) { 3008 com.google.protobuf.GeneratedMessage.writeString(output, 11, deprecatedKey_); 3009 } 3010 unknownFields.writeTo(output); 3011 } 3012 3013 public int getSerializedSize() { 3014 int size = memoizedSize; 3015 if (size != -1) return size; 3016 3017 size = 0; 3018 if (((bitField0_ & 0x00000001) == 0x00000001)) { 3019 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); 3020 } 3021 if (((bitField0_ & 0x00000002) == 0x00000002)) { 3022 size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); 3023 } 3024 if (((bitField0_ & 0x00000004) == 0x00000004)) { 3025 size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); 3026 } 3027 if (((bitField0_ & 0x00000008) == 0x00000008)) { 3028 size += com.google.protobuf.CodedOutputStream 3029 .computeEnumSize(4, type_); 3030 } 3031 if (((bitField0_ & 0x00000010) == 0x00000010)) { 3032 size += com.google.protobuf.GeneratedMessage.computeStringSize(5, category_); 3033 } 3034 if (((bitField0_ & 0x00000020) == 0x00000020)) { 3035 size += com.google.protobuf.GeneratedMessage.computeStringSize(6, subCategory_); 3036 } 3037 if (((bitField0_ & 0x00000040) == 0x00000040)) { 3038 size += com.google.protobuf.GeneratedMessage.computeStringSize(7, defaultValue_); 3039 } 3040 if (((bitField0_ & 0x00000080) == 0x00000080)) { 3041 size += com.google.protobuf.CodedOutputStream 3042 .computeBoolSize(8, multiValues_); 3043 } 3044 { 3045 int dataSize = 0; 3046 for (int i = 0; i < options_.size(); i++) { 3047 dataSize += computeStringSizeNoTag(options_.getRaw(i)); 3048 } 3049 size += dataSize; 3050 size += 1 * getOptionsList().size(); 3051 } 3052 for (int i = 0; i < fields_.size(); i++) { 3053 size += com.google.protobuf.CodedOutputStream 3054 .computeMessageSize(10, fields_.get(i)); 3055 } 3056 if (((bitField0_ & 0x00000100) == 0x00000100)) { 3057 size += com.google.protobuf.GeneratedMessage.computeStringSize(11, deprecatedKey_); 3058 } 3059 size += unknownFields.getSerializedSize(); 3060 memoizedSize = size; 3061 return size; 3062 } 3063 3064 private static final long serialVersionUID = 0L; 3065 public static org.sonarqube.ws.Settings.Definition parseFrom( 3066 com.google.protobuf.ByteString data) 3067 throws com.google.protobuf.InvalidProtocolBufferException { 3068 return PARSER.parseFrom(data); 3069 } 3070 public static org.sonarqube.ws.Settings.Definition parseFrom( 3071 com.google.protobuf.ByteString data, 3072 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3073 throws com.google.protobuf.InvalidProtocolBufferException { 3074 return PARSER.parseFrom(data, extensionRegistry); 3075 } 3076 public static org.sonarqube.ws.Settings.Definition parseFrom(byte[] data) 3077 throws com.google.protobuf.InvalidProtocolBufferException { 3078 return PARSER.parseFrom(data); 3079 } 3080 public static org.sonarqube.ws.Settings.Definition parseFrom( 3081 byte[] data, 3082 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3083 throws com.google.protobuf.InvalidProtocolBufferException { 3084 return PARSER.parseFrom(data, extensionRegistry); 3085 } 3086 public static org.sonarqube.ws.Settings.Definition parseFrom(java.io.InputStream input) 3087 throws java.io.IOException { 3088 return PARSER.parseFrom(input); 3089 } 3090 public static org.sonarqube.ws.Settings.Definition parseFrom( 3091 java.io.InputStream input, 3092 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3093 throws java.io.IOException { 3094 return PARSER.parseFrom(input, extensionRegistry); 3095 } 3096 public static org.sonarqube.ws.Settings.Definition parseDelimitedFrom(java.io.InputStream input) 3097 throws java.io.IOException { 3098 return PARSER.parseDelimitedFrom(input); 3099 } 3100 public static org.sonarqube.ws.Settings.Definition parseDelimitedFrom( 3101 java.io.InputStream input, 3102 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3103 throws java.io.IOException { 3104 return PARSER.parseDelimitedFrom(input, extensionRegistry); 3105 } 3106 public static org.sonarqube.ws.Settings.Definition parseFrom( 3107 com.google.protobuf.CodedInputStream input) 3108 throws java.io.IOException { 3109 return PARSER.parseFrom(input); 3110 } 3111 public static org.sonarqube.ws.Settings.Definition parseFrom( 3112 com.google.protobuf.CodedInputStream input, 3113 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3114 throws java.io.IOException { 3115 return PARSER.parseFrom(input, extensionRegistry); 3116 } 3117 3118 public Builder newBuilderForType() { return newBuilder(); } 3119 public static Builder newBuilder() { 3120 return DEFAULT_INSTANCE.toBuilder(); 3121 } 3122 public static Builder newBuilder(org.sonarqube.ws.Settings.Definition prototype) { 3123 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 3124 } 3125 public Builder toBuilder() { 3126 return this == DEFAULT_INSTANCE 3127 ? new Builder() : new Builder().mergeFrom(this); 3128 } 3129 3130 @java.lang.Override 3131 protected Builder newBuilderForType( 3132 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 3133 Builder builder = new Builder(parent); 3134 return builder; 3135 } 3136 /** 3137 * Protobuf type {@code sonarqube.ws.settings.Definition} 3138 */ 3139 public static final class Builder extends 3140 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 3141 // @@protoc_insertion_point(builder_implements:sonarqube.ws.settings.Definition) 3142 org.sonarqube.ws.Settings.DefinitionOrBuilder { 3143 public static final com.google.protobuf.Descriptors.Descriptor 3144 getDescriptor() { 3145 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Definition_descriptor; 3146 } 3147 3148 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 3149 internalGetFieldAccessorTable() { 3150 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Definition_fieldAccessorTable 3151 .ensureFieldAccessorsInitialized( 3152 org.sonarqube.ws.Settings.Definition.class, org.sonarqube.ws.Settings.Definition.Builder.class); 3153 } 3154 3155 // Construct using org.sonarqube.ws.Settings.Definition.newBuilder() 3156 private Builder() { 3157 maybeForceBuilderInitialization(); 3158 } 3159 3160 private Builder( 3161 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 3162 super(parent); 3163 maybeForceBuilderInitialization(); 3164 } 3165 private void maybeForceBuilderInitialization() { 3166 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 3167 getFieldsFieldBuilder(); 3168 } 3169 } 3170 public Builder clear() { 3171 super.clear(); 3172 key_ = ""; 3173 bitField0_ = (bitField0_ & ~0x00000001); 3174 name_ = ""; 3175 bitField0_ = (bitField0_ & ~0x00000002); 3176 description_ = ""; 3177 bitField0_ = (bitField0_ & ~0x00000004); 3178 type_ = 0; 3179 bitField0_ = (bitField0_ & ~0x00000008); 3180 category_ = ""; 3181 bitField0_ = (bitField0_ & ~0x00000010); 3182 subCategory_ = ""; 3183 bitField0_ = (bitField0_ & ~0x00000020); 3184 defaultValue_ = ""; 3185 bitField0_ = (bitField0_ & ~0x00000040); 3186 multiValues_ = false; 3187 bitField0_ = (bitField0_ & ~0x00000080); 3188 options_ = com.google.protobuf.LazyStringArrayList.EMPTY; 3189 bitField0_ = (bitField0_ & ~0x00000100); 3190 if (fieldsBuilder_ == null) { 3191 fields_ = java.util.Collections.emptyList(); 3192 bitField0_ = (bitField0_ & ~0x00000200); 3193 } else { 3194 fieldsBuilder_.clear(); 3195 } 3196 deprecatedKey_ = ""; 3197 bitField0_ = (bitField0_ & ~0x00000400); 3198 return this; 3199 } 3200 3201 public com.google.protobuf.Descriptors.Descriptor 3202 getDescriptorForType() { 3203 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Definition_descriptor; 3204 } 3205 3206 public org.sonarqube.ws.Settings.Definition getDefaultInstanceForType() { 3207 return org.sonarqube.ws.Settings.Definition.getDefaultInstance(); 3208 } 3209 3210 public org.sonarqube.ws.Settings.Definition build() { 3211 org.sonarqube.ws.Settings.Definition result = buildPartial(); 3212 if (!result.isInitialized()) { 3213 throw newUninitializedMessageException(result); 3214 } 3215 return result; 3216 } 3217 3218 public org.sonarqube.ws.Settings.Definition buildPartial() { 3219 org.sonarqube.ws.Settings.Definition result = new org.sonarqube.ws.Settings.Definition(this); 3220 int from_bitField0_ = bitField0_; 3221 int to_bitField0_ = 0; 3222 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 3223 to_bitField0_ |= 0x00000001; 3224 } 3225 result.key_ = key_; 3226 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 3227 to_bitField0_ |= 0x00000002; 3228 } 3229 result.name_ = name_; 3230 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 3231 to_bitField0_ |= 0x00000004; 3232 } 3233 result.description_ = description_; 3234 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 3235 to_bitField0_ |= 0x00000008; 3236 } 3237 result.type_ = type_; 3238 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 3239 to_bitField0_ |= 0x00000010; 3240 } 3241 result.category_ = category_; 3242 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 3243 to_bitField0_ |= 0x00000020; 3244 } 3245 result.subCategory_ = subCategory_; 3246 if (((from_bitField0_ & 0x00000040) == 0x00000040)) { 3247 to_bitField0_ |= 0x00000040; 3248 } 3249 result.defaultValue_ = defaultValue_; 3250 if (((from_bitField0_ & 0x00000080) == 0x00000080)) { 3251 to_bitField0_ |= 0x00000080; 3252 } 3253 result.multiValues_ = multiValues_; 3254 if (((bitField0_ & 0x00000100) == 0x00000100)) { 3255 options_ = options_.getUnmodifiableView(); 3256 bitField0_ = (bitField0_ & ~0x00000100); 3257 } 3258 result.options_ = options_; 3259 if (fieldsBuilder_ == null) { 3260 if (((bitField0_ & 0x00000200) == 0x00000200)) { 3261 fields_ = java.util.Collections.unmodifiableList(fields_); 3262 bitField0_ = (bitField0_ & ~0x00000200); 3263 } 3264 result.fields_ = fields_; 3265 } else { 3266 result.fields_ = fieldsBuilder_.build(); 3267 } 3268 if (((from_bitField0_ & 0x00000400) == 0x00000400)) { 3269 to_bitField0_ |= 0x00000100; 3270 } 3271 result.deprecatedKey_ = deprecatedKey_; 3272 result.bitField0_ = to_bitField0_; 3273 onBuilt(); 3274 return result; 3275 } 3276 3277 public Builder mergeFrom(com.google.protobuf.Message other) { 3278 if (other instanceof org.sonarqube.ws.Settings.Definition) { 3279 return mergeFrom((org.sonarqube.ws.Settings.Definition)other); 3280 } else { 3281 super.mergeFrom(other); 3282 return this; 3283 } 3284 } 3285 3286 public Builder mergeFrom(org.sonarqube.ws.Settings.Definition other) { 3287 if (other == org.sonarqube.ws.Settings.Definition.getDefaultInstance()) return this; 3288 if (other.hasKey()) { 3289 bitField0_ |= 0x00000001; 3290 key_ = other.key_; 3291 onChanged(); 3292 } 3293 if (other.hasName()) { 3294 bitField0_ |= 0x00000002; 3295 name_ = other.name_; 3296 onChanged(); 3297 } 3298 if (other.hasDescription()) { 3299 bitField0_ |= 0x00000004; 3300 description_ = other.description_; 3301 onChanged(); 3302 } 3303 if (other.hasType()) { 3304 setType(other.getType()); 3305 } 3306 if (other.hasCategory()) { 3307 bitField0_ |= 0x00000010; 3308 category_ = other.category_; 3309 onChanged(); 3310 } 3311 if (other.hasSubCategory()) { 3312 bitField0_ |= 0x00000020; 3313 subCategory_ = other.subCategory_; 3314 onChanged(); 3315 } 3316 if (other.hasDefaultValue()) { 3317 bitField0_ |= 0x00000040; 3318 defaultValue_ = other.defaultValue_; 3319 onChanged(); 3320 } 3321 if (other.hasMultiValues()) { 3322 setMultiValues(other.getMultiValues()); 3323 } 3324 if (!other.options_.isEmpty()) { 3325 if (options_.isEmpty()) { 3326 options_ = other.options_; 3327 bitField0_ = (bitField0_ & ~0x00000100); 3328 } else { 3329 ensureOptionsIsMutable(); 3330 options_.addAll(other.options_); 3331 } 3332 onChanged(); 3333 } 3334 if (fieldsBuilder_ == null) { 3335 if (!other.fields_.isEmpty()) { 3336 if (fields_.isEmpty()) { 3337 fields_ = other.fields_; 3338 bitField0_ = (bitField0_ & ~0x00000200); 3339 } else { 3340 ensureFieldsIsMutable(); 3341 fields_.addAll(other.fields_); 3342 } 3343 onChanged(); 3344 } 3345 } else { 3346 if (!other.fields_.isEmpty()) { 3347 if (fieldsBuilder_.isEmpty()) { 3348 fieldsBuilder_.dispose(); 3349 fieldsBuilder_ = null; 3350 fields_ = other.fields_; 3351 bitField0_ = (bitField0_ & ~0x00000200); 3352 fieldsBuilder_ = 3353 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 3354 getFieldsFieldBuilder() : null; 3355 } else { 3356 fieldsBuilder_.addAllMessages(other.fields_); 3357 } 3358 } 3359 } 3360 if (other.hasDeprecatedKey()) { 3361 bitField0_ |= 0x00000400; 3362 deprecatedKey_ = other.deprecatedKey_; 3363 onChanged(); 3364 } 3365 this.mergeUnknownFields(other.unknownFields); 3366 onChanged(); 3367 return this; 3368 } 3369 3370 public final boolean isInitialized() { 3371 return true; 3372 } 3373 3374 public Builder mergeFrom( 3375 com.google.protobuf.CodedInputStream input, 3376 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 3377 throws java.io.IOException { 3378 org.sonarqube.ws.Settings.Definition parsedMessage = null; 3379 try { 3380 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 3381 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 3382 parsedMessage = (org.sonarqube.ws.Settings.Definition) e.getUnfinishedMessage(); 3383 throw e; 3384 } finally { 3385 if (parsedMessage != null) { 3386 mergeFrom(parsedMessage); 3387 } 3388 } 3389 return this; 3390 } 3391 private int bitField0_; 3392 3393 private java.lang.Object key_ = ""; 3394 /** 3395 * <code>optional string key = 1;</code> 3396 */ 3397 public boolean hasKey() { 3398 return ((bitField0_ & 0x00000001) == 0x00000001); 3399 } 3400 /** 3401 * <code>optional string key = 1;</code> 3402 */ 3403 public java.lang.String getKey() { 3404 java.lang.Object ref = key_; 3405 if (!(ref instanceof java.lang.String)) { 3406 com.google.protobuf.ByteString bs = 3407 (com.google.protobuf.ByteString) ref; 3408 java.lang.String s = bs.toStringUtf8(); 3409 if (bs.isValidUtf8()) { 3410 key_ = s; 3411 } 3412 return s; 3413 } else { 3414 return (java.lang.String) ref; 3415 } 3416 } 3417 /** 3418 * <code>optional string key = 1;</code> 3419 */ 3420 public com.google.protobuf.ByteString 3421 getKeyBytes() { 3422 java.lang.Object ref = key_; 3423 if (ref instanceof String) { 3424 com.google.protobuf.ByteString b = 3425 com.google.protobuf.ByteString.copyFromUtf8( 3426 (java.lang.String) ref); 3427 key_ = b; 3428 return b; 3429 } else { 3430 return (com.google.protobuf.ByteString) ref; 3431 } 3432 } 3433 /** 3434 * <code>optional string key = 1;</code> 3435 */ 3436 public Builder setKey( 3437 java.lang.String value) { 3438 if (value == null) { 3439 throw new NullPointerException(); 3440 } 3441 bitField0_ |= 0x00000001; 3442 key_ = value; 3443 onChanged(); 3444 return this; 3445 } 3446 /** 3447 * <code>optional string key = 1;</code> 3448 */ 3449 public Builder clearKey() { 3450 bitField0_ = (bitField0_ & ~0x00000001); 3451 key_ = getDefaultInstance().getKey(); 3452 onChanged(); 3453 return this; 3454 } 3455 /** 3456 * <code>optional string key = 1;</code> 3457 */ 3458 public Builder setKeyBytes( 3459 com.google.protobuf.ByteString value) { 3460 if (value == null) { 3461 throw new NullPointerException(); 3462 } 3463 bitField0_ |= 0x00000001; 3464 key_ = value; 3465 onChanged(); 3466 return this; 3467 } 3468 3469 private java.lang.Object name_ = ""; 3470 /** 3471 * <code>optional string name = 2;</code> 3472 */ 3473 public boolean hasName() { 3474 return ((bitField0_ & 0x00000002) == 0x00000002); 3475 } 3476 /** 3477 * <code>optional string name = 2;</code> 3478 */ 3479 public java.lang.String getName() { 3480 java.lang.Object ref = name_; 3481 if (!(ref instanceof java.lang.String)) { 3482 com.google.protobuf.ByteString bs = 3483 (com.google.protobuf.ByteString) ref; 3484 java.lang.String s = bs.toStringUtf8(); 3485 if (bs.isValidUtf8()) { 3486 name_ = s; 3487 } 3488 return s; 3489 } else { 3490 return (java.lang.String) ref; 3491 } 3492 } 3493 /** 3494 * <code>optional string name = 2;</code> 3495 */ 3496 public com.google.protobuf.ByteString 3497 getNameBytes() { 3498 java.lang.Object ref = name_; 3499 if (ref instanceof String) { 3500 com.google.protobuf.ByteString b = 3501 com.google.protobuf.ByteString.copyFromUtf8( 3502 (java.lang.String) ref); 3503 name_ = b; 3504 return b; 3505 } else { 3506 return (com.google.protobuf.ByteString) ref; 3507 } 3508 } 3509 /** 3510 * <code>optional string name = 2;</code> 3511 */ 3512 public Builder setName( 3513 java.lang.String value) { 3514 if (value == null) { 3515 throw new NullPointerException(); 3516 } 3517 bitField0_ |= 0x00000002; 3518 name_ = value; 3519 onChanged(); 3520 return this; 3521 } 3522 /** 3523 * <code>optional string name = 2;</code> 3524 */ 3525 public Builder clearName() { 3526 bitField0_ = (bitField0_ & ~0x00000002); 3527 name_ = getDefaultInstance().getName(); 3528 onChanged(); 3529 return this; 3530 } 3531 /** 3532 * <code>optional string name = 2;</code> 3533 */ 3534 public Builder setNameBytes( 3535 com.google.protobuf.ByteString value) { 3536 if (value == null) { 3537 throw new NullPointerException(); 3538 } 3539 bitField0_ |= 0x00000002; 3540 name_ = value; 3541 onChanged(); 3542 return this; 3543 } 3544 3545 private java.lang.Object description_ = ""; 3546 /** 3547 * <code>optional string description = 3;</code> 3548 */ 3549 public boolean hasDescription() { 3550 return ((bitField0_ & 0x00000004) == 0x00000004); 3551 } 3552 /** 3553 * <code>optional string description = 3;</code> 3554 */ 3555 public java.lang.String getDescription() { 3556 java.lang.Object ref = description_; 3557 if (!(ref instanceof java.lang.String)) { 3558 com.google.protobuf.ByteString bs = 3559 (com.google.protobuf.ByteString) ref; 3560 java.lang.String s = bs.toStringUtf8(); 3561 if (bs.isValidUtf8()) { 3562 description_ = s; 3563 } 3564 return s; 3565 } else { 3566 return (java.lang.String) ref; 3567 } 3568 } 3569 /** 3570 * <code>optional string description = 3;</code> 3571 */ 3572 public com.google.protobuf.ByteString 3573 getDescriptionBytes() { 3574 java.lang.Object ref = description_; 3575 if (ref instanceof String) { 3576 com.google.protobuf.ByteString b = 3577 com.google.protobuf.ByteString.copyFromUtf8( 3578 (java.lang.String) ref); 3579 description_ = b; 3580 return b; 3581 } else { 3582 return (com.google.protobuf.ByteString) ref; 3583 } 3584 } 3585 /** 3586 * <code>optional string description = 3;</code> 3587 */ 3588 public Builder setDescription( 3589 java.lang.String value) { 3590 if (value == null) { 3591 throw new NullPointerException(); 3592 } 3593 bitField0_ |= 0x00000004; 3594 description_ = value; 3595 onChanged(); 3596 return this; 3597 } 3598 /** 3599 * <code>optional string description = 3;</code> 3600 */ 3601 public Builder clearDescription() { 3602 bitField0_ = (bitField0_ & ~0x00000004); 3603 description_ = getDefaultInstance().getDescription(); 3604 onChanged(); 3605 return this; 3606 } 3607 /** 3608 * <code>optional string description = 3;</code> 3609 */ 3610 public Builder setDescriptionBytes( 3611 com.google.protobuf.ByteString value) { 3612 if (value == null) { 3613 throw new NullPointerException(); 3614 } 3615 bitField0_ |= 0x00000004; 3616 description_ = value; 3617 onChanged(); 3618 return this; 3619 } 3620 3621 private int type_ = 0; 3622 /** 3623 * <code>optional .sonarqube.ws.settings.Type type = 4;</code> 3624 */ 3625 public boolean hasType() { 3626 return ((bitField0_ & 0x00000008) == 0x00000008); 3627 } 3628 /** 3629 * <code>optional .sonarqube.ws.settings.Type type = 4;</code> 3630 */ 3631 public org.sonarqube.ws.Settings.Type getType() { 3632 org.sonarqube.ws.Settings.Type result = org.sonarqube.ws.Settings.Type.valueOf(type_); 3633 return result == null ? org.sonarqube.ws.Settings.Type.STRING : result; 3634 } 3635 /** 3636 * <code>optional .sonarqube.ws.settings.Type type = 4;</code> 3637 */ 3638 public Builder setType(org.sonarqube.ws.Settings.Type value) { 3639 if (value == null) { 3640 throw new NullPointerException(); 3641 } 3642 bitField0_ |= 0x00000008; 3643 type_ = value.getNumber(); 3644 onChanged(); 3645 return this; 3646 } 3647 /** 3648 * <code>optional .sonarqube.ws.settings.Type type = 4;</code> 3649 */ 3650 public Builder clearType() { 3651 bitField0_ = (bitField0_ & ~0x00000008); 3652 type_ = 0; 3653 onChanged(); 3654 return this; 3655 } 3656 3657 private java.lang.Object category_ = ""; 3658 /** 3659 * <code>optional string category = 5;</code> 3660 */ 3661 public boolean hasCategory() { 3662 return ((bitField0_ & 0x00000010) == 0x00000010); 3663 } 3664 /** 3665 * <code>optional string category = 5;</code> 3666 */ 3667 public java.lang.String getCategory() { 3668 java.lang.Object ref = category_; 3669 if (!(ref instanceof java.lang.String)) { 3670 com.google.protobuf.ByteString bs = 3671 (com.google.protobuf.ByteString) ref; 3672 java.lang.String s = bs.toStringUtf8(); 3673 if (bs.isValidUtf8()) { 3674 category_ = s; 3675 } 3676 return s; 3677 } else { 3678 return (java.lang.String) ref; 3679 } 3680 } 3681 /** 3682 * <code>optional string category = 5;</code> 3683 */ 3684 public com.google.protobuf.ByteString 3685 getCategoryBytes() { 3686 java.lang.Object ref = category_; 3687 if (ref instanceof String) { 3688 com.google.protobuf.ByteString b = 3689 com.google.protobuf.ByteString.copyFromUtf8( 3690 (java.lang.String) ref); 3691 category_ = b; 3692 return b; 3693 } else { 3694 return (com.google.protobuf.ByteString) ref; 3695 } 3696 } 3697 /** 3698 * <code>optional string category = 5;</code> 3699 */ 3700 public Builder setCategory( 3701 java.lang.String value) { 3702 if (value == null) { 3703 throw new NullPointerException(); 3704 } 3705 bitField0_ |= 0x00000010; 3706 category_ = value; 3707 onChanged(); 3708 return this; 3709 } 3710 /** 3711 * <code>optional string category = 5;</code> 3712 */ 3713 public Builder clearCategory() { 3714 bitField0_ = (bitField0_ & ~0x00000010); 3715 category_ = getDefaultInstance().getCategory(); 3716 onChanged(); 3717 return this; 3718 } 3719 /** 3720 * <code>optional string category = 5;</code> 3721 */ 3722 public Builder setCategoryBytes( 3723 com.google.protobuf.ByteString value) { 3724 if (value == null) { 3725 throw new NullPointerException(); 3726 } 3727 bitField0_ |= 0x00000010; 3728 category_ = value; 3729 onChanged(); 3730 return this; 3731 } 3732 3733 private java.lang.Object subCategory_ = ""; 3734 /** 3735 * <code>optional string subCategory = 6;</code> 3736 */ 3737 public boolean hasSubCategory() { 3738 return ((bitField0_ & 0x00000020) == 0x00000020); 3739 } 3740 /** 3741 * <code>optional string subCategory = 6;</code> 3742 */ 3743 public java.lang.String getSubCategory() { 3744 java.lang.Object ref = subCategory_; 3745 if (!(ref instanceof java.lang.String)) { 3746 com.google.protobuf.ByteString bs = 3747 (com.google.protobuf.ByteString) ref; 3748 java.lang.String s = bs.toStringUtf8(); 3749 if (bs.isValidUtf8()) { 3750 subCategory_ = s; 3751 } 3752 return s; 3753 } else { 3754 return (java.lang.String) ref; 3755 } 3756 } 3757 /** 3758 * <code>optional string subCategory = 6;</code> 3759 */ 3760 public com.google.protobuf.ByteString 3761 getSubCategoryBytes() { 3762 java.lang.Object ref = subCategory_; 3763 if (ref instanceof String) { 3764 com.google.protobuf.ByteString b = 3765 com.google.protobuf.ByteString.copyFromUtf8( 3766 (java.lang.String) ref); 3767 subCategory_ = b; 3768 return b; 3769 } else { 3770 return (com.google.protobuf.ByteString) ref; 3771 } 3772 } 3773 /** 3774 * <code>optional string subCategory = 6;</code> 3775 */ 3776 public Builder setSubCategory( 3777 java.lang.String value) { 3778 if (value == null) { 3779 throw new NullPointerException(); 3780 } 3781 bitField0_ |= 0x00000020; 3782 subCategory_ = value; 3783 onChanged(); 3784 return this; 3785 } 3786 /** 3787 * <code>optional string subCategory = 6;</code> 3788 */ 3789 public Builder clearSubCategory() { 3790 bitField0_ = (bitField0_ & ~0x00000020); 3791 subCategory_ = getDefaultInstance().getSubCategory(); 3792 onChanged(); 3793 return this; 3794 } 3795 /** 3796 * <code>optional string subCategory = 6;</code> 3797 */ 3798 public Builder setSubCategoryBytes( 3799 com.google.protobuf.ByteString value) { 3800 if (value == null) { 3801 throw new NullPointerException(); 3802 } 3803 bitField0_ |= 0x00000020; 3804 subCategory_ = value; 3805 onChanged(); 3806 return this; 3807 } 3808 3809 private java.lang.Object defaultValue_ = ""; 3810 /** 3811 * <code>optional string defaultValue = 7;</code> 3812 */ 3813 public boolean hasDefaultValue() { 3814 return ((bitField0_ & 0x00000040) == 0x00000040); 3815 } 3816 /** 3817 * <code>optional string defaultValue = 7;</code> 3818 */ 3819 public java.lang.String getDefaultValue() { 3820 java.lang.Object ref = defaultValue_; 3821 if (!(ref instanceof java.lang.String)) { 3822 com.google.protobuf.ByteString bs = 3823 (com.google.protobuf.ByteString) ref; 3824 java.lang.String s = bs.toStringUtf8(); 3825 if (bs.isValidUtf8()) { 3826 defaultValue_ = s; 3827 } 3828 return s; 3829 } else { 3830 return (java.lang.String) ref; 3831 } 3832 } 3833 /** 3834 * <code>optional string defaultValue = 7;</code> 3835 */ 3836 public com.google.protobuf.ByteString 3837 getDefaultValueBytes() { 3838 java.lang.Object ref = defaultValue_; 3839 if (ref instanceof String) { 3840 com.google.protobuf.ByteString b = 3841 com.google.protobuf.ByteString.copyFromUtf8( 3842 (java.lang.String) ref); 3843 defaultValue_ = b; 3844 return b; 3845 } else { 3846 return (com.google.protobuf.ByteString) ref; 3847 } 3848 } 3849 /** 3850 * <code>optional string defaultValue = 7;</code> 3851 */ 3852 public Builder setDefaultValue( 3853 java.lang.String value) { 3854 if (value == null) { 3855 throw new NullPointerException(); 3856 } 3857 bitField0_ |= 0x00000040; 3858 defaultValue_ = value; 3859 onChanged(); 3860 return this; 3861 } 3862 /** 3863 * <code>optional string defaultValue = 7;</code> 3864 */ 3865 public Builder clearDefaultValue() { 3866 bitField0_ = (bitField0_ & ~0x00000040); 3867 defaultValue_ = getDefaultInstance().getDefaultValue(); 3868 onChanged(); 3869 return this; 3870 } 3871 /** 3872 * <code>optional string defaultValue = 7;</code> 3873 */ 3874 public Builder setDefaultValueBytes( 3875 com.google.protobuf.ByteString value) { 3876 if (value == null) { 3877 throw new NullPointerException(); 3878 } 3879 bitField0_ |= 0x00000040; 3880 defaultValue_ = value; 3881 onChanged(); 3882 return this; 3883 } 3884 3885 private boolean multiValues_ ; 3886 /** 3887 * <code>optional bool multiValues = 8;</code> 3888 */ 3889 public boolean hasMultiValues() { 3890 return ((bitField0_ & 0x00000080) == 0x00000080); 3891 } 3892 /** 3893 * <code>optional bool multiValues = 8;</code> 3894 */ 3895 public boolean getMultiValues() { 3896 return multiValues_; 3897 } 3898 /** 3899 * <code>optional bool multiValues = 8;</code> 3900 */ 3901 public Builder setMultiValues(boolean value) { 3902 bitField0_ |= 0x00000080; 3903 multiValues_ = value; 3904 onChanged(); 3905 return this; 3906 } 3907 /** 3908 * <code>optional bool multiValues = 8;</code> 3909 */ 3910 public Builder clearMultiValues() { 3911 bitField0_ = (bitField0_ & ~0x00000080); 3912 multiValues_ = false; 3913 onChanged(); 3914 return this; 3915 } 3916 3917 private com.google.protobuf.LazyStringList options_ = com.google.protobuf.LazyStringArrayList.EMPTY; 3918 private void ensureOptionsIsMutable() { 3919 if (!((bitField0_ & 0x00000100) == 0x00000100)) { 3920 options_ = new com.google.protobuf.LazyStringArrayList(options_); 3921 bitField0_ |= 0x00000100; 3922 } 3923 } 3924 /** 3925 * <code>repeated string options = 9;</code> 3926 */ 3927 public com.google.protobuf.ProtocolStringList 3928 getOptionsList() { 3929 return options_.getUnmodifiableView(); 3930 } 3931 /** 3932 * <code>repeated string options = 9;</code> 3933 */ 3934 public int getOptionsCount() { 3935 return options_.size(); 3936 } 3937 /** 3938 * <code>repeated string options = 9;</code> 3939 */ 3940 public java.lang.String getOptions(int index) { 3941 return options_.get(index); 3942 } 3943 /** 3944 * <code>repeated string options = 9;</code> 3945 */ 3946 public com.google.protobuf.ByteString 3947 getOptionsBytes(int index) { 3948 return options_.getByteString(index); 3949 } 3950 /** 3951 * <code>repeated string options = 9;</code> 3952 */ 3953 public Builder setOptions( 3954 int index, java.lang.String value) { 3955 if (value == null) { 3956 throw new NullPointerException(); 3957 } 3958 ensureOptionsIsMutable(); 3959 options_.set(index, value); 3960 onChanged(); 3961 return this; 3962 } 3963 /** 3964 * <code>repeated string options = 9;</code> 3965 */ 3966 public Builder addOptions( 3967 java.lang.String value) { 3968 if (value == null) { 3969 throw new NullPointerException(); 3970 } 3971 ensureOptionsIsMutable(); 3972 options_.add(value); 3973 onChanged(); 3974 return this; 3975 } 3976 /** 3977 * <code>repeated string options = 9;</code> 3978 */ 3979 public Builder addAllOptions( 3980 java.lang.Iterable<java.lang.String> values) { 3981 ensureOptionsIsMutable(); 3982 com.google.protobuf.AbstractMessageLite.Builder.addAll( 3983 values, options_); 3984 onChanged(); 3985 return this; 3986 } 3987 /** 3988 * <code>repeated string options = 9;</code> 3989 */ 3990 public Builder clearOptions() { 3991 options_ = com.google.protobuf.LazyStringArrayList.EMPTY; 3992 bitField0_ = (bitField0_ & ~0x00000100); 3993 onChanged(); 3994 return this; 3995 } 3996 /** 3997 * <code>repeated string options = 9;</code> 3998 */ 3999 public Builder addOptionsBytes( 4000 com.google.protobuf.ByteString value) { 4001 if (value == null) { 4002 throw new NullPointerException(); 4003 } 4004 ensureOptionsIsMutable(); 4005 options_.add(value); 4006 onChanged(); 4007 return this; 4008 } 4009 4010 private java.util.List<org.sonarqube.ws.Settings.Field> fields_ = 4011 java.util.Collections.emptyList(); 4012 private void ensureFieldsIsMutable() { 4013 if (!((bitField0_ & 0x00000200) == 0x00000200)) { 4014 fields_ = new java.util.ArrayList<org.sonarqube.ws.Settings.Field>(fields_); 4015 bitField0_ |= 0x00000200; 4016 } 4017 } 4018 4019 private com.google.protobuf.RepeatedFieldBuilder< 4020 org.sonarqube.ws.Settings.Field, org.sonarqube.ws.Settings.Field.Builder, org.sonarqube.ws.Settings.FieldOrBuilder> fieldsBuilder_; 4021 4022 /** 4023 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4024 */ 4025 public java.util.List<org.sonarqube.ws.Settings.Field> getFieldsList() { 4026 if (fieldsBuilder_ == null) { 4027 return java.util.Collections.unmodifiableList(fields_); 4028 } else { 4029 return fieldsBuilder_.getMessageList(); 4030 } 4031 } 4032 /** 4033 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4034 */ 4035 public int getFieldsCount() { 4036 if (fieldsBuilder_ == null) { 4037 return fields_.size(); 4038 } else { 4039 return fieldsBuilder_.getCount(); 4040 } 4041 } 4042 /** 4043 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4044 */ 4045 public org.sonarqube.ws.Settings.Field getFields(int index) { 4046 if (fieldsBuilder_ == null) { 4047 return fields_.get(index); 4048 } else { 4049 return fieldsBuilder_.getMessage(index); 4050 } 4051 } 4052 /** 4053 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4054 */ 4055 public Builder setFields( 4056 int index, org.sonarqube.ws.Settings.Field value) { 4057 if (fieldsBuilder_ == null) { 4058 if (value == null) { 4059 throw new NullPointerException(); 4060 } 4061 ensureFieldsIsMutable(); 4062 fields_.set(index, value); 4063 onChanged(); 4064 } else { 4065 fieldsBuilder_.setMessage(index, value); 4066 } 4067 return this; 4068 } 4069 /** 4070 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4071 */ 4072 public Builder setFields( 4073 int index, org.sonarqube.ws.Settings.Field.Builder builderForValue) { 4074 if (fieldsBuilder_ == null) { 4075 ensureFieldsIsMutable(); 4076 fields_.set(index, builderForValue.build()); 4077 onChanged(); 4078 } else { 4079 fieldsBuilder_.setMessage(index, builderForValue.build()); 4080 } 4081 return this; 4082 } 4083 /** 4084 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4085 */ 4086 public Builder addFields(org.sonarqube.ws.Settings.Field value) { 4087 if (fieldsBuilder_ == null) { 4088 if (value == null) { 4089 throw new NullPointerException(); 4090 } 4091 ensureFieldsIsMutable(); 4092 fields_.add(value); 4093 onChanged(); 4094 } else { 4095 fieldsBuilder_.addMessage(value); 4096 } 4097 return this; 4098 } 4099 /** 4100 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4101 */ 4102 public Builder addFields( 4103 int index, org.sonarqube.ws.Settings.Field value) { 4104 if (fieldsBuilder_ == null) { 4105 if (value == null) { 4106 throw new NullPointerException(); 4107 } 4108 ensureFieldsIsMutable(); 4109 fields_.add(index, value); 4110 onChanged(); 4111 } else { 4112 fieldsBuilder_.addMessage(index, value); 4113 } 4114 return this; 4115 } 4116 /** 4117 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4118 */ 4119 public Builder addFields( 4120 org.sonarqube.ws.Settings.Field.Builder builderForValue) { 4121 if (fieldsBuilder_ == null) { 4122 ensureFieldsIsMutable(); 4123 fields_.add(builderForValue.build()); 4124 onChanged(); 4125 } else { 4126 fieldsBuilder_.addMessage(builderForValue.build()); 4127 } 4128 return this; 4129 } 4130 /** 4131 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4132 */ 4133 public Builder addFields( 4134 int index, org.sonarqube.ws.Settings.Field.Builder builderForValue) { 4135 if (fieldsBuilder_ == null) { 4136 ensureFieldsIsMutable(); 4137 fields_.add(index, builderForValue.build()); 4138 onChanged(); 4139 } else { 4140 fieldsBuilder_.addMessage(index, builderForValue.build()); 4141 } 4142 return this; 4143 } 4144 /** 4145 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4146 */ 4147 public Builder addAllFields( 4148 java.lang.Iterable<? extends org.sonarqube.ws.Settings.Field> values) { 4149 if (fieldsBuilder_ == null) { 4150 ensureFieldsIsMutable(); 4151 com.google.protobuf.AbstractMessageLite.Builder.addAll( 4152 values, fields_); 4153 onChanged(); 4154 } else { 4155 fieldsBuilder_.addAllMessages(values); 4156 } 4157 return this; 4158 } 4159 /** 4160 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4161 */ 4162 public Builder clearFields() { 4163 if (fieldsBuilder_ == null) { 4164 fields_ = java.util.Collections.emptyList(); 4165 bitField0_ = (bitField0_ & ~0x00000200); 4166 onChanged(); 4167 } else { 4168 fieldsBuilder_.clear(); 4169 } 4170 return this; 4171 } 4172 /** 4173 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4174 */ 4175 public Builder removeFields(int index) { 4176 if (fieldsBuilder_ == null) { 4177 ensureFieldsIsMutable(); 4178 fields_.remove(index); 4179 onChanged(); 4180 } else { 4181 fieldsBuilder_.remove(index); 4182 } 4183 return this; 4184 } 4185 /** 4186 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4187 */ 4188 public org.sonarqube.ws.Settings.Field.Builder getFieldsBuilder( 4189 int index) { 4190 return getFieldsFieldBuilder().getBuilder(index); 4191 } 4192 /** 4193 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4194 */ 4195 public org.sonarqube.ws.Settings.FieldOrBuilder getFieldsOrBuilder( 4196 int index) { 4197 if (fieldsBuilder_ == null) { 4198 return fields_.get(index); } else { 4199 return fieldsBuilder_.getMessageOrBuilder(index); 4200 } 4201 } 4202 /** 4203 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4204 */ 4205 public java.util.List<? extends org.sonarqube.ws.Settings.FieldOrBuilder> 4206 getFieldsOrBuilderList() { 4207 if (fieldsBuilder_ != null) { 4208 return fieldsBuilder_.getMessageOrBuilderList(); 4209 } else { 4210 return java.util.Collections.unmodifiableList(fields_); 4211 } 4212 } 4213 /** 4214 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4215 */ 4216 public org.sonarqube.ws.Settings.Field.Builder addFieldsBuilder() { 4217 return getFieldsFieldBuilder().addBuilder( 4218 org.sonarqube.ws.Settings.Field.getDefaultInstance()); 4219 } 4220 /** 4221 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4222 */ 4223 public org.sonarqube.ws.Settings.Field.Builder addFieldsBuilder( 4224 int index) { 4225 return getFieldsFieldBuilder().addBuilder( 4226 index, org.sonarqube.ws.Settings.Field.getDefaultInstance()); 4227 } 4228 /** 4229 * <code>repeated .sonarqube.ws.settings.Field fields = 10;</code> 4230 */ 4231 public java.util.List<org.sonarqube.ws.Settings.Field.Builder> 4232 getFieldsBuilderList() { 4233 return getFieldsFieldBuilder().getBuilderList(); 4234 } 4235 private com.google.protobuf.RepeatedFieldBuilder< 4236 org.sonarqube.ws.Settings.Field, org.sonarqube.ws.Settings.Field.Builder, org.sonarqube.ws.Settings.FieldOrBuilder> 4237 getFieldsFieldBuilder() { 4238 if (fieldsBuilder_ == null) { 4239 fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< 4240 org.sonarqube.ws.Settings.Field, org.sonarqube.ws.Settings.Field.Builder, org.sonarqube.ws.Settings.FieldOrBuilder>( 4241 fields_, 4242 ((bitField0_ & 0x00000200) == 0x00000200), 4243 getParentForChildren(), 4244 isClean()); 4245 fields_ = null; 4246 } 4247 return fieldsBuilder_; 4248 } 4249 4250 private java.lang.Object deprecatedKey_ = ""; 4251 /** 4252 * <code>optional string deprecatedKey = 11;</code> 4253 */ 4254 public boolean hasDeprecatedKey() { 4255 return ((bitField0_ & 0x00000400) == 0x00000400); 4256 } 4257 /** 4258 * <code>optional string deprecatedKey = 11;</code> 4259 */ 4260 public java.lang.String getDeprecatedKey() { 4261 java.lang.Object ref = deprecatedKey_; 4262 if (!(ref instanceof java.lang.String)) { 4263 com.google.protobuf.ByteString bs = 4264 (com.google.protobuf.ByteString) ref; 4265 java.lang.String s = bs.toStringUtf8(); 4266 if (bs.isValidUtf8()) { 4267 deprecatedKey_ = s; 4268 } 4269 return s; 4270 } else { 4271 return (java.lang.String) ref; 4272 } 4273 } 4274 /** 4275 * <code>optional string deprecatedKey = 11;</code> 4276 */ 4277 public com.google.protobuf.ByteString 4278 getDeprecatedKeyBytes() { 4279 java.lang.Object ref = deprecatedKey_; 4280 if (ref instanceof String) { 4281 com.google.protobuf.ByteString b = 4282 com.google.protobuf.ByteString.copyFromUtf8( 4283 (java.lang.String) ref); 4284 deprecatedKey_ = b; 4285 return b; 4286 } else { 4287 return (com.google.protobuf.ByteString) ref; 4288 } 4289 } 4290 /** 4291 * <code>optional string deprecatedKey = 11;</code> 4292 */ 4293 public Builder setDeprecatedKey( 4294 java.lang.String value) { 4295 if (value == null) { 4296 throw new NullPointerException(); 4297 } 4298 bitField0_ |= 0x00000400; 4299 deprecatedKey_ = value; 4300 onChanged(); 4301 return this; 4302 } 4303 /** 4304 * <code>optional string deprecatedKey = 11;</code> 4305 */ 4306 public Builder clearDeprecatedKey() { 4307 bitField0_ = (bitField0_ & ~0x00000400); 4308 deprecatedKey_ = getDefaultInstance().getDeprecatedKey(); 4309 onChanged(); 4310 return this; 4311 } 4312 /** 4313 * <code>optional string deprecatedKey = 11;</code> 4314 */ 4315 public Builder setDeprecatedKeyBytes( 4316 com.google.protobuf.ByteString value) { 4317 if (value == null) { 4318 throw new NullPointerException(); 4319 } 4320 bitField0_ |= 0x00000400; 4321 deprecatedKey_ = value; 4322 onChanged(); 4323 return this; 4324 } 4325 4326 // @@protoc_insertion_point(builder_scope:sonarqube.ws.settings.Definition) 4327 } 4328 4329 // @@protoc_insertion_point(class_scope:sonarqube.ws.settings.Definition) 4330 private static final org.sonarqube.ws.Settings.Definition DEFAULT_INSTANCE; 4331 static { 4332 DEFAULT_INSTANCE = new org.sonarqube.ws.Settings.Definition(); 4333 } 4334 4335 public static org.sonarqube.ws.Settings.Definition getDefaultInstance() { 4336 return DEFAULT_INSTANCE; 4337 } 4338 4339 @java.lang.Deprecated public static final com.google.protobuf.Parser<Definition> 4340 PARSER = new com.google.protobuf.AbstractParser<Definition>() { 4341 public Definition parsePartialFrom( 4342 com.google.protobuf.CodedInputStream input, 4343 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4344 throws com.google.protobuf.InvalidProtocolBufferException { 4345 try { 4346 return new Definition(input, extensionRegistry); 4347 } catch (RuntimeException e) { 4348 if (e.getCause() instanceof 4349 com.google.protobuf.InvalidProtocolBufferException) { 4350 throw (com.google.protobuf.InvalidProtocolBufferException) 4351 e.getCause(); 4352 } 4353 throw e; 4354 } 4355 } 4356 }; 4357 4358 public static com.google.protobuf.Parser<Definition> parser() { 4359 return PARSER; 4360 } 4361 4362 @java.lang.Override 4363 public com.google.protobuf.Parser<Definition> getParserForType() { 4364 return PARSER; 4365 } 4366 4367 public org.sonarqube.ws.Settings.Definition getDefaultInstanceForType() { 4368 return DEFAULT_INSTANCE; 4369 } 4370 4371 } 4372 4373 public interface FieldOrBuilder extends 4374 // @@protoc_insertion_point(interface_extends:sonarqube.ws.settings.Field) 4375 com.google.protobuf.MessageOrBuilder { 4376 4377 /** 4378 * <code>optional string key = 1;</code> 4379 */ 4380 boolean hasKey(); 4381 /** 4382 * <code>optional string key = 1;</code> 4383 */ 4384 java.lang.String getKey(); 4385 /** 4386 * <code>optional string key = 1;</code> 4387 */ 4388 com.google.protobuf.ByteString 4389 getKeyBytes(); 4390 4391 /** 4392 * <code>optional string name = 2;</code> 4393 */ 4394 boolean hasName(); 4395 /** 4396 * <code>optional string name = 2;</code> 4397 */ 4398 java.lang.String getName(); 4399 /** 4400 * <code>optional string name = 2;</code> 4401 */ 4402 com.google.protobuf.ByteString 4403 getNameBytes(); 4404 4405 /** 4406 * <code>optional string description = 3;</code> 4407 */ 4408 boolean hasDescription(); 4409 /** 4410 * <code>optional string description = 3;</code> 4411 */ 4412 java.lang.String getDescription(); 4413 /** 4414 * <code>optional string description = 3;</code> 4415 */ 4416 com.google.protobuf.ByteString 4417 getDescriptionBytes(); 4418 4419 /** 4420 * <code>optional .sonarqube.ws.settings.Type type = 4;</code> 4421 */ 4422 boolean hasType(); 4423 /** 4424 * <code>optional .sonarqube.ws.settings.Type type = 4;</code> 4425 */ 4426 org.sonarqube.ws.Settings.Type getType(); 4427 4428 /** 4429 * <code>repeated string options = 5;</code> 4430 */ 4431 com.google.protobuf.ProtocolStringList 4432 getOptionsList(); 4433 /** 4434 * <code>repeated string options = 5;</code> 4435 */ 4436 int getOptionsCount(); 4437 /** 4438 * <code>repeated string options = 5;</code> 4439 */ 4440 java.lang.String getOptions(int index); 4441 /** 4442 * <code>repeated string options = 5;</code> 4443 */ 4444 com.google.protobuf.ByteString 4445 getOptionsBytes(int index); 4446 } 4447 /** 4448 * Protobuf type {@code sonarqube.ws.settings.Field} 4449 */ 4450 public static final class Field extends 4451 com.google.protobuf.GeneratedMessage implements 4452 // @@protoc_insertion_point(message_implements:sonarqube.ws.settings.Field) 4453 FieldOrBuilder { 4454 // Use Field.newBuilder() to construct. 4455 private Field(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 4456 super(builder); 4457 } 4458 private Field() { 4459 key_ = ""; 4460 name_ = ""; 4461 description_ = ""; 4462 type_ = 0; 4463 options_ = com.google.protobuf.LazyStringArrayList.EMPTY; 4464 } 4465 4466 @java.lang.Override 4467 public final com.google.protobuf.UnknownFieldSet 4468 getUnknownFields() { 4469 return this.unknownFields; 4470 } 4471 private Field( 4472 com.google.protobuf.CodedInputStream input, 4473 com.google.protobuf.ExtensionRegistryLite extensionRegistry) { 4474 this(); 4475 int mutable_bitField0_ = 0; 4476 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 4477 com.google.protobuf.UnknownFieldSet.newBuilder(); 4478 try { 4479 boolean done = false; 4480 while (!done) { 4481 int tag = input.readTag(); 4482 switch (tag) { 4483 case 0: 4484 done = true; 4485 break; 4486 default: { 4487 if (!parseUnknownField(input, unknownFields, 4488 extensionRegistry, tag)) { 4489 done = true; 4490 } 4491 break; 4492 } 4493 case 10: { 4494 com.google.protobuf.ByteString bs = input.readBytes(); 4495 bitField0_ |= 0x00000001; 4496 key_ = bs; 4497 break; 4498 } 4499 case 18: { 4500 com.google.protobuf.ByteString bs = input.readBytes(); 4501 bitField0_ |= 0x00000002; 4502 name_ = bs; 4503 break; 4504 } 4505 case 26: { 4506 com.google.protobuf.ByteString bs = input.readBytes(); 4507 bitField0_ |= 0x00000004; 4508 description_ = bs; 4509 break; 4510 } 4511 case 32: { 4512 int rawValue = input.readEnum(); 4513 org.sonarqube.ws.Settings.Type value = org.sonarqube.ws.Settings.Type.valueOf(rawValue); 4514 if (value == null) { 4515 unknownFields.mergeVarintField(4, rawValue); 4516 } else { 4517 bitField0_ |= 0x00000008; 4518 type_ = rawValue; 4519 } 4520 break; 4521 } 4522 case 42: { 4523 com.google.protobuf.ByteString bs = input.readBytes(); 4524 if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 4525 options_ = new com.google.protobuf.LazyStringArrayList(); 4526 mutable_bitField0_ |= 0x00000010; 4527 } 4528 options_.add(bs); 4529 break; 4530 } 4531 } 4532 } 4533 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 4534 throw new RuntimeException(e.setUnfinishedMessage(this)); 4535 } catch (java.io.IOException e) { 4536 throw new RuntimeException( 4537 new com.google.protobuf.InvalidProtocolBufferException( 4538 e.getMessage()).setUnfinishedMessage(this)); 4539 } finally { 4540 if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { 4541 options_ = options_.getUnmodifiableView(); 4542 } 4543 this.unknownFields = unknownFields.build(); 4544 makeExtensionsImmutable(); 4545 } 4546 } 4547 public static final com.google.protobuf.Descriptors.Descriptor 4548 getDescriptor() { 4549 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Field_descriptor; 4550 } 4551 4552 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 4553 internalGetFieldAccessorTable() { 4554 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Field_fieldAccessorTable 4555 .ensureFieldAccessorsInitialized( 4556 org.sonarqube.ws.Settings.Field.class, org.sonarqube.ws.Settings.Field.Builder.class); 4557 } 4558 4559 private int bitField0_; 4560 public static final int KEY_FIELD_NUMBER = 1; 4561 private volatile java.lang.Object key_; 4562 /** 4563 * <code>optional string key = 1;</code> 4564 */ 4565 public boolean hasKey() { 4566 return ((bitField0_ & 0x00000001) == 0x00000001); 4567 } 4568 /** 4569 * <code>optional string key = 1;</code> 4570 */ 4571 public java.lang.String getKey() { 4572 java.lang.Object ref = key_; 4573 if (ref instanceof java.lang.String) { 4574 return (java.lang.String) ref; 4575 } else { 4576 com.google.protobuf.ByteString bs = 4577 (com.google.protobuf.ByteString) ref; 4578 java.lang.String s = bs.toStringUtf8(); 4579 if (bs.isValidUtf8()) { 4580 key_ = s; 4581 } 4582 return s; 4583 } 4584 } 4585 /** 4586 * <code>optional string key = 1;</code> 4587 */ 4588 public com.google.protobuf.ByteString 4589 getKeyBytes() { 4590 java.lang.Object ref = key_; 4591 if (ref instanceof java.lang.String) { 4592 com.google.protobuf.ByteString b = 4593 com.google.protobuf.ByteString.copyFromUtf8( 4594 (java.lang.String) ref); 4595 key_ = b; 4596 return b; 4597 } else { 4598 return (com.google.protobuf.ByteString) ref; 4599 } 4600 } 4601 4602 public static final int NAME_FIELD_NUMBER = 2; 4603 private volatile java.lang.Object name_; 4604 /** 4605 * <code>optional string name = 2;</code> 4606 */ 4607 public boolean hasName() { 4608 return ((bitField0_ & 0x00000002) == 0x00000002); 4609 } 4610 /** 4611 * <code>optional string name = 2;</code> 4612 */ 4613 public java.lang.String getName() { 4614 java.lang.Object ref = name_; 4615 if (ref instanceof java.lang.String) { 4616 return (java.lang.String) ref; 4617 } else { 4618 com.google.protobuf.ByteString bs = 4619 (com.google.protobuf.ByteString) ref; 4620 java.lang.String s = bs.toStringUtf8(); 4621 if (bs.isValidUtf8()) { 4622 name_ = s; 4623 } 4624 return s; 4625 } 4626 } 4627 /** 4628 * <code>optional string name = 2;</code> 4629 */ 4630 public com.google.protobuf.ByteString 4631 getNameBytes() { 4632 java.lang.Object ref = name_; 4633 if (ref instanceof java.lang.String) { 4634 com.google.protobuf.ByteString b = 4635 com.google.protobuf.ByteString.copyFromUtf8( 4636 (java.lang.String) ref); 4637 name_ = b; 4638 return b; 4639 } else { 4640 return (com.google.protobuf.ByteString) ref; 4641 } 4642 } 4643 4644 public static final int DESCRIPTION_FIELD_NUMBER = 3; 4645 private volatile java.lang.Object description_; 4646 /** 4647 * <code>optional string description = 3;</code> 4648 */ 4649 public boolean hasDescription() { 4650 return ((bitField0_ & 0x00000004) == 0x00000004); 4651 } 4652 /** 4653 * <code>optional string description = 3;</code> 4654 */ 4655 public java.lang.String getDescription() { 4656 java.lang.Object ref = description_; 4657 if (ref instanceof java.lang.String) { 4658 return (java.lang.String) ref; 4659 } else { 4660 com.google.protobuf.ByteString bs = 4661 (com.google.protobuf.ByteString) ref; 4662 java.lang.String s = bs.toStringUtf8(); 4663 if (bs.isValidUtf8()) { 4664 description_ = s; 4665 } 4666 return s; 4667 } 4668 } 4669 /** 4670 * <code>optional string description = 3;</code> 4671 */ 4672 public com.google.protobuf.ByteString 4673 getDescriptionBytes() { 4674 java.lang.Object ref = description_; 4675 if (ref instanceof java.lang.String) { 4676 com.google.protobuf.ByteString b = 4677 com.google.protobuf.ByteString.copyFromUtf8( 4678 (java.lang.String) ref); 4679 description_ = b; 4680 return b; 4681 } else { 4682 return (com.google.protobuf.ByteString) ref; 4683 } 4684 } 4685 4686 public static final int TYPE_FIELD_NUMBER = 4; 4687 private int type_; 4688 /** 4689 * <code>optional .sonarqube.ws.settings.Type type = 4;</code> 4690 */ 4691 public boolean hasType() { 4692 return ((bitField0_ & 0x00000008) == 0x00000008); 4693 } 4694 /** 4695 * <code>optional .sonarqube.ws.settings.Type type = 4;</code> 4696 */ 4697 public org.sonarqube.ws.Settings.Type getType() { 4698 org.sonarqube.ws.Settings.Type result = org.sonarqube.ws.Settings.Type.valueOf(type_); 4699 return result == null ? org.sonarqube.ws.Settings.Type.STRING : result; 4700 } 4701 4702 public static final int OPTIONS_FIELD_NUMBER = 5; 4703 private com.google.protobuf.LazyStringList options_; 4704 /** 4705 * <code>repeated string options = 5;</code> 4706 */ 4707 public com.google.protobuf.ProtocolStringList 4708 getOptionsList() { 4709 return options_; 4710 } 4711 /** 4712 * <code>repeated string options = 5;</code> 4713 */ 4714 public int getOptionsCount() { 4715 return options_.size(); 4716 } 4717 /** 4718 * <code>repeated string options = 5;</code> 4719 */ 4720 public java.lang.String getOptions(int index) { 4721 return options_.get(index); 4722 } 4723 /** 4724 * <code>repeated string options = 5;</code> 4725 */ 4726 public com.google.protobuf.ByteString 4727 getOptionsBytes(int index) { 4728 return options_.getByteString(index); 4729 } 4730 4731 private byte memoizedIsInitialized = -1; 4732 public final boolean isInitialized() { 4733 byte isInitialized = memoizedIsInitialized; 4734 if (isInitialized == 1) return true; 4735 if (isInitialized == 0) return false; 4736 4737 memoizedIsInitialized = 1; 4738 return true; 4739 } 4740 4741 public void writeTo(com.google.protobuf.CodedOutputStream output) 4742 throws java.io.IOException { 4743 if (((bitField0_ & 0x00000001) == 0x00000001)) { 4744 com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); 4745 } 4746 if (((bitField0_ & 0x00000002) == 0x00000002)) { 4747 com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); 4748 } 4749 if (((bitField0_ & 0x00000004) == 0x00000004)) { 4750 com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); 4751 } 4752 if (((bitField0_ & 0x00000008) == 0x00000008)) { 4753 output.writeEnum(4, type_); 4754 } 4755 for (int i = 0; i < options_.size(); i++) { 4756 com.google.protobuf.GeneratedMessage.writeString(output, 5, options_.getRaw(i)); 4757 } 4758 unknownFields.writeTo(output); 4759 } 4760 4761 public int getSerializedSize() { 4762 int size = memoizedSize; 4763 if (size != -1) return size; 4764 4765 size = 0; 4766 if (((bitField0_ & 0x00000001) == 0x00000001)) { 4767 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); 4768 } 4769 if (((bitField0_ & 0x00000002) == 0x00000002)) { 4770 size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); 4771 } 4772 if (((bitField0_ & 0x00000004) == 0x00000004)) { 4773 size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); 4774 } 4775 if (((bitField0_ & 0x00000008) == 0x00000008)) { 4776 size += com.google.protobuf.CodedOutputStream 4777 .computeEnumSize(4, type_); 4778 } 4779 { 4780 int dataSize = 0; 4781 for (int i = 0; i < options_.size(); i++) { 4782 dataSize += computeStringSizeNoTag(options_.getRaw(i)); 4783 } 4784 size += dataSize; 4785 size += 1 * getOptionsList().size(); 4786 } 4787 size += unknownFields.getSerializedSize(); 4788 memoizedSize = size; 4789 return size; 4790 } 4791 4792 private static final long serialVersionUID = 0L; 4793 public static org.sonarqube.ws.Settings.Field parseFrom( 4794 com.google.protobuf.ByteString data) 4795 throws com.google.protobuf.InvalidProtocolBufferException { 4796 return PARSER.parseFrom(data); 4797 } 4798 public static org.sonarqube.ws.Settings.Field parseFrom( 4799 com.google.protobuf.ByteString data, 4800 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4801 throws com.google.protobuf.InvalidProtocolBufferException { 4802 return PARSER.parseFrom(data, extensionRegistry); 4803 } 4804 public static org.sonarqube.ws.Settings.Field parseFrom(byte[] data) 4805 throws com.google.protobuf.InvalidProtocolBufferException { 4806 return PARSER.parseFrom(data); 4807 } 4808 public static org.sonarqube.ws.Settings.Field parseFrom( 4809 byte[] data, 4810 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4811 throws com.google.protobuf.InvalidProtocolBufferException { 4812 return PARSER.parseFrom(data, extensionRegistry); 4813 } 4814 public static org.sonarqube.ws.Settings.Field parseFrom(java.io.InputStream input) 4815 throws java.io.IOException { 4816 return PARSER.parseFrom(input); 4817 } 4818 public static org.sonarqube.ws.Settings.Field parseFrom( 4819 java.io.InputStream input, 4820 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4821 throws java.io.IOException { 4822 return PARSER.parseFrom(input, extensionRegistry); 4823 } 4824 public static org.sonarqube.ws.Settings.Field parseDelimitedFrom(java.io.InputStream input) 4825 throws java.io.IOException { 4826 return PARSER.parseDelimitedFrom(input); 4827 } 4828 public static org.sonarqube.ws.Settings.Field parseDelimitedFrom( 4829 java.io.InputStream input, 4830 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4831 throws java.io.IOException { 4832 return PARSER.parseDelimitedFrom(input, extensionRegistry); 4833 } 4834 public static org.sonarqube.ws.Settings.Field parseFrom( 4835 com.google.protobuf.CodedInputStream input) 4836 throws java.io.IOException { 4837 return PARSER.parseFrom(input); 4838 } 4839 public static org.sonarqube.ws.Settings.Field parseFrom( 4840 com.google.protobuf.CodedInputStream input, 4841 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 4842 throws java.io.IOException { 4843 return PARSER.parseFrom(input, extensionRegistry); 4844 } 4845 4846 public Builder newBuilderForType() { return newBuilder(); } 4847 public static Builder newBuilder() { 4848 return DEFAULT_INSTANCE.toBuilder(); 4849 } 4850 public static Builder newBuilder(org.sonarqube.ws.Settings.Field prototype) { 4851 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 4852 } 4853 public Builder toBuilder() { 4854 return this == DEFAULT_INSTANCE 4855 ? new Builder() : new Builder().mergeFrom(this); 4856 } 4857 4858 @java.lang.Override 4859 protected Builder newBuilderForType( 4860 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 4861 Builder builder = new Builder(parent); 4862 return builder; 4863 } 4864 /** 4865 * Protobuf type {@code sonarqube.ws.settings.Field} 4866 */ 4867 public static final class Builder extends 4868 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 4869 // @@protoc_insertion_point(builder_implements:sonarqube.ws.settings.Field) 4870 org.sonarqube.ws.Settings.FieldOrBuilder { 4871 public static final com.google.protobuf.Descriptors.Descriptor 4872 getDescriptor() { 4873 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Field_descriptor; 4874 } 4875 4876 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 4877 internalGetFieldAccessorTable() { 4878 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Field_fieldAccessorTable 4879 .ensureFieldAccessorsInitialized( 4880 org.sonarqube.ws.Settings.Field.class, org.sonarqube.ws.Settings.Field.Builder.class); 4881 } 4882 4883 // Construct using org.sonarqube.ws.Settings.Field.newBuilder() 4884 private Builder() { 4885 maybeForceBuilderInitialization(); 4886 } 4887 4888 private Builder( 4889 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 4890 super(parent); 4891 maybeForceBuilderInitialization(); 4892 } 4893 private void maybeForceBuilderInitialization() { 4894 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 4895 } 4896 } 4897 public Builder clear() { 4898 super.clear(); 4899 key_ = ""; 4900 bitField0_ = (bitField0_ & ~0x00000001); 4901 name_ = ""; 4902 bitField0_ = (bitField0_ & ~0x00000002); 4903 description_ = ""; 4904 bitField0_ = (bitField0_ & ~0x00000004); 4905 type_ = 0; 4906 bitField0_ = (bitField0_ & ~0x00000008); 4907 options_ = com.google.protobuf.LazyStringArrayList.EMPTY; 4908 bitField0_ = (bitField0_ & ~0x00000010); 4909 return this; 4910 } 4911 4912 public com.google.protobuf.Descriptors.Descriptor 4913 getDescriptorForType() { 4914 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Field_descriptor; 4915 } 4916 4917 public org.sonarqube.ws.Settings.Field getDefaultInstanceForType() { 4918 return org.sonarqube.ws.Settings.Field.getDefaultInstance(); 4919 } 4920 4921 public org.sonarqube.ws.Settings.Field build() { 4922 org.sonarqube.ws.Settings.Field result = buildPartial(); 4923 if (!result.isInitialized()) { 4924 throw newUninitializedMessageException(result); 4925 } 4926 return result; 4927 } 4928 4929 public org.sonarqube.ws.Settings.Field buildPartial() { 4930 org.sonarqube.ws.Settings.Field result = new org.sonarqube.ws.Settings.Field(this); 4931 int from_bitField0_ = bitField0_; 4932 int to_bitField0_ = 0; 4933 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 4934 to_bitField0_ |= 0x00000001; 4935 } 4936 result.key_ = key_; 4937 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 4938 to_bitField0_ |= 0x00000002; 4939 } 4940 result.name_ = name_; 4941 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 4942 to_bitField0_ |= 0x00000004; 4943 } 4944 result.description_ = description_; 4945 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 4946 to_bitField0_ |= 0x00000008; 4947 } 4948 result.type_ = type_; 4949 if (((bitField0_ & 0x00000010) == 0x00000010)) { 4950 options_ = options_.getUnmodifiableView(); 4951 bitField0_ = (bitField0_ & ~0x00000010); 4952 } 4953 result.options_ = options_; 4954 result.bitField0_ = to_bitField0_; 4955 onBuilt(); 4956 return result; 4957 } 4958 4959 public Builder mergeFrom(com.google.protobuf.Message other) { 4960 if (other instanceof org.sonarqube.ws.Settings.Field) { 4961 return mergeFrom((org.sonarqube.ws.Settings.Field)other); 4962 } else { 4963 super.mergeFrom(other); 4964 return this; 4965 } 4966 } 4967 4968 public Builder mergeFrom(org.sonarqube.ws.Settings.Field other) { 4969 if (other == org.sonarqube.ws.Settings.Field.getDefaultInstance()) return this; 4970 if (other.hasKey()) { 4971 bitField0_ |= 0x00000001; 4972 key_ = other.key_; 4973 onChanged(); 4974 } 4975 if (other.hasName()) { 4976 bitField0_ |= 0x00000002; 4977 name_ = other.name_; 4978 onChanged(); 4979 } 4980 if (other.hasDescription()) { 4981 bitField0_ |= 0x00000004; 4982 description_ = other.description_; 4983 onChanged(); 4984 } 4985 if (other.hasType()) { 4986 setType(other.getType()); 4987 } 4988 if (!other.options_.isEmpty()) { 4989 if (options_.isEmpty()) { 4990 options_ = other.options_; 4991 bitField0_ = (bitField0_ & ~0x00000010); 4992 } else { 4993 ensureOptionsIsMutable(); 4994 options_.addAll(other.options_); 4995 } 4996 onChanged(); 4997 } 4998 this.mergeUnknownFields(other.unknownFields); 4999 onChanged(); 5000 return this; 5001 } 5002 5003 public final boolean isInitialized() { 5004 return true; 5005 } 5006 5007 public Builder mergeFrom( 5008 com.google.protobuf.CodedInputStream input, 5009 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5010 throws java.io.IOException { 5011 org.sonarqube.ws.Settings.Field parsedMessage = null; 5012 try { 5013 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 5014 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5015 parsedMessage = (org.sonarqube.ws.Settings.Field) e.getUnfinishedMessage(); 5016 throw e; 5017 } finally { 5018 if (parsedMessage != null) { 5019 mergeFrom(parsedMessage); 5020 } 5021 } 5022 return this; 5023 } 5024 private int bitField0_; 5025 5026 private java.lang.Object key_ = ""; 5027 /** 5028 * <code>optional string key = 1;</code> 5029 */ 5030 public boolean hasKey() { 5031 return ((bitField0_ & 0x00000001) == 0x00000001); 5032 } 5033 /** 5034 * <code>optional string key = 1;</code> 5035 */ 5036 public java.lang.String getKey() { 5037 java.lang.Object ref = key_; 5038 if (!(ref instanceof java.lang.String)) { 5039 com.google.protobuf.ByteString bs = 5040 (com.google.protobuf.ByteString) ref; 5041 java.lang.String s = bs.toStringUtf8(); 5042 if (bs.isValidUtf8()) { 5043 key_ = s; 5044 } 5045 return s; 5046 } else { 5047 return (java.lang.String) ref; 5048 } 5049 } 5050 /** 5051 * <code>optional string key = 1;</code> 5052 */ 5053 public com.google.protobuf.ByteString 5054 getKeyBytes() { 5055 java.lang.Object ref = key_; 5056 if (ref instanceof String) { 5057 com.google.protobuf.ByteString b = 5058 com.google.protobuf.ByteString.copyFromUtf8( 5059 (java.lang.String) ref); 5060 key_ = b; 5061 return b; 5062 } else { 5063 return (com.google.protobuf.ByteString) ref; 5064 } 5065 } 5066 /** 5067 * <code>optional string key = 1;</code> 5068 */ 5069 public Builder setKey( 5070 java.lang.String value) { 5071 if (value == null) { 5072 throw new NullPointerException(); 5073 } 5074 bitField0_ |= 0x00000001; 5075 key_ = value; 5076 onChanged(); 5077 return this; 5078 } 5079 /** 5080 * <code>optional string key = 1;</code> 5081 */ 5082 public Builder clearKey() { 5083 bitField0_ = (bitField0_ & ~0x00000001); 5084 key_ = getDefaultInstance().getKey(); 5085 onChanged(); 5086 return this; 5087 } 5088 /** 5089 * <code>optional string key = 1;</code> 5090 */ 5091 public Builder setKeyBytes( 5092 com.google.protobuf.ByteString value) { 5093 if (value == null) { 5094 throw new NullPointerException(); 5095 } 5096 bitField0_ |= 0x00000001; 5097 key_ = value; 5098 onChanged(); 5099 return this; 5100 } 5101 5102 private java.lang.Object name_ = ""; 5103 /** 5104 * <code>optional string name = 2;</code> 5105 */ 5106 public boolean hasName() { 5107 return ((bitField0_ & 0x00000002) == 0x00000002); 5108 } 5109 /** 5110 * <code>optional string name = 2;</code> 5111 */ 5112 public java.lang.String getName() { 5113 java.lang.Object ref = name_; 5114 if (!(ref instanceof java.lang.String)) { 5115 com.google.protobuf.ByteString bs = 5116 (com.google.protobuf.ByteString) ref; 5117 java.lang.String s = bs.toStringUtf8(); 5118 if (bs.isValidUtf8()) { 5119 name_ = s; 5120 } 5121 return s; 5122 } else { 5123 return (java.lang.String) ref; 5124 } 5125 } 5126 /** 5127 * <code>optional string name = 2;</code> 5128 */ 5129 public com.google.protobuf.ByteString 5130 getNameBytes() { 5131 java.lang.Object ref = name_; 5132 if (ref instanceof String) { 5133 com.google.protobuf.ByteString b = 5134 com.google.protobuf.ByteString.copyFromUtf8( 5135 (java.lang.String) ref); 5136 name_ = b; 5137 return b; 5138 } else { 5139 return (com.google.protobuf.ByteString) ref; 5140 } 5141 } 5142 /** 5143 * <code>optional string name = 2;</code> 5144 */ 5145 public Builder setName( 5146 java.lang.String value) { 5147 if (value == null) { 5148 throw new NullPointerException(); 5149 } 5150 bitField0_ |= 0x00000002; 5151 name_ = value; 5152 onChanged(); 5153 return this; 5154 } 5155 /** 5156 * <code>optional string name = 2;</code> 5157 */ 5158 public Builder clearName() { 5159 bitField0_ = (bitField0_ & ~0x00000002); 5160 name_ = getDefaultInstance().getName(); 5161 onChanged(); 5162 return this; 5163 } 5164 /** 5165 * <code>optional string name = 2;</code> 5166 */ 5167 public Builder setNameBytes( 5168 com.google.protobuf.ByteString value) { 5169 if (value == null) { 5170 throw new NullPointerException(); 5171 } 5172 bitField0_ |= 0x00000002; 5173 name_ = value; 5174 onChanged(); 5175 return this; 5176 } 5177 5178 private java.lang.Object description_ = ""; 5179 /** 5180 * <code>optional string description = 3;</code> 5181 */ 5182 public boolean hasDescription() { 5183 return ((bitField0_ & 0x00000004) == 0x00000004); 5184 } 5185 /** 5186 * <code>optional string description = 3;</code> 5187 */ 5188 public java.lang.String getDescription() { 5189 java.lang.Object ref = description_; 5190 if (!(ref instanceof java.lang.String)) { 5191 com.google.protobuf.ByteString bs = 5192 (com.google.protobuf.ByteString) ref; 5193 java.lang.String s = bs.toStringUtf8(); 5194 if (bs.isValidUtf8()) { 5195 description_ = s; 5196 } 5197 return s; 5198 } else { 5199 return (java.lang.String) ref; 5200 } 5201 } 5202 /** 5203 * <code>optional string description = 3;</code> 5204 */ 5205 public com.google.protobuf.ByteString 5206 getDescriptionBytes() { 5207 java.lang.Object ref = description_; 5208 if (ref instanceof String) { 5209 com.google.protobuf.ByteString b = 5210 com.google.protobuf.ByteString.copyFromUtf8( 5211 (java.lang.String) ref); 5212 description_ = b; 5213 return b; 5214 } else { 5215 return (com.google.protobuf.ByteString) ref; 5216 } 5217 } 5218 /** 5219 * <code>optional string description = 3;</code> 5220 */ 5221 public Builder setDescription( 5222 java.lang.String value) { 5223 if (value == null) { 5224 throw new NullPointerException(); 5225 } 5226 bitField0_ |= 0x00000004; 5227 description_ = value; 5228 onChanged(); 5229 return this; 5230 } 5231 /** 5232 * <code>optional string description = 3;</code> 5233 */ 5234 public Builder clearDescription() { 5235 bitField0_ = (bitField0_ & ~0x00000004); 5236 description_ = getDefaultInstance().getDescription(); 5237 onChanged(); 5238 return this; 5239 } 5240 /** 5241 * <code>optional string description = 3;</code> 5242 */ 5243 public Builder setDescriptionBytes( 5244 com.google.protobuf.ByteString value) { 5245 if (value == null) { 5246 throw new NullPointerException(); 5247 } 5248 bitField0_ |= 0x00000004; 5249 description_ = value; 5250 onChanged(); 5251 return this; 5252 } 5253 5254 private int type_ = 0; 5255 /** 5256 * <code>optional .sonarqube.ws.settings.Type type = 4;</code> 5257 */ 5258 public boolean hasType() { 5259 return ((bitField0_ & 0x00000008) == 0x00000008); 5260 } 5261 /** 5262 * <code>optional .sonarqube.ws.settings.Type type = 4;</code> 5263 */ 5264 public org.sonarqube.ws.Settings.Type getType() { 5265 org.sonarqube.ws.Settings.Type result = org.sonarqube.ws.Settings.Type.valueOf(type_); 5266 return result == null ? org.sonarqube.ws.Settings.Type.STRING : result; 5267 } 5268 /** 5269 * <code>optional .sonarqube.ws.settings.Type type = 4;</code> 5270 */ 5271 public Builder setType(org.sonarqube.ws.Settings.Type value) { 5272 if (value == null) { 5273 throw new NullPointerException(); 5274 } 5275 bitField0_ |= 0x00000008; 5276 type_ = value.getNumber(); 5277 onChanged(); 5278 return this; 5279 } 5280 /** 5281 * <code>optional .sonarqube.ws.settings.Type type = 4;</code> 5282 */ 5283 public Builder clearType() { 5284 bitField0_ = (bitField0_ & ~0x00000008); 5285 type_ = 0; 5286 onChanged(); 5287 return this; 5288 } 5289 5290 private com.google.protobuf.LazyStringList options_ = com.google.protobuf.LazyStringArrayList.EMPTY; 5291 private void ensureOptionsIsMutable() { 5292 if (!((bitField0_ & 0x00000010) == 0x00000010)) { 5293 options_ = new com.google.protobuf.LazyStringArrayList(options_); 5294 bitField0_ |= 0x00000010; 5295 } 5296 } 5297 /** 5298 * <code>repeated string options = 5;</code> 5299 */ 5300 public com.google.protobuf.ProtocolStringList 5301 getOptionsList() { 5302 return options_.getUnmodifiableView(); 5303 } 5304 /** 5305 * <code>repeated string options = 5;</code> 5306 */ 5307 public int getOptionsCount() { 5308 return options_.size(); 5309 } 5310 /** 5311 * <code>repeated string options = 5;</code> 5312 */ 5313 public java.lang.String getOptions(int index) { 5314 return options_.get(index); 5315 } 5316 /** 5317 * <code>repeated string options = 5;</code> 5318 */ 5319 public com.google.protobuf.ByteString 5320 getOptionsBytes(int index) { 5321 return options_.getByteString(index); 5322 } 5323 /** 5324 * <code>repeated string options = 5;</code> 5325 */ 5326 public Builder setOptions( 5327 int index, java.lang.String value) { 5328 if (value == null) { 5329 throw new NullPointerException(); 5330 } 5331 ensureOptionsIsMutable(); 5332 options_.set(index, value); 5333 onChanged(); 5334 return this; 5335 } 5336 /** 5337 * <code>repeated string options = 5;</code> 5338 */ 5339 public Builder addOptions( 5340 java.lang.String value) { 5341 if (value == null) { 5342 throw new NullPointerException(); 5343 } 5344 ensureOptionsIsMutable(); 5345 options_.add(value); 5346 onChanged(); 5347 return this; 5348 } 5349 /** 5350 * <code>repeated string options = 5;</code> 5351 */ 5352 public Builder addAllOptions( 5353 java.lang.Iterable<java.lang.String> values) { 5354 ensureOptionsIsMutable(); 5355 com.google.protobuf.AbstractMessageLite.Builder.addAll( 5356 values, options_); 5357 onChanged(); 5358 return this; 5359 } 5360 /** 5361 * <code>repeated string options = 5;</code> 5362 */ 5363 public Builder clearOptions() { 5364 options_ = com.google.protobuf.LazyStringArrayList.EMPTY; 5365 bitField0_ = (bitField0_ & ~0x00000010); 5366 onChanged(); 5367 return this; 5368 } 5369 /** 5370 * <code>repeated string options = 5;</code> 5371 */ 5372 public Builder addOptionsBytes( 5373 com.google.protobuf.ByteString value) { 5374 if (value == null) { 5375 throw new NullPointerException(); 5376 } 5377 ensureOptionsIsMutable(); 5378 options_.add(value); 5379 onChanged(); 5380 return this; 5381 } 5382 5383 // @@protoc_insertion_point(builder_scope:sonarqube.ws.settings.Field) 5384 } 5385 5386 // @@protoc_insertion_point(class_scope:sonarqube.ws.settings.Field) 5387 private static final org.sonarqube.ws.Settings.Field DEFAULT_INSTANCE; 5388 static { 5389 DEFAULT_INSTANCE = new org.sonarqube.ws.Settings.Field(); 5390 } 5391 5392 public static org.sonarqube.ws.Settings.Field getDefaultInstance() { 5393 return DEFAULT_INSTANCE; 5394 } 5395 5396 @java.lang.Deprecated public static final com.google.protobuf.Parser<Field> 5397 PARSER = new com.google.protobuf.AbstractParser<Field>() { 5398 public Field parsePartialFrom( 5399 com.google.protobuf.CodedInputStream input, 5400 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5401 throws com.google.protobuf.InvalidProtocolBufferException { 5402 try { 5403 return new Field(input, extensionRegistry); 5404 } catch (RuntimeException e) { 5405 if (e.getCause() instanceof 5406 com.google.protobuf.InvalidProtocolBufferException) { 5407 throw (com.google.protobuf.InvalidProtocolBufferException) 5408 e.getCause(); 5409 } 5410 throw e; 5411 } 5412 } 5413 }; 5414 5415 public static com.google.protobuf.Parser<Field> parser() { 5416 return PARSER; 5417 } 5418 5419 @java.lang.Override 5420 public com.google.protobuf.Parser<Field> getParserForType() { 5421 return PARSER; 5422 } 5423 5424 public org.sonarqube.ws.Settings.Field getDefaultInstanceForType() { 5425 return DEFAULT_INSTANCE; 5426 } 5427 5428 } 5429 5430 public interface ValuesWsResponseOrBuilder extends 5431 // @@protoc_insertion_point(interface_extends:sonarqube.ws.settings.ValuesWsResponse) 5432 com.google.protobuf.MessageOrBuilder { 5433 5434 /** 5435 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5436 */ 5437 java.util.List<org.sonarqube.ws.Settings.Setting> 5438 getSettingsList(); 5439 /** 5440 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5441 */ 5442 org.sonarqube.ws.Settings.Setting getSettings(int index); 5443 /** 5444 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5445 */ 5446 int getSettingsCount(); 5447 /** 5448 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5449 */ 5450 java.util.List<? extends org.sonarqube.ws.Settings.SettingOrBuilder> 5451 getSettingsOrBuilderList(); 5452 /** 5453 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5454 */ 5455 org.sonarqube.ws.Settings.SettingOrBuilder getSettingsOrBuilder( 5456 int index); 5457 } 5458 /** 5459 * Protobuf type {@code sonarqube.ws.settings.ValuesWsResponse} 5460 * 5461 * <pre> 5462 * Response of GET api/settings/values 5463 * </pre> 5464 */ 5465 public static final class ValuesWsResponse extends 5466 com.google.protobuf.GeneratedMessage implements 5467 // @@protoc_insertion_point(message_implements:sonarqube.ws.settings.ValuesWsResponse) 5468 ValuesWsResponseOrBuilder { 5469 // Use ValuesWsResponse.newBuilder() to construct. 5470 private ValuesWsResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 5471 super(builder); 5472 } 5473 private ValuesWsResponse() { 5474 settings_ = java.util.Collections.emptyList(); 5475 } 5476 5477 @java.lang.Override 5478 public final com.google.protobuf.UnknownFieldSet 5479 getUnknownFields() { 5480 return this.unknownFields; 5481 } 5482 private ValuesWsResponse( 5483 com.google.protobuf.CodedInputStream input, 5484 com.google.protobuf.ExtensionRegistryLite extensionRegistry) { 5485 this(); 5486 int mutable_bitField0_ = 0; 5487 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 5488 com.google.protobuf.UnknownFieldSet.newBuilder(); 5489 try { 5490 boolean done = false; 5491 while (!done) { 5492 int tag = input.readTag(); 5493 switch (tag) { 5494 case 0: 5495 done = true; 5496 break; 5497 default: { 5498 if (!parseUnknownField(input, unknownFields, 5499 extensionRegistry, tag)) { 5500 done = true; 5501 } 5502 break; 5503 } 5504 case 10: { 5505 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 5506 settings_ = new java.util.ArrayList<org.sonarqube.ws.Settings.Setting>(); 5507 mutable_bitField0_ |= 0x00000001; 5508 } 5509 settings_.add(input.readMessage(org.sonarqube.ws.Settings.Setting.parser(), extensionRegistry)); 5510 break; 5511 } 5512 } 5513 } 5514 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5515 throw new RuntimeException(e.setUnfinishedMessage(this)); 5516 } catch (java.io.IOException e) { 5517 throw new RuntimeException( 5518 new com.google.protobuf.InvalidProtocolBufferException( 5519 e.getMessage()).setUnfinishedMessage(this)); 5520 } finally { 5521 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 5522 settings_ = java.util.Collections.unmodifiableList(settings_); 5523 } 5524 this.unknownFields = unknownFields.build(); 5525 makeExtensionsImmutable(); 5526 } 5527 } 5528 public static final com.google.protobuf.Descriptors.Descriptor 5529 getDescriptor() { 5530 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_ValuesWsResponse_descriptor; 5531 } 5532 5533 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 5534 internalGetFieldAccessorTable() { 5535 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_ValuesWsResponse_fieldAccessorTable 5536 .ensureFieldAccessorsInitialized( 5537 org.sonarqube.ws.Settings.ValuesWsResponse.class, org.sonarqube.ws.Settings.ValuesWsResponse.Builder.class); 5538 } 5539 5540 public static final int SETTINGS_FIELD_NUMBER = 1; 5541 private java.util.List<org.sonarqube.ws.Settings.Setting> settings_; 5542 /** 5543 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5544 */ 5545 public java.util.List<org.sonarqube.ws.Settings.Setting> getSettingsList() { 5546 return settings_; 5547 } 5548 /** 5549 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5550 */ 5551 public java.util.List<? extends org.sonarqube.ws.Settings.SettingOrBuilder> 5552 getSettingsOrBuilderList() { 5553 return settings_; 5554 } 5555 /** 5556 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5557 */ 5558 public int getSettingsCount() { 5559 return settings_.size(); 5560 } 5561 /** 5562 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5563 */ 5564 public org.sonarqube.ws.Settings.Setting getSettings(int index) { 5565 return settings_.get(index); 5566 } 5567 /** 5568 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5569 */ 5570 public org.sonarqube.ws.Settings.SettingOrBuilder getSettingsOrBuilder( 5571 int index) { 5572 return settings_.get(index); 5573 } 5574 5575 private byte memoizedIsInitialized = -1; 5576 public final boolean isInitialized() { 5577 byte isInitialized = memoizedIsInitialized; 5578 if (isInitialized == 1) return true; 5579 if (isInitialized == 0) return false; 5580 5581 memoizedIsInitialized = 1; 5582 return true; 5583 } 5584 5585 public void writeTo(com.google.protobuf.CodedOutputStream output) 5586 throws java.io.IOException { 5587 for (int i = 0; i < settings_.size(); i++) { 5588 output.writeMessage(1, settings_.get(i)); 5589 } 5590 unknownFields.writeTo(output); 5591 } 5592 5593 public int getSerializedSize() { 5594 int size = memoizedSize; 5595 if (size != -1) return size; 5596 5597 size = 0; 5598 for (int i = 0; i < settings_.size(); i++) { 5599 size += com.google.protobuf.CodedOutputStream 5600 .computeMessageSize(1, settings_.get(i)); 5601 } 5602 size += unknownFields.getSerializedSize(); 5603 memoizedSize = size; 5604 return size; 5605 } 5606 5607 private static final long serialVersionUID = 0L; 5608 public static org.sonarqube.ws.Settings.ValuesWsResponse parseFrom( 5609 com.google.protobuf.ByteString data) 5610 throws com.google.protobuf.InvalidProtocolBufferException { 5611 return PARSER.parseFrom(data); 5612 } 5613 public static org.sonarqube.ws.Settings.ValuesWsResponse parseFrom( 5614 com.google.protobuf.ByteString data, 5615 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5616 throws com.google.protobuf.InvalidProtocolBufferException { 5617 return PARSER.parseFrom(data, extensionRegistry); 5618 } 5619 public static org.sonarqube.ws.Settings.ValuesWsResponse parseFrom(byte[] data) 5620 throws com.google.protobuf.InvalidProtocolBufferException { 5621 return PARSER.parseFrom(data); 5622 } 5623 public static org.sonarqube.ws.Settings.ValuesWsResponse parseFrom( 5624 byte[] data, 5625 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5626 throws com.google.protobuf.InvalidProtocolBufferException { 5627 return PARSER.parseFrom(data, extensionRegistry); 5628 } 5629 public static org.sonarqube.ws.Settings.ValuesWsResponse parseFrom(java.io.InputStream input) 5630 throws java.io.IOException { 5631 return PARSER.parseFrom(input); 5632 } 5633 public static org.sonarqube.ws.Settings.ValuesWsResponse parseFrom( 5634 java.io.InputStream input, 5635 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5636 throws java.io.IOException { 5637 return PARSER.parseFrom(input, extensionRegistry); 5638 } 5639 public static org.sonarqube.ws.Settings.ValuesWsResponse parseDelimitedFrom(java.io.InputStream input) 5640 throws java.io.IOException { 5641 return PARSER.parseDelimitedFrom(input); 5642 } 5643 public static org.sonarqube.ws.Settings.ValuesWsResponse parseDelimitedFrom( 5644 java.io.InputStream input, 5645 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5646 throws java.io.IOException { 5647 return PARSER.parseDelimitedFrom(input, extensionRegistry); 5648 } 5649 public static org.sonarqube.ws.Settings.ValuesWsResponse parseFrom( 5650 com.google.protobuf.CodedInputStream input) 5651 throws java.io.IOException { 5652 return PARSER.parseFrom(input); 5653 } 5654 public static org.sonarqube.ws.Settings.ValuesWsResponse parseFrom( 5655 com.google.protobuf.CodedInputStream input, 5656 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5657 throws java.io.IOException { 5658 return PARSER.parseFrom(input, extensionRegistry); 5659 } 5660 5661 public Builder newBuilderForType() { return newBuilder(); } 5662 public static Builder newBuilder() { 5663 return DEFAULT_INSTANCE.toBuilder(); 5664 } 5665 public static Builder newBuilder(org.sonarqube.ws.Settings.ValuesWsResponse prototype) { 5666 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 5667 } 5668 public Builder toBuilder() { 5669 return this == DEFAULT_INSTANCE 5670 ? new Builder() : new Builder().mergeFrom(this); 5671 } 5672 5673 @java.lang.Override 5674 protected Builder newBuilderForType( 5675 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 5676 Builder builder = new Builder(parent); 5677 return builder; 5678 } 5679 /** 5680 * Protobuf type {@code sonarqube.ws.settings.ValuesWsResponse} 5681 * 5682 * <pre> 5683 * Response of GET api/settings/values 5684 * </pre> 5685 */ 5686 public static final class Builder extends 5687 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 5688 // @@protoc_insertion_point(builder_implements:sonarqube.ws.settings.ValuesWsResponse) 5689 org.sonarqube.ws.Settings.ValuesWsResponseOrBuilder { 5690 public static final com.google.protobuf.Descriptors.Descriptor 5691 getDescriptor() { 5692 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_ValuesWsResponse_descriptor; 5693 } 5694 5695 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 5696 internalGetFieldAccessorTable() { 5697 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_ValuesWsResponse_fieldAccessorTable 5698 .ensureFieldAccessorsInitialized( 5699 org.sonarqube.ws.Settings.ValuesWsResponse.class, org.sonarqube.ws.Settings.ValuesWsResponse.Builder.class); 5700 } 5701 5702 // Construct using org.sonarqube.ws.Settings.ValuesWsResponse.newBuilder() 5703 private Builder() { 5704 maybeForceBuilderInitialization(); 5705 } 5706 5707 private Builder( 5708 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 5709 super(parent); 5710 maybeForceBuilderInitialization(); 5711 } 5712 private void maybeForceBuilderInitialization() { 5713 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 5714 getSettingsFieldBuilder(); 5715 } 5716 } 5717 public Builder clear() { 5718 super.clear(); 5719 if (settingsBuilder_ == null) { 5720 settings_ = java.util.Collections.emptyList(); 5721 bitField0_ = (bitField0_ & ~0x00000001); 5722 } else { 5723 settingsBuilder_.clear(); 5724 } 5725 return this; 5726 } 5727 5728 public com.google.protobuf.Descriptors.Descriptor 5729 getDescriptorForType() { 5730 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_ValuesWsResponse_descriptor; 5731 } 5732 5733 public org.sonarqube.ws.Settings.ValuesWsResponse getDefaultInstanceForType() { 5734 return org.sonarqube.ws.Settings.ValuesWsResponse.getDefaultInstance(); 5735 } 5736 5737 public org.sonarqube.ws.Settings.ValuesWsResponse build() { 5738 org.sonarqube.ws.Settings.ValuesWsResponse result = buildPartial(); 5739 if (!result.isInitialized()) { 5740 throw newUninitializedMessageException(result); 5741 } 5742 return result; 5743 } 5744 5745 public org.sonarqube.ws.Settings.ValuesWsResponse buildPartial() { 5746 org.sonarqube.ws.Settings.ValuesWsResponse result = new org.sonarqube.ws.Settings.ValuesWsResponse(this); 5747 int from_bitField0_ = bitField0_; 5748 if (settingsBuilder_ == null) { 5749 if (((bitField0_ & 0x00000001) == 0x00000001)) { 5750 settings_ = java.util.Collections.unmodifiableList(settings_); 5751 bitField0_ = (bitField0_ & ~0x00000001); 5752 } 5753 result.settings_ = settings_; 5754 } else { 5755 result.settings_ = settingsBuilder_.build(); 5756 } 5757 onBuilt(); 5758 return result; 5759 } 5760 5761 public Builder mergeFrom(com.google.protobuf.Message other) { 5762 if (other instanceof org.sonarqube.ws.Settings.ValuesWsResponse) { 5763 return mergeFrom((org.sonarqube.ws.Settings.ValuesWsResponse)other); 5764 } else { 5765 super.mergeFrom(other); 5766 return this; 5767 } 5768 } 5769 5770 public Builder mergeFrom(org.sonarqube.ws.Settings.ValuesWsResponse other) { 5771 if (other == org.sonarqube.ws.Settings.ValuesWsResponse.getDefaultInstance()) return this; 5772 if (settingsBuilder_ == null) { 5773 if (!other.settings_.isEmpty()) { 5774 if (settings_.isEmpty()) { 5775 settings_ = other.settings_; 5776 bitField0_ = (bitField0_ & ~0x00000001); 5777 } else { 5778 ensureSettingsIsMutable(); 5779 settings_.addAll(other.settings_); 5780 } 5781 onChanged(); 5782 } 5783 } else { 5784 if (!other.settings_.isEmpty()) { 5785 if (settingsBuilder_.isEmpty()) { 5786 settingsBuilder_.dispose(); 5787 settingsBuilder_ = null; 5788 settings_ = other.settings_; 5789 bitField0_ = (bitField0_ & ~0x00000001); 5790 settingsBuilder_ = 5791 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 5792 getSettingsFieldBuilder() : null; 5793 } else { 5794 settingsBuilder_.addAllMessages(other.settings_); 5795 } 5796 } 5797 } 5798 this.mergeUnknownFields(other.unknownFields); 5799 onChanged(); 5800 return this; 5801 } 5802 5803 public final boolean isInitialized() { 5804 return true; 5805 } 5806 5807 public Builder mergeFrom( 5808 com.google.protobuf.CodedInputStream input, 5809 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 5810 throws java.io.IOException { 5811 org.sonarqube.ws.Settings.ValuesWsResponse parsedMessage = null; 5812 try { 5813 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 5814 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 5815 parsedMessage = (org.sonarqube.ws.Settings.ValuesWsResponse) e.getUnfinishedMessage(); 5816 throw e; 5817 } finally { 5818 if (parsedMessage != null) { 5819 mergeFrom(parsedMessage); 5820 } 5821 } 5822 return this; 5823 } 5824 private int bitField0_; 5825 5826 private java.util.List<org.sonarqube.ws.Settings.Setting> settings_ = 5827 java.util.Collections.emptyList(); 5828 private void ensureSettingsIsMutable() { 5829 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 5830 settings_ = new java.util.ArrayList<org.sonarqube.ws.Settings.Setting>(settings_); 5831 bitField0_ |= 0x00000001; 5832 } 5833 } 5834 5835 private com.google.protobuf.RepeatedFieldBuilder< 5836 org.sonarqube.ws.Settings.Setting, org.sonarqube.ws.Settings.Setting.Builder, org.sonarqube.ws.Settings.SettingOrBuilder> settingsBuilder_; 5837 5838 /** 5839 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5840 */ 5841 public java.util.List<org.sonarqube.ws.Settings.Setting> getSettingsList() { 5842 if (settingsBuilder_ == null) { 5843 return java.util.Collections.unmodifiableList(settings_); 5844 } else { 5845 return settingsBuilder_.getMessageList(); 5846 } 5847 } 5848 /** 5849 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5850 */ 5851 public int getSettingsCount() { 5852 if (settingsBuilder_ == null) { 5853 return settings_.size(); 5854 } else { 5855 return settingsBuilder_.getCount(); 5856 } 5857 } 5858 /** 5859 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5860 */ 5861 public org.sonarqube.ws.Settings.Setting getSettings(int index) { 5862 if (settingsBuilder_ == null) { 5863 return settings_.get(index); 5864 } else { 5865 return settingsBuilder_.getMessage(index); 5866 } 5867 } 5868 /** 5869 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5870 */ 5871 public Builder setSettings( 5872 int index, org.sonarqube.ws.Settings.Setting value) { 5873 if (settingsBuilder_ == null) { 5874 if (value == null) { 5875 throw new NullPointerException(); 5876 } 5877 ensureSettingsIsMutable(); 5878 settings_.set(index, value); 5879 onChanged(); 5880 } else { 5881 settingsBuilder_.setMessage(index, value); 5882 } 5883 return this; 5884 } 5885 /** 5886 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5887 */ 5888 public Builder setSettings( 5889 int index, org.sonarqube.ws.Settings.Setting.Builder builderForValue) { 5890 if (settingsBuilder_ == null) { 5891 ensureSettingsIsMutable(); 5892 settings_.set(index, builderForValue.build()); 5893 onChanged(); 5894 } else { 5895 settingsBuilder_.setMessage(index, builderForValue.build()); 5896 } 5897 return this; 5898 } 5899 /** 5900 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5901 */ 5902 public Builder addSettings(org.sonarqube.ws.Settings.Setting value) { 5903 if (settingsBuilder_ == null) { 5904 if (value == null) { 5905 throw new NullPointerException(); 5906 } 5907 ensureSettingsIsMutable(); 5908 settings_.add(value); 5909 onChanged(); 5910 } else { 5911 settingsBuilder_.addMessage(value); 5912 } 5913 return this; 5914 } 5915 /** 5916 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5917 */ 5918 public Builder addSettings( 5919 int index, org.sonarqube.ws.Settings.Setting value) { 5920 if (settingsBuilder_ == null) { 5921 if (value == null) { 5922 throw new NullPointerException(); 5923 } 5924 ensureSettingsIsMutable(); 5925 settings_.add(index, value); 5926 onChanged(); 5927 } else { 5928 settingsBuilder_.addMessage(index, value); 5929 } 5930 return this; 5931 } 5932 /** 5933 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5934 */ 5935 public Builder addSettings( 5936 org.sonarqube.ws.Settings.Setting.Builder builderForValue) { 5937 if (settingsBuilder_ == null) { 5938 ensureSettingsIsMutable(); 5939 settings_.add(builderForValue.build()); 5940 onChanged(); 5941 } else { 5942 settingsBuilder_.addMessage(builderForValue.build()); 5943 } 5944 return this; 5945 } 5946 /** 5947 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5948 */ 5949 public Builder addSettings( 5950 int index, org.sonarqube.ws.Settings.Setting.Builder builderForValue) { 5951 if (settingsBuilder_ == null) { 5952 ensureSettingsIsMutable(); 5953 settings_.add(index, builderForValue.build()); 5954 onChanged(); 5955 } else { 5956 settingsBuilder_.addMessage(index, builderForValue.build()); 5957 } 5958 return this; 5959 } 5960 /** 5961 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5962 */ 5963 public Builder addAllSettings( 5964 java.lang.Iterable<? extends org.sonarqube.ws.Settings.Setting> values) { 5965 if (settingsBuilder_ == null) { 5966 ensureSettingsIsMutable(); 5967 com.google.protobuf.AbstractMessageLite.Builder.addAll( 5968 values, settings_); 5969 onChanged(); 5970 } else { 5971 settingsBuilder_.addAllMessages(values); 5972 } 5973 return this; 5974 } 5975 /** 5976 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5977 */ 5978 public Builder clearSettings() { 5979 if (settingsBuilder_ == null) { 5980 settings_ = java.util.Collections.emptyList(); 5981 bitField0_ = (bitField0_ & ~0x00000001); 5982 onChanged(); 5983 } else { 5984 settingsBuilder_.clear(); 5985 } 5986 return this; 5987 } 5988 /** 5989 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 5990 */ 5991 public Builder removeSettings(int index) { 5992 if (settingsBuilder_ == null) { 5993 ensureSettingsIsMutable(); 5994 settings_.remove(index); 5995 onChanged(); 5996 } else { 5997 settingsBuilder_.remove(index); 5998 } 5999 return this; 6000 } 6001 /** 6002 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 6003 */ 6004 public org.sonarqube.ws.Settings.Setting.Builder getSettingsBuilder( 6005 int index) { 6006 return getSettingsFieldBuilder().getBuilder(index); 6007 } 6008 /** 6009 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 6010 */ 6011 public org.sonarqube.ws.Settings.SettingOrBuilder getSettingsOrBuilder( 6012 int index) { 6013 if (settingsBuilder_ == null) { 6014 return settings_.get(index); } else { 6015 return settingsBuilder_.getMessageOrBuilder(index); 6016 } 6017 } 6018 /** 6019 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 6020 */ 6021 public java.util.List<? extends org.sonarqube.ws.Settings.SettingOrBuilder> 6022 getSettingsOrBuilderList() { 6023 if (settingsBuilder_ != null) { 6024 return settingsBuilder_.getMessageOrBuilderList(); 6025 } else { 6026 return java.util.Collections.unmodifiableList(settings_); 6027 } 6028 } 6029 /** 6030 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 6031 */ 6032 public org.sonarqube.ws.Settings.Setting.Builder addSettingsBuilder() { 6033 return getSettingsFieldBuilder().addBuilder( 6034 org.sonarqube.ws.Settings.Setting.getDefaultInstance()); 6035 } 6036 /** 6037 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 6038 */ 6039 public org.sonarqube.ws.Settings.Setting.Builder addSettingsBuilder( 6040 int index) { 6041 return getSettingsFieldBuilder().addBuilder( 6042 index, org.sonarqube.ws.Settings.Setting.getDefaultInstance()); 6043 } 6044 /** 6045 * <code>repeated .sonarqube.ws.settings.Setting settings = 1;</code> 6046 */ 6047 public java.util.List<org.sonarqube.ws.Settings.Setting.Builder> 6048 getSettingsBuilderList() { 6049 return getSettingsFieldBuilder().getBuilderList(); 6050 } 6051 private com.google.protobuf.RepeatedFieldBuilder< 6052 org.sonarqube.ws.Settings.Setting, org.sonarqube.ws.Settings.Setting.Builder, org.sonarqube.ws.Settings.SettingOrBuilder> 6053 getSettingsFieldBuilder() { 6054 if (settingsBuilder_ == null) { 6055 settingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< 6056 org.sonarqube.ws.Settings.Setting, org.sonarqube.ws.Settings.Setting.Builder, org.sonarqube.ws.Settings.SettingOrBuilder>( 6057 settings_, 6058 ((bitField0_ & 0x00000001) == 0x00000001), 6059 getParentForChildren(), 6060 isClean()); 6061 settings_ = null; 6062 } 6063 return settingsBuilder_; 6064 } 6065 6066 // @@protoc_insertion_point(builder_scope:sonarqube.ws.settings.ValuesWsResponse) 6067 } 6068 6069 // @@protoc_insertion_point(class_scope:sonarqube.ws.settings.ValuesWsResponse) 6070 private static final org.sonarqube.ws.Settings.ValuesWsResponse DEFAULT_INSTANCE; 6071 static { 6072 DEFAULT_INSTANCE = new org.sonarqube.ws.Settings.ValuesWsResponse(); 6073 } 6074 6075 public static org.sonarqube.ws.Settings.ValuesWsResponse getDefaultInstance() { 6076 return DEFAULT_INSTANCE; 6077 } 6078 6079 @java.lang.Deprecated public static final com.google.protobuf.Parser<ValuesWsResponse> 6080 PARSER = new com.google.protobuf.AbstractParser<ValuesWsResponse>() { 6081 public ValuesWsResponse parsePartialFrom( 6082 com.google.protobuf.CodedInputStream input, 6083 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6084 throws com.google.protobuf.InvalidProtocolBufferException { 6085 try { 6086 return new ValuesWsResponse(input, extensionRegistry); 6087 } catch (RuntimeException e) { 6088 if (e.getCause() instanceof 6089 com.google.protobuf.InvalidProtocolBufferException) { 6090 throw (com.google.protobuf.InvalidProtocolBufferException) 6091 e.getCause(); 6092 } 6093 throw e; 6094 } 6095 } 6096 }; 6097 6098 public static com.google.protobuf.Parser<ValuesWsResponse> parser() { 6099 return PARSER; 6100 } 6101 6102 @java.lang.Override 6103 public com.google.protobuf.Parser<ValuesWsResponse> getParserForType() { 6104 return PARSER; 6105 } 6106 6107 public org.sonarqube.ws.Settings.ValuesWsResponse getDefaultInstanceForType() { 6108 return DEFAULT_INSTANCE; 6109 } 6110 6111 } 6112 6113 public interface SettingOrBuilder extends 6114 // @@protoc_insertion_point(interface_extends:sonarqube.ws.settings.Setting) 6115 com.google.protobuf.MessageOrBuilder { 6116 6117 /** 6118 * <code>optional string key = 1;</code> 6119 */ 6120 boolean hasKey(); 6121 /** 6122 * <code>optional string key = 1;</code> 6123 */ 6124 java.lang.String getKey(); 6125 /** 6126 * <code>optional string key = 1;</code> 6127 */ 6128 com.google.protobuf.ByteString 6129 getKeyBytes(); 6130 6131 /** 6132 * <code>optional string value = 2;</code> 6133 */ 6134 boolean hasValue(); 6135 /** 6136 * <code>optional string value = 2;</code> 6137 */ 6138 java.lang.String getValue(); 6139 /** 6140 * <code>optional string value = 2;</code> 6141 */ 6142 com.google.protobuf.ByteString 6143 getValueBytes(); 6144 6145 /** 6146 * <code>optional .sonarqube.ws.settings.Values values = 3;</code> 6147 */ 6148 boolean hasValues(); 6149 /** 6150 * <code>optional .sonarqube.ws.settings.Values values = 3;</code> 6151 */ 6152 org.sonarqube.ws.Settings.Values getValues(); 6153 /** 6154 * <code>optional .sonarqube.ws.settings.Values values = 3;</code> 6155 */ 6156 org.sonarqube.ws.Settings.ValuesOrBuilder getValuesOrBuilder(); 6157 6158 /** 6159 * <code>optional .sonarqube.ws.settings.FieldValues fieldValues = 4;</code> 6160 */ 6161 boolean hasFieldValues(); 6162 /** 6163 * <code>optional .sonarqube.ws.settings.FieldValues fieldValues = 4;</code> 6164 */ 6165 org.sonarqube.ws.Settings.FieldValues getFieldValues(); 6166 /** 6167 * <code>optional .sonarqube.ws.settings.FieldValues fieldValues = 4;</code> 6168 */ 6169 org.sonarqube.ws.Settings.FieldValuesOrBuilder getFieldValuesOrBuilder(); 6170 6171 /** 6172 * <code>optional bool inherited = 5;</code> 6173 */ 6174 boolean hasInherited(); 6175 /** 6176 * <code>optional bool inherited = 5;</code> 6177 */ 6178 boolean getInherited(); 6179 6180 /** 6181 * <code>optional string parentValue = 6;</code> 6182 */ 6183 boolean hasParentValue(); 6184 /** 6185 * <code>optional string parentValue = 6;</code> 6186 */ 6187 java.lang.String getParentValue(); 6188 /** 6189 * <code>optional string parentValue = 6;</code> 6190 */ 6191 com.google.protobuf.ByteString 6192 getParentValueBytes(); 6193 6194 /** 6195 * <code>optional .sonarqube.ws.settings.Values parentValues = 7;</code> 6196 */ 6197 boolean hasParentValues(); 6198 /** 6199 * <code>optional .sonarqube.ws.settings.Values parentValues = 7;</code> 6200 */ 6201 org.sonarqube.ws.Settings.Values getParentValues(); 6202 /** 6203 * <code>optional .sonarqube.ws.settings.Values parentValues = 7;</code> 6204 */ 6205 org.sonarqube.ws.Settings.ValuesOrBuilder getParentValuesOrBuilder(); 6206 6207 /** 6208 * <code>optional .sonarqube.ws.settings.FieldValues parentFieldValues = 8;</code> 6209 */ 6210 boolean hasParentFieldValues(); 6211 /** 6212 * <code>optional .sonarqube.ws.settings.FieldValues parentFieldValues = 8;</code> 6213 */ 6214 org.sonarqube.ws.Settings.FieldValues getParentFieldValues(); 6215 /** 6216 * <code>optional .sonarqube.ws.settings.FieldValues parentFieldValues = 8;</code> 6217 */ 6218 org.sonarqube.ws.Settings.FieldValuesOrBuilder getParentFieldValuesOrBuilder(); 6219 } 6220 /** 6221 * Protobuf type {@code sonarqube.ws.settings.Setting} 6222 */ 6223 public static final class Setting extends 6224 com.google.protobuf.GeneratedMessage implements 6225 // @@protoc_insertion_point(message_implements:sonarqube.ws.settings.Setting) 6226 SettingOrBuilder { 6227 // Use Setting.newBuilder() to construct. 6228 private Setting(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 6229 super(builder); 6230 } 6231 private Setting() { 6232 key_ = ""; 6233 value_ = ""; 6234 inherited_ = false; 6235 parentValue_ = ""; 6236 } 6237 6238 @java.lang.Override 6239 public final com.google.protobuf.UnknownFieldSet 6240 getUnknownFields() { 6241 return this.unknownFields; 6242 } 6243 private Setting( 6244 com.google.protobuf.CodedInputStream input, 6245 com.google.protobuf.ExtensionRegistryLite extensionRegistry) { 6246 this(); 6247 int mutable_bitField0_ = 0; 6248 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 6249 com.google.protobuf.UnknownFieldSet.newBuilder(); 6250 try { 6251 boolean done = false; 6252 while (!done) { 6253 int tag = input.readTag(); 6254 switch (tag) { 6255 case 0: 6256 done = true; 6257 break; 6258 default: { 6259 if (!parseUnknownField(input, unknownFields, 6260 extensionRegistry, tag)) { 6261 done = true; 6262 } 6263 break; 6264 } 6265 case 10: { 6266 com.google.protobuf.ByteString bs = input.readBytes(); 6267 bitField0_ |= 0x00000001; 6268 key_ = bs; 6269 break; 6270 } 6271 case 18: { 6272 com.google.protobuf.ByteString bs = input.readBytes(); 6273 bitField0_ |= 0x00000002; 6274 value_ = bs; 6275 break; 6276 } 6277 case 26: { 6278 org.sonarqube.ws.Settings.Values.Builder subBuilder = null; 6279 if (((bitField0_ & 0x00000004) == 0x00000004)) { 6280 subBuilder = values_.toBuilder(); 6281 } 6282 values_ = input.readMessage(org.sonarqube.ws.Settings.Values.parser(), extensionRegistry); 6283 if (subBuilder != null) { 6284 subBuilder.mergeFrom(values_); 6285 values_ = subBuilder.buildPartial(); 6286 } 6287 bitField0_ |= 0x00000004; 6288 break; 6289 } 6290 case 34: { 6291 org.sonarqube.ws.Settings.FieldValues.Builder subBuilder = null; 6292 if (((bitField0_ & 0x00000008) == 0x00000008)) { 6293 subBuilder = fieldValues_.toBuilder(); 6294 } 6295 fieldValues_ = input.readMessage(org.sonarqube.ws.Settings.FieldValues.parser(), extensionRegistry); 6296 if (subBuilder != null) { 6297 subBuilder.mergeFrom(fieldValues_); 6298 fieldValues_ = subBuilder.buildPartial(); 6299 } 6300 bitField0_ |= 0x00000008; 6301 break; 6302 } 6303 case 40: { 6304 bitField0_ |= 0x00000010; 6305 inherited_ = input.readBool(); 6306 break; 6307 } 6308 case 50: { 6309 com.google.protobuf.ByteString bs = input.readBytes(); 6310 bitField0_ |= 0x00000020; 6311 parentValue_ = bs; 6312 break; 6313 } 6314 case 58: { 6315 org.sonarqube.ws.Settings.Values.Builder subBuilder = null; 6316 if (((bitField0_ & 0x00000040) == 0x00000040)) { 6317 subBuilder = parentValues_.toBuilder(); 6318 } 6319 parentValues_ = input.readMessage(org.sonarqube.ws.Settings.Values.parser(), extensionRegistry); 6320 if (subBuilder != null) { 6321 subBuilder.mergeFrom(parentValues_); 6322 parentValues_ = subBuilder.buildPartial(); 6323 } 6324 bitField0_ |= 0x00000040; 6325 break; 6326 } 6327 case 66: { 6328 org.sonarqube.ws.Settings.FieldValues.Builder subBuilder = null; 6329 if (((bitField0_ & 0x00000080) == 0x00000080)) { 6330 subBuilder = parentFieldValues_.toBuilder(); 6331 } 6332 parentFieldValues_ = input.readMessage(org.sonarqube.ws.Settings.FieldValues.parser(), extensionRegistry); 6333 if (subBuilder != null) { 6334 subBuilder.mergeFrom(parentFieldValues_); 6335 parentFieldValues_ = subBuilder.buildPartial(); 6336 } 6337 bitField0_ |= 0x00000080; 6338 break; 6339 } 6340 } 6341 } 6342 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6343 throw new RuntimeException(e.setUnfinishedMessage(this)); 6344 } catch (java.io.IOException e) { 6345 throw new RuntimeException( 6346 new com.google.protobuf.InvalidProtocolBufferException( 6347 e.getMessage()).setUnfinishedMessage(this)); 6348 } finally { 6349 this.unknownFields = unknownFields.build(); 6350 makeExtensionsImmutable(); 6351 } 6352 } 6353 public static final com.google.protobuf.Descriptors.Descriptor 6354 getDescriptor() { 6355 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Setting_descriptor; 6356 } 6357 6358 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 6359 internalGetFieldAccessorTable() { 6360 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Setting_fieldAccessorTable 6361 .ensureFieldAccessorsInitialized( 6362 org.sonarqube.ws.Settings.Setting.class, org.sonarqube.ws.Settings.Setting.Builder.class); 6363 } 6364 6365 private int bitField0_; 6366 public static final int KEY_FIELD_NUMBER = 1; 6367 private volatile java.lang.Object key_; 6368 /** 6369 * <code>optional string key = 1;</code> 6370 */ 6371 public boolean hasKey() { 6372 return ((bitField0_ & 0x00000001) == 0x00000001); 6373 } 6374 /** 6375 * <code>optional string key = 1;</code> 6376 */ 6377 public java.lang.String getKey() { 6378 java.lang.Object ref = key_; 6379 if (ref instanceof java.lang.String) { 6380 return (java.lang.String) ref; 6381 } else { 6382 com.google.protobuf.ByteString bs = 6383 (com.google.protobuf.ByteString) ref; 6384 java.lang.String s = bs.toStringUtf8(); 6385 if (bs.isValidUtf8()) { 6386 key_ = s; 6387 } 6388 return s; 6389 } 6390 } 6391 /** 6392 * <code>optional string key = 1;</code> 6393 */ 6394 public com.google.protobuf.ByteString 6395 getKeyBytes() { 6396 java.lang.Object ref = key_; 6397 if (ref instanceof java.lang.String) { 6398 com.google.protobuf.ByteString b = 6399 com.google.protobuf.ByteString.copyFromUtf8( 6400 (java.lang.String) ref); 6401 key_ = b; 6402 return b; 6403 } else { 6404 return (com.google.protobuf.ByteString) ref; 6405 } 6406 } 6407 6408 public static final int VALUE_FIELD_NUMBER = 2; 6409 private volatile java.lang.Object value_; 6410 /** 6411 * <code>optional string value = 2;</code> 6412 */ 6413 public boolean hasValue() { 6414 return ((bitField0_ & 0x00000002) == 0x00000002); 6415 } 6416 /** 6417 * <code>optional string value = 2;</code> 6418 */ 6419 public java.lang.String getValue() { 6420 java.lang.Object ref = value_; 6421 if (ref instanceof java.lang.String) { 6422 return (java.lang.String) ref; 6423 } else { 6424 com.google.protobuf.ByteString bs = 6425 (com.google.protobuf.ByteString) ref; 6426 java.lang.String s = bs.toStringUtf8(); 6427 if (bs.isValidUtf8()) { 6428 value_ = s; 6429 } 6430 return s; 6431 } 6432 } 6433 /** 6434 * <code>optional string value = 2;</code> 6435 */ 6436 public com.google.protobuf.ByteString 6437 getValueBytes() { 6438 java.lang.Object ref = value_; 6439 if (ref instanceof java.lang.String) { 6440 com.google.protobuf.ByteString b = 6441 com.google.protobuf.ByteString.copyFromUtf8( 6442 (java.lang.String) ref); 6443 value_ = b; 6444 return b; 6445 } else { 6446 return (com.google.protobuf.ByteString) ref; 6447 } 6448 } 6449 6450 public static final int VALUES_FIELD_NUMBER = 3; 6451 private org.sonarqube.ws.Settings.Values values_; 6452 /** 6453 * <code>optional .sonarqube.ws.settings.Values values = 3;</code> 6454 */ 6455 public boolean hasValues() { 6456 return ((bitField0_ & 0x00000004) == 0x00000004); 6457 } 6458 /** 6459 * <code>optional .sonarqube.ws.settings.Values values = 3;</code> 6460 */ 6461 public org.sonarqube.ws.Settings.Values getValues() { 6462 return values_ == null ? org.sonarqube.ws.Settings.Values.getDefaultInstance() : values_; 6463 } 6464 /** 6465 * <code>optional .sonarqube.ws.settings.Values values = 3;</code> 6466 */ 6467 public org.sonarqube.ws.Settings.ValuesOrBuilder getValuesOrBuilder() { 6468 return values_ == null ? org.sonarqube.ws.Settings.Values.getDefaultInstance() : values_; 6469 } 6470 6471 public static final int FIELDVALUES_FIELD_NUMBER = 4; 6472 private org.sonarqube.ws.Settings.FieldValues fieldValues_; 6473 /** 6474 * <code>optional .sonarqube.ws.settings.FieldValues fieldValues = 4;</code> 6475 */ 6476 public boolean hasFieldValues() { 6477 return ((bitField0_ & 0x00000008) == 0x00000008); 6478 } 6479 /** 6480 * <code>optional .sonarqube.ws.settings.FieldValues fieldValues = 4;</code> 6481 */ 6482 public org.sonarqube.ws.Settings.FieldValues getFieldValues() { 6483 return fieldValues_ == null ? org.sonarqube.ws.Settings.FieldValues.getDefaultInstance() : fieldValues_; 6484 } 6485 /** 6486 * <code>optional .sonarqube.ws.settings.FieldValues fieldValues = 4;</code> 6487 */ 6488 public org.sonarqube.ws.Settings.FieldValuesOrBuilder getFieldValuesOrBuilder() { 6489 return fieldValues_ == null ? org.sonarqube.ws.Settings.FieldValues.getDefaultInstance() : fieldValues_; 6490 } 6491 6492 public static final int INHERITED_FIELD_NUMBER = 5; 6493 private boolean inherited_; 6494 /** 6495 * <code>optional bool inherited = 5;</code> 6496 */ 6497 public boolean hasInherited() { 6498 return ((bitField0_ & 0x00000010) == 0x00000010); 6499 } 6500 /** 6501 * <code>optional bool inherited = 5;</code> 6502 */ 6503 public boolean getInherited() { 6504 return inherited_; 6505 } 6506 6507 public static final int PARENTVALUE_FIELD_NUMBER = 6; 6508 private volatile java.lang.Object parentValue_; 6509 /** 6510 * <code>optional string parentValue = 6;</code> 6511 */ 6512 public boolean hasParentValue() { 6513 return ((bitField0_ & 0x00000020) == 0x00000020); 6514 } 6515 /** 6516 * <code>optional string parentValue = 6;</code> 6517 */ 6518 public java.lang.String getParentValue() { 6519 java.lang.Object ref = parentValue_; 6520 if (ref instanceof java.lang.String) { 6521 return (java.lang.String) ref; 6522 } else { 6523 com.google.protobuf.ByteString bs = 6524 (com.google.protobuf.ByteString) ref; 6525 java.lang.String s = bs.toStringUtf8(); 6526 if (bs.isValidUtf8()) { 6527 parentValue_ = s; 6528 } 6529 return s; 6530 } 6531 } 6532 /** 6533 * <code>optional string parentValue = 6;</code> 6534 */ 6535 public com.google.protobuf.ByteString 6536 getParentValueBytes() { 6537 java.lang.Object ref = parentValue_; 6538 if (ref instanceof java.lang.String) { 6539 com.google.protobuf.ByteString b = 6540 com.google.protobuf.ByteString.copyFromUtf8( 6541 (java.lang.String) ref); 6542 parentValue_ = b; 6543 return b; 6544 } else { 6545 return (com.google.protobuf.ByteString) ref; 6546 } 6547 } 6548 6549 public static final int PARENTVALUES_FIELD_NUMBER = 7; 6550 private org.sonarqube.ws.Settings.Values parentValues_; 6551 /** 6552 * <code>optional .sonarqube.ws.settings.Values parentValues = 7;</code> 6553 */ 6554 public boolean hasParentValues() { 6555 return ((bitField0_ & 0x00000040) == 0x00000040); 6556 } 6557 /** 6558 * <code>optional .sonarqube.ws.settings.Values parentValues = 7;</code> 6559 */ 6560 public org.sonarqube.ws.Settings.Values getParentValues() { 6561 return parentValues_ == null ? org.sonarqube.ws.Settings.Values.getDefaultInstance() : parentValues_; 6562 } 6563 /** 6564 * <code>optional .sonarqube.ws.settings.Values parentValues = 7;</code> 6565 */ 6566 public org.sonarqube.ws.Settings.ValuesOrBuilder getParentValuesOrBuilder() { 6567 return parentValues_ == null ? org.sonarqube.ws.Settings.Values.getDefaultInstance() : parentValues_; 6568 } 6569 6570 public static final int PARENTFIELDVALUES_FIELD_NUMBER = 8; 6571 private org.sonarqube.ws.Settings.FieldValues parentFieldValues_; 6572 /** 6573 * <code>optional .sonarqube.ws.settings.FieldValues parentFieldValues = 8;</code> 6574 */ 6575 public boolean hasParentFieldValues() { 6576 return ((bitField0_ & 0x00000080) == 0x00000080); 6577 } 6578 /** 6579 * <code>optional .sonarqube.ws.settings.FieldValues parentFieldValues = 8;</code> 6580 */ 6581 public org.sonarqube.ws.Settings.FieldValues getParentFieldValues() { 6582 return parentFieldValues_ == null ? org.sonarqube.ws.Settings.FieldValues.getDefaultInstance() : parentFieldValues_; 6583 } 6584 /** 6585 * <code>optional .sonarqube.ws.settings.FieldValues parentFieldValues = 8;</code> 6586 */ 6587 public org.sonarqube.ws.Settings.FieldValuesOrBuilder getParentFieldValuesOrBuilder() { 6588 return parentFieldValues_ == null ? org.sonarqube.ws.Settings.FieldValues.getDefaultInstance() : parentFieldValues_; 6589 } 6590 6591 private byte memoizedIsInitialized = -1; 6592 public final boolean isInitialized() { 6593 byte isInitialized = memoizedIsInitialized; 6594 if (isInitialized == 1) return true; 6595 if (isInitialized == 0) return false; 6596 6597 memoizedIsInitialized = 1; 6598 return true; 6599 } 6600 6601 public void writeTo(com.google.protobuf.CodedOutputStream output) 6602 throws java.io.IOException { 6603 if (((bitField0_ & 0x00000001) == 0x00000001)) { 6604 com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); 6605 } 6606 if (((bitField0_ & 0x00000002) == 0x00000002)) { 6607 com.google.protobuf.GeneratedMessage.writeString(output, 2, value_); 6608 } 6609 if (((bitField0_ & 0x00000004) == 0x00000004)) { 6610 output.writeMessage(3, getValues()); 6611 } 6612 if (((bitField0_ & 0x00000008) == 0x00000008)) { 6613 output.writeMessage(4, getFieldValues()); 6614 } 6615 if (((bitField0_ & 0x00000010) == 0x00000010)) { 6616 output.writeBool(5, inherited_); 6617 } 6618 if (((bitField0_ & 0x00000020) == 0x00000020)) { 6619 com.google.protobuf.GeneratedMessage.writeString(output, 6, parentValue_); 6620 } 6621 if (((bitField0_ & 0x00000040) == 0x00000040)) { 6622 output.writeMessage(7, getParentValues()); 6623 } 6624 if (((bitField0_ & 0x00000080) == 0x00000080)) { 6625 output.writeMessage(8, getParentFieldValues()); 6626 } 6627 unknownFields.writeTo(output); 6628 } 6629 6630 public int getSerializedSize() { 6631 int size = memoizedSize; 6632 if (size != -1) return size; 6633 6634 size = 0; 6635 if (((bitField0_ & 0x00000001) == 0x00000001)) { 6636 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); 6637 } 6638 if (((bitField0_ & 0x00000002) == 0x00000002)) { 6639 size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_); 6640 } 6641 if (((bitField0_ & 0x00000004) == 0x00000004)) { 6642 size += com.google.protobuf.CodedOutputStream 6643 .computeMessageSize(3, getValues()); 6644 } 6645 if (((bitField0_ & 0x00000008) == 0x00000008)) { 6646 size += com.google.protobuf.CodedOutputStream 6647 .computeMessageSize(4, getFieldValues()); 6648 } 6649 if (((bitField0_ & 0x00000010) == 0x00000010)) { 6650 size += com.google.protobuf.CodedOutputStream 6651 .computeBoolSize(5, inherited_); 6652 } 6653 if (((bitField0_ & 0x00000020) == 0x00000020)) { 6654 size += com.google.protobuf.GeneratedMessage.computeStringSize(6, parentValue_); 6655 } 6656 if (((bitField0_ & 0x00000040) == 0x00000040)) { 6657 size += com.google.protobuf.CodedOutputStream 6658 .computeMessageSize(7, getParentValues()); 6659 } 6660 if (((bitField0_ & 0x00000080) == 0x00000080)) { 6661 size += com.google.protobuf.CodedOutputStream 6662 .computeMessageSize(8, getParentFieldValues()); 6663 } 6664 size += unknownFields.getSerializedSize(); 6665 memoizedSize = size; 6666 return size; 6667 } 6668 6669 private static final long serialVersionUID = 0L; 6670 public static org.sonarqube.ws.Settings.Setting parseFrom( 6671 com.google.protobuf.ByteString data) 6672 throws com.google.protobuf.InvalidProtocolBufferException { 6673 return PARSER.parseFrom(data); 6674 } 6675 public static org.sonarqube.ws.Settings.Setting parseFrom( 6676 com.google.protobuf.ByteString data, 6677 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6678 throws com.google.protobuf.InvalidProtocolBufferException { 6679 return PARSER.parseFrom(data, extensionRegistry); 6680 } 6681 public static org.sonarqube.ws.Settings.Setting parseFrom(byte[] data) 6682 throws com.google.protobuf.InvalidProtocolBufferException { 6683 return PARSER.parseFrom(data); 6684 } 6685 public static org.sonarqube.ws.Settings.Setting parseFrom( 6686 byte[] data, 6687 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6688 throws com.google.protobuf.InvalidProtocolBufferException { 6689 return PARSER.parseFrom(data, extensionRegistry); 6690 } 6691 public static org.sonarqube.ws.Settings.Setting parseFrom(java.io.InputStream input) 6692 throws java.io.IOException { 6693 return PARSER.parseFrom(input); 6694 } 6695 public static org.sonarqube.ws.Settings.Setting parseFrom( 6696 java.io.InputStream input, 6697 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6698 throws java.io.IOException { 6699 return PARSER.parseFrom(input, extensionRegistry); 6700 } 6701 public static org.sonarqube.ws.Settings.Setting parseDelimitedFrom(java.io.InputStream input) 6702 throws java.io.IOException { 6703 return PARSER.parseDelimitedFrom(input); 6704 } 6705 public static org.sonarqube.ws.Settings.Setting parseDelimitedFrom( 6706 java.io.InputStream input, 6707 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6708 throws java.io.IOException { 6709 return PARSER.parseDelimitedFrom(input, extensionRegistry); 6710 } 6711 public static org.sonarqube.ws.Settings.Setting parseFrom( 6712 com.google.protobuf.CodedInputStream input) 6713 throws java.io.IOException { 6714 return PARSER.parseFrom(input); 6715 } 6716 public static org.sonarqube.ws.Settings.Setting parseFrom( 6717 com.google.protobuf.CodedInputStream input, 6718 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6719 throws java.io.IOException { 6720 return PARSER.parseFrom(input, extensionRegistry); 6721 } 6722 6723 public Builder newBuilderForType() { return newBuilder(); } 6724 public static Builder newBuilder() { 6725 return DEFAULT_INSTANCE.toBuilder(); 6726 } 6727 public static Builder newBuilder(org.sonarqube.ws.Settings.Setting prototype) { 6728 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 6729 } 6730 public Builder toBuilder() { 6731 return this == DEFAULT_INSTANCE 6732 ? new Builder() : new Builder().mergeFrom(this); 6733 } 6734 6735 @java.lang.Override 6736 protected Builder newBuilderForType( 6737 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 6738 Builder builder = new Builder(parent); 6739 return builder; 6740 } 6741 /** 6742 * Protobuf type {@code sonarqube.ws.settings.Setting} 6743 */ 6744 public static final class Builder extends 6745 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 6746 // @@protoc_insertion_point(builder_implements:sonarqube.ws.settings.Setting) 6747 org.sonarqube.ws.Settings.SettingOrBuilder { 6748 public static final com.google.protobuf.Descriptors.Descriptor 6749 getDescriptor() { 6750 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Setting_descriptor; 6751 } 6752 6753 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 6754 internalGetFieldAccessorTable() { 6755 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Setting_fieldAccessorTable 6756 .ensureFieldAccessorsInitialized( 6757 org.sonarqube.ws.Settings.Setting.class, org.sonarqube.ws.Settings.Setting.Builder.class); 6758 } 6759 6760 // Construct using org.sonarqube.ws.Settings.Setting.newBuilder() 6761 private Builder() { 6762 maybeForceBuilderInitialization(); 6763 } 6764 6765 private Builder( 6766 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 6767 super(parent); 6768 maybeForceBuilderInitialization(); 6769 } 6770 private void maybeForceBuilderInitialization() { 6771 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 6772 getValuesFieldBuilder(); 6773 getFieldValuesFieldBuilder(); 6774 getParentValuesFieldBuilder(); 6775 getParentFieldValuesFieldBuilder(); 6776 } 6777 } 6778 public Builder clear() { 6779 super.clear(); 6780 key_ = ""; 6781 bitField0_ = (bitField0_ & ~0x00000001); 6782 value_ = ""; 6783 bitField0_ = (bitField0_ & ~0x00000002); 6784 if (valuesBuilder_ == null) { 6785 values_ = null; 6786 } else { 6787 valuesBuilder_.clear(); 6788 } 6789 bitField0_ = (bitField0_ & ~0x00000004); 6790 if (fieldValuesBuilder_ == null) { 6791 fieldValues_ = null; 6792 } else { 6793 fieldValuesBuilder_.clear(); 6794 } 6795 bitField0_ = (bitField0_ & ~0x00000008); 6796 inherited_ = false; 6797 bitField0_ = (bitField0_ & ~0x00000010); 6798 parentValue_ = ""; 6799 bitField0_ = (bitField0_ & ~0x00000020); 6800 if (parentValuesBuilder_ == null) { 6801 parentValues_ = null; 6802 } else { 6803 parentValuesBuilder_.clear(); 6804 } 6805 bitField0_ = (bitField0_ & ~0x00000040); 6806 if (parentFieldValuesBuilder_ == null) { 6807 parentFieldValues_ = null; 6808 } else { 6809 parentFieldValuesBuilder_.clear(); 6810 } 6811 bitField0_ = (bitField0_ & ~0x00000080); 6812 return this; 6813 } 6814 6815 public com.google.protobuf.Descriptors.Descriptor 6816 getDescriptorForType() { 6817 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Setting_descriptor; 6818 } 6819 6820 public org.sonarqube.ws.Settings.Setting getDefaultInstanceForType() { 6821 return org.sonarqube.ws.Settings.Setting.getDefaultInstance(); 6822 } 6823 6824 public org.sonarqube.ws.Settings.Setting build() { 6825 org.sonarqube.ws.Settings.Setting result = buildPartial(); 6826 if (!result.isInitialized()) { 6827 throw newUninitializedMessageException(result); 6828 } 6829 return result; 6830 } 6831 6832 public org.sonarqube.ws.Settings.Setting buildPartial() { 6833 org.sonarqube.ws.Settings.Setting result = new org.sonarqube.ws.Settings.Setting(this); 6834 int from_bitField0_ = bitField0_; 6835 int to_bitField0_ = 0; 6836 if (((from_bitField0_ & 0x00000001) == 0x00000001)) { 6837 to_bitField0_ |= 0x00000001; 6838 } 6839 result.key_ = key_; 6840 if (((from_bitField0_ & 0x00000002) == 0x00000002)) { 6841 to_bitField0_ |= 0x00000002; 6842 } 6843 result.value_ = value_; 6844 if (((from_bitField0_ & 0x00000004) == 0x00000004)) { 6845 to_bitField0_ |= 0x00000004; 6846 } 6847 if (valuesBuilder_ == null) { 6848 result.values_ = values_; 6849 } else { 6850 result.values_ = valuesBuilder_.build(); 6851 } 6852 if (((from_bitField0_ & 0x00000008) == 0x00000008)) { 6853 to_bitField0_ |= 0x00000008; 6854 } 6855 if (fieldValuesBuilder_ == null) { 6856 result.fieldValues_ = fieldValues_; 6857 } else { 6858 result.fieldValues_ = fieldValuesBuilder_.build(); 6859 } 6860 if (((from_bitField0_ & 0x00000010) == 0x00000010)) { 6861 to_bitField0_ |= 0x00000010; 6862 } 6863 result.inherited_ = inherited_; 6864 if (((from_bitField0_ & 0x00000020) == 0x00000020)) { 6865 to_bitField0_ |= 0x00000020; 6866 } 6867 result.parentValue_ = parentValue_; 6868 if (((from_bitField0_ & 0x00000040) == 0x00000040)) { 6869 to_bitField0_ |= 0x00000040; 6870 } 6871 if (parentValuesBuilder_ == null) { 6872 result.parentValues_ = parentValues_; 6873 } else { 6874 result.parentValues_ = parentValuesBuilder_.build(); 6875 } 6876 if (((from_bitField0_ & 0x00000080) == 0x00000080)) { 6877 to_bitField0_ |= 0x00000080; 6878 } 6879 if (parentFieldValuesBuilder_ == null) { 6880 result.parentFieldValues_ = parentFieldValues_; 6881 } else { 6882 result.parentFieldValues_ = parentFieldValuesBuilder_.build(); 6883 } 6884 result.bitField0_ = to_bitField0_; 6885 onBuilt(); 6886 return result; 6887 } 6888 6889 public Builder mergeFrom(com.google.protobuf.Message other) { 6890 if (other instanceof org.sonarqube.ws.Settings.Setting) { 6891 return mergeFrom((org.sonarqube.ws.Settings.Setting)other); 6892 } else { 6893 super.mergeFrom(other); 6894 return this; 6895 } 6896 } 6897 6898 public Builder mergeFrom(org.sonarqube.ws.Settings.Setting other) { 6899 if (other == org.sonarqube.ws.Settings.Setting.getDefaultInstance()) return this; 6900 if (other.hasKey()) { 6901 bitField0_ |= 0x00000001; 6902 key_ = other.key_; 6903 onChanged(); 6904 } 6905 if (other.hasValue()) { 6906 bitField0_ |= 0x00000002; 6907 value_ = other.value_; 6908 onChanged(); 6909 } 6910 if (other.hasValues()) { 6911 mergeValues(other.getValues()); 6912 } 6913 if (other.hasFieldValues()) { 6914 mergeFieldValues(other.getFieldValues()); 6915 } 6916 if (other.hasInherited()) { 6917 setInherited(other.getInherited()); 6918 } 6919 if (other.hasParentValue()) { 6920 bitField0_ |= 0x00000020; 6921 parentValue_ = other.parentValue_; 6922 onChanged(); 6923 } 6924 if (other.hasParentValues()) { 6925 mergeParentValues(other.getParentValues()); 6926 } 6927 if (other.hasParentFieldValues()) { 6928 mergeParentFieldValues(other.getParentFieldValues()); 6929 } 6930 this.mergeUnknownFields(other.unknownFields); 6931 onChanged(); 6932 return this; 6933 } 6934 6935 public final boolean isInitialized() { 6936 return true; 6937 } 6938 6939 public Builder mergeFrom( 6940 com.google.protobuf.CodedInputStream input, 6941 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 6942 throws java.io.IOException { 6943 org.sonarqube.ws.Settings.Setting parsedMessage = null; 6944 try { 6945 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 6946 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 6947 parsedMessage = (org.sonarqube.ws.Settings.Setting) e.getUnfinishedMessage(); 6948 throw e; 6949 } finally { 6950 if (parsedMessage != null) { 6951 mergeFrom(parsedMessage); 6952 } 6953 } 6954 return this; 6955 } 6956 private int bitField0_; 6957 6958 private java.lang.Object key_ = ""; 6959 /** 6960 * <code>optional string key = 1;</code> 6961 */ 6962 public boolean hasKey() { 6963 return ((bitField0_ & 0x00000001) == 0x00000001); 6964 } 6965 /** 6966 * <code>optional string key = 1;</code> 6967 */ 6968 public java.lang.String getKey() { 6969 java.lang.Object ref = key_; 6970 if (!(ref instanceof java.lang.String)) { 6971 com.google.protobuf.ByteString bs = 6972 (com.google.protobuf.ByteString) ref; 6973 java.lang.String s = bs.toStringUtf8(); 6974 if (bs.isValidUtf8()) { 6975 key_ = s; 6976 } 6977 return s; 6978 } else { 6979 return (java.lang.String) ref; 6980 } 6981 } 6982 /** 6983 * <code>optional string key = 1;</code> 6984 */ 6985 public com.google.protobuf.ByteString 6986 getKeyBytes() { 6987 java.lang.Object ref = key_; 6988 if (ref instanceof String) { 6989 com.google.protobuf.ByteString b = 6990 com.google.protobuf.ByteString.copyFromUtf8( 6991 (java.lang.String) ref); 6992 key_ = b; 6993 return b; 6994 } else { 6995 return (com.google.protobuf.ByteString) ref; 6996 } 6997 } 6998 /** 6999 * <code>optional string key = 1;</code> 7000 */ 7001 public Builder setKey( 7002 java.lang.String value) { 7003 if (value == null) { 7004 throw new NullPointerException(); 7005 } 7006 bitField0_ |= 0x00000001; 7007 key_ = value; 7008 onChanged(); 7009 return this; 7010 } 7011 /** 7012 * <code>optional string key = 1;</code> 7013 */ 7014 public Builder clearKey() { 7015 bitField0_ = (bitField0_ & ~0x00000001); 7016 key_ = getDefaultInstance().getKey(); 7017 onChanged(); 7018 return this; 7019 } 7020 /** 7021 * <code>optional string key = 1;</code> 7022 */ 7023 public Builder setKeyBytes( 7024 com.google.protobuf.ByteString value) { 7025 if (value == null) { 7026 throw new NullPointerException(); 7027 } 7028 bitField0_ |= 0x00000001; 7029 key_ = value; 7030 onChanged(); 7031 return this; 7032 } 7033 7034 private java.lang.Object value_ = ""; 7035 /** 7036 * <code>optional string value = 2;</code> 7037 */ 7038 public boolean hasValue() { 7039 return ((bitField0_ & 0x00000002) == 0x00000002); 7040 } 7041 /** 7042 * <code>optional string value = 2;</code> 7043 */ 7044 public java.lang.String getValue() { 7045 java.lang.Object ref = value_; 7046 if (!(ref instanceof java.lang.String)) { 7047 com.google.protobuf.ByteString bs = 7048 (com.google.protobuf.ByteString) ref; 7049 java.lang.String s = bs.toStringUtf8(); 7050 if (bs.isValidUtf8()) { 7051 value_ = s; 7052 } 7053 return s; 7054 } else { 7055 return (java.lang.String) ref; 7056 } 7057 } 7058 /** 7059 * <code>optional string value = 2;</code> 7060 */ 7061 public com.google.protobuf.ByteString 7062 getValueBytes() { 7063 java.lang.Object ref = value_; 7064 if (ref instanceof String) { 7065 com.google.protobuf.ByteString b = 7066 com.google.protobuf.ByteString.copyFromUtf8( 7067 (java.lang.String) ref); 7068 value_ = b; 7069 return b; 7070 } else { 7071 return (com.google.protobuf.ByteString) ref; 7072 } 7073 } 7074 /** 7075 * <code>optional string value = 2;</code> 7076 */ 7077 public Builder setValue( 7078 java.lang.String value) { 7079 if (value == null) { 7080 throw new NullPointerException(); 7081 } 7082 bitField0_ |= 0x00000002; 7083 value_ = value; 7084 onChanged(); 7085 return this; 7086 } 7087 /** 7088 * <code>optional string value = 2;</code> 7089 */ 7090 public Builder clearValue() { 7091 bitField0_ = (bitField0_ & ~0x00000002); 7092 value_ = getDefaultInstance().getValue(); 7093 onChanged(); 7094 return this; 7095 } 7096 /** 7097 * <code>optional string value = 2;</code> 7098 */ 7099 public Builder setValueBytes( 7100 com.google.protobuf.ByteString value) { 7101 if (value == null) { 7102 throw new NullPointerException(); 7103 } 7104 bitField0_ |= 0x00000002; 7105 value_ = value; 7106 onChanged(); 7107 return this; 7108 } 7109 7110 private org.sonarqube.ws.Settings.Values values_ = null; 7111 private com.google.protobuf.SingleFieldBuilder< 7112 org.sonarqube.ws.Settings.Values, org.sonarqube.ws.Settings.Values.Builder, org.sonarqube.ws.Settings.ValuesOrBuilder> valuesBuilder_; 7113 /** 7114 * <code>optional .sonarqube.ws.settings.Values values = 3;</code> 7115 */ 7116 public boolean hasValues() { 7117 return ((bitField0_ & 0x00000004) == 0x00000004); 7118 } 7119 /** 7120 * <code>optional .sonarqube.ws.settings.Values values = 3;</code> 7121 */ 7122 public org.sonarqube.ws.Settings.Values getValues() { 7123 if (valuesBuilder_ == null) { 7124 return values_ == null ? org.sonarqube.ws.Settings.Values.getDefaultInstance() : values_; 7125 } else { 7126 return valuesBuilder_.getMessage(); 7127 } 7128 } 7129 /** 7130 * <code>optional .sonarqube.ws.settings.Values values = 3;</code> 7131 */ 7132 public Builder setValues(org.sonarqube.ws.Settings.Values value) { 7133 if (valuesBuilder_ == null) { 7134 if (value == null) { 7135 throw new NullPointerException(); 7136 } 7137 values_ = value; 7138 onChanged(); 7139 } else { 7140 valuesBuilder_.setMessage(value); 7141 } 7142 bitField0_ |= 0x00000004; 7143 return this; 7144 } 7145 /** 7146 * <code>optional .sonarqube.ws.settings.Values values = 3;</code> 7147 */ 7148 public Builder setValues( 7149 org.sonarqube.ws.Settings.Values.Builder builderForValue) { 7150 if (valuesBuilder_ == null) { 7151 values_ = builderForValue.build(); 7152 onChanged(); 7153 } else { 7154 valuesBuilder_.setMessage(builderForValue.build()); 7155 } 7156 bitField0_ |= 0x00000004; 7157 return this; 7158 } 7159 /** 7160 * <code>optional .sonarqube.ws.settings.Values values = 3;</code> 7161 */ 7162 public Builder mergeValues(org.sonarqube.ws.Settings.Values value) { 7163 if (valuesBuilder_ == null) { 7164 if (((bitField0_ & 0x00000004) == 0x00000004) && 7165 values_ != null && 7166 values_ != org.sonarqube.ws.Settings.Values.getDefaultInstance()) { 7167 values_ = 7168 org.sonarqube.ws.Settings.Values.newBuilder(values_).mergeFrom(value).buildPartial(); 7169 } else { 7170 values_ = value; 7171 } 7172 onChanged(); 7173 } else { 7174 valuesBuilder_.mergeFrom(value); 7175 } 7176 bitField0_ |= 0x00000004; 7177 return this; 7178 } 7179 /** 7180 * <code>optional .sonarqube.ws.settings.Values values = 3;</code> 7181 */ 7182 public Builder clearValues() { 7183 if (valuesBuilder_ == null) { 7184 values_ = null; 7185 onChanged(); 7186 } else { 7187 valuesBuilder_.clear(); 7188 } 7189 bitField0_ = (bitField0_ & ~0x00000004); 7190 return this; 7191 } 7192 /** 7193 * <code>optional .sonarqube.ws.settings.Values values = 3;</code> 7194 */ 7195 public org.sonarqube.ws.Settings.Values.Builder getValuesBuilder() { 7196 bitField0_ |= 0x00000004; 7197 onChanged(); 7198 return getValuesFieldBuilder().getBuilder(); 7199 } 7200 /** 7201 * <code>optional .sonarqube.ws.settings.Values values = 3;</code> 7202 */ 7203 public org.sonarqube.ws.Settings.ValuesOrBuilder getValuesOrBuilder() { 7204 if (valuesBuilder_ != null) { 7205 return valuesBuilder_.getMessageOrBuilder(); 7206 } else { 7207 return values_ == null ? 7208 org.sonarqube.ws.Settings.Values.getDefaultInstance() : values_; 7209 } 7210 } 7211 /** 7212 * <code>optional .sonarqube.ws.settings.Values values = 3;</code> 7213 */ 7214 private com.google.protobuf.SingleFieldBuilder< 7215 org.sonarqube.ws.Settings.Values, org.sonarqube.ws.Settings.Values.Builder, org.sonarqube.ws.Settings.ValuesOrBuilder> 7216 getValuesFieldBuilder() { 7217 if (valuesBuilder_ == null) { 7218 valuesBuilder_ = new com.google.protobuf.SingleFieldBuilder< 7219 org.sonarqube.ws.Settings.Values, org.sonarqube.ws.Settings.Values.Builder, org.sonarqube.ws.Settings.ValuesOrBuilder>( 7220 getValues(), 7221 getParentForChildren(), 7222 isClean()); 7223 values_ = null; 7224 } 7225 return valuesBuilder_; 7226 } 7227 7228 private org.sonarqube.ws.Settings.FieldValues fieldValues_ = null; 7229 private com.google.protobuf.SingleFieldBuilder< 7230 org.sonarqube.ws.Settings.FieldValues, org.sonarqube.ws.Settings.FieldValues.Builder, org.sonarqube.ws.Settings.FieldValuesOrBuilder> fieldValuesBuilder_; 7231 /** 7232 * <code>optional .sonarqube.ws.settings.FieldValues fieldValues = 4;</code> 7233 */ 7234 public boolean hasFieldValues() { 7235 return ((bitField0_ & 0x00000008) == 0x00000008); 7236 } 7237 /** 7238 * <code>optional .sonarqube.ws.settings.FieldValues fieldValues = 4;</code> 7239 */ 7240 public org.sonarqube.ws.Settings.FieldValues getFieldValues() { 7241 if (fieldValuesBuilder_ == null) { 7242 return fieldValues_ == null ? org.sonarqube.ws.Settings.FieldValues.getDefaultInstance() : fieldValues_; 7243 } else { 7244 return fieldValuesBuilder_.getMessage(); 7245 } 7246 } 7247 /** 7248 * <code>optional .sonarqube.ws.settings.FieldValues fieldValues = 4;</code> 7249 */ 7250 public Builder setFieldValues(org.sonarqube.ws.Settings.FieldValues value) { 7251 if (fieldValuesBuilder_ == null) { 7252 if (value == null) { 7253 throw new NullPointerException(); 7254 } 7255 fieldValues_ = value; 7256 onChanged(); 7257 } else { 7258 fieldValuesBuilder_.setMessage(value); 7259 } 7260 bitField0_ |= 0x00000008; 7261 return this; 7262 } 7263 /** 7264 * <code>optional .sonarqube.ws.settings.FieldValues fieldValues = 4;</code> 7265 */ 7266 public Builder setFieldValues( 7267 org.sonarqube.ws.Settings.FieldValues.Builder builderForValue) { 7268 if (fieldValuesBuilder_ == null) { 7269 fieldValues_ = builderForValue.build(); 7270 onChanged(); 7271 } else { 7272 fieldValuesBuilder_.setMessage(builderForValue.build()); 7273 } 7274 bitField0_ |= 0x00000008; 7275 return this; 7276 } 7277 /** 7278 * <code>optional .sonarqube.ws.settings.FieldValues fieldValues = 4;</code> 7279 */ 7280 public Builder mergeFieldValues(org.sonarqube.ws.Settings.FieldValues value) { 7281 if (fieldValuesBuilder_ == null) { 7282 if (((bitField0_ & 0x00000008) == 0x00000008) && 7283 fieldValues_ != null && 7284 fieldValues_ != org.sonarqube.ws.Settings.FieldValues.getDefaultInstance()) { 7285 fieldValues_ = 7286 org.sonarqube.ws.Settings.FieldValues.newBuilder(fieldValues_).mergeFrom(value).buildPartial(); 7287 } else { 7288 fieldValues_ = value; 7289 } 7290 onChanged(); 7291 } else { 7292 fieldValuesBuilder_.mergeFrom(value); 7293 } 7294 bitField0_ |= 0x00000008; 7295 return this; 7296 } 7297 /** 7298 * <code>optional .sonarqube.ws.settings.FieldValues fieldValues = 4;</code> 7299 */ 7300 public Builder clearFieldValues() { 7301 if (fieldValuesBuilder_ == null) { 7302 fieldValues_ = null; 7303 onChanged(); 7304 } else { 7305 fieldValuesBuilder_.clear(); 7306 } 7307 bitField0_ = (bitField0_ & ~0x00000008); 7308 return this; 7309 } 7310 /** 7311 * <code>optional .sonarqube.ws.settings.FieldValues fieldValues = 4;</code> 7312 */ 7313 public org.sonarqube.ws.Settings.FieldValues.Builder getFieldValuesBuilder() { 7314 bitField0_ |= 0x00000008; 7315 onChanged(); 7316 return getFieldValuesFieldBuilder().getBuilder(); 7317 } 7318 /** 7319 * <code>optional .sonarqube.ws.settings.FieldValues fieldValues = 4;</code> 7320 */ 7321 public org.sonarqube.ws.Settings.FieldValuesOrBuilder getFieldValuesOrBuilder() { 7322 if (fieldValuesBuilder_ != null) { 7323 return fieldValuesBuilder_.getMessageOrBuilder(); 7324 } else { 7325 return fieldValues_ == null ? 7326 org.sonarqube.ws.Settings.FieldValues.getDefaultInstance() : fieldValues_; 7327 } 7328 } 7329 /** 7330 * <code>optional .sonarqube.ws.settings.FieldValues fieldValues = 4;</code> 7331 */ 7332 private com.google.protobuf.SingleFieldBuilder< 7333 org.sonarqube.ws.Settings.FieldValues, org.sonarqube.ws.Settings.FieldValues.Builder, org.sonarqube.ws.Settings.FieldValuesOrBuilder> 7334 getFieldValuesFieldBuilder() { 7335 if (fieldValuesBuilder_ == null) { 7336 fieldValuesBuilder_ = new com.google.protobuf.SingleFieldBuilder< 7337 org.sonarqube.ws.Settings.FieldValues, org.sonarqube.ws.Settings.FieldValues.Builder, org.sonarqube.ws.Settings.FieldValuesOrBuilder>( 7338 getFieldValues(), 7339 getParentForChildren(), 7340 isClean()); 7341 fieldValues_ = null; 7342 } 7343 return fieldValuesBuilder_; 7344 } 7345 7346 private boolean inherited_ ; 7347 /** 7348 * <code>optional bool inherited = 5;</code> 7349 */ 7350 public boolean hasInherited() { 7351 return ((bitField0_ & 0x00000010) == 0x00000010); 7352 } 7353 /** 7354 * <code>optional bool inherited = 5;</code> 7355 */ 7356 public boolean getInherited() { 7357 return inherited_; 7358 } 7359 /** 7360 * <code>optional bool inherited = 5;</code> 7361 */ 7362 public Builder setInherited(boolean value) { 7363 bitField0_ |= 0x00000010; 7364 inherited_ = value; 7365 onChanged(); 7366 return this; 7367 } 7368 /** 7369 * <code>optional bool inherited = 5;</code> 7370 */ 7371 public Builder clearInherited() { 7372 bitField0_ = (bitField0_ & ~0x00000010); 7373 inherited_ = false; 7374 onChanged(); 7375 return this; 7376 } 7377 7378 private java.lang.Object parentValue_ = ""; 7379 /** 7380 * <code>optional string parentValue = 6;</code> 7381 */ 7382 public boolean hasParentValue() { 7383 return ((bitField0_ & 0x00000020) == 0x00000020); 7384 } 7385 /** 7386 * <code>optional string parentValue = 6;</code> 7387 */ 7388 public java.lang.String getParentValue() { 7389 java.lang.Object ref = parentValue_; 7390 if (!(ref instanceof java.lang.String)) { 7391 com.google.protobuf.ByteString bs = 7392 (com.google.protobuf.ByteString) ref; 7393 java.lang.String s = bs.toStringUtf8(); 7394 if (bs.isValidUtf8()) { 7395 parentValue_ = s; 7396 } 7397 return s; 7398 } else { 7399 return (java.lang.String) ref; 7400 } 7401 } 7402 /** 7403 * <code>optional string parentValue = 6;</code> 7404 */ 7405 public com.google.protobuf.ByteString 7406 getParentValueBytes() { 7407 java.lang.Object ref = parentValue_; 7408 if (ref instanceof String) { 7409 com.google.protobuf.ByteString b = 7410 com.google.protobuf.ByteString.copyFromUtf8( 7411 (java.lang.String) ref); 7412 parentValue_ = b; 7413 return b; 7414 } else { 7415 return (com.google.protobuf.ByteString) ref; 7416 } 7417 } 7418 /** 7419 * <code>optional string parentValue = 6;</code> 7420 */ 7421 public Builder setParentValue( 7422 java.lang.String value) { 7423 if (value == null) { 7424 throw new NullPointerException(); 7425 } 7426 bitField0_ |= 0x00000020; 7427 parentValue_ = value; 7428 onChanged(); 7429 return this; 7430 } 7431 /** 7432 * <code>optional string parentValue = 6;</code> 7433 */ 7434 public Builder clearParentValue() { 7435 bitField0_ = (bitField0_ & ~0x00000020); 7436 parentValue_ = getDefaultInstance().getParentValue(); 7437 onChanged(); 7438 return this; 7439 } 7440 /** 7441 * <code>optional string parentValue = 6;</code> 7442 */ 7443 public Builder setParentValueBytes( 7444 com.google.protobuf.ByteString value) { 7445 if (value == null) { 7446 throw new NullPointerException(); 7447 } 7448 bitField0_ |= 0x00000020; 7449 parentValue_ = value; 7450 onChanged(); 7451 return this; 7452 } 7453 7454 private org.sonarqube.ws.Settings.Values parentValues_ = null; 7455 private com.google.protobuf.SingleFieldBuilder< 7456 org.sonarqube.ws.Settings.Values, org.sonarqube.ws.Settings.Values.Builder, org.sonarqube.ws.Settings.ValuesOrBuilder> parentValuesBuilder_; 7457 /** 7458 * <code>optional .sonarqube.ws.settings.Values parentValues = 7;</code> 7459 */ 7460 public boolean hasParentValues() { 7461 return ((bitField0_ & 0x00000040) == 0x00000040); 7462 } 7463 /** 7464 * <code>optional .sonarqube.ws.settings.Values parentValues = 7;</code> 7465 */ 7466 public org.sonarqube.ws.Settings.Values getParentValues() { 7467 if (parentValuesBuilder_ == null) { 7468 return parentValues_ == null ? org.sonarqube.ws.Settings.Values.getDefaultInstance() : parentValues_; 7469 } else { 7470 return parentValuesBuilder_.getMessage(); 7471 } 7472 } 7473 /** 7474 * <code>optional .sonarqube.ws.settings.Values parentValues = 7;</code> 7475 */ 7476 public Builder setParentValues(org.sonarqube.ws.Settings.Values value) { 7477 if (parentValuesBuilder_ == null) { 7478 if (value == null) { 7479 throw new NullPointerException(); 7480 } 7481 parentValues_ = value; 7482 onChanged(); 7483 } else { 7484 parentValuesBuilder_.setMessage(value); 7485 } 7486 bitField0_ |= 0x00000040; 7487 return this; 7488 } 7489 /** 7490 * <code>optional .sonarqube.ws.settings.Values parentValues = 7;</code> 7491 */ 7492 public Builder setParentValues( 7493 org.sonarqube.ws.Settings.Values.Builder builderForValue) { 7494 if (parentValuesBuilder_ == null) { 7495 parentValues_ = builderForValue.build(); 7496 onChanged(); 7497 } else { 7498 parentValuesBuilder_.setMessage(builderForValue.build()); 7499 } 7500 bitField0_ |= 0x00000040; 7501 return this; 7502 } 7503 /** 7504 * <code>optional .sonarqube.ws.settings.Values parentValues = 7;</code> 7505 */ 7506 public Builder mergeParentValues(org.sonarqube.ws.Settings.Values value) { 7507 if (parentValuesBuilder_ == null) { 7508 if (((bitField0_ & 0x00000040) == 0x00000040) && 7509 parentValues_ != null && 7510 parentValues_ != org.sonarqube.ws.Settings.Values.getDefaultInstance()) { 7511 parentValues_ = 7512 org.sonarqube.ws.Settings.Values.newBuilder(parentValues_).mergeFrom(value).buildPartial(); 7513 } else { 7514 parentValues_ = value; 7515 } 7516 onChanged(); 7517 } else { 7518 parentValuesBuilder_.mergeFrom(value); 7519 } 7520 bitField0_ |= 0x00000040; 7521 return this; 7522 } 7523 /** 7524 * <code>optional .sonarqube.ws.settings.Values parentValues = 7;</code> 7525 */ 7526 public Builder clearParentValues() { 7527 if (parentValuesBuilder_ == null) { 7528 parentValues_ = null; 7529 onChanged(); 7530 } else { 7531 parentValuesBuilder_.clear(); 7532 } 7533 bitField0_ = (bitField0_ & ~0x00000040); 7534 return this; 7535 } 7536 /** 7537 * <code>optional .sonarqube.ws.settings.Values parentValues = 7;</code> 7538 */ 7539 public org.sonarqube.ws.Settings.Values.Builder getParentValuesBuilder() { 7540 bitField0_ |= 0x00000040; 7541 onChanged(); 7542 return getParentValuesFieldBuilder().getBuilder(); 7543 } 7544 /** 7545 * <code>optional .sonarqube.ws.settings.Values parentValues = 7;</code> 7546 */ 7547 public org.sonarqube.ws.Settings.ValuesOrBuilder getParentValuesOrBuilder() { 7548 if (parentValuesBuilder_ != null) { 7549 return parentValuesBuilder_.getMessageOrBuilder(); 7550 } else { 7551 return parentValues_ == null ? 7552 org.sonarqube.ws.Settings.Values.getDefaultInstance() : parentValues_; 7553 } 7554 } 7555 /** 7556 * <code>optional .sonarqube.ws.settings.Values parentValues = 7;</code> 7557 */ 7558 private com.google.protobuf.SingleFieldBuilder< 7559 org.sonarqube.ws.Settings.Values, org.sonarqube.ws.Settings.Values.Builder, org.sonarqube.ws.Settings.ValuesOrBuilder> 7560 getParentValuesFieldBuilder() { 7561 if (parentValuesBuilder_ == null) { 7562 parentValuesBuilder_ = new com.google.protobuf.SingleFieldBuilder< 7563 org.sonarqube.ws.Settings.Values, org.sonarqube.ws.Settings.Values.Builder, org.sonarqube.ws.Settings.ValuesOrBuilder>( 7564 getParentValues(), 7565 getParentForChildren(), 7566 isClean()); 7567 parentValues_ = null; 7568 } 7569 return parentValuesBuilder_; 7570 } 7571 7572 private org.sonarqube.ws.Settings.FieldValues parentFieldValues_ = null; 7573 private com.google.protobuf.SingleFieldBuilder< 7574 org.sonarqube.ws.Settings.FieldValues, org.sonarqube.ws.Settings.FieldValues.Builder, org.sonarqube.ws.Settings.FieldValuesOrBuilder> parentFieldValuesBuilder_; 7575 /** 7576 * <code>optional .sonarqube.ws.settings.FieldValues parentFieldValues = 8;</code> 7577 */ 7578 public boolean hasParentFieldValues() { 7579 return ((bitField0_ & 0x00000080) == 0x00000080); 7580 } 7581 /** 7582 * <code>optional .sonarqube.ws.settings.FieldValues parentFieldValues = 8;</code> 7583 */ 7584 public org.sonarqube.ws.Settings.FieldValues getParentFieldValues() { 7585 if (parentFieldValuesBuilder_ == null) { 7586 return parentFieldValues_ == null ? org.sonarqube.ws.Settings.FieldValues.getDefaultInstance() : parentFieldValues_; 7587 } else { 7588 return parentFieldValuesBuilder_.getMessage(); 7589 } 7590 } 7591 /** 7592 * <code>optional .sonarqube.ws.settings.FieldValues parentFieldValues = 8;</code> 7593 */ 7594 public Builder setParentFieldValues(org.sonarqube.ws.Settings.FieldValues value) { 7595 if (parentFieldValuesBuilder_ == null) { 7596 if (value == null) { 7597 throw new NullPointerException(); 7598 } 7599 parentFieldValues_ = value; 7600 onChanged(); 7601 } else { 7602 parentFieldValuesBuilder_.setMessage(value); 7603 } 7604 bitField0_ |= 0x00000080; 7605 return this; 7606 } 7607 /** 7608 * <code>optional .sonarqube.ws.settings.FieldValues parentFieldValues = 8;</code> 7609 */ 7610 public Builder setParentFieldValues( 7611 org.sonarqube.ws.Settings.FieldValues.Builder builderForValue) { 7612 if (parentFieldValuesBuilder_ == null) { 7613 parentFieldValues_ = builderForValue.build(); 7614 onChanged(); 7615 } else { 7616 parentFieldValuesBuilder_.setMessage(builderForValue.build()); 7617 } 7618 bitField0_ |= 0x00000080; 7619 return this; 7620 } 7621 /** 7622 * <code>optional .sonarqube.ws.settings.FieldValues parentFieldValues = 8;</code> 7623 */ 7624 public Builder mergeParentFieldValues(org.sonarqube.ws.Settings.FieldValues value) { 7625 if (parentFieldValuesBuilder_ == null) { 7626 if (((bitField0_ & 0x00000080) == 0x00000080) && 7627 parentFieldValues_ != null && 7628 parentFieldValues_ != org.sonarqube.ws.Settings.FieldValues.getDefaultInstance()) { 7629 parentFieldValues_ = 7630 org.sonarqube.ws.Settings.FieldValues.newBuilder(parentFieldValues_).mergeFrom(value).buildPartial(); 7631 } else { 7632 parentFieldValues_ = value; 7633 } 7634 onChanged(); 7635 } else { 7636 parentFieldValuesBuilder_.mergeFrom(value); 7637 } 7638 bitField0_ |= 0x00000080; 7639 return this; 7640 } 7641 /** 7642 * <code>optional .sonarqube.ws.settings.FieldValues parentFieldValues = 8;</code> 7643 */ 7644 public Builder clearParentFieldValues() { 7645 if (parentFieldValuesBuilder_ == null) { 7646 parentFieldValues_ = null; 7647 onChanged(); 7648 } else { 7649 parentFieldValuesBuilder_.clear(); 7650 } 7651 bitField0_ = (bitField0_ & ~0x00000080); 7652 return this; 7653 } 7654 /** 7655 * <code>optional .sonarqube.ws.settings.FieldValues parentFieldValues = 8;</code> 7656 */ 7657 public org.sonarqube.ws.Settings.FieldValues.Builder getParentFieldValuesBuilder() { 7658 bitField0_ |= 0x00000080; 7659 onChanged(); 7660 return getParentFieldValuesFieldBuilder().getBuilder(); 7661 } 7662 /** 7663 * <code>optional .sonarqube.ws.settings.FieldValues parentFieldValues = 8;</code> 7664 */ 7665 public org.sonarqube.ws.Settings.FieldValuesOrBuilder getParentFieldValuesOrBuilder() { 7666 if (parentFieldValuesBuilder_ != null) { 7667 return parentFieldValuesBuilder_.getMessageOrBuilder(); 7668 } else { 7669 return parentFieldValues_ == null ? 7670 org.sonarqube.ws.Settings.FieldValues.getDefaultInstance() : parentFieldValues_; 7671 } 7672 } 7673 /** 7674 * <code>optional .sonarqube.ws.settings.FieldValues parentFieldValues = 8;</code> 7675 */ 7676 private com.google.protobuf.SingleFieldBuilder< 7677 org.sonarqube.ws.Settings.FieldValues, org.sonarqube.ws.Settings.FieldValues.Builder, org.sonarqube.ws.Settings.FieldValuesOrBuilder> 7678 getParentFieldValuesFieldBuilder() { 7679 if (parentFieldValuesBuilder_ == null) { 7680 parentFieldValuesBuilder_ = new com.google.protobuf.SingleFieldBuilder< 7681 org.sonarqube.ws.Settings.FieldValues, org.sonarqube.ws.Settings.FieldValues.Builder, org.sonarqube.ws.Settings.FieldValuesOrBuilder>( 7682 getParentFieldValues(), 7683 getParentForChildren(), 7684 isClean()); 7685 parentFieldValues_ = null; 7686 } 7687 return parentFieldValuesBuilder_; 7688 } 7689 7690 // @@protoc_insertion_point(builder_scope:sonarqube.ws.settings.Setting) 7691 } 7692 7693 // @@protoc_insertion_point(class_scope:sonarqube.ws.settings.Setting) 7694 private static final org.sonarqube.ws.Settings.Setting DEFAULT_INSTANCE; 7695 static { 7696 DEFAULT_INSTANCE = new org.sonarqube.ws.Settings.Setting(); 7697 } 7698 7699 public static org.sonarqube.ws.Settings.Setting getDefaultInstance() { 7700 return DEFAULT_INSTANCE; 7701 } 7702 7703 @java.lang.Deprecated public static final com.google.protobuf.Parser<Setting> 7704 PARSER = new com.google.protobuf.AbstractParser<Setting>() { 7705 public Setting parsePartialFrom( 7706 com.google.protobuf.CodedInputStream input, 7707 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7708 throws com.google.protobuf.InvalidProtocolBufferException { 7709 try { 7710 return new Setting(input, extensionRegistry); 7711 } catch (RuntimeException e) { 7712 if (e.getCause() instanceof 7713 com.google.protobuf.InvalidProtocolBufferException) { 7714 throw (com.google.protobuf.InvalidProtocolBufferException) 7715 e.getCause(); 7716 } 7717 throw e; 7718 } 7719 } 7720 }; 7721 7722 public static com.google.protobuf.Parser<Setting> parser() { 7723 return PARSER; 7724 } 7725 7726 @java.lang.Override 7727 public com.google.protobuf.Parser<Setting> getParserForType() { 7728 return PARSER; 7729 } 7730 7731 public org.sonarqube.ws.Settings.Setting getDefaultInstanceForType() { 7732 return DEFAULT_INSTANCE; 7733 } 7734 7735 } 7736 7737 public interface ValuesOrBuilder extends 7738 // @@protoc_insertion_point(interface_extends:sonarqube.ws.settings.Values) 7739 com.google.protobuf.MessageOrBuilder { 7740 7741 /** 7742 * <code>repeated string values = 1;</code> 7743 */ 7744 com.google.protobuf.ProtocolStringList 7745 getValuesList(); 7746 /** 7747 * <code>repeated string values = 1;</code> 7748 */ 7749 int getValuesCount(); 7750 /** 7751 * <code>repeated string values = 1;</code> 7752 */ 7753 java.lang.String getValues(int index); 7754 /** 7755 * <code>repeated string values = 1;</code> 7756 */ 7757 com.google.protobuf.ByteString 7758 getValuesBytes(int index); 7759 } 7760 /** 7761 * Protobuf type {@code sonarqube.ws.settings.Values} 7762 */ 7763 public static final class Values extends 7764 com.google.protobuf.GeneratedMessage implements 7765 // @@protoc_insertion_point(message_implements:sonarqube.ws.settings.Values) 7766 ValuesOrBuilder { 7767 // Use Values.newBuilder() to construct. 7768 private Values(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 7769 super(builder); 7770 } 7771 private Values() { 7772 values_ = com.google.protobuf.LazyStringArrayList.EMPTY; 7773 } 7774 7775 @java.lang.Override 7776 public final com.google.protobuf.UnknownFieldSet 7777 getUnknownFields() { 7778 return this.unknownFields; 7779 } 7780 private Values( 7781 com.google.protobuf.CodedInputStream input, 7782 com.google.protobuf.ExtensionRegistryLite extensionRegistry) { 7783 this(); 7784 int mutable_bitField0_ = 0; 7785 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 7786 com.google.protobuf.UnknownFieldSet.newBuilder(); 7787 try { 7788 boolean done = false; 7789 while (!done) { 7790 int tag = input.readTag(); 7791 switch (tag) { 7792 case 0: 7793 done = true; 7794 break; 7795 default: { 7796 if (!parseUnknownField(input, unknownFields, 7797 extensionRegistry, tag)) { 7798 done = true; 7799 } 7800 break; 7801 } 7802 case 10: { 7803 com.google.protobuf.ByteString bs = input.readBytes(); 7804 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 7805 values_ = new com.google.protobuf.LazyStringArrayList(); 7806 mutable_bitField0_ |= 0x00000001; 7807 } 7808 values_.add(bs); 7809 break; 7810 } 7811 } 7812 } 7813 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 7814 throw new RuntimeException(e.setUnfinishedMessage(this)); 7815 } catch (java.io.IOException e) { 7816 throw new RuntimeException( 7817 new com.google.protobuf.InvalidProtocolBufferException( 7818 e.getMessage()).setUnfinishedMessage(this)); 7819 } finally { 7820 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 7821 values_ = values_.getUnmodifiableView(); 7822 } 7823 this.unknownFields = unknownFields.build(); 7824 makeExtensionsImmutable(); 7825 } 7826 } 7827 public static final com.google.protobuf.Descriptors.Descriptor 7828 getDescriptor() { 7829 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Values_descriptor; 7830 } 7831 7832 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 7833 internalGetFieldAccessorTable() { 7834 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Values_fieldAccessorTable 7835 .ensureFieldAccessorsInitialized( 7836 org.sonarqube.ws.Settings.Values.class, org.sonarqube.ws.Settings.Values.Builder.class); 7837 } 7838 7839 public static final int VALUES_FIELD_NUMBER = 1; 7840 private com.google.protobuf.LazyStringList values_; 7841 /** 7842 * <code>repeated string values = 1;</code> 7843 */ 7844 public com.google.protobuf.ProtocolStringList 7845 getValuesList() { 7846 return values_; 7847 } 7848 /** 7849 * <code>repeated string values = 1;</code> 7850 */ 7851 public int getValuesCount() { 7852 return values_.size(); 7853 } 7854 /** 7855 * <code>repeated string values = 1;</code> 7856 */ 7857 public java.lang.String getValues(int index) { 7858 return values_.get(index); 7859 } 7860 /** 7861 * <code>repeated string values = 1;</code> 7862 */ 7863 public com.google.protobuf.ByteString 7864 getValuesBytes(int index) { 7865 return values_.getByteString(index); 7866 } 7867 7868 private byte memoizedIsInitialized = -1; 7869 public final boolean isInitialized() { 7870 byte isInitialized = memoizedIsInitialized; 7871 if (isInitialized == 1) return true; 7872 if (isInitialized == 0) return false; 7873 7874 memoizedIsInitialized = 1; 7875 return true; 7876 } 7877 7878 public void writeTo(com.google.protobuf.CodedOutputStream output) 7879 throws java.io.IOException { 7880 for (int i = 0; i < values_.size(); i++) { 7881 com.google.protobuf.GeneratedMessage.writeString(output, 1, values_.getRaw(i)); 7882 } 7883 unknownFields.writeTo(output); 7884 } 7885 7886 public int getSerializedSize() { 7887 int size = memoizedSize; 7888 if (size != -1) return size; 7889 7890 size = 0; 7891 { 7892 int dataSize = 0; 7893 for (int i = 0; i < values_.size(); i++) { 7894 dataSize += computeStringSizeNoTag(values_.getRaw(i)); 7895 } 7896 size += dataSize; 7897 size += 1 * getValuesList().size(); 7898 } 7899 size += unknownFields.getSerializedSize(); 7900 memoizedSize = size; 7901 return size; 7902 } 7903 7904 private static final long serialVersionUID = 0L; 7905 public static org.sonarqube.ws.Settings.Values parseFrom( 7906 com.google.protobuf.ByteString data) 7907 throws com.google.protobuf.InvalidProtocolBufferException { 7908 return PARSER.parseFrom(data); 7909 } 7910 public static org.sonarqube.ws.Settings.Values parseFrom( 7911 com.google.protobuf.ByteString data, 7912 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7913 throws com.google.protobuf.InvalidProtocolBufferException { 7914 return PARSER.parseFrom(data, extensionRegistry); 7915 } 7916 public static org.sonarqube.ws.Settings.Values parseFrom(byte[] data) 7917 throws com.google.protobuf.InvalidProtocolBufferException { 7918 return PARSER.parseFrom(data); 7919 } 7920 public static org.sonarqube.ws.Settings.Values parseFrom( 7921 byte[] data, 7922 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7923 throws com.google.protobuf.InvalidProtocolBufferException { 7924 return PARSER.parseFrom(data, extensionRegistry); 7925 } 7926 public static org.sonarqube.ws.Settings.Values parseFrom(java.io.InputStream input) 7927 throws java.io.IOException { 7928 return PARSER.parseFrom(input); 7929 } 7930 public static org.sonarqube.ws.Settings.Values parseFrom( 7931 java.io.InputStream input, 7932 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7933 throws java.io.IOException { 7934 return PARSER.parseFrom(input, extensionRegistry); 7935 } 7936 public static org.sonarqube.ws.Settings.Values parseDelimitedFrom(java.io.InputStream input) 7937 throws java.io.IOException { 7938 return PARSER.parseDelimitedFrom(input); 7939 } 7940 public static org.sonarqube.ws.Settings.Values parseDelimitedFrom( 7941 java.io.InputStream input, 7942 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7943 throws java.io.IOException { 7944 return PARSER.parseDelimitedFrom(input, extensionRegistry); 7945 } 7946 public static org.sonarqube.ws.Settings.Values parseFrom( 7947 com.google.protobuf.CodedInputStream input) 7948 throws java.io.IOException { 7949 return PARSER.parseFrom(input); 7950 } 7951 public static org.sonarqube.ws.Settings.Values parseFrom( 7952 com.google.protobuf.CodedInputStream input, 7953 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 7954 throws java.io.IOException { 7955 return PARSER.parseFrom(input, extensionRegistry); 7956 } 7957 7958 public Builder newBuilderForType() { return newBuilder(); } 7959 public static Builder newBuilder() { 7960 return DEFAULT_INSTANCE.toBuilder(); 7961 } 7962 public static Builder newBuilder(org.sonarqube.ws.Settings.Values prototype) { 7963 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 7964 } 7965 public Builder toBuilder() { 7966 return this == DEFAULT_INSTANCE 7967 ? new Builder() : new Builder().mergeFrom(this); 7968 } 7969 7970 @java.lang.Override 7971 protected Builder newBuilderForType( 7972 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 7973 Builder builder = new Builder(parent); 7974 return builder; 7975 } 7976 /** 7977 * Protobuf type {@code sonarqube.ws.settings.Values} 7978 */ 7979 public static final class Builder extends 7980 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 7981 // @@protoc_insertion_point(builder_implements:sonarqube.ws.settings.Values) 7982 org.sonarqube.ws.Settings.ValuesOrBuilder { 7983 public static final com.google.protobuf.Descriptors.Descriptor 7984 getDescriptor() { 7985 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Values_descriptor; 7986 } 7987 7988 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 7989 internalGetFieldAccessorTable() { 7990 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Values_fieldAccessorTable 7991 .ensureFieldAccessorsInitialized( 7992 org.sonarqube.ws.Settings.Values.class, org.sonarqube.ws.Settings.Values.Builder.class); 7993 } 7994 7995 // Construct using org.sonarqube.ws.Settings.Values.newBuilder() 7996 private Builder() { 7997 maybeForceBuilderInitialization(); 7998 } 7999 8000 private Builder( 8001 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 8002 super(parent); 8003 maybeForceBuilderInitialization(); 8004 } 8005 private void maybeForceBuilderInitialization() { 8006 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 8007 } 8008 } 8009 public Builder clear() { 8010 super.clear(); 8011 values_ = com.google.protobuf.LazyStringArrayList.EMPTY; 8012 bitField0_ = (bitField0_ & ~0x00000001); 8013 return this; 8014 } 8015 8016 public com.google.protobuf.Descriptors.Descriptor 8017 getDescriptorForType() { 8018 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_Values_descriptor; 8019 } 8020 8021 public org.sonarqube.ws.Settings.Values getDefaultInstanceForType() { 8022 return org.sonarqube.ws.Settings.Values.getDefaultInstance(); 8023 } 8024 8025 public org.sonarqube.ws.Settings.Values build() { 8026 org.sonarqube.ws.Settings.Values result = buildPartial(); 8027 if (!result.isInitialized()) { 8028 throw newUninitializedMessageException(result); 8029 } 8030 return result; 8031 } 8032 8033 public org.sonarqube.ws.Settings.Values buildPartial() { 8034 org.sonarqube.ws.Settings.Values result = new org.sonarqube.ws.Settings.Values(this); 8035 int from_bitField0_ = bitField0_; 8036 if (((bitField0_ & 0x00000001) == 0x00000001)) { 8037 values_ = values_.getUnmodifiableView(); 8038 bitField0_ = (bitField0_ & ~0x00000001); 8039 } 8040 result.values_ = values_; 8041 onBuilt(); 8042 return result; 8043 } 8044 8045 public Builder mergeFrom(com.google.protobuf.Message other) { 8046 if (other instanceof org.sonarqube.ws.Settings.Values) { 8047 return mergeFrom((org.sonarqube.ws.Settings.Values)other); 8048 } else { 8049 super.mergeFrom(other); 8050 return this; 8051 } 8052 } 8053 8054 public Builder mergeFrom(org.sonarqube.ws.Settings.Values other) { 8055 if (other == org.sonarqube.ws.Settings.Values.getDefaultInstance()) return this; 8056 if (!other.values_.isEmpty()) { 8057 if (values_.isEmpty()) { 8058 values_ = other.values_; 8059 bitField0_ = (bitField0_ & ~0x00000001); 8060 } else { 8061 ensureValuesIsMutable(); 8062 values_.addAll(other.values_); 8063 } 8064 onChanged(); 8065 } 8066 this.mergeUnknownFields(other.unknownFields); 8067 onChanged(); 8068 return this; 8069 } 8070 8071 public final boolean isInitialized() { 8072 return true; 8073 } 8074 8075 public Builder mergeFrom( 8076 com.google.protobuf.CodedInputStream input, 8077 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8078 throws java.io.IOException { 8079 org.sonarqube.ws.Settings.Values parsedMessage = null; 8080 try { 8081 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 8082 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8083 parsedMessage = (org.sonarqube.ws.Settings.Values) e.getUnfinishedMessage(); 8084 throw e; 8085 } finally { 8086 if (parsedMessage != null) { 8087 mergeFrom(parsedMessage); 8088 } 8089 } 8090 return this; 8091 } 8092 private int bitField0_; 8093 8094 private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; 8095 private void ensureValuesIsMutable() { 8096 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 8097 values_ = new com.google.protobuf.LazyStringArrayList(values_); 8098 bitField0_ |= 0x00000001; 8099 } 8100 } 8101 /** 8102 * <code>repeated string values = 1;</code> 8103 */ 8104 public com.google.protobuf.ProtocolStringList 8105 getValuesList() { 8106 return values_.getUnmodifiableView(); 8107 } 8108 /** 8109 * <code>repeated string values = 1;</code> 8110 */ 8111 public int getValuesCount() { 8112 return values_.size(); 8113 } 8114 /** 8115 * <code>repeated string values = 1;</code> 8116 */ 8117 public java.lang.String getValues(int index) { 8118 return values_.get(index); 8119 } 8120 /** 8121 * <code>repeated string values = 1;</code> 8122 */ 8123 public com.google.protobuf.ByteString 8124 getValuesBytes(int index) { 8125 return values_.getByteString(index); 8126 } 8127 /** 8128 * <code>repeated string values = 1;</code> 8129 */ 8130 public Builder setValues( 8131 int index, java.lang.String value) { 8132 if (value == null) { 8133 throw new NullPointerException(); 8134 } 8135 ensureValuesIsMutable(); 8136 values_.set(index, value); 8137 onChanged(); 8138 return this; 8139 } 8140 /** 8141 * <code>repeated string values = 1;</code> 8142 */ 8143 public Builder addValues( 8144 java.lang.String value) { 8145 if (value == null) { 8146 throw new NullPointerException(); 8147 } 8148 ensureValuesIsMutable(); 8149 values_.add(value); 8150 onChanged(); 8151 return this; 8152 } 8153 /** 8154 * <code>repeated string values = 1;</code> 8155 */ 8156 public Builder addAllValues( 8157 java.lang.Iterable<java.lang.String> values) { 8158 ensureValuesIsMutable(); 8159 com.google.protobuf.AbstractMessageLite.Builder.addAll( 8160 values, values_); 8161 onChanged(); 8162 return this; 8163 } 8164 /** 8165 * <code>repeated string values = 1;</code> 8166 */ 8167 public Builder clearValues() { 8168 values_ = com.google.protobuf.LazyStringArrayList.EMPTY; 8169 bitField0_ = (bitField0_ & ~0x00000001); 8170 onChanged(); 8171 return this; 8172 } 8173 /** 8174 * <code>repeated string values = 1;</code> 8175 */ 8176 public Builder addValuesBytes( 8177 com.google.protobuf.ByteString value) { 8178 if (value == null) { 8179 throw new NullPointerException(); 8180 } 8181 ensureValuesIsMutable(); 8182 values_.add(value); 8183 onChanged(); 8184 return this; 8185 } 8186 8187 // @@protoc_insertion_point(builder_scope:sonarqube.ws.settings.Values) 8188 } 8189 8190 // @@protoc_insertion_point(class_scope:sonarqube.ws.settings.Values) 8191 private static final org.sonarqube.ws.Settings.Values DEFAULT_INSTANCE; 8192 static { 8193 DEFAULT_INSTANCE = new org.sonarqube.ws.Settings.Values(); 8194 } 8195 8196 public static org.sonarqube.ws.Settings.Values getDefaultInstance() { 8197 return DEFAULT_INSTANCE; 8198 } 8199 8200 @java.lang.Deprecated public static final com.google.protobuf.Parser<Values> 8201 PARSER = new com.google.protobuf.AbstractParser<Values>() { 8202 public Values parsePartialFrom( 8203 com.google.protobuf.CodedInputStream input, 8204 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8205 throws com.google.protobuf.InvalidProtocolBufferException { 8206 try { 8207 return new Values(input, extensionRegistry); 8208 } catch (RuntimeException e) { 8209 if (e.getCause() instanceof 8210 com.google.protobuf.InvalidProtocolBufferException) { 8211 throw (com.google.protobuf.InvalidProtocolBufferException) 8212 e.getCause(); 8213 } 8214 throw e; 8215 } 8216 } 8217 }; 8218 8219 public static com.google.protobuf.Parser<Values> parser() { 8220 return PARSER; 8221 } 8222 8223 @java.lang.Override 8224 public com.google.protobuf.Parser<Values> getParserForType() { 8225 return PARSER; 8226 } 8227 8228 public org.sonarqube.ws.Settings.Values getDefaultInstanceForType() { 8229 return DEFAULT_INSTANCE; 8230 } 8231 8232 } 8233 8234 public interface FieldValuesOrBuilder extends 8235 // @@protoc_insertion_point(interface_extends:sonarqube.ws.settings.FieldValues) 8236 com.google.protobuf.MessageOrBuilder { 8237 8238 /** 8239 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 8240 */ 8241 java.util.List<org.sonarqube.ws.Settings.FieldValues.Value> 8242 getFieldValuesList(); 8243 /** 8244 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 8245 */ 8246 org.sonarqube.ws.Settings.FieldValues.Value getFieldValues(int index); 8247 /** 8248 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 8249 */ 8250 int getFieldValuesCount(); 8251 /** 8252 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 8253 */ 8254 java.util.List<? extends org.sonarqube.ws.Settings.FieldValues.ValueOrBuilder> 8255 getFieldValuesOrBuilderList(); 8256 /** 8257 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 8258 */ 8259 org.sonarqube.ws.Settings.FieldValues.ValueOrBuilder getFieldValuesOrBuilder( 8260 int index); 8261 } 8262 /** 8263 * Protobuf type {@code sonarqube.ws.settings.FieldValues} 8264 */ 8265 public static final class FieldValues extends 8266 com.google.protobuf.GeneratedMessage implements 8267 // @@protoc_insertion_point(message_implements:sonarqube.ws.settings.FieldValues) 8268 FieldValuesOrBuilder { 8269 // Use FieldValues.newBuilder() to construct. 8270 private FieldValues(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 8271 super(builder); 8272 } 8273 private FieldValues() { 8274 fieldValues_ = java.util.Collections.emptyList(); 8275 } 8276 8277 @java.lang.Override 8278 public final com.google.protobuf.UnknownFieldSet 8279 getUnknownFields() { 8280 return this.unknownFields; 8281 } 8282 private FieldValues( 8283 com.google.protobuf.CodedInputStream input, 8284 com.google.protobuf.ExtensionRegistryLite extensionRegistry) { 8285 this(); 8286 int mutable_bitField0_ = 0; 8287 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 8288 com.google.protobuf.UnknownFieldSet.newBuilder(); 8289 try { 8290 boolean done = false; 8291 while (!done) { 8292 int tag = input.readTag(); 8293 switch (tag) { 8294 case 0: 8295 done = true; 8296 break; 8297 default: { 8298 if (!parseUnknownField(input, unknownFields, 8299 extensionRegistry, tag)) { 8300 done = true; 8301 } 8302 break; 8303 } 8304 case 10: { 8305 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 8306 fieldValues_ = new java.util.ArrayList<org.sonarqube.ws.Settings.FieldValues.Value>(); 8307 mutable_bitField0_ |= 0x00000001; 8308 } 8309 fieldValues_.add(input.readMessage(org.sonarqube.ws.Settings.FieldValues.Value.parser(), extensionRegistry)); 8310 break; 8311 } 8312 } 8313 } 8314 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8315 throw new RuntimeException(e.setUnfinishedMessage(this)); 8316 } catch (java.io.IOException e) { 8317 throw new RuntimeException( 8318 new com.google.protobuf.InvalidProtocolBufferException( 8319 e.getMessage()).setUnfinishedMessage(this)); 8320 } finally { 8321 if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 8322 fieldValues_ = java.util.Collections.unmodifiableList(fieldValues_); 8323 } 8324 this.unknownFields = unknownFields.build(); 8325 makeExtensionsImmutable(); 8326 } 8327 } 8328 public static final com.google.protobuf.Descriptors.Descriptor 8329 getDescriptor() { 8330 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_FieldValues_descriptor; 8331 } 8332 8333 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 8334 internalGetFieldAccessorTable() { 8335 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_FieldValues_fieldAccessorTable 8336 .ensureFieldAccessorsInitialized( 8337 org.sonarqube.ws.Settings.FieldValues.class, org.sonarqube.ws.Settings.FieldValues.Builder.class); 8338 } 8339 8340 public interface ValueOrBuilder extends 8341 // @@protoc_insertion_point(interface_extends:sonarqube.ws.settings.FieldValues.Value) 8342 com.google.protobuf.MessageOrBuilder { 8343 8344 /** 8345 * <code>map<string, string> value = 1;</code> 8346 */ 8347 java.util.Map<java.lang.String, java.lang.String> 8348 getValue(); 8349 } 8350 /** 8351 * Protobuf type {@code sonarqube.ws.settings.FieldValues.Value} 8352 */ 8353 public static final class Value extends 8354 com.google.protobuf.GeneratedMessage implements 8355 // @@protoc_insertion_point(message_implements:sonarqube.ws.settings.FieldValues.Value) 8356 ValueOrBuilder { 8357 // Use Value.newBuilder() to construct. 8358 private Value(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 8359 super(builder); 8360 } 8361 private Value() { 8362 } 8363 8364 @java.lang.Override 8365 public final com.google.protobuf.UnknownFieldSet 8366 getUnknownFields() { 8367 return this.unknownFields; 8368 } 8369 private Value( 8370 com.google.protobuf.CodedInputStream input, 8371 com.google.protobuf.ExtensionRegistryLite extensionRegistry) { 8372 this(); 8373 int mutable_bitField0_ = 0; 8374 com.google.protobuf.UnknownFieldSet.Builder unknownFields = 8375 com.google.protobuf.UnknownFieldSet.newBuilder(); 8376 try { 8377 boolean done = false; 8378 while (!done) { 8379 int tag = input.readTag(); 8380 switch (tag) { 8381 case 0: 8382 done = true; 8383 break; 8384 default: { 8385 if (!parseUnknownField(input, unknownFields, 8386 extensionRegistry, tag)) { 8387 done = true; 8388 } 8389 break; 8390 } 8391 case 10: { 8392 if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { 8393 value_ = com.google.protobuf.MapField.newMapField( 8394 ValueDefaultEntryHolder.defaultEntry); 8395 mutable_bitField0_ |= 0x00000001; 8396 } 8397 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> 8398 value = input.readMessage( 8399 ValueDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); 8400 value_.getMutableMap().put(value.getKey(), value.getValue()); 8401 break; 8402 } 8403 } 8404 } 8405 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8406 throw new RuntimeException(e.setUnfinishedMessage(this)); 8407 } catch (java.io.IOException e) { 8408 throw new RuntimeException( 8409 new com.google.protobuf.InvalidProtocolBufferException( 8410 e.getMessage()).setUnfinishedMessage(this)); 8411 } finally { 8412 this.unknownFields = unknownFields.build(); 8413 makeExtensionsImmutable(); 8414 } 8415 } 8416 public static final com.google.protobuf.Descriptors.Descriptor 8417 getDescriptor() { 8418 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_FieldValues_Value_descriptor; 8419 } 8420 8421 @SuppressWarnings({"rawtypes"}) 8422 protected com.google.protobuf.MapField internalGetMapField( 8423 int number) { 8424 switch (number) { 8425 case 1: 8426 return internalGetValue(); 8427 default: 8428 throw new RuntimeException( 8429 "Invalid map field number: " + number); 8430 } 8431 } 8432 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 8433 internalGetFieldAccessorTable() { 8434 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_FieldValues_Value_fieldAccessorTable 8435 .ensureFieldAccessorsInitialized( 8436 org.sonarqube.ws.Settings.FieldValues.Value.class, org.sonarqube.ws.Settings.FieldValues.Value.Builder.class); 8437 } 8438 8439 public static final int VALUE_FIELD_NUMBER = 1; 8440 private static final class ValueDefaultEntryHolder { 8441 static final com.google.protobuf.MapEntry< 8442 java.lang.String, java.lang.String> defaultEntry = 8443 com.google.protobuf.MapEntry 8444 .<java.lang.String, java.lang.String>newDefaultInstance( 8445 org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_FieldValues_Value_ValueEntry_descriptor, 8446 com.google.protobuf.WireFormat.FieldType.STRING, 8447 "", 8448 com.google.protobuf.WireFormat.FieldType.STRING, 8449 ""); 8450 } 8451 private com.google.protobuf.MapField< 8452 java.lang.String, java.lang.String> value_; 8453 private com.google.protobuf.MapField<java.lang.String, java.lang.String> 8454 internalGetValue() { 8455 if (value_ == null) { 8456 return com.google.protobuf.MapField.emptyMapField( 8457 ValueDefaultEntryHolder.defaultEntry); 8458 } 8459 return value_; 8460 } 8461 /** 8462 * <code>map<string, string> value = 1;</code> 8463 */ 8464 8465 public java.util.Map<java.lang.String, java.lang.String> getValue() { 8466 return internalGetValue().getMap(); 8467 } 8468 8469 private byte memoizedIsInitialized = -1; 8470 public final boolean isInitialized() { 8471 byte isInitialized = memoizedIsInitialized; 8472 if (isInitialized == 1) return true; 8473 if (isInitialized == 0) return false; 8474 8475 memoizedIsInitialized = 1; 8476 return true; 8477 } 8478 8479 public void writeTo(com.google.protobuf.CodedOutputStream output) 8480 throws java.io.IOException { 8481 for (java.util.Map.Entry<java.lang.String, java.lang.String> entry 8482 : internalGetValue().getMap().entrySet()) { 8483 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> 8484 value = ValueDefaultEntryHolder.defaultEntry.newBuilderForType() 8485 .setKey(entry.getKey()) 8486 .setValue(entry.getValue()) 8487 .build(); 8488 output.writeMessage(1, value); 8489 } 8490 unknownFields.writeTo(output); 8491 } 8492 8493 public int getSerializedSize() { 8494 int size = memoizedSize; 8495 if (size != -1) return size; 8496 8497 size = 0; 8498 for (java.util.Map.Entry<java.lang.String, java.lang.String> entry 8499 : internalGetValue().getMap().entrySet()) { 8500 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> 8501 value = ValueDefaultEntryHolder.defaultEntry.newBuilderForType() 8502 .setKey(entry.getKey()) 8503 .setValue(entry.getValue()) 8504 .build(); 8505 size += com.google.protobuf.CodedOutputStream 8506 .computeMessageSize(1, value); 8507 } 8508 size += unknownFields.getSerializedSize(); 8509 memoizedSize = size; 8510 return size; 8511 } 8512 8513 private static final long serialVersionUID = 0L; 8514 public static org.sonarqube.ws.Settings.FieldValues.Value parseFrom( 8515 com.google.protobuf.ByteString data) 8516 throws com.google.protobuf.InvalidProtocolBufferException { 8517 return PARSER.parseFrom(data); 8518 } 8519 public static org.sonarqube.ws.Settings.FieldValues.Value parseFrom( 8520 com.google.protobuf.ByteString data, 8521 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8522 throws com.google.protobuf.InvalidProtocolBufferException { 8523 return PARSER.parseFrom(data, extensionRegistry); 8524 } 8525 public static org.sonarqube.ws.Settings.FieldValues.Value parseFrom(byte[] data) 8526 throws com.google.protobuf.InvalidProtocolBufferException { 8527 return PARSER.parseFrom(data); 8528 } 8529 public static org.sonarqube.ws.Settings.FieldValues.Value parseFrom( 8530 byte[] data, 8531 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8532 throws com.google.protobuf.InvalidProtocolBufferException { 8533 return PARSER.parseFrom(data, extensionRegistry); 8534 } 8535 public static org.sonarqube.ws.Settings.FieldValues.Value parseFrom(java.io.InputStream input) 8536 throws java.io.IOException { 8537 return PARSER.parseFrom(input); 8538 } 8539 public static org.sonarqube.ws.Settings.FieldValues.Value parseFrom( 8540 java.io.InputStream input, 8541 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8542 throws java.io.IOException { 8543 return PARSER.parseFrom(input, extensionRegistry); 8544 } 8545 public static org.sonarqube.ws.Settings.FieldValues.Value parseDelimitedFrom(java.io.InputStream input) 8546 throws java.io.IOException { 8547 return PARSER.parseDelimitedFrom(input); 8548 } 8549 public static org.sonarqube.ws.Settings.FieldValues.Value parseDelimitedFrom( 8550 java.io.InputStream input, 8551 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8552 throws java.io.IOException { 8553 return PARSER.parseDelimitedFrom(input, extensionRegistry); 8554 } 8555 public static org.sonarqube.ws.Settings.FieldValues.Value parseFrom( 8556 com.google.protobuf.CodedInputStream input) 8557 throws java.io.IOException { 8558 return PARSER.parseFrom(input); 8559 } 8560 public static org.sonarqube.ws.Settings.FieldValues.Value parseFrom( 8561 com.google.protobuf.CodedInputStream input, 8562 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8563 throws java.io.IOException { 8564 return PARSER.parseFrom(input, extensionRegistry); 8565 } 8566 8567 public Builder newBuilderForType() { return newBuilder(); } 8568 public static Builder newBuilder() { 8569 return DEFAULT_INSTANCE.toBuilder(); 8570 } 8571 public static Builder newBuilder(org.sonarqube.ws.Settings.FieldValues.Value prototype) { 8572 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 8573 } 8574 public Builder toBuilder() { 8575 return this == DEFAULT_INSTANCE 8576 ? new Builder() : new Builder().mergeFrom(this); 8577 } 8578 8579 @java.lang.Override 8580 protected Builder newBuilderForType( 8581 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 8582 Builder builder = new Builder(parent); 8583 return builder; 8584 } 8585 /** 8586 * Protobuf type {@code sonarqube.ws.settings.FieldValues.Value} 8587 */ 8588 public static final class Builder extends 8589 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 8590 // @@protoc_insertion_point(builder_implements:sonarqube.ws.settings.FieldValues.Value) 8591 org.sonarqube.ws.Settings.FieldValues.ValueOrBuilder { 8592 public static final com.google.protobuf.Descriptors.Descriptor 8593 getDescriptor() { 8594 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_FieldValues_Value_descriptor; 8595 } 8596 8597 @SuppressWarnings({"rawtypes"}) 8598 protected com.google.protobuf.MapField internalGetMapField( 8599 int number) { 8600 switch (number) { 8601 case 1: 8602 return internalGetValue(); 8603 default: 8604 throw new RuntimeException( 8605 "Invalid map field number: " + number); 8606 } 8607 } 8608 @SuppressWarnings({"rawtypes"}) 8609 protected com.google.protobuf.MapField internalGetMutableMapField( 8610 int number) { 8611 switch (number) { 8612 case 1: 8613 return internalGetMutableValue(); 8614 default: 8615 throw new RuntimeException( 8616 "Invalid map field number: " + number); 8617 } 8618 } 8619 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 8620 internalGetFieldAccessorTable() { 8621 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_FieldValues_Value_fieldAccessorTable 8622 .ensureFieldAccessorsInitialized( 8623 org.sonarqube.ws.Settings.FieldValues.Value.class, org.sonarqube.ws.Settings.FieldValues.Value.Builder.class); 8624 } 8625 8626 // Construct using org.sonarqube.ws.Settings.FieldValues.Value.newBuilder() 8627 private Builder() { 8628 maybeForceBuilderInitialization(); 8629 } 8630 8631 private Builder( 8632 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 8633 super(parent); 8634 maybeForceBuilderInitialization(); 8635 } 8636 private void maybeForceBuilderInitialization() { 8637 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 8638 } 8639 } 8640 public Builder clear() { 8641 super.clear(); 8642 internalGetMutableValue().clear(); 8643 return this; 8644 } 8645 8646 public com.google.protobuf.Descriptors.Descriptor 8647 getDescriptorForType() { 8648 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_FieldValues_Value_descriptor; 8649 } 8650 8651 public org.sonarqube.ws.Settings.FieldValues.Value getDefaultInstanceForType() { 8652 return org.sonarqube.ws.Settings.FieldValues.Value.getDefaultInstance(); 8653 } 8654 8655 public org.sonarqube.ws.Settings.FieldValues.Value build() { 8656 org.sonarqube.ws.Settings.FieldValues.Value result = buildPartial(); 8657 if (!result.isInitialized()) { 8658 throw newUninitializedMessageException(result); 8659 } 8660 return result; 8661 } 8662 8663 public org.sonarqube.ws.Settings.FieldValues.Value buildPartial() { 8664 org.sonarqube.ws.Settings.FieldValues.Value result = new org.sonarqube.ws.Settings.FieldValues.Value(this); 8665 int from_bitField0_ = bitField0_; 8666 result.value_ = internalGetValue(); 8667 result.value_.makeImmutable(); 8668 onBuilt(); 8669 return result; 8670 } 8671 8672 public Builder mergeFrom(com.google.protobuf.Message other) { 8673 if (other instanceof org.sonarqube.ws.Settings.FieldValues.Value) { 8674 return mergeFrom((org.sonarqube.ws.Settings.FieldValues.Value)other); 8675 } else { 8676 super.mergeFrom(other); 8677 return this; 8678 } 8679 } 8680 8681 public Builder mergeFrom(org.sonarqube.ws.Settings.FieldValues.Value other) { 8682 if (other == org.sonarqube.ws.Settings.FieldValues.Value.getDefaultInstance()) return this; 8683 internalGetMutableValue().mergeFrom( 8684 other.internalGetValue()); 8685 this.mergeUnknownFields(other.unknownFields); 8686 onChanged(); 8687 return this; 8688 } 8689 8690 public final boolean isInitialized() { 8691 return true; 8692 } 8693 8694 public Builder mergeFrom( 8695 com.google.protobuf.CodedInputStream input, 8696 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8697 throws java.io.IOException { 8698 org.sonarqube.ws.Settings.FieldValues.Value parsedMessage = null; 8699 try { 8700 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 8701 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 8702 parsedMessage = (org.sonarqube.ws.Settings.FieldValues.Value) e.getUnfinishedMessage(); 8703 throw e; 8704 } finally { 8705 if (parsedMessage != null) { 8706 mergeFrom(parsedMessage); 8707 } 8708 } 8709 return this; 8710 } 8711 private int bitField0_; 8712 8713 private com.google.protobuf.MapField< 8714 java.lang.String, java.lang.String> value_; 8715 private com.google.protobuf.MapField<java.lang.String, java.lang.String> 8716 internalGetValue() { 8717 if (value_ == null) { 8718 return com.google.protobuf.MapField.emptyMapField( 8719 ValueDefaultEntryHolder.defaultEntry); 8720 } 8721 return value_; 8722 } 8723 private com.google.protobuf.MapField<java.lang.String, java.lang.String> 8724 internalGetMutableValue() { 8725 onChanged();; 8726 if (value_ == null) { 8727 value_ = com.google.protobuf.MapField.newMapField( 8728 ValueDefaultEntryHolder.defaultEntry); 8729 } 8730 if (!value_.isMutable()) { 8731 value_ = value_.copy(); 8732 } 8733 return value_; 8734 } 8735 /** 8736 * <code>map<string, string> value = 1;</code> 8737 */ 8738 public java.util.Map<java.lang.String, java.lang.String> getValue() { 8739 return internalGetValue().getMap(); 8740 } 8741 /** 8742 * <code>map<string, string> value = 1;</code> 8743 */ 8744 public java.util.Map<java.lang.String, java.lang.String> 8745 getMutableValue() { 8746 return internalGetMutableValue().getMutableMap(); 8747 } 8748 /** 8749 * <code>map<string, string> value = 1;</code> 8750 */ 8751 public Builder putAllValue( 8752 java.util.Map<java.lang.String, java.lang.String> values) { 8753 getMutableValue().putAll(values); 8754 return this; 8755 } 8756 8757 // @@protoc_insertion_point(builder_scope:sonarqube.ws.settings.FieldValues.Value) 8758 } 8759 8760 // @@protoc_insertion_point(class_scope:sonarqube.ws.settings.FieldValues.Value) 8761 private static final org.sonarqube.ws.Settings.FieldValues.Value DEFAULT_INSTANCE; 8762 static { 8763 DEFAULT_INSTANCE = new org.sonarqube.ws.Settings.FieldValues.Value(); 8764 } 8765 8766 public static org.sonarqube.ws.Settings.FieldValues.Value getDefaultInstance() { 8767 return DEFAULT_INSTANCE; 8768 } 8769 8770 @java.lang.Deprecated public static final com.google.protobuf.Parser<Value> 8771 PARSER = new com.google.protobuf.AbstractParser<Value>() { 8772 public Value parsePartialFrom( 8773 com.google.protobuf.CodedInputStream input, 8774 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8775 throws com.google.protobuf.InvalidProtocolBufferException { 8776 try { 8777 return new Value(input, extensionRegistry); 8778 } catch (RuntimeException e) { 8779 if (e.getCause() instanceof 8780 com.google.protobuf.InvalidProtocolBufferException) { 8781 throw (com.google.protobuf.InvalidProtocolBufferException) 8782 e.getCause(); 8783 } 8784 throw e; 8785 } 8786 } 8787 }; 8788 8789 public static com.google.protobuf.Parser<Value> parser() { 8790 return PARSER; 8791 } 8792 8793 @java.lang.Override 8794 public com.google.protobuf.Parser<Value> getParserForType() { 8795 return PARSER; 8796 } 8797 8798 public org.sonarqube.ws.Settings.FieldValues.Value getDefaultInstanceForType() { 8799 return DEFAULT_INSTANCE; 8800 } 8801 8802 } 8803 8804 public static final int FIELDVALUES_FIELD_NUMBER = 1; 8805 private java.util.List<org.sonarqube.ws.Settings.FieldValues.Value> fieldValues_; 8806 /** 8807 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 8808 */ 8809 public java.util.List<org.sonarqube.ws.Settings.FieldValues.Value> getFieldValuesList() { 8810 return fieldValues_; 8811 } 8812 /** 8813 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 8814 */ 8815 public java.util.List<? extends org.sonarqube.ws.Settings.FieldValues.ValueOrBuilder> 8816 getFieldValuesOrBuilderList() { 8817 return fieldValues_; 8818 } 8819 /** 8820 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 8821 */ 8822 public int getFieldValuesCount() { 8823 return fieldValues_.size(); 8824 } 8825 /** 8826 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 8827 */ 8828 public org.sonarqube.ws.Settings.FieldValues.Value getFieldValues(int index) { 8829 return fieldValues_.get(index); 8830 } 8831 /** 8832 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 8833 */ 8834 public org.sonarqube.ws.Settings.FieldValues.ValueOrBuilder getFieldValuesOrBuilder( 8835 int index) { 8836 return fieldValues_.get(index); 8837 } 8838 8839 private byte memoizedIsInitialized = -1; 8840 public final boolean isInitialized() { 8841 byte isInitialized = memoizedIsInitialized; 8842 if (isInitialized == 1) return true; 8843 if (isInitialized == 0) return false; 8844 8845 memoizedIsInitialized = 1; 8846 return true; 8847 } 8848 8849 public void writeTo(com.google.protobuf.CodedOutputStream output) 8850 throws java.io.IOException { 8851 for (int i = 0; i < fieldValues_.size(); i++) { 8852 output.writeMessage(1, fieldValues_.get(i)); 8853 } 8854 unknownFields.writeTo(output); 8855 } 8856 8857 public int getSerializedSize() { 8858 int size = memoizedSize; 8859 if (size != -1) return size; 8860 8861 size = 0; 8862 for (int i = 0; i < fieldValues_.size(); i++) { 8863 size += com.google.protobuf.CodedOutputStream 8864 .computeMessageSize(1, fieldValues_.get(i)); 8865 } 8866 size += unknownFields.getSerializedSize(); 8867 memoizedSize = size; 8868 return size; 8869 } 8870 8871 private static final long serialVersionUID = 0L; 8872 public static org.sonarqube.ws.Settings.FieldValues parseFrom( 8873 com.google.protobuf.ByteString data) 8874 throws com.google.protobuf.InvalidProtocolBufferException { 8875 return PARSER.parseFrom(data); 8876 } 8877 public static org.sonarqube.ws.Settings.FieldValues parseFrom( 8878 com.google.protobuf.ByteString data, 8879 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8880 throws com.google.protobuf.InvalidProtocolBufferException { 8881 return PARSER.parseFrom(data, extensionRegistry); 8882 } 8883 public static org.sonarqube.ws.Settings.FieldValues parseFrom(byte[] data) 8884 throws com.google.protobuf.InvalidProtocolBufferException { 8885 return PARSER.parseFrom(data); 8886 } 8887 public static org.sonarqube.ws.Settings.FieldValues parseFrom( 8888 byte[] data, 8889 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8890 throws com.google.protobuf.InvalidProtocolBufferException { 8891 return PARSER.parseFrom(data, extensionRegistry); 8892 } 8893 public static org.sonarqube.ws.Settings.FieldValues parseFrom(java.io.InputStream input) 8894 throws java.io.IOException { 8895 return PARSER.parseFrom(input); 8896 } 8897 public static org.sonarqube.ws.Settings.FieldValues parseFrom( 8898 java.io.InputStream input, 8899 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8900 throws java.io.IOException { 8901 return PARSER.parseFrom(input, extensionRegistry); 8902 } 8903 public static org.sonarqube.ws.Settings.FieldValues parseDelimitedFrom(java.io.InputStream input) 8904 throws java.io.IOException { 8905 return PARSER.parseDelimitedFrom(input); 8906 } 8907 public static org.sonarqube.ws.Settings.FieldValues parseDelimitedFrom( 8908 java.io.InputStream input, 8909 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8910 throws java.io.IOException { 8911 return PARSER.parseDelimitedFrom(input, extensionRegistry); 8912 } 8913 public static org.sonarqube.ws.Settings.FieldValues parseFrom( 8914 com.google.protobuf.CodedInputStream input) 8915 throws java.io.IOException { 8916 return PARSER.parseFrom(input); 8917 } 8918 public static org.sonarqube.ws.Settings.FieldValues parseFrom( 8919 com.google.protobuf.CodedInputStream input, 8920 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 8921 throws java.io.IOException { 8922 return PARSER.parseFrom(input, extensionRegistry); 8923 } 8924 8925 public Builder newBuilderForType() { return newBuilder(); } 8926 public static Builder newBuilder() { 8927 return DEFAULT_INSTANCE.toBuilder(); 8928 } 8929 public static Builder newBuilder(org.sonarqube.ws.Settings.FieldValues prototype) { 8930 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 8931 } 8932 public Builder toBuilder() { 8933 return this == DEFAULT_INSTANCE 8934 ? new Builder() : new Builder().mergeFrom(this); 8935 } 8936 8937 @java.lang.Override 8938 protected Builder newBuilderForType( 8939 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 8940 Builder builder = new Builder(parent); 8941 return builder; 8942 } 8943 /** 8944 * Protobuf type {@code sonarqube.ws.settings.FieldValues} 8945 */ 8946 public static final class Builder extends 8947 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 8948 // @@protoc_insertion_point(builder_implements:sonarqube.ws.settings.FieldValues) 8949 org.sonarqube.ws.Settings.FieldValuesOrBuilder { 8950 public static final com.google.protobuf.Descriptors.Descriptor 8951 getDescriptor() { 8952 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_FieldValues_descriptor; 8953 } 8954 8955 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 8956 internalGetFieldAccessorTable() { 8957 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_FieldValues_fieldAccessorTable 8958 .ensureFieldAccessorsInitialized( 8959 org.sonarqube.ws.Settings.FieldValues.class, org.sonarqube.ws.Settings.FieldValues.Builder.class); 8960 } 8961 8962 // Construct using org.sonarqube.ws.Settings.FieldValues.newBuilder() 8963 private Builder() { 8964 maybeForceBuilderInitialization(); 8965 } 8966 8967 private Builder( 8968 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 8969 super(parent); 8970 maybeForceBuilderInitialization(); 8971 } 8972 private void maybeForceBuilderInitialization() { 8973 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 8974 getFieldValuesFieldBuilder(); 8975 } 8976 } 8977 public Builder clear() { 8978 super.clear(); 8979 if (fieldValuesBuilder_ == null) { 8980 fieldValues_ = java.util.Collections.emptyList(); 8981 bitField0_ = (bitField0_ & ~0x00000001); 8982 } else { 8983 fieldValuesBuilder_.clear(); 8984 } 8985 return this; 8986 } 8987 8988 public com.google.protobuf.Descriptors.Descriptor 8989 getDescriptorForType() { 8990 return org.sonarqube.ws.Settings.internal_static_sonarqube_ws_settings_FieldValues_descriptor; 8991 } 8992 8993 public org.sonarqube.ws.Settings.FieldValues getDefaultInstanceForType() { 8994 return org.sonarqube.ws.Settings.FieldValues.getDefaultInstance(); 8995 } 8996 8997 public org.sonarqube.ws.Settings.FieldValues build() { 8998 org.sonarqube.ws.Settings.FieldValues result = buildPartial(); 8999 if (!result.isInitialized()) { 9000 throw newUninitializedMessageException(result); 9001 } 9002 return result; 9003 } 9004 9005 public org.sonarqube.ws.Settings.FieldValues buildPartial() { 9006 org.sonarqube.ws.Settings.FieldValues result = new org.sonarqube.ws.Settings.FieldValues(this); 9007 int from_bitField0_ = bitField0_; 9008 if (fieldValuesBuilder_ == null) { 9009 if (((bitField0_ & 0x00000001) == 0x00000001)) { 9010 fieldValues_ = java.util.Collections.unmodifiableList(fieldValues_); 9011 bitField0_ = (bitField0_ & ~0x00000001); 9012 } 9013 result.fieldValues_ = fieldValues_; 9014 } else { 9015 result.fieldValues_ = fieldValuesBuilder_.build(); 9016 } 9017 onBuilt(); 9018 return result; 9019 } 9020 9021 public Builder mergeFrom(com.google.protobuf.Message other) { 9022 if (other instanceof org.sonarqube.ws.Settings.FieldValues) { 9023 return mergeFrom((org.sonarqube.ws.Settings.FieldValues)other); 9024 } else { 9025 super.mergeFrom(other); 9026 return this; 9027 } 9028 } 9029 9030 public Builder mergeFrom(org.sonarqube.ws.Settings.FieldValues other) { 9031 if (other == org.sonarqube.ws.Settings.FieldValues.getDefaultInstance()) return this; 9032 if (fieldValuesBuilder_ == null) { 9033 if (!other.fieldValues_.isEmpty()) { 9034 if (fieldValues_.isEmpty()) { 9035 fieldValues_ = other.fieldValues_; 9036 bitField0_ = (bitField0_ & ~0x00000001); 9037 } else { 9038 ensureFieldValuesIsMutable(); 9039 fieldValues_.addAll(other.fieldValues_); 9040 } 9041 onChanged(); 9042 } 9043 } else { 9044 if (!other.fieldValues_.isEmpty()) { 9045 if (fieldValuesBuilder_.isEmpty()) { 9046 fieldValuesBuilder_.dispose(); 9047 fieldValuesBuilder_ = null; 9048 fieldValues_ = other.fieldValues_; 9049 bitField0_ = (bitField0_ & ~0x00000001); 9050 fieldValuesBuilder_ = 9051 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? 9052 getFieldValuesFieldBuilder() : null; 9053 } else { 9054 fieldValuesBuilder_.addAllMessages(other.fieldValues_); 9055 } 9056 } 9057 } 9058 this.mergeUnknownFields(other.unknownFields); 9059 onChanged(); 9060 return this; 9061 } 9062 9063 public final boolean isInitialized() { 9064 return true; 9065 } 9066 9067 public Builder mergeFrom( 9068 com.google.protobuf.CodedInputStream input, 9069 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9070 throws java.io.IOException { 9071 org.sonarqube.ws.Settings.FieldValues parsedMessage = null; 9072 try { 9073 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); 9074 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 9075 parsedMessage = (org.sonarqube.ws.Settings.FieldValues) e.getUnfinishedMessage(); 9076 throw e; 9077 } finally { 9078 if (parsedMessage != null) { 9079 mergeFrom(parsedMessage); 9080 } 9081 } 9082 return this; 9083 } 9084 private int bitField0_; 9085 9086 private java.util.List<org.sonarqube.ws.Settings.FieldValues.Value> fieldValues_ = 9087 java.util.Collections.emptyList(); 9088 private void ensureFieldValuesIsMutable() { 9089 if (!((bitField0_ & 0x00000001) == 0x00000001)) { 9090 fieldValues_ = new java.util.ArrayList<org.sonarqube.ws.Settings.FieldValues.Value>(fieldValues_); 9091 bitField0_ |= 0x00000001; 9092 } 9093 } 9094 9095 private com.google.protobuf.RepeatedFieldBuilder< 9096 org.sonarqube.ws.Settings.FieldValues.Value, org.sonarqube.ws.Settings.FieldValues.Value.Builder, org.sonarqube.ws.Settings.FieldValues.ValueOrBuilder> fieldValuesBuilder_; 9097 9098 /** 9099 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9100 */ 9101 public java.util.List<org.sonarqube.ws.Settings.FieldValues.Value> getFieldValuesList() { 9102 if (fieldValuesBuilder_ == null) { 9103 return java.util.Collections.unmodifiableList(fieldValues_); 9104 } else { 9105 return fieldValuesBuilder_.getMessageList(); 9106 } 9107 } 9108 /** 9109 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9110 */ 9111 public int getFieldValuesCount() { 9112 if (fieldValuesBuilder_ == null) { 9113 return fieldValues_.size(); 9114 } else { 9115 return fieldValuesBuilder_.getCount(); 9116 } 9117 } 9118 /** 9119 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9120 */ 9121 public org.sonarqube.ws.Settings.FieldValues.Value getFieldValues(int index) { 9122 if (fieldValuesBuilder_ == null) { 9123 return fieldValues_.get(index); 9124 } else { 9125 return fieldValuesBuilder_.getMessage(index); 9126 } 9127 } 9128 /** 9129 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9130 */ 9131 public Builder setFieldValues( 9132 int index, org.sonarqube.ws.Settings.FieldValues.Value value) { 9133 if (fieldValuesBuilder_ == null) { 9134 if (value == null) { 9135 throw new NullPointerException(); 9136 } 9137 ensureFieldValuesIsMutable(); 9138 fieldValues_.set(index, value); 9139 onChanged(); 9140 } else { 9141 fieldValuesBuilder_.setMessage(index, value); 9142 } 9143 return this; 9144 } 9145 /** 9146 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9147 */ 9148 public Builder setFieldValues( 9149 int index, org.sonarqube.ws.Settings.FieldValues.Value.Builder builderForValue) { 9150 if (fieldValuesBuilder_ == null) { 9151 ensureFieldValuesIsMutable(); 9152 fieldValues_.set(index, builderForValue.build()); 9153 onChanged(); 9154 } else { 9155 fieldValuesBuilder_.setMessage(index, builderForValue.build()); 9156 } 9157 return this; 9158 } 9159 /** 9160 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9161 */ 9162 public Builder addFieldValues(org.sonarqube.ws.Settings.FieldValues.Value value) { 9163 if (fieldValuesBuilder_ == null) { 9164 if (value == null) { 9165 throw new NullPointerException(); 9166 } 9167 ensureFieldValuesIsMutable(); 9168 fieldValues_.add(value); 9169 onChanged(); 9170 } else { 9171 fieldValuesBuilder_.addMessage(value); 9172 } 9173 return this; 9174 } 9175 /** 9176 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9177 */ 9178 public Builder addFieldValues( 9179 int index, org.sonarqube.ws.Settings.FieldValues.Value value) { 9180 if (fieldValuesBuilder_ == null) { 9181 if (value == null) { 9182 throw new NullPointerException(); 9183 } 9184 ensureFieldValuesIsMutable(); 9185 fieldValues_.add(index, value); 9186 onChanged(); 9187 } else { 9188 fieldValuesBuilder_.addMessage(index, value); 9189 } 9190 return this; 9191 } 9192 /** 9193 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9194 */ 9195 public Builder addFieldValues( 9196 org.sonarqube.ws.Settings.FieldValues.Value.Builder builderForValue) { 9197 if (fieldValuesBuilder_ == null) { 9198 ensureFieldValuesIsMutable(); 9199 fieldValues_.add(builderForValue.build()); 9200 onChanged(); 9201 } else { 9202 fieldValuesBuilder_.addMessage(builderForValue.build()); 9203 } 9204 return this; 9205 } 9206 /** 9207 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9208 */ 9209 public Builder addFieldValues( 9210 int index, org.sonarqube.ws.Settings.FieldValues.Value.Builder builderForValue) { 9211 if (fieldValuesBuilder_ == null) { 9212 ensureFieldValuesIsMutable(); 9213 fieldValues_.add(index, builderForValue.build()); 9214 onChanged(); 9215 } else { 9216 fieldValuesBuilder_.addMessage(index, builderForValue.build()); 9217 } 9218 return this; 9219 } 9220 /** 9221 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9222 */ 9223 public Builder addAllFieldValues( 9224 java.lang.Iterable<? extends org.sonarqube.ws.Settings.FieldValues.Value> values) { 9225 if (fieldValuesBuilder_ == null) { 9226 ensureFieldValuesIsMutable(); 9227 com.google.protobuf.AbstractMessageLite.Builder.addAll( 9228 values, fieldValues_); 9229 onChanged(); 9230 } else { 9231 fieldValuesBuilder_.addAllMessages(values); 9232 } 9233 return this; 9234 } 9235 /** 9236 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9237 */ 9238 public Builder clearFieldValues() { 9239 if (fieldValuesBuilder_ == null) { 9240 fieldValues_ = java.util.Collections.emptyList(); 9241 bitField0_ = (bitField0_ & ~0x00000001); 9242 onChanged(); 9243 } else { 9244 fieldValuesBuilder_.clear(); 9245 } 9246 return this; 9247 } 9248 /** 9249 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9250 */ 9251 public Builder removeFieldValues(int index) { 9252 if (fieldValuesBuilder_ == null) { 9253 ensureFieldValuesIsMutable(); 9254 fieldValues_.remove(index); 9255 onChanged(); 9256 } else { 9257 fieldValuesBuilder_.remove(index); 9258 } 9259 return this; 9260 } 9261 /** 9262 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9263 */ 9264 public org.sonarqube.ws.Settings.FieldValues.Value.Builder getFieldValuesBuilder( 9265 int index) { 9266 return getFieldValuesFieldBuilder().getBuilder(index); 9267 } 9268 /** 9269 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9270 */ 9271 public org.sonarqube.ws.Settings.FieldValues.ValueOrBuilder getFieldValuesOrBuilder( 9272 int index) { 9273 if (fieldValuesBuilder_ == null) { 9274 return fieldValues_.get(index); } else { 9275 return fieldValuesBuilder_.getMessageOrBuilder(index); 9276 } 9277 } 9278 /** 9279 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9280 */ 9281 public java.util.List<? extends org.sonarqube.ws.Settings.FieldValues.ValueOrBuilder> 9282 getFieldValuesOrBuilderList() { 9283 if (fieldValuesBuilder_ != null) { 9284 return fieldValuesBuilder_.getMessageOrBuilderList(); 9285 } else { 9286 return java.util.Collections.unmodifiableList(fieldValues_); 9287 } 9288 } 9289 /** 9290 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9291 */ 9292 public org.sonarqube.ws.Settings.FieldValues.Value.Builder addFieldValuesBuilder() { 9293 return getFieldValuesFieldBuilder().addBuilder( 9294 org.sonarqube.ws.Settings.FieldValues.Value.getDefaultInstance()); 9295 } 9296 /** 9297 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9298 */ 9299 public org.sonarqube.ws.Settings.FieldValues.Value.Builder addFieldValuesBuilder( 9300 int index) { 9301 return getFieldValuesFieldBuilder().addBuilder( 9302 index, org.sonarqube.ws.Settings.FieldValues.Value.getDefaultInstance()); 9303 } 9304 /** 9305 * <code>repeated .sonarqube.ws.settings.FieldValues.Value fieldValues = 1;</code> 9306 */ 9307 public java.util.List<org.sonarqube.ws.Settings.FieldValues.Value.Builder> 9308 getFieldValuesBuilderList() { 9309 return getFieldValuesFieldBuilder().getBuilderList(); 9310 } 9311 private com.google.protobuf.RepeatedFieldBuilder< 9312 org.sonarqube.ws.Settings.FieldValues.Value, org.sonarqube.ws.Settings.FieldValues.Value.Builder, org.sonarqube.ws.Settings.FieldValues.ValueOrBuilder> 9313 getFieldValuesFieldBuilder() { 9314 if (fieldValuesBuilder_ == null) { 9315 fieldValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< 9316 org.sonarqube.ws.Settings.FieldValues.Value, org.sonarqube.ws.Settings.FieldValues.Value.Builder, org.sonarqube.ws.Settings.FieldValues.ValueOrBuilder>( 9317 fieldValues_, 9318 ((bitField0_ & 0x00000001) == 0x00000001), 9319 getParentForChildren(), 9320 isClean()); 9321 fieldValues_ = null; 9322 } 9323 return fieldValuesBuilder_; 9324 } 9325 9326 // @@protoc_insertion_point(builder_scope:sonarqube.ws.settings.FieldValues) 9327 } 9328 9329 // @@protoc_insertion_point(class_scope:sonarqube.ws.settings.FieldValues) 9330 private static final org.sonarqube.ws.Settings.FieldValues DEFAULT_INSTANCE; 9331 static { 9332 DEFAULT_INSTANCE = new org.sonarqube.ws.Settings.FieldValues(); 9333 } 9334 9335 public static org.sonarqube.ws.Settings.FieldValues getDefaultInstance() { 9336 return DEFAULT_INSTANCE; 9337 } 9338 9339 @java.lang.Deprecated public static final com.google.protobuf.Parser<FieldValues> 9340 PARSER = new com.google.protobuf.AbstractParser<FieldValues>() { 9341 public FieldValues parsePartialFrom( 9342 com.google.protobuf.CodedInputStream input, 9343 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 9344 throws com.google.protobuf.InvalidProtocolBufferException { 9345 try { 9346 return new FieldValues(input, extensionRegistry); 9347 } catch (RuntimeException e) { 9348 if (e.getCause() instanceof 9349 com.google.protobuf.InvalidProtocolBufferException) { 9350 throw (com.google.protobuf.InvalidProtocolBufferException) 9351 e.getCause(); 9352 } 9353 throw e; 9354 } 9355 } 9356 }; 9357 9358 public static com.google.protobuf.Parser<FieldValues> parser() { 9359 return PARSER; 9360 } 9361 9362 @java.lang.Override 9363 public com.google.protobuf.Parser<FieldValues> getParserForType() { 9364 return PARSER; 9365 } 9366 9367 public org.sonarqube.ws.Settings.FieldValues getDefaultInstanceForType() { 9368 return DEFAULT_INSTANCE; 9369 } 9370 9371 } 9372 9373 private static com.google.protobuf.Descriptors.Descriptor 9374 internal_static_sonarqube_ws_settings_ListDefinitionsWsResponse_descriptor; 9375 private static 9376 com.google.protobuf.GeneratedMessage.FieldAccessorTable 9377 internal_static_sonarqube_ws_settings_ListDefinitionsWsResponse_fieldAccessorTable; 9378 private static com.google.protobuf.Descriptors.Descriptor 9379 internal_static_sonarqube_ws_settings_EncryptWsResponse_descriptor; 9380 private static 9381 com.google.protobuf.GeneratedMessage.FieldAccessorTable 9382 internal_static_sonarqube_ws_settings_EncryptWsResponse_fieldAccessorTable; 9383 private static com.google.protobuf.Descriptors.Descriptor 9384 internal_static_sonarqube_ws_settings_GenerateSecretKeyWsResponse_descriptor; 9385 private static 9386 com.google.protobuf.GeneratedMessage.FieldAccessorTable 9387 internal_static_sonarqube_ws_settings_GenerateSecretKeyWsResponse_fieldAccessorTable; 9388 private static com.google.protobuf.Descriptors.Descriptor 9389 internal_static_sonarqube_ws_settings_CheckSecretKeyWsResponse_descriptor; 9390 private static 9391 com.google.protobuf.GeneratedMessage.FieldAccessorTable 9392 internal_static_sonarqube_ws_settings_CheckSecretKeyWsResponse_fieldAccessorTable; 9393 private static com.google.protobuf.Descriptors.Descriptor 9394 internal_static_sonarqube_ws_settings_Definition_descriptor; 9395 private static 9396 com.google.protobuf.GeneratedMessage.FieldAccessorTable 9397 internal_static_sonarqube_ws_settings_Definition_fieldAccessorTable; 9398 private static com.google.protobuf.Descriptors.Descriptor 9399 internal_static_sonarqube_ws_settings_Field_descriptor; 9400 private static 9401 com.google.protobuf.GeneratedMessage.FieldAccessorTable 9402 internal_static_sonarqube_ws_settings_Field_fieldAccessorTable; 9403 private static com.google.protobuf.Descriptors.Descriptor 9404 internal_static_sonarqube_ws_settings_ValuesWsResponse_descriptor; 9405 private static 9406 com.google.protobuf.GeneratedMessage.FieldAccessorTable 9407 internal_static_sonarqube_ws_settings_ValuesWsResponse_fieldAccessorTable; 9408 private static com.google.protobuf.Descriptors.Descriptor 9409 internal_static_sonarqube_ws_settings_Setting_descriptor; 9410 private static 9411 com.google.protobuf.GeneratedMessage.FieldAccessorTable 9412 internal_static_sonarqube_ws_settings_Setting_fieldAccessorTable; 9413 private static com.google.protobuf.Descriptors.Descriptor 9414 internal_static_sonarqube_ws_settings_Values_descriptor; 9415 private static 9416 com.google.protobuf.GeneratedMessage.FieldAccessorTable 9417 internal_static_sonarqube_ws_settings_Values_fieldAccessorTable; 9418 private static com.google.protobuf.Descriptors.Descriptor 9419 internal_static_sonarqube_ws_settings_FieldValues_descriptor; 9420 private static 9421 com.google.protobuf.GeneratedMessage.FieldAccessorTable 9422 internal_static_sonarqube_ws_settings_FieldValues_fieldAccessorTable; 9423 private static com.google.protobuf.Descriptors.Descriptor 9424 internal_static_sonarqube_ws_settings_FieldValues_Value_descriptor; 9425 private static 9426 com.google.protobuf.GeneratedMessage.FieldAccessorTable 9427 internal_static_sonarqube_ws_settings_FieldValues_Value_fieldAccessorTable; 9428 private static com.google.protobuf.Descriptors.Descriptor 9429 internal_static_sonarqube_ws_settings_FieldValues_Value_ValueEntry_descriptor; 9430 private static 9431 com.google.protobuf.GeneratedMessage.FieldAccessorTable 9432 internal_static_sonarqube_ws_settings_FieldValues_Value_ValueEntry_fieldAccessorTable; 9433 9434 public static com.google.protobuf.Descriptors.FileDescriptor 9435 getDescriptor() { 9436 return descriptor; 9437 } 9438 private static com.google.protobuf.Descriptors.FileDescriptor 9439 descriptor; 9440 static { 9441 java.lang.String[] descriptorData = { 9442 "\n\021ws-settings.proto\022\025sonarqube.ws.settin" + 9443 "gs\"S\n\031ListDefinitionsWsResponse\0226\n\013defin" + 9444 "itions\030\001 \003(\0132!.sonarqube.ws.settings.Def" + 9445 "inition\"+\n\021EncryptWsResponse\022\026\n\016encrypte" + 9446 "dValue\030\001 \001(\t\"0\n\033GenerateSecretKeyWsRespo" + 9447 "nse\022\021\n\tsecretKey\030\001 \001(\t\"6\n\030CheckSecretKey" + 9448 "WsResponse\022\032\n\022secretKeyAvailable\030\001 \001(\010\"\217" + 9449 "\002\n\nDefinition\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002 \001(\t" + 9450 "\022\023\n\013description\030\003 \001(\t\022)\n\004type\030\004 \001(\0162\033.so" + 9451 "narqube.ws.settings.Type\022\020\n\010category\030\005 \001", 9452 "(\t\022\023\n\013subCategory\030\006 \001(\t\022\024\n\014defaultValue\030" + 9453 "\007 \001(\t\022\023\n\013multiValues\030\010 \001(\010\022\017\n\007options\030\t " + 9454 "\003(\t\022,\n\006fields\030\n \003(\0132\034.sonarqube.ws.setti" + 9455 "ngs.Field\022\025\n\rdeprecatedKey\030\013 \001(\t\"s\n\005Fiel" + 9456 "d\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\023\n\013descript" + 9457 "ion\030\003 \001(\t\022)\n\004type\030\004 \001(\0162\033.sonarqube.ws.s" + 9458 "ettings.Type\022\017\n\007options\030\005 \003(\t\"D\n\020ValuesW" + 9459 "sResponse\0220\n\010settings\030\001 \003(\0132\036.sonarqube." + 9460 "ws.settings.Setting\"\251\002\n\007Setting\022\013\n\003key\030\001" + 9461 " \001(\t\022\r\n\005value\030\002 \001(\t\022-\n\006values\030\003 \001(\0132\035.so", 9462 "narqube.ws.settings.Values\0227\n\013fieldValue" + 9463 "s\030\004 \001(\0132\".sonarqube.ws.settings.FieldVal" + 9464 "ues\022\021\n\tinherited\030\005 \001(\010\022\023\n\013parentValue\030\006 " + 9465 "\001(\t\0223\n\014parentValues\030\007 \001(\0132\035.sonarqube.ws" + 9466 ".settings.Values\022=\n\021parentFieldValues\030\010 " + 9467 "\001(\0132\".sonarqube.ws.settings.FieldValues\"" + 9468 "\030\n\006Values\022\016\n\006values\030\001 \003(\t\"\307\001\n\013FieldValue" + 9469 "s\022=\n\013fieldValues\030\001 \003(\0132(.sonarqube.ws.se" + 9470 "ttings.FieldValues.Value\032y\n\005Value\022B\n\005val" + 9471 "ue\030\001 \003(\01323.sonarqube.ws.settings.FieldVa", 9472 "lues.Value.ValueEntry\032,\n\nValueEntry\022\013\n\003k" + 9473 "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001*\326\001\n\004Type\022\n\n\006" + 9474 "STRING\020\000\022\010\n\004TEXT\020\001\022\014\n\010PASSWORD\020\002\022\013\n\007BOOL" + 9475 "EAN\020\003\022\013\n\007INTEGER\020\004\022\t\n\005FLOAT\020\005\022\010\n\004LONG\020\006\022" + 9476 "\026\n\022REGULAR_EXPRESSION\020\007\022\n\n\006METRIC\020\010\022\016\n\nU" + 9477 "SER_LOGIN\020\t\022\020\n\014METRIC_LEVEL\020\n\022\026\n\022SINGLE_" + 9478 "SELECT_LIST\020\013\022\020\n\014PROPERTY_SET\020\014\022\013\n\007LICEN" + 9479 "SE\020\rB\036\n\020org.sonarqube.wsB\010SettingsH\001" 9480 }; 9481 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = 9482 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { 9483 public com.google.protobuf.ExtensionRegistry assignDescriptors( 9484 com.google.protobuf.Descriptors.FileDescriptor root) { 9485 descriptor = root; 9486 return null; 9487 } 9488 }; 9489 com.google.protobuf.Descriptors.FileDescriptor 9490 .internalBuildGeneratedFileFrom(descriptorData, 9491 new com.google.protobuf.Descriptors.FileDescriptor[] { 9492 }, assigner); 9493 internal_static_sonarqube_ws_settings_ListDefinitionsWsResponse_descriptor = 9494 getDescriptor().getMessageTypes().get(0); 9495 internal_static_sonarqube_ws_settings_ListDefinitionsWsResponse_fieldAccessorTable = new 9496 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 9497 internal_static_sonarqube_ws_settings_ListDefinitionsWsResponse_descriptor, 9498 new java.lang.String[] { "Definitions", }); 9499 internal_static_sonarqube_ws_settings_EncryptWsResponse_descriptor = 9500 getDescriptor().getMessageTypes().get(1); 9501 internal_static_sonarqube_ws_settings_EncryptWsResponse_fieldAccessorTable = new 9502 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 9503 internal_static_sonarqube_ws_settings_EncryptWsResponse_descriptor, 9504 new java.lang.String[] { "EncryptedValue", }); 9505 internal_static_sonarqube_ws_settings_GenerateSecretKeyWsResponse_descriptor = 9506 getDescriptor().getMessageTypes().get(2); 9507 internal_static_sonarqube_ws_settings_GenerateSecretKeyWsResponse_fieldAccessorTable = new 9508 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 9509 internal_static_sonarqube_ws_settings_GenerateSecretKeyWsResponse_descriptor, 9510 new java.lang.String[] { "SecretKey", }); 9511 internal_static_sonarqube_ws_settings_CheckSecretKeyWsResponse_descriptor = 9512 getDescriptor().getMessageTypes().get(3); 9513 internal_static_sonarqube_ws_settings_CheckSecretKeyWsResponse_fieldAccessorTable = new 9514 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 9515 internal_static_sonarqube_ws_settings_CheckSecretKeyWsResponse_descriptor, 9516 new java.lang.String[] { "SecretKeyAvailable", }); 9517 internal_static_sonarqube_ws_settings_Definition_descriptor = 9518 getDescriptor().getMessageTypes().get(4); 9519 internal_static_sonarqube_ws_settings_Definition_fieldAccessorTable = new 9520 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 9521 internal_static_sonarqube_ws_settings_Definition_descriptor, 9522 new java.lang.String[] { "Key", "Name", "Description", "Type", "Category", "SubCategory", "DefaultValue", "MultiValues", "Options", "Fields", "DeprecatedKey", }); 9523 internal_static_sonarqube_ws_settings_Field_descriptor = 9524 getDescriptor().getMessageTypes().get(5); 9525 internal_static_sonarqube_ws_settings_Field_fieldAccessorTable = new 9526 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 9527 internal_static_sonarqube_ws_settings_Field_descriptor, 9528 new java.lang.String[] { "Key", "Name", "Description", "Type", "Options", }); 9529 internal_static_sonarqube_ws_settings_ValuesWsResponse_descriptor = 9530 getDescriptor().getMessageTypes().get(6); 9531 internal_static_sonarqube_ws_settings_ValuesWsResponse_fieldAccessorTable = new 9532 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 9533 internal_static_sonarqube_ws_settings_ValuesWsResponse_descriptor, 9534 new java.lang.String[] { "Settings", }); 9535 internal_static_sonarqube_ws_settings_Setting_descriptor = 9536 getDescriptor().getMessageTypes().get(7); 9537 internal_static_sonarqube_ws_settings_Setting_fieldAccessorTable = new 9538 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 9539 internal_static_sonarqube_ws_settings_Setting_descriptor, 9540 new java.lang.String[] { "Key", "Value", "Values", "FieldValues", "Inherited", "ParentValue", "ParentValues", "ParentFieldValues", }); 9541 internal_static_sonarqube_ws_settings_Values_descriptor = 9542 getDescriptor().getMessageTypes().get(8); 9543 internal_static_sonarqube_ws_settings_Values_fieldAccessorTable = new 9544 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 9545 internal_static_sonarqube_ws_settings_Values_descriptor, 9546 new java.lang.String[] { "Values", }); 9547 internal_static_sonarqube_ws_settings_FieldValues_descriptor = 9548 getDescriptor().getMessageTypes().get(9); 9549 internal_static_sonarqube_ws_settings_FieldValues_fieldAccessorTable = new 9550 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 9551 internal_static_sonarqube_ws_settings_FieldValues_descriptor, 9552 new java.lang.String[] { "FieldValues", }); 9553 internal_static_sonarqube_ws_settings_FieldValues_Value_descriptor = 9554 internal_static_sonarqube_ws_settings_FieldValues_descriptor.getNestedTypes().get(0); 9555 internal_static_sonarqube_ws_settings_FieldValues_Value_fieldAccessorTable = new 9556 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 9557 internal_static_sonarqube_ws_settings_FieldValues_Value_descriptor, 9558 new java.lang.String[] { "Value", }); 9559 internal_static_sonarqube_ws_settings_FieldValues_Value_ValueEntry_descriptor = 9560 internal_static_sonarqube_ws_settings_FieldValues_Value_descriptor.getNestedTypes().get(0); 9561 internal_static_sonarqube_ws_settings_FieldValues_Value_ValueEntry_fieldAccessorTable = new 9562 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 9563 internal_static_sonarqube_ws_settings_FieldValues_Value_ValueEntry_descriptor, 9564 new java.lang.String[] { "Key", "Value", }); 9565 } 9566 9567 // @@protoc_insertion_point(outer_class_scope) 9568}