kiosk/dataTypes/pt/ulisboa/tecnico/surething/pose/Value.java
<filename>kiosk/dataTypes/pt/ulisboa/tecnico/surething/pose/Value.java<gh_stars>0// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: pose.proto

package pt.ulisboa.tecnico.surething.pose;

/**
 * Protobuf type {@code pt.ulisboa.tecnico.surething.pose.Value}
 */
public final class Value extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:pt.ulisboa.tecnico.surething.pose.Value)
    ValueOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Value.newBuilder() to construct.
  private Value(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private Value() {
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new Value();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Value(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 8: {
            valueCase_ = 1;
            value_ = input.readInt32();
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();
            valueCase_ = 2;
            value_ = s;
            break;
          }
          case 24: {
            valueCase_ = 3;
            value_ = input.readUInt32();
            break;
          }
          case 34: {
            valueCase_ = 4;
            value_ = input.readBytes();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return pt.ulisboa.tecnico.surething.pose.pose.internal_static_pt_ulisboa_tecnico_surething_pose_Value_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return pt.ulisboa.tecnico.surething.pose.pose.internal_static_pt_ulisboa_tecnico_surething_pose_Value_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            pt.ulisboa.tecnico.surething.pose.Value.class, pt.ulisboa.tecnico.surething.pose.Value.Builder.class);
  }

  private int valueCase_ = 0;
  private java.lang.Object value_;
  public enum ValueCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    INT(1),
    TSTR(2),
    UINT(3),
    BSTR(4),
    VALUE_NOT_SET(0);
    private final int value;
    private ValueCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ValueCase valueOf(int value) {
      return forNumber(value);
    }

    public static ValueCase forNumber(int value) {
      switch (value) {
        case 1: return INT;
        case 2: return TSTR;
        case 3: return UINT;
        case 4: return BSTR;
        case 0: return VALUE_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public ValueCase
  getValueCase() {
    return ValueCase.forNumber(
        valueCase_);
  }

  public static final int INT_FIELD_NUMBER = 1;
  /**
   * <pre>
   * an unsigned integer or negative integer
   * </pre>
   *
   * <code>int32 int = 1;</code>
   * @return Whether the int field is set.
   */
  @java.lang.Override
  public boolean hasInt() {
    return valueCase_ == 1;
  }
  /**
   * <pre>
   * an unsigned integer or negative integer
   * </pre>
   *
   * <code>int32 int = 1;</code>
   * @return The int.
   */
  @java.lang.Override
  public int getInt() {
    if (valueCase_ == 1) {
      return (java.lang.Integer) value_;
    }
    return 0;
  }

  public static final int TSTR_FIELD_NUMBER = 2;
  /**
   * <pre>
   * utf-8 text string
   * </pre>
   *
   * <code>string tstr = 2;</code>
   * @return Whether the tstr field is set.
   */
  public boolean hasTstr() {
    return valueCase_ == 2;
  }
  /**
   * <pre>
   * utf-8 text string
   * </pre>
   *
   * <code>string tstr = 2;</code>
   * @return The tstr.
   */
  public java.lang.String getTstr() {
    java.lang.Object ref = "";
    if (valueCase_ == 2) {
      ref = value_;
    }
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (valueCase_ == 2) {
        value_ = s;
      }
      return s;
    }
  }
  /**
   * <pre>
   * utf-8 text string
   * </pre>
   *
   * <code>string tstr = 2;</code>
   * @return The bytes for tstr.
   */
  public com.google.protobuf.ByteString
      getTstrBytes() {
    java.lang.Object ref = "";
    if (valueCase_ == 2) {
      ref = value_;
    }
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      if (valueCase_ == 2) {
        value_ = b;
      }
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int UINT_FIELD_NUMBER = 3;
  /**
   * <pre>
   * an unsigned integer
   * </pre>
   *
   * <code>uint32 uint = 3;</code>
   * @return Whether the uint field is set.
   */
  @java.lang.Override
  public boolean hasUint() {
    return valueCase_ == 3;
  }
  /**
   * <pre>
   * an unsigned integer
   * </pre>
   *
   * <code>uint32 uint = 3;</code>
   * @return The uint.
   */
  @java.lang.Override
  public int getUint() {
    if (valueCase_ == 3) {
      return (java.lang.Integer) value_;
    }
    return 0;
  }

  public static final int BSTR_FIELD_NUMBER = 4;
  /**
   * <pre>
   * byte string
   * </pre>
   *
   * <code>bytes bstr = 4;</code>
   * @return Whether the bstr field is set.
   */
  @java.lang.Override
  public boolean hasBstr() {
    return valueCase_ == 4;
  }
  /**
   * <pre>
   * byte string
   * </pre>
   *
   * <code>bytes bstr = 4;</code>
   * @return The bstr.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getBstr() {
    if (valueCase_ == 4) {
      return (com.google.protobuf.ByteString) value_;
    }
    return com.google.protobuf.ByteString.EMPTY;
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (valueCase_ == 1) {
      output.writeInt32(
          1, (int)((java.lang.Integer) value_));
    }
    if (valueCase_ == 2) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
    }
    if (valueCase_ == 3) {
      output.writeUInt32(
          3, (int)((java.lang.Integer) value_));
    }
    if (valueCase_ == 4) {
      output.writeBytes(
          4, (com.google.protobuf.ByteString) value_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (valueCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(
            1, (int)((java.lang.Integer) value_));
    }
    if (valueCase_ == 2) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
    }
    if (valueCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(
            3, (int)((java.lang.Integer) value_));
    }
    if (valueCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeBytesSize(
            4, (com.google.protobuf.ByteString) value_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof pt.ulisboa.tecnico.surething.pose.Value)) {
      return super.equals(obj);
    }
    pt.ulisboa.tecnico.surething.pose.Value other = (pt.ulisboa.tecnico.surething.pose.Value) obj;

    if (!getValueCase().equals(other.getValueCase())) return false;
    switch (valueCase_) {
      case 1:
        if (getInt()
            != other.getInt()) return false;
        break;
      case 2:
        if (!getTstr()
            .equals(other.getTstr())) return false;
        break;
      case 3:
        if (getUint()
            != other.getUint()) return false;
        break;
      case 4:
        if (!getBstr()
            .equals(other.getBstr())) return false;
        break;
      case 0:
      default:
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    switch (valueCase_) {
      case 1:
        hash = (37 * hash) + INT_FIELD_NUMBER;
        hash = (53 * hash) + getInt();
        break;
      case 2:
        hash = (37 * hash) + TSTR_FIELD_NUMBER;
        hash = (53 * hash) + getTstr().hashCode();
        break;
      case 3:
        hash = (37 * hash) + UINT_FIELD_NUMBER;
        hash = (53 * hash) + getUint();
        break;
      case 4:
        hash = (37 * hash) + BSTR_FIELD_NUMBER;
        hash = (53 * hash) + getBstr().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static pt.ulisboa.tecnico.surething.pose.Value parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static pt.ulisboa.tecnico.surething.pose.Value parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static pt.ulisboa.tecnico.surething.pose.Value parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static pt.ulisboa.tecnico.surething.pose.Value parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static pt.ulisboa.tecnico.surething.pose.Value parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static pt.ulisboa.tecnico.surething.pose.Value parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static pt.ulisboa.tecnico.surething.pose.Value parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static pt.ulisboa.tecnico.surething.pose.Value parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static pt.ulisboa.tecnico.surething.pose.Value parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static pt.ulisboa.tecnico.surething.pose.Value parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static pt.ulisboa.tecnico.surething.pose.Value parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static pt.ulisboa.tecnico.surething.pose.Value parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(pt.ulisboa.tecnico.surething.pose.Value prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code pt.ulisboa.tecnico.surething.pose.Value}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:pt.ulisboa.tecnico.surething.pose.Value)
      pt.ulisboa.tecnico.surething.pose.ValueOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return pt.ulisboa.tecnico.surething.pose.pose.internal_static_pt_ulisboa_tecnico_surething_pose_Value_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return pt.ulisboa.tecnico.surething.pose.pose.internal_static_pt_ulisboa_tecnico_surething_pose_Value_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              pt.ulisboa.tecnico.surething.pose.Value.class, pt.ulisboa.tecnico.surething.pose.Value.Builder.class);
    }

    // Construct using pt.ulisboa.tecnico.surething.pose.Value.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      valueCase_ = 0;
      value_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return pt.ulisboa.tecnico.surething.pose.pose.internal_static_pt_ulisboa_tecnico_surething_pose_Value_descriptor;
    }

    @java.lang.Override
    public pt.ulisboa.tecnico.surething.pose.Value getDefaultInstanceForType() {
      return pt.ulisboa.tecnico.surething.pose.Value.getDefaultInstance();
    }

    @java.lang.Override
    public pt.ulisboa.tecnico.surething.pose.Value build() {
      pt.ulisboa.tecnico.surething.pose.Value result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public pt.ulisboa.tecnico.surething.pose.Value buildPartial() {
      pt.ulisboa.tecnico.surething.pose.Value result = new pt.ulisboa.tecnico.surething.pose.Value(this);
      if (valueCase_ == 1) {
        result.value_ = value_;
      }
      if (valueCase_ == 2) {
        result.value_ = value_;
      }
      if (valueCase_ == 3) {
        result.value_ = value_;
      }
      if (valueCase_ == 4) {
        result.value_ = value_;
      }
      result.valueCase_ = valueCase_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof pt.ulisboa.tecnico.surething.pose.Value) {
        return mergeFrom((pt.ulisboa.tecnico.surething.pose.Value)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(pt.ulisboa.tecnico.surething.pose.Value other) {
      if (other == pt.ulisboa.tecnico.surething.pose.Value.getDefaultInstance()) return this;
      switch (other.getValueCase()) {
        case INT: {
          setInt(other.getInt());
          break;
        }
        case TSTR: {
          valueCase_ = 2;
          value_ = other.value_;
          onChanged();
          break;
        }
        case UINT: {
          setUint(other.getUint());
          break;
        }
        case BSTR: {
          setBstr(other.getBstr());
          break;
        }
        case VALUE_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      pt.ulisboa.tecnico.surething.pose.Value parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (pt.ulisboa.tecnico.surething.pose.Value) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int valueCase_ = 0;
    private java.lang.Object value_;
    public ValueCase
        getValueCase() {
      return ValueCase.forNumber(
          valueCase_);
    }

    public Builder clearValue() {
      valueCase_ = 0;
      value_ = null;
      onChanged();
      return this;
    }


    /**
     * <pre>
     * an unsigned integer or negative integer
     * </pre>
     *
     * <code>int32 int = 1;</code>
     * @return Whether the int field is set.
     */
    public boolean hasInt() {
      return valueCase_ == 1;
    }
    /**
     * <pre>
     * an unsigned integer or negative integer
     * </pre>
     *
     * <code>int32 int = 1;</code>
     * @return The int.
     */
    public int getInt() {
      if (valueCase_ == 1) {
        return (java.lang.Integer) value_;
      }
      return 0;
    }
    /**
     * <pre>
     * an unsigned integer or negative integer
     * </pre>
     *
     * <code>int32 int = 1;</code>
     * @param value The int to set.
     * @return This builder for chaining.
     */
    public Builder setInt(int value) {
      valueCase_ = 1;
      value_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * an unsigned integer or negative integer
     * </pre>
     *
     * <code>int32 int = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearInt() {
      if (valueCase_ == 1) {
        valueCase_ = 0;
        value_ = null;
        onChanged();
      }
      return this;
    }

    /**
     * <pre>
     * utf-8 text string
     * </pre>
     *
     * <code>string tstr = 2;</code>
     * @return Whether the tstr field is set.
     */
    @java.lang.Override
    public boolean hasTstr() {
      return valueCase_ == 2;
    }
    /**
     * <pre>
     * utf-8 text string
     * </pre>
     *
     * <code>string tstr = 2;</code>
     * @return The tstr.
     */
    @java.lang.Override
    public java.lang.String getTstr() {
      java.lang.Object ref = "";
      if (valueCase_ == 2) {
        ref = value_;
      }
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (valueCase_ == 2) {
          value_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * utf-8 text string
     * </pre>
     *
     * <code>string tstr = 2;</code>
     * @return The bytes for tstr.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTstrBytes() {
      java.lang.Object ref = "";
      if (valueCase_ == 2) {
        ref = value_;
      }
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        if (valueCase_ == 2) {
          value_ = b;
        }
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * utf-8 text string
     * </pre>
     *
     * <code>string tstr = 2;</code>
     * @param value The tstr to set.
     * @return This builder for chaining.
     */
    public Builder setTstr(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  valueCase_ = 2;
      value_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * utf-8 text string
     * </pre>
     *
     * <code>string tstr = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearTstr() {
      if (valueCase_ == 2) {
        valueCase_ = 0;
        value_ = null;
        onChanged();
      }
      return this;
    }
    /**
     * <pre>
     * utf-8 text string
     * </pre>
     *
     * <code>string tstr = 2;</code>
     * @param value The bytes for tstr to set.
     * @return This builder for chaining.
     */
    public Builder setTstrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      valueCase_ = 2;
      value_ = value;
      onChanged();
      return this;
    }

    /**
     * <pre>
     * an unsigned integer
     * </pre>
     *
     * <code>uint32 uint = 3;</code>
     * @return Whether the uint field is set.
     */
    public boolean hasUint() {
      return valueCase_ == 3;
    }
    /**
     * <pre>
     * an unsigned integer
     * </pre>
     *
     * <code>uint32 uint = 3;</code>
     * @return The uint.
     */
    public int getUint() {
      if (valueCase_ == 3) {
        return (java.lang.Integer) value_;
      }
      return 0;
    }
    /**
     * <pre>
     * an unsigned integer
     * </pre>
     *
     * <code>uint32 uint = 3;</code>
     * @param value The uint to set.
     * @return This builder for chaining.
     */
    public Builder setUint(int value) {
      valueCase_ = 3;
      value_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * an unsigned integer
     * </pre>
     *
     * <code>uint32 uint = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearUint() {
      if (valueCase_ == 3) {
        valueCase_ = 0;
        value_ = null;
        onChanged();
      }
      return this;
    }

    /**
     * <pre>
     * byte string
     * </pre>
     *
     * <code>bytes bstr = 4;</code>
     * @return Whether the bstr field is set.
     */
    public boolean hasBstr() {
      return valueCase_ == 4;
    }
    /**
     * <pre>
     * byte string
     * </pre>
     *
     * <code>bytes bstr = 4;</code>
     * @return The bstr.
     */
    public com.google.protobuf.ByteString getBstr() {
      if (valueCase_ == 4) {
        return (com.google.protobuf.ByteString) value_;
      }
      return com.google.protobuf.ByteString.EMPTY;
    }
    /**
     * <pre>
     * byte string
     * </pre>
     *
     * <code>bytes bstr = 4;</code>
     * @param value The bstr to set.
     * @return This builder for chaining.
     */
    public Builder setBstr(com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  valueCase_ = 4;
      value_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * byte string
     * </pre>
     *
     * <code>bytes bstr = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearBstr() {
      if (valueCase_ == 4) {
        valueCase_ = 0;
        value_ = null;
        onChanged();
      }
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:pt.ulisboa.tecnico.surething.pose.Value)
  }

  // @@protoc_insertion_point(class_scope:pt.ulisboa.tecnico.surething.pose.Value)
  private static final pt.ulisboa.tecnico.surething.pose.Value DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new pt.ulisboa.tecnico.surething.pose.Value();
  }

  public static pt.ulisboa.tecnico.surething.pose.Value getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<Value>
      PARSER = new com.google.protobuf.AbstractParser<Value>() {
    @java.lang.Override
    public Value parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new Value(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser<Value> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<Value> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public pt.ulisboa.tecnico.surething.pose.Value getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

