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

com.craxiom.messaging.NetworkRegistrationInfo Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: com/craxiom/messaging/phone_state.proto
// Protobuf Java Version: 4.27.3

package com.craxiom.messaging;

/**
 * 
 * Used to report the details of a registered network
 * 
* * Protobuf type {@code com.craxiom.messaging.NetworkRegistrationInfo} */ public final class NetworkRegistrationInfo extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:com.craxiom.messaging.NetworkRegistrationInfo) NetworkRegistrationInfoOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 3, /* suffix= */ "", NetworkRegistrationInfo.class.getName()); } // Use NetworkRegistrationInfo.newBuilder() to construct. private NetworkRegistrationInfo(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private NetworkRegistrationInfo() { domain_ = 0; accessNetworkTechnology_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.craxiom.messaging.PhoneStateOuterClass.internal_static_com_craxiom_messaging_NetworkRegistrationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.craxiom.messaging.PhoneStateOuterClass.internal_static_com_craxiom_messaging_NetworkRegistrationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.craxiom.messaging.NetworkRegistrationInfo.class, com.craxiom.messaging.NetworkRegistrationInfo.Builder.class); } private int bitField0_; private int cellIdentityCase_ = 0; @SuppressWarnings("serial") private java.lang.Object cellIdentity_; public enum CellIdentityCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CELLIDENTITYGSM(5), CELLIDENTITYCDMA(6), CELLIDENTITYUMTS(7), CELLIDENTITYLTE(8), CELLIDENTITYNR(9), CELLIDENTITY_NOT_SET(0); private final int value; private CellIdentityCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CellIdentityCase valueOf(int value) { return forNumber(value); } public static CellIdentityCase forNumber(int value) { switch (value) { case 5: return CELLIDENTITYGSM; case 6: return CELLIDENTITYCDMA; case 7: return CELLIDENTITYUMTS; case 8: return CELLIDENTITYLTE; case 9: return CELLIDENTITYNR; case 0: return CELLIDENTITY_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public CellIdentityCase getCellIdentityCase() { return CellIdentityCase.forNumber( cellIdentityCase_); } public static final int DOMAIN_FIELD_NUMBER = 1; private int domain_ = 0; /** * .com.craxiom.messaging.phonestate.domain.Domain domain = 1; * @return The enum numeric value on the wire for domain. */ @java.lang.Override public int getDomainValue() { return domain_; } /** * .com.craxiom.messaging.phonestate.domain.Domain domain = 1; * @return The domain. */ @java.lang.Override public com.craxiom.messaging.phonestate.Domain getDomain() { com.craxiom.messaging.phonestate.Domain result = com.craxiom.messaging.phonestate.Domain.forNumber(domain_); return result == null ? com.craxiom.messaging.phonestate.Domain.UNRECOGNIZED : result; } public static final int ACCESSNETWORKTECHNOLOGY_FIELD_NUMBER = 2; private int accessNetworkTechnology_ = 0; /** * .com.craxiom.messaging.phonestate.networktype.NetworkType accessNetworkTechnology = 2; * @return The enum numeric value on the wire for accessNetworkTechnology. */ @java.lang.Override public int getAccessNetworkTechnologyValue() { return accessNetworkTechnology_; } /** * .com.craxiom.messaging.phonestate.networktype.NetworkType accessNetworkTechnology = 2; * @return The accessNetworkTechnology. */ @java.lang.Override public com.craxiom.messaging.phonestate.NetworkType getAccessNetworkTechnology() { com.craxiom.messaging.phonestate.NetworkType result = com.craxiom.messaging.phonestate.NetworkType.forNumber(accessNetworkTechnology_); return result == null ? com.craxiom.messaging.phonestate.NetworkType.UNRECOGNIZED : result; } public static final int ROAMING_FIELD_NUMBER = 3; private com.google.protobuf.BoolValue roaming_; /** * .google.protobuf.BoolValue roaming = 3; * @return Whether the roaming field is set. */ @java.lang.Override public boolean hasRoaming() { return ((bitField0_ & 0x00000001) != 0); } /** * .google.protobuf.BoolValue roaming = 3; * @return The roaming. */ @java.lang.Override public com.google.protobuf.BoolValue getRoaming() { return roaming_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : roaming_; } /** * .google.protobuf.BoolValue roaming = 3; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getRoamingOrBuilder() { return roaming_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : roaming_; } public static final int REJECTCAUSE_FIELD_NUMBER = 4; private com.google.protobuf.Int32Value rejectCause_; /** * .google.protobuf.Int32Value rejectCause = 4; * @return Whether the rejectCause field is set. */ @java.lang.Override public boolean hasRejectCause() { return ((bitField0_ & 0x00000002) != 0); } /** * .google.protobuf.Int32Value rejectCause = 4; * @return The rejectCause. */ @java.lang.Override public com.google.protobuf.Int32Value getRejectCause() { return rejectCause_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : rejectCause_; } /** * .google.protobuf.Int32Value rejectCause = 4; */ @java.lang.Override public com.google.protobuf.Int32ValueOrBuilder getRejectCauseOrBuilder() { return rejectCause_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : rejectCause_; } public static final int CELLIDENTITYGSM_FIELD_NUMBER = 5; /** * .com.craxiom.messaging.CellIdentityGsm cellIdentityGsm = 5; * @return Whether the cellIdentityGsm field is set. */ @java.lang.Override public boolean hasCellIdentityGsm() { return cellIdentityCase_ == 5; } /** * .com.craxiom.messaging.CellIdentityGsm cellIdentityGsm = 5; * @return The cellIdentityGsm. */ @java.lang.Override public com.craxiom.messaging.CellIdentityGsm getCellIdentityGsm() { if (cellIdentityCase_ == 5) { return (com.craxiom.messaging.CellIdentityGsm) cellIdentity_; } return com.craxiom.messaging.CellIdentityGsm.getDefaultInstance(); } /** * .com.craxiom.messaging.CellIdentityGsm cellIdentityGsm = 5; */ @java.lang.Override public com.craxiom.messaging.CellIdentityGsmOrBuilder getCellIdentityGsmOrBuilder() { if (cellIdentityCase_ == 5) { return (com.craxiom.messaging.CellIdentityGsm) cellIdentity_; } return com.craxiom.messaging.CellIdentityGsm.getDefaultInstance(); } public static final int CELLIDENTITYCDMA_FIELD_NUMBER = 6; /** * .com.craxiom.messaging.CellIdentityCdma cellIdentityCdma = 6; * @return Whether the cellIdentityCdma field is set. */ @java.lang.Override public boolean hasCellIdentityCdma() { return cellIdentityCase_ == 6; } /** * .com.craxiom.messaging.CellIdentityCdma cellIdentityCdma = 6; * @return The cellIdentityCdma. */ @java.lang.Override public com.craxiom.messaging.CellIdentityCdma getCellIdentityCdma() { if (cellIdentityCase_ == 6) { return (com.craxiom.messaging.CellIdentityCdma) cellIdentity_; } return com.craxiom.messaging.CellIdentityCdma.getDefaultInstance(); } /** * .com.craxiom.messaging.CellIdentityCdma cellIdentityCdma = 6; */ @java.lang.Override public com.craxiom.messaging.CellIdentityCdmaOrBuilder getCellIdentityCdmaOrBuilder() { if (cellIdentityCase_ == 6) { return (com.craxiom.messaging.CellIdentityCdma) cellIdentity_; } return com.craxiom.messaging.CellIdentityCdma.getDefaultInstance(); } public static final int CELLIDENTITYUMTS_FIELD_NUMBER = 7; /** * .com.craxiom.messaging.CellIdentityUmts cellIdentityUmts = 7; * @return Whether the cellIdentityUmts field is set. */ @java.lang.Override public boolean hasCellIdentityUmts() { return cellIdentityCase_ == 7; } /** * .com.craxiom.messaging.CellIdentityUmts cellIdentityUmts = 7; * @return The cellIdentityUmts. */ @java.lang.Override public com.craxiom.messaging.CellIdentityUmts getCellIdentityUmts() { if (cellIdentityCase_ == 7) { return (com.craxiom.messaging.CellIdentityUmts) cellIdentity_; } return com.craxiom.messaging.CellIdentityUmts.getDefaultInstance(); } /** * .com.craxiom.messaging.CellIdentityUmts cellIdentityUmts = 7; */ @java.lang.Override public com.craxiom.messaging.CellIdentityUmtsOrBuilder getCellIdentityUmtsOrBuilder() { if (cellIdentityCase_ == 7) { return (com.craxiom.messaging.CellIdentityUmts) cellIdentity_; } return com.craxiom.messaging.CellIdentityUmts.getDefaultInstance(); } public static final int CELLIDENTITYLTE_FIELD_NUMBER = 8; /** * .com.craxiom.messaging.CellIdentityLte cellIdentityLte = 8; * @return Whether the cellIdentityLte field is set. */ @java.lang.Override public boolean hasCellIdentityLte() { return cellIdentityCase_ == 8; } /** * .com.craxiom.messaging.CellIdentityLte cellIdentityLte = 8; * @return The cellIdentityLte. */ @java.lang.Override public com.craxiom.messaging.CellIdentityLte getCellIdentityLte() { if (cellIdentityCase_ == 8) { return (com.craxiom.messaging.CellIdentityLte) cellIdentity_; } return com.craxiom.messaging.CellIdentityLte.getDefaultInstance(); } /** * .com.craxiom.messaging.CellIdentityLte cellIdentityLte = 8; */ @java.lang.Override public com.craxiom.messaging.CellIdentityLteOrBuilder getCellIdentityLteOrBuilder() { if (cellIdentityCase_ == 8) { return (com.craxiom.messaging.CellIdentityLte) cellIdentity_; } return com.craxiom.messaging.CellIdentityLte.getDefaultInstance(); } public static final int CELLIDENTITYNR_FIELD_NUMBER = 9; /** * .com.craxiom.messaging.CellIdentityNr cellIdentityNr = 9; * @return Whether the cellIdentityNr field is set. */ @java.lang.Override public boolean hasCellIdentityNr() { return cellIdentityCase_ == 9; } /** * .com.craxiom.messaging.CellIdentityNr cellIdentityNr = 9; * @return The cellIdentityNr. */ @java.lang.Override public com.craxiom.messaging.CellIdentityNr getCellIdentityNr() { if (cellIdentityCase_ == 9) { return (com.craxiom.messaging.CellIdentityNr) cellIdentity_; } return com.craxiom.messaging.CellIdentityNr.getDefaultInstance(); } /** * .com.craxiom.messaging.CellIdentityNr cellIdentityNr = 9; */ @java.lang.Override public com.craxiom.messaging.CellIdentityNrOrBuilder getCellIdentityNrOrBuilder() { if (cellIdentityCase_ == 9) { return (com.craxiom.messaging.CellIdentityNr) cellIdentity_; } return com.craxiom.messaging.CellIdentityNr.getDefaultInstance(); } 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 (domain_ != com.craxiom.messaging.phonestate.Domain.UNKNOWN.getNumber()) { output.writeEnum(1, domain_); } if (accessNetworkTechnology_ != com.craxiom.messaging.phonestate.NetworkType.UNKNOWN.getNumber()) { output.writeEnum(2, accessNetworkTechnology_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getRoaming()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getRejectCause()); } if (cellIdentityCase_ == 5) { output.writeMessage(5, (com.craxiom.messaging.CellIdentityGsm) cellIdentity_); } if (cellIdentityCase_ == 6) { output.writeMessage(6, (com.craxiom.messaging.CellIdentityCdma) cellIdentity_); } if (cellIdentityCase_ == 7) { output.writeMessage(7, (com.craxiom.messaging.CellIdentityUmts) cellIdentity_); } if (cellIdentityCase_ == 8) { output.writeMessage(8, (com.craxiom.messaging.CellIdentityLte) cellIdentity_); } if (cellIdentityCase_ == 9) { output.writeMessage(9, (com.craxiom.messaging.CellIdentityNr) cellIdentity_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (domain_ != com.craxiom.messaging.phonestate.Domain.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, domain_); } if (accessNetworkTechnology_ != com.craxiom.messaging.phonestate.NetworkType.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, accessNetworkTechnology_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getRoaming()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRejectCause()); } if (cellIdentityCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.craxiom.messaging.CellIdentityGsm) cellIdentity_); } if (cellIdentityCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (com.craxiom.messaging.CellIdentityCdma) cellIdentity_); } if (cellIdentityCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.craxiom.messaging.CellIdentityUmts) cellIdentity_); } if (cellIdentityCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.craxiom.messaging.CellIdentityLte) cellIdentity_); } if (cellIdentityCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.craxiom.messaging.CellIdentityNr) cellIdentity_); } 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.craxiom.messaging.NetworkRegistrationInfo)) { return super.equals(obj); } com.craxiom.messaging.NetworkRegistrationInfo other = (com.craxiom.messaging.NetworkRegistrationInfo) obj; if (domain_ != other.domain_) return false; if (accessNetworkTechnology_ != other.accessNetworkTechnology_) return false; if (hasRoaming() != other.hasRoaming()) return false; if (hasRoaming()) { if (!getRoaming() .equals(other.getRoaming())) return false; } if (hasRejectCause() != other.hasRejectCause()) return false; if (hasRejectCause()) { if (!getRejectCause() .equals(other.getRejectCause())) return false; } if (!getCellIdentityCase().equals(other.getCellIdentityCase())) return false; switch (cellIdentityCase_) { case 5: if (!getCellIdentityGsm() .equals(other.getCellIdentityGsm())) return false; break; case 6: if (!getCellIdentityCdma() .equals(other.getCellIdentityCdma())) return false; break; case 7: if (!getCellIdentityUmts() .equals(other.getCellIdentityUmts())) return false; break; case 8: if (!getCellIdentityLte() .equals(other.getCellIdentityLte())) return false; break; case 9: if (!getCellIdentityNr() .equals(other.getCellIdentityNr())) return false; break; case 0: default: } 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) + DOMAIN_FIELD_NUMBER; hash = (53 * hash) + domain_; hash = (37 * hash) + ACCESSNETWORKTECHNOLOGY_FIELD_NUMBER; hash = (53 * hash) + accessNetworkTechnology_; if (hasRoaming()) { hash = (37 * hash) + ROAMING_FIELD_NUMBER; hash = (53 * hash) + getRoaming().hashCode(); } if (hasRejectCause()) { hash = (37 * hash) + REJECTCAUSE_FIELD_NUMBER; hash = (53 * hash) + getRejectCause().hashCode(); } switch (cellIdentityCase_) { case 5: hash = (37 * hash) + CELLIDENTITYGSM_FIELD_NUMBER; hash = (53 * hash) + getCellIdentityGsm().hashCode(); break; case 6: hash = (37 * hash) + CELLIDENTITYCDMA_FIELD_NUMBER; hash = (53 * hash) + getCellIdentityCdma().hashCode(); break; case 7: hash = (37 * hash) + CELLIDENTITYUMTS_FIELD_NUMBER; hash = (53 * hash) + getCellIdentityUmts().hashCode(); break; case 8: hash = (37 * hash) + CELLIDENTITYLTE_FIELD_NUMBER; hash = (53 * hash) + getCellIdentityLte().hashCode(); break; case 9: hash = (37 * hash) + CELLIDENTITYNR_FIELD_NUMBER; hash = (53 * hash) + getCellIdentityNr().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.craxiom.messaging.NetworkRegistrationInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.craxiom.messaging.NetworkRegistrationInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.craxiom.messaging.NetworkRegistrationInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.craxiom.messaging.NetworkRegistrationInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.craxiom.messaging.NetworkRegistrationInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.craxiom.messaging.NetworkRegistrationInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.craxiom.messaging.NetworkRegistrationInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.craxiom.messaging.NetworkRegistrationInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input, extensionRegistry); } public static com.craxiom.messaging.NetworkRegistrationInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static com.craxiom.messaging.NetworkRegistrationInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.craxiom.messaging.NetworkRegistrationInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static com.craxiom.messaging.NetworkRegistrationInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .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.craxiom.messaging.NetworkRegistrationInfo 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.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Used to report the details of a registered network
   * 
* * Protobuf type {@code com.craxiom.messaging.NetworkRegistrationInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:com.craxiom.messaging.NetworkRegistrationInfo) com.craxiom.messaging.NetworkRegistrationInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.craxiom.messaging.PhoneStateOuterClass.internal_static_com_craxiom_messaging_NetworkRegistrationInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.craxiom.messaging.PhoneStateOuterClass.internal_static_com_craxiom_messaging_NetworkRegistrationInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.craxiom.messaging.NetworkRegistrationInfo.class, com.craxiom.messaging.NetworkRegistrationInfo.Builder.class); } // Construct using com.craxiom.messaging.NetworkRegistrationInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getRoamingFieldBuilder(); getRejectCauseFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; domain_ = 0; accessNetworkTechnology_ = 0; roaming_ = null; if (roamingBuilder_ != null) { roamingBuilder_.dispose(); roamingBuilder_ = null; } rejectCause_ = null; if (rejectCauseBuilder_ != null) { rejectCauseBuilder_.dispose(); rejectCauseBuilder_ = null; } if (cellIdentityGsmBuilder_ != null) { cellIdentityGsmBuilder_.clear(); } if (cellIdentityCdmaBuilder_ != null) { cellIdentityCdmaBuilder_.clear(); } if (cellIdentityUmtsBuilder_ != null) { cellIdentityUmtsBuilder_.clear(); } if (cellIdentityLteBuilder_ != null) { cellIdentityLteBuilder_.clear(); } if (cellIdentityNrBuilder_ != null) { cellIdentityNrBuilder_.clear(); } cellIdentityCase_ = 0; cellIdentity_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.craxiom.messaging.PhoneStateOuterClass.internal_static_com_craxiom_messaging_NetworkRegistrationInfo_descriptor; } @java.lang.Override public com.craxiom.messaging.NetworkRegistrationInfo getDefaultInstanceForType() { return com.craxiom.messaging.NetworkRegistrationInfo.getDefaultInstance(); } @java.lang.Override public com.craxiom.messaging.NetworkRegistrationInfo build() { com.craxiom.messaging.NetworkRegistrationInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.craxiom.messaging.NetworkRegistrationInfo buildPartial() { com.craxiom.messaging.NetworkRegistrationInfo result = new com.craxiom.messaging.NetworkRegistrationInfo(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.craxiom.messaging.NetworkRegistrationInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.domain_ = domain_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.accessNetworkTechnology_ = accessNetworkTechnology_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.roaming_ = roamingBuilder_ == null ? roaming_ : roamingBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.rejectCause_ = rejectCauseBuilder_ == null ? rejectCause_ : rejectCauseBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.craxiom.messaging.NetworkRegistrationInfo result) { result.cellIdentityCase_ = cellIdentityCase_; result.cellIdentity_ = this.cellIdentity_; if (cellIdentityCase_ == 5 && cellIdentityGsmBuilder_ != null) { result.cellIdentity_ = cellIdentityGsmBuilder_.build(); } if (cellIdentityCase_ == 6 && cellIdentityCdmaBuilder_ != null) { result.cellIdentity_ = cellIdentityCdmaBuilder_.build(); } if (cellIdentityCase_ == 7 && cellIdentityUmtsBuilder_ != null) { result.cellIdentity_ = cellIdentityUmtsBuilder_.build(); } if (cellIdentityCase_ == 8 && cellIdentityLteBuilder_ != null) { result.cellIdentity_ = cellIdentityLteBuilder_.build(); } if (cellIdentityCase_ == 9 && cellIdentityNrBuilder_ != null) { result.cellIdentity_ = cellIdentityNrBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.craxiom.messaging.NetworkRegistrationInfo) { return mergeFrom((com.craxiom.messaging.NetworkRegistrationInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.craxiom.messaging.NetworkRegistrationInfo other) { if (other == com.craxiom.messaging.NetworkRegistrationInfo.getDefaultInstance()) return this; if (other.domain_ != 0) { setDomainValue(other.getDomainValue()); } if (other.accessNetworkTechnology_ != 0) { setAccessNetworkTechnologyValue(other.getAccessNetworkTechnologyValue()); } if (other.hasRoaming()) { mergeRoaming(other.getRoaming()); } if (other.hasRejectCause()) { mergeRejectCause(other.getRejectCause()); } switch (other.getCellIdentityCase()) { case CELLIDENTITYGSM: { mergeCellIdentityGsm(other.getCellIdentityGsm()); break; } case CELLIDENTITYCDMA: { mergeCellIdentityCdma(other.getCellIdentityCdma()); break; } case CELLIDENTITYUMTS: { mergeCellIdentityUmts(other.getCellIdentityUmts()); break; } case CELLIDENTITYLTE: { mergeCellIdentityLte(other.getCellIdentityLte()); break; } case CELLIDENTITYNR: { mergeCellIdentityNr(other.getCellIdentityNr()); break; } case CELLIDENTITY_NOT_SET: { break; } } 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 8: { domain_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { accessNetworkTechnology_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getRoamingFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getRejectCauseFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getCellIdentityGsmFieldBuilder().getBuilder(), extensionRegistry); cellIdentityCase_ = 5; break; } // case 42 case 50: { input.readMessage( getCellIdentityCdmaFieldBuilder().getBuilder(), extensionRegistry); cellIdentityCase_ = 6; break; } // case 50 case 58: { input.readMessage( getCellIdentityUmtsFieldBuilder().getBuilder(), extensionRegistry); cellIdentityCase_ = 7; break; } // case 58 case 66: { input.readMessage( getCellIdentityLteFieldBuilder().getBuilder(), extensionRegistry); cellIdentityCase_ = 8; break; } // case 66 case 74: { input.readMessage( getCellIdentityNrFieldBuilder().getBuilder(), extensionRegistry); cellIdentityCase_ = 9; break; } // case 74 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 cellIdentityCase_ = 0; private java.lang.Object cellIdentity_; public CellIdentityCase getCellIdentityCase() { return CellIdentityCase.forNumber( cellIdentityCase_); } public Builder clearCellIdentity() { cellIdentityCase_ = 0; cellIdentity_ = null; onChanged(); return this; } private int bitField0_; private int domain_ = 0; /** * .com.craxiom.messaging.phonestate.domain.Domain domain = 1; * @return The enum numeric value on the wire for domain. */ @java.lang.Override public int getDomainValue() { return domain_; } /** * .com.craxiom.messaging.phonestate.domain.Domain domain = 1; * @param value The enum numeric value on the wire for domain to set. * @return This builder for chaining. */ public Builder setDomainValue(int value) { domain_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * .com.craxiom.messaging.phonestate.domain.Domain domain = 1; * @return The domain. */ @java.lang.Override public com.craxiom.messaging.phonestate.Domain getDomain() { com.craxiom.messaging.phonestate.Domain result = com.craxiom.messaging.phonestate.Domain.forNumber(domain_); return result == null ? com.craxiom.messaging.phonestate.Domain.UNRECOGNIZED : result; } /** * .com.craxiom.messaging.phonestate.domain.Domain domain = 1; * @param value The domain to set. * @return This builder for chaining. */ public Builder setDomain(com.craxiom.messaging.phonestate.Domain value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; domain_ = value.getNumber(); onChanged(); return this; } /** * .com.craxiom.messaging.phonestate.domain.Domain domain = 1; * @return This builder for chaining. */ public Builder clearDomain() { bitField0_ = (bitField0_ & ~0x00000001); domain_ = 0; onChanged(); return this; } private int accessNetworkTechnology_ = 0; /** * .com.craxiom.messaging.phonestate.networktype.NetworkType accessNetworkTechnology = 2; * @return The enum numeric value on the wire for accessNetworkTechnology. */ @java.lang.Override public int getAccessNetworkTechnologyValue() { return accessNetworkTechnology_; } /** * .com.craxiom.messaging.phonestate.networktype.NetworkType accessNetworkTechnology = 2; * @param value The enum numeric value on the wire for accessNetworkTechnology to set. * @return This builder for chaining. */ public Builder setAccessNetworkTechnologyValue(int value) { accessNetworkTechnology_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .com.craxiom.messaging.phonestate.networktype.NetworkType accessNetworkTechnology = 2; * @return The accessNetworkTechnology. */ @java.lang.Override public com.craxiom.messaging.phonestate.NetworkType getAccessNetworkTechnology() { com.craxiom.messaging.phonestate.NetworkType result = com.craxiom.messaging.phonestate.NetworkType.forNumber(accessNetworkTechnology_); return result == null ? com.craxiom.messaging.phonestate.NetworkType.UNRECOGNIZED : result; } /** * .com.craxiom.messaging.phonestate.networktype.NetworkType accessNetworkTechnology = 2; * @param value The accessNetworkTechnology to set. * @return This builder for chaining. */ public Builder setAccessNetworkTechnology(com.craxiom.messaging.phonestate.NetworkType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; accessNetworkTechnology_ = value.getNumber(); onChanged(); return this; } /** * .com.craxiom.messaging.phonestate.networktype.NetworkType accessNetworkTechnology = 2; * @return This builder for chaining. */ public Builder clearAccessNetworkTechnology() { bitField0_ = (bitField0_ & ~0x00000002); accessNetworkTechnology_ = 0; onChanged(); return this; } private com.google.protobuf.BoolValue roaming_; private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> roamingBuilder_; /** * .google.protobuf.BoolValue roaming = 3; * @return Whether the roaming field is set. */ public boolean hasRoaming() { return ((bitField0_ & 0x00000004) != 0); } /** * .google.protobuf.BoolValue roaming = 3; * @return The roaming. */ public com.google.protobuf.BoolValue getRoaming() { if (roamingBuilder_ == null) { return roaming_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : roaming_; } else { return roamingBuilder_.getMessage(); } } /** * .google.protobuf.BoolValue roaming = 3; */ public Builder setRoaming(com.google.protobuf.BoolValue value) { if (roamingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } roaming_ = value; } else { roamingBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .google.protobuf.BoolValue roaming = 3; */ public Builder setRoaming( com.google.protobuf.BoolValue.Builder builderForValue) { if (roamingBuilder_ == null) { roaming_ = builderForValue.build(); } else { roamingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .google.protobuf.BoolValue roaming = 3; */ public Builder mergeRoaming(com.google.protobuf.BoolValue value) { if (roamingBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && roaming_ != null && roaming_ != com.google.protobuf.BoolValue.getDefaultInstance()) { getRoamingBuilder().mergeFrom(value); } else { roaming_ = value; } } else { roamingBuilder_.mergeFrom(value); } if (roaming_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .google.protobuf.BoolValue roaming = 3; */ public Builder clearRoaming() { bitField0_ = (bitField0_ & ~0x00000004); roaming_ = null; if (roamingBuilder_ != null) { roamingBuilder_.dispose(); roamingBuilder_ = null; } onChanged(); return this; } /** * .google.protobuf.BoolValue roaming = 3; */ public com.google.protobuf.BoolValue.Builder getRoamingBuilder() { bitField0_ |= 0x00000004; onChanged(); return getRoamingFieldBuilder().getBuilder(); } /** * .google.protobuf.BoolValue roaming = 3; */ public com.google.protobuf.BoolValueOrBuilder getRoamingOrBuilder() { if (roamingBuilder_ != null) { return roamingBuilder_.getMessageOrBuilder(); } else { return roaming_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : roaming_; } } /** * .google.protobuf.BoolValue roaming = 3; */ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getRoamingFieldBuilder() { if (roamingBuilder_ == null) { roamingBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getRoaming(), getParentForChildren(), isClean()); roaming_ = null; } return roamingBuilder_; } private com.google.protobuf.Int32Value rejectCause_; private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> rejectCauseBuilder_; /** * .google.protobuf.Int32Value rejectCause = 4; * @return Whether the rejectCause field is set. */ public boolean hasRejectCause() { return ((bitField0_ & 0x00000008) != 0); } /** * .google.protobuf.Int32Value rejectCause = 4; * @return The rejectCause. */ public com.google.protobuf.Int32Value getRejectCause() { if (rejectCauseBuilder_ == null) { return rejectCause_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : rejectCause_; } else { return rejectCauseBuilder_.getMessage(); } } /** * .google.protobuf.Int32Value rejectCause = 4; */ public Builder setRejectCause(com.google.protobuf.Int32Value value) { if (rejectCauseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rejectCause_ = value; } else { rejectCauseBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .google.protobuf.Int32Value rejectCause = 4; */ public Builder setRejectCause( com.google.protobuf.Int32Value.Builder builderForValue) { if (rejectCauseBuilder_ == null) { rejectCause_ = builderForValue.build(); } else { rejectCauseBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * .google.protobuf.Int32Value rejectCause = 4; */ public Builder mergeRejectCause(com.google.protobuf.Int32Value value) { if (rejectCauseBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && rejectCause_ != null && rejectCause_ != com.google.protobuf.Int32Value.getDefaultInstance()) { getRejectCauseBuilder().mergeFrom(value); } else { rejectCause_ = value; } } else { rejectCauseBuilder_.mergeFrom(value); } if (rejectCause_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * .google.protobuf.Int32Value rejectCause = 4; */ public Builder clearRejectCause() { bitField0_ = (bitField0_ & ~0x00000008); rejectCause_ = null; if (rejectCauseBuilder_ != null) { rejectCauseBuilder_.dispose(); rejectCauseBuilder_ = null; } onChanged(); return this; } /** * .google.protobuf.Int32Value rejectCause = 4; */ public com.google.protobuf.Int32Value.Builder getRejectCauseBuilder() { bitField0_ |= 0x00000008; onChanged(); return getRejectCauseFieldBuilder().getBuilder(); } /** * .google.protobuf.Int32Value rejectCause = 4; */ public com.google.protobuf.Int32ValueOrBuilder getRejectCauseOrBuilder() { if (rejectCauseBuilder_ != null) { return rejectCauseBuilder_.getMessageOrBuilder(); } else { return rejectCause_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : rejectCause_; } } /** * .google.protobuf.Int32Value rejectCause = 4; */ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getRejectCauseFieldBuilder() { if (rejectCauseBuilder_ == null) { rejectCauseBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( getRejectCause(), getParentForChildren(), isClean()); rejectCause_ = null; } return rejectCauseBuilder_; } private com.google.protobuf.SingleFieldBuilder< com.craxiom.messaging.CellIdentityGsm, com.craxiom.messaging.CellIdentityGsm.Builder, com.craxiom.messaging.CellIdentityGsmOrBuilder> cellIdentityGsmBuilder_; /** * .com.craxiom.messaging.CellIdentityGsm cellIdentityGsm = 5; * @return Whether the cellIdentityGsm field is set. */ @java.lang.Override public boolean hasCellIdentityGsm() { return cellIdentityCase_ == 5; } /** * .com.craxiom.messaging.CellIdentityGsm cellIdentityGsm = 5; * @return The cellIdentityGsm. */ @java.lang.Override public com.craxiom.messaging.CellIdentityGsm getCellIdentityGsm() { if (cellIdentityGsmBuilder_ == null) { if (cellIdentityCase_ == 5) { return (com.craxiom.messaging.CellIdentityGsm) cellIdentity_; } return com.craxiom.messaging.CellIdentityGsm.getDefaultInstance(); } else { if (cellIdentityCase_ == 5) { return cellIdentityGsmBuilder_.getMessage(); } return com.craxiom.messaging.CellIdentityGsm.getDefaultInstance(); } } /** * .com.craxiom.messaging.CellIdentityGsm cellIdentityGsm = 5; */ public Builder setCellIdentityGsm(com.craxiom.messaging.CellIdentityGsm value) { if (cellIdentityGsmBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cellIdentity_ = value; onChanged(); } else { cellIdentityGsmBuilder_.setMessage(value); } cellIdentityCase_ = 5; return this; } /** * .com.craxiom.messaging.CellIdentityGsm cellIdentityGsm = 5; */ public Builder setCellIdentityGsm( com.craxiom.messaging.CellIdentityGsm.Builder builderForValue) { if (cellIdentityGsmBuilder_ == null) { cellIdentity_ = builderForValue.build(); onChanged(); } else { cellIdentityGsmBuilder_.setMessage(builderForValue.build()); } cellIdentityCase_ = 5; return this; } /** * .com.craxiom.messaging.CellIdentityGsm cellIdentityGsm = 5; */ public Builder mergeCellIdentityGsm(com.craxiom.messaging.CellIdentityGsm value) { if (cellIdentityGsmBuilder_ == null) { if (cellIdentityCase_ == 5 && cellIdentity_ != com.craxiom.messaging.CellIdentityGsm.getDefaultInstance()) { cellIdentity_ = com.craxiom.messaging.CellIdentityGsm.newBuilder((com.craxiom.messaging.CellIdentityGsm) cellIdentity_) .mergeFrom(value).buildPartial(); } else { cellIdentity_ = value; } onChanged(); } else { if (cellIdentityCase_ == 5) { cellIdentityGsmBuilder_.mergeFrom(value); } else { cellIdentityGsmBuilder_.setMessage(value); } } cellIdentityCase_ = 5; return this; } /** * .com.craxiom.messaging.CellIdentityGsm cellIdentityGsm = 5; */ public Builder clearCellIdentityGsm() { if (cellIdentityGsmBuilder_ == null) { if (cellIdentityCase_ == 5) { cellIdentityCase_ = 0; cellIdentity_ = null; onChanged(); } } else { if (cellIdentityCase_ == 5) { cellIdentityCase_ = 0; cellIdentity_ = null; } cellIdentityGsmBuilder_.clear(); } return this; } /** * .com.craxiom.messaging.CellIdentityGsm cellIdentityGsm = 5; */ public com.craxiom.messaging.CellIdentityGsm.Builder getCellIdentityGsmBuilder() { return getCellIdentityGsmFieldBuilder().getBuilder(); } /** * .com.craxiom.messaging.CellIdentityGsm cellIdentityGsm = 5; */ @java.lang.Override public com.craxiom.messaging.CellIdentityGsmOrBuilder getCellIdentityGsmOrBuilder() { if ((cellIdentityCase_ == 5) && (cellIdentityGsmBuilder_ != null)) { return cellIdentityGsmBuilder_.getMessageOrBuilder(); } else { if (cellIdentityCase_ == 5) { return (com.craxiom.messaging.CellIdentityGsm) cellIdentity_; } return com.craxiom.messaging.CellIdentityGsm.getDefaultInstance(); } } /** * .com.craxiom.messaging.CellIdentityGsm cellIdentityGsm = 5; */ private com.google.protobuf.SingleFieldBuilder< com.craxiom.messaging.CellIdentityGsm, com.craxiom.messaging.CellIdentityGsm.Builder, com.craxiom.messaging.CellIdentityGsmOrBuilder> getCellIdentityGsmFieldBuilder() { if (cellIdentityGsmBuilder_ == null) { if (!(cellIdentityCase_ == 5)) { cellIdentity_ = com.craxiom.messaging.CellIdentityGsm.getDefaultInstance(); } cellIdentityGsmBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.craxiom.messaging.CellIdentityGsm, com.craxiom.messaging.CellIdentityGsm.Builder, com.craxiom.messaging.CellIdentityGsmOrBuilder>( (com.craxiom.messaging.CellIdentityGsm) cellIdentity_, getParentForChildren(), isClean()); cellIdentity_ = null; } cellIdentityCase_ = 5; onChanged(); return cellIdentityGsmBuilder_; } private com.google.protobuf.SingleFieldBuilder< com.craxiom.messaging.CellIdentityCdma, com.craxiom.messaging.CellIdentityCdma.Builder, com.craxiom.messaging.CellIdentityCdmaOrBuilder> cellIdentityCdmaBuilder_; /** * .com.craxiom.messaging.CellIdentityCdma cellIdentityCdma = 6; * @return Whether the cellIdentityCdma field is set. */ @java.lang.Override public boolean hasCellIdentityCdma() { return cellIdentityCase_ == 6; } /** * .com.craxiom.messaging.CellIdentityCdma cellIdentityCdma = 6; * @return The cellIdentityCdma. */ @java.lang.Override public com.craxiom.messaging.CellIdentityCdma getCellIdentityCdma() { if (cellIdentityCdmaBuilder_ == null) { if (cellIdentityCase_ == 6) { return (com.craxiom.messaging.CellIdentityCdma) cellIdentity_; } return com.craxiom.messaging.CellIdentityCdma.getDefaultInstance(); } else { if (cellIdentityCase_ == 6) { return cellIdentityCdmaBuilder_.getMessage(); } return com.craxiom.messaging.CellIdentityCdma.getDefaultInstance(); } } /** * .com.craxiom.messaging.CellIdentityCdma cellIdentityCdma = 6; */ public Builder setCellIdentityCdma(com.craxiom.messaging.CellIdentityCdma value) { if (cellIdentityCdmaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cellIdentity_ = value; onChanged(); } else { cellIdentityCdmaBuilder_.setMessage(value); } cellIdentityCase_ = 6; return this; } /** * .com.craxiom.messaging.CellIdentityCdma cellIdentityCdma = 6; */ public Builder setCellIdentityCdma( com.craxiom.messaging.CellIdentityCdma.Builder builderForValue) { if (cellIdentityCdmaBuilder_ == null) { cellIdentity_ = builderForValue.build(); onChanged(); } else { cellIdentityCdmaBuilder_.setMessage(builderForValue.build()); } cellIdentityCase_ = 6; return this; } /** * .com.craxiom.messaging.CellIdentityCdma cellIdentityCdma = 6; */ public Builder mergeCellIdentityCdma(com.craxiom.messaging.CellIdentityCdma value) { if (cellIdentityCdmaBuilder_ == null) { if (cellIdentityCase_ == 6 && cellIdentity_ != com.craxiom.messaging.CellIdentityCdma.getDefaultInstance()) { cellIdentity_ = com.craxiom.messaging.CellIdentityCdma.newBuilder((com.craxiom.messaging.CellIdentityCdma) cellIdentity_) .mergeFrom(value).buildPartial(); } else { cellIdentity_ = value; } onChanged(); } else { if (cellIdentityCase_ == 6) { cellIdentityCdmaBuilder_.mergeFrom(value); } else { cellIdentityCdmaBuilder_.setMessage(value); } } cellIdentityCase_ = 6; return this; } /** * .com.craxiom.messaging.CellIdentityCdma cellIdentityCdma = 6; */ public Builder clearCellIdentityCdma() { if (cellIdentityCdmaBuilder_ == null) { if (cellIdentityCase_ == 6) { cellIdentityCase_ = 0; cellIdentity_ = null; onChanged(); } } else { if (cellIdentityCase_ == 6) { cellIdentityCase_ = 0; cellIdentity_ = null; } cellIdentityCdmaBuilder_.clear(); } return this; } /** * .com.craxiom.messaging.CellIdentityCdma cellIdentityCdma = 6; */ public com.craxiom.messaging.CellIdentityCdma.Builder getCellIdentityCdmaBuilder() { return getCellIdentityCdmaFieldBuilder().getBuilder(); } /** * .com.craxiom.messaging.CellIdentityCdma cellIdentityCdma = 6; */ @java.lang.Override public com.craxiom.messaging.CellIdentityCdmaOrBuilder getCellIdentityCdmaOrBuilder() { if ((cellIdentityCase_ == 6) && (cellIdentityCdmaBuilder_ != null)) { return cellIdentityCdmaBuilder_.getMessageOrBuilder(); } else { if (cellIdentityCase_ == 6) { return (com.craxiom.messaging.CellIdentityCdma) cellIdentity_; } return com.craxiom.messaging.CellIdentityCdma.getDefaultInstance(); } } /** * .com.craxiom.messaging.CellIdentityCdma cellIdentityCdma = 6; */ private com.google.protobuf.SingleFieldBuilder< com.craxiom.messaging.CellIdentityCdma, com.craxiom.messaging.CellIdentityCdma.Builder, com.craxiom.messaging.CellIdentityCdmaOrBuilder> getCellIdentityCdmaFieldBuilder() { if (cellIdentityCdmaBuilder_ == null) { if (!(cellIdentityCase_ == 6)) { cellIdentity_ = com.craxiom.messaging.CellIdentityCdma.getDefaultInstance(); } cellIdentityCdmaBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.craxiom.messaging.CellIdentityCdma, com.craxiom.messaging.CellIdentityCdma.Builder, com.craxiom.messaging.CellIdentityCdmaOrBuilder>( (com.craxiom.messaging.CellIdentityCdma) cellIdentity_, getParentForChildren(), isClean()); cellIdentity_ = null; } cellIdentityCase_ = 6; onChanged(); return cellIdentityCdmaBuilder_; } private com.google.protobuf.SingleFieldBuilder< com.craxiom.messaging.CellIdentityUmts, com.craxiom.messaging.CellIdentityUmts.Builder, com.craxiom.messaging.CellIdentityUmtsOrBuilder> cellIdentityUmtsBuilder_; /** * .com.craxiom.messaging.CellIdentityUmts cellIdentityUmts = 7; * @return Whether the cellIdentityUmts field is set. */ @java.lang.Override public boolean hasCellIdentityUmts() { return cellIdentityCase_ == 7; } /** * .com.craxiom.messaging.CellIdentityUmts cellIdentityUmts = 7; * @return The cellIdentityUmts. */ @java.lang.Override public com.craxiom.messaging.CellIdentityUmts getCellIdentityUmts() { if (cellIdentityUmtsBuilder_ == null) { if (cellIdentityCase_ == 7) { return (com.craxiom.messaging.CellIdentityUmts) cellIdentity_; } return com.craxiom.messaging.CellIdentityUmts.getDefaultInstance(); } else { if (cellIdentityCase_ == 7) { return cellIdentityUmtsBuilder_.getMessage(); } return com.craxiom.messaging.CellIdentityUmts.getDefaultInstance(); } } /** * .com.craxiom.messaging.CellIdentityUmts cellIdentityUmts = 7; */ public Builder setCellIdentityUmts(com.craxiom.messaging.CellIdentityUmts value) { if (cellIdentityUmtsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cellIdentity_ = value; onChanged(); } else { cellIdentityUmtsBuilder_.setMessage(value); } cellIdentityCase_ = 7; return this; } /** * .com.craxiom.messaging.CellIdentityUmts cellIdentityUmts = 7; */ public Builder setCellIdentityUmts( com.craxiom.messaging.CellIdentityUmts.Builder builderForValue) { if (cellIdentityUmtsBuilder_ == null) { cellIdentity_ = builderForValue.build(); onChanged(); } else { cellIdentityUmtsBuilder_.setMessage(builderForValue.build()); } cellIdentityCase_ = 7; return this; } /** * .com.craxiom.messaging.CellIdentityUmts cellIdentityUmts = 7; */ public Builder mergeCellIdentityUmts(com.craxiom.messaging.CellIdentityUmts value) { if (cellIdentityUmtsBuilder_ == null) { if (cellIdentityCase_ == 7 && cellIdentity_ != com.craxiom.messaging.CellIdentityUmts.getDefaultInstance()) { cellIdentity_ = com.craxiom.messaging.CellIdentityUmts.newBuilder((com.craxiom.messaging.CellIdentityUmts) cellIdentity_) .mergeFrom(value).buildPartial(); } else { cellIdentity_ = value; } onChanged(); } else { if (cellIdentityCase_ == 7) { cellIdentityUmtsBuilder_.mergeFrom(value); } else { cellIdentityUmtsBuilder_.setMessage(value); } } cellIdentityCase_ = 7; return this; } /** * .com.craxiom.messaging.CellIdentityUmts cellIdentityUmts = 7; */ public Builder clearCellIdentityUmts() { if (cellIdentityUmtsBuilder_ == null) { if (cellIdentityCase_ == 7) { cellIdentityCase_ = 0; cellIdentity_ = null; onChanged(); } } else { if (cellIdentityCase_ == 7) { cellIdentityCase_ = 0; cellIdentity_ = null; } cellIdentityUmtsBuilder_.clear(); } return this; } /** * .com.craxiom.messaging.CellIdentityUmts cellIdentityUmts = 7; */ public com.craxiom.messaging.CellIdentityUmts.Builder getCellIdentityUmtsBuilder() { return getCellIdentityUmtsFieldBuilder().getBuilder(); } /** * .com.craxiom.messaging.CellIdentityUmts cellIdentityUmts = 7; */ @java.lang.Override public com.craxiom.messaging.CellIdentityUmtsOrBuilder getCellIdentityUmtsOrBuilder() { if ((cellIdentityCase_ == 7) && (cellIdentityUmtsBuilder_ != null)) { return cellIdentityUmtsBuilder_.getMessageOrBuilder(); } else { if (cellIdentityCase_ == 7) { return (com.craxiom.messaging.CellIdentityUmts) cellIdentity_; } return com.craxiom.messaging.CellIdentityUmts.getDefaultInstance(); } } /** * .com.craxiom.messaging.CellIdentityUmts cellIdentityUmts = 7; */ private com.google.protobuf.SingleFieldBuilder< com.craxiom.messaging.CellIdentityUmts, com.craxiom.messaging.CellIdentityUmts.Builder, com.craxiom.messaging.CellIdentityUmtsOrBuilder> getCellIdentityUmtsFieldBuilder() { if (cellIdentityUmtsBuilder_ == null) { if (!(cellIdentityCase_ == 7)) { cellIdentity_ = com.craxiom.messaging.CellIdentityUmts.getDefaultInstance(); } cellIdentityUmtsBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.craxiom.messaging.CellIdentityUmts, com.craxiom.messaging.CellIdentityUmts.Builder, com.craxiom.messaging.CellIdentityUmtsOrBuilder>( (com.craxiom.messaging.CellIdentityUmts) cellIdentity_, getParentForChildren(), isClean()); cellIdentity_ = null; } cellIdentityCase_ = 7; onChanged(); return cellIdentityUmtsBuilder_; } private com.google.protobuf.SingleFieldBuilder< com.craxiom.messaging.CellIdentityLte, com.craxiom.messaging.CellIdentityLte.Builder, com.craxiom.messaging.CellIdentityLteOrBuilder> cellIdentityLteBuilder_; /** * .com.craxiom.messaging.CellIdentityLte cellIdentityLte = 8; * @return Whether the cellIdentityLte field is set. */ @java.lang.Override public boolean hasCellIdentityLte() { return cellIdentityCase_ == 8; } /** * .com.craxiom.messaging.CellIdentityLte cellIdentityLte = 8; * @return The cellIdentityLte. */ @java.lang.Override public com.craxiom.messaging.CellIdentityLte getCellIdentityLte() { if (cellIdentityLteBuilder_ == null) { if (cellIdentityCase_ == 8) { return (com.craxiom.messaging.CellIdentityLte) cellIdentity_; } return com.craxiom.messaging.CellIdentityLte.getDefaultInstance(); } else { if (cellIdentityCase_ == 8) { return cellIdentityLteBuilder_.getMessage(); } return com.craxiom.messaging.CellIdentityLte.getDefaultInstance(); } } /** * .com.craxiom.messaging.CellIdentityLte cellIdentityLte = 8; */ public Builder setCellIdentityLte(com.craxiom.messaging.CellIdentityLte value) { if (cellIdentityLteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cellIdentity_ = value; onChanged(); } else { cellIdentityLteBuilder_.setMessage(value); } cellIdentityCase_ = 8; return this; } /** * .com.craxiom.messaging.CellIdentityLte cellIdentityLte = 8; */ public Builder setCellIdentityLte( com.craxiom.messaging.CellIdentityLte.Builder builderForValue) { if (cellIdentityLteBuilder_ == null) { cellIdentity_ = builderForValue.build(); onChanged(); } else { cellIdentityLteBuilder_.setMessage(builderForValue.build()); } cellIdentityCase_ = 8; return this; } /** * .com.craxiom.messaging.CellIdentityLte cellIdentityLte = 8; */ public Builder mergeCellIdentityLte(com.craxiom.messaging.CellIdentityLte value) { if (cellIdentityLteBuilder_ == null) { if (cellIdentityCase_ == 8 && cellIdentity_ != com.craxiom.messaging.CellIdentityLte.getDefaultInstance()) { cellIdentity_ = com.craxiom.messaging.CellIdentityLte.newBuilder((com.craxiom.messaging.CellIdentityLte) cellIdentity_) .mergeFrom(value).buildPartial(); } else { cellIdentity_ = value; } onChanged(); } else { if (cellIdentityCase_ == 8) { cellIdentityLteBuilder_.mergeFrom(value); } else { cellIdentityLteBuilder_.setMessage(value); } } cellIdentityCase_ = 8; return this; } /** * .com.craxiom.messaging.CellIdentityLte cellIdentityLte = 8; */ public Builder clearCellIdentityLte() { if (cellIdentityLteBuilder_ == null) { if (cellIdentityCase_ == 8) { cellIdentityCase_ = 0; cellIdentity_ = null; onChanged(); } } else { if (cellIdentityCase_ == 8) { cellIdentityCase_ = 0; cellIdentity_ = null; } cellIdentityLteBuilder_.clear(); } return this; } /** * .com.craxiom.messaging.CellIdentityLte cellIdentityLte = 8; */ public com.craxiom.messaging.CellIdentityLte.Builder getCellIdentityLteBuilder() { return getCellIdentityLteFieldBuilder().getBuilder(); } /** * .com.craxiom.messaging.CellIdentityLte cellIdentityLte = 8; */ @java.lang.Override public com.craxiom.messaging.CellIdentityLteOrBuilder getCellIdentityLteOrBuilder() { if ((cellIdentityCase_ == 8) && (cellIdentityLteBuilder_ != null)) { return cellIdentityLteBuilder_.getMessageOrBuilder(); } else { if (cellIdentityCase_ == 8) { return (com.craxiom.messaging.CellIdentityLte) cellIdentity_; } return com.craxiom.messaging.CellIdentityLte.getDefaultInstance(); } } /** * .com.craxiom.messaging.CellIdentityLte cellIdentityLte = 8; */ private com.google.protobuf.SingleFieldBuilder< com.craxiom.messaging.CellIdentityLte, com.craxiom.messaging.CellIdentityLte.Builder, com.craxiom.messaging.CellIdentityLteOrBuilder> getCellIdentityLteFieldBuilder() { if (cellIdentityLteBuilder_ == null) { if (!(cellIdentityCase_ == 8)) { cellIdentity_ = com.craxiom.messaging.CellIdentityLte.getDefaultInstance(); } cellIdentityLteBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.craxiom.messaging.CellIdentityLte, com.craxiom.messaging.CellIdentityLte.Builder, com.craxiom.messaging.CellIdentityLteOrBuilder>( (com.craxiom.messaging.CellIdentityLte) cellIdentity_, getParentForChildren(), isClean()); cellIdentity_ = null; } cellIdentityCase_ = 8; onChanged(); return cellIdentityLteBuilder_; } private com.google.protobuf.SingleFieldBuilder< com.craxiom.messaging.CellIdentityNr, com.craxiom.messaging.CellIdentityNr.Builder, com.craxiom.messaging.CellIdentityNrOrBuilder> cellIdentityNrBuilder_; /** * .com.craxiom.messaging.CellIdentityNr cellIdentityNr = 9; * @return Whether the cellIdentityNr field is set. */ @java.lang.Override public boolean hasCellIdentityNr() { return cellIdentityCase_ == 9; } /** * .com.craxiom.messaging.CellIdentityNr cellIdentityNr = 9; * @return The cellIdentityNr. */ @java.lang.Override public com.craxiom.messaging.CellIdentityNr getCellIdentityNr() { if (cellIdentityNrBuilder_ == null) { if (cellIdentityCase_ == 9) { return (com.craxiom.messaging.CellIdentityNr) cellIdentity_; } return com.craxiom.messaging.CellIdentityNr.getDefaultInstance(); } else { if (cellIdentityCase_ == 9) { return cellIdentityNrBuilder_.getMessage(); } return com.craxiom.messaging.CellIdentityNr.getDefaultInstance(); } } /** * .com.craxiom.messaging.CellIdentityNr cellIdentityNr = 9; */ public Builder setCellIdentityNr(com.craxiom.messaging.CellIdentityNr value) { if (cellIdentityNrBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cellIdentity_ = value; onChanged(); } else { cellIdentityNrBuilder_.setMessage(value); } cellIdentityCase_ = 9; return this; } /** * .com.craxiom.messaging.CellIdentityNr cellIdentityNr = 9; */ public Builder setCellIdentityNr( com.craxiom.messaging.CellIdentityNr.Builder builderForValue) { if (cellIdentityNrBuilder_ == null) { cellIdentity_ = builderForValue.build(); onChanged(); } else { cellIdentityNrBuilder_.setMessage(builderForValue.build()); } cellIdentityCase_ = 9; return this; } /** * .com.craxiom.messaging.CellIdentityNr cellIdentityNr = 9; */ public Builder mergeCellIdentityNr(com.craxiom.messaging.CellIdentityNr value) { if (cellIdentityNrBuilder_ == null) { if (cellIdentityCase_ == 9 && cellIdentity_ != com.craxiom.messaging.CellIdentityNr.getDefaultInstance()) { cellIdentity_ = com.craxiom.messaging.CellIdentityNr.newBuilder((com.craxiom.messaging.CellIdentityNr) cellIdentity_) .mergeFrom(value).buildPartial(); } else { cellIdentity_ = value; } onChanged(); } else { if (cellIdentityCase_ == 9) { cellIdentityNrBuilder_.mergeFrom(value); } else { cellIdentityNrBuilder_.setMessage(value); } } cellIdentityCase_ = 9; return this; } /** * .com.craxiom.messaging.CellIdentityNr cellIdentityNr = 9; */ public Builder clearCellIdentityNr() { if (cellIdentityNrBuilder_ == null) { if (cellIdentityCase_ == 9) { cellIdentityCase_ = 0; cellIdentity_ = null; onChanged(); } } else { if (cellIdentityCase_ == 9) { cellIdentityCase_ = 0; cellIdentity_ = null; } cellIdentityNrBuilder_.clear(); } return this; } /** * .com.craxiom.messaging.CellIdentityNr cellIdentityNr = 9; */ public com.craxiom.messaging.CellIdentityNr.Builder getCellIdentityNrBuilder() { return getCellIdentityNrFieldBuilder().getBuilder(); } /** * .com.craxiom.messaging.CellIdentityNr cellIdentityNr = 9; */ @java.lang.Override public com.craxiom.messaging.CellIdentityNrOrBuilder getCellIdentityNrOrBuilder() { if ((cellIdentityCase_ == 9) && (cellIdentityNrBuilder_ != null)) { return cellIdentityNrBuilder_.getMessageOrBuilder(); } else { if (cellIdentityCase_ == 9) { return (com.craxiom.messaging.CellIdentityNr) cellIdentity_; } return com.craxiom.messaging.CellIdentityNr.getDefaultInstance(); } } /** * .com.craxiom.messaging.CellIdentityNr cellIdentityNr = 9; */ private com.google.protobuf.SingleFieldBuilder< com.craxiom.messaging.CellIdentityNr, com.craxiom.messaging.CellIdentityNr.Builder, com.craxiom.messaging.CellIdentityNrOrBuilder> getCellIdentityNrFieldBuilder() { if (cellIdentityNrBuilder_ == null) { if (!(cellIdentityCase_ == 9)) { cellIdentity_ = com.craxiom.messaging.CellIdentityNr.getDefaultInstance(); } cellIdentityNrBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.craxiom.messaging.CellIdentityNr, com.craxiom.messaging.CellIdentityNr.Builder, com.craxiom.messaging.CellIdentityNrOrBuilder>( (com.craxiom.messaging.CellIdentityNr) cellIdentity_, getParentForChildren(), isClean()); cellIdentity_ = null; } cellIdentityCase_ = 9; onChanged(); return cellIdentityNrBuilder_; } // @@protoc_insertion_point(builder_scope:com.craxiom.messaging.NetworkRegistrationInfo) } // @@protoc_insertion_point(class_scope:com.craxiom.messaging.NetworkRegistrationInfo) private static final com.craxiom.messaging.NetworkRegistrationInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.craxiom.messaging.NetworkRegistrationInfo(); } public static com.craxiom.messaging.NetworkRegistrationInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NetworkRegistrationInfo 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.craxiom.messaging.NetworkRegistrationInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy