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 *Root message which contains the full configuration. 011 * </pre> 012 * 013 * Protobuf type {@code olcut.ConfigProto} 014 */ 015public final class ConfigProto extends 016 com.google.protobuf.GeneratedMessageV3 implements 017 // @@protoc_insertion_point(message_implements:olcut.ConfigProto) 018 ConfigProtoOrBuilder { 019private static final long serialVersionUID = 0L; 020 // Use ConfigProto.newBuilder() to construct. 021 private ConfigProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { 022 super(builder); 023 } 024 private ConfigProto() { 025 components_ = java.util.Collections.emptyList(); 026 configFile_ = java.util.Collections.emptyList(); 027 serializedObject_ = java.util.Collections.emptyList(); 028 } 029 030 @java.lang.Override 031 @SuppressWarnings({"unused"}) 032 protected java.lang.Object newInstance( 033 UnusedPrivateParameter unused) { 034 return new ConfigProto(); 035 } 036 037 public static final com.google.protobuf.Descriptors.Descriptor 038 getDescriptor() { 039 return com.oracle.labs.mlrg.olcut.config.protobuf.protos.OlcutProto.internal_static_olcut_ConfigProto_descriptor; 040 } 041 042 @SuppressWarnings({"rawtypes"}) 043 @java.lang.Override 044 protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( 045 int number) { 046 switch (number) { 047 case 1: 048 return internalGetProperties(); 049 default: 050 throw new RuntimeException( 051 "Invalid map field number: " + number); 052 } 053 } 054 @java.lang.Override 055 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 056 internalGetFieldAccessorTable() { 057 return com.oracle.labs.mlrg.olcut.config.protobuf.protos.OlcutProto.internal_static_olcut_ConfigProto_fieldAccessorTable 058 .ensureFieldAccessorsInitialized( 059 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto.class, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto.Builder.class); 060 } 061 062 public static final int PROPERTIES_FIELD_NUMBER = 1; 063 private static final class PropertiesDefaultEntryHolder { 064 static final com.google.protobuf.MapEntry< 065 java.lang.String, java.lang.String> defaultEntry = 066 com.google.protobuf.MapEntry 067 .<java.lang.String, java.lang.String>newDefaultInstance( 068 com.oracle.labs.mlrg.olcut.config.protobuf.protos.OlcutProto.internal_static_olcut_ConfigProto_PropertiesEntry_descriptor, 069 com.google.protobuf.WireFormat.FieldType.STRING, 070 "", 071 com.google.protobuf.WireFormat.FieldType.STRING, 072 ""); 073 } 074 @SuppressWarnings("serial") 075 private com.google.protobuf.MapField< 076 java.lang.String, java.lang.String> properties_; 077 private com.google.protobuf.MapField<java.lang.String, java.lang.String> 078 internalGetProperties() { 079 if (properties_ == null) { 080 return com.google.protobuf.MapField.emptyMapField( 081 PropertiesDefaultEntryHolder.defaultEntry); 082 } 083 return properties_; 084 } 085 public int getPropertiesCount() { 086 return internalGetProperties().getMap().size(); 087 } 088 /** 089 * <code>map<string, string> properties = 1;</code> 090 */ 091 @java.lang.Override 092 public boolean containsProperties( 093 java.lang.String key) { 094 if (key == null) { throw new NullPointerException("map key"); } 095 return internalGetProperties().getMap().containsKey(key); 096 } 097 /** 098 * Use {@link #getPropertiesMap()} instead. 099 */ 100 @java.lang.Override 101 @java.lang.Deprecated 102 public java.util.Map<java.lang.String, java.lang.String> getProperties() { 103 return getPropertiesMap(); 104 } 105 /** 106 * <code>map<string, string> properties = 1;</code> 107 */ 108 @java.lang.Override 109 public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() { 110 return internalGetProperties().getMap(); 111 } 112 /** 113 * <code>map<string, string> properties = 1;</code> 114 */ 115 @java.lang.Override 116 public /* nullable */ 117java.lang.String getPropertiesOrDefault( 118 java.lang.String key, 119 /* nullable */ 120java.lang.String defaultValue) { 121 if (key == null) { throw new NullPointerException("map key"); } 122 java.util.Map<java.lang.String, java.lang.String> map = 123 internalGetProperties().getMap(); 124 return map.containsKey(key) ? map.get(key) : defaultValue; 125 } 126 /** 127 * <code>map<string, string> properties = 1;</code> 128 */ 129 @java.lang.Override 130 public java.lang.String getPropertiesOrThrow( 131 java.lang.String key) { 132 if (key == null) { throw new NullPointerException("map key"); } 133 java.util.Map<java.lang.String, java.lang.String> map = 134 internalGetProperties().getMap(); 135 if (!map.containsKey(key)) { 136 throw new java.lang.IllegalArgumentException(); 137 } 138 return map.get(key); 139 } 140 141 public static final int COMPONENTS_FIELD_NUMBER = 2; 142 @SuppressWarnings("serial") 143 private java.util.List<com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto> components_; 144 /** 145 * <code>repeated .olcut.ComponentProto components = 2;</code> 146 */ 147 @java.lang.Override 148 public java.util.List<com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto> getComponentsList() { 149 return components_; 150 } 151 /** 152 * <code>repeated .olcut.ComponentProto components = 2;</code> 153 */ 154 @java.lang.Override 155 public java.util.List<? extends com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProtoOrBuilder> 156 getComponentsOrBuilderList() { 157 return components_; 158 } 159 /** 160 * <code>repeated .olcut.ComponentProto components = 2;</code> 161 */ 162 @java.lang.Override 163 public int getComponentsCount() { 164 return components_.size(); 165 } 166 /** 167 * <code>repeated .olcut.ComponentProto components = 2;</code> 168 */ 169 @java.lang.Override 170 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto getComponents(int index) { 171 return components_.get(index); 172 } 173 /** 174 * <code>repeated .olcut.ComponentProto components = 2;</code> 175 */ 176 @java.lang.Override 177 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProtoOrBuilder getComponentsOrBuilder( 178 int index) { 179 return components_.get(index); 180 } 181 182 public static final int CONFIG_FILE_FIELD_NUMBER = 3; 183 @SuppressWarnings("serial") 184 private java.util.List<com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto> configFile_; 185 /** 186 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 187 */ 188 @java.lang.Override 189 public java.util.List<com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto> getConfigFileList() { 190 return configFile_; 191 } 192 /** 193 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 194 */ 195 @java.lang.Override 196 public java.util.List<? extends com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProtoOrBuilder> 197 getConfigFileOrBuilderList() { 198 return configFile_; 199 } 200 /** 201 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 202 */ 203 @java.lang.Override 204 public int getConfigFileCount() { 205 return configFile_.size(); 206 } 207 /** 208 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 209 */ 210 @java.lang.Override 211 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto getConfigFile(int index) { 212 return configFile_.get(index); 213 } 214 /** 215 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 216 */ 217 @java.lang.Override 218 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProtoOrBuilder getConfigFileOrBuilder( 219 int index) { 220 return configFile_.get(index); 221 } 222 223 public static final int SERIALIZED_OBJECT_FIELD_NUMBER = 4; 224 @SuppressWarnings("serial") 225 private java.util.List<com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto> serializedObject_; 226 /** 227 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 228 */ 229 @java.lang.Override 230 public java.util.List<com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto> getSerializedObjectList() { 231 return serializedObject_; 232 } 233 /** 234 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 235 */ 236 @java.lang.Override 237 public java.util.List<? extends com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProtoOrBuilder> 238 getSerializedObjectOrBuilderList() { 239 return serializedObject_; 240 } 241 /** 242 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 243 */ 244 @java.lang.Override 245 public int getSerializedObjectCount() { 246 return serializedObject_.size(); 247 } 248 /** 249 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 250 */ 251 @java.lang.Override 252 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto getSerializedObject(int index) { 253 return serializedObject_.get(index); 254 } 255 /** 256 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 257 */ 258 @java.lang.Override 259 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProtoOrBuilder getSerializedObjectOrBuilder( 260 int index) { 261 return serializedObject_.get(index); 262 } 263 264 private byte memoizedIsInitialized = -1; 265 @java.lang.Override 266 public final boolean isInitialized() { 267 byte isInitialized = memoizedIsInitialized; 268 if (isInitialized == 1) return true; 269 if (isInitialized == 0) return false; 270 271 memoizedIsInitialized = 1; 272 return true; 273 } 274 275 @java.lang.Override 276 public void writeTo(com.google.protobuf.CodedOutputStream output) 277 throws java.io.IOException { 278 com.google.protobuf.GeneratedMessageV3 279 .serializeStringMapTo( 280 output, 281 internalGetProperties(), 282 PropertiesDefaultEntryHolder.defaultEntry, 283 1); 284 for (int i = 0; i < components_.size(); i++) { 285 output.writeMessage(2, components_.get(i)); 286 } 287 for (int i = 0; i < configFile_.size(); i++) { 288 output.writeMessage(3, configFile_.get(i)); 289 } 290 for (int i = 0; i < serializedObject_.size(); i++) { 291 output.writeMessage(4, serializedObject_.get(i)); 292 } 293 getUnknownFields().writeTo(output); 294 } 295 296 @java.lang.Override 297 public int getSerializedSize() { 298 int size = memoizedSize; 299 if (size != -1) return size; 300 301 size = 0; 302 for (java.util.Map.Entry<java.lang.String, java.lang.String> entry 303 : internalGetProperties().getMap().entrySet()) { 304 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> 305 properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() 306 .setKey(entry.getKey()) 307 .setValue(entry.getValue()) 308 .build(); 309 size += com.google.protobuf.CodedOutputStream 310 .computeMessageSize(1, properties__); 311 } 312 for (int i = 0; i < components_.size(); i++) { 313 size += com.google.protobuf.CodedOutputStream 314 .computeMessageSize(2, components_.get(i)); 315 } 316 for (int i = 0; i < configFile_.size(); i++) { 317 size += com.google.protobuf.CodedOutputStream 318 .computeMessageSize(3, configFile_.get(i)); 319 } 320 for (int i = 0; i < serializedObject_.size(); i++) { 321 size += com.google.protobuf.CodedOutputStream 322 .computeMessageSize(4, serializedObject_.get(i)); 323 } 324 size += getUnknownFields().getSerializedSize(); 325 memoizedSize = size; 326 return size; 327 } 328 329 @java.lang.Override 330 public boolean equals(final java.lang.Object obj) { 331 if (obj == this) { 332 return true; 333 } 334 if (!(obj instanceof com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto)) { 335 return super.equals(obj); 336 } 337 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto other = (com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto) obj; 338 339 if (!internalGetProperties().equals( 340 other.internalGetProperties())) return false; 341 if (!getComponentsList() 342 .equals(other.getComponentsList())) return false; 343 if (!getConfigFileList() 344 .equals(other.getConfigFileList())) return false; 345 if (!getSerializedObjectList() 346 .equals(other.getSerializedObjectList())) return false; 347 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 348 return true; 349 } 350 351 @java.lang.Override 352 public int hashCode() { 353 if (memoizedHashCode != 0) { 354 return memoizedHashCode; 355 } 356 int hash = 41; 357 hash = (19 * hash) + getDescriptor().hashCode(); 358 if (!internalGetProperties().getMap().isEmpty()) { 359 hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; 360 hash = (53 * hash) + internalGetProperties().hashCode(); 361 } 362 if (getComponentsCount() > 0) { 363 hash = (37 * hash) + COMPONENTS_FIELD_NUMBER; 364 hash = (53 * hash) + getComponentsList().hashCode(); 365 } 366 if (getConfigFileCount() > 0) { 367 hash = (37 * hash) + CONFIG_FILE_FIELD_NUMBER; 368 hash = (53 * hash) + getConfigFileList().hashCode(); 369 } 370 if (getSerializedObjectCount() > 0) { 371 hash = (37 * hash) + SERIALIZED_OBJECT_FIELD_NUMBER; 372 hash = (53 * hash) + getSerializedObjectList().hashCode(); 373 } 374 hash = (29 * hash) + getUnknownFields().hashCode(); 375 memoizedHashCode = hash; 376 return hash; 377 } 378 379 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto parseFrom( 380 java.nio.ByteBuffer data) 381 throws com.google.protobuf.InvalidProtocolBufferException { 382 return PARSER.parseFrom(data); 383 } 384 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto parseFrom( 385 java.nio.ByteBuffer data, 386 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 387 throws com.google.protobuf.InvalidProtocolBufferException { 388 return PARSER.parseFrom(data, extensionRegistry); 389 } 390 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto parseFrom( 391 com.google.protobuf.ByteString data) 392 throws com.google.protobuf.InvalidProtocolBufferException { 393 return PARSER.parseFrom(data); 394 } 395 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto parseFrom( 396 com.google.protobuf.ByteString data, 397 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 398 throws com.google.protobuf.InvalidProtocolBufferException { 399 return PARSER.parseFrom(data, extensionRegistry); 400 } 401 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto parseFrom(byte[] data) 402 throws com.google.protobuf.InvalidProtocolBufferException { 403 return PARSER.parseFrom(data); 404 } 405 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto parseFrom( 406 byte[] data, 407 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 408 throws com.google.protobuf.InvalidProtocolBufferException { 409 return PARSER.parseFrom(data, extensionRegistry); 410 } 411 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto parseFrom(java.io.InputStream input) 412 throws java.io.IOException { 413 return com.google.protobuf.GeneratedMessageV3 414 .parseWithIOException(PARSER, input); 415 } 416 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto parseFrom( 417 java.io.InputStream input, 418 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 419 throws java.io.IOException { 420 return com.google.protobuf.GeneratedMessageV3 421 .parseWithIOException(PARSER, input, extensionRegistry); 422 } 423 424 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto parseDelimitedFrom(java.io.InputStream input) 425 throws java.io.IOException { 426 return com.google.protobuf.GeneratedMessageV3 427 .parseDelimitedWithIOException(PARSER, input); 428 } 429 430 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto parseDelimitedFrom( 431 java.io.InputStream input, 432 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 433 throws java.io.IOException { 434 return com.google.protobuf.GeneratedMessageV3 435 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 436 } 437 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto parseFrom( 438 com.google.protobuf.CodedInputStream input) 439 throws java.io.IOException { 440 return com.google.protobuf.GeneratedMessageV3 441 .parseWithIOException(PARSER, input); 442 } 443 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto parseFrom( 444 com.google.protobuf.CodedInputStream input, 445 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 446 throws java.io.IOException { 447 return com.google.protobuf.GeneratedMessageV3 448 .parseWithIOException(PARSER, input, extensionRegistry); 449 } 450 451 @java.lang.Override 452 public Builder newBuilderForType() { return newBuilder(); } 453 public static Builder newBuilder() { 454 return DEFAULT_INSTANCE.toBuilder(); 455 } 456 public static Builder newBuilder(com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto prototype) { 457 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 458 } 459 @java.lang.Override 460 public Builder toBuilder() { 461 return this == DEFAULT_INSTANCE 462 ? new Builder() : new Builder().mergeFrom(this); 463 } 464 465 @java.lang.Override 466 protected Builder newBuilderForType( 467 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 468 Builder builder = new Builder(parent); 469 return builder; 470 } 471 /** 472 * <pre> 473 * 474 *Root message which contains the full configuration. 475 * </pre> 476 * 477 * Protobuf type {@code olcut.ConfigProto} 478 */ 479 public static final class Builder extends 480 com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements 481 // @@protoc_insertion_point(builder_implements:olcut.ConfigProto) 482 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProtoOrBuilder { 483 public static final com.google.protobuf.Descriptors.Descriptor 484 getDescriptor() { 485 return com.oracle.labs.mlrg.olcut.config.protobuf.protos.OlcutProto.internal_static_olcut_ConfigProto_descriptor; 486 } 487 488 @SuppressWarnings({"rawtypes"}) 489 protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( 490 int number) { 491 switch (number) { 492 case 1: 493 return internalGetProperties(); 494 default: 495 throw new RuntimeException( 496 "Invalid map field number: " + number); 497 } 498 } 499 @SuppressWarnings({"rawtypes"}) 500 protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( 501 int number) { 502 switch (number) { 503 case 1: 504 return internalGetMutableProperties(); 505 default: 506 throw new RuntimeException( 507 "Invalid map field number: " + number); 508 } 509 } 510 @java.lang.Override 511 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable 512 internalGetFieldAccessorTable() { 513 return com.oracle.labs.mlrg.olcut.config.protobuf.protos.OlcutProto.internal_static_olcut_ConfigProto_fieldAccessorTable 514 .ensureFieldAccessorsInitialized( 515 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto.class, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto.Builder.class); 516 } 517 518 // Construct using com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto.newBuilder() 519 private Builder() { 520 521 } 522 523 private Builder( 524 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { 525 super(parent); 526 527 } 528 @java.lang.Override 529 public Builder clear() { 530 super.clear(); 531 bitField0_ = 0; 532 internalGetMutableProperties().clear(); 533 if (componentsBuilder_ == null) { 534 components_ = java.util.Collections.emptyList(); 535 } else { 536 components_ = null; 537 componentsBuilder_.clear(); 538 } 539 bitField0_ = (bitField0_ & ~0x00000002); 540 if (configFileBuilder_ == null) { 541 configFile_ = java.util.Collections.emptyList(); 542 } else { 543 configFile_ = null; 544 configFileBuilder_.clear(); 545 } 546 bitField0_ = (bitField0_ & ~0x00000004); 547 if (serializedObjectBuilder_ == null) { 548 serializedObject_ = java.util.Collections.emptyList(); 549 } else { 550 serializedObject_ = null; 551 serializedObjectBuilder_.clear(); 552 } 553 bitField0_ = (bitField0_ & ~0x00000008); 554 return this; 555 } 556 557 @java.lang.Override 558 public com.google.protobuf.Descriptors.Descriptor 559 getDescriptorForType() { 560 return com.oracle.labs.mlrg.olcut.config.protobuf.protos.OlcutProto.internal_static_olcut_ConfigProto_descriptor; 561 } 562 563 @java.lang.Override 564 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto getDefaultInstanceForType() { 565 return com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto.getDefaultInstance(); 566 } 567 568 @java.lang.Override 569 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto build() { 570 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto result = buildPartial(); 571 if (!result.isInitialized()) { 572 throw newUninitializedMessageException(result); 573 } 574 return result; 575 } 576 577 @java.lang.Override 578 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto buildPartial() { 579 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto result = new com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto(this); 580 buildPartialRepeatedFields(result); 581 if (bitField0_ != 0) { buildPartial0(result); } 582 onBuilt(); 583 return result; 584 } 585 586 private void buildPartialRepeatedFields(com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto result) { 587 if (componentsBuilder_ == null) { 588 if (((bitField0_ & 0x00000002) != 0)) { 589 components_ = java.util.Collections.unmodifiableList(components_); 590 bitField0_ = (bitField0_ & ~0x00000002); 591 } 592 result.components_ = components_; 593 } else { 594 result.components_ = componentsBuilder_.build(); 595 } 596 if (configFileBuilder_ == null) { 597 if (((bitField0_ & 0x00000004) != 0)) { 598 configFile_ = java.util.Collections.unmodifiableList(configFile_); 599 bitField0_ = (bitField0_ & ~0x00000004); 600 } 601 result.configFile_ = configFile_; 602 } else { 603 result.configFile_ = configFileBuilder_.build(); 604 } 605 if (serializedObjectBuilder_ == null) { 606 if (((bitField0_ & 0x00000008) != 0)) { 607 serializedObject_ = java.util.Collections.unmodifiableList(serializedObject_); 608 bitField0_ = (bitField0_ & ~0x00000008); 609 } 610 result.serializedObject_ = serializedObject_; 611 } else { 612 result.serializedObject_ = serializedObjectBuilder_.build(); 613 } 614 } 615 616 private void buildPartial0(com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto result) { 617 int from_bitField0_ = bitField0_; 618 if (((from_bitField0_ & 0x00000001) != 0)) { 619 result.properties_ = internalGetProperties(); 620 result.properties_.makeImmutable(); 621 } 622 } 623 624 @java.lang.Override 625 public Builder clone() { 626 return super.clone(); 627 } 628 @java.lang.Override 629 public Builder setField( 630 com.google.protobuf.Descriptors.FieldDescriptor field, 631 java.lang.Object value) { 632 return super.setField(field, value); 633 } 634 @java.lang.Override 635 public Builder clearField( 636 com.google.protobuf.Descriptors.FieldDescriptor field) { 637 return super.clearField(field); 638 } 639 @java.lang.Override 640 public Builder clearOneof( 641 com.google.protobuf.Descriptors.OneofDescriptor oneof) { 642 return super.clearOneof(oneof); 643 } 644 @java.lang.Override 645 public Builder setRepeatedField( 646 com.google.protobuf.Descriptors.FieldDescriptor field, 647 int index, java.lang.Object value) { 648 return super.setRepeatedField(field, index, value); 649 } 650 @java.lang.Override 651 public Builder addRepeatedField( 652 com.google.protobuf.Descriptors.FieldDescriptor field, 653 java.lang.Object value) { 654 return super.addRepeatedField(field, value); 655 } 656 @java.lang.Override 657 public Builder mergeFrom(com.google.protobuf.Message other) { 658 if (other instanceof com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto) { 659 return mergeFrom((com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto)other); 660 } else { 661 super.mergeFrom(other); 662 return this; 663 } 664 } 665 666 public Builder mergeFrom(com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto other) { 667 if (other == com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto.getDefaultInstance()) return this; 668 internalGetMutableProperties().mergeFrom( 669 other.internalGetProperties()); 670 bitField0_ |= 0x00000001; 671 if (componentsBuilder_ == null) { 672 if (!other.components_.isEmpty()) { 673 if (components_.isEmpty()) { 674 components_ = other.components_; 675 bitField0_ = (bitField0_ & ~0x00000002); 676 } else { 677 ensureComponentsIsMutable(); 678 components_.addAll(other.components_); 679 } 680 onChanged(); 681 } 682 } else { 683 if (!other.components_.isEmpty()) { 684 if (componentsBuilder_.isEmpty()) { 685 componentsBuilder_.dispose(); 686 componentsBuilder_ = null; 687 components_ = other.components_; 688 bitField0_ = (bitField0_ & ~0x00000002); 689 componentsBuilder_ = 690 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 691 getComponentsFieldBuilder() : null; 692 } else { 693 componentsBuilder_.addAllMessages(other.components_); 694 } 695 } 696 } 697 if (configFileBuilder_ == null) { 698 if (!other.configFile_.isEmpty()) { 699 if (configFile_.isEmpty()) { 700 configFile_ = other.configFile_; 701 bitField0_ = (bitField0_ & ~0x00000004); 702 } else { 703 ensureConfigFileIsMutable(); 704 configFile_.addAll(other.configFile_); 705 } 706 onChanged(); 707 } 708 } else { 709 if (!other.configFile_.isEmpty()) { 710 if (configFileBuilder_.isEmpty()) { 711 configFileBuilder_.dispose(); 712 configFileBuilder_ = null; 713 configFile_ = other.configFile_; 714 bitField0_ = (bitField0_ & ~0x00000004); 715 configFileBuilder_ = 716 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 717 getConfigFileFieldBuilder() : null; 718 } else { 719 configFileBuilder_.addAllMessages(other.configFile_); 720 } 721 } 722 } 723 if (serializedObjectBuilder_ == null) { 724 if (!other.serializedObject_.isEmpty()) { 725 if (serializedObject_.isEmpty()) { 726 serializedObject_ = other.serializedObject_; 727 bitField0_ = (bitField0_ & ~0x00000008); 728 } else { 729 ensureSerializedObjectIsMutable(); 730 serializedObject_.addAll(other.serializedObject_); 731 } 732 onChanged(); 733 } 734 } else { 735 if (!other.serializedObject_.isEmpty()) { 736 if (serializedObjectBuilder_.isEmpty()) { 737 serializedObjectBuilder_.dispose(); 738 serializedObjectBuilder_ = null; 739 serializedObject_ = other.serializedObject_; 740 bitField0_ = (bitField0_ & ~0x00000008); 741 serializedObjectBuilder_ = 742 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? 743 getSerializedObjectFieldBuilder() : null; 744 } else { 745 serializedObjectBuilder_.addAllMessages(other.serializedObject_); 746 } 747 } 748 } 749 this.mergeUnknownFields(other.getUnknownFields()); 750 onChanged(); 751 return this; 752 } 753 754 @java.lang.Override 755 public final boolean isInitialized() { 756 return true; 757 } 758 759 @java.lang.Override 760 public Builder mergeFrom( 761 com.google.protobuf.CodedInputStream input, 762 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 763 throws java.io.IOException { 764 if (extensionRegistry == null) { 765 throw new java.lang.NullPointerException(); 766 } 767 try { 768 boolean done = false; 769 while (!done) { 770 int tag = input.readTag(); 771 switch (tag) { 772 case 0: 773 done = true; 774 break; 775 case 10: { 776 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> 777 properties__ = input.readMessage( 778 PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); 779 internalGetMutableProperties().getMutableMap().put( 780 properties__.getKey(), properties__.getValue()); 781 bitField0_ |= 0x00000001; 782 break; 783 } // case 10 784 case 18: { 785 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto m = 786 input.readMessage( 787 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto.parser(), 788 extensionRegistry); 789 if (componentsBuilder_ == null) { 790 ensureComponentsIsMutable(); 791 components_.add(m); 792 } else { 793 componentsBuilder_.addMessage(m); 794 } 795 break; 796 } // case 18 797 case 26: { 798 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto m = 799 input.readMessage( 800 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto.parser(), 801 extensionRegistry); 802 if (configFileBuilder_ == null) { 803 ensureConfigFileIsMutable(); 804 configFile_.add(m); 805 } else { 806 configFileBuilder_.addMessage(m); 807 } 808 break; 809 } // case 26 810 case 34: { 811 com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto m = 812 input.readMessage( 813 com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto.parser(), 814 extensionRegistry); 815 if (serializedObjectBuilder_ == null) { 816 ensureSerializedObjectIsMutable(); 817 serializedObject_.add(m); 818 } else { 819 serializedObjectBuilder_.addMessage(m); 820 } 821 break; 822 } // case 34 823 default: { 824 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 825 done = true; // was an endgroup tag 826 } 827 break; 828 } // default: 829 } // switch (tag) 830 } // while (!done) 831 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 832 throw e.unwrapIOException(); 833 } finally { 834 onChanged(); 835 } // finally 836 return this; 837 } 838 private int bitField0_; 839 840 private com.google.protobuf.MapField< 841 java.lang.String, java.lang.String> properties_; 842 private com.google.protobuf.MapField<java.lang.String, java.lang.String> 843 internalGetProperties() { 844 if (properties_ == null) { 845 return com.google.protobuf.MapField.emptyMapField( 846 PropertiesDefaultEntryHolder.defaultEntry); 847 } 848 return properties_; 849 } 850 private com.google.protobuf.MapField<java.lang.String, java.lang.String> 851 internalGetMutableProperties() { 852 if (properties_ == null) { 853 properties_ = com.google.protobuf.MapField.newMapField( 854 PropertiesDefaultEntryHolder.defaultEntry); 855 } 856 if (!properties_.isMutable()) { 857 properties_ = properties_.copy(); 858 } 859 bitField0_ |= 0x00000001; 860 onChanged(); 861 return properties_; 862 } 863 public int getPropertiesCount() { 864 return internalGetProperties().getMap().size(); 865 } 866 /** 867 * <code>map<string, string> properties = 1;</code> 868 */ 869 @java.lang.Override 870 public boolean containsProperties( 871 java.lang.String key) { 872 if (key == null) { throw new NullPointerException("map key"); } 873 return internalGetProperties().getMap().containsKey(key); 874 } 875 /** 876 * Use {@link #getPropertiesMap()} instead. 877 */ 878 @java.lang.Override 879 @java.lang.Deprecated 880 public java.util.Map<java.lang.String, java.lang.String> getProperties() { 881 return getPropertiesMap(); 882 } 883 /** 884 * <code>map<string, string> properties = 1;</code> 885 */ 886 @java.lang.Override 887 public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() { 888 return internalGetProperties().getMap(); 889 } 890 /** 891 * <code>map<string, string> properties = 1;</code> 892 */ 893 @java.lang.Override 894 public /* nullable */ 895java.lang.String getPropertiesOrDefault( 896 java.lang.String key, 897 /* nullable */ 898java.lang.String defaultValue) { 899 if (key == null) { throw new NullPointerException("map key"); } 900 java.util.Map<java.lang.String, java.lang.String> map = 901 internalGetProperties().getMap(); 902 return map.containsKey(key) ? map.get(key) : defaultValue; 903 } 904 /** 905 * <code>map<string, string> properties = 1;</code> 906 */ 907 @java.lang.Override 908 public java.lang.String getPropertiesOrThrow( 909 java.lang.String key) { 910 if (key == null) { throw new NullPointerException("map key"); } 911 java.util.Map<java.lang.String, java.lang.String> map = 912 internalGetProperties().getMap(); 913 if (!map.containsKey(key)) { 914 throw new java.lang.IllegalArgumentException(); 915 } 916 return map.get(key); 917 } 918 public Builder clearProperties() { 919 bitField0_ = (bitField0_ & ~0x00000001); 920 internalGetMutableProperties().getMutableMap() 921 .clear(); 922 return this; 923 } 924 /** 925 * <code>map<string, string> properties = 1;</code> 926 */ 927 public Builder removeProperties( 928 java.lang.String key) { 929 if (key == null) { throw new NullPointerException("map key"); } 930 internalGetMutableProperties().getMutableMap() 931 .remove(key); 932 return this; 933 } 934 /** 935 * Use alternate mutation accessors instead. 936 */ 937 @java.lang.Deprecated 938 public java.util.Map<java.lang.String, java.lang.String> 939 getMutableProperties() { 940 bitField0_ |= 0x00000001; 941 return internalGetMutableProperties().getMutableMap(); 942 } 943 /** 944 * <code>map<string, string> properties = 1;</code> 945 */ 946 public Builder putProperties( 947 java.lang.String key, 948 java.lang.String value) { 949 if (key == null) { throw new NullPointerException("map key"); } 950 if (value == null) { throw new NullPointerException("map value"); } 951 internalGetMutableProperties().getMutableMap() 952 .put(key, value); 953 bitField0_ |= 0x00000001; 954 return this; 955 } 956 /** 957 * <code>map<string, string> properties = 1;</code> 958 */ 959 public Builder putAllProperties( 960 java.util.Map<java.lang.String, java.lang.String> values) { 961 internalGetMutableProperties().getMutableMap() 962 .putAll(values); 963 bitField0_ |= 0x00000001; 964 return this; 965 } 966 967 private java.util.List<com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto> components_ = 968 java.util.Collections.emptyList(); 969 private void ensureComponentsIsMutable() { 970 if (!((bitField0_ & 0x00000002) != 0)) { 971 components_ = new java.util.ArrayList<com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto>(components_); 972 bitField0_ |= 0x00000002; 973 } 974 } 975 976 private com.google.protobuf.RepeatedFieldBuilderV3< 977 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto.Builder, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProtoOrBuilder> componentsBuilder_; 978 979 /** 980 * <code>repeated .olcut.ComponentProto components = 2;</code> 981 */ 982 public java.util.List<com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto> getComponentsList() { 983 if (componentsBuilder_ == null) { 984 return java.util.Collections.unmodifiableList(components_); 985 } else { 986 return componentsBuilder_.getMessageList(); 987 } 988 } 989 /** 990 * <code>repeated .olcut.ComponentProto components = 2;</code> 991 */ 992 public int getComponentsCount() { 993 if (componentsBuilder_ == null) { 994 return components_.size(); 995 } else { 996 return componentsBuilder_.getCount(); 997 } 998 } 999 /** 1000 * <code>repeated .olcut.ComponentProto components = 2;</code> 1001 */ 1002 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto getComponents(int index) { 1003 if (componentsBuilder_ == null) { 1004 return components_.get(index); 1005 } else { 1006 return componentsBuilder_.getMessage(index); 1007 } 1008 } 1009 /** 1010 * <code>repeated .olcut.ComponentProto components = 2;</code> 1011 */ 1012 public Builder setComponents( 1013 int index, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto value) { 1014 if (componentsBuilder_ == null) { 1015 if (value == null) { 1016 throw new NullPointerException(); 1017 } 1018 ensureComponentsIsMutable(); 1019 components_.set(index, value); 1020 onChanged(); 1021 } else { 1022 componentsBuilder_.setMessage(index, value); 1023 } 1024 return this; 1025 } 1026 /** 1027 * <code>repeated .olcut.ComponentProto components = 2;</code> 1028 */ 1029 public Builder setComponents( 1030 int index, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto.Builder builderForValue) { 1031 if (componentsBuilder_ == null) { 1032 ensureComponentsIsMutable(); 1033 components_.set(index, builderForValue.build()); 1034 onChanged(); 1035 } else { 1036 componentsBuilder_.setMessage(index, builderForValue.build()); 1037 } 1038 return this; 1039 } 1040 /** 1041 * <code>repeated .olcut.ComponentProto components = 2;</code> 1042 */ 1043 public Builder addComponents(com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto value) { 1044 if (componentsBuilder_ == null) { 1045 if (value == null) { 1046 throw new NullPointerException(); 1047 } 1048 ensureComponentsIsMutable(); 1049 components_.add(value); 1050 onChanged(); 1051 } else { 1052 componentsBuilder_.addMessage(value); 1053 } 1054 return this; 1055 } 1056 /** 1057 * <code>repeated .olcut.ComponentProto components = 2;</code> 1058 */ 1059 public Builder addComponents( 1060 int index, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto value) { 1061 if (componentsBuilder_ == null) { 1062 if (value == null) { 1063 throw new NullPointerException(); 1064 } 1065 ensureComponentsIsMutable(); 1066 components_.add(index, value); 1067 onChanged(); 1068 } else { 1069 componentsBuilder_.addMessage(index, value); 1070 } 1071 return this; 1072 } 1073 /** 1074 * <code>repeated .olcut.ComponentProto components = 2;</code> 1075 */ 1076 public Builder addComponents( 1077 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto.Builder builderForValue) { 1078 if (componentsBuilder_ == null) { 1079 ensureComponentsIsMutable(); 1080 components_.add(builderForValue.build()); 1081 onChanged(); 1082 } else { 1083 componentsBuilder_.addMessage(builderForValue.build()); 1084 } 1085 return this; 1086 } 1087 /** 1088 * <code>repeated .olcut.ComponentProto components = 2;</code> 1089 */ 1090 public Builder addComponents( 1091 int index, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto.Builder builderForValue) { 1092 if (componentsBuilder_ == null) { 1093 ensureComponentsIsMutable(); 1094 components_.add(index, builderForValue.build()); 1095 onChanged(); 1096 } else { 1097 componentsBuilder_.addMessage(index, builderForValue.build()); 1098 } 1099 return this; 1100 } 1101 /** 1102 * <code>repeated .olcut.ComponentProto components = 2;</code> 1103 */ 1104 public Builder addAllComponents( 1105 java.lang.Iterable<? extends com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto> values) { 1106 if (componentsBuilder_ == null) { 1107 ensureComponentsIsMutable(); 1108 com.google.protobuf.AbstractMessageLite.Builder.addAll( 1109 values, components_); 1110 onChanged(); 1111 } else { 1112 componentsBuilder_.addAllMessages(values); 1113 } 1114 return this; 1115 } 1116 /** 1117 * <code>repeated .olcut.ComponentProto components = 2;</code> 1118 */ 1119 public Builder clearComponents() { 1120 if (componentsBuilder_ == null) { 1121 components_ = java.util.Collections.emptyList(); 1122 bitField0_ = (bitField0_ & ~0x00000002); 1123 onChanged(); 1124 } else { 1125 componentsBuilder_.clear(); 1126 } 1127 return this; 1128 } 1129 /** 1130 * <code>repeated .olcut.ComponentProto components = 2;</code> 1131 */ 1132 public Builder removeComponents(int index) { 1133 if (componentsBuilder_ == null) { 1134 ensureComponentsIsMutable(); 1135 components_.remove(index); 1136 onChanged(); 1137 } else { 1138 componentsBuilder_.remove(index); 1139 } 1140 return this; 1141 } 1142 /** 1143 * <code>repeated .olcut.ComponentProto components = 2;</code> 1144 */ 1145 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto.Builder getComponentsBuilder( 1146 int index) { 1147 return getComponentsFieldBuilder().getBuilder(index); 1148 } 1149 /** 1150 * <code>repeated .olcut.ComponentProto components = 2;</code> 1151 */ 1152 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProtoOrBuilder getComponentsOrBuilder( 1153 int index) { 1154 if (componentsBuilder_ == null) { 1155 return components_.get(index); } else { 1156 return componentsBuilder_.getMessageOrBuilder(index); 1157 } 1158 } 1159 /** 1160 * <code>repeated .olcut.ComponentProto components = 2;</code> 1161 */ 1162 public java.util.List<? extends com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProtoOrBuilder> 1163 getComponentsOrBuilderList() { 1164 if (componentsBuilder_ != null) { 1165 return componentsBuilder_.getMessageOrBuilderList(); 1166 } else { 1167 return java.util.Collections.unmodifiableList(components_); 1168 } 1169 } 1170 /** 1171 * <code>repeated .olcut.ComponentProto components = 2;</code> 1172 */ 1173 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto.Builder addComponentsBuilder() { 1174 return getComponentsFieldBuilder().addBuilder( 1175 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto.getDefaultInstance()); 1176 } 1177 /** 1178 * <code>repeated .olcut.ComponentProto components = 2;</code> 1179 */ 1180 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto.Builder addComponentsBuilder( 1181 int index) { 1182 return getComponentsFieldBuilder().addBuilder( 1183 index, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto.getDefaultInstance()); 1184 } 1185 /** 1186 * <code>repeated .olcut.ComponentProto components = 2;</code> 1187 */ 1188 public java.util.List<com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto.Builder> 1189 getComponentsBuilderList() { 1190 return getComponentsFieldBuilder().getBuilderList(); 1191 } 1192 private com.google.protobuf.RepeatedFieldBuilderV3< 1193 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto.Builder, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProtoOrBuilder> 1194 getComponentsFieldBuilder() { 1195 if (componentsBuilder_ == null) { 1196 componentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 1197 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProto.Builder, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ComponentProtoOrBuilder>( 1198 components_, 1199 ((bitField0_ & 0x00000002) != 0), 1200 getParentForChildren(), 1201 isClean()); 1202 components_ = null; 1203 } 1204 return componentsBuilder_; 1205 } 1206 1207 private java.util.List<com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto> configFile_ = 1208 java.util.Collections.emptyList(); 1209 private void ensureConfigFileIsMutable() { 1210 if (!((bitField0_ & 0x00000004) != 0)) { 1211 configFile_ = new java.util.ArrayList<com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto>(configFile_); 1212 bitField0_ |= 0x00000004; 1213 } 1214 } 1215 1216 private com.google.protobuf.RepeatedFieldBuilderV3< 1217 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto.Builder, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProtoOrBuilder> configFileBuilder_; 1218 1219 /** 1220 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1221 */ 1222 public java.util.List<com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto> getConfigFileList() { 1223 if (configFileBuilder_ == null) { 1224 return java.util.Collections.unmodifiableList(configFile_); 1225 } else { 1226 return configFileBuilder_.getMessageList(); 1227 } 1228 } 1229 /** 1230 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1231 */ 1232 public int getConfigFileCount() { 1233 if (configFileBuilder_ == null) { 1234 return configFile_.size(); 1235 } else { 1236 return configFileBuilder_.getCount(); 1237 } 1238 } 1239 /** 1240 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1241 */ 1242 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto getConfigFile(int index) { 1243 if (configFileBuilder_ == null) { 1244 return configFile_.get(index); 1245 } else { 1246 return configFileBuilder_.getMessage(index); 1247 } 1248 } 1249 /** 1250 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1251 */ 1252 public Builder setConfigFile( 1253 int index, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto value) { 1254 if (configFileBuilder_ == null) { 1255 if (value == null) { 1256 throw new NullPointerException(); 1257 } 1258 ensureConfigFileIsMutable(); 1259 configFile_.set(index, value); 1260 onChanged(); 1261 } else { 1262 configFileBuilder_.setMessage(index, value); 1263 } 1264 return this; 1265 } 1266 /** 1267 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1268 */ 1269 public Builder setConfigFile( 1270 int index, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto.Builder builderForValue) { 1271 if (configFileBuilder_ == null) { 1272 ensureConfigFileIsMutable(); 1273 configFile_.set(index, builderForValue.build()); 1274 onChanged(); 1275 } else { 1276 configFileBuilder_.setMessage(index, builderForValue.build()); 1277 } 1278 return this; 1279 } 1280 /** 1281 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1282 */ 1283 public Builder addConfigFile(com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto value) { 1284 if (configFileBuilder_ == null) { 1285 if (value == null) { 1286 throw new NullPointerException(); 1287 } 1288 ensureConfigFileIsMutable(); 1289 configFile_.add(value); 1290 onChanged(); 1291 } else { 1292 configFileBuilder_.addMessage(value); 1293 } 1294 return this; 1295 } 1296 /** 1297 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1298 */ 1299 public Builder addConfigFile( 1300 int index, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto value) { 1301 if (configFileBuilder_ == null) { 1302 if (value == null) { 1303 throw new NullPointerException(); 1304 } 1305 ensureConfigFileIsMutable(); 1306 configFile_.add(index, value); 1307 onChanged(); 1308 } else { 1309 configFileBuilder_.addMessage(index, value); 1310 } 1311 return this; 1312 } 1313 /** 1314 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1315 */ 1316 public Builder addConfigFile( 1317 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto.Builder builderForValue) { 1318 if (configFileBuilder_ == null) { 1319 ensureConfigFileIsMutable(); 1320 configFile_.add(builderForValue.build()); 1321 onChanged(); 1322 } else { 1323 configFileBuilder_.addMessage(builderForValue.build()); 1324 } 1325 return this; 1326 } 1327 /** 1328 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1329 */ 1330 public Builder addConfigFile( 1331 int index, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto.Builder builderForValue) { 1332 if (configFileBuilder_ == null) { 1333 ensureConfigFileIsMutable(); 1334 configFile_.add(index, builderForValue.build()); 1335 onChanged(); 1336 } else { 1337 configFileBuilder_.addMessage(index, builderForValue.build()); 1338 } 1339 return this; 1340 } 1341 /** 1342 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1343 */ 1344 public Builder addAllConfigFile( 1345 java.lang.Iterable<? extends com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto> values) { 1346 if (configFileBuilder_ == null) { 1347 ensureConfigFileIsMutable(); 1348 com.google.protobuf.AbstractMessageLite.Builder.addAll( 1349 values, configFile_); 1350 onChanged(); 1351 } else { 1352 configFileBuilder_.addAllMessages(values); 1353 } 1354 return this; 1355 } 1356 /** 1357 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1358 */ 1359 public Builder clearConfigFile() { 1360 if (configFileBuilder_ == null) { 1361 configFile_ = java.util.Collections.emptyList(); 1362 bitField0_ = (bitField0_ & ~0x00000004); 1363 onChanged(); 1364 } else { 1365 configFileBuilder_.clear(); 1366 } 1367 return this; 1368 } 1369 /** 1370 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1371 */ 1372 public Builder removeConfigFile(int index) { 1373 if (configFileBuilder_ == null) { 1374 ensureConfigFileIsMutable(); 1375 configFile_.remove(index); 1376 onChanged(); 1377 } else { 1378 configFileBuilder_.remove(index); 1379 } 1380 return this; 1381 } 1382 /** 1383 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1384 */ 1385 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto.Builder getConfigFileBuilder( 1386 int index) { 1387 return getConfigFileFieldBuilder().getBuilder(index); 1388 } 1389 /** 1390 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1391 */ 1392 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProtoOrBuilder getConfigFileOrBuilder( 1393 int index) { 1394 if (configFileBuilder_ == null) { 1395 return configFile_.get(index); } else { 1396 return configFileBuilder_.getMessageOrBuilder(index); 1397 } 1398 } 1399 /** 1400 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1401 */ 1402 public java.util.List<? extends com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProtoOrBuilder> 1403 getConfigFileOrBuilderList() { 1404 if (configFileBuilder_ != null) { 1405 return configFileBuilder_.getMessageOrBuilderList(); 1406 } else { 1407 return java.util.Collections.unmodifiableList(configFile_); 1408 } 1409 } 1410 /** 1411 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1412 */ 1413 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto.Builder addConfigFileBuilder() { 1414 return getConfigFileFieldBuilder().addBuilder( 1415 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto.getDefaultInstance()); 1416 } 1417 /** 1418 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1419 */ 1420 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto.Builder addConfigFileBuilder( 1421 int index) { 1422 return getConfigFileFieldBuilder().addBuilder( 1423 index, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto.getDefaultInstance()); 1424 } 1425 /** 1426 * <code>repeated .olcut.ConfigFileProto config_file = 3;</code> 1427 */ 1428 public java.util.List<com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto.Builder> 1429 getConfigFileBuilderList() { 1430 return getConfigFileFieldBuilder().getBuilderList(); 1431 } 1432 private com.google.protobuf.RepeatedFieldBuilderV3< 1433 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto.Builder, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProtoOrBuilder> 1434 getConfigFileFieldBuilder() { 1435 if (configFileBuilder_ == null) { 1436 configFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 1437 com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProto.Builder, com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigFileProtoOrBuilder>( 1438 configFile_, 1439 ((bitField0_ & 0x00000004) != 0), 1440 getParentForChildren(), 1441 isClean()); 1442 configFile_ = null; 1443 } 1444 return configFileBuilder_; 1445 } 1446 1447 private java.util.List<com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto> serializedObject_ = 1448 java.util.Collections.emptyList(); 1449 private void ensureSerializedObjectIsMutable() { 1450 if (!((bitField0_ & 0x00000008) != 0)) { 1451 serializedObject_ = new java.util.ArrayList<com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto>(serializedObject_); 1452 bitField0_ |= 0x00000008; 1453 } 1454 } 1455 1456 private com.google.protobuf.RepeatedFieldBuilderV3< 1457 com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto, com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto.Builder, com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProtoOrBuilder> serializedObjectBuilder_; 1458 1459 /** 1460 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1461 */ 1462 public java.util.List<com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto> getSerializedObjectList() { 1463 if (serializedObjectBuilder_ == null) { 1464 return java.util.Collections.unmodifiableList(serializedObject_); 1465 } else { 1466 return serializedObjectBuilder_.getMessageList(); 1467 } 1468 } 1469 /** 1470 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1471 */ 1472 public int getSerializedObjectCount() { 1473 if (serializedObjectBuilder_ == null) { 1474 return serializedObject_.size(); 1475 } else { 1476 return serializedObjectBuilder_.getCount(); 1477 } 1478 } 1479 /** 1480 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1481 */ 1482 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto getSerializedObject(int index) { 1483 if (serializedObjectBuilder_ == null) { 1484 return serializedObject_.get(index); 1485 } else { 1486 return serializedObjectBuilder_.getMessage(index); 1487 } 1488 } 1489 /** 1490 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1491 */ 1492 public Builder setSerializedObject( 1493 int index, com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto value) { 1494 if (serializedObjectBuilder_ == null) { 1495 if (value == null) { 1496 throw new NullPointerException(); 1497 } 1498 ensureSerializedObjectIsMutable(); 1499 serializedObject_.set(index, value); 1500 onChanged(); 1501 } else { 1502 serializedObjectBuilder_.setMessage(index, value); 1503 } 1504 return this; 1505 } 1506 /** 1507 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1508 */ 1509 public Builder setSerializedObject( 1510 int index, com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto.Builder builderForValue) { 1511 if (serializedObjectBuilder_ == null) { 1512 ensureSerializedObjectIsMutable(); 1513 serializedObject_.set(index, builderForValue.build()); 1514 onChanged(); 1515 } else { 1516 serializedObjectBuilder_.setMessage(index, builderForValue.build()); 1517 } 1518 return this; 1519 } 1520 /** 1521 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1522 */ 1523 public Builder addSerializedObject(com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto value) { 1524 if (serializedObjectBuilder_ == null) { 1525 if (value == null) { 1526 throw new NullPointerException(); 1527 } 1528 ensureSerializedObjectIsMutable(); 1529 serializedObject_.add(value); 1530 onChanged(); 1531 } else { 1532 serializedObjectBuilder_.addMessage(value); 1533 } 1534 return this; 1535 } 1536 /** 1537 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1538 */ 1539 public Builder addSerializedObject( 1540 int index, com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto value) { 1541 if (serializedObjectBuilder_ == null) { 1542 if (value == null) { 1543 throw new NullPointerException(); 1544 } 1545 ensureSerializedObjectIsMutable(); 1546 serializedObject_.add(index, value); 1547 onChanged(); 1548 } else { 1549 serializedObjectBuilder_.addMessage(index, value); 1550 } 1551 return this; 1552 } 1553 /** 1554 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1555 */ 1556 public Builder addSerializedObject( 1557 com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto.Builder builderForValue) { 1558 if (serializedObjectBuilder_ == null) { 1559 ensureSerializedObjectIsMutable(); 1560 serializedObject_.add(builderForValue.build()); 1561 onChanged(); 1562 } else { 1563 serializedObjectBuilder_.addMessage(builderForValue.build()); 1564 } 1565 return this; 1566 } 1567 /** 1568 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1569 */ 1570 public Builder addSerializedObject( 1571 int index, com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto.Builder builderForValue) { 1572 if (serializedObjectBuilder_ == null) { 1573 ensureSerializedObjectIsMutable(); 1574 serializedObject_.add(index, builderForValue.build()); 1575 onChanged(); 1576 } else { 1577 serializedObjectBuilder_.addMessage(index, builderForValue.build()); 1578 } 1579 return this; 1580 } 1581 /** 1582 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1583 */ 1584 public Builder addAllSerializedObject( 1585 java.lang.Iterable<? extends com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto> values) { 1586 if (serializedObjectBuilder_ == null) { 1587 ensureSerializedObjectIsMutable(); 1588 com.google.protobuf.AbstractMessageLite.Builder.addAll( 1589 values, serializedObject_); 1590 onChanged(); 1591 } else { 1592 serializedObjectBuilder_.addAllMessages(values); 1593 } 1594 return this; 1595 } 1596 /** 1597 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1598 */ 1599 public Builder clearSerializedObject() { 1600 if (serializedObjectBuilder_ == null) { 1601 serializedObject_ = java.util.Collections.emptyList(); 1602 bitField0_ = (bitField0_ & ~0x00000008); 1603 onChanged(); 1604 } else { 1605 serializedObjectBuilder_.clear(); 1606 } 1607 return this; 1608 } 1609 /** 1610 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1611 */ 1612 public Builder removeSerializedObject(int index) { 1613 if (serializedObjectBuilder_ == null) { 1614 ensureSerializedObjectIsMutable(); 1615 serializedObject_.remove(index); 1616 onChanged(); 1617 } else { 1618 serializedObjectBuilder_.remove(index); 1619 } 1620 return this; 1621 } 1622 /** 1623 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1624 */ 1625 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto.Builder getSerializedObjectBuilder( 1626 int index) { 1627 return getSerializedObjectFieldBuilder().getBuilder(index); 1628 } 1629 /** 1630 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1631 */ 1632 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProtoOrBuilder getSerializedObjectOrBuilder( 1633 int index) { 1634 if (serializedObjectBuilder_ == null) { 1635 return serializedObject_.get(index); } else { 1636 return serializedObjectBuilder_.getMessageOrBuilder(index); 1637 } 1638 } 1639 /** 1640 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1641 */ 1642 public java.util.List<? extends com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProtoOrBuilder> 1643 getSerializedObjectOrBuilderList() { 1644 if (serializedObjectBuilder_ != null) { 1645 return serializedObjectBuilder_.getMessageOrBuilderList(); 1646 } else { 1647 return java.util.Collections.unmodifiableList(serializedObject_); 1648 } 1649 } 1650 /** 1651 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1652 */ 1653 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto.Builder addSerializedObjectBuilder() { 1654 return getSerializedObjectFieldBuilder().addBuilder( 1655 com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto.getDefaultInstance()); 1656 } 1657 /** 1658 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1659 */ 1660 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto.Builder addSerializedObjectBuilder( 1661 int index) { 1662 return getSerializedObjectFieldBuilder().addBuilder( 1663 index, com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto.getDefaultInstance()); 1664 } 1665 /** 1666 * <code>repeated .olcut.SerializedObjectProto serialized_object = 4;</code> 1667 */ 1668 public java.util.List<com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto.Builder> 1669 getSerializedObjectBuilderList() { 1670 return getSerializedObjectFieldBuilder().getBuilderList(); 1671 } 1672 private com.google.protobuf.RepeatedFieldBuilderV3< 1673 com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto, com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto.Builder, com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProtoOrBuilder> 1674 getSerializedObjectFieldBuilder() { 1675 if (serializedObjectBuilder_ == null) { 1676 serializedObjectBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< 1677 com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto, com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProto.Builder, com.oracle.labs.mlrg.olcut.config.protobuf.protos.SerializedObjectProtoOrBuilder>( 1678 serializedObject_, 1679 ((bitField0_ & 0x00000008) != 0), 1680 getParentForChildren(), 1681 isClean()); 1682 serializedObject_ = null; 1683 } 1684 return serializedObjectBuilder_; 1685 } 1686 @java.lang.Override 1687 public final Builder setUnknownFields( 1688 final com.google.protobuf.UnknownFieldSet unknownFields) { 1689 return super.setUnknownFields(unknownFields); 1690 } 1691 1692 @java.lang.Override 1693 public final Builder mergeUnknownFields( 1694 final com.google.protobuf.UnknownFieldSet unknownFields) { 1695 return super.mergeUnknownFields(unknownFields); 1696 } 1697 1698 1699 // @@protoc_insertion_point(builder_scope:olcut.ConfigProto) 1700 } 1701 1702 // @@protoc_insertion_point(class_scope:olcut.ConfigProto) 1703 private static final com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto DEFAULT_INSTANCE; 1704 static { 1705 DEFAULT_INSTANCE = new com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto(); 1706 } 1707 1708 public static com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto getDefaultInstance() { 1709 return DEFAULT_INSTANCE; 1710 } 1711 1712 private static final com.google.protobuf.Parser<ConfigProto> 1713 PARSER = new com.google.protobuf.AbstractParser<ConfigProto>() { 1714 @java.lang.Override 1715 public ConfigProto parsePartialFrom( 1716 com.google.protobuf.CodedInputStream input, 1717 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 1718 throws com.google.protobuf.InvalidProtocolBufferException { 1719 Builder builder = newBuilder(); 1720 try { 1721 builder.mergeFrom(input, extensionRegistry); 1722 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 1723 throw e.setUnfinishedMessage(builder.buildPartial()); 1724 } catch (com.google.protobuf.UninitializedMessageException e) { 1725 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 1726 } catch (java.io.IOException e) { 1727 throw new com.google.protobuf.InvalidProtocolBufferException(e) 1728 .setUnfinishedMessage(builder.buildPartial()); 1729 } 1730 return builder.buildPartial(); 1731 } 1732 }; 1733 1734 public static com.google.protobuf.Parser<ConfigProto> parser() { 1735 return PARSER; 1736 } 1737 1738 @java.lang.Override 1739 public com.google.protobuf.Parser<ConfigProto> getParserForType() { 1740 return PARSER; 1741 } 1742 1743 @java.lang.Override 1744 public com.oracle.labs.mlrg.olcut.config.protobuf.protos.ConfigProto getDefaultInstanceForType() { 1745 return DEFAULT_INSTANCE; 1746 } 1747 1748} 1749