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

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

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

/**
 * 
 **
 * Represents the single phase information of an unbalanced energy source.
 * 
* * Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase} */ public final class EnergySourcePhase extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase) EnergySourcePhaseOrBuilder { private static final long serialVersionUID = 0L; // Use EnergySourcePhase.newBuilder() to construct. private EnergySourcePhase(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnergySourcePhase() { energySourceMRID_ = ""; phase_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EnergySourcePhase(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhaseOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_EnergySourcePhase_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhaseOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_EnergySourcePhase_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase.class, com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase.Builder.class); } private int bitField0_; public static final int PSR_FIELD_NUMBER = 1; private com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr_; /** *
   **
   * PowerSystemResource fields for this EnergySourcePhase.
   * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; * @return Whether the psr field is set. */ @java.lang.Override public boolean hasPsr() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * PowerSystemResource fields for this EnergySourcePhase.
   * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; * @return The psr. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource getPsr() { return psr_ == null ? com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.getDefaultInstance() : psr_; } /** *
   **
   * PowerSystemResource fields for this EnergySourcePhase.
   * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResourceOrBuilder getPsrOrBuilder() { return psr_ == null ? com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.getDefaultInstance() : psr_; } public static final int ENERGYSOURCEMRID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object energySourceMRID_ = ""; /** *
   **
   * The energy source to which the phase belongs.
   * 
* * string energySourceMRID = 2; * @return The energySourceMRID. */ @java.lang.Override public java.lang.String getEnergySourceMRID() { java.lang.Object ref = energySourceMRID_; 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(); energySourceMRID_ = s; return s; } } /** *
   **
   * The energy source to which the phase belongs.
   * 
* * string energySourceMRID = 2; * @return The bytes for energySourceMRID. */ @java.lang.Override public com.google.protobuf.ByteString getEnergySourceMRIDBytes() { java.lang.Object ref = energySourceMRID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); energySourceMRID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PHASE_FIELD_NUMBER = 3; private int phase_ = 0; /** *
   **
   * Phase of this energy source component. If the energy source wye connected, the connection is from the indicated phase
   * to the central ground or neutral point.  If the energy source is delta connected, the phase indicates an energy source connected
   * from the indicated phase to the next logical non-neutral phase.
   * 
* * .zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind phase = 3; * @return The enum numeric value on the wire for phase. */ @java.lang.Override public int getPhaseValue() { return phase_; } /** *
   **
   * Phase of this energy source component. If the energy source wye connected, the connection is from the indicated phase
   * to the central ground or neutral point.  If the energy source is delta connected, the phase indicates an energy source connected
   * from the indicated phase to the next logical non-neutral phase.
   * 
* * .zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind phase = 3; * @return The phase. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind getPhase() { com.zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind result = com.zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind.forNumber(phase_); return result == null ? com.zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind.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, getPsr()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(energySourceMRID_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, energySourceMRID_); } if (phase_ != com.zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind.NONE.getNumber()) { output.writeEnum(3, phase_); } 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, getPsr()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(energySourceMRID_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, energySourceMRID_); } if (phase_ != com.zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind.NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, phase_); } 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.EnergySourcePhase)) { return super.equals(obj); } com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase other = (com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase) obj; if (hasPsr() != other.hasPsr()) return false; if (hasPsr()) { if (!getPsr() .equals(other.getPsr())) return false; } if (!getEnergySourceMRID() .equals(other.getEnergySourceMRID())) return false; if (phase_ != other.phase_) 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 (hasPsr()) { hash = (37 * hash) + PSR_FIELD_NUMBER; hash = (53 * hash) + getPsr().hashCode(); } hash = (37 * hash) + ENERGYSOURCEMRID_FIELD_NUMBER; hash = (53 * hash) + getEnergySourceMRID().hashCode(); hash = (37 * hash) + PHASE_FIELD_NUMBER; hash = (53 * hash) + phase_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase 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.EnergySourcePhase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase 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.EnergySourcePhase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase 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.EnergySourcePhase 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.EnergySourcePhase 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.EnergySourcePhase 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.EnergySourcePhase 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.EnergySourcePhase 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.EnergySourcePhase 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.EnergySourcePhase 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; } /** *
   **
   * Represents the single phase information of an unbalanced energy source.
   * 
* * Protobuf type {@code zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase) com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhaseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhaseOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_EnergySourcePhase_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhaseOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_EnergySourcePhase_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase.class, com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase.Builder.class); } // Construct using com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPsrFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; psr_ = null; if (psrBuilder_ != null) { psrBuilder_.dispose(); psrBuilder_ = null; } energySourceMRID_ = ""; phase_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhaseOuterClass.internal_static_zepben_protobuf_cim_iec61970_base_wires_EnergySourcePhase_descriptor; } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase getDefaultInstanceForType() { return com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase build() { com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase buildPartial() { com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase result = new com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.psr_ = psrBuilder_ == null ? psr_ : psrBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.energySourceMRID_ = energySourceMRID_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.phase_ = phase_; } 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.EnergySourcePhase) { return mergeFrom((com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase other) { if (other == com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase.getDefaultInstance()) return this; if (other.hasPsr()) { mergePsr(other.getPsr()); } if (!other.getEnergySourceMRID().isEmpty()) { energySourceMRID_ = other.energySourceMRID_; bitField0_ |= 0x00000002; onChanged(); } if (other.phase_ != 0) { setPhaseValue(other.getPhaseValue()); } 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( getPsrFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { energySourceMRID_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { phase_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr_; private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.Builder, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResourceOrBuilder> psrBuilder_; /** *
     **
     * PowerSystemResource fields for this EnergySourcePhase.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; * @return Whether the psr field is set. */ public boolean hasPsr() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * PowerSystemResource fields for this EnergySourcePhase.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; * @return The psr. */ public com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource getPsr() { if (psrBuilder_ == null) { return psr_ == null ? com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.getDefaultInstance() : psr_; } else { return psrBuilder_.getMessage(); } } /** *
     **
     * PowerSystemResource fields for this EnergySourcePhase.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; */ public Builder setPsr(com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource value) { if (psrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } psr_ = value; } else { psrBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * PowerSystemResource fields for this EnergySourcePhase.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; */ public Builder setPsr( com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.Builder builderForValue) { if (psrBuilder_ == null) { psr_ = builderForValue.build(); } else { psrBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * PowerSystemResource fields for this EnergySourcePhase.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; */ public Builder mergePsr(com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource value) { if (psrBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && psr_ != null && psr_ != com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.getDefaultInstance()) { getPsrBuilder().mergeFrom(value); } else { psr_ = value; } } else { psrBuilder_.mergeFrom(value); } if (psr_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * PowerSystemResource fields for this EnergySourcePhase.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; */ public Builder clearPsr() { bitField0_ = (bitField0_ & ~0x00000001); psr_ = null; if (psrBuilder_ != null) { psrBuilder_.dispose(); psrBuilder_ = null; } onChanged(); return this; } /** *
     **
     * PowerSystemResource fields for this EnergySourcePhase.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; */ public com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.Builder getPsrBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPsrFieldBuilder().getBuilder(); } /** *
     **
     * PowerSystemResource fields for this EnergySourcePhase.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; */ public com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResourceOrBuilder getPsrOrBuilder() { if (psrBuilder_ != null) { return psrBuilder_.getMessageOrBuilder(); } else { return psr_ == null ? com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.getDefaultInstance() : psr_; } } /** *
     **
     * PowerSystemResource fields for this EnergySourcePhase.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.PowerSystemResource psr = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.Builder, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResourceOrBuilder> getPsrFieldBuilder() { if (psrBuilder_ == null) { psrBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResource.Builder, com.zepben.protobuf.cim.iec61970.base.core.PowerSystemResourceOrBuilder>( getPsr(), getParentForChildren(), isClean()); psr_ = null; } return psrBuilder_; } private java.lang.Object energySourceMRID_ = ""; /** *
     **
     * The energy source to which the phase belongs.
     * 
* * string energySourceMRID = 2; * @return The energySourceMRID. */ public java.lang.String getEnergySourceMRID() { java.lang.Object ref = energySourceMRID_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); energySourceMRID_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * The energy source to which the phase belongs.
     * 
* * string energySourceMRID = 2; * @return The bytes for energySourceMRID. */ public com.google.protobuf.ByteString getEnergySourceMRIDBytes() { java.lang.Object ref = energySourceMRID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); energySourceMRID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * The energy source to which the phase belongs.
     * 
* * string energySourceMRID = 2; * @param value The energySourceMRID to set. * @return This builder for chaining. */ public Builder setEnergySourceMRID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } energySourceMRID_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The energy source to which the phase belongs.
     * 
* * string energySourceMRID = 2; * @return This builder for chaining. */ public Builder clearEnergySourceMRID() { energySourceMRID_ = getDefaultInstance().getEnergySourceMRID(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     **
     * The energy source to which the phase belongs.
     * 
* * string energySourceMRID = 2; * @param value The bytes for energySourceMRID to set. * @return This builder for chaining. */ public Builder setEnergySourceMRIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); energySourceMRID_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int phase_ = 0; /** *
     **
     * Phase of this energy source component. If the energy source wye connected, the connection is from the indicated phase
     * to the central ground or neutral point.  If the energy source is delta connected, the phase indicates an energy source connected
     * from the indicated phase to the next logical non-neutral phase.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind phase = 3; * @return The enum numeric value on the wire for phase. */ @java.lang.Override public int getPhaseValue() { return phase_; } /** *
     **
     * Phase of this energy source component. If the energy source wye connected, the connection is from the indicated phase
     * to the central ground or neutral point.  If the energy source is delta connected, the phase indicates an energy source connected
     * from the indicated phase to the next logical non-neutral phase.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind phase = 3; * @param value The enum numeric value on the wire for phase to set. * @return This builder for chaining. */ public Builder setPhaseValue(int value) { phase_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * Phase of this energy source component. If the energy source wye connected, the connection is from the indicated phase
     * to the central ground or neutral point.  If the energy source is delta connected, the phase indicates an energy source connected
     * from the indicated phase to the next logical non-neutral phase.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind phase = 3; * @return The phase. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind getPhase() { com.zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind result = com.zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind.forNumber(phase_); return result == null ? com.zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind.UNRECOGNIZED : result; } /** *
     **
     * Phase of this energy source component. If the energy source wye connected, the connection is from the indicated phase
     * to the central ground or neutral point.  If the energy source is delta connected, the phase indicates an energy source connected
     * from the indicated phase to the next logical non-neutral phase.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind phase = 3; * @param value The phase to set. * @return This builder for chaining. */ public Builder setPhase(com.zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; phase_ = value.getNumber(); onChanged(); return this; } /** *
     **
     * Phase of this energy source component. If the energy source wye connected, the connection is from the indicated phase
     * to the central ground or neutral point.  If the energy source is delta connected, the phase indicates an energy source connected
     * from the indicated phase to the next logical non-neutral phase.
     * 
* * .zepben.protobuf.cim.iec61970.base.wires.SinglePhaseKind phase = 3; * @return This builder for chaining. */ public Builder clearPhase() { bitField0_ = (bitField0_ & ~0x00000004); phase_ = 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.wires.EnergySourcePhase) } // @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase) private static final com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase(); } public static com.zepben.protobuf.cim.iec61970.base.wires.EnergySourcePhase getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EnergySourcePhase 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.EnergySourcePhase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy