com.zepben.protobuf.cim.iec61968.assets.Pole Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evolve-grpc Show documentation
Show all versions of evolve-grpc Show documentation
Protobuf and gRPC definitions for the evolve platform
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: zepben/protobuf/cim/iec61968/assets/Pole.proto
package com.zepben.protobuf.cim.iec61968.assets;
/**
*
**
* A Pole asset.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61968.assets.Pole}
*/
public final class Pole extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61968.assets.Pole)
PoleOrBuilder {
private static final long serialVersionUID = 0L;
// Use Pole.newBuilder() to construct.
private Pole(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Pole() {
streetlightMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
classification_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Pole();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61968.assets.PoleOuterClass.internal_static_zepben_protobuf_cim_iec61968_assets_Pole_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61968.assets.PoleOuterClass.internal_static_zepben_protobuf_cim_iec61968_assets_Pole_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61968.assets.Pole.class, com.zepben.protobuf.cim.iec61968.assets.Pole.Builder.class);
}
private int bitField0_;
public static final int ST_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61968.assets.Structure st_;
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Structure st = 1;
* @return Whether the st field is set.
*/
@java.lang.Override
public boolean hasSt() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Structure st = 1;
* @return The st.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.assets.Structure getSt() {
return st_ == null ? com.zepben.protobuf.cim.iec61968.assets.Structure.getDefaultInstance() : st_;
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Structure st = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.assets.StructureOrBuilder getStOrBuilder() {
return st_ == null ? com.zepben.protobuf.cim.iec61968.assets.Structure.getDefaultInstance() : st_;
}
public static final int STREETLIGHTMRIDS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList streetlightMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
**
* The streetlights associated with this Pole.
*
*
* repeated string streetlightMRIDs = 2;
* @return A list containing the streetlightMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getStreetlightMRIDsList() {
return streetlightMRIDs_;
}
/**
*
**
* The streetlights associated with this Pole.
*
*
* repeated string streetlightMRIDs = 2;
* @return The count of streetlightMRIDs.
*/
public int getStreetlightMRIDsCount() {
return streetlightMRIDs_.size();
}
/**
*
**
* The streetlights associated with this Pole.
*
*
* repeated string streetlightMRIDs = 2;
* @param index The index of the element to return.
* @return The streetlightMRIDs at the given index.
*/
public java.lang.String getStreetlightMRIDs(int index) {
return streetlightMRIDs_.get(index);
}
/**
*
**
* The streetlights associated with this Pole.
*
*
* repeated string streetlightMRIDs = 2;
* @param index The index of the value to return.
* @return The bytes of the streetlightMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getStreetlightMRIDsBytes(int index) {
return streetlightMRIDs_.getByteString(index);
}
public static final int CLASSIFICATION_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object classification_ = "";
/**
*
**
* Pole class: 1, 2, 3, 4, 5, 6, 7, H1, H2, Other, Unknown.
*
*
* string classification = 3;
* @return The classification.
*/
@java.lang.Override
public java.lang.String getClassification() {
java.lang.Object ref = classification_;
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();
classification_ = s;
return s;
}
}
/**
*
**
* Pole class: 1, 2, 3, 4, 5, 6, 7, H1, H2, Other, Unknown.
*
*
* string classification = 3;
* @return The bytes for classification.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClassificationBytes() {
java.lang.Object ref = classification_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
classification_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getSt());
}
for (int i = 0; i < streetlightMRIDs_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, streetlightMRIDs_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(classification_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, classification_);
}
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, getSt());
}
{
int dataSize = 0;
for (int i = 0; i < streetlightMRIDs_.size(); i++) {
dataSize += computeStringSizeNoTag(streetlightMRIDs_.getRaw(i));
}
size += dataSize;
size += 1 * getStreetlightMRIDsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(classification_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, classification_);
}
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.assets.Pole)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61968.assets.Pole other = (com.zepben.protobuf.cim.iec61968.assets.Pole) obj;
if (hasSt() != other.hasSt()) return false;
if (hasSt()) {
if (!getSt()
.equals(other.getSt())) return false;
}
if (!getStreetlightMRIDsList()
.equals(other.getStreetlightMRIDsList())) return false;
if (!getClassification()
.equals(other.getClassification())) 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 (hasSt()) {
hash = (37 * hash) + ST_FIELD_NUMBER;
hash = (53 * hash) + getSt().hashCode();
}
if (getStreetlightMRIDsCount() > 0) {
hash = (37 * hash) + STREETLIGHTMRIDS_FIELD_NUMBER;
hash = (53 * hash) + getStreetlightMRIDsList().hashCode();
}
hash = (37 * hash) + CLASSIFICATION_FIELD_NUMBER;
hash = (53 * hash) + getClassification().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61968.assets.Pole parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61968.assets.Pole 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.assets.Pole parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61968.assets.Pole 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.assets.Pole parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61968.assets.Pole 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.assets.Pole parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61968.assets.Pole 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.assets.Pole parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.zepben.protobuf.cim.iec61968.assets.Pole 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.assets.Pole 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.assets.Pole 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.assets.Pole 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 Pole asset.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61968.assets.Pole}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61968.assets.Pole)
com.zepben.protobuf.cim.iec61968.assets.PoleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61968.assets.PoleOuterClass.internal_static_zepben_protobuf_cim_iec61968_assets_Pole_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61968.assets.PoleOuterClass.internal_static_zepben_protobuf_cim_iec61968_assets_Pole_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61968.assets.Pole.class, com.zepben.protobuf.cim.iec61968.assets.Pole.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61968.assets.Pole.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
st_ = null;
if (stBuilder_ != null) {
stBuilder_.dispose();
stBuilder_ = null;
}
streetlightMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
classification_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61968.assets.PoleOuterClass.internal_static_zepben_protobuf_cim_iec61968_assets_Pole_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.assets.Pole getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61968.assets.Pole.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.assets.Pole build() {
com.zepben.protobuf.cim.iec61968.assets.Pole result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.assets.Pole buildPartial() {
com.zepben.protobuf.cim.iec61968.assets.Pole result = new com.zepben.protobuf.cim.iec61968.assets.Pole(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61968.assets.Pole result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.st_ = stBuilder_ == null
? st_
: stBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
streetlightMRIDs_.makeImmutable();
result.streetlightMRIDs_ = streetlightMRIDs_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.classification_ = classification_;
}
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.assets.Pole) {
return mergeFrom((com.zepben.protobuf.cim.iec61968.assets.Pole)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61968.assets.Pole other) {
if (other == com.zepben.protobuf.cim.iec61968.assets.Pole.getDefaultInstance()) return this;
if (other.hasSt()) {
mergeSt(other.getSt());
}
if (!other.streetlightMRIDs_.isEmpty()) {
if (streetlightMRIDs_.isEmpty()) {
streetlightMRIDs_ = other.streetlightMRIDs_;
bitField0_ |= 0x00000002;
} else {
ensureStreetlightMRIDsIsMutable();
streetlightMRIDs_.addAll(other.streetlightMRIDs_);
}
onChanged();
}
if (!other.getClassification().isEmpty()) {
classification_ = other.classification_;
bitField0_ |= 0x00000004;
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(
getStFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureStreetlightMRIDsIsMutable();
streetlightMRIDs_.add(s);
break;
} // case 18
case 26: {
classification_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
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.iec61968.assets.Structure st_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61968.assets.Structure, com.zepben.protobuf.cim.iec61968.assets.Structure.Builder, com.zepben.protobuf.cim.iec61968.assets.StructureOrBuilder> stBuilder_;
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Structure st = 1;
* @return Whether the st field is set.
*/
public boolean hasSt() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Structure st = 1;
* @return The st.
*/
public com.zepben.protobuf.cim.iec61968.assets.Structure getSt() {
if (stBuilder_ == null) {
return st_ == null ? com.zepben.protobuf.cim.iec61968.assets.Structure.getDefaultInstance() : st_;
} else {
return stBuilder_.getMessage();
}
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Structure st = 1;
*/
public Builder setSt(com.zepben.protobuf.cim.iec61968.assets.Structure value) {
if (stBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
st_ = value;
} else {
stBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Structure st = 1;
*/
public Builder setSt(
com.zepben.protobuf.cim.iec61968.assets.Structure.Builder builderForValue) {
if (stBuilder_ == null) {
st_ = builderForValue.build();
} else {
stBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Structure st = 1;
*/
public Builder mergeSt(com.zepben.protobuf.cim.iec61968.assets.Structure value) {
if (stBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
st_ != null &&
st_ != com.zepben.protobuf.cim.iec61968.assets.Structure.getDefaultInstance()) {
getStBuilder().mergeFrom(value);
} else {
st_ = value;
}
} else {
stBuilder_.mergeFrom(value);
}
if (st_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Structure st = 1;
*/
public Builder clearSt() {
bitField0_ = (bitField0_ & ~0x00000001);
st_ = null;
if (stBuilder_ != null) {
stBuilder_.dispose();
stBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Structure st = 1;
*/
public com.zepben.protobuf.cim.iec61968.assets.Structure.Builder getStBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getStFieldBuilder().getBuilder();
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Structure st = 1;
*/
public com.zepben.protobuf.cim.iec61968.assets.StructureOrBuilder getStOrBuilder() {
if (stBuilder_ != null) {
return stBuilder_.getMessageOrBuilder();
} else {
return st_ == null ?
com.zepben.protobuf.cim.iec61968.assets.Structure.getDefaultInstance() : st_;
}
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Structure st = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61968.assets.Structure, com.zepben.protobuf.cim.iec61968.assets.Structure.Builder, com.zepben.protobuf.cim.iec61968.assets.StructureOrBuilder>
getStFieldBuilder() {
if (stBuilder_ == null) {
stBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61968.assets.Structure, com.zepben.protobuf.cim.iec61968.assets.Structure.Builder, com.zepben.protobuf.cim.iec61968.assets.StructureOrBuilder>(
getSt(),
getParentForChildren(),
isClean());
st_ = null;
}
return stBuilder_;
}
private com.google.protobuf.LazyStringArrayList streetlightMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureStreetlightMRIDsIsMutable() {
if (!streetlightMRIDs_.isModifiable()) {
streetlightMRIDs_ = new com.google.protobuf.LazyStringArrayList(streetlightMRIDs_);
}
bitField0_ |= 0x00000002;
}
/**
*
**
* The streetlights associated with this Pole.
*
*
* repeated string streetlightMRIDs = 2;
* @return A list containing the streetlightMRIDs.
*/
public com.google.protobuf.ProtocolStringList
getStreetlightMRIDsList() {
streetlightMRIDs_.makeImmutable();
return streetlightMRIDs_;
}
/**
*
**
* The streetlights associated with this Pole.
*
*
* repeated string streetlightMRIDs = 2;
* @return The count of streetlightMRIDs.
*/
public int getStreetlightMRIDsCount() {
return streetlightMRIDs_.size();
}
/**
*
**
* The streetlights associated with this Pole.
*
*
* repeated string streetlightMRIDs = 2;
* @param index The index of the element to return.
* @return The streetlightMRIDs at the given index.
*/
public java.lang.String getStreetlightMRIDs(int index) {
return streetlightMRIDs_.get(index);
}
/**
*
**
* The streetlights associated with this Pole.
*
*
* repeated string streetlightMRIDs = 2;
* @param index The index of the value to return.
* @return The bytes of the streetlightMRIDs at the given index.
*/
public com.google.protobuf.ByteString
getStreetlightMRIDsBytes(int index) {
return streetlightMRIDs_.getByteString(index);
}
/**
*
**
* The streetlights associated with this Pole.
*
*
* repeated string streetlightMRIDs = 2;
* @param index The index to set the value at.
* @param value The streetlightMRIDs to set.
* @return This builder for chaining.
*/
public Builder setStreetlightMRIDs(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureStreetlightMRIDsIsMutable();
streetlightMRIDs_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The streetlights associated with this Pole.
*
*
* repeated string streetlightMRIDs = 2;
* @param value The streetlightMRIDs to add.
* @return This builder for chaining.
*/
public Builder addStreetlightMRIDs(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureStreetlightMRIDsIsMutable();
streetlightMRIDs_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The streetlights associated with this Pole.
*
*
* repeated string streetlightMRIDs = 2;
* @param values The streetlightMRIDs to add.
* @return This builder for chaining.
*/
public Builder addAllStreetlightMRIDs(
java.lang.Iterable values) {
ensureStreetlightMRIDsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, streetlightMRIDs_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The streetlights associated with this Pole.
*
*
* repeated string streetlightMRIDs = 2;
* @return This builder for chaining.
*/
public Builder clearStreetlightMRIDs() {
streetlightMRIDs_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
**
* The streetlights associated with this Pole.
*
*
* repeated string streetlightMRIDs = 2;
* @param value The bytes of the streetlightMRIDs to add.
* @return This builder for chaining.
*/
public Builder addStreetlightMRIDsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureStreetlightMRIDsIsMutable();
streetlightMRIDs_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object classification_ = "";
/**
*
**
* Pole class: 1, 2, 3, 4, 5, 6, 7, H1, H2, Other, Unknown.
*
*
* string classification = 3;
* @return The classification.
*/
public java.lang.String getClassification() {
java.lang.Object ref = classification_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
classification_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* Pole class: 1, 2, 3, 4, 5, 6, 7, H1, H2, Other, Unknown.
*
*
* string classification = 3;
* @return The bytes for classification.
*/
public com.google.protobuf.ByteString
getClassificationBytes() {
java.lang.Object ref = classification_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
classification_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* Pole class: 1, 2, 3, 4, 5, 6, 7, H1, H2, Other, Unknown.
*
*
* string classification = 3;
* @param value The classification to set.
* @return This builder for chaining.
*/
public Builder setClassification(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
classification_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Pole class: 1, 2, 3, 4, 5, 6, 7, H1, H2, Other, Unknown.
*
*
* string classification = 3;
* @return This builder for chaining.
*/
public Builder clearClassification() {
classification_ = getDefaultInstance().getClassification();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
**
* Pole class: 1, 2, 3, 4, 5, 6, 7, H1, H2, Other, Unknown.
*
*
* string classification = 3;
* @param value The bytes for classification to set.
* @return This builder for chaining.
*/
public Builder setClassificationBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
classification_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:zepben.protobuf.cim.iec61968.assets.Pole)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61968.assets.Pole)
private static final com.zepben.protobuf.cim.iec61968.assets.Pole DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61968.assets.Pole();
}
public static com.zepben.protobuf.cim.iec61968.assets.Pole getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Pole 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.assets.Pole getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}