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