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