com.zepben.protobuf.cim.iec61968.common.StreetDetail 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/common/StreetDetail.proto
package com.zepben.protobuf.cim.iec61968.common;
/**
*
**
* Street details, in the context of address.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61968.common.StreetDetail}
*/
public final class StreetDetail extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61968.common.StreetDetail)
StreetDetailOrBuilder {
private static final long serialVersionUID = 0L;
// Use StreetDetail.newBuilder() to construct.
private StreetDetail(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreetDetail() {
buildingName_ = "";
floorIdentification_ = "";
name_ = "";
number_ = "";
suiteNumber_ = "";
type_ = "";
displayAddress_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StreetDetail();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61968.common.StreetDetailOuterClass.internal_static_zepben_protobuf_cim_iec61968_common_StreetDetail_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61968.common.StreetDetailOuterClass.internal_static_zepben_protobuf_cim_iec61968_common_StreetDetail_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61968.common.StreetDetail.class, com.zepben.protobuf.cim.iec61968.common.StreetDetail.Builder.class);
}
public static final int BUILDINGNAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object buildingName_ = "";
/**
*
**
* (if applicable) In certain cases the physical location of the place of interest does not have a direct point of
* entry from the street, but may be located inside a larger structure such as a building, complex, office block,
* apartment, etc.
*
*
* string buildingName = 1;
* @return The buildingName.
*/
@java.lang.Override
public java.lang.String getBuildingName() {
java.lang.Object ref = buildingName_;
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();
buildingName_ = s;
return s;
}
}
/**
*
**
* (if applicable) In certain cases the physical location of the place of interest does not have a direct point of
* entry from the street, but may be located inside a larger structure such as a building, complex, office block,
* apartment, etc.
*
*
* string buildingName = 1;
* @return The bytes for buildingName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBuildingNameBytes() {
java.lang.Object ref = buildingName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
buildingName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FLOORIDENTIFICATION_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object floorIdentification_ = "";
/**
*
**
* The identification by name or number, expressed as text, of the floor in the building as part of this address.
*
*
* string floorIdentification = 2;
* @return The floorIdentification.
*/
@java.lang.Override
public java.lang.String getFloorIdentification() {
java.lang.Object ref = floorIdentification_;
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();
floorIdentification_ = s;
return s;
}
}
/**
*
**
* The identification by name or number, expressed as text, of the floor in the building as part of this address.
*
*
* string floorIdentification = 2;
* @return The bytes for floorIdentification.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFloorIdentificationBytes() {
java.lang.Object ref = floorIdentification_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
floorIdentification_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
**
* Name of the street.
*
*
* string name = 3;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
**
* Name of the street.
*
*
* string name = 3;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NUMBER_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object number_ = "";
/**
*
**
* Designator of the specific location on the street.
*
*
* string number = 4;
* @return The number.
*/
@java.lang.Override
public java.lang.String getNumber() {
java.lang.Object ref = number_;
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();
number_ = s;
return s;
}
}
/**
*
**
* Designator of the specific location on the street.
*
*
* string number = 4;
* @return The bytes for number.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNumberBytes() {
java.lang.Object ref = number_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
number_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUITENUMBER_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object suiteNumber_ = "";
/**
*
**
* Number of the apartment or suite.
*
*
* string suiteNumber = 5;
* @return The suiteNumber.
*/
@java.lang.Override
public java.lang.String getSuiteNumber() {
java.lang.Object ref = suiteNumber_;
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();
suiteNumber_ = s;
return s;
}
}
/**
*
**
* Number of the apartment or suite.
*
*
* string suiteNumber = 5;
* @return The bytes for suiteNumber.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSuiteNumberBytes() {
java.lang.Object ref = suiteNumber_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
suiteNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object type_ = "";
/**
*
**
* Type of street. Examples include: street, circle, boulevard, avenue, road, drive, etc.
*
*
* string type = 6;
* @return The type.
*/
@java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
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();
type_ = s;
return s;
}
}
/**
*
**
* Type of street. Examples include: street, circle, boulevard, avenue, road, drive, etc.
*
*
* string type = 6;
* @return The bytes for type.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISPLAYADDRESS_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object displayAddress_ = "";
/**
*
**
* The address as it should be displayed to a user.
*
*
* string displayAddress = 7;
* @return The displayAddress.
*/
@java.lang.Override
public java.lang.String getDisplayAddress() {
java.lang.Object ref = displayAddress_;
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();
displayAddress_ = s;
return s;
}
}
/**
*
**
* The address as it should be displayed to a user.
*
*
* string displayAddress = 7;
* @return The bytes for displayAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDisplayAddressBytes() {
java.lang.Object ref = displayAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
displayAddress_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildingName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, buildingName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(floorIdentification_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, floorIdentification_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(number_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, number_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suiteNumber_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, suiteNumber_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, displayAddress_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(buildingName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, buildingName_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(floorIdentification_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, floorIdentification_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(number_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, number_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suiteNumber_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, suiteNumber_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, type_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, displayAddress_);
}
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.StreetDetail)) {
return super.equals(obj);
}
com.zepben.protobuf.cim.iec61968.common.StreetDetail other = (com.zepben.protobuf.cim.iec61968.common.StreetDetail) obj;
if (!getBuildingName()
.equals(other.getBuildingName())) return false;
if (!getFloorIdentification()
.equals(other.getFloorIdentification())) return false;
if (!getName()
.equals(other.getName())) return false;
if (!getNumber()
.equals(other.getNumber())) return false;
if (!getSuiteNumber()
.equals(other.getSuiteNumber())) return false;
if (!getType()
.equals(other.getType())) return false;
if (!getDisplayAddress()
.equals(other.getDisplayAddress())) 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();
hash = (37 * hash) + BUILDINGNAME_FIELD_NUMBER;
hash = (53 * hash) + getBuildingName().hashCode();
hash = (37 * hash) + FLOORIDENTIFICATION_FIELD_NUMBER;
hash = (53 * hash) + getFloorIdentification().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getNumber().hashCode();
hash = (37 * hash) + SUITENUMBER_FIELD_NUMBER;
hash = (53 * hash) + getSuiteNumber().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (37 * hash) + DISPLAYADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getDisplayAddress().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.zepben.protobuf.cim.iec61968.common.StreetDetail parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61968.common.StreetDetail 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.StreetDetail parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61968.common.StreetDetail 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.StreetDetail parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.zepben.protobuf.cim.iec61968.common.StreetDetail 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.StreetDetail 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.StreetDetail 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.StreetDetail 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.StreetDetail 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.StreetDetail 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.StreetDetail 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.StreetDetail 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;
}
/**
*
**
* Street details, in the context of address.
*
*
* Protobuf type {@code zepben.protobuf.cim.iec61968.common.StreetDetail}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61968.common.StreetDetail)
com.zepben.protobuf.cim.iec61968.common.StreetDetailOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.zepben.protobuf.cim.iec61968.common.StreetDetailOuterClass.internal_static_zepben_protobuf_cim_iec61968_common_StreetDetail_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.zepben.protobuf.cim.iec61968.common.StreetDetailOuterClass.internal_static_zepben_protobuf_cim_iec61968_common_StreetDetail_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.zepben.protobuf.cim.iec61968.common.StreetDetail.class, com.zepben.protobuf.cim.iec61968.common.StreetDetail.Builder.class);
}
// Construct using com.zepben.protobuf.cim.iec61968.common.StreetDetail.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
buildingName_ = "";
floorIdentification_ = "";
name_ = "";
number_ = "";
suiteNumber_ = "";
type_ = "";
displayAddress_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.zepben.protobuf.cim.iec61968.common.StreetDetailOuterClass.internal_static_zepben_protobuf_cim_iec61968_common_StreetDetail_descriptor;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.common.StreetDetail getDefaultInstanceForType() {
return com.zepben.protobuf.cim.iec61968.common.StreetDetail.getDefaultInstance();
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.common.StreetDetail build() {
com.zepben.protobuf.cim.iec61968.common.StreetDetail result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.zepben.protobuf.cim.iec61968.common.StreetDetail buildPartial() {
com.zepben.protobuf.cim.iec61968.common.StreetDetail result = new com.zepben.protobuf.cim.iec61968.common.StreetDetail(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.zepben.protobuf.cim.iec61968.common.StreetDetail result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.buildingName_ = buildingName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.floorIdentification_ = floorIdentification_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.number_ = number_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.suiteNumber_ = suiteNumber_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.type_ = type_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.displayAddress_ = displayAddress_;
}
}
@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.StreetDetail) {
return mergeFrom((com.zepben.protobuf.cim.iec61968.common.StreetDetail)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.zepben.protobuf.cim.iec61968.common.StreetDetail other) {
if (other == com.zepben.protobuf.cim.iec61968.common.StreetDetail.getDefaultInstance()) return this;
if (!other.getBuildingName().isEmpty()) {
buildingName_ = other.buildingName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getFloorIdentification().isEmpty()) {
floorIdentification_ = other.floorIdentification_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getNumber().isEmpty()) {
number_ = other.number_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.getSuiteNumber().isEmpty()) {
suiteNumber_ = other.suiteNumber_;
bitField0_ |= 0x00000010;
onChanged();
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.getDisplayAddress().isEmpty()) {
displayAddress_ = other.displayAddress_;
bitField0_ |= 0x00000040;
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: {
buildingName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
floorIdentification_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
number_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
suiteNumber_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
type_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
displayAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000040;
break;
} // case 58
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 java.lang.Object buildingName_ = "";
/**
*
**
* (if applicable) In certain cases the physical location of the place of interest does not have a direct point of
* entry from the street, but may be located inside a larger structure such as a building, complex, office block,
* apartment, etc.
*
*
* string buildingName = 1;
* @return The buildingName.
*/
public java.lang.String getBuildingName() {
java.lang.Object ref = buildingName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
buildingName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* (if applicable) In certain cases the physical location of the place of interest does not have a direct point of
* entry from the street, but may be located inside a larger structure such as a building, complex, office block,
* apartment, etc.
*
*
* string buildingName = 1;
* @return The bytes for buildingName.
*/
public com.google.protobuf.ByteString
getBuildingNameBytes() {
java.lang.Object ref = buildingName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
buildingName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* (if applicable) In certain cases the physical location of the place of interest does not have a direct point of
* entry from the street, but may be located inside a larger structure such as a building, complex, office block,
* apartment, etc.
*
*
* string buildingName = 1;
* @param value The buildingName to set.
* @return This builder for chaining.
*/
public Builder setBuildingName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
buildingName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
**
* (if applicable) In certain cases the physical location of the place of interest does not have a direct point of
* entry from the street, but may be located inside a larger structure such as a building, complex, office block,
* apartment, etc.
*
*
* string buildingName = 1;
* @return This builder for chaining.
*/
public Builder clearBuildingName() {
buildingName_ = getDefaultInstance().getBuildingName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
**
* (if applicable) In certain cases the physical location of the place of interest does not have a direct point of
* entry from the street, but may be located inside a larger structure such as a building, complex, office block,
* apartment, etc.
*
*
* string buildingName = 1;
* @param value The bytes for buildingName to set.
* @return This builder for chaining.
*/
public Builder setBuildingNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
buildingName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object floorIdentification_ = "";
/**
*
**
* The identification by name or number, expressed as text, of the floor in the building as part of this address.
*
*
* string floorIdentification = 2;
* @return The floorIdentification.
*/
public java.lang.String getFloorIdentification() {
java.lang.Object ref = floorIdentification_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
floorIdentification_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The identification by name or number, expressed as text, of the floor in the building as part of this address.
*
*
* string floorIdentification = 2;
* @return The bytes for floorIdentification.
*/
public com.google.protobuf.ByteString
getFloorIdentificationBytes() {
java.lang.Object ref = floorIdentification_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
floorIdentification_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The identification by name or number, expressed as text, of the floor in the building as part of this address.
*
*
* string floorIdentification = 2;
* @param value The floorIdentification to set.
* @return This builder for chaining.
*/
public Builder setFloorIdentification(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
floorIdentification_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
**
* The identification by name or number, expressed as text, of the floor in the building as part of this address.
*
*
* string floorIdentification = 2;
* @return This builder for chaining.
*/
public Builder clearFloorIdentification() {
floorIdentification_ = getDefaultInstance().getFloorIdentification();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
**
* The identification by name or number, expressed as text, of the floor in the building as part of this address.
*
*
* string floorIdentification = 2;
* @param value The bytes for floorIdentification to set.
* @return This builder for chaining.
*/
public Builder setFloorIdentificationBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
floorIdentification_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
**
* Name of the street.
*
*
* string name = 3;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* Name of the street.
*
*
* string name = 3;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* Name of the street.
*
*
* string name = 3;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* Name of the street.
*
*
* string name = 3;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
**
* Name of the street.
*
*
* string name = 3;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object number_ = "";
/**
*
**
* Designator of the specific location on the street.
*
*
* string number = 4;
* @return The number.
*/
public java.lang.String getNumber() {
java.lang.Object ref = number_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
number_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* Designator of the specific location on the street.
*
*
* string number = 4;
* @return The bytes for number.
*/
public com.google.protobuf.ByteString
getNumberBytes() {
java.lang.Object ref = number_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
number_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* Designator of the specific location on the street.
*
*
* string number = 4;
* @param value The number to set.
* @return This builder for chaining.
*/
public Builder setNumber(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
number_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
**
* Designator of the specific location on the street.
*
*
* string number = 4;
* @return This builder for chaining.
*/
public Builder clearNumber() {
number_ = getDefaultInstance().getNumber();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
**
* Designator of the specific location on the street.
*
*
* string number = 4;
* @param value The bytes for number to set.
* @return This builder for chaining.
*/
public Builder setNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
number_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object suiteNumber_ = "";
/**
*
**
* Number of the apartment or suite.
*
*
* string suiteNumber = 5;
* @return The suiteNumber.
*/
public java.lang.String getSuiteNumber() {
java.lang.Object ref = suiteNumber_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
suiteNumber_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* Number of the apartment or suite.
*
*
* string suiteNumber = 5;
* @return The bytes for suiteNumber.
*/
public com.google.protobuf.ByteString
getSuiteNumberBytes() {
java.lang.Object ref = suiteNumber_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
suiteNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* Number of the apartment or suite.
*
*
* string suiteNumber = 5;
* @param value The suiteNumber to set.
* @return This builder for chaining.
*/
public Builder setSuiteNumber(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
suiteNumber_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
**
* Number of the apartment or suite.
*
*
* string suiteNumber = 5;
* @return This builder for chaining.
*/
public Builder clearSuiteNumber() {
suiteNumber_ = getDefaultInstance().getSuiteNumber();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
**
* Number of the apartment or suite.
*
*
* string suiteNumber = 5;
* @param value The bytes for suiteNumber to set.
* @return This builder for chaining.
*/
public Builder setSuiteNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
suiteNumber_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
**
* Type of street. Examples include: street, circle, boulevard, avenue, road, drive, etc.
*
*
* string type = 6;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* Type of street. Examples include: street, circle, boulevard, avenue, road, drive, etc.
*
*
* string type = 6;
* @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* Type of street. Examples include: street, circle, boulevard, avenue, road, drive, etc.
*
*
* string type = 6;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
type_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
**
* Type of street. Examples include: street, circle, boulevard, avenue, road, drive, etc.
*
*
* string type = 6;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
**
* Type of street. Examples include: street, circle, boulevard, avenue, road, drive, etc.
*
*
* string type = 6;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
type_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object displayAddress_ = "";
/**
*
**
* The address as it should be displayed to a user.
*
*
* string displayAddress = 7;
* @return The displayAddress.
*/
public java.lang.String getDisplayAddress() {
java.lang.Object ref = displayAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
displayAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
**
* The address as it should be displayed to a user.
*
*
* string displayAddress = 7;
* @return The bytes for displayAddress.
*/
public com.google.protobuf.ByteString
getDisplayAddressBytes() {
java.lang.Object ref = displayAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
displayAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
**
* The address as it should be displayed to a user.
*
*
* string displayAddress = 7;
* @param value The displayAddress to set.
* @return This builder for chaining.
*/
public Builder setDisplayAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
displayAddress_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
**
* The address as it should be displayed to a user.
*
*
* string displayAddress = 7;
* @return This builder for chaining.
*/
public Builder clearDisplayAddress() {
displayAddress_ = getDefaultInstance().getDisplayAddress();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
**
* The address as it should be displayed to a user.
*
*
* string displayAddress = 7;
* @param value The bytes for displayAddress to set.
* @return This builder for chaining.
*/
public Builder setDisplayAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
displayAddress_ = value;
bitField0_ |= 0x00000040;
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.common.StreetDetail)
}
// @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61968.common.StreetDetail)
private static final com.zepben.protobuf.cim.iec61968.common.StreetDetail DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61968.common.StreetDetail();
}
public static com.zepben.protobuf.cim.iec61968.common.StreetDetail getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StreetDetail 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.StreetDetail getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}