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

com.zepben.protobuf.cim.iec61968.metering.UsagePoint Maven / Gradle / Ivy

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

package com.zepben.protobuf.cim.iec61968.metering;

/**
 * 
 **
 * Logical or physical point in the network to which readings or events may be attributed. Used at the place where a physical
 * or virtual meter may be located; however, it is not required that a meter be present.
 * 
* * Protobuf type {@code zepben.protobuf.cim.iec61968.metering.UsagePoint} */ public final class UsagePoint extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61968.metering.UsagePoint) UsagePointOrBuilder { private static final long serialVersionUID = 0L; // Use UsagePoint.newBuilder() to construct. private UsagePoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UsagePoint() { usagePointLocationMRID_ = ""; equipmentMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); endDeviceMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); connectionCategory_ = ""; phaseCode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UsagePoint(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61968.metering.UsagePointOuterClass.internal_static_zepben_protobuf_cim_iec61968_metering_UsagePoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61968.metering.UsagePointOuterClass.internal_static_zepben_protobuf_cim_iec61968_metering_UsagePoint_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61968.metering.UsagePoint.class, com.zepben.protobuf.cim.iec61968.metering.UsagePoint.Builder.class); } private int bitField0_; public static final int IO_FIELD_NUMBER = 1; private com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io_; /** *
   **
   * The IdentifiedObject fields for this UsagePoint
   * 
* * .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); } /** *
   **
   * The IdentifiedObject fields for this UsagePoint
   * 
* * .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_; } /** *
   **
   * The IdentifiedObject fields for this UsagePoint
   * 
* * .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 USAGEPOINTLOCATIONMRID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object usagePointLocationMRID_ = ""; /** *
   **
   * Service location where the service delivered by this usage point is consumed.
   * 
* * string usagePointLocationMRID = 2; * @return The usagePointLocationMRID. */ @java.lang.Override public java.lang.String getUsagePointLocationMRID() { java.lang.Object ref = usagePointLocationMRID_; 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(); usagePointLocationMRID_ = s; return s; } } /** *
   **
   * Service location where the service delivered by this usage point is consumed.
   * 
* * string usagePointLocationMRID = 2; * @return The bytes for usagePointLocationMRID. */ @java.lang.Override public com.google.protobuf.ByteString getUsagePointLocationMRIDBytes() { java.lang.Object ref = usagePointLocationMRID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); usagePointLocationMRID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int EQUIPMENTMRIDS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList equipmentMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   **
   * All equipment connecting this usage point to the electrical grid.
   * 
* * repeated string equipmentMRIDs = 3; * @return A list containing the equipmentMRIDs. */ public com.google.protobuf.ProtocolStringList getEquipmentMRIDsList() { return equipmentMRIDs_; } /** *
   **
   * All equipment connecting this usage point to the electrical grid.
   * 
* * repeated string equipmentMRIDs = 3; * @return The count of equipmentMRIDs. */ public int getEquipmentMRIDsCount() { return equipmentMRIDs_.size(); } /** *
   **
   * All equipment connecting this usage point to the electrical grid.
   * 
* * repeated string equipmentMRIDs = 3; * @param index The index of the element to return. * @return The equipmentMRIDs at the given index. */ public java.lang.String getEquipmentMRIDs(int index) { return equipmentMRIDs_.get(index); } /** *
   **
   * All equipment connecting this usage point to the electrical grid.
   * 
* * repeated string equipmentMRIDs = 3; * @param index The index of the value to return. * @return The bytes of the equipmentMRIDs at the given index. */ public com.google.protobuf.ByteString getEquipmentMRIDsBytes(int index) { return equipmentMRIDs_.getByteString(index); } public static final int ENDDEVICEMRIDS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList endDeviceMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   **
   * All end devices at this usage point.
   * 
* * repeated string endDeviceMRIDs = 4; * @return A list containing the endDeviceMRIDs. */ public com.google.protobuf.ProtocolStringList getEndDeviceMRIDsList() { return endDeviceMRIDs_; } /** *
   **
   * All end devices at this usage point.
   * 
* * repeated string endDeviceMRIDs = 4; * @return The count of endDeviceMRIDs. */ public int getEndDeviceMRIDsCount() { return endDeviceMRIDs_.size(); } /** *
   **
   * All end devices at this usage point.
   * 
* * repeated string endDeviceMRIDs = 4; * @param index The index of the element to return. * @return The endDeviceMRIDs at the given index. */ public java.lang.String getEndDeviceMRIDs(int index) { return endDeviceMRIDs_.get(index); } /** *
   **
   * All end devices at this usage point.
   * 
* * repeated string endDeviceMRIDs = 4; * @param index The index of the value to return. * @return The bytes of the endDeviceMRIDs at the given index. */ public com.google.protobuf.ByteString getEndDeviceMRIDsBytes(int index) { return endDeviceMRIDs_.getByteString(index); } public static final int ISVIRTUAL_FIELD_NUMBER = 5; private boolean isVirtual_ = false; /** *
   **
   * If true, this usage point is virtual, i.e., no physical location exists in the network where a meter could be located to
   * collect the meter readings. For example, one may define a virtual usage point to serve as an aggregation of usage for all
   * of a company's premises distributed widely across the distribution territory. Otherwise, the usage point is physical,
   * i.e., there is a logical point in the network where a meter could be located to collect meter readings.
   * 
* * bool isVirtual = 5; * @return The isVirtual. */ @java.lang.Override public boolean getIsVirtual() { return isVirtual_; } public static final int CONNECTIONCATEGORY_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object connectionCategory_ = ""; /** *
   **
   * A code used to specify the connection category, e.g., low voltage or low pressure, where the usage point is defined.
   * 
* * string connectionCategory = 6; * @return The connectionCategory. */ @java.lang.Override public java.lang.String getConnectionCategory() { java.lang.Object ref = connectionCategory_; 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(); connectionCategory_ = s; return s; } } /** *
   **
   * A code used to specify the connection category, e.g., low voltage or low pressure, where the usage point is defined.
   * 
* * string connectionCategory = 6; * @return The bytes for connectionCategory. */ @java.lang.Override public com.google.protobuf.ByteString getConnectionCategoryBytes() { java.lang.Object ref = connectionCategory_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); connectionCategory_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RATEDPOWER_FIELD_NUMBER = 7; private int ratedPower_ = 0; /** *
   **
   * Active power that this usage point is configured to deliver in watts.
   * 
* * int32 ratedPower = 7; * @return The ratedPower. */ @java.lang.Override public int getRatedPower() { return ratedPower_; } public static final int APPROVEDINVERTERCAPACITY_FIELD_NUMBER = 8; private int approvedInverterCapacity_ = 0; /** *
   **
   * The approved inverter capacity at this UsagePoint in volt-amperes.
   * 
* * int32 approvedInverterCapacity = 8; * @return The approvedInverterCapacity. */ @java.lang.Override public int getApprovedInverterCapacity() { return approvedInverterCapacity_; } public static final int PHASECODE_FIELD_NUMBER = 9; private int phaseCode_ = 0; /** *
   **
   * Phase code. Number of wires and specific nominal phases can be deduced from enumeration literal values. For example, ABCN is three-phase, four-wire,
   * s12n (splitSecondary12N) is single-phase, three-wire, and s1n and s2n are single-phase, two-wire.
   * 
* * .zepben.protobuf.cim.iec61970.base.core.PhaseCode phaseCode = 9; * @return The enum numeric value on the wire for phaseCode. */ @java.lang.Override public int getPhaseCodeValue() { return phaseCode_; } /** *
   **
   * Phase code. Number of wires and specific nominal phases can be deduced from enumeration literal values. For example, ABCN is three-phase, four-wire,
   * s12n (splitSecondary12N) is single-phase, three-wire, and s1n and s2n are single-phase, two-wire.
   * 
* * .zepben.protobuf.cim.iec61970.base.core.PhaseCode phaseCode = 9; * @return The phaseCode. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.core.PhaseCode getPhaseCode() { com.zepben.protobuf.cim.iec61970.base.core.PhaseCode result = com.zepben.protobuf.cim.iec61970.base.core.PhaseCode.forNumber(phaseCode_); return result == null ? com.zepben.protobuf.cim.iec61970.base.core.PhaseCode.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(usagePointLocationMRID_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, usagePointLocationMRID_); } for (int i = 0; i < equipmentMRIDs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, equipmentMRIDs_.getRaw(i)); } for (int i = 0; i < endDeviceMRIDs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, endDeviceMRIDs_.getRaw(i)); } if (isVirtual_ != false) { output.writeBool(5, isVirtual_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionCategory_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, connectionCategory_); } if (ratedPower_ != 0) { output.writeInt32(7, ratedPower_); } if (approvedInverterCapacity_ != 0) { output.writeInt32(8, approvedInverterCapacity_); } if (phaseCode_ != com.zepben.protobuf.cim.iec61970.base.core.PhaseCode.NONE.getNumber()) { output.writeEnum(9, phaseCode_); } 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(usagePointLocationMRID_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, usagePointLocationMRID_); } { int dataSize = 0; for (int i = 0; i < equipmentMRIDs_.size(); i++) { dataSize += computeStringSizeNoTag(equipmentMRIDs_.getRaw(i)); } size += dataSize; size += 1 * getEquipmentMRIDsList().size(); } { int dataSize = 0; for (int i = 0; i < endDeviceMRIDs_.size(); i++) { dataSize += computeStringSizeNoTag(endDeviceMRIDs_.getRaw(i)); } size += dataSize; size += 1 * getEndDeviceMRIDsList().size(); } if (isVirtual_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, isVirtual_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionCategory_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, connectionCategory_); } if (ratedPower_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, ratedPower_); } if (approvedInverterCapacity_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, approvedInverterCapacity_); } if (phaseCode_ != com.zepben.protobuf.cim.iec61970.base.core.PhaseCode.NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, phaseCode_); } 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.iec61968.metering.UsagePoint)) { return super.equals(obj); } com.zepben.protobuf.cim.iec61968.metering.UsagePoint other = (com.zepben.protobuf.cim.iec61968.metering.UsagePoint) obj; if (hasIo() != other.hasIo()) return false; if (hasIo()) { if (!getIo() .equals(other.getIo())) return false; } if (!getUsagePointLocationMRID() .equals(other.getUsagePointLocationMRID())) return false; if (!getEquipmentMRIDsList() .equals(other.getEquipmentMRIDsList())) return false; if (!getEndDeviceMRIDsList() .equals(other.getEndDeviceMRIDsList())) return false; if (getIsVirtual() != other.getIsVirtual()) return false; if (!getConnectionCategory() .equals(other.getConnectionCategory())) return false; if (getRatedPower() != other.getRatedPower()) return false; if (getApprovedInverterCapacity() != other.getApprovedInverterCapacity()) return false; if (phaseCode_ != other.phaseCode_) 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) + USAGEPOINTLOCATIONMRID_FIELD_NUMBER; hash = (53 * hash) + getUsagePointLocationMRID().hashCode(); if (getEquipmentMRIDsCount() > 0) { hash = (37 * hash) + EQUIPMENTMRIDS_FIELD_NUMBER; hash = (53 * hash) + getEquipmentMRIDsList().hashCode(); } if (getEndDeviceMRIDsCount() > 0) { hash = (37 * hash) + ENDDEVICEMRIDS_FIELD_NUMBER; hash = (53 * hash) + getEndDeviceMRIDsList().hashCode(); } hash = (37 * hash) + ISVIRTUAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsVirtual()); hash = (37 * hash) + CONNECTIONCATEGORY_FIELD_NUMBER; hash = (53 * hash) + getConnectionCategory().hashCode(); hash = (37 * hash) + RATEDPOWER_FIELD_NUMBER; hash = (53 * hash) + getRatedPower(); hash = (37 * hash) + APPROVEDINVERTERCAPACITY_FIELD_NUMBER; hash = (53 * hash) + getApprovedInverterCapacity(); hash = (37 * hash) + PHASECODE_FIELD_NUMBER; hash = (53 * hash) + phaseCode_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.cim.iec61968.metering.UsagePoint parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.metering.UsagePoint 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.iec61968.metering.UsagePoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.metering.UsagePoint 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.iec61968.metering.UsagePoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.metering.UsagePoint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.zepben.protobuf.cim.iec61968.metering.UsagePoint parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.cim.iec61968.metering.UsagePoint 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.iec61968.metering.UsagePoint parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.zepben.protobuf.cim.iec61968.metering.UsagePoint 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.iec61968.metering.UsagePoint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.cim.iec61968.metering.UsagePoint 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.iec61968.metering.UsagePoint 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; } /** *
   **
   * Logical or physical point in the network to which readings or events may be attributed. Used at the place where a physical
   * or virtual meter may be located; however, it is not required that a meter be present.
   * 
* * Protobuf type {@code zepben.protobuf.cim.iec61968.metering.UsagePoint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61968.metering.UsagePoint) com.zepben.protobuf.cim.iec61968.metering.UsagePointOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61968.metering.UsagePointOuterClass.internal_static_zepben_protobuf_cim_iec61968_metering_UsagePoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61968.metering.UsagePointOuterClass.internal_static_zepben_protobuf_cim_iec61968_metering_UsagePoint_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61968.metering.UsagePoint.class, com.zepben.protobuf.cim.iec61968.metering.UsagePoint.Builder.class); } // Construct using com.zepben.protobuf.cim.iec61968.metering.UsagePoint.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; } usagePointLocationMRID_ = ""; equipmentMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); endDeviceMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); isVirtual_ = false; connectionCategory_ = ""; ratedPower_ = 0; approvedInverterCapacity_ = 0; phaseCode_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.zepben.protobuf.cim.iec61968.metering.UsagePointOuterClass.internal_static_zepben_protobuf_cim_iec61968_metering_UsagePoint_descriptor; } @java.lang.Override public com.zepben.protobuf.cim.iec61968.metering.UsagePoint getDefaultInstanceForType() { return com.zepben.protobuf.cim.iec61968.metering.UsagePoint.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.cim.iec61968.metering.UsagePoint build() { com.zepben.protobuf.cim.iec61968.metering.UsagePoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.cim.iec61968.metering.UsagePoint buildPartial() { com.zepben.protobuf.cim.iec61968.metering.UsagePoint result = new com.zepben.protobuf.cim.iec61968.metering.UsagePoint(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.zepben.protobuf.cim.iec61968.metering.UsagePoint 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.usagePointLocationMRID_ = usagePointLocationMRID_; } if (((from_bitField0_ & 0x00000004) != 0)) { equipmentMRIDs_.makeImmutable(); result.equipmentMRIDs_ = equipmentMRIDs_; } if (((from_bitField0_ & 0x00000008) != 0)) { endDeviceMRIDs_.makeImmutable(); result.endDeviceMRIDs_ = endDeviceMRIDs_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.isVirtual_ = isVirtual_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.connectionCategory_ = connectionCategory_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.ratedPower_ = ratedPower_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.approvedInverterCapacity_ = approvedInverterCapacity_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.phaseCode_ = phaseCode_; } 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.iec61968.metering.UsagePoint) { return mergeFrom((com.zepben.protobuf.cim.iec61968.metering.UsagePoint)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.cim.iec61968.metering.UsagePoint other) { if (other == com.zepben.protobuf.cim.iec61968.metering.UsagePoint.getDefaultInstance()) return this; if (other.hasIo()) { mergeIo(other.getIo()); } if (!other.getUsagePointLocationMRID().isEmpty()) { usagePointLocationMRID_ = other.usagePointLocationMRID_; bitField0_ |= 0x00000002; onChanged(); } if (!other.equipmentMRIDs_.isEmpty()) { if (equipmentMRIDs_.isEmpty()) { equipmentMRIDs_ = other.equipmentMRIDs_; bitField0_ |= 0x00000004; } else { ensureEquipmentMRIDsIsMutable(); equipmentMRIDs_.addAll(other.equipmentMRIDs_); } onChanged(); } if (!other.endDeviceMRIDs_.isEmpty()) { if (endDeviceMRIDs_.isEmpty()) { endDeviceMRIDs_ = other.endDeviceMRIDs_; bitField0_ |= 0x00000008; } else { ensureEndDeviceMRIDsIsMutable(); endDeviceMRIDs_.addAll(other.endDeviceMRIDs_); } onChanged(); } if (other.getIsVirtual() != false) { setIsVirtual(other.getIsVirtual()); } if (!other.getConnectionCategory().isEmpty()) { connectionCategory_ = other.connectionCategory_; bitField0_ |= 0x00000020; onChanged(); } if (other.getRatedPower() != 0) { setRatedPower(other.getRatedPower()); } if (other.getApprovedInverterCapacity() != 0) { setApprovedInverterCapacity(other.getApprovedInverterCapacity()); } if (other.phaseCode_ != 0) { setPhaseCodeValue(other.getPhaseCodeValue()); } 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: { usagePointLocationMRID_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureEquipmentMRIDsIsMutable(); equipmentMRIDs_.add(s); break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureEndDeviceMRIDsIsMutable(); endDeviceMRIDs_.add(s); break; } // case 34 case 40: { isVirtual_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { connectionCategory_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 56: { ratedPower_ = input.readInt32(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { approvedInverterCapacity_ = input.readInt32(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { phaseCode_ = input.readEnum(); bitField0_ |= 0x00000100; break; } // case 72 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_; /** *
     **
     * The IdentifiedObject fields for this UsagePoint
     * 
* * .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1; * @return Whether the io field is set. */ public boolean hasIo() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * The IdentifiedObject fields for this UsagePoint
     * 
* * .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(); } } /** *
     **
     * The IdentifiedObject fields for this UsagePoint
     * 
* * .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; } /** *
     **
     * The IdentifiedObject fields for this UsagePoint
     * 
* * .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; } /** *
     **
     * The IdentifiedObject fields for this UsagePoint
     * 
* * .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; } /** *
     **
     * The IdentifiedObject fields for this UsagePoint
     * 
* * .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; } /** *
     **
     * The IdentifiedObject fields for this UsagePoint
     * 
* * .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(); } /** *
     **
     * The IdentifiedObject fields for this UsagePoint
     * 
* * .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_; } } /** *
     **
     * The IdentifiedObject fields for this UsagePoint
     * 
* * .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 usagePointLocationMRID_ = ""; /** *
     **
     * Service location where the service delivered by this usage point is consumed.
     * 
* * string usagePointLocationMRID = 2; * @return The usagePointLocationMRID. */ public java.lang.String getUsagePointLocationMRID() { java.lang.Object ref = usagePointLocationMRID_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); usagePointLocationMRID_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * Service location where the service delivered by this usage point is consumed.
     * 
* * string usagePointLocationMRID = 2; * @return The bytes for usagePointLocationMRID. */ public com.google.protobuf.ByteString getUsagePointLocationMRIDBytes() { java.lang.Object ref = usagePointLocationMRID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); usagePointLocationMRID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * Service location where the service delivered by this usage point is consumed.
     * 
* * string usagePointLocationMRID = 2; * @param value The usagePointLocationMRID to set. * @return This builder for chaining. */ public Builder setUsagePointLocationMRID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } usagePointLocationMRID_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * Service location where the service delivered by this usage point is consumed.
     * 
* * string usagePointLocationMRID = 2; * @return This builder for chaining. */ public Builder clearUsagePointLocationMRID() { usagePointLocationMRID_ = getDefaultInstance().getUsagePointLocationMRID(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     **
     * Service location where the service delivered by this usage point is consumed.
     * 
* * string usagePointLocationMRID = 2; * @param value The bytes for usagePointLocationMRID to set. * @return This builder for chaining. */ public Builder setUsagePointLocationMRIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); usagePointLocationMRID_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList equipmentMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureEquipmentMRIDsIsMutable() { if (!equipmentMRIDs_.isModifiable()) { equipmentMRIDs_ = new com.google.protobuf.LazyStringArrayList(equipmentMRIDs_); } bitField0_ |= 0x00000004; } /** *
     **
     * All equipment connecting this usage point to the electrical grid.
     * 
* * repeated string equipmentMRIDs = 3; * @return A list containing the equipmentMRIDs. */ public com.google.protobuf.ProtocolStringList getEquipmentMRIDsList() { equipmentMRIDs_.makeImmutable(); return equipmentMRIDs_; } /** *
     **
     * All equipment connecting this usage point to the electrical grid.
     * 
* * repeated string equipmentMRIDs = 3; * @return The count of equipmentMRIDs. */ public int getEquipmentMRIDsCount() { return equipmentMRIDs_.size(); } /** *
     **
     * All equipment connecting this usage point to the electrical grid.
     * 
* * repeated string equipmentMRIDs = 3; * @param index The index of the element to return. * @return The equipmentMRIDs at the given index. */ public java.lang.String getEquipmentMRIDs(int index) { return equipmentMRIDs_.get(index); } /** *
     **
     * All equipment connecting this usage point to the electrical grid.
     * 
* * repeated string equipmentMRIDs = 3; * @param index The index of the value to return. * @return The bytes of the equipmentMRIDs at the given index. */ public com.google.protobuf.ByteString getEquipmentMRIDsBytes(int index) { return equipmentMRIDs_.getByteString(index); } /** *
     **
     * All equipment connecting this usage point to the electrical grid.
     * 
* * repeated string equipmentMRIDs = 3; * @param index The index to set the value at. * @param value The equipmentMRIDs to set. * @return This builder for chaining. */ public Builder setEquipmentMRIDs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEquipmentMRIDsIsMutable(); equipmentMRIDs_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * All equipment connecting this usage point to the electrical grid.
     * 
* * repeated string equipmentMRIDs = 3; * @param value The equipmentMRIDs to add. * @return This builder for chaining. */ public Builder addEquipmentMRIDs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEquipmentMRIDsIsMutable(); equipmentMRIDs_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * All equipment connecting this usage point to the electrical grid.
     * 
* * repeated string equipmentMRIDs = 3; * @param values The equipmentMRIDs to add. * @return This builder for chaining. */ public Builder addAllEquipmentMRIDs( java.lang.Iterable values) { ensureEquipmentMRIDsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, equipmentMRIDs_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * All equipment connecting this usage point to the electrical grid.
     * 
* * repeated string equipmentMRIDs = 3; * @return This builder for chaining. */ public Builder clearEquipmentMRIDs() { equipmentMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** *
     **
     * All equipment connecting this usage point to the electrical grid.
     * 
* * repeated string equipmentMRIDs = 3; * @param value The bytes of the equipmentMRIDs to add. * @return This builder for chaining. */ public Builder addEquipmentMRIDsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEquipmentMRIDsIsMutable(); equipmentMRIDs_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList endDeviceMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureEndDeviceMRIDsIsMutable() { if (!endDeviceMRIDs_.isModifiable()) { endDeviceMRIDs_ = new com.google.protobuf.LazyStringArrayList(endDeviceMRIDs_); } bitField0_ |= 0x00000008; } /** *
     **
     * All end devices at this usage point.
     * 
* * repeated string endDeviceMRIDs = 4; * @return A list containing the endDeviceMRIDs. */ public com.google.protobuf.ProtocolStringList getEndDeviceMRIDsList() { endDeviceMRIDs_.makeImmutable(); return endDeviceMRIDs_; } /** *
     **
     * All end devices at this usage point.
     * 
* * repeated string endDeviceMRIDs = 4; * @return The count of endDeviceMRIDs. */ public int getEndDeviceMRIDsCount() { return endDeviceMRIDs_.size(); } /** *
     **
     * All end devices at this usage point.
     * 
* * repeated string endDeviceMRIDs = 4; * @param index The index of the element to return. * @return The endDeviceMRIDs at the given index. */ public java.lang.String getEndDeviceMRIDs(int index) { return endDeviceMRIDs_.get(index); } /** *
     **
     * All end devices at this usage point.
     * 
* * repeated string endDeviceMRIDs = 4; * @param index The index of the value to return. * @return The bytes of the endDeviceMRIDs at the given index. */ public com.google.protobuf.ByteString getEndDeviceMRIDsBytes(int index) { return endDeviceMRIDs_.getByteString(index); } /** *
     **
     * All end devices at this usage point.
     * 
* * repeated string endDeviceMRIDs = 4; * @param index The index to set the value at. * @param value The endDeviceMRIDs to set. * @return This builder for chaining. */ public Builder setEndDeviceMRIDs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEndDeviceMRIDsIsMutable(); endDeviceMRIDs_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * All end devices at this usage point.
     * 
* * repeated string endDeviceMRIDs = 4; * @param value The endDeviceMRIDs to add. * @return This builder for chaining. */ public Builder addEndDeviceMRIDs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEndDeviceMRIDsIsMutable(); endDeviceMRIDs_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * All end devices at this usage point.
     * 
* * repeated string endDeviceMRIDs = 4; * @param values The endDeviceMRIDs to add. * @return This builder for chaining. */ public Builder addAllEndDeviceMRIDs( java.lang.Iterable values) { ensureEndDeviceMRIDsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, endDeviceMRIDs_); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * All end devices at this usage point.
     * 
* * repeated string endDeviceMRIDs = 4; * @return This builder for chaining. */ public Builder clearEndDeviceMRIDs() { endDeviceMRIDs_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** *
     **
     * All end devices at this usage point.
     * 
* * repeated string endDeviceMRIDs = 4; * @param value The bytes of the endDeviceMRIDs to add. * @return This builder for chaining. */ public Builder addEndDeviceMRIDsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEndDeviceMRIDsIsMutable(); endDeviceMRIDs_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } private boolean isVirtual_ ; /** *
     **
     * If true, this usage point is virtual, i.e., no physical location exists in the network where a meter could be located to
     * collect the meter readings. For example, one may define a virtual usage point to serve as an aggregation of usage for all
     * of a company's premises distributed widely across the distribution territory. Otherwise, the usage point is physical,
     * i.e., there is a logical point in the network where a meter could be located to collect meter readings.
     * 
* * bool isVirtual = 5; * @return The isVirtual. */ @java.lang.Override public boolean getIsVirtual() { return isVirtual_; } /** *
     **
     * If true, this usage point is virtual, i.e., no physical location exists in the network where a meter could be located to
     * collect the meter readings. For example, one may define a virtual usage point to serve as an aggregation of usage for all
     * of a company's premises distributed widely across the distribution territory. Otherwise, the usage point is physical,
     * i.e., there is a logical point in the network where a meter could be located to collect meter readings.
     * 
* * bool isVirtual = 5; * @param value The isVirtual to set. * @return This builder for chaining. */ public Builder setIsVirtual(boolean value) { isVirtual_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     **
     * If true, this usage point is virtual, i.e., no physical location exists in the network where a meter could be located to
     * collect the meter readings. For example, one may define a virtual usage point to serve as an aggregation of usage for all
     * of a company's premises distributed widely across the distribution territory. Otherwise, the usage point is physical,
     * i.e., there is a logical point in the network where a meter could be located to collect meter readings.
     * 
* * bool isVirtual = 5; * @return This builder for chaining. */ public Builder clearIsVirtual() { bitField0_ = (bitField0_ & ~0x00000010); isVirtual_ = false; onChanged(); return this; } private java.lang.Object connectionCategory_ = ""; /** *
     **
     * A code used to specify the connection category, e.g., low voltage or low pressure, where the usage point is defined.
     * 
* * string connectionCategory = 6; * @return The connectionCategory. */ public java.lang.String getConnectionCategory() { java.lang.Object ref = connectionCategory_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionCategory_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * A code used to specify the connection category, e.g., low voltage or low pressure, where the usage point is defined.
     * 
* * string connectionCategory = 6; * @return The bytes for connectionCategory. */ public com.google.protobuf.ByteString getConnectionCategoryBytes() { java.lang.Object ref = connectionCategory_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); connectionCategory_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * A code used to specify the connection category, e.g., low voltage or low pressure, where the usage point is defined.
     * 
* * string connectionCategory = 6; * @param value The connectionCategory to set. * @return This builder for chaining. */ public Builder setConnectionCategory( java.lang.String value) { if (value == null) { throw new NullPointerException(); } connectionCategory_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     **
     * A code used to specify the connection category, e.g., low voltage or low pressure, where the usage point is defined.
     * 
* * string connectionCategory = 6; * @return This builder for chaining. */ public Builder clearConnectionCategory() { connectionCategory_ = getDefaultInstance().getConnectionCategory(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     **
     * A code used to specify the connection category, e.g., low voltage or low pressure, where the usage point is defined.
     * 
* * string connectionCategory = 6; * @param value The bytes for connectionCategory to set. * @return This builder for chaining. */ public Builder setConnectionCategoryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); connectionCategory_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private int ratedPower_ ; /** *
     **
     * Active power that this usage point is configured to deliver in watts.
     * 
* * int32 ratedPower = 7; * @return The ratedPower. */ @java.lang.Override public int getRatedPower() { return ratedPower_; } /** *
     **
     * Active power that this usage point is configured to deliver in watts.
     * 
* * int32 ratedPower = 7; * @param value The ratedPower to set. * @return This builder for chaining. */ public Builder setRatedPower(int value) { ratedPower_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     **
     * Active power that this usage point is configured to deliver in watts.
     * 
* * int32 ratedPower = 7; * @return This builder for chaining. */ public Builder clearRatedPower() { bitField0_ = (bitField0_ & ~0x00000040); ratedPower_ = 0; onChanged(); return this; } private int approvedInverterCapacity_ ; /** *
     **
     * The approved inverter capacity at this UsagePoint in volt-amperes.
     * 
* * int32 approvedInverterCapacity = 8; * @return The approvedInverterCapacity. */ @java.lang.Override public int getApprovedInverterCapacity() { return approvedInverterCapacity_; } /** *
     **
     * The approved inverter capacity at this UsagePoint in volt-amperes.
     * 
* * int32 approvedInverterCapacity = 8; * @param value The approvedInverterCapacity to set. * @return This builder for chaining. */ public Builder setApprovedInverterCapacity(int value) { approvedInverterCapacity_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     **
     * The approved inverter capacity at this UsagePoint in volt-amperes.
     * 
* * int32 approvedInverterCapacity = 8; * @return This builder for chaining. */ public Builder clearApprovedInverterCapacity() { bitField0_ = (bitField0_ & ~0x00000080); approvedInverterCapacity_ = 0; onChanged(); return this; } private int phaseCode_ = 0; /** *
     **
     * Phase code. Number of wires and specific nominal phases can be deduced from enumeration literal values. For example, ABCN is three-phase, four-wire,
     * s12n (splitSecondary12N) is single-phase, three-wire, and s1n and s2n are single-phase, two-wire.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PhaseCode phaseCode = 9; * @return The enum numeric value on the wire for phaseCode. */ @java.lang.Override public int getPhaseCodeValue() { return phaseCode_; } /** *
     **
     * Phase code. Number of wires and specific nominal phases can be deduced from enumeration literal values. For example, ABCN is three-phase, four-wire,
     * s12n (splitSecondary12N) is single-phase, three-wire, and s1n and s2n are single-phase, two-wire.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PhaseCode phaseCode = 9; * @param value The enum numeric value on the wire for phaseCode to set. * @return This builder for chaining. */ public Builder setPhaseCodeValue(int value) { phaseCode_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     **
     * Phase code. Number of wires and specific nominal phases can be deduced from enumeration literal values. For example, ABCN is three-phase, four-wire,
     * s12n (splitSecondary12N) is single-phase, three-wire, and s1n and s2n are single-phase, two-wire.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PhaseCode phaseCode = 9; * @return The phaseCode. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.core.PhaseCode getPhaseCode() { com.zepben.protobuf.cim.iec61970.base.core.PhaseCode result = com.zepben.protobuf.cim.iec61970.base.core.PhaseCode.forNumber(phaseCode_); return result == null ? com.zepben.protobuf.cim.iec61970.base.core.PhaseCode.UNRECOGNIZED : result; } /** *
     **
     * Phase code. Number of wires and specific nominal phases can be deduced from enumeration literal values. For example, ABCN is three-phase, four-wire,
     * s12n (splitSecondary12N) is single-phase, three-wire, and s1n and s2n are single-phase, two-wire.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PhaseCode phaseCode = 9; * @param value The phaseCode to set. * @return This builder for chaining. */ public Builder setPhaseCode(com.zepben.protobuf.cim.iec61970.base.core.PhaseCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; phaseCode_ = value.getNumber(); onChanged(); return this; } /** *
     **
     * Phase code. Number of wires and specific nominal phases can be deduced from enumeration literal values. For example, ABCN is three-phase, four-wire,
     * s12n (splitSecondary12N) is single-phase, three-wire, and s1n and s2n are single-phase, two-wire.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PhaseCode phaseCode = 9; * @return This builder for chaining. */ public Builder clearPhaseCode() { bitField0_ = (bitField0_ & ~0x00000100); phaseCode_ = 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.iec61968.metering.UsagePoint) } // @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61968.metering.UsagePoint) private static final com.zepben.protobuf.cim.iec61968.metering.UsagePoint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61968.metering.UsagePoint(); } public static com.zepben.protobuf.cim.iec61968.metering.UsagePoint getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UsagePoint 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.iec61968.metering.UsagePoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy