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

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

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

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

/**
 * 
 **
 * General purpose street and postal address information.
 * 
* * Protobuf type {@code zepben.protobuf.cim.iec61968.common.StreetAddress} */ public final class StreetAddress extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:zepben.protobuf.cim.iec61968.common.StreetAddress) StreetAddressOrBuilder { private static final long serialVersionUID = 0L; // Use StreetAddress.newBuilder() to construct. private StreetAddress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreetAddress() { postalCode_ = ""; poBox_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreetAddress(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61968.common.StreetAddressOuterClass.internal_static_zepben_protobuf_cim_iec61968_common_StreetAddress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61968.common.StreetAddressOuterClass.internal_static_zepben_protobuf_cim_iec61968_common_StreetAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61968.common.StreetAddress.class, com.zepben.protobuf.cim.iec61968.common.StreetAddress.Builder.class); } private int bitField0_; public static final int POSTALCODE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object postalCode_ = ""; /** *
   **
   * Postal code for the address.
   * 
* * string postalCode = 1; * @return The postalCode. */ @java.lang.Override public java.lang.String getPostalCode() { java.lang.Object ref = postalCode_; 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(); postalCode_ = s; return s; } } /** *
   **
   * Postal code for the address.
   * 
* * string postalCode = 1; * @return The bytes for postalCode. */ @java.lang.Override public com.google.protobuf.ByteString getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); postalCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TOWNDETAIL_FIELD_NUMBER = 2; private com.zepben.protobuf.cim.iec61968.common.TownDetail townDetail_; /** *
   **
   * Town detail.
   * 
* * .zepben.protobuf.cim.iec61968.common.TownDetail townDetail = 2; * @return Whether the townDetail field is set. */ @java.lang.Override public boolean hasTownDetail() { return ((bitField0_ & 0x00000001) != 0); } /** *
   **
   * Town detail.
   * 
* * .zepben.protobuf.cim.iec61968.common.TownDetail townDetail = 2; * @return The townDetail. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.TownDetail getTownDetail() { return townDetail_ == null ? com.zepben.protobuf.cim.iec61968.common.TownDetail.getDefaultInstance() : townDetail_; } /** *
   **
   * Town detail.
   * 
* * .zepben.protobuf.cim.iec61968.common.TownDetail townDetail = 2; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.TownDetailOrBuilder getTownDetailOrBuilder() { return townDetail_ == null ? com.zepben.protobuf.cim.iec61968.common.TownDetail.getDefaultInstance() : townDetail_; } public static final int POBOX_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object poBox_ = ""; /** *
   **
   * Post office box.
   * 
* * string poBox = 3; * @return The poBox. */ @java.lang.Override public java.lang.String getPoBox() { java.lang.Object ref = poBox_; 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(); poBox_ = s; return s; } } /** *
   **
   * Post office box.
   * 
* * string poBox = 3; * @return The bytes for poBox. */ @java.lang.Override public com.google.protobuf.ByteString getPoBoxBytes() { java.lang.Object ref = poBox_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); poBox_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STREETDETAIL_FIELD_NUMBER = 4; private com.zepben.protobuf.cim.iec61968.common.StreetDetail streetDetail_; /** *
   **
   * Street detail.
   * 
* * .zepben.protobuf.cim.iec61968.common.StreetDetail streetDetail = 4; * @return Whether the streetDetail field is set. */ @java.lang.Override public boolean hasStreetDetail() { return ((bitField0_ & 0x00000002) != 0); } /** *
   **
   * Street detail.
   * 
* * .zepben.protobuf.cim.iec61968.common.StreetDetail streetDetail = 4; * @return The streetDetail. */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.StreetDetail getStreetDetail() { return streetDetail_ == null ? com.zepben.protobuf.cim.iec61968.common.StreetDetail.getDefaultInstance() : streetDetail_; } /** *
   **
   * Street detail.
   * 
* * .zepben.protobuf.cim.iec61968.common.StreetDetail streetDetail = 4; */ @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.StreetDetailOrBuilder getStreetDetailOrBuilder() { return streetDetail_ == null ? com.zepben.protobuf.cim.iec61968.common.StreetDetail.getDefaultInstance() : streetDetail_; } 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(postalCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, postalCode_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getTownDetail()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(poBox_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, poBox_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getStreetDetail()); } 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(postalCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, postalCode_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTownDetail()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(poBox_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, poBox_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getStreetDetail()); } 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.StreetAddress)) { return super.equals(obj); } com.zepben.protobuf.cim.iec61968.common.StreetAddress other = (com.zepben.protobuf.cim.iec61968.common.StreetAddress) obj; if (!getPostalCode() .equals(other.getPostalCode())) return false; if (hasTownDetail() != other.hasTownDetail()) return false; if (hasTownDetail()) { if (!getTownDetail() .equals(other.getTownDetail())) return false; } if (!getPoBox() .equals(other.getPoBox())) return false; if (hasStreetDetail() != other.hasStreetDetail()) return false; if (hasStreetDetail()) { if (!getStreetDetail() .equals(other.getStreetDetail())) 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) + POSTALCODE_FIELD_NUMBER; hash = (53 * hash) + getPostalCode().hashCode(); if (hasTownDetail()) { hash = (37 * hash) + TOWNDETAIL_FIELD_NUMBER; hash = (53 * hash) + getTownDetail().hashCode(); } hash = (37 * hash) + POBOX_FIELD_NUMBER; hash = (53 * hash) + getPoBox().hashCode(); if (hasStreetDetail()) { hash = (37 * hash) + STREETDETAIL_FIELD_NUMBER; hash = (53 * hash) + getStreetDetail().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.zepben.protobuf.cim.iec61968.common.StreetAddress parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.common.StreetAddress 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.StreetAddress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.common.StreetAddress 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.StreetAddress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.zepben.protobuf.cim.iec61968.common.StreetAddress 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.StreetAddress 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.StreetAddress 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.StreetAddress 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.StreetAddress 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.StreetAddress 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.StreetAddress 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.StreetAddress 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; } /** *
   **
   * General purpose street and postal address information.
   * 
* * Protobuf type {@code zepben.protobuf.cim.iec61968.common.StreetAddress} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:zepben.protobuf.cim.iec61968.common.StreetAddress) com.zepben.protobuf.cim.iec61968.common.StreetAddressOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.zepben.protobuf.cim.iec61968.common.StreetAddressOuterClass.internal_static_zepben_protobuf_cim_iec61968_common_StreetAddress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.zepben.protobuf.cim.iec61968.common.StreetAddressOuterClass.internal_static_zepben_protobuf_cim_iec61968_common_StreetAddress_fieldAccessorTable .ensureFieldAccessorsInitialized( com.zepben.protobuf.cim.iec61968.common.StreetAddress.class, com.zepben.protobuf.cim.iec61968.common.StreetAddress.Builder.class); } // Construct using com.zepben.protobuf.cim.iec61968.common.StreetAddress.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTownDetailFieldBuilder(); getStreetDetailFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; postalCode_ = ""; townDetail_ = null; if (townDetailBuilder_ != null) { townDetailBuilder_.dispose(); townDetailBuilder_ = null; } poBox_ = ""; streetDetail_ = null; if (streetDetailBuilder_ != null) { streetDetailBuilder_.dispose(); streetDetailBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.zepben.protobuf.cim.iec61968.common.StreetAddressOuterClass.internal_static_zepben_protobuf_cim_iec61968_common_StreetAddress_descriptor; } @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.StreetAddress getDefaultInstanceForType() { return com.zepben.protobuf.cim.iec61968.common.StreetAddress.getDefaultInstance(); } @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.StreetAddress build() { com.zepben.protobuf.cim.iec61968.common.StreetAddress result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.zepben.protobuf.cim.iec61968.common.StreetAddress buildPartial() { com.zepben.protobuf.cim.iec61968.common.StreetAddress result = new com.zepben.protobuf.cim.iec61968.common.StreetAddress(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.zepben.protobuf.cim.iec61968.common.StreetAddress result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.postalCode_ = postalCode_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.townDetail_ = townDetailBuilder_ == null ? townDetail_ : townDetailBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.poBox_ = poBox_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.streetDetail_ = streetDetailBuilder_ == null ? streetDetail_ : streetDetailBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.zepben.protobuf.cim.iec61968.common.StreetAddress) { return mergeFrom((com.zepben.protobuf.cim.iec61968.common.StreetAddress)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.zepben.protobuf.cim.iec61968.common.StreetAddress other) { if (other == com.zepben.protobuf.cim.iec61968.common.StreetAddress.getDefaultInstance()) return this; if (!other.getPostalCode().isEmpty()) { postalCode_ = other.postalCode_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasTownDetail()) { mergeTownDetail(other.getTownDetail()); } if (!other.getPoBox().isEmpty()) { poBox_ = other.poBox_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasStreetDetail()) { mergeStreetDetail(other.getStreetDetail()); } 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: { postalCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTownDetailFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { poBox_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getStreetDetailFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object postalCode_ = ""; /** *
     **
     * Postal code for the address.
     * 
* * string postalCode = 1; * @return The postalCode. */ public java.lang.String getPostalCode() { java.lang.Object ref = postalCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * Postal code for the address.
     * 
* * string postalCode = 1; * @return The bytes for postalCode. */ public com.google.protobuf.ByteString getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); postalCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * Postal code for the address.
     * 
* * string postalCode = 1; * @param value The postalCode to set. * @return This builder for chaining. */ public Builder setPostalCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } postalCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     **
     * Postal code for the address.
     * 
* * string postalCode = 1; * @return This builder for chaining. */ public Builder clearPostalCode() { postalCode_ = getDefaultInstance().getPostalCode(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     **
     * Postal code for the address.
     * 
* * string postalCode = 1; * @param value The bytes for postalCode to set. * @return This builder for chaining. */ public Builder setPostalCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); postalCode_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.zepben.protobuf.cim.iec61968.common.TownDetail townDetail_; private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.TownDetail, com.zepben.protobuf.cim.iec61968.common.TownDetail.Builder, com.zepben.protobuf.cim.iec61968.common.TownDetailOrBuilder> townDetailBuilder_; /** *
     **
     * Town detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.TownDetail townDetail = 2; * @return Whether the townDetail field is set. */ public boolean hasTownDetail() { return ((bitField0_ & 0x00000002) != 0); } /** *
     **
     * Town detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.TownDetail townDetail = 2; * @return The townDetail. */ public com.zepben.protobuf.cim.iec61968.common.TownDetail getTownDetail() { if (townDetailBuilder_ == null) { return townDetail_ == null ? com.zepben.protobuf.cim.iec61968.common.TownDetail.getDefaultInstance() : townDetail_; } else { return townDetailBuilder_.getMessage(); } } /** *
     **
     * Town detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.TownDetail townDetail = 2; */ public Builder setTownDetail(com.zepben.protobuf.cim.iec61968.common.TownDetail value) { if (townDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); } townDetail_ = value; } else { townDetailBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * Town detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.TownDetail townDetail = 2; */ public Builder setTownDetail( com.zepben.protobuf.cim.iec61968.common.TownDetail.Builder builderForValue) { if (townDetailBuilder_ == null) { townDetail_ = builderForValue.build(); } else { townDetailBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     **
     * Town detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.TownDetail townDetail = 2; */ public Builder mergeTownDetail(com.zepben.protobuf.cim.iec61968.common.TownDetail value) { if (townDetailBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && townDetail_ != null && townDetail_ != com.zepben.protobuf.cim.iec61968.common.TownDetail.getDefaultInstance()) { getTownDetailBuilder().mergeFrom(value); } else { townDetail_ = value; } } else { townDetailBuilder_.mergeFrom(value); } if (townDetail_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     **
     * Town detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.TownDetail townDetail = 2; */ public Builder clearTownDetail() { bitField0_ = (bitField0_ & ~0x00000002); townDetail_ = null; if (townDetailBuilder_ != null) { townDetailBuilder_.dispose(); townDetailBuilder_ = null; } onChanged(); return this; } /** *
     **
     * Town detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.TownDetail townDetail = 2; */ public com.zepben.protobuf.cim.iec61968.common.TownDetail.Builder getTownDetailBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTownDetailFieldBuilder().getBuilder(); } /** *
     **
     * Town detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.TownDetail townDetail = 2; */ public com.zepben.protobuf.cim.iec61968.common.TownDetailOrBuilder getTownDetailOrBuilder() { if (townDetailBuilder_ != null) { return townDetailBuilder_.getMessageOrBuilder(); } else { return townDetail_ == null ? com.zepben.protobuf.cim.iec61968.common.TownDetail.getDefaultInstance() : townDetail_; } } /** *
     **
     * Town detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.TownDetail townDetail = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.TownDetail, com.zepben.protobuf.cim.iec61968.common.TownDetail.Builder, com.zepben.protobuf.cim.iec61968.common.TownDetailOrBuilder> getTownDetailFieldBuilder() { if (townDetailBuilder_ == null) { townDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.TownDetail, com.zepben.protobuf.cim.iec61968.common.TownDetail.Builder, com.zepben.protobuf.cim.iec61968.common.TownDetailOrBuilder>( getTownDetail(), getParentForChildren(), isClean()); townDetail_ = null; } return townDetailBuilder_; } private java.lang.Object poBox_ = ""; /** *
     **
     * Post office box.
     * 
* * string poBox = 3; * @return The poBox. */ public java.lang.String getPoBox() { java.lang.Object ref = poBox_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); poBox_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     **
     * Post office box.
     * 
* * string poBox = 3; * @return The bytes for poBox. */ public com.google.protobuf.ByteString getPoBoxBytes() { java.lang.Object ref = poBox_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); poBox_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     **
     * Post office box.
     * 
* * string poBox = 3; * @param value The poBox to set. * @return This builder for chaining. */ public Builder setPoBox( java.lang.String value) { if (value == null) { throw new NullPointerException(); } poBox_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     **
     * Post office box.
     * 
* * string poBox = 3; * @return This builder for chaining. */ public Builder clearPoBox() { poBox_ = getDefaultInstance().getPoBox(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     **
     * Post office box.
     * 
* * string poBox = 3; * @param value The bytes for poBox to set. * @return This builder for chaining. */ public Builder setPoBoxBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); poBox_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private com.zepben.protobuf.cim.iec61968.common.StreetDetail streetDetail_; private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.StreetDetail, com.zepben.protobuf.cim.iec61968.common.StreetDetail.Builder, com.zepben.protobuf.cim.iec61968.common.StreetDetailOrBuilder> streetDetailBuilder_; /** *
     **
     * Street detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetDetail streetDetail = 4; * @return Whether the streetDetail field is set. */ public boolean hasStreetDetail() { return ((bitField0_ & 0x00000008) != 0); } /** *
     **
     * Street detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetDetail streetDetail = 4; * @return The streetDetail. */ public com.zepben.protobuf.cim.iec61968.common.StreetDetail getStreetDetail() { if (streetDetailBuilder_ == null) { return streetDetail_ == null ? com.zepben.protobuf.cim.iec61968.common.StreetDetail.getDefaultInstance() : streetDetail_; } else { return streetDetailBuilder_.getMessage(); } } /** *
     **
     * Street detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetDetail streetDetail = 4; */ public Builder setStreetDetail(com.zepben.protobuf.cim.iec61968.common.StreetDetail value) { if (streetDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); } streetDetail_ = value; } else { streetDetailBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * Street detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetDetail streetDetail = 4; */ public Builder setStreetDetail( com.zepben.protobuf.cim.iec61968.common.StreetDetail.Builder builderForValue) { if (streetDetailBuilder_ == null) { streetDetail_ = builderForValue.build(); } else { streetDetailBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     **
     * Street detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetDetail streetDetail = 4; */ public Builder mergeStreetDetail(com.zepben.protobuf.cim.iec61968.common.StreetDetail value) { if (streetDetailBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && streetDetail_ != null && streetDetail_ != com.zepben.protobuf.cim.iec61968.common.StreetDetail.getDefaultInstance()) { getStreetDetailBuilder().mergeFrom(value); } else { streetDetail_ = value; } } else { streetDetailBuilder_.mergeFrom(value); } if (streetDetail_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     **
     * Street detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetDetail streetDetail = 4; */ public Builder clearStreetDetail() { bitField0_ = (bitField0_ & ~0x00000008); streetDetail_ = null; if (streetDetailBuilder_ != null) { streetDetailBuilder_.dispose(); streetDetailBuilder_ = null; } onChanged(); return this; } /** *
     **
     * Street detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetDetail streetDetail = 4; */ public com.zepben.protobuf.cim.iec61968.common.StreetDetail.Builder getStreetDetailBuilder() { bitField0_ |= 0x00000008; onChanged(); return getStreetDetailFieldBuilder().getBuilder(); } /** *
     **
     * Street detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetDetail streetDetail = 4; */ public com.zepben.protobuf.cim.iec61968.common.StreetDetailOrBuilder getStreetDetailOrBuilder() { if (streetDetailBuilder_ != null) { return streetDetailBuilder_.getMessageOrBuilder(); } else { return streetDetail_ == null ? com.zepben.protobuf.cim.iec61968.common.StreetDetail.getDefaultInstance() : streetDetail_; } } /** *
     **
     * Street detail.
     * 
* * .zepben.protobuf.cim.iec61968.common.StreetDetail streetDetail = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.StreetDetail, com.zepben.protobuf.cim.iec61968.common.StreetDetail.Builder, com.zepben.protobuf.cim.iec61968.common.StreetDetailOrBuilder> getStreetDetailFieldBuilder() { if (streetDetailBuilder_ == null) { streetDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.zepben.protobuf.cim.iec61968.common.StreetDetail, com.zepben.protobuf.cim.iec61968.common.StreetDetail.Builder, com.zepben.protobuf.cim.iec61968.common.StreetDetailOrBuilder>( getStreetDetail(), getParentForChildren(), isClean()); streetDetail_ = null; } return streetDetailBuilder_; } @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.StreetAddress) } // @@protoc_insertion_point(class_scope:zepben.protobuf.cim.iec61968.common.StreetAddress) private static final com.zepben.protobuf.cim.iec61968.common.StreetAddress DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.zepben.protobuf.cim.iec61968.common.StreetAddress(); } public static com.zepben.protobuf.cim.iec61968.common.StreetAddress getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StreetAddress 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.StreetAddress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy