com.zepben.protobuf.cim.iec61968.assets.Streetlight 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/Streetlight.proto
package com.zepben.protobuf.cim.iec61968.assets;
/**
*
**
* A Streetlight asset.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61968.assets.Streetlight}
*/
public final class Streetlight extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61968.assets.Streetlight)
StreetlightOrBuilder {
private static final long serialVersionUID = 0L;
// Use Streetlight.newBuilder() to construct.
private Streetlight(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Streetlight() {
poleMRID_ = "";
lampKind_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Streetlight();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61968.assets.StreetlightOuterClass.internal_static_zepben_protobuf_cim_iec61968_assets_Streetlight_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61968.assets.StreetlightOuterClass.internal_static_zepben_protobuf_cim_iec61968_assets_Streetlight_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61968.assets.Streetlight.class, com.zepben.protobuf.cim.iec61968.assets.Streetlight.Builder.class);
}
private int bitField0_;
public static final int AT_FIELD_NUMBER = 1;
private com.zepben.protobuf.cim.iec61968.assets.Asset at_;
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Asset at = 1;
* @return Whether the at field is set.
*/
@java.lang.Override
public boolean hasAt() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Asset at = 1;
* @return The at.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.assets.Asset getAt() {
return at_ == null ? com.zepben.protobuf.cim.iec61968.assets.Asset.getDefaultInstance() : at_;
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Asset at = 1;
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.assets.AssetOrBuilder getAtOrBuilder() {
return at_ == null ? com.zepben.protobuf.cim.iec61968.assets.Asset.getDefaultInstance() : at_;
}
public static final int POLEMRID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object poleMRID_ = "";
/**
*
**
* The Pole this Streetlight is attached to.
*
*
* string poleMRID = 2;
* @return The poleMRID.
*/
@java.lang.Override
public java.lang.String getPoleMRID() {
java.lang.Object ref = poleMRID_;
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();
poleMRID_ = s;
return s;
}
}
/**
*
**
* The Pole this Streetlight is attached to.
*
*
* string poleMRID = 2;
* @return The bytes for poleMRID.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPoleMRIDBytes() {
java.lang.Object ref = poleMRID_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
poleMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LAMPKIND_FIELD_NUMBER = 3;
private int lampKind_ = 0;
/**
*
**
* The kind of lamp for this Streetlight
*
*
* .zepben.protobuf.cim.iec61968.assets.StreetlightLampKind lampKind = 3;
* @return The enum numeric value on the wire for lampKind.
*/
@java.lang.Override public int getLampKindValue() {
return lampKind_;
}
/**
*
**
* The kind of lamp for this Streetlight
*
*
* .zepben.protobuf.cim.iec61968.assets.StreetlightLampKind lampKind = 3;
* @return The lampKind.
*/
@java.lang.Override public com.zepben.protobuf.cim.iec61968.assets.StreetlightLampKind getLampKind() {
com.zepben.protobuf.cim.iec61968.assets.StreetlightLampKind result = com.zepben.protobuf.cim.iec61968.assets.StreetlightLampKind.forNumber(lampKind_);
return result == null ? com.zepben.protobuf.cim.iec61968.assets.StreetlightLampKind.UNRECOGNIZED : result;
}
public static final int LIGHTRATING_FIELD_NUMBER = 4;
private int lightRating_ = 0;
/**
*
**
* The power rating of the light.
*
*
* uint32 lightRating = 4;
* @return The lightRating.
*/
@java.lang.Override
public int getLightRating() {
return lightRating_;
}
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, getAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(poleMRID_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, poleMRID_);
}
if (lampKind_ != com.zepben.protobuf.cim.iec61968.assets.StreetlightLampKind.UNKNOWN.getNumber()) {
output.writeEnum(3, lampKind_);
}
if (lightRating_ != 0) {
output.writeUInt32(4, lightRating_);
}
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, getAt());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(poleMRID_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, poleMRID_);
}
if (lampKind_ != com.zepben.protobuf.cim.iec61968.assets.StreetlightLampKind.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, lampKind_);
}
if (lightRating_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, lightRating_);
}
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.Streetlight)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61968.assets.Streetlight other = (com.zepben.protobuf.cim.iec61968.assets.Streetlight) obj;
if (hasAt() != other.hasAt()) return false;
if (hasAt()) {
if (!getAt()
.equals(other.getAt())) return false;
}
if (!getPoleMRID()
.equals(other.getPoleMRID())) return false;
if (lampKind_ != other.lampKind_) return false;
if (getLightRating()
!= other.getLightRating()) 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 (hasAt()) {
hash = (37 * hash) + AT_FIELD_NUMBER;
hash = (53 * hash) + getAt().hashCode();
}
hash = (37 * hash) + POLEMRID_FIELD_NUMBER;
hash = (53 * hash) + getPoleMRID().hashCode();
hash = (37 * hash) + LAMPKIND_FIELD_NUMBER;
hash = (53 * hash) + lampKind_;
hash = (37 * hash) + LIGHTRATING_FIELD_NUMBER;
hash = (53 * hash) + getLightRating();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61968.assets.Streetlight parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61968.assets.Streetlight 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.Streetlight parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61968.assets.Streetlight 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.Streetlight parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61968.assets.Streetlight 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.Streetlight 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.Streetlight 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.Streetlight 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.Streetlight 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.Streetlight 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.Streetlight 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.Streetlight 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 Streetlight asset.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61968.assets.Streetlight}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61968.assets.Streetlight)
com.zepben.protobuf.cim.iec61968.assets.StreetlightOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61968.assets.StreetlightOuterClass.internal_static_zepben_protobuf_cim_iec61968_assets_Streetlight_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61968.assets.StreetlightOuterClass.internal_static_zepben_protobuf_cim_iec61968_assets_Streetlight_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61968.assets.Streetlight.class, com.zepben.protobuf.cim.iec61968.assets.Streetlight.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61968.assets.Streetlight.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAtFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
at_ = null;
if (atBuilder_ != null) {
atBuilder_.dispose();
atBuilder_ = null;
}
poleMRID_ = "";
lampKind_ = 0;
lightRating_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61968.assets.StreetlightOuterClass.internal_static_zepben_protobuf_cim_iec61968_assets_Streetlight_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.assets.Streetlight getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61968.assets.Streetlight.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.assets.Streetlight build() {
com.zepben.protobuf.cim.iec61968.assets.Streetlight result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.assets.Streetlight buildPartial() {
com.zepben.protobuf.cim.iec61968.assets.Streetlight result = new com.zepben.protobuf.cim.iec61968.assets.Streetlight(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61968.assets.Streetlight result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.at_ = atBuilder_ == null
? at_
: atBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.poleMRID_ = poleMRID_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.lampKind_ = lampKind_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.lightRating_ = lightRating_;
}
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.Streetlight) {
return mergeFrom((com.zepben.protobuf.cim.iec61968.assets.Streetlight)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61968.assets.Streetlight other) {
if (other == com.zepben.protobuf.cim.iec61968.assets.Streetlight.getDefaultInstance()) return this;
if (other.hasAt()) {
mergeAt(other.getAt());
}
if (!other.getPoleMRID().isEmpty()) {
poleMRID_ = other.poleMRID_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.lampKind_ != 0) {
setLampKindValue(other.getLampKindValue());
}
if (other.getLightRating() != 0) {
setLightRating(other.getLightRating());
}
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(
getAtFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
poleMRID_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
lampKind_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
lightRating_ = input.readUInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
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.Asset at_;
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61968.assets.Asset, com.zepben.protobuf.cim.iec61968.assets.Asset.Builder, com.zepben.protobuf.cim.iec61968.assets.AssetOrBuilder> atBuilder_;
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Asset at = 1;
* @return Whether the at field is set.
*/
public boolean hasAt() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Asset at = 1;
* @return The at.
*/
public com.zepben.protobuf.cim.iec61968.assets.Asset getAt() {
if (atBuilder_ == null) {
return at_ == null ? com.zepben.protobuf.cim.iec61968.assets.Asset.getDefaultInstance() : at_;
} else {
return atBuilder_.getMessage();
}
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Asset at = 1;
*/
public Builder setAt(com.zepben.protobuf.cim.iec61968.assets.Asset value) {
if (atBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
at_ = value;
} else {
atBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Asset at = 1;
*/
public Builder setAt(
com.zepben.protobuf.cim.iec61968.assets.Asset.Builder builderForValue) {
if (atBuilder_ == null) {
at_ = builderForValue.build();
} else {
atBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Asset at = 1;
*/
public Builder mergeAt(com.zepben.protobuf.cim.iec61968.assets.Asset value) {
if (atBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
at_ != null &&
at_ != com.zepben.protobuf.cim.iec61968.assets.Asset.getDefaultInstance()) {
getAtBuilder().mergeFrom(value);
} else {
at_ = value;
}
} else {
atBuilder_.mergeFrom(value);
}
if (at_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Asset at = 1;
*/
public Builder clearAt() {
bitField0_ = (bitField0_ & ~0x00000001);
at_ = null;
if (atBuilder_ != null) {
atBuilder_.dispose();
atBuilder_ = null;
}
onChanged();
return this;
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Asset at = 1;
*/
public com.zepben.protobuf.cim.iec61968.assets.Asset.Builder getAtBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAtFieldBuilder().getBuilder();
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Asset at = 1;
*/
public com.zepben.protobuf.cim.iec61968.assets.AssetOrBuilder getAtOrBuilder() {
if (atBuilder_ != null) {
return atBuilder_.getMessageOrBuilder();
} else {
return at_ == null ?
com.zepben.protobuf.cim.iec61968.assets.Asset.getDefaultInstance() : at_;
}
}
/**
*
**
* The Structure fields for this Pole
*
*
* .zepben.protobuf.cim.iec61968.assets.Asset at = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61968.assets.Asset, com.zepben.protobuf.cim.iec61968.assets.Asset.Builder, com.zepben.protobuf.cim.iec61968.assets.AssetOrBuilder>
getAtFieldBuilder() {
if (atBuilder_ == null) {
atBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.zepben.protobuf.cim.iec61968.assets.Asset, com.zepben.protobuf.cim.iec61968.assets.Asset.Builder, com.zepben.protobuf.cim.iec61968.assets.AssetOrBuilder>(
getAt(),
getParentForChildren(),
isClean());
at_ = null;
}
return atBuilder_;
}
private java.lang.Object poleMRID_ = "";
/**
*
**
* The Pole this Streetlight is attached to.
*
*
* string poleMRID = 2;
* @return The poleMRID.
*/
public java.lang.String getPoleMRID() {
java.lang.Object ref = poleMRID_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
poleMRID_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The Pole this Streetlight is attached to.
*
*
* string poleMRID = 2;
* @return The bytes for poleMRID.
*/
public com.google.protobuf.ByteString
getPoleMRIDBytes() {
java.lang.Object ref = poleMRID_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
poleMRID_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The Pole this Streetlight is attached to.
*
*
* string poleMRID = 2;
* @param value The poleMRID to set.
* @return This builder for chaining.
*/
public Builder setPoleMRID(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
poleMRID_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The Pole this Streetlight is attached to.
*
*
* string poleMRID = 2;
* @return This builder for chaining.
*/
public Builder clearPoleMRID() {
poleMRID_ = getDefaultInstance().getPoleMRID();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
**
* The Pole this Streetlight is attached to.
*
*
* string poleMRID = 2;
* @param value The bytes for poleMRID to set.
* @return This builder for chaining.
*/
public Builder setPoleMRIDBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
poleMRID_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int lampKind_ = 0;
/**
*
**
* The kind of lamp for this Streetlight
*
*
* .zepben.protobuf.cim.iec61968.assets.StreetlightLampKind lampKind = 3;
* @return The enum numeric value on the wire for lampKind.
*/
@java.lang.Override public int getLampKindValue() {
return lampKind_;
}
/**
*
**
* The kind of lamp for this Streetlight
*
*
* .zepben.protobuf.cim.iec61968.assets.StreetlightLampKind lampKind = 3;
* @param value The enum numeric value on the wire for lampKind to set.
* @return This builder for chaining.
*/
public Builder setLampKindValue(int value) {
lampKind_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The kind of lamp for this Streetlight
*
*
* .zepben.protobuf.cim.iec61968.assets.StreetlightLampKind lampKind = 3;
* @return The lampKind.
*/
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.assets.StreetlightLampKind getLampKind() {
com.zepben.protobuf.cim.iec61968.assets.StreetlightLampKind result = com.zepben.protobuf.cim.iec61968.assets.StreetlightLampKind.forNumber(lampKind_);
return result == null ? com.zepben.protobuf.cim.iec61968.assets.StreetlightLampKind.UNRECOGNIZED : result;
}
/**
*
**
* The kind of lamp for this Streetlight
*
*
* .zepben.protobuf.cim.iec61968.assets.StreetlightLampKind lampKind = 3;
* @param value The lampKind to set.
* @return This builder for chaining.
*/
public Builder setLampKind(com.zepben.protobuf.cim.iec61968.assets.StreetlightLampKind value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
lampKind_ = value.getNumber();
onChanged();
return this;
}
/**
*
**
* The kind of lamp for this Streetlight
*
*
* .zepben.protobuf.cim.iec61968.assets.StreetlightLampKind lampKind = 3;
* @return This builder for chaining.
*/
public Builder clearLampKind() {
bitField0_ = (bitField0_ & ~0x00000004);
lampKind_ = 0;
onChanged();
return this;
}
private int lightRating_ ;
/**
*
**
* The power rating of the light.
*
*
* uint32 lightRating = 4;
* @return The lightRating.
*/
@java.lang.Override
public int getLightRating() {
return lightRating_;
}
/**
*
**
* The power rating of the light.
*
*
* uint32 lightRating = 4;
* @param value The lightRating to set.
* @return This builder for chaining.
*/
public Builder setLightRating(int value) {
lightRating_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* The power rating of the light.
*
*
* uint32 lightRating = 4;
* @return This builder for chaining.
*/
public Builder clearLightRating() {
bitField0_ = (bitField0_ & ~0x00000008);
lightRating_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:zepben.protobuf.cim.iec61968.assets.Streetlight)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61968.assets.Streetlight)
private static final com.zepben.protobuf.cim.iec61968.assets.Streetlight DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61968.assets.Streetlight();
}
public static com.zepben.protobuf.cim.iec61968.assets.Streetlight getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Streetlight 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.Streetlight getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}