All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zepben.protobuf.mp.ErrorDetail Maven / Gradle / Ivy

There is a newer version: 0.32.0-SNAPSHOT2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: zepben/protobuf/mp/mp-responses.proto

package com.zepben.protobuf.mp;

/**
 * Protobuf type {@code zepben.protobuf.mp.ErrorDetail}
 */
public final class ErrorDetail extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:zepben.protobuf.mp.ErrorDetail)
    ErrorDetailOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ErrorDetail.newBuilder() to construct.
  private ErrorDetail(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ErrorDetail() {
    error_ = "";
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.zepben.protobuf.mp.MpResponses.internal_static_zepben_protobuf_mp_ErrorDetail_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.zepben.protobuf.mp.MpResponses.internal_static_zepben_protobuf_mp_ErrorDetail_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.zepben.protobuf.mp.ErrorDetail.class, com.zepben.protobuf.mp.ErrorDetail.Builder.class);
  }

  private int valueCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object value_;
  public enum ValueCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    ACCUMULATORVALUE(1),
    ANALOGVALUE(2),
    DISCRETEVALUE(3),
    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 ACCUMULATORVALUE;
        case 2: return ANALOGVALUE;
        case 3: return DISCRETEVALUE;
        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 ACCUMULATORVALUE_FIELD_NUMBER = 1;
  /**
   * .zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue accumulatorValue = 1;
   * @return Whether the accumulatorValue field is set.
   */
  @java.lang.Override
  public boolean hasAccumulatorValue() {
    return valueCase_ == 1;
  }
  /**
   * .zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue accumulatorValue = 1;
   * @return The accumulatorValue.
   */
  @java.lang.Override
  public com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue getAccumulatorValue() {
    if (valueCase_ == 1) {
       return (com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue) value_;
    }
    return com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.getDefaultInstance();
  }
  /**
   * .zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue accumulatorValue = 1;
   */
  @java.lang.Override
  public com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValueOrBuilder getAccumulatorValueOrBuilder() {
    if (valueCase_ == 1) {
       return (com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue) value_;
    }
    return com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.getDefaultInstance();
  }

  public static final int ANALOGVALUE_FIELD_NUMBER = 2;
  /**
   * .zepben.protobuf.cim.iec61970.base.meas.AnalogValue analogValue = 2;
   * @return Whether the analogValue field is set.
   */
  @java.lang.Override
  public boolean hasAnalogValue() {
    return valueCase_ == 2;
  }
  /**
   * .zepben.protobuf.cim.iec61970.base.meas.AnalogValue analogValue = 2;
   * @return The analogValue.
   */
  @java.lang.Override
  public com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue getAnalogValue() {
    if (valueCase_ == 2) {
       return (com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue) value_;
    }
    return com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.getDefaultInstance();
  }
  /**
   * .zepben.protobuf.cim.iec61970.base.meas.AnalogValue analogValue = 2;
   */
  @java.lang.Override
  public com.zepben.protobuf.cim.iec61970.base.meas.AnalogValueOrBuilder getAnalogValueOrBuilder() {
    if (valueCase_ == 2) {
       return (com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue) value_;
    }
    return com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.getDefaultInstance();
  }

  public static final int DISCRETEVALUE_FIELD_NUMBER = 3;
  /**
   * .zepben.protobuf.cim.iec61970.base.meas.DiscreteValue discreteValue = 3;
   * @return Whether the discreteValue field is set.
   */
  @java.lang.Override
  public boolean hasDiscreteValue() {
    return valueCase_ == 3;
  }
  /**
   * .zepben.protobuf.cim.iec61970.base.meas.DiscreteValue discreteValue = 3;
   * @return The discreteValue.
   */
  @java.lang.Override
  public com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue getDiscreteValue() {
    if (valueCase_ == 3) {
       return (com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue) value_;
    }
    return com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue.getDefaultInstance();
  }
  /**
   * .zepben.protobuf.cim.iec61970.base.meas.DiscreteValue discreteValue = 3;
   */
  @java.lang.Override
  public com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValueOrBuilder getDiscreteValueOrBuilder() {
    if (valueCase_ == 3) {
       return (com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue) value_;
    }
    return com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue.getDefaultInstance();
  }

  public static final int ERROR_FIELD_NUMBER = 4;
  @SuppressWarnings("serial")
  private volatile java.lang.Object error_ = "";
  /**
   * string error = 4;
   * @return The error.
   */
  @java.lang.Override
  public java.lang.String getError() {
    java.lang.Object ref = error_;
    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();
      error_ = s;
      return s;
    }
  }
  /**
   * string error = 4;
   * @return The bytes for error.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getErrorBytes() {
    java.lang.Object ref = error_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      error_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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.writeMessage(1, (com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue) value_);
    }
    if (valueCase_ == 2) {
      output.writeMessage(2, (com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue) value_);
    }
    if (valueCase_ == 3) {
      output.writeMessage(3, (com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue) value_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, error_);
    }
    getUnknownFields().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
        .computeMessageSize(1, (com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue) value_);
    }
    if (valueCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue) value_);
    }
    if (valueCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, (com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue) value_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, error_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.zepben.protobuf.mp.ErrorDetail)) {
      return super.equals(obj);
    }
    com.zepben.protobuf.mp.ErrorDetail other = (com.zepben.protobuf.mp.ErrorDetail) obj;

    if (!getError()
        .equals(other.getError())) return false;
    if (!getValueCase().equals(other.getValueCase())) return false;
    switch (valueCase_) {
      case 1:
        if (!getAccumulatorValue()
            .equals(other.getAccumulatorValue())) return false;
        break;
      case 2:
        if (!getAnalogValue()
            .equals(other.getAnalogValue())) return false;
        break;
      case 3:
        if (!getDiscreteValue()
            .equals(other.getDiscreteValue())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + ERROR_FIELD_NUMBER;
    hash = (53 * hash) + getError().hashCode();
    switch (valueCase_) {
      case 1:
        hash = (37 * hash) + ACCUMULATORVALUE_FIELD_NUMBER;
        hash = (53 * hash) + getAccumulatorValue().hashCode();
        break;
      case 2:
        hash = (37 * hash) + ANALOGVALUE_FIELD_NUMBER;
        hash = (53 * hash) + getAnalogValue().hashCode();
        break;
      case 3:
        hash = (37 * hash) + DISCRETEVALUE_FIELD_NUMBER;
        hash = (53 * hash) + getDiscreteValue().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.zepben.protobuf.mp.ErrorDetail parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.zepben.protobuf.mp.ErrorDetail parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.zepben.protobuf.mp.ErrorDetail parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.zepben.protobuf.mp.ErrorDetail parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.zepben.protobuf.mp.ErrorDetail parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.zepben.protobuf.mp.ErrorDetail parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.zepben.protobuf.mp.ErrorDetail parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.zepben.protobuf.mp.ErrorDetail 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 com.zepben.protobuf.mp.ErrorDetail parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static com.zepben.protobuf.mp.ErrorDetail 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 com.zepben.protobuf.mp.ErrorDetail parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.zepben.protobuf.mp.ErrorDetail 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(com.zepben.protobuf.mp.ErrorDetail 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 zepben.protobuf.mp.ErrorDetail}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:zepben.protobuf.mp.ErrorDetail)
      com.zepben.protobuf.mp.ErrorDetailOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.zepben.protobuf.mp.MpResponses.internal_static_zepben_protobuf_mp_ErrorDetail_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.zepben.protobuf.mp.MpResponses.internal_static_zepben_protobuf_mp_ErrorDetail_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.zepben.protobuf.mp.ErrorDetail.class, com.zepben.protobuf.mp.ErrorDetail.Builder.class);
    }

    // Construct using com.zepben.protobuf.mp.ErrorDetail.newBuilder()
    private Builder() {

    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (accumulatorValueBuilder_ != null) {
        accumulatorValueBuilder_.clear();
      }
      if (analogValueBuilder_ != null) {
        analogValueBuilder_.clear();
      }
      if (discreteValueBuilder_ != null) {
        discreteValueBuilder_.clear();
      }
      error_ = "";
      valueCase_ = 0;
      value_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.zepben.protobuf.mp.MpResponses.internal_static_zepben_protobuf_mp_ErrorDetail_descriptor;
    }

    @java.lang.Override
    public com.zepben.protobuf.mp.ErrorDetail getDefaultInstanceForType() {
      return com.zepben.protobuf.mp.ErrorDetail.getDefaultInstance();
    }

    @java.lang.Override
    public com.zepben.protobuf.mp.ErrorDetail build() {
      com.zepben.protobuf.mp.ErrorDetail result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.zepben.protobuf.mp.ErrorDetail buildPartial() {
      com.zepben.protobuf.mp.ErrorDetail result = new com.zepben.protobuf.mp.ErrorDetail(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartial0(com.zepben.protobuf.mp.ErrorDetail result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.error_ = error_;
      }
    }

    private void buildPartialOneofs(com.zepben.protobuf.mp.ErrorDetail result) {
      result.valueCase_ = valueCase_;
      result.value_ = this.value_;
      if (valueCase_ == 1 &&
          accumulatorValueBuilder_ != null) {
        result.value_ = accumulatorValueBuilder_.build();
      }
      if (valueCase_ == 2 &&
          analogValueBuilder_ != null) {
        result.value_ = analogValueBuilder_.build();
      }
      if (valueCase_ == 3 &&
          discreteValueBuilder_ != null) {
        result.value_ = discreteValueBuilder_.build();
      }
    }

    @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 com.zepben.protobuf.mp.ErrorDetail) {
        return mergeFrom((com.zepben.protobuf.mp.ErrorDetail)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.zepben.protobuf.mp.ErrorDetail other) {
      if (other == com.zepben.protobuf.mp.ErrorDetail.getDefaultInstance()) return this;
      if (!other.getError().isEmpty()) {
        error_ = other.error_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      switch (other.getValueCase()) {
        case ACCUMULATORVALUE: {
          mergeAccumulatorValue(other.getAccumulatorValue());
          break;
        }
        case ANALOGVALUE: {
          mergeAnalogValue(other.getAnalogValue());
          break;
        }
        case DISCRETEVALUE: {
          mergeDiscreteValue(other.getDiscreteValue());
          break;
        }
        case VALUE_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      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 {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              input.readMessage(
                  getAccumulatorValueFieldBuilder().getBuilder(),
                  extensionRegistry);
              valueCase_ = 1;
              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getAnalogValueFieldBuilder().getBuilder(),
                  extensionRegistry);
              valueCase_ = 2;
              break;
            } // case 18
            case 26: {
              input.readMessage(
                  getDiscreteValueFieldBuilder().getBuilder(),
                  extensionRegistry);
              valueCase_ = 3;
              break;
            } // case 26
            case 34: {
              error_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      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;
    }

    private int bitField0_;

    private com.google.protobuf.SingleFieldBuilderV3<
        com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue, com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.Builder, com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValueOrBuilder> accumulatorValueBuilder_;
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue accumulatorValue = 1;
     * @return Whether the accumulatorValue field is set.
     */
    @java.lang.Override
    public boolean hasAccumulatorValue() {
      return valueCase_ == 1;
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue accumulatorValue = 1;
     * @return The accumulatorValue.
     */
    @java.lang.Override
    public com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue getAccumulatorValue() {
      if (accumulatorValueBuilder_ == null) {
        if (valueCase_ == 1) {
          return (com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue) value_;
        }
        return com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.getDefaultInstance();
      } else {
        if (valueCase_ == 1) {
          return accumulatorValueBuilder_.getMessage();
        }
        return com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.getDefaultInstance();
      }
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue accumulatorValue = 1;
     */
    public Builder setAccumulatorValue(com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue value) {
      if (accumulatorValueBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        value_ = value;
        onChanged();
      } else {
        accumulatorValueBuilder_.setMessage(value);
      }
      valueCase_ = 1;
      return this;
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue accumulatorValue = 1;
     */
    public Builder setAccumulatorValue(
        com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.Builder builderForValue) {
      if (accumulatorValueBuilder_ == null) {
        value_ = builderForValue.build();
        onChanged();
      } else {
        accumulatorValueBuilder_.setMessage(builderForValue.build());
      }
      valueCase_ = 1;
      return this;
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue accumulatorValue = 1;
     */
    public Builder mergeAccumulatorValue(com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue value) {
      if (accumulatorValueBuilder_ == null) {
        if (valueCase_ == 1 &&
            value_ != com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.getDefaultInstance()) {
          value_ = com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.newBuilder((com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue) value_)
              .mergeFrom(value).buildPartial();
        } else {
          value_ = value;
        }
        onChanged();
      } else {
        if (valueCase_ == 1) {
          accumulatorValueBuilder_.mergeFrom(value);
        } else {
          accumulatorValueBuilder_.setMessage(value);
        }
      }
      valueCase_ = 1;
      return this;
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue accumulatorValue = 1;
     */
    public Builder clearAccumulatorValue() {
      if (accumulatorValueBuilder_ == null) {
        if (valueCase_ == 1) {
          valueCase_ = 0;
          value_ = null;
          onChanged();
        }
      } else {
        if (valueCase_ == 1) {
          valueCase_ = 0;
          value_ = null;
        }
        accumulatorValueBuilder_.clear();
      }
      return this;
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue accumulatorValue = 1;
     */
    public com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.Builder getAccumulatorValueBuilder() {
      return getAccumulatorValueFieldBuilder().getBuilder();
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue accumulatorValue = 1;
     */
    @java.lang.Override
    public com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValueOrBuilder getAccumulatorValueOrBuilder() {
      if ((valueCase_ == 1) && (accumulatorValueBuilder_ != null)) {
        return accumulatorValueBuilder_.getMessageOrBuilder();
      } else {
        if (valueCase_ == 1) {
          return (com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue) value_;
        }
        return com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.getDefaultInstance();
      }
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue accumulatorValue = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue, com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.Builder, com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValueOrBuilder> 
        getAccumulatorValueFieldBuilder() {
      if (accumulatorValueBuilder_ == null) {
        if (!(valueCase_ == 1)) {
          value_ = com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.getDefaultInstance();
        }
        accumulatorValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue, com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.Builder, com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValueOrBuilder>(
                (com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue) value_,
                getParentForChildren(),
                isClean());
        value_ = null;
      }
      valueCase_ = 1;
      onChanged();
      return accumulatorValueBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue, com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.Builder, com.zepben.protobuf.cim.iec61970.base.meas.AnalogValueOrBuilder> analogValueBuilder_;
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AnalogValue analogValue = 2;
     * @return Whether the analogValue field is set.
     */
    @java.lang.Override
    public boolean hasAnalogValue() {
      return valueCase_ == 2;
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AnalogValue analogValue = 2;
     * @return The analogValue.
     */
    @java.lang.Override
    public com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue getAnalogValue() {
      if (analogValueBuilder_ == null) {
        if (valueCase_ == 2) {
          return (com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue) value_;
        }
        return com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.getDefaultInstance();
      } else {
        if (valueCase_ == 2) {
          return analogValueBuilder_.getMessage();
        }
        return com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.getDefaultInstance();
      }
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AnalogValue analogValue = 2;
     */
    public Builder setAnalogValue(com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue value) {
      if (analogValueBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        value_ = value;
        onChanged();
      } else {
        analogValueBuilder_.setMessage(value);
      }
      valueCase_ = 2;
      return this;
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AnalogValue analogValue = 2;
     */
    public Builder setAnalogValue(
        com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.Builder builderForValue) {
      if (analogValueBuilder_ == null) {
        value_ = builderForValue.build();
        onChanged();
      } else {
        analogValueBuilder_.setMessage(builderForValue.build());
      }
      valueCase_ = 2;
      return this;
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AnalogValue analogValue = 2;
     */
    public Builder mergeAnalogValue(com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue value) {
      if (analogValueBuilder_ == null) {
        if (valueCase_ == 2 &&
            value_ != com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.getDefaultInstance()) {
          value_ = com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.newBuilder((com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue) value_)
              .mergeFrom(value).buildPartial();
        } else {
          value_ = value;
        }
        onChanged();
      } else {
        if (valueCase_ == 2) {
          analogValueBuilder_.mergeFrom(value);
        } else {
          analogValueBuilder_.setMessage(value);
        }
      }
      valueCase_ = 2;
      return this;
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AnalogValue analogValue = 2;
     */
    public Builder clearAnalogValue() {
      if (analogValueBuilder_ == null) {
        if (valueCase_ == 2) {
          valueCase_ = 0;
          value_ = null;
          onChanged();
        }
      } else {
        if (valueCase_ == 2) {
          valueCase_ = 0;
          value_ = null;
        }
        analogValueBuilder_.clear();
      }
      return this;
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AnalogValue analogValue = 2;
     */
    public com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.Builder getAnalogValueBuilder() {
      return getAnalogValueFieldBuilder().getBuilder();
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AnalogValue analogValue = 2;
     */
    @java.lang.Override
    public com.zepben.protobuf.cim.iec61970.base.meas.AnalogValueOrBuilder getAnalogValueOrBuilder() {
      if ((valueCase_ == 2) && (analogValueBuilder_ != null)) {
        return analogValueBuilder_.getMessageOrBuilder();
      } else {
        if (valueCase_ == 2) {
          return (com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue) value_;
        }
        return com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.getDefaultInstance();
      }
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.AnalogValue analogValue = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue, com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.Builder, com.zepben.protobuf.cim.iec61970.base.meas.AnalogValueOrBuilder> 
        getAnalogValueFieldBuilder() {
      if (analogValueBuilder_ == null) {
        if (!(valueCase_ == 2)) {
          value_ = com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.getDefaultInstance();
        }
        analogValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue, com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.Builder, com.zepben.protobuf.cim.iec61970.base.meas.AnalogValueOrBuilder>(
                (com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue) value_,
                getParentForChildren(),
                isClean());
        value_ = null;
      }
      valueCase_ = 2;
      onChanged();
      return analogValueBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue, com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue.Builder, com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValueOrBuilder> discreteValueBuilder_;
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.DiscreteValue discreteValue = 3;
     * @return Whether the discreteValue field is set.
     */
    @java.lang.Override
    public boolean hasDiscreteValue() {
      return valueCase_ == 3;
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.DiscreteValue discreteValue = 3;
     * @return The discreteValue.
     */
    @java.lang.Override
    public com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue getDiscreteValue() {
      if (discreteValueBuilder_ == null) {
        if (valueCase_ == 3) {
          return (com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue) value_;
        }
        return com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue.getDefaultInstance();
      } else {
        if (valueCase_ == 3) {
          return discreteValueBuilder_.getMessage();
        }
        return com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue.getDefaultInstance();
      }
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.DiscreteValue discreteValue = 3;
     */
    public Builder setDiscreteValue(com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue value) {
      if (discreteValueBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        value_ = value;
        onChanged();
      } else {
        discreteValueBuilder_.setMessage(value);
      }
      valueCase_ = 3;
      return this;
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.DiscreteValue discreteValue = 3;
     */
    public Builder setDiscreteValue(
        com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue.Builder builderForValue) {
      if (discreteValueBuilder_ == null) {
        value_ = builderForValue.build();
        onChanged();
      } else {
        discreteValueBuilder_.setMessage(builderForValue.build());
      }
      valueCase_ = 3;
      return this;
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.DiscreteValue discreteValue = 3;
     */
    public Builder mergeDiscreteValue(com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue value) {
      if (discreteValueBuilder_ == null) {
        if (valueCase_ == 3 &&
            value_ != com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue.getDefaultInstance()) {
          value_ = com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue.newBuilder((com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue) value_)
              .mergeFrom(value).buildPartial();
        } else {
          value_ = value;
        }
        onChanged();
      } else {
        if (valueCase_ == 3) {
          discreteValueBuilder_.mergeFrom(value);
        } else {
          discreteValueBuilder_.setMessage(value);
        }
      }
      valueCase_ = 3;
      return this;
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.DiscreteValue discreteValue = 3;
     */
    public Builder clearDiscreteValue() {
      if (discreteValueBuilder_ == null) {
        if (valueCase_ == 3) {
          valueCase_ = 0;
          value_ = null;
          onChanged();
        }
      } else {
        if (valueCase_ == 3) {
          valueCase_ = 0;
          value_ = null;
        }
        discreteValueBuilder_.clear();
      }
      return this;
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.DiscreteValue discreteValue = 3;
     */
    public com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue.Builder getDiscreteValueBuilder() {
      return getDiscreteValueFieldBuilder().getBuilder();
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.DiscreteValue discreteValue = 3;
     */
    @java.lang.Override
    public com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValueOrBuilder getDiscreteValueOrBuilder() {
      if ((valueCase_ == 3) && (discreteValueBuilder_ != null)) {
        return discreteValueBuilder_.getMessageOrBuilder();
      } else {
        if (valueCase_ == 3) {
          return (com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue) value_;
        }
        return com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue.getDefaultInstance();
      }
    }
    /**
     * .zepben.protobuf.cim.iec61970.base.meas.DiscreteValue discreteValue = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue, com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue.Builder, com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValueOrBuilder> 
        getDiscreteValueFieldBuilder() {
      if (discreteValueBuilder_ == null) {
        if (!(valueCase_ == 3)) {
          value_ = com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue.getDefaultInstance();
        }
        discreteValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue, com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue.Builder, com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValueOrBuilder>(
                (com.zepben.protobuf.cim.iec61970.base.meas.DiscreteValue) value_,
                getParentForChildren(),
                isClean());
        value_ = null;
      }
      valueCase_ = 3;
      onChanged();
      return discreteValueBuilder_;
    }

    private java.lang.Object error_ = "";
    /**
     * string error = 4;
     * @return The error.
     */
    public java.lang.String getError() {
      java.lang.Object ref = error_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        error_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string error = 4;
     * @return The bytes for error.
     */
    public com.google.protobuf.ByteString
        getErrorBytes() {
      java.lang.Object ref = error_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        error_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string error = 4;
     * @param value The error to set.
     * @return This builder for chaining.
     */
    public Builder setError(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      error_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * string error = 4;
     * @return This builder for chaining.
     */
    public Builder clearError() {
      error_ = getDefaultInstance().getError();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     * string error = 4;
     * @param value The bytes for error to set.
     * @return This builder for chaining.
     */
    public Builder setErrorBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      error_ = value;
      bitField0_ |= 0x00000008;
      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:zepben.protobuf.mp.ErrorDetail)
  }

  // @@protoc_insertion_point(class_scope:zepben.protobuf.mp.ErrorDetail)
  private static final com.zepben.protobuf.mp.ErrorDetail DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.zepben.protobuf.mp.ErrorDetail();
  }

  public static com.zepben.protobuf.mp.ErrorDetail getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public ErrorDetail parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

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

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

  @java.lang.Override
  public com.zepben.protobuf.mp.ErrorDetail getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy