com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evolve-grpc Show documentation
Show all versions of evolve-grpc Show documentation
Protobuf and gRPC definitions for the evolve platform
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: zepben/protobuf/cim/iec61970/base/meas/AccumulatorValue.proto
package com.zepben.protobuf.cim.iec61970.base.meas;
/**
*
**
* AccumulatorValue represents an accumulated (counted) MeasurementValue.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue}
*/
public final class AccumulatorValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue)
AccumulatorValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use AccumulatorValue.newBuilder() to construct.
private AccumulatorValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AccumulatorValue() {
accumulatorMRID_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AccumulatorValue();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValueOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_meas_AccumulatorValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValueOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_meas_AccumulatorValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.class, com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.Builder.class);
}
private int bitField0_;
public static final int MV_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue mv_;
/**
*
**
* MeasurementValue fields for this AccumulatorValue.
*
*
* .zepben.protobuf.cim.iec61970.base.meas.MeasurementValue mv = 1;
* @return Whether the mv field is set.
*/
@java.lang.Override
public boolean hasMv() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* MeasurementValue fields for this AccumulatorValue.
*
*
* .zepben.protobuf.cim.iec61970.base.meas.MeasurementValue mv = 1;
* @return The mv.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue getMv() {
return mv_ == null ? com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue.getDefaultInstance() : mv_;
}
/**
*
**
* MeasurementValue fields for this AccumulatorValue.
*
*
* .zepben.protobuf.cim.iec61970.base.meas.MeasurementValue mv = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValueOrBuilder getMvOrBuilder() {
return mv_ == null ? com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue.getDefaultInstance() : mv_;
}
public static final int ACCUMULATORMRID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object accumulatorMRID_ = "";
/**
*
**
* An accumulator value object is part of an accumulator.
*
*
* string accumulatorMRID = 2;
* @return The accumulatorMRID.
*/
@java.lang.Override
public java.lang.String getAccumulatorMRID() {
java.lang.Object ref = accumulatorMRID_;
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();
accumulatorMRID_ = s;
return s;
}
}
/**
*
**
* An accumulator value object is part of an accumulator.
*
*
* string accumulatorMRID = 2;
* @return The bytes for accumulatorMRID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAccumulatorMRIDBytes() {
java.lang.Object ref = accumulatorMRID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
accumulatorMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 3;
private int value_ = 0;
/**
*
**
* The value to supervise. The value is positive.
*
*
* uint32 value = 3;
* @return The value.
*/
@java.lang.Override
public int getValue() {
return value_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getMv());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accumulatorMRID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, accumulatorMRID_);
}
if (value_ != 0) {
output.writeUInt32(3, value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMv());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accumulatorMRID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, accumulatorMRID_);
}
if (value_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, value_);
}
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.cim.iec61970.base.meas.AccumulatorValue)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue other = (com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue) obj;
if (hasMv() != other.hasMv()) return false;
if (hasMv()) {
if (!getMv()
.equals(other.getMv())) return false;
}
if (!getAccumulatorMRID()
.equals(other.getAccumulatorMRID())) return false;
if (getValue()
!= other.getValue()) return false;
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();
if (hasMv()) {
hash = (37 * hash) + MV_FIELD_NUMBER;
hash = (53 * hash) + getMv().hashCode();
}
hash = (37 * hash) + ACCUMULATORMRID_FIELD_NUMBER;
hash = (53 * hash) + getAccumulatorMRID().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue 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.cim.iec61970.base.meas.AccumulatorValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue 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.cim.iec61970.base.meas.AccumulatorValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue 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.cim.iec61970.base.meas.AccumulatorValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue 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.cim.iec61970.base.meas.AccumulatorValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue 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.cim.iec61970.base.meas.AccumulatorValue 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;
}
/**
*
**
* AccumulatorValue represents an accumulated (counted) MeasurementValue.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue)
com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValueOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_meas_AccumulatorValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValueOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_meas_AccumulatorValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.class, com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMvFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
mv_ = null;
if (mvBuilder_ != null) {
mvBuilder_.dispose();
mvBuilder_ = null;
}
accumulatorMRID_ = "";
value_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValueOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_meas_AccumulatorValue_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue build() {
com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue buildPartial() {
com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue result = new com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.mv_ = mvBuilder_ == null
? mv_
: mvBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.accumulatorMRID_ = accumulatorMRID_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.value_ = value_;
}
result.bitField0_ |= to_bitField0_;
}
@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.cim.iec61970.base.meas.AccumulatorValue) {
return mergeFrom((com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue other) {
if (other == com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue.getDefaultInstance()) return this;
if (other.hasMv()) {
mergeMv(other.getMv());
}
if (!other.getAccumulatorMRID().isEmpty()) {
accumulatorMRID_ = other.accumulatorMRID_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getValue() != 0) {
setValue(other.getValue());
}
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(
getMvFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
accumulatorMRID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
value_ = input.readUInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
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 bitField0_;
private com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue mv_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue, com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue.Builder, com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValueOrBuilder> mvBuilder_;
/**
*
**
* MeasurementValue fields for this AccumulatorValue.
*
*
* .zepben.protobuf.cim.iec61970.base.meas.MeasurementValue mv = 1;
* @return Whether the mv field is set.
*/
public boolean hasMv() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* MeasurementValue fields for this AccumulatorValue.
*
*
* .zepben.protobuf.cim.iec61970.base.meas.MeasurementValue mv = 1;
* @return The mv.
*/
public com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue getMv() {
if (mvBuilder_ == null) {
return mv_ == null ? com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue.getDefaultInstance() : mv_;
} else {
return mvBuilder_.getMessage();
}
}
/**
*
**
* MeasurementValue fields for this AccumulatorValue.
*
*
* .zepben.protobuf.cim.iec61970.base.meas.MeasurementValue mv = 1;
*/
public Builder setMv(com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue value) {
if (mvBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
mv_ = value;
} else {
mvBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* MeasurementValue fields for this AccumulatorValue.
*
*
* .zepben.protobuf.cim.iec61970.base.meas.MeasurementValue mv = 1;
*/
public Builder setMv(
com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue.Builder builderForValue) {
if (mvBuilder_ == null) {
mv_ = builderForValue.build();
} else {
mvBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* MeasurementValue fields for this AccumulatorValue.
*
*
* .zepben.protobuf.cim.iec61970.base.meas.MeasurementValue mv = 1;
*/
public Builder mergeMv(com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue value) {
if (mvBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
mv_ != null &&
mv_ != com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue.getDefaultInstance()) {
getMvBuilder().mergeFrom(value);
} else {
mv_ = value;
}
} else {
mvBuilder_.mergeFrom(value);
}
if (mv_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* MeasurementValue fields for this AccumulatorValue.
*
*
* .zepben.protobuf.cim.iec61970.base.meas.MeasurementValue mv = 1;
*/
public Builder clearMv() {
bitField0_ = (bitField0_ & ~0x00000001);
mv_ = null;
if (mvBuilder_ != null) {
mvBuilder_.dispose();
mvBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* MeasurementValue fields for this AccumulatorValue.
*
*
* .zepben.protobuf.cim.iec61970.base.meas.MeasurementValue mv = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue.Builder getMvBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getMvFieldBuilder().getBuilder();
}
/**
*
**
* MeasurementValue fields for this AccumulatorValue.
*
*
* .zepben.protobuf.cim.iec61970.base.meas.MeasurementValue mv = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValueOrBuilder getMvOrBuilder() {
if (mvBuilder_ != null) {
return mvBuilder_.getMessageOrBuilder();
} else {
return mv_ == null ?
com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue.getDefaultInstance() : mv_;
}
}
/**
*
**
* MeasurementValue fields for this AccumulatorValue.
*
*
* .zepben.protobuf.cim.iec61970.base.meas.MeasurementValue mv = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue, com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue.Builder, com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValueOrBuilder>
getMvFieldBuilder() {
if (mvBuilder_ == null) {
mvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue, com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValue.Builder, com.zepben.protobuf.cim.iec61970.base.meas.MeasurementValueOrBuilder>(
getMv(),
getParentForChildren(),
isClean());
mv_ = null;
}
return mvBuilder_;
}
private java.lang.Object accumulatorMRID_ = "";
/**
*
**
* An accumulator value object is part of an accumulator.
*
*
* string accumulatorMRID = 2;
* @return The accumulatorMRID.
*/
public java.lang.String getAccumulatorMRID() {
java.lang.Object ref = accumulatorMRID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
accumulatorMRID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* An accumulator value object is part of an accumulator.
*
*
* string accumulatorMRID = 2;
* @return The bytes for accumulatorMRID.
*/
public com.google.protobuf.ByteString
getAccumulatorMRIDBytes() {
java.lang.Object ref = accumulatorMRID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
accumulatorMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* An accumulator value object is part of an accumulator.
*
*
* string accumulatorMRID = 2;
* @param value The accumulatorMRID to set.
* @return This builder for chaining.
*/
public Builder setAccumulatorMRID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
accumulatorMRID_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* An accumulator value object is part of an accumulator.
*
*
* string accumulatorMRID = 2;
* @return This builder for chaining.
*/
public Builder clearAccumulatorMRID() {
accumulatorMRID_ = getDefaultInstance().getAccumulatorMRID();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
**
* An accumulator value object is part of an accumulator.
*
*
* string accumulatorMRID = 2;
* @param value The bytes for accumulatorMRID to set.
* @return This builder for chaining.
*/
public Builder setAccumulatorMRIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
accumulatorMRID_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int value_ ;
/**
*
**
* The value to supervise. The value is positive.
*
*
* uint32 value = 3;
* @return The value.
*/
@java.lang.Override
public int getValue() {
return value_;
}
/**
*
**
* The value to supervise. The value is positive.
*
*
* uint32 value = 3;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(int value) {
value_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The value to supervise. The value is positive.
*
*
* uint32 value = 3;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000004);
value_ = 0;
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.cim.iec61970.base.meas.AccumulatorValue)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue)
private static final com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue();
}
public static com.zepben.protobuf.cim.iec61970.base.meas.AccumulatorValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AccumulatorValue 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.cim.iec61970.base.meas.AccumulatorValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}