001// Generated by the protocol buffer compiler. DO NOT EDIT! 002// source: olcut_proto.proto 003 004// Protobuf Java Version: 3.25.5 005package com.oracle.labs.mlrg.olcut.config.protobuf.protos; 006 007/** 008 * <pre> 009 * 010 *A property list in a component. 011 * </pre> 012 * 013 * Protobuf type {@code olcut.PropertyListProto} 014 */ 015public final class PropertyListProto extends 016 com.google.protobuf.GeneratedMessageV3 implements 017 // @@protoc_insertion_point(message_implements:olcut.PropertyListProto) 018 PropertyListProtoOrBuilder { 019private static final long serialVersionUID = 0L; 020 // Use PropertyListProto.newBuilder() to construct. 021 private PropertyListProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 022 super(builder); 023 } 024 private PropertyListProto() { 025 name_ = ""; 026 item_ = 027 com.google.protobuf.LazyStringArrayList.emptyList(); 028 type_ = 029 com.google.protobuf.LazyStringArrayList.emptyList(); 030 } 031 032 @java.lang.Override 033 @SuppressWarnings({"unused"}) 034 protected java.lang.Object newInstance( 035 UnusedPrivateParameter unused) { 036 return new PropertyListProto(); 037 } 038 039 public static final com.google.protobuf.Descriptors.Descriptor 040 getDescriptor() { 041 return com.oracle.labs.mlrg.olcut.config.protobuf.protos.OlcutProto.internal_static_olcut_PropertyListProto_descriptor; 042 } 043 044 @java.lang.Override 045 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 046 internalGetFieldAccessorTable() { 047 return com.oracle.labs.mlrg.olcut.config.protobuf.protos.OlcutProto.internal_static_olcut_PropertyListProto_fieldAccessorTable 048 .ensureFieldAccessorsInitialized( 049 com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto.class, com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto.Builder.class); 050 } 051 052 public static final int NAME_FIELD_NUMBER = 1; 053 @SuppressWarnings("serial") 054 private volatile java.lang.Object name_ = ""; 055 /** 056 * <code>string name = 1;</code> 057 * @return The name. 058 */ 059 @java.lang.Override 060 public java.lang.String getName() { 061 java.lang.Object ref = name_; 062 if (ref instanceof java.lang.String) { 063 return (java.lang.String) ref; 064 } else { 065 com.google.protobuf.ByteString bs = 066 (com.google.protobuf.ByteString) ref; 067 java.lang.String s = bs.toStringUtf8(); 068 name_ = s; 069 return s; 070 } 071 } 072 /** 073 * <code>string name = 1;</code> 074 * @return The bytes for name. 075 */ 076 @java.lang.Override 077 public com.google.protobuf.ByteString 078 getNameBytes() { 079 java.lang.Object ref = name_; 080 if (ref instanceof java.lang.String) { 081 com.google.protobuf.ByteString b = 082 com.google.protobuf.ByteString.copyFromUtf8( 083 (java.lang.String) ref); 084 name_ = b; 085 return b; 086 } else { 087 return (com.google.protobuf.ByteString) ref; 088 } 089 } 090 091 public static final int ITEM_FIELD_NUMBER = 2; 092 @SuppressWarnings("serial") 093 private com.google.protobuf.LazyStringArrayList item_ = 094 com.google.protobuf.LazyStringArrayList.emptyList(); 095 /** 096 * <code>repeated string item = 2;</code> 097 * @return A list containing the item. 098 */ 099 public com.google.protobuf.ProtocolStringList 100 getItemList() { 101 return item_; 102 } 103 /** 104 * <code>repeated string item = 2;</code> 105 * @return The count of item. 106 */ 107 public int getItemCount() { 108 return item_.size(); 109 } 110 /** 111 * <code>repeated string item = 2;</code> 112 * @param index The index of the element to return. 113 * @return The item at the given index. 114 */ 115 public java.lang.String getItem(int index) { 116 return item_.get(index); 117 } 118 /** 119 * <code>repeated string item = 2;</code> 120 * @param index The index of the value to return. 121 * @return The bytes of the item at the given index. 122 */ 123 public com.google.protobuf.ByteString 124 getItemBytes(int index) { 125 return item_.getByteString(index); 126 } 127 128 public static final int TYPE_FIELD_NUMBER = 3; 129 @SuppressWarnings("serial") 130 private com.google.protobuf.LazyStringArrayList type_ = 131 com.google.protobuf.LazyStringArrayList.emptyList(); 132 /** 133 * <code>repeated string type = 3;</code> 134 * @return A list containing the type. 135 */ 136 public com.google.protobuf.ProtocolStringList 137 getTypeList() { 138 return type_; 139 } 140 /** 141 * <code>repeated string type = 3;</code> 142 * @return The count of type. 143 */ 144 public int getTypeCount() { 145 return type_.size(); 146 } 147 /** 148 * <code>repeated string type = 3;</code> 149 * @param index The index of the element to return. 150 * @return The type at the given index. 151 */ 152 public java.lang.String getType(int index) { 153 return type_.get(index); 154 } 155 /** 156 * <code>repeated string type = 3;</code> 157 * @param index The index of the value to return. 158 * @return The bytes of the type at the given index. 159 */ 160 public com.google.protobuf.ByteString 161 getTypeBytes(int index) { 162 return type_.getByteString(index); 163 } 164 165 private byte memoizedIsInitialized = -1; 166 @java.lang.Override 167 public final boolean isInitialized() { 168 byte isInitialized = memoizedIsInitialized; 169 if (isInitialized == 1) return true; 170 if (isInitialized == 0) return false; 171 172 memoizedIsInitialized = 1; 173 return true; 174 } 175 176 @java.lang.Override 177 public void writeTo(com.google.protobuf.CodedOutputStream output) 178 throws java.io.IOException { 179 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 180 com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); 181 } 182 for (int i = 0; i < item_.size(); i++) { 183 com.google.protobuf.GeneratedMessageV3.writeString(output, 2, item_.getRaw(i)); 184 } 185 for (int i = 0; i < type_.size(); i++) { 186 com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_.getRaw(i)); 187 } 188 getUnknownFields().writeTo(output); 189 } 190 191 @java.lang.Override 192 public int getSerializedSize() { 193 int size = memoizedSize; 194 if (size != -1) return size; 195 196 size = 0; 197 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { 198 size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); 199 } 200 { 201 int dataSize = 0; 202 for (int i = 0; i < item_.size(); i++) { 203 dataSize += computeStringSizeNoTag(item_.getRaw(i)); 204 } 205 size += dataSize; 206 size += 1 * getItemList().size(); 207 } 208 { 209 int dataSize = 0; 210 for (int i = 0; i < type_.size(); i++) { 211 dataSize += computeStringSizeNoTag(type_.getRaw(i)); 212 } 213 size += dataSize; 214 size += 1 * getTypeList().size(); 215 } 216 size += getUnknownFields().getSerializedSize(); 217 memoizedSize = size; 218 return size; 219 } 220 221 @java.lang.Override 222 public boolean equals(final java.lang.Object obj) { 223 if (obj == this) { 224 return true; 225 } 226 if (!(obj instanceof com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto)) { 227 return super.equals(obj); 228 } 229 com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto other = (com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto) obj; 230 231 if (!getName() 232 .equals(other.getName())) return false; 233 if (!getItemList() 234 .equals(other.getItemList())) return false; 235 if (!getTypeList() 236 .equals(other.getTypeList())) return false; 237 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 238 return true; 239 } 240 241 @java.lang.Override 242 public int hashCode() { 243 if (memoizedHashCode != 0) { 244 return memoizedHashCode; 245 } 246 int hash = 41; 247 hash = (19 * hash) + getDescriptor().hashCode(); 248 hash = (37 * hash) + NAME_FIELD_NUMBER; 249 hash = (53 * hash) + getName().hashCode(); 250 if (getItemCount() > 0) { 251 hash = (37 * hash) + ITEM_FIELD_NUMBER; 252 hash = (53 * hash) + getItemList().hashCode(); 253 } 254 if (getTypeCount() > 0) { 255 hash = (37 * hash) + TYPE_FIELD_NUMBER; 256 hash = (53 * hash) + getTypeList().hashCode(); 257 } 258 hash = (29 * hash) + getUnknownFields().hashCode(); 259 memoizedHashCode = hash; 260 return hash; 261 } 262 263 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto parseFrom( 264 java.nio.ByteBuffer data) 265 throws com.google.protobuf.InvalidProtocolBufferException { 266 return PARSER.parseFrom(data); 267 } 268 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto parseFrom( 269 java.nio.ByteBuffer data, 270 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 271 throws com.google.protobuf.InvalidProtocolBufferException { 272 return PARSER.parseFrom(data, extensionRegistry); 273 } 274 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto parseFrom( 275 com.google.protobuf.ByteString data) 276 throws com.google.protobuf.InvalidProtocolBufferException { 277 return PARSER.parseFrom(data); 278 } 279 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto parseFrom( 280 com.google.protobuf.ByteString data, 281 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 282 throws com.google.protobuf.InvalidProtocolBufferException { 283 return PARSER.parseFrom(data, extensionRegistry); 284 } 285 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto parseFrom(byte[] data) 286 throws com.google.protobuf.InvalidProtocolBufferException { 287 return PARSER.parseFrom(data); 288 } 289 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto parseFrom( 290 byte[] data, 291 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 292 throws com.google.protobuf.InvalidProtocolBufferException { 293 return PARSER.parseFrom(data, extensionRegistry); 294 } 295 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto parseFrom(java.io.InputStream input) 296 throws java.io.IOException { 297 return com.google.protobuf.GeneratedMessageV3 298 .parseWithIOException(PARSER, input); 299 } 300 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto parseFrom( 301 java.io.InputStream input, 302 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 303 throws java.io.IOException { 304 return com.google.protobuf.GeneratedMessageV3 305 .parseWithIOException(PARSER, input, extensionRegistry); 306 } 307 308 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto parseDelimitedFrom(java.io.InputStream input) 309 throws java.io.IOException { 310 return com.google.protobuf.GeneratedMessageV3 311 .parseDelimitedWithIOException(PARSER, input); 312 } 313 314 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto parseDelimitedFrom( 315 java.io.InputStream input, 316 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 317 throws java.io.IOException { 318 return com.google.protobuf.GeneratedMessageV3 319 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 320 } 321 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto parseFrom( 322 com.google.protobuf.CodedInputStream input) 323 throws java.io.IOException { 324 return com.google.protobuf.GeneratedMessageV3 325 .parseWithIOException(PARSER, input); 326 } 327 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto parseFrom( 328 com.google.protobuf.CodedInputStream input, 329 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 330 throws java.io.IOException { 331 return com.google.protobuf.GeneratedMessageV3 332 .parseWithIOException(PARSER, input, extensionRegistry); 333 } 334 335 @java.lang.Override 336 public Builder newBuilderForType() { return newBuilder(); } 337 public static Builder newBuilder() { 338 return DEFAULT_INSTANCE.toBuilder(); 339 } 340 public static Builder newBuilder(com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto prototype) { 341 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 342 } 343 @java.lang.Override 344 public Builder toBuilder() { 345 return this == DEFAULT_INSTANCE 346 ? new Builder() : new Builder().mergeFrom(this); 347 } 348 349 @java.lang.Override 350 protected Builder newBuilderForType( 351 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 352 Builder builder = new Builder(parent); 353 return builder; 354 } 355 /** 356 * <pre> 357 * 358 *A property list in a component. 359 * </pre> 360 * 361 * Protobuf type {@code olcut.PropertyListProto} 362 */ 363 public static final class Builder extends 364 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 365 // @@protoc_insertion_point(builder_implements:olcut.PropertyListProto) 366 com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProtoOrBuilder { 367 public static final com.google.protobuf.Descriptors.Descriptor 368 getDescriptor() { 369 return com.oracle.labs.mlrg.olcut.config.protobuf.protos.OlcutProto.internal_static_olcut_PropertyListProto_descriptor; 370 } 371 372 @java.lang.Override 373 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 374 internalGetFieldAccessorTable() { 375 return com.oracle.labs.mlrg.olcut.config.protobuf.protos.OlcutProto.internal_static_olcut_PropertyListProto_fieldAccessorTable 376 .ensureFieldAccessorsInitialized( 377 com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto.class, com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto.Builder.class); 378 } 379 380 // Construct using com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto.newBuilder() 381 private Builder() { 382 383 } 384 385 private Builder( 386 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 387 super(parent); 388 389 } 390 @java.lang.Override 391 public Builder clear() { 392 super.clear(); 393 bitField0_ = 0; 394 name_ = ""; 395 item_ = 396 com.google.protobuf.LazyStringArrayList.emptyList(); 397 type_ = 398 com.google.protobuf.LazyStringArrayList.emptyList(); 399 return this; 400 } 401 402 @java.lang.Override 403 public com.google.protobuf.Descriptors.Descriptor 404 getDescriptorForType() { 405 return com.oracle.labs.mlrg.olcut.config.protobuf.protos.OlcutProto.internal_static_olcut_PropertyListProto_descriptor; 406 } 407 408 @java.lang.Override 409 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto getDefaultInstanceForType() { 410 return com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto.getDefaultInstance(); 411 } 412 413 @java.lang.Override 414 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto build() { 415 com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto result = buildPartial(); 416 if (!result.isInitialized()) { 417 throw newUninitializedMessageException(result); 418 } 419 return result; 420 } 421 422 @java.lang.Override 423 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto buildPartial() { 424 com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto result = new com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto(this); 425 if (bitField0_ != 0) { buildPartial0(result); } 426 onBuilt(); 427 return result; 428 } 429 430 private void buildPartial0(com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto result) { 431 int from_bitField0_ = bitField0_; 432 if (((from_bitField0_ & 0x00000001) != 0)) { 433 result.name_ = name_; 434 } 435 if (((from_bitField0_ & 0x00000002) != 0)) { 436 item_.makeImmutable(); 437 result.item_ = item_; 438 } 439 if (((from_bitField0_ & 0x00000004) != 0)) { 440 type_.makeImmutable(); 441 result.type_ = type_; 442 } 443 } 444 445 @java.lang.Override 446 public Builder clone() { 447 return super.clone(); 448 } 449 @java.lang.Override 450 public Builder setField( 451 com.google.protobuf.Descriptors.FieldDescriptor field, 452 java.lang.Object value) { 453 return super.setField(field, value); 454 } 455 @java.lang.Override 456 public Builder clearField( 457 com.google.protobuf.Descriptors.FieldDescriptor field) { 458 return super.clearField(field); 459 } 460 @java.lang.Override 461 public Builder clearOneof( 462 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 463 return super.clearOneof(oneof); 464 } 465 @java.lang.Override 466 public Builder setRepeatedField( 467 com.google.protobuf.Descriptors.FieldDescriptor field, 468 int index, java.lang.Object value) { 469 return super.setRepeatedField(field, index, value); 470 } 471 @java.lang.Override 472 public Builder addRepeatedField( 473 com.google.protobuf.Descriptors.FieldDescriptor field, 474 java.lang.Object value) { 475 return super.addRepeatedField(field, value); 476 } 477 @java.lang.Override 478 public Builder mergeFrom(com.google.protobuf.Message other) { 479 if (other instanceof com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto) { 480 return mergeFrom((com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto)other); 481 } else { 482 super.mergeFrom(other); 483 return this; 484 } 485 } 486 487 public Builder mergeFrom(com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto other) { 488 if (other == com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto.getDefaultInstance()) return this; 489 if (!other.getName().isEmpty()) { 490 name_ = other.name_; 491 bitField0_ |= 0x00000001; 492 onChanged(); 493 } 494 if (!other.item_.isEmpty()) { 495 if (item_.isEmpty()) { 496 item_ = other.item_; 497 bitField0_ |= 0x00000002; 498 } else { 499 ensureItemIsMutable(); 500 item_.addAll(other.item_); 501 } 502 onChanged(); 503 } 504 if (!other.type_.isEmpty()) { 505 if (type_.isEmpty()) { 506 type_ = other.type_; 507 bitField0_ |= 0x00000004; 508 } else { 509 ensureTypeIsMutable(); 510 type_.addAll(other.type_); 511 } 512 onChanged(); 513 } 514 this.mergeUnknownFields(other.getUnknownFields()); 515 onChanged(); 516 return this; 517 } 518 519 @java.lang.Override 520 public final boolean isInitialized() { 521 return true; 522 } 523 524 @java.lang.Override 525 public Builder mergeFrom( 526 com.google.protobuf.CodedInputStream input, 527 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 528 throws java.io.IOException { 529 if (extensionRegistry == null) { 530 throw new java.lang.NullPointerException(); 531 } 532 try { 533 boolean done = false; 534 while (!done) { 535 int tag = input.readTag(); 536 switch (tag) { 537 case 0: 538 done = true; 539 break; 540 case 10: { 541 name_ = input.readStringRequireUtf8(); 542 bitField0_ |= 0x00000001; 543 break; 544 } // case 10 545 case 18: { 546 java.lang.String s = input.readStringRequireUtf8(); 547 ensureItemIsMutable(); 548 item_.add(s); 549 break; 550 } // case 18 551 case 26: { 552 java.lang.String s = input.readStringRequireUtf8(); 553 ensureTypeIsMutable(); 554 type_.add(s); 555 break; 556 } // case 26 557 default: { 558 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 559 done = true; // was an endgroup tag 560 } 561 break; 562 } // default: 563 } // switch (tag) 564 } // while (!done) 565 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 566 throw e.unwrapIOException(); 567 } finally { 568 onChanged(); 569 } // finally 570 return this; 571 } 572 private int bitField0_; 573 574 private java.lang.Object name_ = ""; 575 /** 576 * <code>string name = 1;</code> 577 * @return The name. 578 */ 579 public java.lang.String getName() { 580 java.lang.Object ref = name_; 581 if (!(ref instanceof java.lang.String)) { 582 com.google.protobuf.ByteString bs = 583 (com.google.protobuf.ByteString) ref; 584 java.lang.String s = bs.toStringUtf8(); 585 name_ = s; 586 return s; 587 } else { 588 return (java.lang.String) ref; 589 } 590 } 591 /** 592 * <code>string name = 1;</code> 593 * @return The bytes for name. 594 */ 595 public com.google.protobuf.ByteString 596 getNameBytes() { 597 java.lang.Object ref = name_; 598 if (ref instanceof String) { 599 com.google.protobuf.ByteString b = 600 com.google.protobuf.ByteString.copyFromUtf8( 601 (java.lang.String) ref); 602 name_ = b; 603 return b; 604 } else { 605 return (com.google.protobuf.ByteString) ref; 606 } 607 } 608 /** 609 * <code>string name = 1;</code> 610 * @param value The name to set. 611 * @return This builder for chaining. 612 */ 613 public Builder setName( 614 java.lang.String value) { 615 if (value == null) { throw new NullPointerException(); } 616 name_ = value; 617 bitField0_ |= 0x00000001; 618 onChanged(); 619 return this; 620 } 621 /** 622 * <code>string name = 1;</code> 623 * @return This builder for chaining. 624 */ 625 public Builder clearName() { 626 name_ = getDefaultInstance().getName(); 627 bitField0_ = (bitField0_ & ~0x00000001); 628 onChanged(); 629 return this; 630 } 631 /** 632 * <code>string name = 1;</code> 633 * @param value The bytes for name to set. 634 * @return This builder for chaining. 635 */ 636 public Builder setNameBytes( 637 com.google.protobuf.ByteString value) { 638 if (value == null) { throw new NullPointerException(); } 639 checkByteStringIsUtf8(value); 640 name_ = value; 641 bitField0_ |= 0x00000001; 642 onChanged(); 643 return this; 644 } 645 646 private com.google.protobuf.LazyStringArrayList item_ = 647 com.google.protobuf.LazyStringArrayList.emptyList(); 648 private void ensureItemIsMutable() { 649 if (!item_.isModifiable()) { 650 item_ = new com.google.protobuf.LazyStringArrayList(item_); 651 } 652 bitField0_ |= 0x00000002; 653 } 654 /** 655 * <code>repeated string item = 2;</code> 656 * @return A list containing the item. 657 */ 658 public com.google.protobuf.ProtocolStringList 659 getItemList() { 660 item_.makeImmutable(); 661 return item_; 662 } 663 /** 664 * <code>repeated string item = 2;</code> 665 * @return The count of item. 666 */ 667 public int getItemCount() { 668 return item_.size(); 669 } 670 /** 671 * <code>repeated string item = 2;</code> 672 * @param index The index of the element to return. 673 * @return The item at the given index. 674 */ 675 public java.lang.String getItem(int index) { 676 return item_.get(index); 677 } 678 /** 679 * <code>repeated string item = 2;</code> 680 * @param index The index of the value to return. 681 * @return The bytes of the item at the given index. 682 */ 683 public com.google.protobuf.ByteString 684 getItemBytes(int index) { 685 return item_.getByteString(index); 686 } 687 /** 688 * <code>repeated string item = 2;</code> 689 * @param index The index to set the value at. 690 * @param value The item to set. 691 * @return This builder for chaining. 692 */ 693 public Builder setItem( 694 int index, java.lang.String value) { 695 if (value == null) { throw new NullPointerException(); } 696 ensureItemIsMutable(); 697 item_.set(index, value); 698 bitField0_ |= 0x00000002; 699 onChanged(); 700 return this; 701 } 702 /** 703 * <code>repeated string item = 2;</code> 704 * @param value The item to add. 705 * @return This builder for chaining. 706 */ 707 public Builder addItem( 708 java.lang.String value) { 709 if (value == null) { throw new NullPointerException(); } 710 ensureItemIsMutable(); 711 item_.add(value); 712 bitField0_ |= 0x00000002; 713 onChanged(); 714 return this; 715 } 716 /** 717 * <code>repeated string item = 2;</code> 718 * @param values The item to add. 719 * @return This builder for chaining. 720 */ 721 public Builder addAllItem( 722 java.lang.Iterable<java.lang.String> values) { 723 ensureItemIsMutable(); 724 com.google.protobuf.AbstractMessageLite.Builder.addAll( 725 values, item_); 726 bitField0_ |= 0x00000002; 727 onChanged(); 728 return this; 729 } 730 /** 731 * <code>repeated string item = 2;</code> 732 * @return This builder for chaining. 733 */ 734 public Builder clearItem() { 735 item_ = 736 com.google.protobuf.LazyStringArrayList.emptyList(); 737 bitField0_ = (bitField0_ & ~0x00000002);; 738 onChanged(); 739 return this; 740 } 741 /** 742 * <code>repeated string item = 2;</code> 743 * @param value The bytes of the item to add. 744 * @return This builder for chaining. 745 */ 746 public Builder addItemBytes( 747 com.google.protobuf.ByteString value) { 748 if (value == null) { throw new NullPointerException(); } 749 checkByteStringIsUtf8(value); 750 ensureItemIsMutable(); 751 item_.add(value); 752 bitField0_ |= 0x00000002; 753 onChanged(); 754 return this; 755 } 756 757 private com.google.protobuf.LazyStringArrayList type_ = 758 com.google.protobuf.LazyStringArrayList.emptyList(); 759 private void ensureTypeIsMutable() { 760 if (!type_.isModifiable()) { 761 type_ = new com.google.protobuf.LazyStringArrayList(type_); 762 } 763 bitField0_ |= 0x00000004; 764 } 765 /** 766 * <code>repeated string type = 3;</code> 767 * @return A list containing the type. 768 */ 769 public com.google.protobuf.ProtocolStringList 770 getTypeList() { 771 type_.makeImmutable(); 772 return type_; 773 } 774 /** 775 * <code>repeated string type = 3;</code> 776 * @return The count of type. 777 */ 778 public int getTypeCount() { 779 return type_.size(); 780 } 781 /** 782 * <code>repeated string type = 3;</code> 783 * @param index The index of the element to return. 784 * @return The type at the given index. 785 */ 786 public java.lang.String getType(int index) { 787 return type_.get(index); 788 } 789 /** 790 * <code>repeated string type = 3;</code> 791 * @param index The index of the value to return. 792 * @return The bytes of the type at the given index. 793 */ 794 public com.google.protobuf.ByteString 795 getTypeBytes(int index) { 796 return type_.getByteString(index); 797 } 798 /** 799 * <code>repeated string type = 3;</code> 800 * @param index The index to set the value at. 801 * @param value The type to set. 802 * @return This builder for chaining. 803 */ 804 public Builder setType( 805 int index, java.lang.String value) { 806 if (value == null) { throw new NullPointerException(); } 807 ensureTypeIsMutable(); 808 type_.set(index, value); 809 bitField0_ |= 0x00000004; 810 onChanged(); 811 return this; 812 } 813 /** 814 * <code>repeated string type = 3;</code> 815 * @param value The type to add. 816 * @return This builder for chaining. 817 */ 818 public Builder addType( 819 java.lang.String value) { 820 if (value == null) { throw new NullPointerException(); } 821 ensureTypeIsMutable(); 822 type_.add(value); 823 bitField0_ |= 0x00000004; 824 onChanged(); 825 return this; 826 } 827 /** 828 * <code>repeated string type = 3;</code> 829 * @param values The type to add. 830 * @return This builder for chaining. 831 */ 832 public Builder addAllType( 833 java.lang.Iterable<java.lang.String> values) { 834 ensureTypeIsMutable(); 835 com.google.protobuf.AbstractMessageLite.Builder.addAll( 836 values, type_); 837 bitField0_ |= 0x00000004; 838 onChanged(); 839 return this; 840 } 841 /** 842 * <code>repeated string type = 3;</code> 843 * @return This builder for chaining. 844 */ 845 public Builder clearType() { 846 type_ = 847 com.google.protobuf.LazyStringArrayList.emptyList(); 848 bitField0_ = (bitField0_ & ~0x00000004);; 849 onChanged(); 850 return this; 851 } 852 /** 853 * <code>repeated string type = 3;</code> 854 * @param value The bytes of the type to add. 855 * @return This builder for chaining. 856 */ 857 public Builder addTypeBytes( 858 com.google.protobuf.ByteString value) { 859 if (value == null) { throw new NullPointerException(); } 860 checkByteStringIsUtf8(value); 861 ensureTypeIsMutable(); 862 type_.add(value); 863 bitField0_ |= 0x00000004; 864 onChanged(); 865 return this; 866 } 867 @java.lang.Override 868 public final Builder setUnknownFields( 869 final com.google.protobuf.UnknownFieldSet unknownFields) { 870 return super.setUnknownFields(unknownFields); 871 } 872 873 @java.lang.Override 874 public final Builder mergeUnknownFields( 875 final com.google.protobuf.UnknownFieldSet unknownFields) { 876 return super.mergeUnknownFields(unknownFields); 877 } 878 879 880 // @@protoc_insertion_point(builder_scope:olcut.PropertyListProto) 881 } 882 883 // @@protoc_insertion_point(class_scope:olcut.PropertyListProto) 884 private static final com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto DEFAULT_INSTANCE; 885 static { 886 DEFAULT_INSTANCE = new com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto(); 887 } 888 889 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto getDefaultInstance() { 890 return DEFAULT_INSTANCE; 891 } 892 893 private static final com.google.protobuf.Parser<PropertyListProto> 894 PARSER = new com.google.protobuf.AbstractParser<PropertyListProto>() { 895 @java.lang.Override 896 public PropertyListProto parsePartialFrom( 897 com.google.protobuf.CodedInputStream input, 898 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 899 throws com.google.protobuf.InvalidProtocolBufferException { 900 Builder builder = newBuilder(); 901 try { 902 builder.mergeFrom(input, extensionRegistry); 903 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 904 throw e.setUnfinishedMessage(builder.buildPartial()); 905 } catch (com.google.protobuf.UninitializedMessageException e) { 906 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 907 } catch (java.io.IOException e) { 908 throw new com.google.protobuf.InvalidProtocolBufferException(e) 909 .setUnfinishedMessage(builder.buildPartial()); 910 } 911 return builder.buildPartial(); 912 } 913 }; 914 915 public static com.google.protobuf.Parser<PropertyListProto> parser() { 916 return PARSER; 917 } 918 919 @java.lang.Override 920 public com.google.protobuf.Parser<PropertyListProto> getParserForType() { 921 return PARSER; 922 } 923 924 @java.lang.Override 925 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.PropertyListProto getDefaultInstanceForType() { 926 return DEFAULT_INSTANCE; 927 } 928 929} 930