001// Generated by the protocol buffer compiler.  DO NOT EDIT!
002// NO CHECKED-IN PROTOBUF GENCODE
003// source: java/dev/enola/model/enola/meta/proto/meta.proto
004// Protobuf Java Version: 4.32.1
005
006package dev.enola.model.enola.meta.proto;
007
008/**
009 * Protobuf type {@code dev.enola.meta.Property}
010 */
011@com.google.protobuf.Generated
012public final class Property extends
013    com.google.protobuf.GeneratedMessage implements
014    // @@protoc_insertion_point(message_implements:dev.enola.meta.Property)
015    PropertyOrBuilder {
016private static final long serialVersionUID = 0L;
017  static {
018    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
019      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
020      /* major= */ 4,
021      /* minor= */ 32,
022      /* patch= */ 1,
023      /* suffix= */ "",
024      Property.class.getName());
025  }
026  // Use Property.newBuilder() to construct.
027  private Property(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
028    super(builder);
029  }
030  private Property() {
031    iri_ = "";
032    name_ = "";
033    label_ = "";
034    description_ = "";
035    datatype_ = "";
036    multiplicity_ = 0;
037  }
038
039  public static final com.google.protobuf.Descriptors.Descriptor
040      getDescriptor() {
041    return dev.enola.model.enola.meta.proto.Meta.internal_static_dev_enola_meta_Property_descriptor;
042  }
043
044  @java.lang.Override
045  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
046      internalGetFieldAccessorTable() {
047    return dev.enola.model.enola.meta.proto.Meta.internal_static_dev_enola_meta_Property_fieldAccessorTable
048        .ensureFieldAccessorsInitialized(
049            dev.enola.model.enola.meta.proto.Property.class, dev.enola.model.enola.meta.proto.Property.Builder.class);
050  }
051
052  /**
053   * Protobuf enum {@code dev.enola.meta.Property.Multiplicity}
054   */
055  public enum Multiplicity
056      implements com.google.protobuf.ProtocolMessageEnum {
057    /**
058     * <pre>
059     * TODO No UNSPECIFIED, default to SINGLE = 0?
060     * </pre>
061     *
062     * <code>MULTIPLICITY_UNSPECIFIED = 0;</code>
063     */
064    MULTIPLICITY_UNSPECIFIED(0),
065    /**
066     * <code>MULTIPLICITY_SINGLE = 1;</code>
067     */
068    MULTIPLICITY_SINGLE(1),
069    /**
070     * <code>MULTIPLICITY_SET = 2;</code>
071     */
072    MULTIPLICITY_SET(2),
073    /**
074     * <code>MULTIPLICITY_LIST = 3;</code>
075     */
076    MULTIPLICITY_LIST(3),
077    UNRECOGNIZED(-1),
078    ;
079
080    static {
081      com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
082        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
083        /* major= */ 4,
084        /* minor= */ 32,
085        /* patch= */ 1,
086        /* suffix= */ "",
087        Multiplicity.class.getName());
088    }
089    /**
090     * <pre>
091     * TODO No UNSPECIFIED, default to SINGLE = 0?
092     * </pre>
093     *
094     * <code>MULTIPLICITY_UNSPECIFIED = 0;</code>
095     */
096    public static final int MULTIPLICITY_UNSPECIFIED_VALUE = 0;
097    /**
098     * <code>MULTIPLICITY_SINGLE = 1;</code>
099     */
100    public static final int MULTIPLICITY_SINGLE_VALUE = 1;
101    /**
102     * <code>MULTIPLICITY_SET = 2;</code>
103     */
104    public static final int MULTIPLICITY_SET_VALUE = 2;
105    /**
106     * <code>MULTIPLICITY_LIST = 3;</code>
107     */
108    public static final int MULTIPLICITY_LIST_VALUE = 3;
109
110
111    public final int getNumber() {
112      if (this == UNRECOGNIZED) {
113        throw new java.lang.IllegalArgumentException(
114            "Can't get the number of an unknown enum value.");
115      }
116      return value;
117    }
118
119    /**
120     * @param value The numeric wire value of the corresponding enum entry.
121     * @return The enum associated with the given numeric wire value.
122     * @deprecated Use {@link #forNumber(int)} instead.
123     */
124    @java.lang.Deprecated
125    public static Multiplicity valueOf(int value) {
126      return forNumber(value);
127    }
128
129    /**
130     * @param value The numeric wire value of the corresponding enum entry.
131     * @return The enum associated with the given numeric wire value.
132     */
133    public static Multiplicity forNumber(int value) {
134      switch (value) {
135        case 0: return MULTIPLICITY_UNSPECIFIED;
136        case 1: return MULTIPLICITY_SINGLE;
137        case 2: return MULTIPLICITY_SET;
138        case 3: return MULTIPLICITY_LIST;
139        default: return null;
140      }
141    }
142
143    public static com.google.protobuf.Internal.EnumLiteMap<Multiplicity>
144        internalGetValueMap() {
145      return internalValueMap;
146    }
147    private static final com.google.protobuf.Internal.EnumLiteMap<
148        Multiplicity> internalValueMap =
149          new com.google.protobuf.Internal.EnumLiteMap<Multiplicity>() {
150            public Multiplicity findValueByNumber(int number) {
151              return Multiplicity.forNumber(number);
152            }
153          };
154
155    public final com.google.protobuf.Descriptors.EnumValueDescriptor
156        getValueDescriptor() {
157      if (this == UNRECOGNIZED) {
158        throw new java.lang.IllegalStateException(
159            "Can't get the descriptor of an unrecognized enum value.");
160      }
161      return getDescriptor().getValues().get(ordinal());
162    }
163    public final com.google.protobuf.Descriptors.EnumDescriptor
164        getDescriptorForType() {
165      return getDescriptor();
166    }
167    public static com.google.protobuf.Descriptors.EnumDescriptor
168        getDescriptor() {
169      return dev.enola.model.enola.meta.proto.Property.getDescriptor().getEnumTypes().get(0);
170    }
171
172    private static final Multiplicity[] VALUES = values();
173
174    public static Multiplicity valueOf(
175        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
176      if (desc.getType() != getDescriptor()) {
177        throw new java.lang.IllegalArgumentException(
178          "EnumValueDescriptor is not for this type.");
179      }
180      if (desc.getIndex() == -1) {
181        return UNRECOGNIZED;
182      }
183      return VALUES[desc.getIndex()];
184    }
185
186    private final int value;
187
188    private Multiplicity(int value) {
189      this.value = value;
190    }
191
192    // @@protoc_insertion_point(enum_scope:dev.enola.meta.Property.Multiplicity)
193  }
194
195  public static final int IRI_FIELD_NUMBER = 1;
196  @SuppressWarnings("serial")
197  private volatile java.lang.Object iri_ = "";
198  /**
199   * <code>string iri = 1;</code>
200   * @return The iri.
201   */
202  @java.lang.Override
203  public java.lang.String getIri() {
204    java.lang.Object ref = iri_;
205    if (ref instanceof java.lang.String) {
206      return (java.lang.String) ref;
207    } else {
208      com.google.protobuf.ByteString bs = 
209          (com.google.protobuf.ByteString) ref;
210      java.lang.String s = bs.toStringUtf8();
211      iri_ = s;
212      return s;
213    }
214  }
215  /**
216   * <code>string iri = 1;</code>
217   * @return The bytes for iri.
218   */
219  @java.lang.Override
220  public com.google.protobuf.ByteString
221      getIriBytes() {
222    java.lang.Object ref = iri_;
223    if (ref instanceof java.lang.String) {
224      com.google.protobuf.ByteString b = 
225          com.google.protobuf.ByteString.copyFromUtf8(
226              (java.lang.String) ref);
227      iri_ = b;
228      return b;
229    } else {
230      return (com.google.protobuf.ByteString) ref;
231    }
232  }
233
234  public static final int NAME_FIELD_NUMBER = 2;
235  @SuppressWarnings("serial")
236  private volatile java.lang.Object name_ = "";
237  /**
238   * <code>string name = 2;</code>
239   * @return The name.
240   */
241  @java.lang.Override
242  public java.lang.String getName() {
243    java.lang.Object ref = name_;
244    if (ref instanceof java.lang.String) {
245      return (java.lang.String) ref;
246    } else {
247      com.google.protobuf.ByteString bs = 
248          (com.google.protobuf.ByteString) ref;
249      java.lang.String s = bs.toStringUtf8();
250      name_ = s;
251      return s;
252    }
253  }
254  /**
255   * <code>string name = 2;</code>
256   * @return The bytes for name.
257   */
258  @java.lang.Override
259  public com.google.protobuf.ByteString
260      getNameBytes() {
261    java.lang.Object ref = name_;
262    if (ref instanceof java.lang.String) {
263      com.google.protobuf.ByteString b = 
264          com.google.protobuf.ByteString.copyFromUtf8(
265              (java.lang.String) ref);
266      name_ = b;
267      return b;
268    } else {
269      return (com.google.protobuf.ByteString) ref;
270    }
271  }
272
273  public static final int LABEL_FIELD_NUMBER = 3;
274  @SuppressWarnings("serial")
275  private volatile java.lang.Object label_ = "";
276  /**
277   * <code>string label = 3;</code>
278   * @return The label.
279   */
280  @java.lang.Override
281  public java.lang.String getLabel() {
282    java.lang.Object ref = label_;
283    if (ref instanceof java.lang.String) {
284      return (java.lang.String) ref;
285    } else {
286      com.google.protobuf.ByteString bs = 
287          (com.google.protobuf.ByteString) ref;
288      java.lang.String s = bs.toStringUtf8();
289      label_ = s;
290      return s;
291    }
292  }
293  /**
294   * <code>string label = 3;</code>
295   * @return The bytes for label.
296   */
297  @java.lang.Override
298  public com.google.protobuf.ByteString
299      getLabelBytes() {
300    java.lang.Object ref = label_;
301    if (ref instanceof java.lang.String) {
302      com.google.protobuf.ByteString b = 
303          com.google.protobuf.ByteString.copyFromUtf8(
304              (java.lang.String) ref);
305      label_ = b;
306      return b;
307    } else {
308      return (com.google.protobuf.ByteString) ref;
309    }
310  }
311
312  public static final int DESCRIPTION_FIELD_NUMBER = 4;
313  @SuppressWarnings("serial")
314  private volatile java.lang.Object description_ = "";
315  /**
316   * <code>string description = 4;</code>
317   * @return The description.
318   */
319  @java.lang.Override
320  public java.lang.String getDescription() {
321    java.lang.Object ref = description_;
322    if (ref instanceof java.lang.String) {
323      return (java.lang.String) ref;
324    } else {
325      com.google.protobuf.ByteString bs = 
326          (com.google.protobuf.ByteString) ref;
327      java.lang.String s = bs.toStringUtf8();
328      description_ = s;
329      return s;
330    }
331  }
332  /**
333   * <code>string description = 4;</code>
334   * @return The bytes for description.
335   */
336  @java.lang.Override
337  public com.google.protobuf.ByteString
338      getDescriptionBytes() {
339    java.lang.Object ref = description_;
340    if (ref instanceof java.lang.String) {
341      com.google.protobuf.ByteString b = 
342          com.google.protobuf.ByteString.copyFromUtf8(
343              (java.lang.String) ref);
344      description_ = b;
345      return b;
346    } else {
347      return (com.google.protobuf.ByteString) ref;
348    }
349  }
350
351  public static final int DATATYPE_FIELD_NUMBER = 5;
352  @SuppressWarnings("serial")
353  private volatile java.lang.Object datatype_ = "";
354  /**
355   * <code>string datatype = 5;</code>
356   * @return The datatype.
357   */
358  @java.lang.Override
359  public java.lang.String getDatatype() {
360    java.lang.Object ref = datatype_;
361    if (ref instanceof java.lang.String) {
362      return (java.lang.String) ref;
363    } else {
364      com.google.protobuf.ByteString bs = 
365          (com.google.protobuf.ByteString) ref;
366      java.lang.String s = bs.toStringUtf8();
367      datatype_ = s;
368      return s;
369    }
370  }
371  /**
372   * <code>string datatype = 5;</code>
373   * @return The bytes for datatype.
374   */
375  @java.lang.Override
376  public com.google.protobuf.ByteString
377      getDatatypeBytes() {
378    java.lang.Object ref = datatype_;
379    if (ref instanceof java.lang.String) {
380      com.google.protobuf.ByteString b = 
381          com.google.protobuf.ByteString.copyFromUtf8(
382              (java.lang.String) ref);
383      datatype_ = b;
384      return b;
385    } else {
386      return (com.google.protobuf.ByteString) ref;
387    }
388  }
389
390  public static final int MULTIPLICITY_FIELD_NUMBER = 6;
391  private int multiplicity_ = 0;
392  /**
393   * <code>.dev.enola.meta.Property.Multiplicity multiplicity = 6;</code>
394   * @return The enum numeric value on the wire for multiplicity.
395   */
396  @java.lang.Override public int getMultiplicityValue() {
397    return multiplicity_;
398  }
399  /**
400   * <code>.dev.enola.meta.Property.Multiplicity multiplicity = 6;</code>
401   * @return The multiplicity.
402   */
403  @java.lang.Override public dev.enola.model.enola.meta.proto.Property.Multiplicity getMultiplicity() {
404    dev.enola.model.enola.meta.proto.Property.Multiplicity result = dev.enola.model.enola.meta.proto.Property.Multiplicity.forNumber(multiplicity_);
405    return result == null ? dev.enola.model.enola.meta.proto.Property.Multiplicity.UNRECOGNIZED : result;
406  }
407
408  private byte memoizedIsInitialized = -1;
409  @java.lang.Override
410  public final boolean isInitialized() {
411    byte isInitialized = memoizedIsInitialized;
412    if (isInitialized == 1) return true;
413    if (isInitialized == 0) return false;
414
415    memoizedIsInitialized = 1;
416    return true;
417  }
418
419  @java.lang.Override
420  public void writeTo(com.google.protobuf.CodedOutputStream output)
421                      throws java.io.IOException {
422    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iri_)) {
423      com.google.protobuf.GeneratedMessage.writeString(output, 1, iri_);
424    }
425    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
426      com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
427    }
428    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) {
429      com.google.protobuf.GeneratedMessage.writeString(output, 3, label_);
430    }
431    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) {
432      com.google.protobuf.GeneratedMessage.writeString(output, 4, description_);
433    }
434    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datatype_)) {
435      com.google.protobuf.GeneratedMessage.writeString(output, 5, datatype_);
436    }
437    if (multiplicity_ != dev.enola.model.enola.meta.proto.Property.Multiplicity.MULTIPLICITY_UNSPECIFIED.getNumber()) {
438      output.writeEnum(6, multiplicity_);
439    }
440    getUnknownFields().writeTo(output);
441  }
442
443  @java.lang.Override
444  public int getSerializedSize() {
445    int size = memoizedSize;
446    if (size != -1) return size;
447
448    size = 0;
449    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iri_)) {
450      size += com.google.protobuf.GeneratedMessage.computeStringSize(1, iri_);
451    }
452    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
453      size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
454    }
455    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) {
456      size += com.google.protobuf.GeneratedMessage.computeStringSize(3, label_);
457    }
458    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) {
459      size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_);
460    }
461    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datatype_)) {
462      size += com.google.protobuf.GeneratedMessage.computeStringSize(5, datatype_);
463    }
464    if (multiplicity_ != dev.enola.model.enola.meta.proto.Property.Multiplicity.MULTIPLICITY_UNSPECIFIED.getNumber()) {
465      size += com.google.protobuf.CodedOutputStream
466        .computeEnumSize(6, multiplicity_);
467    }
468    size += getUnknownFields().getSerializedSize();
469    memoizedSize = size;
470    return size;
471  }
472
473  @java.lang.Override
474  public boolean equals(final java.lang.Object obj) {
475    if (obj == this) {
476     return true;
477    }
478    if (!(obj instanceof dev.enola.model.enola.meta.proto.Property)) {
479      return super.equals(obj);
480    }
481    dev.enola.model.enola.meta.proto.Property other = (dev.enola.model.enola.meta.proto.Property) obj;
482
483    if (!getIri()
484        .equals(other.getIri())) return false;
485    if (!getName()
486        .equals(other.getName())) return false;
487    if (!getLabel()
488        .equals(other.getLabel())) return false;
489    if (!getDescription()
490        .equals(other.getDescription())) return false;
491    if (!getDatatype()
492        .equals(other.getDatatype())) return false;
493    if (multiplicity_ != other.multiplicity_) return false;
494    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
495    return true;
496  }
497
498  @java.lang.Override
499  public int hashCode() {
500    if (memoizedHashCode != 0) {
501      return memoizedHashCode;
502    }
503    int hash = 41;
504    hash = (19 * hash) + getDescriptor().hashCode();
505    hash = (37 * hash) + IRI_FIELD_NUMBER;
506    hash = (53 * hash) + getIri().hashCode();
507    hash = (37 * hash) + NAME_FIELD_NUMBER;
508    hash = (53 * hash) + getName().hashCode();
509    hash = (37 * hash) + LABEL_FIELD_NUMBER;
510    hash = (53 * hash) + getLabel().hashCode();
511    hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
512    hash = (53 * hash) + getDescription().hashCode();
513    hash = (37 * hash) + DATATYPE_FIELD_NUMBER;
514    hash = (53 * hash) + getDatatype().hashCode();
515    hash = (37 * hash) + MULTIPLICITY_FIELD_NUMBER;
516    hash = (53 * hash) + multiplicity_;
517    hash = (29 * hash) + getUnknownFields().hashCode();
518    memoizedHashCode = hash;
519    return hash;
520  }
521
522  public static dev.enola.model.enola.meta.proto.Property parseFrom(
523      java.nio.ByteBuffer data)
524      throws com.google.protobuf.InvalidProtocolBufferException {
525    return PARSER.parseFrom(data);
526  }
527  public static dev.enola.model.enola.meta.proto.Property parseFrom(
528      java.nio.ByteBuffer data,
529      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
530      throws com.google.protobuf.InvalidProtocolBufferException {
531    return PARSER.parseFrom(data, extensionRegistry);
532  }
533  public static dev.enola.model.enola.meta.proto.Property parseFrom(
534      com.google.protobuf.ByteString data)
535      throws com.google.protobuf.InvalidProtocolBufferException {
536    return PARSER.parseFrom(data);
537  }
538  public static dev.enola.model.enola.meta.proto.Property parseFrom(
539      com.google.protobuf.ByteString data,
540      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
541      throws com.google.protobuf.InvalidProtocolBufferException {
542    return PARSER.parseFrom(data, extensionRegistry);
543  }
544  public static dev.enola.model.enola.meta.proto.Property parseFrom(byte[] data)
545      throws com.google.protobuf.InvalidProtocolBufferException {
546    return PARSER.parseFrom(data);
547  }
548  public static dev.enola.model.enola.meta.proto.Property parseFrom(
549      byte[] data,
550      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
551      throws com.google.protobuf.InvalidProtocolBufferException {
552    return PARSER.parseFrom(data, extensionRegistry);
553  }
554  public static dev.enola.model.enola.meta.proto.Property parseFrom(java.io.InputStream input)
555      throws java.io.IOException {
556    return com.google.protobuf.GeneratedMessage
557        .parseWithIOException(PARSER, input);
558  }
559  public static dev.enola.model.enola.meta.proto.Property parseFrom(
560      java.io.InputStream input,
561      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
562      throws java.io.IOException {
563    return com.google.protobuf.GeneratedMessage
564        .parseWithIOException(PARSER, input, extensionRegistry);
565  }
566
567  public static dev.enola.model.enola.meta.proto.Property parseDelimitedFrom(java.io.InputStream input)
568      throws java.io.IOException {
569    return com.google.protobuf.GeneratedMessage
570        .parseDelimitedWithIOException(PARSER, input);
571  }
572
573  public static dev.enola.model.enola.meta.proto.Property parseDelimitedFrom(
574      java.io.InputStream input,
575      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
576      throws java.io.IOException {
577    return com.google.protobuf.GeneratedMessage
578        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
579  }
580  public static dev.enola.model.enola.meta.proto.Property parseFrom(
581      com.google.protobuf.CodedInputStream input)
582      throws java.io.IOException {
583    return com.google.protobuf.GeneratedMessage
584        .parseWithIOException(PARSER, input);
585  }
586  public static dev.enola.model.enola.meta.proto.Property parseFrom(
587      com.google.protobuf.CodedInputStream input,
588      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
589      throws java.io.IOException {
590    return com.google.protobuf.GeneratedMessage
591        .parseWithIOException(PARSER, input, extensionRegistry);
592  }
593
594  @java.lang.Override
595  public Builder newBuilderForType() { return newBuilder(); }
596  public static Builder newBuilder() {
597    return DEFAULT_INSTANCE.toBuilder();
598  }
599  public static Builder newBuilder(dev.enola.model.enola.meta.proto.Property prototype) {
600    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
601  }
602  @java.lang.Override
603  public Builder toBuilder() {
604    return this == DEFAULT_INSTANCE
605        ? new Builder() : new Builder().mergeFrom(this);
606  }
607
608  @java.lang.Override
609  protected Builder newBuilderForType(
610      com.google.protobuf.GeneratedMessage.BuilderParent parent) {
611    Builder builder = new Builder(parent);
612    return builder;
613  }
614  /**
615   * Protobuf type {@code dev.enola.meta.Property}
616   */
617  public static final class Builder extends
618      com.google.protobuf.GeneratedMessage.Builder<Builder> implements
619      // @@protoc_insertion_point(builder_implements:dev.enola.meta.Property)
620      dev.enola.model.enola.meta.proto.PropertyOrBuilder {
621    public static final com.google.protobuf.Descriptors.Descriptor
622        getDescriptor() {
623      return dev.enola.model.enola.meta.proto.Meta.internal_static_dev_enola_meta_Property_descriptor;
624    }
625
626    @java.lang.Override
627    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
628        internalGetFieldAccessorTable() {
629      return dev.enola.model.enola.meta.proto.Meta.internal_static_dev_enola_meta_Property_fieldAccessorTable
630          .ensureFieldAccessorsInitialized(
631              dev.enola.model.enola.meta.proto.Property.class, dev.enola.model.enola.meta.proto.Property.Builder.class);
632    }
633
634    // Construct using dev.enola.model.enola.meta.proto.Property.newBuilder()
635    private Builder() {
636
637    }
638
639    private Builder(
640        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
641      super(parent);
642
643    }
644    @java.lang.Override
645    public Builder clear() {
646      super.clear();
647      bitField0_ = 0;
648      iri_ = "";
649      name_ = "";
650      label_ = "";
651      description_ = "";
652      datatype_ = "";
653      multiplicity_ = 0;
654      return this;
655    }
656
657    @java.lang.Override
658    public com.google.protobuf.Descriptors.Descriptor
659        getDescriptorForType() {
660      return dev.enola.model.enola.meta.proto.Meta.internal_static_dev_enola_meta_Property_descriptor;
661    }
662
663    @java.lang.Override
664    public dev.enola.model.enola.meta.proto.Property getDefaultInstanceForType() {
665      return dev.enola.model.enola.meta.proto.Property.getDefaultInstance();
666    }
667
668    @java.lang.Override
669    public dev.enola.model.enola.meta.proto.Property build() {
670      dev.enola.model.enola.meta.proto.Property result = buildPartial();
671      if (!result.isInitialized()) {
672        throw newUninitializedMessageException(result);
673      }
674      return result;
675    }
676
677    @java.lang.Override
678    public dev.enola.model.enola.meta.proto.Property buildPartial() {
679      dev.enola.model.enola.meta.proto.Property result = new dev.enola.model.enola.meta.proto.Property(this);
680      if (bitField0_ != 0) { buildPartial0(result); }
681      onBuilt();
682      return result;
683    }
684
685    private void buildPartial0(dev.enola.model.enola.meta.proto.Property result) {
686      int from_bitField0_ = bitField0_;
687      if (((from_bitField0_ & 0x00000001) != 0)) {
688        result.iri_ = iri_;
689      }
690      if (((from_bitField0_ & 0x00000002) != 0)) {
691        result.name_ = name_;
692      }
693      if (((from_bitField0_ & 0x00000004) != 0)) {
694        result.label_ = label_;
695      }
696      if (((from_bitField0_ & 0x00000008) != 0)) {
697        result.description_ = description_;
698      }
699      if (((from_bitField0_ & 0x00000010) != 0)) {
700        result.datatype_ = datatype_;
701      }
702      if (((from_bitField0_ & 0x00000020) != 0)) {
703        result.multiplicity_ = multiplicity_;
704      }
705    }
706
707    @java.lang.Override
708    public Builder mergeFrom(com.google.protobuf.Message other) {
709      if (other instanceof dev.enola.model.enola.meta.proto.Property) {
710        return mergeFrom((dev.enola.model.enola.meta.proto.Property)other);
711      } else {
712        super.mergeFrom(other);
713        return this;
714      }
715    }
716
717    public Builder mergeFrom(dev.enola.model.enola.meta.proto.Property other) {
718      if (other == dev.enola.model.enola.meta.proto.Property.getDefaultInstance()) return this;
719      if (!other.getIri().isEmpty()) {
720        iri_ = other.iri_;
721        bitField0_ |= 0x00000001;
722        onChanged();
723      }
724      if (!other.getName().isEmpty()) {
725        name_ = other.name_;
726        bitField0_ |= 0x00000002;
727        onChanged();
728      }
729      if (!other.getLabel().isEmpty()) {
730        label_ = other.label_;
731        bitField0_ |= 0x00000004;
732        onChanged();
733      }
734      if (!other.getDescription().isEmpty()) {
735        description_ = other.description_;
736        bitField0_ |= 0x00000008;
737        onChanged();
738      }
739      if (!other.getDatatype().isEmpty()) {
740        datatype_ = other.datatype_;
741        bitField0_ |= 0x00000010;
742        onChanged();
743      }
744      if (other.multiplicity_ != 0) {
745        setMultiplicityValue(other.getMultiplicityValue());
746      }
747      this.mergeUnknownFields(other.getUnknownFields());
748      onChanged();
749      return this;
750    }
751
752    @java.lang.Override
753    public final boolean isInitialized() {
754      return true;
755    }
756
757    @java.lang.Override
758    public Builder mergeFrom(
759        com.google.protobuf.CodedInputStream input,
760        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
761        throws java.io.IOException {
762      if (extensionRegistry == null) {
763        throw new java.lang.NullPointerException();
764      }
765      try {
766        boolean done = false;
767        while (!done) {
768          int tag = input.readTag();
769          switch (tag) {
770            case 0:
771              done = true;
772              break;
773            case 10: {
774              iri_ = input.readStringRequireUtf8();
775              bitField0_ |= 0x00000001;
776              break;
777            } // case 10
778            case 18: {
779              name_ = input.readStringRequireUtf8();
780              bitField0_ |= 0x00000002;
781              break;
782            } // case 18
783            case 26: {
784              label_ = input.readStringRequireUtf8();
785              bitField0_ |= 0x00000004;
786              break;
787            } // case 26
788            case 34: {
789              description_ = input.readStringRequireUtf8();
790              bitField0_ |= 0x00000008;
791              break;
792            } // case 34
793            case 42: {
794              datatype_ = input.readStringRequireUtf8();
795              bitField0_ |= 0x00000010;
796              break;
797            } // case 42
798            case 48: {
799              multiplicity_ = input.readEnum();
800              bitField0_ |= 0x00000020;
801              break;
802            } // case 48
803            default: {
804              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
805                done = true; // was an endgroup tag
806              }
807              break;
808            } // default:
809          } // switch (tag)
810        } // while (!done)
811      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
812        throw e.unwrapIOException();
813      } finally {
814        onChanged();
815      } // finally
816      return this;
817    }
818    private int bitField0_;
819
820    private java.lang.Object iri_ = "";
821    /**
822     * <code>string iri = 1;</code>
823     * @return The iri.
824     */
825    public java.lang.String getIri() {
826      java.lang.Object ref = iri_;
827      if (!(ref instanceof java.lang.String)) {
828        com.google.protobuf.ByteString bs =
829            (com.google.protobuf.ByteString) ref;
830        java.lang.String s = bs.toStringUtf8();
831        iri_ = s;
832        return s;
833      } else {
834        return (java.lang.String) ref;
835      }
836    }
837    /**
838     * <code>string iri = 1;</code>
839     * @return The bytes for iri.
840     */
841    public com.google.protobuf.ByteString
842        getIriBytes() {
843      java.lang.Object ref = iri_;
844      if (ref instanceof String) {
845        com.google.protobuf.ByteString b = 
846            com.google.protobuf.ByteString.copyFromUtf8(
847                (java.lang.String) ref);
848        iri_ = b;
849        return b;
850      } else {
851        return (com.google.protobuf.ByteString) ref;
852      }
853    }
854    /**
855     * <code>string iri = 1;</code>
856     * @param value The iri to set.
857     * @return This builder for chaining.
858     */
859    public Builder setIri(
860        java.lang.String value) {
861      if (value == null) { throw new NullPointerException(); }
862      iri_ = value;
863      bitField0_ |= 0x00000001;
864      onChanged();
865      return this;
866    }
867    /**
868     * <code>string iri = 1;</code>
869     * @return This builder for chaining.
870     */
871    public Builder clearIri() {
872      iri_ = getDefaultInstance().getIri();
873      bitField0_ = (bitField0_ & ~0x00000001);
874      onChanged();
875      return this;
876    }
877    /**
878     * <code>string iri = 1;</code>
879     * @param value The bytes for iri to set.
880     * @return This builder for chaining.
881     */
882    public Builder setIriBytes(
883        com.google.protobuf.ByteString value) {
884      if (value == null) { throw new NullPointerException(); }
885      checkByteStringIsUtf8(value);
886      iri_ = value;
887      bitField0_ |= 0x00000001;
888      onChanged();
889      return this;
890    }
891
892    private java.lang.Object name_ = "";
893    /**
894     * <code>string name = 2;</code>
895     * @return The name.
896     */
897    public java.lang.String getName() {
898      java.lang.Object ref = name_;
899      if (!(ref instanceof java.lang.String)) {
900        com.google.protobuf.ByteString bs =
901            (com.google.protobuf.ByteString) ref;
902        java.lang.String s = bs.toStringUtf8();
903        name_ = s;
904        return s;
905      } else {
906        return (java.lang.String) ref;
907      }
908    }
909    /**
910     * <code>string name = 2;</code>
911     * @return The bytes for name.
912     */
913    public com.google.protobuf.ByteString
914        getNameBytes() {
915      java.lang.Object ref = name_;
916      if (ref instanceof String) {
917        com.google.protobuf.ByteString b = 
918            com.google.protobuf.ByteString.copyFromUtf8(
919                (java.lang.String) ref);
920        name_ = b;
921        return b;
922      } else {
923        return (com.google.protobuf.ByteString) ref;
924      }
925    }
926    /**
927     * <code>string name = 2;</code>
928     * @param value The name to set.
929     * @return This builder for chaining.
930     */
931    public Builder setName(
932        java.lang.String value) {
933      if (value == null) { throw new NullPointerException(); }
934      name_ = value;
935      bitField0_ |= 0x00000002;
936      onChanged();
937      return this;
938    }
939    /**
940     * <code>string name = 2;</code>
941     * @return This builder for chaining.
942     */
943    public Builder clearName() {
944      name_ = getDefaultInstance().getName();
945      bitField0_ = (bitField0_ & ~0x00000002);
946      onChanged();
947      return this;
948    }
949    /**
950     * <code>string name = 2;</code>
951     * @param value The bytes for name to set.
952     * @return This builder for chaining.
953     */
954    public Builder setNameBytes(
955        com.google.protobuf.ByteString value) {
956      if (value == null) { throw new NullPointerException(); }
957      checkByteStringIsUtf8(value);
958      name_ = value;
959      bitField0_ |= 0x00000002;
960      onChanged();
961      return this;
962    }
963
964    private java.lang.Object label_ = "";
965    /**
966     * <code>string label = 3;</code>
967     * @return The label.
968     */
969    public java.lang.String getLabel() {
970      java.lang.Object ref = label_;
971      if (!(ref instanceof java.lang.String)) {
972        com.google.protobuf.ByteString bs =
973            (com.google.protobuf.ByteString) ref;
974        java.lang.String s = bs.toStringUtf8();
975        label_ = s;
976        return s;
977      } else {
978        return (java.lang.String) ref;
979      }
980    }
981    /**
982     * <code>string label = 3;</code>
983     * @return The bytes for label.
984     */
985    public com.google.protobuf.ByteString
986        getLabelBytes() {
987      java.lang.Object ref = label_;
988      if (ref instanceof String) {
989        com.google.protobuf.ByteString b = 
990            com.google.protobuf.ByteString.copyFromUtf8(
991                (java.lang.String) ref);
992        label_ = b;
993        return b;
994      } else {
995        return (com.google.protobuf.ByteString) ref;
996      }
997    }
998    /**
999     * <code>string label = 3;</code>
1000     * @param value The label to set.
1001     * @return This builder for chaining.
1002     */
1003    public Builder setLabel(
1004        java.lang.String value) {
1005      if (value == null) { throw new NullPointerException(); }
1006      label_ = value;
1007      bitField0_ |= 0x00000004;
1008      onChanged();
1009      return this;
1010    }
1011    /**
1012     * <code>string label = 3;</code>
1013     * @return This builder for chaining.
1014     */
1015    public Builder clearLabel() {
1016      label_ = getDefaultInstance().getLabel();
1017      bitField0_ = (bitField0_ & ~0x00000004);
1018      onChanged();
1019      return this;
1020    }
1021    /**
1022     * <code>string label = 3;</code>
1023     * @param value The bytes for label to set.
1024     * @return This builder for chaining.
1025     */
1026    public Builder setLabelBytes(
1027        com.google.protobuf.ByteString value) {
1028      if (value == null) { throw new NullPointerException(); }
1029      checkByteStringIsUtf8(value);
1030      label_ = value;
1031      bitField0_ |= 0x00000004;
1032      onChanged();
1033      return this;
1034    }
1035
1036    private java.lang.Object description_ = "";
1037    /**
1038     * <code>string description = 4;</code>
1039     * @return The description.
1040     */
1041    public java.lang.String getDescription() {
1042      java.lang.Object ref = description_;
1043      if (!(ref instanceof java.lang.String)) {
1044        com.google.protobuf.ByteString bs =
1045            (com.google.protobuf.ByteString) ref;
1046        java.lang.String s = bs.toStringUtf8();
1047        description_ = s;
1048        return s;
1049      } else {
1050        return (java.lang.String) ref;
1051      }
1052    }
1053    /**
1054     * <code>string description = 4;</code>
1055     * @return The bytes for description.
1056     */
1057    public com.google.protobuf.ByteString
1058        getDescriptionBytes() {
1059      java.lang.Object ref = description_;
1060      if (ref instanceof String) {
1061        com.google.protobuf.ByteString b = 
1062            com.google.protobuf.ByteString.copyFromUtf8(
1063                (java.lang.String) ref);
1064        description_ = b;
1065        return b;
1066      } else {
1067        return (com.google.protobuf.ByteString) ref;
1068      }
1069    }
1070    /**
1071     * <code>string description = 4;</code>
1072     * @param value The description to set.
1073     * @return This builder for chaining.
1074     */
1075    public Builder setDescription(
1076        java.lang.String value) {
1077      if (value == null) { throw new NullPointerException(); }
1078      description_ = value;
1079      bitField0_ |= 0x00000008;
1080      onChanged();
1081      return this;
1082    }
1083    /**
1084     * <code>string description = 4;</code>
1085     * @return This builder for chaining.
1086     */
1087    public Builder clearDescription() {
1088      description_ = getDefaultInstance().getDescription();
1089      bitField0_ = (bitField0_ & ~0x00000008);
1090      onChanged();
1091      return this;
1092    }
1093    /**
1094     * <code>string description = 4;</code>
1095     * @param value The bytes for description to set.
1096     * @return This builder for chaining.
1097     */
1098    public Builder setDescriptionBytes(
1099        com.google.protobuf.ByteString value) {
1100      if (value == null) { throw new NullPointerException(); }
1101      checkByteStringIsUtf8(value);
1102      description_ = value;
1103      bitField0_ |= 0x00000008;
1104      onChanged();
1105      return this;
1106    }
1107
1108    private java.lang.Object datatype_ = "";
1109    /**
1110     * <code>string datatype = 5;</code>
1111     * @return The datatype.
1112     */
1113    public java.lang.String getDatatype() {
1114      java.lang.Object ref = datatype_;
1115      if (!(ref instanceof java.lang.String)) {
1116        com.google.protobuf.ByteString bs =
1117            (com.google.protobuf.ByteString) ref;
1118        java.lang.String s = bs.toStringUtf8();
1119        datatype_ = s;
1120        return s;
1121      } else {
1122        return (java.lang.String) ref;
1123      }
1124    }
1125    /**
1126     * <code>string datatype = 5;</code>
1127     * @return The bytes for datatype.
1128     */
1129    public com.google.protobuf.ByteString
1130        getDatatypeBytes() {
1131      java.lang.Object ref = datatype_;
1132      if (ref instanceof String) {
1133        com.google.protobuf.ByteString b = 
1134            com.google.protobuf.ByteString.copyFromUtf8(
1135                (java.lang.String) ref);
1136        datatype_ = b;
1137        return b;
1138      } else {
1139        return (com.google.protobuf.ByteString) ref;
1140      }
1141    }
1142    /**
1143     * <code>string datatype = 5;</code>
1144     * @param value The datatype to set.
1145     * @return This builder for chaining.
1146     */
1147    public Builder setDatatype(
1148        java.lang.String value) {
1149      if (value == null) { throw new NullPointerException(); }
1150      datatype_ = value;
1151      bitField0_ |= 0x00000010;
1152      onChanged();
1153      return this;
1154    }
1155    /**
1156     * <code>string datatype = 5;</code>
1157     * @return This builder for chaining.
1158     */
1159    public Builder clearDatatype() {
1160      datatype_ = getDefaultInstance().getDatatype();
1161      bitField0_ = (bitField0_ & ~0x00000010);
1162      onChanged();
1163      return this;
1164    }
1165    /**
1166     * <code>string datatype = 5;</code>
1167     * @param value The bytes for datatype to set.
1168     * @return This builder for chaining.
1169     */
1170    public Builder setDatatypeBytes(
1171        com.google.protobuf.ByteString value) {
1172      if (value == null) { throw new NullPointerException(); }
1173      checkByteStringIsUtf8(value);
1174      datatype_ = value;
1175      bitField0_ |= 0x00000010;
1176      onChanged();
1177      return this;
1178    }
1179
1180    private int multiplicity_ = 0;
1181    /**
1182     * <code>.dev.enola.meta.Property.Multiplicity multiplicity = 6;</code>
1183     * @return The enum numeric value on the wire for multiplicity.
1184     */
1185    @java.lang.Override public int getMultiplicityValue() {
1186      return multiplicity_;
1187    }
1188    /**
1189     * <code>.dev.enola.meta.Property.Multiplicity multiplicity = 6;</code>
1190     * @param value The enum numeric value on the wire for multiplicity to set.
1191     * @return This builder for chaining.
1192     */
1193    public Builder setMultiplicityValue(int value) {
1194      multiplicity_ = value;
1195      bitField0_ |= 0x00000020;
1196      onChanged();
1197      return this;
1198    }
1199    /**
1200     * <code>.dev.enola.meta.Property.Multiplicity multiplicity = 6;</code>
1201     * @return The multiplicity.
1202     */
1203    @java.lang.Override
1204    public dev.enola.model.enola.meta.proto.Property.Multiplicity getMultiplicity() {
1205      dev.enola.model.enola.meta.proto.Property.Multiplicity result = dev.enola.model.enola.meta.proto.Property.Multiplicity.forNumber(multiplicity_);
1206      return result == null ? dev.enola.model.enola.meta.proto.Property.Multiplicity.UNRECOGNIZED : result;
1207    }
1208    /**
1209     * <code>.dev.enola.meta.Property.Multiplicity multiplicity = 6;</code>
1210     * @param value The multiplicity to set.
1211     * @return This builder for chaining.
1212     */
1213    public Builder setMultiplicity(dev.enola.model.enola.meta.proto.Property.Multiplicity value) {
1214      if (value == null) { throw new NullPointerException(); }
1215      bitField0_ |= 0x00000020;
1216      multiplicity_ = value.getNumber();
1217      onChanged();
1218      return this;
1219    }
1220    /**
1221     * <code>.dev.enola.meta.Property.Multiplicity multiplicity = 6;</code>
1222     * @return This builder for chaining.
1223     */
1224    public Builder clearMultiplicity() {
1225      bitField0_ = (bitField0_ & ~0x00000020);
1226      multiplicity_ = 0;
1227      onChanged();
1228      return this;
1229    }
1230
1231    // @@protoc_insertion_point(builder_scope:dev.enola.meta.Property)
1232  }
1233
1234  // @@protoc_insertion_point(class_scope:dev.enola.meta.Property)
1235  private static final dev.enola.model.enola.meta.proto.Property DEFAULT_INSTANCE;
1236  static {
1237    DEFAULT_INSTANCE = new dev.enola.model.enola.meta.proto.Property();
1238  }
1239
1240  public static dev.enola.model.enola.meta.proto.Property getDefaultInstance() {
1241    return DEFAULT_INSTANCE;
1242  }
1243
1244  private static final com.google.protobuf.Parser<Property>
1245      PARSER = new com.google.protobuf.AbstractParser<Property>() {
1246    @java.lang.Override
1247    public Property parsePartialFrom(
1248        com.google.protobuf.CodedInputStream input,
1249        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1250        throws com.google.protobuf.InvalidProtocolBufferException {
1251      Builder builder = newBuilder();
1252      try {
1253        builder.mergeFrom(input, extensionRegistry);
1254      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1255        throw e.setUnfinishedMessage(builder.buildPartial());
1256      } catch (com.google.protobuf.UninitializedMessageException e) {
1257        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1258      } catch (java.io.IOException e) {
1259        throw new com.google.protobuf.InvalidProtocolBufferException(e)
1260            .setUnfinishedMessage(builder.buildPartial());
1261      }
1262      return builder.buildPartial();
1263    }
1264  };
1265
1266  public static com.google.protobuf.Parser<Property> parser() {
1267    return PARSER;
1268  }
1269
1270  @java.lang.Override
1271  public com.google.protobuf.Parser<Property> getParserForType() {
1272    return PARSER;
1273  }
1274
1275  @java.lang.Override
1276  public dev.enola.model.enola.meta.proto.Property getDefaultInstanceForType() {
1277    return DEFAULT_INSTANCE;
1278  }
1279
1280}
1281