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

com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment 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/iec61970/base/wires/AcLineSegment.proto

package com.zepben.protobuf.cim.iec61970.base.wires;

/**
 * 
 **
 * A wire or combination of wires, with consistent electrical characteristics, building a single electrical system, used to carry alternating current
 * between points in the power system.
 * <p>
 * For symmetrical, transposed 3ph lines, it is sufficient to use  attributes of the line segment, which describe impedances and admittances for the
 * entire length of the segment.  Additionally impedances can be computed by using length and associated per length impedances.
 * <p>
 * The BaseVoltage at the two ends of AcLineSegments in a Line shall have the same BaseVoltage.nominalVoltage. However, boundary lines  may have
 * slightly different BaseVoltage.nominalVoltages and  variation is allowed. Larger voltage difference in general requires use of an equivalent branch.
 * 
* * Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.AcLineSegment} */ public final class AcLineSegment extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.wires.AcLineSegment) AcLineSegmentOrBuilder { private static final long serialVersionUID = 0L; // Use AcLineSegment.newBuilder() to construct. private AcLineSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AcLineSegment() { perLengthSequenceImpedanceMRID_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AcLineSegment(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegmentOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_AcLineSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegmentOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_AcLineSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment.class, com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment.Builder.class); } private int bitField0_; public static final int CD_FIELD_NUMBER = 1; private com.zepben.protobuf.cim.iec61970.base.wires.Conductor cd_; /** *
   **
   * ConductingEquipment fields for this AcLineSegment.
   * 
* * .zepben.protobuf.cim.iec61970.base.wires.Conductor cd = 1; * @return Whether the cd field is set. */ @java.lang.Override public boolean hasCd() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * ConductingEquipment fields for this AcLineSegment.
   * 
* * .zepben.protobuf.cim.iec61970.base.wires.Conductor cd = 1; * @return The cd. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.Conductor getCd() { return cd_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.Conductor.getDefaultInstance() : cd_; } /** *
   **
   * ConductingEquipment fields for this AcLineSegment.
   * 
* * .zepben.protobuf.cim.iec61970.base.wires.Conductor cd = 1; */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.ConductorOrBuilder getCdOrBuilder() { return cd_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.Conductor.getDefaultInstance() : cd_; } public static final int PERLENGTHSEQUENCEIMPEDANCEMRID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object perLengthSequenceImpedanceMRID_ = ""; /** *
   **
   * mRID reference to per-length impedance of this line segment.
   * 
* * string perLengthSequenceImpedanceMRID = 3; * @return The perLengthSequenceImpedanceMRID. */ @java.lang.Override public java.lang.String getPerLengthSequenceImpedanceMRID() { java.lang.Object ref = perLengthSequenceImpedanceMRID_; 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(); perLengthSequenceImpedanceMRID_ = s; return s; } } /** *
   **
   * mRID reference to per-length impedance of this line segment.
   * 
* * string perLengthSequenceImpedanceMRID = 3; * @return The bytes for perLengthSequenceImpedanceMRID. */ @java.lang.Override public com.google.protobuf.ByteString getPerLengthSequenceImpedanceMRIDBytes() { java.lang.Object ref = perLengthSequenceImpedanceMRID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); perLengthSequenceImpedanceMRID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCd()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(perLengthSequenceImpedanceMRID_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, perLengthSequenceImpedanceMRID_); } 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, getCd()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(perLengthSequenceImpedanceMRID_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, perLengthSequenceImpedanceMRID_); } 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.wires.AcLineSegment)) { return super.equals(obj); } com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment other = (com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment) obj; if (hasCd() != other.hasCd()) return false; if (hasCd()) { if (!getCd() .equals(other.getCd())) return false; } if (!getPerLengthSequenceImpedanceMRID() .equals(other.getPerLengthSequenceImpedanceMRID())) 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 (hasCd()) { hash = (37 * hash) + CD_FIELD_NUMBER; hash = (53 * hash) + getCd().hashCode(); } hash = (37 * hash) + PERLENGTHSEQUENCEIMPEDANCEMRID_FIELD_NUMBER; hash = (53 * hash) + getPerLengthSequenceImpedanceMRID().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment 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.wires.AcLineSegment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment 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.wires.AcLineSegment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment 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.wires.AcLineSegment 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.wires.AcLineSegment 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.wires.AcLineSegment 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.wires.AcLineSegment 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.wires.AcLineSegment 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.wires.AcLineSegment 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.wires.AcLineSegment 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 wire or combination of wires, with consistent electrical characteristics, building a single electrical system, used to carry alternating current
   * between points in the power system.
   * <p>
   * For symmetrical, transposed 3ph lines, it is sufficient to use  attributes of the line segment, which describe impedances and admittances for the
   * entire length of the segment.  Additionally impedances can be computed by using length and associated per length impedances.
   * <p>
   * The BaseVoltage at the two ends of AcLineSegments in a Line shall have the same BaseVoltage.nominalVoltage. However, boundary lines  may have
   * slightly different BaseVoltage.nominalVoltages and  variation is allowed. Larger voltage difference in general requires use of an equivalent branch.
   * 
* * Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.AcLineSegment} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.wires.AcLineSegment) com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegmentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegmentOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_AcLineSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegmentOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_AcLineSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment.class, com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment.Builder.class); } // Construct using com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCdFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; cd_ = null; if (cdBuilder_ != null) { cdBuilder_.dispose(); cdBuilder_ = null; } perLengthSequenceImpedanceMRID_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegmentOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_AcLineSegment_descriptor; } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment getDefaultInstanceForType() { return com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment build() { com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment buildPartial() { com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment result = new com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.cd_ = cdBuilder_ == null ? cd_ : cdBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.perLengthSequenceImpedanceMRID_ = perLengthSequenceImpedanceMRID_; } 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.wires.AcLineSegment) { return mergeFrom((com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment other) { if (other == com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment.getDefaultInstance()) return this; if (other.hasCd()) { mergeCd(other.getCd()); } if (!other.getPerLengthSequenceImpedanceMRID().isEmpty()) { perLengthSequenceImpedanceMRID_ = other.perLengthSequenceImpedanceMRID_; bitField0_ |= 0x00000002; onChanged(); } 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( getCdFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 26: { perLengthSequenceImpedanceMRID_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 26 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.wires.Conductor cd_; private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.wires.Conductor, com.zepben.protobuf.cim.iec61970.base.wires.Conductor.Builder, com.zepben.protobuf.cim.iec61970.base.wires.ConductorOrBuilder> cdBuilder_; /** *
     **
     * ConductingEquipment fields for this AcLineSegment.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.Conductor cd = 1; * @return Whether the cd field is set. */ public boolean hasCd() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * ConductingEquipment fields for this AcLineSegment.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.Conductor cd = 1; * @return The cd. */ public com.zepben.protobuf.cim.iec61970.base.wires.Conductor getCd() { if (cdBuilder_ == null) { return cd_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.Conductor.getDefaultInstance() : cd_; } else { return cdBuilder_.getMessage(); } } /** *
     **
     * ConductingEquipment fields for this AcLineSegment.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.Conductor cd = 1; */ public Builder setCd(com.zepben.protobuf.cim.iec61970.base.wires.Conductor value) { if (cdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cd_ = value; } else { cdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * ConductingEquipment fields for this AcLineSegment.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.Conductor cd = 1; */ public Builder setCd( com.zepben.protobuf.cim.iec61970.base.wires.Conductor.Builder builderForValue) { if (cdBuilder_ == null) { cd_ = builderForValue.build(); } else { cdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * ConductingEquipment fields for this AcLineSegment.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.Conductor cd = 1; */ public Builder mergeCd(com.zepben.protobuf.cim.iec61970.base.wires.Conductor value) { if (cdBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && cd_ != null && cd_ != com.zepben.protobuf.cim.iec61970.base.wires.Conductor.getDefaultInstance()) { getCdBuilder().mergeFrom(value); } else { cd_ = value; } } else { cdBuilder_.mergeFrom(value); } if (cd_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * ConductingEquipment fields for this AcLineSegment.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.Conductor cd = 1; */ public Builder clearCd() { bitField0_ = (bitField0_ & ~0x00000001); cd_ = null; if (cdBuilder_ != null) { cdBuilder_.dispose(); cdBuilder_ = null; } onChanged(); return this; } /** *
     **
     * ConductingEquipment fields for this AcLineSegment.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.Conductor cd = 1; */ public com.zepben.protobuf.cim.iec61970.base.wires.Conductor.Builder getCdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCdFieldBuilder().getBuilder(); } /** *
     **
     * ConductingEquipment fields for this AcLineSegment.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.Conductor cd = 1; */ public com.zepben.protobuf.cim.iec61970.base.wires.ConductorOrBuilder getCdOrBuilder() { if (cdBuilder_ != null) { return cdBuilder_.getMessageOrBuilder(); } else { return cd_ == null ? com.zepben.protobuf.cim.iec61970.base.wires.Conductor.getDefaultInstance() : cd_; } } /** *
     **
     * ConductingEquipment fields for this AcLineSegment.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.Conductor cd = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.wires.Conductor, com.zepben.protobuf.cim.iec61970.base.wires.Conductor.Builder, com.zepben.protobuf.cim.iec61970.base.wires.ConductorOrBuilder> getCdFieldBuilder() { if (cdBuilder_ == null) { cdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.wires.Conductor, com.zepben.protobuf.cim.iec61970.base.wires.Conductor.Builder, com.zepben.protobuf.cim.iec61970.base.wires.ConductorOrBuilder>( getCd(), getParentForChildren(), isClean()); cd_ = null; } return cdBuilder_; } private java.lang.Object perLengthSequenceImpedanceMRID_ = ""; /** *
     **
     * mRID reference to per-length impedance of this line segment.
     * 
* * string perLengthSequenceImpedanceMRID = 3; * @return The perLengthSequenceImpedanceMRID. */ public java.lang.String getPerLengthSequenceImpedanceMRID() { java.lang.Object ref = perLengthSequenceImpedanceMRID_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); perLengthSequenceImpedanceMRID_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * mRID reference to per-length impedance of this line segment.
     * 
* * string perLengthSequenceImpedanceMRID = 3; * @return The bytes for perLengthSequenceImpedanceMRID. */ public com.google.protobuf.ByteString getPerLengthSequenceImpedanceMRIDBytes() { java.lang.Object ref = perLengthSequenceImpedanceMRID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); perLengthSequenceImpedanceMRID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * mRID reference to per-length impedance of this line segment.
     * 
* * string perLengthSequenceImpedanceMRID = 3; * @param value The perLengthSequenceImpedanceMRID to set. * @return This builder for chaining. */ public Builder setPerLengthSequenceImpedanceMRID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } perLengthSequenceImpedanceMRID_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * mRID reference to per-length impedance of this line segment.
     * 
* * string perLengthSequenceImpedanceMRID = 3; * @return This builder for chaining. */ public Builder clearPerLengthSequenceImpedanceMRID() { perLengthSequenceImpedanceMRID_ = getDefaultInstance().getPerLengthSequenceImpedanceMRID(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     **
     * mRID reference to per-length impedance of this line segment.
     * 
* * string perLengthSequenceImpedanceMRID = 3; * @param value The bytes for perLengthSequenceImpedanceMRID to set. * @return This builder for chaining. */ public Builder setPerLengthSequenceImpedanceMRIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); perLengthSequenceImpedanceMRID_ = value; bitField0_ |= 0x00000002; 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.wires.AcLineSegment) } // @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.wires.AcLineSegment) private static final com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment(); } public static com.zepben.protobuf.cim.iec61970.base.wires.AcLineSegment getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AcLineSegment 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.wires.AcLineSegment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy