com.zepben.protobuf.cim.iec61970.base.meas.Measurement 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/Measurement.proto
package com.zepben.protobuf.cim.iec61970.base.meas;
/**
*
**
* A Measurement represents any measured, calculated or non-measured non-calculated quantity. Any piece of equipment may
* contain Measurements, e.g. a substation may have temperature measurements and door open indications, a transformer may
* have oil temperature and tank pressure measurements, a bay may contain a number of power flow measurements and a
* Breaker may contain a switch status measurement.
* <p>
* The PSR - Measurement association is intended to capture this use of Measurement and is included in the naming
* hierarchy based on EquipmentContainer. The naming hierarchy typically has Measurements as leafs,
* e.g. Substation-VoltageLevel-Bay-Switch-Measurement.
* <p>
* Some Measurements represent quantities related to a particular sensor location in the network, e.g. a voltage transformer
* (PT) at a busbar or a current transformer (CT) at the bar between a breaker and an isolator. The sensing position is not
* captured in the PSR - Measurement association. Instead it is captured by the Measurement - Terminal association that is
* used to define the sensing location in the network topology. The location is defined by the connection of the Terminal to
* ConductingEquipment.
* <p>
* If both a Terminal and PSR are associated, and the PSR is of type ConductingEquipment, the associated Terminal should
* belong to that ConductingEquipment instance.
* <p>
* When the sensor location is needed both Measurement-PSR and Measurement-Terminal are used. The Measurement-Terminal
* association is never used alone.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.meas.Measurement}
*/
public final class Measurement extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.meas.Measurement)
MeasurementOrBuilder {
private static final long serialVersionUID = 0L;
// Use Measurement.newBuilder() to construct.
private Measurement(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Measurement() {
powerSystemResourceMRID_ = "";
remoteSourceMRID_ = "";
terminalMRID_ = "";
phases_ = 0;
unitSymbol_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Measurement();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.meas.MeasurementOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_meas_Measurement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.meas.MeasurementOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_meas_Measurement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.meas.Measurement.class, com.zepben.protobuf.cim.iec61970.base.meas.Measurement.Builder.class);
}
private int bitField0_;
public static final int IO_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io_;
/**
*
**
* IdentifiedObject fields for this Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
* @return Whether the io field is set.
*/
@java.lang.Override
public boolean hasIo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* IdentifiedObject fields for this Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
* @return The io.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject getIo() {
return io_ == null ? com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_;
}
/**
*
**
* IdentifiedObject fields for this Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder getIoOrBuilder() {
return io_ == null ? com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_;
}
public static final int POWERSYSTEMRESOURCEMRID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object powerSystemResourceMRID_ = "";
/**
*
**
* The power system resource that contains the measurement.
*
*
* string powerSystemResourceMRID = 2;
* @return The powerSystemResourceMRID.
*/
@java.lang.Override
public java.lang.String getPowerSystemResourceMRID() {
java.lang.Object ref = powerSystemResourceMRID_;
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();
powerSystemResourceMRID_ = s;
return s;
}
}
/**
*
**
* The power system resource that contains the measurement.
*
*
* string powerSystemResourceMRID = 2;
* @return The bytes for powerSystemResourceMRID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPowerSystemResourceMRIDBytes() {
java.lang.Object ref = powerSystemResourceMRID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
powerSystemResourceMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REMOTESOURCEMRID_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object remoteSourceMRID_ = "";
/**
*
**
* The remote point taking the measurement.
*
*
* string remoteSourceMRID = 3;
* @return The remoteSourceMRID.
*/
@java.lang.Override
public java.lang.String getRemoteSourceMRID() {
java.lang.Object ref = remoteSourceMRID_;
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();
remoteSourceMRID_ = s;
return s;
}
}
/**
*
**
* The remote point taking the measurement.
*
*
* string remoteSourceMRID = 3;
* @return The bytes for remoteSourceMRID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRemoteSourceMRIDBytes() {
java.lang.Object ref = remoteSourceMRID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
remoteSourceMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TERMINALMRID_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object terminalMRID_ = "";
/**
*
**
* A measurement may be associated with a terminal in the network.
*
*
* string terminalMRID = 4;
* @return The terminalMRID.
*/
@java.lang.Override
public java.lang.String getTerminalMRID() {
java.lang.Object ref = terminalMRID_;
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();
terminalMRID_ = s;
return s;
}
}
/**
*
**
* A measurement may be associated with a terminal in the network.
*
*
* string terminalMRID = 4;
* @return The bytes for terminalMRID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTerminalMRIDBytes() {
java.lang.Object ref = terminalMRID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
terminalMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PHASES_FIELD_NUMBER = 5;
private int phases_ = 0;
/**
*
**
* Indicates to which phases the measurement applies and avoids the need
* to use 'measurementType' to also encode phase information (which would explode the types).
* The phase information in Measurement, along with 'measurementType' and 'phases'
* uniquely defines a Measurement for a device, based on normal network phase.
* Their meaning will not change when the computed energizing phasing is changed due to jumpers or other reasons.
* If the attribute is missing three phases (ABC) shall be assumed.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PhaseCode phases = 5;
* @return The enum numeric value on the wire for phases.
*/
@java.lang.Override public int getPhasesValue() {
return phases_;
}
/**
*
**
* Indicates to which phases the measurement applies and avoids the need
* to use 'measurementType' to also encode phase information (which would explode the types).
* The phase information in Measurement, along with 'measurementType' and 'phases'
* uniquely defines a Measurement for a device, based on normal network phase.
* Their meaning will not change when the computed energizing phasing is changed due to jumpers or other reasons.
* If the attribute is missing three phases (ABC) shall be assumed.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PhaseCode phases = 5;
* @return The phases.
*/
@java.lang.Override public com.zepben.protobuf.cim.iec61970.base.core.PhaseCode getPhases() {
com.zepben.protobuf.cim.iec61970.base.core.PhaseCode result = com.zepben.protobuf.cim.iec61970.base.core.PhaseCode.forNumber(phases_);
return result == null ? com.zepben.protobuf.cim.iec61970.base.core.PhaseCode.UNRECOGNIZED : result;
}
public static final int UNITSYMBOL_FIELD_NUMBER = 6;
private int unitSymbol_ = 0;
/**
*
**
* Specifies the type of measurement.
* For example, this specifies if the measurement represents an indoor temperature,
* outdoor temperature, bus voltage, line flow, etc.
* When the measurementType is set to "Specialization",
* the type of Measurement is defined in more detail
* by the specialized class which inherits from Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.domain.UnitSymbol unitSymbol = 6;
* @return The enum numeric value on the wire for unitSymbol.
*/
@java.lang.Override public int getUnitSymbolValue() {
return unitSymbol_;
}
/**
*
**
* Specifies the type of measurement.
* For example, this specifies if the measurement represents an indoor temperature,
* outdoor temperature, bus voltage, line flow, etc.
* When the measurementType is set to "Specialization",
* the type of Measurement is defined in more detail
* by the specialized class which inherits from Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.domain.UnitSymbol unitSymbol = 6;
* @return The unitSymbol.
*/
@java.lang.Override public com.zepben.protobuf.cim.iec61970.base.domain.UnitSymbol getUnitSymbol() {
com.zepben.protobuf.cim.iec61970.base.domain.UnitSymbol result = com.zepben.protobuf.cim.iec61970.base.domain.UnitSymbol.forNumber(unitSymbol_);
return result == null ? com.zepben.protobuf.cim.iec61970.base.domain.UnitSymbol.UNRECOGNIZED : result;
}
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, getIo());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(powerSystemResourceMRID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, powerSystemResourceMRID_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remoteSourceMRID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, remoteSourceMRID_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(terminalMRID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, terminalMRID_);
}
if (phases_ != com.zepben.protobuf.cim.iec61970.base.core.PhaseCode.NONE.getNumber()) {
output.writeEnum(5, phases_);
}
if (unitSymbol_ != com.zepben.protobuf.cim.iec61970.base.domain.UnitSymbol.NONE.getNumber()) {
output.writeEnum(6, unitSymbol_);
}
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, getIo());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(powerSystemResourceMRID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, powerSystemResourceMRID_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(remoteSourceMRID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, remoteSourceMRID_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(terminalMRID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, terminalMRID_);
}
if (phases_ != com.zepben.protobuf.cim.iec61970.base.core.PhaseCode.NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, phases_);
}
if (unitSymbol_ != com.zepben.protobuf.cim.iec61970.base.domain.UnitSymbol.NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, unitSymbol_);
}
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.Measurement)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61970.base.meas.Measurement other = (com.zepben.protobuf.cim.iec61970.base.meas.Measurement) obj;
if (hasIo() != other.hasIo()) return false;
if (hasIo()) {
if (!getIo()
.equals(other.getIo())) return false;
}
if (!getPowerSystemResourceMRID()
.equals(other.getPowerSystemResourceMRID())) return false;
if (!getRemoteSourceMRID()
.equals(other.getRemoteSourceMRID())) return false;
if (!getTerminalMRID()
.equals(other.getTerminalMRID())) return false;
if (phases_ != other.phases_) return false;
if (unitSymbol_ != other.unitSymbol_) 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 (hasIo()) {
hash = (37 * hash) + IO_FIELD_NUMBER;
hash = (53 * hash) + getIo().hashCode();
}
hash = (37 * hash) + POWERSYSTEMRESOURCEMRID_FIELD_NUMBER;
hash = (53 * hash) + getPowerSystemResourceMRID().hashCode();
hash = (37 * hash) + REMOTESOURCEMRID_FIELD_NUMBER;
hash = (53 * hash) + getRemoteSourceMRID().hashCode();
hash = (37 * hash) + TERMINALMRID_FIELD_NUMBER;
hash = (53 * hash) + getTerminalMRID().hashCode();
hash = (37 * hash) + PHASES_FIELD_NUMBER;
hash = (53 * hash) + phases_;
hash = (37 * hash) + UNITSYMBOL_FIELD_NUMBER;
hash = (53 * hash) + unitSymbol_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61970.base.meas.Measurement parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.meas.Measurement 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.Measurement parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.meas.Measurement 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.Measurement parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61970.base.meas.Measurement 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.Measurement 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.Measurement 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.Measurement 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.Measurement 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.Measurement 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.Measurement 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.Measurement 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;
}
/**
*
**
* A Measurement represents any measured, calculated or non-measured non-calculated quantity. Any piece of equipment may
* contain Measurements, e.g. a substation may have temperature measurements and door open indications, a transformer may
* have oil temperature and tank pressure measurements, a bay may contain a number of power flow measurements and a
* Breaker may contain a switch status measurement.
* <p>
* The PSR - Measurement association is intended to capture this use of Measurement and is included in the naming
* hierarchy based on EquipmentContainer. The naming hierarchy typically has Measurements as leafs,
* e.g. Substation-VoltageLevel-Bay-Switch-Measurement.
* <p>
* Some Measurements represent quantities related to a particular sensor location in the network, e.g. a voltage transformer
* (PT) at a busbar or a current transformer (CT) at the bar between a breaker and an isolator. The sensing position is not
* captured in the PSR - Measurement association. Instead it is captured by the Measurement - Terminal association that is
* used to define the sensing location in the network topology. The location is defined by the connection of the Terminal to
* ConductingEquipment.
* <p>
* If both a Terminal and PSR are associated, and the PSR is of type ConductingEquipment, the associated Terminal should
* belong to that ConductingEquipment instance.
* <p>
* When the sensor location is needed both Measurement-PSR and Measurement-Terminal are used. The Measurement-Terminal
* association is never used alone.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61970.base.meas.Measurement}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.meas.Measurement)
com.zepben.protobuf.cim.iec61970.base.meas.MeasurementOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61970.base.meas.MeasurementOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_meas_Measurement_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61970.base.meas.MeasurementOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_meas_Measurement_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61970.base.meas.Measurement.class, com.zepben.protobuf.cim.iec61970.base.meas.Measurement.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61970.base.meas.Measurement.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
io_ = null;
if (ioBuilder_ != null) {
ioBuilder_.dispose();
ioBuilder_ = null;
}
powerSystemResourceMRID_ = "";
remoteSourceMRID_ = "";
terminalMRID_ = "";
phases_ = 0;
unitSymbol_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61970.base.meas.MeasurementOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_meas_Measurement_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.meas.Measurement getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61970.base.meas.Measurement.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.meas.Measurement build() {
com.zepben.protobuf.cim.iec61970.base.meas.Measurement result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.meas.Measurement buildPartial() {
com.zepben.protobuf.cim.iec61970.base.meas.Measurement result = new com.zepben.protobuf.cim.iec61970.base.meas.Measurement(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.meas.Measurement result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.io_ = ioBuilder_ == null
? io_
: ioBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.powerSystemResourceMRID_ = powerSystemResourceMRID_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.remoteSourceMRID_ = remoteSourceMRID_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.terminalMRID_ = terminalMRID_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.phases_ = phases_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.unitSymbol_ = unitSymbol_;
}
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.Measurement) {
return mergeFrom((com.zepben.protobuf.cim.iec61970.base.meas.Measurement)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.meas.Measurement other) {
if (other == com.zepben.protobuf.cim.iec61970.base.meas.Measurement.getDefaultInstance()) return this;
if (other.hasIo()) {
mergeIo(other.getIo());
}
if (!other.getPowerSystemResourceMRID().isEmpty()) {
powerSystemResourceMRID_ = other.powerSystemResourceMRID_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getRemoteSourceMRID().isEmpty()) {
remoteSourceMRID_ = other.remoteSourceMRID_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getTerminalMRID().isEmpty()) {
terminalMRID_ = other.terminalMRID_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.phases_ != 0) {
setPhasesValue(other.getPhasesValue());
}
if (other.unitSymbol_ != 0) {
setUnitSymbolValue(other.getUnitSymbolValue());
}
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(
getIoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
powerSystemResourceMRID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
remoteSourceMRID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
terminalMRID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
phases_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
unitSymbol_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 48
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.core.IdentifiedObject io_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder> ioBuilder_;
/**
*
**
* IdentifiedObject fields for this Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
* @return Whether the io field is set.
*/
public boolean hasIo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* IdentifiedObject fields for this Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
* @return The io.
*/
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject getIo() {
if (ioBuilder_ == null) {
return io_ == null ? com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_;
} else {
return ioBuilder_.getMessage();
}
}
/**
*
**
* IdentifiedObject fields for this Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public Builder setIo(com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject value) {
if (ioBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
io_ = value;
} else {
ioBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* IdentifiedObject fields for this Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public Builder setIo(
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder builderForValue) {
if (ioBuilder_ == null) {
io_ = builderForValue.build();
} else {
ioBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* IdentifiedObject fields for this Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public Builder mergeIo(com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject value) {
if (ioBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
io_ != null &&
io_ != com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance()) {
getIoBuilder().mergeFrom(value);
} else {
io_ = value;
}
} else {
ioBuilder_.mergeFrom(value);
}
if (io_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* IdentifiedObject fields for this Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public Builder clearIo() {
bitField0_ = (bitField0_ & ~0x00000001);
io_ = null;
if (ioBuilder_ != null) {
ioBuilder_.dispose();
ioBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* IdentifiedObject fields for this Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder getIoBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getIoFieldBuilder().getBuilder();
}
/**
*
**
* IdentifiedObject fields for this Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder getIoOrBuilder() {
if (ioBuilder_ != null) {
return ioBuilder_.getMessageOrBuilder();
} else {
return io_ == null ?
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_;
}
}
/**
*
**
* IdentifiedObject fields for this Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder>
getIoFieldBuilder() {
if (ioBuilder_ == null) {
ioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder>(
getIo(),
getParentForChildren(),
isClean());
io_ = null;
}
return ioBuilder_;
}
private java.lang.Object powerSystemResourceMRID_ = "";
/**
*
**
* The power system resource that contains the measurement.
*
*
* string powerSystemResourceMRID = 2;
* @return The powerSystemResourceMRID.
*/
public java.lang.String getPowerSystemResourceMRID() {
java.lang.Object ref = powerSystemResourceMRID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
powerSystemResourceMRID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The power system resource that contains the measurement.
*
*
* string powerSystemResourceMRID = 2;
* @return The bytes for powerSystemResourceMRID.
*/
public com.google.protobuf.ByteString
getPowerSystemResourceMRIDBytes() {
java.lang.Object ref = powerSystemResourceMRID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
powerSystemResourceMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The power system resource that contains the measurement.
*
*
* string powerSystemResourceMRID = 2;
* @param value The powerSystemResourceMRID to set.
* @return This builder for chaining.
*/
public Builder setPowerSystemResourceMRID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
powerSystemResourceMRID_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The power system resource that contains the measurement.
*
*
* string powerSystemResourceMRID = 2;
* @return This builder for chaining.
*/
public Builder clearPowerSystemResourceMRID() {
powerSystemResourceMRID_ = getDefaultInstance().getPowerSystemResourceMRID();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
**
* The power system resource that contains the measurement.
*
*
* string powerSystemResourceMRID = 2;
* @param value The bytes for powerSystemResourceMRID to set.
* @return This builder for chaining.
*/
public Builder setPowerSystemResourceMRIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
powerSystemResourceMRID_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object remoteSourceMRID_ = "";
/**
*
**
* The remote point taking the measurement.
*
*
* string remoteSourceMRID = 3;
* @return The remoteSourceMRID.
*/
public java.lang.String getRemoteSourceMRID() {
java.lang.Object ref = remoteSourceMRID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
remoteSourceMRID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The remote point taking the measurement.
*
*
* string remoteSourceMRID = 3;
* @return The bytes for remoteSourceMRID.
*/
public com.google.protobuf.ByteString
getRemoteSourceMRIDBytes() {
java.lang.Object ref = remoteSourceMRID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
remoteSourceMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The remote point taking the measurement.
*
*
* string remoteSourceMRID = 3;
* @param value The remoteSourceMRID to set.
* @return This builder for chaining.
*/
public Builder setRemoteSourceMRID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
remoteSourceMRID_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The remote point taking the measurement.
*
*
* string remoteSourceMRID = 3;
* @return This builder for chaining.
*/
public Builder clearRemoteSourceMRID() {
remoteSourceMRID_ = getDefaultInstance().getRemoteSourceMRID();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
**
* The remote point taking the measurement.
*
*
* string remoteSourceMRID = 3;
* @param value The bytes for remoteSourceMRID to set.
* @return This builder for chaining.
*/
public Builder setRemoteSourceMRIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
remoteSourceMRID_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object terminalMRID_ = "";
/**
*
**
* A measurement may be associated with a terminal in the network.
*
*
* string terminalMRID = 4;
* @return The terminalMRID.
*/
public java.lang.String getTerminalMRID() {
java.lang.Object ref = terminalMRID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
terminalMRID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* A measurement may be associated with a terminal in the network.
*
*
* string terminalMRID = 4;
* @return The bytes for terminalMRID.
*/
public com.google.protobuf.ByteString
getTerminalMRIDBytes() {
java.lang.Object ref = terminalMRID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
terminalMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* A measurement may be associated with a terminal in the network.
*
*
* string terminalMRID = 4;
* @param value The terminalMRID to set.
* @return This builder for chaining.
*/
public Builder setTerminalMRID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
terminalMRID_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* A measurement may be associated with a terminal in the network.
*
*
* string terminalMRID = 4;
* @return This builder for chaining.
*/
public Builder clearTerminalMRID() {
terminalMRID_ = getDefaultInstance().getTerminalMRID();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
**
* A measurement may be associated with a terminal in the network.
*
*
* string terminalMRID = 4;
* @param value The bytes for terminalMRID to set.
* @return This builder for chaining.
*/
public Builder setTerminalMRIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
terminalMRID_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private int phases_ = 0;
/**
*
**
* Indicates to which phases the measurement applies and avoids the need
* to use 'measurementType' to also encode phase information (which would explode the types).
* The phase information in Measurement, along with 'measurementType' and 'phases'
* uniquely defines a Measurement for a device, based on normal network phase.
* Their meaning will not change when the computed energizing phasing is changed due to jumpers or other reasons.
* If the attribute is missing three phases (ABC) shall be assumed.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PhaseCode phases = 5;
* @return The enum numeric value on the wire for phases.
*/
@java.lang.Override public int getPhasesValue() {
return phases_;
}
/**
*
**
* Indicates to which phases the measurement applies and avoids the need
* to use 'measurementType' to also encode phase information (which would explode the types).
* The phase information in Measurement, along with 'measurementType' and 'phases'
* uniquely defines a Measurement for a device, based on normal network phase.
* Their meaning will not change when the computed energizing phasing is changed due to jumpers or other reasons.
* If the attribute is missing three phases (ABC) shall be assumed.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PhaseCode phases = 5;
* @param value The enum numeric value on the wire for phases to set.
* @return This builder for chaining.
*/
public Builder setPhasesValue(int value) {
phases_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* Indicates to which phases the measurement applies and avoids the need
* to use 'measurementType' to also encode phase information (which would explode the types).
* The phase information in Measurement, along with 'measurementType' and 'phases'
* uniquely defines a Measurement for a device, based on normal network phase.
* Their meaning will not change when the computed energizing phasing is changed due to jumpers or other reasons.
* If the attribute is missing three phases (ABC) shall be assumed.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PhaseCode phases = 5;
* @return The phases.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.core.PhaseCode getPhases() {
com.zepben.protobuf.cim.iec61970.base.core.PhaseCode result = com.zepben.protobuf.cim.iec61970.base.core.PhaseCode.forNumber(phases_);
return result == null ? com.zepben.protobuf.cim.iec61970.base.core.PhaseCode.UNRECOGNIZED : result;
}
/**
*
**
* Indicates to which phases the measurement applies and avoids the need
* to use 'measurementType' to also encode phase information (which would explode the types).
* The phase information in Measurement, along with 'measurementType' and 'phases'
* uniquely defines a Measurement for a device, based on normal network phase.
* Their meaning will not change when the computed energizing phasing is changed due to jumpers or other reasons.
* If the attribute is missing three phases (ABC) shall be assumed.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PhaseCode phases = 5;
* @param value The phases to set.
* @return This builder for chaining.
*/
public Builder setPhases(com.zepben.protobuf.cim.iec61970.base.core.PhaseCode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
phases_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* Indicates to which phases the measurement applies and avoids the need
* to use 'measurementType' to also encode phase information (which would explode the types).
* The phase information in Measurement, along with 'measurementType' and 'phases'
* uniquely defines a Measurement for a device, based on normal network phase.
* Their meaning will not change when the computed energizing phasing is changed due to jumpers or other reasons.
* If the attribute is missing three phases (ABC) shall be assumed.
*
*
* .zepben.protobuf.cim.iec61970.base.core.PhaseCode phases = 5;
* @return This builder for chaining.
*/
public Builder clearPhases() {
bitField0_ = (bitField0_ & ~0x00000010);
phases_ = 0;
onChanged();
return this;
}
private int unitSymbol_ = 0;
/**
*
**
* Specifies the type of measurement.
* For example, this specifies if the measurement represents an indoor temperature,
* outdoor temperature, bus voltage, line flow, etc.
* When the measurementType is set to "Specialization",
* the type of Measurement is defined in more detail
* by the specialized class which inherits from Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.domain.UnitSymbol unitSymbol = 6;
* @return The enum numeric value on the wire for unitSymbol.
*/
@java.lang.Override public int getUnitSymbolValue() {
return unitSymbol_;
}
/**
*
**
* Specifies the type of measurement.
* For example, this specifies if the measurement represents an indoor temperature,
* outdoor temperature, bus voltage, line flow, etc.
* When the measurementType is set to "Specialization",
* the type of Measurement is defined in more detail
* by the specialized class which inherits from Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.domain.UnitSymbol unitSymbol = 6;
* @param value The enum numeric value on the wire for unitSymbol to set.
* @return This builder for chaining.
*/
public Builder setUnitSymbolValue(int value) {
unitSymbol_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* Specifies the type of measurement.
* For example, this specifies if the measurement represents an indoor temperature,
* outdoor temperature, bus voltage, line flow, etc.
* When the measurementType is set to "Specialization",
* the type of Measurement is defined in more detail
* by the specialized class which inherits from Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.domain.UnitSymbol unitSymbol = 6;
* @return The unitSymbol.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61970.base.domain.UnitSymbol getUnitSymbol() {
com.zepben.protobuf.cim.iec61970.base.domain.UnitSymbol result = com.zepben.protobuf.cim.iec61970.base.domain.UnitSymbol.forNumber(unitSymbol_);
return result == null ? com.zepben.protobuf.cim.iec61970.base.domain.UnitSymbol.UNRECOGNIZED : result;
}
/**
*
**
* Specifies the type of measurement.
* For example, this specifies if the measurement represents an indoor temperature,
* outdoor temperature, bus voltage, line flow, etc.
* When the measurementType is set to "Specialization",
* the type of Measurement is defined in more detail
* by the specialized class which inherits from Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.domain.UnitSymbol unitSymbol = 6;
* @param value The unitSymbol to set.
* @return This builder for chaining.
*/
public Builder setUnitSymbol(com.zepben.protobuf.cim.iec61970.base.domain.UnitSymbol value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
unitSymbol_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* Specifies the type of measurement.
* For example, this specifies if the measurement represents an indoor temperature,
* outdoor temperature, bus voltage, line flow, etc.
* When the measurementType is set to "Specialization",
* the type of Measurement is defined in more detail
* by the specialized class which inherits from Measurement.
*
*
* .zepben.protobuf.cim.iec61970.base.domain.UnitSymbol unitSymbol = 6;
* @return This builder for chaining.
*/
public Builder clearUnitSymbol() {
bitField0_ = (bitField0_ & ~0x00000020);
unitSymbol_ = 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.Measurement)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.meas.Measurement)
private static final com.zepben.protobuf.cim.iec61970.base.meas.Measurement DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.meas.Measurement();
}
public static com.zepben.protobuf.cim.iec61970.base.meas.Measurement getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Measurement 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.Measurement getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}