1 /* 2 * Protocol Buffers - Google's data interchange format 3 * Copyright 2014 Google Inc. All rights reserved. 4 * https://developers.google.com/protocol-buffers/ 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: 9 * 10 * * Redistributions of source code must retain the above copyright 11 * notice, this list of conditions and the following disclaimer. 12 * * Redistributions in binary form must reproduce the above 13 * copyright notice, this list of conditions and the following disclaimer 14 * in the documentation and/or other materials provided with the 15 * distribution. 16 * * Neither the name of Google Inc. nor the names of its 17 * contributors may be used to endorse or promote products derived from 18 * this software without specific prior written permission. 19 * 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33 // Generated by the protocol buffer compiler. DO NOT EDIT! 34 // source: sentinel.proto 35 36 package com.google.protobuf.jruby; 37 38 public final class SentinelOuterClass { SentinelOuterClass()39 private SentinelOuterClass() {} registerAllExtensions( com.google.protobuf.ExtensionRegistry registry)40 public static void registerAllExtensions( 41 com.google.protobuf.ExtensionRegistry registry) { 42 } 43 public interface SentinelOrBuilder extends 44 // @@protoc_insertion_point(interface_extends:com.google.protobuf.jruby.Sentinel) 45 com.google.protobuf.MessageOrBuilder { 46 47 /** 48 * <code>optional int32 default_int32 = 1;</code> 49 */ getDefaultInt32()50 int getDefaultInt32(); 51 52 /** 53 * <code>optional int64 default_int64 = 2;</code> 54 */ getDefaultInt64()55 long getDefaultInt64(); 56 57 /** 58 * <code>optional uint32 default_unit32 = 3;</code> 59 */ getDefaultUnit32()60 int getDefaultUnit32(); 61 62 /** 63 * <code>optional uint64 default_uint64 = 4;</code> 64 */ getDefaultUint64()65 long getDefaultUint64(); 66 67 /** 68 * <code>optional string default_string = 5;</code> 69 */ getDefaultString()70 java.lang.String getDefaultString(); 71 /** 72 * <code>optional string default_string = 5;</code> 73 */ 74 com.google.protobuf.ByteString getDefaultStringBytes()75 getDefaultStringBytes(); 76 77 /** 78 * <code>optional bool default_bool = 6;</code> 79 */ getDefaultBool()80 boolean getDefaultBool(); 81 82 /** 83 * <code>optional float default_float = 7;</code> 84 */ getDefaultFloat()85 float getDefaultFloat(); 86 87 /** 88 * <code>optional double default_double = 8;</code> 89 */ getDefaultDouble()90 double getDefaultDouble(); 91 92 /** 93 * <code>optional bytes default_bytes = 9;</code> 94 */ getDefaultBytes()95 com.google.protobuf.ByteString getDefaultBytes(); 96 } 97 /** 98 * Protobuf type {@code com.google.protobuf.jruby.Sentinel} 99 */ 100 public static final class Sentinel extends 101 com.google.protobuf.GeneratedMessage implements 102 // @@protoc_insertion_point(message_implements:com.google.protobuf.jruby.Sentinel) 103 SentinelOrBuilder { 104 // Use Sentinel.newBuilder() to construct. Sentinel(com.google.protobuf.GeneratedMessage.Builder builder)105 private Sentinel(com.google.protobuf.GeneratedMessage.Builder builder) { 106 super(builder); 107 } Sentinel()108 private Sentinel() { 109 defaultInt32_ = 0; 110 defaultInt64_ = 0L; 111 defaultUnit32_ = 0; 112 defaultUint64_ = 0L; 113 defaultString_ = ""; 114 defaultBool_ = false; 115 defaultFloat_ = 0F; 116 defaultDouble_ = 0D; 117 defaultBytes_ = com.google.protobuf.ByteString.EMPTY; 118 } 119 120 @java.lang.Override 121 public final com.google.protobuf.UnknownFieldSet getUnknownFields()122 getUnknownFields() { 123 return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); 124 } 125 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()126 getDescriptor() { 127 return com.google.protobuf.jruby.SentinelOuterClass.internal_static_com_google_protobuf_jruby_Sentinel_descriptor; 128 } 129 130 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()131 internalGetFieldAccessorTable() { 132 return com.google.protobuf.jruby.SentinelOuterClass.internal_static_com_google_protobuf_jruby_Sentinel_fieldAccessorTable 133 .ensureFieldAccessorsInitialized( 134 com.google.protobuf.jruby.SentinelOuterClass.Sentinel.class, com.google.protobuf.jruby.SentinelOuterClass.Sentinel.Builder.class); 135 } 136 137 public static final com.google.protobuf.Parser<Sentinel> PARSER = 138 new com.google.protobuf.AbstractParser<Sentinel>() { 139 public Sentinel parsePartialFrom( 140 com.google.protobuf.CodedInputStream input, 141 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 142 throws com.google.protobuf.InvalidProtocolBufferException { 143 Builder builder = newBuilder(); 144 try { 145 builder.mergeFrom(input, extensionRegistry); 146 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 147 throw e.setUnfinishedMessage(builder.buildPartial()); 148 } catch (java.io.IOException e) { 149 throw new com.google.protobuf.InvalidProtocolBufferException( 150 e.getMessage()).setUnfinishedMessage(builder.buildPartial()); 151 } 152 return builder.buildPartial(); 153 } 154 }; 155 156 @java.lang.Override getParserForType()157 public com.google.protobuf.Parser<Sentinel> getParserForType() { 158 return PARSER; 159 } 160 161 public static final int DEFAULT_INT32_FIELD_NUMBER = 1; 162 private int defaultInt32_; 163 /** 164 * <code>optional int32 default_int32 = 1;</code> 165 */ getDefaultInt32()166 public int getDefaultInt32() { 167 return defaultInt32_; 168 } 169 170 public static final int DEFAULT_INT64_FIELD_NUMBER = 2; 171 private long defaultInt64_; 172 /** 173 * <code>optional int64 default_int64 = 2;</code> 174 */ getDefaultInt64()175 public long getDefaultInt64() { 176 return defaultInt64_; 177 } 178 179 public static final int DEFAULT_UNIT32_FIELD_NUMBER = 3; 180 private int defaultUnit32_; 181 /** 182 * <code>optional uint32 default_unit32 = 3;</code> 183 */ getDefaultUnit32()184 public int getDefaultUnit32() { 185 return defaultUnit32_; 186 } 187 188 public static final int DEFAULT_UINT64_FIELD_NUMBER = 4; 189 private long defaultUint64_; 190 /** 191 * <code>optional uint64 default_uint64 = 4;</code> 192 */ getDefaultUint64()193 public long getDefaultUint64() { 194 return defaultUint64_; 195 } 196 197 public static final int DEFAULT_STRING_FIELD_NUMBER = 5; 198 private java.lang.Object defaultString_; 199 /** 200 * <code>optional string default_string = 5;</code> 201 */ getDefaultString()202 public java.lang.String getDefaultString() { 203 java.lang.Object ref = defaultString_; 204 if (ref instanceof java.lang.String) { 205 return (java.lang.String) ref; 206 } else { 207 com.google.protobuf.ByteString bs = 208 (com.google.protobuf.ByteString) ref; 209 java.lang.String s = bs.toStringUtf8(); 210 if (bs.isValidUtf8()) { 211 defaultString_ = s; 212 } 213 return s; 214 } 215 } 216 /** 217 * <code>optional string default_string = 5;</code> 218 */ 219 public com.google.protobuf.ByteString getDefaultStringBytes()220 getDefaultStringBytes() { 221 java.lang.Object ref = defaultString_; 222 if (ref instanceof java.lang.String) { 223 com.google.protobuf.ByteString b = 224 com.google.protobuf.ByteString.copyFromUtf8( 225 (java.lang.String) ref); 226 defaultString_ = b; 227 return b; 228 } else { 229 return (com.google.protobuf.ByteString) ref; 230 } 231 } 232 233 public static final int DEFAULT_BOOL_FIELD_NUMBER = 6; 234 private boolean defaultBool_; 235 /** 236 * <code>optional bool default_bool = 6;</code> 237 */ getDefaultBool()238 public boolean getDefaultBool() { 239 return defaultBool_; 240 } 241 242 public static final int DEFAULT_FLOAT_FIELD_NUMBER = 7; 243 private float defaultFloat_; 244 /** 245 * <code>optional float default_float = 7;</code> 246 */ getDefaultFloat()247 public float getDefaultFloat() { 248 return defaultFloat_; 249 } 250 251 public static final int DEFAULT_DOUBLE_FIELD_NUMBER = 8; 252 private double defaultDouble_; 253 /** 254 * <code>optional double default_double = 8;</code> 255 */ getDefaultDouble()256 public double getDefaultDouble() { 257 return defaultDouble_; 258 } 259 260 public static final int DEFAULT_BYTES_FIELD_NUMBER = 9; 261 private com.google.protobuf.ByteString defaultBytes_; 262 /** 263 * <code>optional bytes default_bytes = 9;</code> 264 */ getDefaultBytes()265 public com.google.protobuf.ByteString getDefaultBytes() { 266 return defaultBytes_; 267 } 268 parseFrom( com.google.protobuf.ByteString data)269 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel parseFrom( 270 com.google.protobuf.ByteString data) 271 throws com.google.protobuf.InvalidProtocolBufferException { 272 return PARSER.parseFrom(data); 273 } parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)274 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel parseFrom( 275 com.google.protobuf.ByteString data, 276 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 277 throws com.google.protobuf.InvalidProtocolBufferException { 278 return PARSER.parseFrom(data, extensionRegistry); 279 } parseFrom(byte[] data)280 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel parseFrom(byte[] data) 281 throws com.google.protobuf.InvalidProtocolBufferException { 282 return PARSER.parseFrom(data); 283 } parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)284 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel parseFrom( 285 byte[] data, 286 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 287 throws com.google.protobuf.InvalidProtocolBufferException { 288 return PARSER.parseFrom(data, extensionRegistry); 289 } parseFrom(java.io.InputStream input)290 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel parseFrom(java.io.InputStream input) 291 throws java.io.IOException { 292 return PARSER.parseFrom(input); 293 } parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)294 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel parseFrom( 295 java.io.InputStream input, 296 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 297 throws java.io.IOException { 298 return PARSER.parseFrom(input, extensionRegistry); 299 } parseDelimitedFrom(java.io.InputStream input)300 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel parseDelimitedFrom(java.io.InputStream input) 301 throws java.io.IOException { 302 return PARSER.parseDelimitedFrom(input); 303 } parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)304 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel parseDelimitedFrom( 305 java.io.InputStream input, 306 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 307 throws java.io.IOException { 308 return PARSER.parseDelimitedFrom(input, extensionRegistry); 309 } parseFrom( com.google.protobuf.CodedInputStream input)310 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel parseFrom( 311 com.google.protobuf.CodedInputStream input) 312 throws java.io.IOException { 313 return PARSER.parseFrom(input); 314 } parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)315 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel parseFrom( 316 com.google.protobuf.CodedInputStream input, 317 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 318 throws java.io.IOException { 319 return PARSER.parseFrom(input, extensionRegistry); 320 } 321 newBuilder()322 public static Builder newBuilder() { return new Builder(); } newBuilderForType()323 public Builder newBuilderForType() { return newBuilder(); } newBuilder(com.google.protobuf.jruby.SentinelOuterClass.Sentinel prototype)324 public static Builder newBuilder(com.google.protobuf.jruby.SentinelOuterClass.Sentinel prototype) { 325 return newBuilder().mergeFrom(prototype); 326 } toBuilder()327 public Builder toBuilder() { return newBuilder(this); } 328 329 @java.lang.Override newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent)330 protected Builder newBuilderForType( 331 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 332 Builder builder = new Builder(parent); 333 return builder; 334 } 335 /** 336 * Protobuf type {@code com.google.protobuf.jruby.Sentinel} 337 */ 338 public static final class Builder extends 339 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 340 // @@protoc_insertion_point(builder_implements:com.google.protobuf.jruby.Sentinel) 341 com.google.protobuf.jruby.SentinelOuterClass.SentinelOrBuilder { 342 public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()343 getDescriptor() { 344 return com.google.protobuf.jruby.SentinelOuterClass.internal_static_com_google_protobuf_jruby_Sentinel_descriptor; 345 } 346 347 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()348 internalGetFieldAccessorTable() { 349 return com.google.protobuf.jruby.SentinelOuterClass.internal_static_com_google_protobuf_jruby_Sentinel_fieldAccessorTable 350 .ensureFieldAccessorsInitialized( 351 com.google.protobuf.jruby.SentinelOuterClass.Sentinel.class, com.google.protobuf.jruby.SentinelOuterClass.Sentinel.Builder.class); 352 } 353 354 // Construct using com.google.protobuf.jruby.SentinelOuterClass.Sentinel.newBuilder() Builder()355 private Builder() { 356 maybeForceBuilderInitialization(); 357 } 358 Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent)359 private Builder( 360 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 361 super(parent); 362 maybeForceBuilderInitialization(); 363 } maybeForceBuilderInitialization()364 private void maybeForceBuilderInitialization() { 365 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { 366 } 367 } clear()368 public Builder clear() { 369 super.clear(); 370 defaultInt32_ = 0; 371 372 defaultInt64_ = 0L; 373 374 defaultUnit32_ = 0; 375 376 defaultUint64_ = 0L; 377 378 defaultString_ = ""; 379 380 defaultBool_ = false; 381 382 defaultFloat_ = 0F; 383 384 defaultDouble_ = 0D; 385 386 defaultBytes_ = com.google.protobuf.ByteString.EMPTY; 387 388 return this; 389 } 390 391 public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()392 getDescriptorForType() { 393 return com.google.protobuf.jruby.SentinelOuterClass.internal_static_com_google_protobuf_jruby_Sentinel_descriptor; 394 } 395 getDefaultInstanceForType()396 public com.google.protobuf.jruby.SentinelOuterClass.Sentinel getDefaultInstanceForType() { 397 return com.google.protobuf.jruby.SentinelOuterClass.Sentinel.getDefaultInstance(); 398 } 399 build()400 public com.google.protobuf.jruby.SentinelOuterClass.Sentinel build() { 401 com.google.protobuf.jruby.SentinelOuterClass.Sentinel result = buildPartial(); 402 if (!result.isInitialized()) { 403 throw newUninitializedMessageException(result); 404 } 405 return result; 406 } 407 buildPartial()408 public com.google.protobuf.jruby.SentinelOuterClass.Sentinel buildPartial() { 409 com.google.protobuf.jruby.SentinelOuterClass.Sentinel result = new com.google.protobuf.jruby.SentinelOuterClass.Sentinel(this); 410 result.defaultInt32_ = defaultInt32_; 411 result.defaultInt64_ = defaultInt64_; 412 result.defaultUnit32_ = defaultUnit32_; 413 result.defaultUint64_ = defaultUint64_; 414 result.defaultString_ = defaultString_; 415 result.defaultBool_ = defaultBool_; 416 result.defaultFloat_ = defaultFloat_; 417 result.defaultDouble_ = defaultDouble_; 418 result.defaultBytes_ = defaultBytes_; 419 onBuilt(); 420 return result; 421 } 422 423 424 private int defaultInt32_ ; 425 /** 426 * <code>optional int32 default_int32 = 1;</code> 427 */ getDefaultInt32()428 public int getDefaultInt32() { 429 return defaultInt32_; 430 } 431 /** 432 * <code>optional int32 default_int32 = 1;</code> 433 */ setDefaultInt32(int value)434 public Builder setDefaultInt32(int value) { 435 436 defaultInt32_ = value; 437 onChanged(); 438 return this; 439 } 440 /** 441 * <code>optional int32 default_int32 = 1;</code> 442 */ clearDefaultInt32()443 public Builder clearDefaultInt32() { 444 445 defaultInt32_ = 0; 446 onChanged(); 447 return this; 448 } 449 450 private long defaultInt64_ ; 451 /** 452 * <code>optional int64 default_int64 = 2;</code> 453 */ getDefaultInt64()454 public long getDefaultInt64() { 455 return defaultInt64_; 456 } 457 /** 458 * <code>optional int64 default_int64 = 2;</code> 459 */ setDefaultInt64(long value)460 public Builder setDefaultInt64(long value) { 461 462 defaultInt64_ = value; 463 onChanged(); 464 return this; 465 } 466 /** 467 * <code>optional int64 default_int64 = 2;</code> 468 */ clearDefaultInt64()469 public Builder clearDefaultInt64() { 470 471 defaultInt64_ = 0L; 472 onChanged(); 473 return this; 474 } 475 476 private int defaultUnit32_ ; 477 /** 478 * <code>optional uint32 default_unit32 = 3;</code> 479 */ getDefaultUnit32()480 public int getDefaultUnit32() { 481 return defaultUnit32_; 482 } 483 /** 484 * <code>optional uint32 default_unit32 = 3;</code> 485 */ setDefaultUnit32(int value)486 public Builder setDefaultUnit32(int value) { 487 488 defaultUnit32_ = value; 489 onChanged(); 490 return this; 491 } 492 /** 493 * <code>optional uint32 default_unit32 = 3;</code> 494 */ clearDefaultUnit32()495 public Builder clearDefaultUnit32() { 496 497 defaultUnit32_ = 0; 498 onChanged(); 499 return this; 500 } 501 502 private long defaultUint64_ ; 503 /** 504 * <code>optional uint64 default_uint64 = 4;</code> 505 */ getDefaultUint64()506 public long getDefaultUint64() { 507 return defaultUint64_; 508 } 509 /** 510 * <code>optional uint64 default_uint64 = 4;</code> 511 */ setDefaultUint64(long value)512 public Builder setDefaultUint64(long value) { 513 514 defaultUint64_ = value; 515 onChanged(); 516 return this; 517 } 518 /** 519 * <code>optional uint64 default_uint64 = 4;</code> 520 */ clearDefaultUint64()521 public Builder clearDefaultUint64() { 522 523 defaultUint64_ = 0L; 524 onChanged(); 525 return this; 526 } 527 528 private java.lang.Object defaultString_ = ""; 529 /** 530 * <code>optional string default_string = 5;</code> 531 */ getDefaultString()532 public java.lang.String getDefaultString() { 533 java.lang.Object ref = defaultString_; 534 if (!(ref instanceof java.lang.String)) { 535 com.google.protobuf.ByteString bs = 536 (com.google.protobuf.ByteString) ref; 537 java.lang.String s = bs.toStringUtf8(); 538 if (bs.isValidUtf8()) { 539 defaultString_ = s; 540 } 541 return s; 542 } else { 543 return (java.lang.String) ref; 544 } 545 } 546 /** 547 * <code>optional string default_string = 5;</code> 548 */ 549 public com.google.protobuf.ByteString getDefaultStringBytes()550 getDefaultStringBytes() { 551 java.lang.Object ref = defaultString_; 552 if (ref instanceof String) { 553 com.google.protobuf.ByteString b = 554 com.google.protobuf.ByteString.copyFromUtf8( 555 (java.lang.String) ref); 556 defaultString_ = b; 557 return b; 558 } else { 559 return (com.google.protobuf.ByteString) ref; 560 } 561 } 562 /** 563 * <code>optional string default_string = 5;</code> 564 */ setDefaultString( java.lang.String value)565 public Builder setDefaultString( 566 java.lang.String value) { 567 if (value == null) { 568 throw new NullPointerException(); 569 } 570 571 defaultString_ = value; 572 onChanged(); 573 return this; 574 } 575 /** 576 * <code>optional string default_string = 5;</code> 577 */ clearDefaultString()578 public Builder clearDefaultString() { 579 580 defaultString_ = getDefaultInstance().getDefaultString(); 581 onChanged(); 582 return this; 583 } 584 /** 585 * <code>optional string default_string = 5;</code> 586 */ setDefaultStringBytes( com.google.protobuf.ByteString value)587 public Builder setDefaultStringBytes( 588 com.google.protobuf.ByteString value) { 589 if (value == null) { 590 throw new NullPointerException(); 591 } 592 593 defaultString_ = value; 594 onChanged(); 595 return this; 596 } 597 598 private boolean defaultBool_ ; 599 /** 600 * <code>optional bool default_bool = 6;</code> 601 */ getDefaultBool()602 public boolean getDefaultBool() { 603 return defaultBool_; 604 } 605 /** 606 * <code>optional bool default_bool = 6;</code> 607 */ setDefaultBool(boolean value)608 public Builder setDefaultBool(boolean value) { 609 610 defaultBool_ = value; 611 onChanged(); 612 return this; 613 } 614 /** 615 * <code>optional bool default_bool = 6;</code> 616 */ clearDefaultBool()617 public Builder clearDefaultBool() { 618 619 defaultBool_ = false; 620 onChanged(); 621 return this; 622 } 623 624 private float defaultFloat_ ; 625 /** 626 * <code>optional float default_float = 7;</code> 627 */ getDefaultFloat()628 public float getDefaultFloat() { 629 return defaultFloat_; 630 } 631 /** 632 * <code>optional float default_float = 7;</code> 633 */ setDefaultFloat(float value)634 public Builder setDefaultFloat(float value) { 635 636 defaultFloat_ = value; 637 onChanged(); 638 return this; 639 } 640 /** 641 * <code>optional float default_float = 7;</code> 642 */ clearDefaultFloat()643 public Builder clearDefaultFloat() { 644 645 defaultFloat_ = 0F; 646 onChanged(); 647 return this; 648 } 649 650 private double defaultDouble_ ; 651 /** 652 * <code>optional double default_double = 8;</code> 653 */ getDefaultDouble()654 public double getDefaultDouble() { 655 return defaultDouble_; 656 } 657 /** 658 * <code>optional double default_double = 8;</code> 659 */ setDefaultDouble(double value)660 public Builder setDefaultDouble(double value) { 661 662 defaultDouble_ = value; 663 onChanged(); 664 return this; 665 } 666 /** 667 * <code>optional double default_double = 8;</code> 668 */ clearDefaultDouble()669 public Builder clearDefaultDouble() { 670 671 defaultDouble_ = 0D; 672 onChanged(); 673 return this; 674 } 675 676 private com.google.protobuf.ByteString defaultBytes_ = com.google.protobuf.ByteString.EMPTY; 677 /** 678 * <code>optional bytes default_bytes = 9;</code> 679 */ getDefaultBytes()680 public com.google.protobuf.ByteString getDefaultBytes() { 681 return defaultBytes_; 682 } 683 /** 684 * <code>optional bytes default_bytes = 9;</code> 685 */ setDefaultBytes(com.google.protobuf.ByteString value)686 public Builder setDefaultBytes(com.google.protobuf.ByteString value) { 687 if (value == null) { 688 throw new NullPointerException(); 689 } 690 691 defaultBytes_ = value; 692 onChanged(); 693 return this; 694 } 695 /** 696 * <code>optional bytes default_bytes = 9;</code> 697 */ clearDefaultBytes()698 public Builder clearDefaultBytes() { 699 700 defaultBytes_ = getDefaultInstance().getDefaultBytes(); 701 onChanged(); 702 return this; 703 } setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)704 public final Builder setUnknownFields( 705 final com.google.protobuf.UnknownFieldSet unknownFields) { 706 return this; 707 } 708 mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)709 public final Builder mergeUnknownFields( 710 final com.google.protobuf.UnknownFieldSet unknownFields) { 711 return this; 712 } 713 714 715 // @@protoc_insertion_point(builder_scope:com.google.protobuf.jruby.Sentinel) 716 } 717 718 // @@protoc_insertion_point(class_scope:com.google.protobuf.jruby.Sentinel) 719 private static final com.google.protobuf.jruby.SentinelOuterClass.Sentinel defaultInstance;static { 720 defaultInstance = new com.google.protobuf.jruby.SentinelOuterClass.Sentinel(); 721 } 722 getDefaultInstance()723 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel getDefaultInstance() { 724 return defaultInstance; 725 } 726 getDefaultInstanceForType()727 public com.google.protobuf.jruby.SentinelOuterClass.Sentinel getDefaultInstanceForType() { 728 return defaultInstance; 729 } 730 731 } 732 733 private static final com.google.protobuf.Descriptors.Descriptor 734 internal_static_com_google_protobuf_jruby_Sentinel_descriptor; 735 private static 736 com.google.protobuf.GeneratedMessage.FieldAccessorTable 737 internal_static_com_google_protobuf_jruby_Sentinel_fieldAccessorTable; 738 739 public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor()740 getDescriptor() { 741 return descriptor; 742 } 743 private static com.google.protobuf.Descriptors.FileDescriptor 744 descriptor; 745 static { 746 java.lang.String[] descriptorData = { 747 "\n\016sentinel.proto\022\031com.google.protobuf.jr" + 748 "uby\"\334\001\n\010Sentinel\022\025\n\rdefault_int32\030\001 \001(\005\022" + 749 "\025\n\rdefault_int64\030\002 \001(\003\022\026\n\016default_unit32" + 750 "\030\003 \001(\r\022\026\n\016default_uint64\030\004 \001(\004\022\026\n\016defaul" + 751 "t_string\030\005 \001(\t\022\024\n\014default_bool\030\006 \001(\010\022\025\n\r" + 752 "default_float\030\007 \001(\002\022\026\n\016default_double\030\010 " + 753 "\001(\001\022\025\n\rdefault_bytes\030\t \001(\014B\002H\002b\006proto3" 754 }; 755 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = 756 new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { 757 public com.google.protobuf.ExtensionRegistry assignDescriptors( 758 com.google.protobuf.Descriptors.FileDescriptor root) { 759 descriptor = root; 760 return null; 761 } 762 }; 763 com.google.protobuf.Descriptors.FileDescriptor internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner)764 .internalBuildGeneratedFileFrom(descriptorData, 765 new com.google.protobuf.Descriptors.FileDescriptor[] { 766 }, assigner); 767 internal_static_com_google_protobuf_jruby_Sentinel_descriptor = 768 getDescriptor().getMessageTypes().get(0); 769 internal_static_com_google_protobuf_jruby_Sentinel_fieldAccessorTable = new 770 com.google.protobuf.GeneratedMessage.FieldAccessorTable( 771 internal_static_com_google_protobuf_jruby_Sentinel_descriptor, 772 new java.lang.String[] { "DefaultInt32", "DefaultInt64", "DefaultUnit32", "DefaultUint64", "DefaultString", "DefaultBool", "DefaultFloat", "DefaultDouble", "DefaultBytes", }); 773 } 774 775 // @@protoc_insertion_point(outer_class_scope) 776 } 777