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

com.zepben.protobuf.cim.iec61968.common.Location Maven / Gradle / Ivy

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

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

/**
 * 
 **
 * The place, scene, or point of something where someone or something has been, is, and/or will be at a given moment in time.
 * It can be defined with one or more position points (coordinates) in a given coordinate system.
 * 
* * Protobuf type {@code zepben.protobuf.cim.iec61968.common.Location} */ public final class Location extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61968.common.Location) LocationOrBuilder { private static final long serialVersionUID = 0L; // Use Location.newBuilder() to construct. private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Location() { positionPoints_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Location(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61968.common.LocationOuterClass.internal_static_zepben_protobuf_cim_iec61968_common_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61968.common.LocationOuterClass.internal_static_zepben_protobuf_cim_iec61968_common_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61968.common.Location.class, com.zepben.protobuf.cim.iec61968.common.Location.Builder.class); } private int bitField0_; public static final int IO_FIELD_NUMBER = 1; private com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io_; /** *
   **
   * The IdentifiedObject fields for this Location.
   * 
* * .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1; * @return Whether the io field is set. */ @java.lang.Override public boolean hasIo() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * The IdentifiedObject fields for this Location.
   * 
* * .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1; * @return The io. */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject getIo() { return io_ == null ? com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_; } /** *
   **
   * The IdentifiedObject fields for this Location.
   * 
* * .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1; */ @java.lang.Override public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder getIoOrBuilder() { return io_ == null ? com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_; } public static final int MAINADDRESS_FIELD_NUMBER = 2; private com.zepben.protobuf.cim.iec61968.common.StreetAddress mainAddress_; /** *
   **
   * Main address of the location.
   * 
* * .zepben.protobuf.cim.iec61968.common.StreetAddress mainAddress = 2; * @return Whether the mainAddress field is set. */ @java.lang.Override public boolean hasMainAddress() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * Main address of the location.
   * 
* * .zepben.protobuf.cim.iec61968.common.StreetAddress mainAddress = 2; * @return The mainAddress. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.StreetAddress getMainAddress() { return mainAddress_ == null ? com.zepben.protobuf.cim.iec61968.common.StreetAddress.getDefaultInstance() : mainAddress_; } /** *
   **
   * Main address of the location.
   * 
* * .zepben.protobuf.cim.iec61968.common.StreetAddress mainAddress = 2; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.StreetAddressOrBuilder getMainAddressOrBuilder() { return mainAddress_ == null ? com.zepben.protobuf.cim.iec61968.common.StreetAddress.getDefaultInstance() : mainAddress_; } public static final int POSITIONPOINTS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List positionPoints_; /** *
   **
   * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
   * Note that the ordering is important, as the order reflects relationships to other messages. For example,
   * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
   * "second" terminal.
   * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ @java.lang.Override public java.util.List getPositionPointsList() { return positionPoints_; } /** *
   **
   * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
   * Note that the ordering is important, as the order reflects relationships to other messages. For example,
   * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
   * "second" terminal.
   * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ @java.lang.Override public java.util.List getPositionPointsOrBuilderList() { return positionPoints_; } /** *
   **
   * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
   * Note that the ordering is important, as the order reflects relationships to other messages. For example,
   * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
   * "second" terminal.
   * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ @java.lang.Override public int getPositionPointsCount() { return positionPoints_.size(); } /** *
   **
   * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
   * Note that the ordering is important, as the order reflects relationships to other messages. For example,
   * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
   * "second" terminal.
   * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.PositionPoint getPositionPoints(int index) { return positionPoints_.get(index); } /** *
   **
   * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
   * Note that the ordering is important, as the order reflects relationships to other messages. For example,
   * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
   * "second" terminal.
   * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.PositionPointOrBuilder getPositionPointsOrBuilder( int index) { return positionPoints_.get(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, getIo()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getMainAddress()); } for (int i = 0; i < positionPoints_.size(); i++) { output.writeMessage(3, positionPoints_.get(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, getIo()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMainAddress()); } for (int i = 0; i < positionPoints_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, positionPoints_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.zepben.protobuf.cim.iec61968.common.Location)) { return super.equals(obj); } com.zepben.protobuf.cim.iec61968.common.Location other = (com.zepben.protobuf.cim.iec61968.common.Location) obj; if (hasIo() != other.hasIo()) return false; if (hasIo()) { if (!getIo() .equals(other.getIo())) return false; } if (hasMainAddress() != other.hasMainAddress()) return false; if (hasMainAddress()) { if (!getMainAddress() .equals(other.getMainAddress())) return false; } if (!getPositionPointsList() .equals(other.getPositionPointsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasIo()) { hash = (37 * hash) + IO_FIELD_NUMBER; hash = (53 * hash) + getIo().hashCode(); } if (hasMainAddress()) { hash = (37 * hash) + MAINADDRESS_FIELD_NUMBER; hash = (53 * hash) + getMainAddress().hashCode(); } if (getPositionPointsCount() > 0) { hash = (37 * hash) + POSITIONPOINTS_FIELD_NUMBER; hash = (53 * hash) + getPositionPointsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.cim.iec61968.common.Location parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.common.Location parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.zepben.protobuf.cim.iec61968.common.Location parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.common.Location parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.zepben.protobuf.cim.iec61968.common.Location parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.common.Location parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.zepben.protobuf.cim.iec61968.common.Location parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.cim.iec61968.common.Location parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.zepben.protobuf.cim.iec61968.common.Location parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.zepben.protobuf.cim.iec61968.common.Location parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.zepben.protobuf.cim.iec61968.common.Location parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.zepben.protobuf.cim.iec61968.common.Location parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.zepben.protobuf.cim.iec61968.common.Location 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; } /** *
   **
   * The place, scene, or point of something where someone or something has been, is, and/or will be at a given moment in time.
   * It can be defined with one or more position points (coordinates) in a given coordinate system.
   * 
* * Protobuf type {@code zepben.protobuf.cim.iec61968.common.Location} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61968.common.Location) com.zepben.protobuf.cim.iec61968.common.LocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61968.common.LocationOuterClass.internal_static_zepben_protobuf_cim_iec61968_common_Location_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61968.common.LocationOuterClass.internal_static_zepben_protobuf_cim_iec61968_common_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61968.common.Location.class, com.zepben.protobuf.cim.iec61968.common.Location.Builder.class); } // Construct using com.zepben.protobuf.cim.iec61968.common.Location.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIoFieldBuilder(); getMainAddressFieldBuilder(); getPositionPointsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; io_ = null; if (ioBuilder_ != null) { ioBuilder_.dispose(); ioBuilder_ = null; } mainAddress_ = null; if (mainAddressBuilder_ != null) { mainAddressBuilder_.dispose(); mainAddressBuilder_ = null; } if (positionPointsBuilder_ == null) { positionPoints_ = java.util.Collections.emptyList(); } else { positionPoints_ = null; positionPointsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.zepben.protobuf.cim.iec61968.common.LocationOuterClass.internal_static_zepben_protobuf_cim_iec61968_common_Location_descriptor; } @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.Location getDefaultInstanceForType() { return com.zepben.protobuf.cim.iec61968.common.Location.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.Location build() { com.zepben.protobuf.cim.iec61968.common.Location result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.Location buildPartial() { com.zepben.protobuf.cim.iec61968.common.Location result = new com.zepben.protobuf.cim.iec61968.common.Location(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.zepben.protobuf.cim.iec61968.common.Location result) { if (positionPointsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { positionPoints_ = java.util.Collections.unmodifiableList(positionPoints_); bitField0_ = (bitField0_ & ~0x00000004); } result.positionPoints_ = positionPoints_; } else { result.positionPoints_ = positionPointsBuilder_.build(); } } private void buildPartial0(com.zepben.protobuf.cim.iec61968.common.Location result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.io_ = ioBuilder_ == null ? io_ : ioBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.mainAddress_ = mainAddressBuilder_ == null ? mainAddress_ : mainAddressBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.zepben.protobuf.cim.iec61968.common.Location) { return mergeFrom((com.zepben.protobuf.cim.iec61968.common.Location)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.cim.iec61968.common.Location other) { if (other == com.zepben.protobuf.cim.iec61968.common.Location.getDefaultInstance()) return this; if (other.hasIo()) { mergeIo(other.getIo()); } if (other.hasMainAddress()) { mergeMainAddress(other.getMainAddress()); } if (positionPointsBuilder_ == null) { if (!other.positionPoints_.isEmpty()) { if (positionPoints_.isEmpty()) { positionPoints_ = other.positionPoints_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePositionPointsIsMutable(); positionPoints_.addAll(other.positionPoints_); } onChanged(); } } else { if (!other.positionPoints_.isEmpty()) { if (positionPointsBuilder_.isEmpty()) { positionPointsBuilder_.dispose(); positionPointsBuilder_ = null; positionPoints_ = other.positionPoints_; bitField0_ = (bitField0_ & ~0x00000004); positionPointsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPositionPointsFieldBuilder() : null; } else { positionPointsBuilder_.addAllMessages(other.positionPoints_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getIoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getMainAddressFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { com.zepben.protobuf.cim.iec61968.common.PositionPoint m = input.readMessage( com.zepben.protobuf.cim.iec61968.common.PositionPoint.parser(), extensionRegistry); if (positionPointsBuilder_ == null) { ensurePositionPointsIsMutable(); positionPoints_.add(m); } else { positionPointsBuilder_.addMessage(m); } 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.core.IdentifiedObject io_; private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder> ioBuilder_; /** *
     **
     * The IdentifiedObject fields for this Location.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1; * @return Whether the io field is set. */ public boolean hasIo() { return ((bitField0_ & 0x00000001) != 0); } /** *
     **
     * The IdentifiedObject fields for this Location.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1; * @return The io. */ public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject getIo() { if (ioBuilder_ == null) { return io_ == null ? com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_; } else { return ioBuilder_.getMessage(); } } /** *
     **
     * The IdentifiedObject fields for this Location.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1; */ public Builder setIo(com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject value) { if (ioBuilder_ == null) { if (value == null) { throw new NullPointerException(); } io_ = value; } else { ioBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The IdentifiedObject fields for this Location.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1; */ public Builder setIo( com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder builderForValue) { if (ioBuilder_ == null) { io_ = builderForValue.build(); } else { ioBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * The IdentifiedObject fields for this Location.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1; */ public Builder mergeIo(com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject value) { if (ioBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && io_ != null && io_ != com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance()) { getIoBuilder().mergeFrom(value); } else { io_ = value; } } else { ioBuilder_.mergeFrom(value); } if (io_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     **
     * The IdentifiedObject fields for this Location.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1; */ public Builder clearIo() { bitField0_ = (bitField0_ & ~0x00000001); io_ = null; if (ioBuilder_ != null) { ioBuilder_.dispose(); ioBuilder_ = null; } onChanged(); return this; } /** *
     **
     * The IdentifiedObject fields for this Location.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1; */ public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder getIoBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIoFieldBuilder().getBuilder(); } /** *
     **
     * The IdentifiedObject fields for this Location.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1; */ public com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder getIoOrBuilder() { if (ioBuilder_ != null) { return ioBuilder_.getMessageOrBuilder(); } else { return io_ == null ? com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.getDefaultInstance() : io_; } } /** *
     **
     * The IdentifiedObject fields for this Location.
     * 
* * .zepben.protobuf.cim.iec61970.base.core.IdentifiedObject io = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder> getIoFieldBuilder() { if (ioBuilder_ == null) { ioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObject.Builder, com.zepben.protobuf.cim.iec61970.base.core.IdentifiedObjectOrBuilder>( getIo(), getParentForChildren(), isClean()); io_ = null; } return ioBuilder_; } private com.zepben.protobuf.cim.iec61968.common.StreetAddress mainAddress_; private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.StreetAddress, com.zepben.protobuf.cim.iec61968.common.StreetAddress.Builder, com.zepben.protobuf.cim.iec61968.common.StreetAddressOrBuilder> mainAddressBuilder_; /** *
     **
     * Main address of the location.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetAddress mainAddress = 2; * @return Whether the mainAddress field is set. */ public boolean hasMainAddress() { return ((bitField0_ & 0x00000002) != 0); } /** *
     **
     * Main address of the location.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetAddress mainAddress = 2; * @return The mainAddress. */ public com.zepben.protobuf.cim.iec61968.common.StreetAddress getMainAddress() { if (mainAddressBuilder_ == null) { return mainAddress_ == null ? com.zepben.protobuf.cim.iec61968.common.StreetAddress.getDefaultInstance() : mainAddress_; } else { return mainAddressBuilder_.getMessage(); } } /** *
     **
     * Main address of the location.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetAddress mainAddress = 2; */ public Builder setMainAddress(com.zepben.protobuf.cim.iec61968.common.StreetAddress value) { if (mainAddressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mainAddress_ = value; } else { mainAddressBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * Main address of the location.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetAddress mainAddress = 2; */ public Builder setMainAddress( com.zepben.protobuf.cim.iec61968.common.StreetAddress.Builder builderForValue) { if (mainAddressBuilder_ == null) { mainAddress_ = builderForValue.build(); } else { mainAddressBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * Main address of the location.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetAddress mainAddress = 2; */ public Builder mergeMainAddress(com.zepben.protobuf.cim.iec61968.common.StreetAddress value) { if (mainAddressBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && mainAddress_ != null && mainAddress_ != com.zepben.protobuf.cim.iec61968.common.StreetAddress.getDefaultInstance()) { getMainAddressBuilder().mergeFrom(value); } else { mainAddress_ = value; } } else { mainAddressBuilder_.mergeFrom(value); } if (mainAddress_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     **
     * Main address of the location.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetAddress mainAddress = 2; */ public Builder clearMainAddress() { bitField0_ = (bitField0_ & ~0x00000002); mainAddress_ = null; if (mainAddressBuilder_ != null) { mainAddressBuilder_.dispose(); mainAddressBuilder_ = null; } onChanged(); return this; } /** *
     **
     * Main address of the location.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetAddress mainAddress = 2; */ public com.zepben.protobuf.cim.iec61968.common.StreetAddress.Builder getMainAddressBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMainAddressFieldBuilder().getBuilder(); } /** *
     **
     * Main address of the location.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetAddress mainAddress = 2; */ public com.zepben.protobuf.cim.iec61968.common.StreetAddressOrBuilder getMainAddressOrBuilder() { if (mainAddressBuilder_ != null) { return mainAddressBuilder_.getMessageOrBuilder(); } else { return mainAddress_ == null ? com.zepben.protobuf.cim.iec61968.common.StreetAddress.getDefaultInstance() : mainAddress_; } } /** *
     **
     * Main address of the location.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetAddress mainAddress = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.StreetAddress, com.zepben.protobuf.cim.iec61968.common.StreetAddress.Builder, com.zepben.protobuf.cim.iec61968.common.StreetAddressOrBuilder> getMainAddressFieldBuilder() { if (mainAddressBuilder_ == null) { mainAddressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.StreetAddress, com.zepben.protobuf.cim.iec61968.common.StreetAddress.Builder, com.zepben.protobuf.cim.iec61968.common.StreetAddressOrBuilder>( getMainAddress(), getParentForChildren(), isClean()); mainAddress_ = null; } return mainAddressBuilder_; } private java.util.List positionPoints_ = java.util.Collections.emptyList(); private void ensurePositionPointsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { positionPoints_ = new java.util.ArrayList(positionPoints_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.PositionPoint, com.zepben.protobuf.cim.iec61968.common.PositionPoint.Builder, com.zepben.protobuf.cim.iec61968.common.PositionPointOrBuilder> positionPointsBuilder_; /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public java.util.List getPositionPointsList() { if (positionPointsBuilder_ == null) { return java.util.Collections.unmodifiableList(positionPoints_); } else { return positionPointsBuilder_.getMessageList(); } } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public int getPositionPointsCount() { if (positionPointsBuilder_ == null) { return positionPoints_.size(); } else { return positionPointsBuilder_.getCount(); } } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public com.zepben.protobuf.cim.iec61968.common.PositionPoint getPositionPoints(int index) { if (positionPointsBuilder_ == null) { return positionPoints_.get(index); } else { return positionPointsBuilder_.getMessage(index); } } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public Builder setPositionPoints( int index, com.zepben.protobuf.cim.iec61968.common.PositionPoint value) { if (positionPointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePositionPointsIsMutable(); positionPoints_.set(index, value); onChanged(); } else { positionPointsBuilder_.setMessage(index, value); } return this; } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public Builder setPositionPoints( int index, com.zepben.protobuf.cim.iec61968.common.PositionPoint.Builder builderForValue) { if (positionPointsBuilder_ == null) { ensurePositionPointsIsMutable(); positionPoints_.set(index, builderForValue.build()); onChanged(); } else { positionPointsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public Builder addPositionPoints(com.zepben.protobuf.cim.iec61968.common.PositionPoint value) { if (positionPointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePositionPointsIsMutable(); positionPoints_.add(value); onChanged(); } else { positionPointsBuilder_.addMessage(value); } return this; } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public Builder addPositionPoints( int index, com.zepben.protobuf.cim.iec61968.common.PositionPoint value) { if (positionPointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePositionPointsIsMutable(); positionPoints_.add(index, value); onChanged(); } else { positionPointsBuilder_.addMessage(index, value); } return this; } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public Builder addPositionPoints( com.zepben.protobuf.cim.iec61968.common.PositionPoint.Builder builderForValue) { if (positionPointsBuilder_ == null) { ensurePositionPointsIsMutable(); positionPoints_.add(builderForValue.build()); onChanged(); } else { positionPointsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public Builder addPositionPoints( int index, com.zepben.protobuf.cim.iec61968.common.PositionPoint.Builder builderForValue) { if (positionPointsBuilder_ == null) { ensurePositionPointsIsMutable(); positionPoints_.add(index, builderForValue.build()); onChanged(); } else { positionPointsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public Builder addAllPositionPoints( java.lang.Iterable values) { if (positionPointsBuilder_ == null) { ensurePositionPointsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, positionPoints_); onChanged(); } else { positionPointsBuilder_.addAllMessages(values); } return this; } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public Builder clearPositionPoints() { if (positionPointsBuilder_ == null) { positionPoints_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { positionPointsBuilder_.clear(); } return this; } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public Builder removePositionPoints(int index) { if (positionPointsBuilder_ == null) { ensurePositionPointsIsMutable(); positionPoints_.remove(index); onChanged(); } else { positionPointsBuilder_.remove(index); } return this; } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public com.zepben.protobuf.cim.iec61968.common.PositionPoint.Builder getPositionPointsBuilder( int index) { return getPositionPointsFieldBuilder().getBuilder(index); } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public com.zepben.protobuf.cim.iec61968.common.PositionPointOrBuilder getPositionPointsOrBuilder( int index) { if (positionPointsBuilder_ == null) { return positionPoints_.get(index); } else { return positionPointsBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public java.util.List getPositionPointsOrBuilderList() { if (positionPointsBuilder_ != null) { return positionPointsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(positionPoints_); } } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public com.zepben.protobuf.cim.iec61968.common.PositionPoint.Builder addPositionPointsBuilder() { return getPositionPointsFieldBuilder().addBuilder( com.zepben.protobuf.cim.iec61968.common.PositionPoint.getDefaultInstance()); } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public com.zepben.protobuf.cim.iec61968.common.PositionPoint.Builder addPositionPointsBuilder( int index) { return getPositionPointsFieldBuilder().addBuilder( index, com.zepben.protobuf.cim.iec61968.common.PositionPoint.getDefaultInstance()); } /** *
     **
     * Sequence of position points describing this location, expressed in coordinate system 'Location.CoordinateSystem'.
     * Note that the ordering is important, as the order reflects relationships to other messages. For example,
     * the first positionPoint will be the "first" terminal on a ConductingEquipment, and the second will be the
     * "second" terminal.
     * 
* * repeated .zepben.protobuf.cim.iec61968.common.PositionPoint positionPoints = 3; */ public java.util.List getPositionPointsBuilderList() { return getPositionPointsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.PositionPoint, com.zepben.protobuf.cim.iec61968.common.PositionPoint.Builder, com.zepben.protobuf.cim.iec61968.common.PositionPointOrBuilder> getPositionPointsFieldBuilder() { if (positionPointsBuilder_ == null) { positionPointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.PositionPoint, com.zepben.protobuf.cim.iec61968.common.PositionPoint.Builder, com.zepben.protobuf.cim.iec61968.common.PositionPointOrBuilder>( positionPoints_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); positionPoints_ = null; } return positionPointsBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:zepben.protobuf.cim.iec61968.common.Location) } // @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61968.common.Location) private static final com.zepben.protobuf.cim.iec61968.common.Location DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61968.common.Location(); } public static com.zepben.protobuf.cim.iec61968.common.Location getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Location parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.Location getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy