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

com.zepben.protobuf.hc.opendss.Model 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/hc/opendss/Model.proto

package com.zepben.protobuf.hc.opendss;

/**
 * 
 **
 * A message containing an OpenDSS model and metadata (e.g. SYF).
 * 
* * Protobuf type {@code zepben.protobuf.hc.opendss.Model} */ public final class Model extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.hc.opendss.Model) ModelOrBuilder { private static final long serialVersionUID = 0L; // Use Model.newBuilder() to construct. private Model(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Model() { preLoadShapeCommand_ = com.google.protobuf.LazyStringArrayList.emptyList(); loadShapes_ = java.util.Collections.emptyList(); postLoadShapeCommand_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Model(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.hc.opendss.ModelOuterClass.internal_static_zepben_protobuf_hc_opendss_Model_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.hc.opendss.ModelOuterClass.internal_static_zepben_protobuf_hc_opendss_Model_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.hc.opendss.Model.class, com.zepben.protobuf.hc.opendss.Model.Builder.class); } private int bitField0_; public static final int SYF_FIELD_NUMBER = 1; private com.zepben.protobuf.hc.Syf syf_; /** *
   **
   * The SYF this model represents. Also contains metadata to be passed into the results processor.
   * 
* * .zepben.protobuf.hc.Syf syf = 1; * @return Whether the syf field is set. */ @java.lang.Override public boolean hasSyf() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The SYF this model represents. Also contains metadata to be passed into the results processor.
   * 
* * .zepben.protobuf.hc.Syf syf = 1; * @return The syf. */ @java.lang.Override public com.zepben.protobuf.hc.Syf getSyf() { return syf_ == null ? com.zepben.protobuf.hc.Syf.getDefaultInstance() : syf_; } /** *
   **
   * The SYF this model represents. Also contains metadata to be passed into the results processor.
   * 
* * .zepben.protobuf.hc.Syf syf = 1; */ @java.lang.Override public com.zepben.protobuf.hc.SyfOrBuilder getSyfOrBuilder() { return syf_ == null ? com.zepben.protobuf.hc.Syf.getDefaultInstance() : syf_; } public static final int PRELOADSHAPECOMMAND_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList preLoadShapeCommand_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   **
   * The OpenDSS model commands to run before creating the load shapes.
   * 
* * repeated string preLoadShapeCommand = 2; * @return A list containing the preLoadShapeCommand. */ public com.google.protobuf.ProtocolStringList getPreLoadShapeCommandList() { return preLoadShapeCommand_; } /** *
   **
   * The OpenDSS model commands to run before creating the load shapes.
   * 
* * repeated string preLoadShapeCommand = 2; * @return The count of preLoadShapeCommand. */ public int getPreLoadShapeCommandCount() { return preLoadShapeCommand_.size(); } /** *
   **
   * The OpenDSS model commands to run before creating the load shapes.
   * 
* * repeated string preLoadShapeCommand = 2; * @param index The index of the element to return. * @return The preLoadShapeCommand at the given index. */ public java.lang.String getPreLoadShapeCommand(int index) { return preLoadShapeCommand_.get(index); } /** *
   **
   * The OpenDSS model commands to run before creating the load shapes.
   * 
* * repeated string preLoadShapeCommand = 2; * @param index The index of the value to return. * @return The bytes of the preLoadShapeCommand at the given index. */ public com.google.protobuf.ByteString getPreLoadShapeCommandBytes(int index) { return preLoadShapeCommand_.getByteString(index); } public static final int LOADSHAPES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List loadShapes_; /** *
   **
   * Definition of the load shapes that needs to be mapped into OpenDSS
   * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ @java.lang.Override public java.util.List getLoadShapesList() { return loadShapes_; } /** *
   **
   * Definition of the load shapes that needs to be mapped into OpenDSS
   * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ @java.lang.Override public java.util.List getLoadShapesOrBuilderList() { return loadShapes_; } /** *
   **
   * Definition of the load shapes that needs to be mapped into OpenDSS
   * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ @java.lang.Override public int getLoadShapesCount() { return loadShapes_.size(); } /** *
   **
   * Definition of the load shapes that needs to be mapped into OpenDSS
   * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ @java.lang.Override public com.zepben.protobuf.hc.opendss.LoadShape getLoadShapes(int index) { return loadShapes_.get(index); } /** *
   **
   * Definition of the load shapes that needs to be mapped into OpenDSS
   * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ @java.lang.Override public com.zepben.protobuf.hc.opendss.LoadShapeOrBuilder getLoadShapesOrBuilder( int index) { return loadShapes_.get(index); } public static final int POSTLOADSHAPECOMMAND_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList postLoadShapeCommand_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   **
   * The OpenDSS model commands to run after mapping the load shapes.
   * 
* * repeated string postLoadShapeCommand = 4; * @return A list containing the postLoadShapeCommand. */ public com.google.protobuf.ProtocolStringList getPostLoadShapeCommandList() { return postLoadShapeCommand_; } /** *
   **
   * The OpenDSS model commands to run after mapping the load shapes.
   * 
* * repeated string postLoadShapeCommand = 4; * @return The count of postLoadShapeCommand. */ public int getPostLoadShapeCommandCount() { return postLoadShapeCommand_.size(); } /** *
   **
   * The OpenDSS model commands to run after mapping the load shapes.
   * 
* * repeated string postLoadShapeCommand = 4; * @param index The index of the element to return. * @return The postLoadShapeCommand at the given index. */ public java.lang.String getPostLoadShapeCommand(int index) { return postLoadShapeCommand_.get(index); } /** *
   **
   * The OpenDSS model commands to run after mapping the load shapes.
   * 
* * repeated string postLoadShapeCommand = 4; * @param index The index of the value to return. * @return The bytes of the postLoadShapeCommand at the given index. */ public com.google.protobuf.ByteString getPostLoadShapeCommandBytes(int index) { return postLoadShapeCommand_.getByteString(index); } 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, getSyf()); } for (int i = 0; i < preLoadShapeCommand_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, preLoadShapeCommand_.getRaw(i)); } for (int i = 0; i < loadShapes_.size(); i++) { output.writeMessage(3, loadShapes_.get(i)); } for (int i = 0; i < postLoadShapeCommand_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, postLoadShapeCommand_.getRaw(i)); } 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, getSyf()); } { int dataSize = 0; for (int i = 0; i < preLoadShapeCommand_.size(); i++) { dataSize += computeStringSizeNoTag(preLoadShapeCommand_.getRaw(i)); } size += dataSize; size += 1 * getPreLoadShapeCommandList().size(); } for (int i = 0; i < loadShapes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, loadShapes_.get(i)); } { int dataSize = 0; for (int i = 0; i < postLoadShapeCommand_.size(); i++) { dataSize += computeStringSizeNoTag(postLoadShapeCommand_.getRaw(i)); } size += dataSize; size += 1 * getPostLoadShapeCommandList().size(); } 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.hc.opendss.Model)) { return super.equals(obj); } com.zepben.protobuf.hc.opendss.Model other = (com.zepben.protobuf.hc.opendss.Model) obj; if (hasSyf() != other.hasSyf()) return false; if (hasSyf()) { if (!getSyf() .equals(other.getSyf())) return false; } if (!getPreLoadShapeCommandList() .equals(other.getPreLoadShapeCommandList())) return false; if (!getLoadShapesList() .equals(other.getLoadShapesList())) return false; if (!getPostLoadShapeCommandList() .equals(other.getPostLoadShapeCommandList())) 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 (hasSyf()) { hash = (37 * hash) + SYF_FIELD_NUMBER; hash = (53 * hash) + getSyf().hashCode(); } if (getPreLoadShapeCommandCount() > 0) { hash = (37 * hash) + PRELOADSHAPECOMMAND_FIELD_NUMBER; hash = (53 * hash) + getPreLoadShapeCommandList().hashCode(); } if (getLoadShapesCount() > 0) { hash = (37 * hash) + LOADSHAPES_FIELD_NUMBER; hash = (53 * hash) + getLoadShapesList().hashCode(); } if (getPostLoadShapeCommandCount() > 0) { hash = (37 * hash) + POSTLOADSHAPECOMMAND_FIELD_NUMBER; hash = (53 * hash) + getPostLoadShapeCommandList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.hc.opendss.Model parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.Model 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.hc.opendss.Model parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.Model 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.hc.opendss.Model parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.hc.opendss.Model parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.zepben.protobuf.hc.opendss.Model parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.hc.opendss.Model 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.hc.opendss.Model parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.zepben.protobuf.hc.opendss.Model 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.hc.opendss.Model parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.hc.opendss.Model 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.hc.opendss.Model 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 message containing an OpenDSS model and metadata (e.g. SYF).
   * 
* * Protobuf type {@code zepben.protobuf.hc.opendss.Model} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.hc.opendss.Model) com.zepben.protobuf.hc.opendss.ModelOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.hc.opendss.ModelOuterClass.internal_static_zepben_protobuf_hc_opendss_Model_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.hc.opendss.ModelOuterClass.internal_static_zepben_protobuf_hc_opendss_Model_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.hc.opendss.Model.class, com.zepben.protobuf.hc.opendss.Model.Builder.class); } // Construct using com.zepben.protobuf.hc.opendss.Model.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSyfFieldBuilder(); getLoadShapesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; syf_ = null; if (syfBuilder_ != null) { syfBuilder_.dispose(); syfBuilder_ = null; } preLoadShapeCommand_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (loadShapesBuilder_ == null) { loadShapes_ = java.util.Collections.emptyList(); } else { loadShapes_ = null; loadShapesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); postLoadShapeCommand_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.zepben.protobuf.hc.opendss.ModelOuterClass.internal_static_zepben_protobuf_hc_opendss_Model_descriptor; } @java.lang.Override public com.zepben.protobuf.hc.opendss.Model getDefaultInstanceForType() { return com.zepben.protobuf.hc.opendss.Model.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.hc.opendss.Model build() { com.zepben.protobuf.hc.opendss.Model result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.hc.opendss.Model buildPartial() { com.zepben.protobuf.hc.opendss.Model result = new com.zepben.protobuf.hc.opendss.Model(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.zepben.protobuf.hc.opendss.Model result) { if (loadShapesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { loadShapes_ = java.util.Collections.unmodifiableList(loadShapes_); bitField0_ = (bitField0_ & ~0x00000004); } result.loadShapes_ = loadShapes_; } else { result.loadShapes_ = loadShapesBuilder_.build(); } } private void buildPartial0(com.zepben.protobuf.hc.opendss.Model result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.syf_ = syfBuilder_ == null ? syf_ : syfBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { preLoadShapeCommand_.makeImmutable(); result.preLoadShapeCommand_ = preLoadShapeCommand_; } if (((from_bitField0_ & 0x00000008) != 0)) { postLoadShapeCommand_.makeImmutable(); result.postLoadShapeCommand_ = postLoadShapeCommand_; } 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.hc.opendss.Model) { return mergeFrom((com.zepben.protobuf.hc.opendss.Model)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.hc.opendss.Model other) { if (other == com.zepben.protobuf.hc.opendss.Model.getDefaultInstance()) return this; if (other.hasSyf()) { mergeSyf(other.getSyf()); } if (!other.preLoadShapeCommand_.isEmpty()) { if (preLoadShapeCommand_.isEmpty()) { preLoadShapeCommand_ = other.preLoadShapeCommand_; bitField0_ |= 0x00000002; } else { ensurePreLoadShapeCommandIsMutable(); preLoadShapeCommand_.addAll(other.preLoadShapeCommand_); } onChanged(); } if (loadShapesBuilder_ == null) { if (!other.loadShapes_.isEmpty()) { if (loadShapes_.isEmpty()) { loadShapes_ = other.loadShapes_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLoadShapesIsMutable(); loadShapes_.addAll(other.loadShapes_); } onChanged(); } } else { if (!other.loadShapes_.isEmpty()) { if (loadShapesBuilder_.isEmpty()) { loadShapesBuilder_.dispose(); loadShapesBuilder_ = null; loadShapes_ = other.loadShapes_; bitField0_ = (bitField0_ & ~0x00000004); loadShapesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLoadShapesFieldBuilder() : null; } else { loadShapesBuilder_.addAllMessages(other.loadShapes_); } } } if (!other.postLoadShapeCommand_.isEmpty()) { if (postLoadShapeCommand_.isEmpty()) { postLoadShapeCommand_ = other.postLoadShapeCommand_; bitField0_ |= 0x00000008; } else { ensurePostLoadShapeCommandIsMutable(); postLoadShapeCommand_.addAll(other.postLoadShapeCommand_); } 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( getSyfFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensurePreLoadShapeCommandIsMutable(); preLoadShapeCommand_.add(s); break; } // case 18 case 26: { com.zepben.protobuf.hc.opendss.LoadShape m = input.readMessage( com.zepben.protobuf.hc.opendss.LoadShape.parser(), extensionRegistry); if (loadShapesBuilder_ == null) { ensureLoadShapesIsMutable(); loadShapes_.add(m); } else { loadShapesBuilder_.addMessage(m); } break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensurePostLoadShapeCommandIsMutable(); postLoadShapeCommand_.add(s); break; } // case 34 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.hc.Syf syf_; private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.hc.Syf, com.zepben.protobuf.hc.Syf.Builder, com.zepben.protobuf.hc.SyfOrBuilder> syfBuilder_; /** *
     **
     * The SYF this model represents. Also contains metadata to be passed into the results processor.
     * 
* * .zepben.protobuf.hc.Syf syf = 1; * @return Whether the syf field is set. */ public boolean hasSyf() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * The SYF this model represents. Also contains metadata to be passed into the results processor.
     * 
* * .zepben.protobuf.hc.Syf syf = 1; * @return The syf. */ public com.zepben.protobuf.hc.Syf getSyf() { if (syfBuilder_ == null) { return syf_ == null ? com.zepben.protobuf.hc.Syf.getDefaultInstance() : syf_; } else { return syfBuilder_.getMessage(); } } /** *
     **
     * The SYF this model represents. Also contains metadata to be passed into the results processor.
     * 
* * .zepben.protobuf.hc.Syf syf = 1; */ public Builder setSyf(com.zepben.protobuf.hc.Syf value) { if (syfBuilder_ == null) { if (value == null) { throw new NullPointerException(); } syf_ = value; } else { syfBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The SYF this model represents. Also contains metadata to be passed into the results processor.
     * 
* * .zepben.protobuf.hc.Syf syf = 1; */ public Builder setSyf( com.zepben.protobuf.hc.Syf.Builder builderForValue) { if (syfBuilder_ == null) { syf_ = builderForValue.build(); } else { syfBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The SYF this model represents. Also contains metadata to be passed into the results processor.
     * 
* * .zepben.protobuf.hc.Syf syf = 1; */ public Builder mergeSyf(com.zepben.protobuf.hc.Syf value) { if (syfBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && syf_ != null && syf_ != com.zepben.protobuf.hc.Syf.getDefaultInstance()) { getSyfBuilder().mergeFrom(value); } else { syf_ = value; } } else { syfBuilder_.mergeFrom(value); } if (syf_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * The SYF this model represents. Also contains metadata to be passed into the results processor.
     * 
* * .zepben.protobuf.hc.Syf syf = 1; */ public Builder clearSyf() { bitField0_ = (bitField0_ & ~0x00000001); syf_ = null; if (syfBuilder_ != null) { syfBuilder_.dispose(); syfBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The SYF this model represents. Also contains metadata to be passed into the results processor.
     * 
* * .zepben.protobuf.hc.Syf syf = 1; */ public com.zepben.protobuf.hc.Syf.Builder getSyfBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSyfFieldBuilder().getBuilder(); } /** *
     **
     * The SYF this model represents. Also contains metadata to be passed into the results processor.
     * 
* * .zepben.protobuf.hc.Syf syf = 1; */ public com.zepben.protobuf.hc.SyfOrBuilder getSyfOrBuilder() { if (syfBuilder_ != null) { return syfBuilder_.getMessageOrBuilder(); } else { return syf_ == null ? com.zepben.protobuf.hc.Syf.getDefaultInstance() : syf_; } } /** *
     **
     * The SYF this model represents. Also contains metadata to be passed into the results processor.
     * 
* * .zepben.protobuf.hc.Syf syf = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.hc.Syf, com.zepben.protobuf.hc.Syf.Builder, com.zepben.protobuf.hc.SyfOrBuilder> getSyfFieldBuilder() { if (syfBuilder_ == null) { syfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.hc.Syf, com.zepben.protobuf.hc.Syf.Builder, com.zepben.protobuf.hc.SyfOrBuilder>( getSyf(), getParentForChildren(), isClean()); syf_ = null; } return syfBuilder_; } private com.google.protobuf.LazyStringArrayList preLoadShapeCommand_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensurePreLoadShapeCommandIsMutable() { if (!preLoadShapeCommand_.isModifiable()) { preLoadShapeCommand_ = new com.google.protobuf.LazyStringArrayList(preLoadShapeCommand_); } bitField0_ |= 0x00000002; } /** *
     **
     * The OpenDSS model commands to run before creating the load shapes.
     * 
* * repeated string preLoadShapeCommand = 2; * @return A list containing the preLoadShapeCommand. */ public com.google.protobuf.ProtocolStringList getPreLoadShapeCommandList() { preLoadShapeCommand_.makeImmutable(); return preLoadShapeCommand_; } /** *
     **
     * The OpenDSS model commands to run before creating the load shapes.
     * 
* * repeated string preLoadShapeCommand = 2; * @return The count of preLoadShapeCommand. */ public int getPreLoadShapeCommandCount() { return preLoadShapeCommand_.size(); } /** *
     **
     * The OpenDSS model commands to run before creating the load shapes.
     * 
* * repeated string preLoadShapeCommand = 2; * @param index The index of the element to return. * @return The preLoadShapeCommand at the given index. */ public java.lang.String getPreLoadShapeCommand(int index) { return preLoadShapeCommand_.get(index); } /** *
     **
     * The OpenDSS model commands to run before creating the load shapes.
     * 
* * repeated string preLoadShapeCommand = 2; * @param index The index of the value to return. * @return The bytes of the preLoadShapeCommand at the given index. */ public com.google.protobuf.ByteString getPreLoadShapeCommandBytes(int index) { return preLoadShapeCommand_.getByteString(index); } /** *
     **
     * The OpenDSS model commands to run before creating the load shapes.
     * 
* * repeated string preLoadShapeCommand = 2; * @param index The index to set the value at. * @param value The preLoadShapeCommand to set. * @return This builder for chaining. */ public Builder setPreLoadShapeCommand( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePreLoadShapeCommandIsMutable(); preLoadShapeCommand_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The OpenDSS model commands to run before creating the load shapes.
     * 
* * repeated string preLoadShapeCommand = 2; * @param value The preLoadShapeCommand to add. * @return This builder for chaining. */ public Builder addPreLoadShapeCommand( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePreLoadShapeCommandIsMutable(); preLoadShapeCommand_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The OpenDSS model commands to run before creating the load shapes.
     * 
* * repeated string preLoadShapeCommand = 2; * @param values The preLoadShapeCommand to add. * @return This builder for chaining. */ public Builder addAllPreLoadShapeCommand( java.lang.Iterable values) { ensurePreLoadShapeCommandIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, preLoadShapeCommand_); bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * The OpenDSS model commands to run before creating the load shapes.
     * 
* * repeated string preLoadShapeCommand = 2; * @return This builder for chaining. */ public Builder clearPreLoadShapeCommand() { preLoadShapeCommand_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** *
     **
     * The OpenDSS model commands to run before creating the load shapes.
     * 
* * repeated string preLoadShapeCommand = 2; * @param value The bytes of the preLoadShapeCommand to add. * @return This builder for chaining. */ public Builder addPreLoadShapeCommandBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePreLoadShapeCommandIsMutable(); preLoadShapeCommand_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List loadShapes_ = java.util.Collections.emptyList(); private void ensureLoadShapesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { loadShapes_ = new java.util.ArrayList(loadShapes_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.zepben.protobuf.hc.opendss.LoadShape, com.zepben.protobuf.hc.opendss.LoadShape.Builder, com.zepben.protobuf.hc.opendss.LoadShapeOrBuilder> loadShapesBuilder_; /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public java.util.List getLoadShapesList() { if (loadShapesBuilder_ == null) { return java.util.Collections.unmodifiableList(loadShapes_); } else { return loadShapesBuilder_.getMessageList(); } } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public int getLoadShapesCount() { if (loadShapesBuilder_ == null) { return loadShapes_.size(); } else { return loadShapesBuilder_.getCount(); } } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public com.zepben.protobuf.hc.opendss.LoadShape getLoadShapes(int index) { if (loadShapesBuilder_ == null) { return loadShapes_.get(index); } else { return loadShapesBuilder_.getMessage(index); } } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public Builder setLoadShapes( int index, com.zepben.protobuf.hc.opendss.LoadShape value) { if (loadShapesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLoadShapesIsMutable(); loadShapes_.set(index, value); onChanged(); } else { loadShapesBuilder_.setMessage(index, value); } return this; } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public Builder setLoadShapes( int index, com.zepben.protobuf.hc.opendss.LoadShape.Builder builderForValue) { if (loadShapesBuilder_ == null) { ensureLoadShapesIsMutable(); loadShapes_.set(index, builderForValue.build()); onChanged(); } else { loadShapesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public Builder addLoadShapes(com.zepben.protobuf.hc.opendss.LoadShape value) { if (loadShapesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLoadShapesIsMutable(); loadShapes_.add(value); onChanged(); } else { loadShapesBuilder_.addMessage(value); } return this; } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public Builder addLoadShapes( int index, com.zepben.protobuf.hc.opendss.LoadShape value) { if (loadShapesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLoadShapesIsMutable(); loadShapes_.add(index, value); onChanged(); } else { loadShapesBuilder_.addMessage(index, value); } return this; } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public Builder addLoadShapes( com.zepben.protobuf.hc.opendss.LoadShape.Builder builderForValue) { if (loadShapesBuilder_ == null) { ensureLoadShapesIsMutable(); loadShapes_.add(builderForValue.build()); onChanged(); } else { loadShapesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public Builder addLoadShapes( int index, com.zepben.protobuf.hc.opendss.LoadShape.Builder builderForValue) { if (loadShapesBuilder_ == null) { ensureLoadShapesIsMutable(); loadShapes_.add(index, builderForValue.build()); onChanged(); } else { loadShapesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public Builder addAllLoadShapes( java.lang.Iterable values) { if (loadShapesBuilder_ == null) { ensureLoadShapesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, loadShapes_); onChanged(); } else { loadShapesBuilder_.addAllMessages(values); } return this; } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public Builder clearLoadShapes() { if (loadShapesBuilder_ == null) { loadShapes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { loadShapesBuilder_.clear(); } return this; } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public Builder removeLoadShapes(int index) { if (loadShapesBuilder_ == null) { ensureLoadShapesIsMutable(); loadShapes_.remove(index); onChanged(); } else { loadShapesBuilder_.remove(index); } return this; } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public com.zepben.protobuf.hc.opendss.LoadShape.Builder getLoadShapesBuilder( int index) { return getLoadShapesFieldBuilder().getBuilder(index); } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public com.zepben.protobuf.hc.opendss.LoadShapeOrBuilder getLoadShapesOrBuilder( int index) { if (loadShapesBuilder_ == null) { return loadShapes_.get(index); } else { return loadShapesBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public java.util.List getLoadShapesOrBuilderList() { if (loadShapesBuilder_ != null) { return loadShapesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(loadShapes_); } } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public com.zepben.protobuf.hc.opendss.LoadShape.Builder addLoadShapesBuilder() { return getLoadShapesFieldBuilder().addBuilder( com.zepben.protobuf.hc.opendss.LoadShape.getDefaultInstance()); } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public com.zepben.protobuf.hc.opendss.LoadShape.Builder addLoadShapesBuilder( int index) { return getLoadShapesFieldBuilder().addBuilder( index, com.zepben.protobuf.hc.opendss.LoadShape.getDefaultInstance()); } /** *
     **
     * Definition of the load shapes that needs to be mapped into OpenDSS
     * 
* * repeated .zepben.protobuf.hc.opendss.LoadShape loadShapes = 3; */ public java.util.List getLoadShapesBuilderList() { return getLoadShapesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.zepben.protobuf.hc.opendss.LoadShape, com.zepben.protobuf.hc.opendss.LoadShape.Builder, com.zepben.protobuf.hc.opendss.LoadShapeOrBuilder> getLoadShapesFieldBuilder() { if (loadShapesBuilder_ == null) { loadShapesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.zepben.protobuf.hc.opendss.LoadShape, com.zepben.protobuf.hc.opendss.LoadShape.Builder, com.zepben.protobuf.hc.opendss.LoadShapeOrBuilder>( loadShapes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); loadShapes_ = null; } return loadShapesBuilder_; } private com.google.protobuf.LazyStringArrayList postLoadShapeCommand_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensurePostLoadShapeCommandIsMutable() { if (!postLoadShapeCommand_.isModifiable()) { postLoadShapeCommand_ = new com.google.protobuf.LazyStringArrayList(postLoadShapeCommand_); } bitField0_ |= 0x00000008; } /** *
     **
     * The OpenDSS model commands to run after mapping the load shapes.
     * 
* * repeated string postLoadShapeCommand = 4; * @return A list containing the postLoadShapeCommand. */ public com.google.protobuf.ProtocolStringList getPostLoadShapeCommandList() { postLoadShapeCommand_.makeImmutable(); return postLoadShapeCommand_; } /** *
     **
     * The OpenDSS model commands to run after mapping the load shapes.
     * 
* * repeated string postLoadShapeCommand = 4; * @return The count of postLoadShapeCommand. */ public int getPostLoadShapeCommandCount() { return postLoadShapeCommand_.size(); } /** *
     **
     * The OpenDSS model commands to run after mapping the load shapes.
     * 
* * repeated string postLoadShapeCommand = 4; * @param index The index of the element to return. * @return The postLoadShapeCommand at the given index. */ public java.lang.String getPostLoadShapeCommand(int index) { return postLoadShapeCommand_.get(index); } /** *
     **
     * The OpenDSS model commands to run after mapping the load shapes.
     * 
* * repeated string postLoadShapeCommand = 4; * @param index The index of the value to return. * @return The bytes of the postLoadShapeCommand at the given index. */ public com.google.protobuf.ByteString getPostLoadShapeCommandBytes(int index) { return postLoadShapeCommand_.getByteString(index); } /** *
     **
     * The OpenDSS model commands to run after mapping the load shapes.
     * 
* * repeated string postLoadShapeCommand = 4; * @param index The index to set the value at. * @param value The postLoadShapeCommand to set. * @return This builder for chaining. */ public Builder setPostLoadShapeCommand( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePostLoadShapeCommandIsMutable(); postLoadShapeCommand_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * The OpenDSS model commands to run after mapping the load shapes.
     * 
* * repeated string postLoadShapeCommand = 4; * @param value The postLoadShapeCommand to add. * @return This builder for chaining. */ public Builder addPostLoadShapeCommand( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePostLoadShapeCommandIsMutable(); postLoadShapeCommand_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * The OpenDSS model commands to run after mapping the load shapes.
     * 
* * repeated string postLoadShapeCommand = 4; * @param values The postLoadShapeCommand to add. * @return This builder for chaining. */ public Builder addAllPostLoadShapeCommand( java.lang.Iterable values) { ensurePostLoadShapeCommandIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, postLoadShapeCommand_); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * The OpenDSS model commands to run after mapping the load shapes.
     * 
* * repeated string postLoadShapeCommand = 4; * @return This builder for chaining. */ public Builder clearPostLoadShapeCommand() { postLoadShapeCommand_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** *
     **
     * The OpenDSS model commands to run after mapping the load shapes.
     * 
* * repeated string postLoadShapeCommand = 4; * @param value The bytes of the postLoadShapeCommand to add. * @return This builder for chaining. */ public Builder addPostLoadShapeCommandBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePostLoadShapeCommandIsMutable(); postLoadShapeCommand_.add(value); bitField0_ |= 0x00000008; 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.hc.opendss.Model) } // @@protoc_insertion_point(class_scope:zepben.protobuf.hc.opendss.Model) private static final com.zepben.protobuf.hc.opendss.Model DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.hc.opendss.Model(); } public static com.zepben.protobuf.hc.opendss.Model getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Model 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.hc.opendss.Model getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy