com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue 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/AnalogValue.proto
package com.zepben.protobuf.cim.iec61970.base.meas;
/**
*
**
* AnalogValue represents an analog MeasurementValue.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.meas.AnalogValue}
*/
public final class AnalogValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.meas.AnalogValue)
AnalogValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use AnalogValue.newBuilder() to construct.
private AnalogValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AnalogValue() {
analogMRID_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AnalogValue();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.meas.AnalogValueOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_meas_AnalogValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.meas.AnalogValueOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_meas_AnalogValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.class, com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.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 AnalogValue.
*
*
* .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 AnalogValue.
*
*
* .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 AnalogValue.
*
*
* .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 ANALOGMRID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object analogMRID_ = "";
/**
*
**
* An analog value object is part of an analog.
*
*
* string analogMRID = 2;
* @return The analogMRID.
*/
@java.lang.Override
public java.lang.String getAnalogMRID() {
java.lang.Object ref = analogMRID_;
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();
analogMRID_ = s;
return s;
}
}
/**
*
**
* An analog value object is part of an analog.
*
*
* string analogMRID = 2;
* @return The bytes for analogMRID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAnalogMRIDBytes() {
java.lang.Object ref = analogMRID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
analogMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 3;
private double value_ = 0D;
/**
*
**
* The value to supervise.
*
*
* double value = 3;
* @return The value.
*/
@java.lang.Override
public double 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(analogMRID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, analogMRID_);
}
if (java.lang.Double.doubleToRawLongBits(value_) != 0) {
output.writeDouble(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(analogMRID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, analogMRID_);
}
if (java.lang.Double.doubleToRawLongBits(value_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(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.AnalogValue)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue other = (com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue) obj;
if (hasMv() != other.hasMv()) return false;
if (hasMv()) {
if (!getMv()
.equals(other.getMv())) return false;
}
if (!getAnalogMRID()
.equals(other.getAnalogMRID())) return false;
if (java.lang.Double.doubleToLongBits(getValue())
!= java.lang.Double.doubleToLongBits(
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) + ANALOGMRID_FIELD_NUMBER;
hash = (53 * hash) + getAnalogMRID().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getValue()));
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue 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.AnalogValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue 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.AnalogValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue 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.AnalogValue 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.AnalogValue 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.AnalogValue 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.AnalogValue 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.AnalogValue 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.AnalogValue 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.AnalogValue 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;
}
/**
*
**
* AnalogValue represents an analog MeasurementValue.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.meas.AnalogValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.meas.AnalogValue)
com.zepben.protobuf.cim.iec61970.base.meas.AnalogValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.meas.AnalogValueOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_meas_AnalogValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.meas.AnalogValueOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_meas_AnalogValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.class, com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.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;
}
analogMRID_ = "";
value_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61970.base.meas.AnalogValueOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_meas_AnalogValue_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue build() {
com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue buildPartial() {
com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue result = new com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue 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.analogMRID_ = analogMRID_;
}
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.AnalogValue) {
return mergeFrom((com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue other) {
if (other == com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue.getDefaultInstance()) return this;
if (other.hasMv()) {
mergeMv(other.getMv());
}
if (!other.getAnalogMRID().isEmpty()) {
analogMRID_ = other.analogMRID_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.getValue() != 0D) {
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: {
analogMRID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 25: {
value_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
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 AnalogValue.
*
*
* .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 AnalogValue.
*
*
* .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 AnalogValue.
*
*
* .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 AnalogValue.
*
*
* .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 AnalogValue.
*
*
* .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 AnalogValue.
*
*
* .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 AnalogValue.
*
*
* .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 AnalogValue.
*
*
* .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 AnalogValue.
*
*
* .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 analogMRID_ = "";
/**
*
**
* An analog value object is part of an analog.
*
*
* string analogMRID = 2;
* @return The analogMRID.
*/
public java.lang.String getAnalogMRID() {
java.lang.Object ref = analogMRID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
analogMRID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* An analog value object is part of an analog.
*
*
* string analogMRID = 2;
* @return The bytes for analogMRID.
*/
public com.google.protobuf.ByteString
getAnalogMRIDBytes() {
java.lang.Object ref = analogMRID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
analogMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* An analog value object is part of an analog.
*
*
* string analogMRID = 2;
* @param value The analogMRID to set.
* @return This builder for chaining.
*/
public Builder setAnalogMRID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
analogMRID_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* An analog value object is part of an analog.
*
*
* string analogMRID = 2;
* @return This builder for chaining.
*/
public Builder clearAnalogMRID() {
analogMRID_ = getDefaultInstance().getAnalogMRID();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
**
* An analog value object is part of an analog.
*
*
* string analogMRID = 2;
* @param value The bytes for analogMRID to set.
* @return This builder for chaining.
*/
public Builder setAnalogMRIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
analogMRID_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private double value_ ;
/**
*
**
* The value to supervise.
*
*
* double value = 3;
* @return The value.
*/
@java.lang.Override
public double getValue() {
return value_;
}
/**
*
**
* The value to supervise.
*
*
* double value = 3;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(double value) {
value_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The value to supervise.
*
*
* double value = 3;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000004);
value_ = 0D;
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.AnalogValue)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.meas.AnalogValue)
private static final com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue();
}
public static com.zepben.protobuf.cim.iec61970.base.meas.AnalogValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AnalogValue 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.AnalogValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}