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

wechat.protobuf.LbsLocationNew Maven / Gradle / Ivy

There is a newer version: 8.0.48.01
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: wechat.proto

package wechat.protobuf;

/**
 * Protobuf type {@code wechat_proto.LbsLocationNew}
 */
public final class LbsLocationNew extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:wechat_proto.LbsLocationNew)
    LbsLocationNewOrBuilder {
private static final long serialVersionUID = 0L;
  // Use LbsLocationNew.newBuilder() to construct.
  private LbsLocationNew(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private LbsLocationNew() {
    macAddr_ = "";
    cellId_ = "";
    address_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new LbsLocationNew();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private LbsLocationNew(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 13: {
            bitField0_ |= 0x00000001;
            longitude_ = input.readFloat();
            break;
          }
          case 21: {
            bitField0_ |= 0x00000002;
            latitude_ = input.readFloat();
            break;
          }
          case 24: {
            bitField0_ |= 0x00000004;
            precision_ = input.readUInt32();
            break;
          }
          case 34: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000008;
            macAddr_ = bs;
            break;
          }
          case 42: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000010;
            cellId_ = bs;
            break;
          }
          case 48: {
            bitField0_ |= 0x00000020;
            gpsSource_ = input.readUInt32();
            break;
          }
          case 58: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000040;
            address_ = bs;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return wechat.protobuf.Wechat.internal_static_wechat_proto_LbsLocationNew_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return wechat.protobuf.Wechat.internal_static_wechat_proto_LbsLocationNew_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            wechat.protobuf.LbsLocationNew.class, wechat.protobuf.LbsLocationNew.Builder.class);
  }

  private int bitField0_;
  public static final int LONGITUDE_FIELD_NUMBER = 1;
  private float longitude_;
  /**
   * optional float longitude = 1;
   * @return Whether the longitude field is set.
   */
  @java.lang.Override
  public boolean hasLongitude() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional float longitude = 1;
   * @return The longitude.
   */
  @java.lang.Override
  public float getLongitude() {
    return longitude_;
  }

  public static final int LATITUDE_FIELD_NUMBER = 2;
  private float latitude_;
  /**
   * optional float latitude = 2;
   * @return Whether the latitude field is set.
   */
  @java.lang.Override
  public boolean hasLatitude() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional float latitude = 2;
   * @return The latitude.
   */
  @java.lang.Override
  public float getLatitude() {
    return latitude_;
  }

  public static final int PRECISION_FIELD_NUMBER = 3;
  private int precision_;
  /**
   * optional uint32 precision = 3;
   * @return Whether the precision field is set.
   */
  @java.lang.Override
  public boolean hasPrecision() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional uint32 precision = 3;
   * @return The precision.
   */
  @java.lang.Override
  public int getPrecision() {
    return precision_;
  }

  public static final int MAC_ADDR_FIELD_NUMBER = 4;
  private volatile java.lang.Object macAddr_;
  /**
   * optional string mac_addr = 4;
   * @return Whether the macAddr field is set.
   */
  @java.lang.Override
  public boolean hasMacAddr() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional string mac_addr = 4;
   * @return The macAddr.
   */
  @java.lang.Override
  public java.lang.String getMacAddr() {
    java.lang.Object ref = macAddr_;
    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();
      if (bs.isValidUtf8()) {
        macAddr_ = s;
      }
      return s;
    }
  }
  /**
   * optional string mac_addr = 4;
   * @return The bytes for macAddr.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getMacAddrBytes() {
    java.lang.Object ref = macAddr_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      macAddr_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int CELL_ID_FIELD_NUMBER = 5;
  private volatile java.lang.Object cellId_;
  /**
   * optional string cell_id = 5;
   * @return Whether the cellId field is set.
   */
  @java.lang.Override
  public boolean hasCellId() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional string cell_id = 5;
   * @return The cellId.
   */
  @java.lang.Override
  public java.lang.String getCellId() {
    java.lang.Object ref = cellId_;
    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();
      if (bs.isValidUtf8()) {
        cellId_ = s;
      }
      return s;
    }
  }
  /**
   * optional string cell_id = 5;
   * @return The bytes for cellId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getCellIdBytes() {
    java.lang.Object ref = cellId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      cellId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int GPS_SOURCE_FIELD_NUMBER = 6;
  private int gpsSource_;
  /**
   * optional uint32 gps_source = 6;
   * @return Whether the gpsSource field is set.
   */
  @java.lang.Override
  public boolean hasGpsSource() {
    return ((bitField0_ & 0x00000020) != 0);
  }
  /**
   * optional uint32 gps_source = 6;
   * @return The gpsSource.
   */
  @java.lang.Override
  public int getGpsSource() {
    return gpsSource_;
  }

  public static final int ADDRESS_FIELD_NUMBER = 7;
  private volatile java.lang.Object address_;
  /**
   * optional string address = 7;
   * @return Whether the address field is set.
   */
  @java.lang.Override
  public boolean hasAddress() {
    return ((bitField0_ & 0x00000040) != 0);
  }
  /**
   * optional string address = 7;
   * @return The address.
   */
  @java.lang.Override
  public java.lang.String getAddress() {
    java.lang.Object ref = address_;
    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();
      if (bs.isValidUtf8()) {
        address_ = s;
      }
      return s;
    }
  }
  /**
   * optional string address = 7;
   * @return The bytes for address.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getAddressBytes() {
    java.lang.Object ref = address_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      address_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeFloat(1, longitude_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeFloat(2, latitude_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeUInt32(3, precision_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, macAddr_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, cellId_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      output.writeUInt32(6, gpsSource_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, address_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeFloatSize(1, longitude_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeFloatSize(2, latitude_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(3, precision_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, macAddr_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cellId_);
    }
    if (((bitField0_ & 0x00000020) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt32Size(6, gpsSource_);
    }
    if (((bitField0_ & 0x00000040) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, address_);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof wechat.protobuf.LbsLocationNew)) {
      return super.equals(obj);
    }
    wechat.protobuf.LbsLocationNew other = (wechat.protobuf.LbsLocationNew) obj;

    if (hasLongitude() != other.hasLongitude()) return false;
    if (hasLongitude()) {
      if (java.lang.Float.floatToIntBits(getLongitude())
          != java.lang.Float.floatToIntBits(
              other.getLongitude())) return false;
    }
    if (hasLatitude() != other.hasLatitude()) return false;
    if (hasLatitude()) {
      if (java.lang.Float.floatToIntBits(getLatitude())
          != java.lang.Float.floatToIntBits(
              other.getLatitude())) return false;
    }
    if (hasPrecision() != other.hasPrecision()) return false;
    if (hasPrecision()) {
      if (getPrecision()
          != other.getPrecision()) return false;
    }
    if (hasMacAddr() != other.hasMacAddr()) return false;
    if (hasMacAddr()) {
      if (!getMacAddr()
          .equals(other.getMacAddr())) return false;
    }
    if (hasCellId() != other.hasCellId()) return false;
    if (hasCellId()) {
      if (!getCellId()
          .equals(other.getCellId())) return false;
    }
    if (hasGpsSource() != other.hasGpsSource()) return false;
    if (hasGpsSource()) {
      if (getGpsSource()
          != other.getGpsSource()) return false;
    }
    if (hasAddress() != other.hasAddress()) return false;
    if (hasAddress()) {
      if (!getAddress()
          .equals(other.getAddress())) return false;
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasLongitude()) {
      hash = (37 * hash) + LONGITUDE_FIELD_NUMBER;
      hash = (53 * hash) + java.lang.Float.floatToIntBits(
          getLongitude());
    }
    if (hasLatitude()) {
      hash = (37 * hash) + LATITUDE_FIELD_NUMBER;
      hash = (53 * hash) + java.lang.Float.floatToIntBits(
          getLatitude());
    }
    if (hasPrecision()) {
      hash = (37 * hash) + PRECISION_FIELD_NUMBER;
      hash = (53 * hash) + getPrecision();
    }
    if (hasMacAddr()) {
      hash = (37 * hash) + MAC_ADDR_FIELD_NUMBER;
      hash = (53 * hash) + getMacAddr().hashCode();
    }
    if (hasCellId()) {
      hash = (37 * hash) + CELL_ID_FIELD_NUMBER;
      hash = (53 * hash) + getCellId().hashCode();
    }
    if (hasGpsSource()) {
      hash = (37 * hash) + GPS_SOURCE_FIELD_NUMBER;
      hash = (53 * hash) + getGpsSource();
    }
    if (hasAddress()) {
      hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
      hash = (53 * hash) + getAddress().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static wechat.protobuf.LbsLocationNew parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.LbsLocationNew parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static wechat.protobuf.LbsLocationNew parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.LbsLocationNew parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static wechat.protobuf.LbsLocationNew parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static wechat.protobuf.LbsLocationNew parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static wechat.protobuf.LbsLocationNew parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static wechat.protobuf.LbsLocationNew 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 wechat.protobuf.LbsLocationNew parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static wechat.protobuf.LbsLocationNew 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 wechat.protobuf.LbsLocationNew parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static wechat.protobuf.LbsLocationNew 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(wechat.protobuf.LbsLocationNew 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;
  }
  /**
   * Protobuf type {@code wechat_proto.LbsLocationNew}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:wechat_proto.LbsLocationNew)
      wechat.protobuf.LbsLocationNewOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return wechat.protobuf.Wechat.internal_static_wechat_proto_LbsLocationNew_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return wechat.protobuf.Wechat.internal_static_wechat_proto_LbsLocationNew_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              wechat.protobuf.LbsLocationNew.class, wechat.protobuf.LbsLocationNew.Builder.class);
    }

    // Construct using wechat.protobuf.LbsLocationNew.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      longitude_ = 0F;
      bitField0_ = (bitField0_ & ~0x00000001);
      latitude_ = 0F;
      bitField0_ = (bitField0_ & ~0x00000002);
      precision_ = 0;
      bitField0_ = (bitField0_ & ~0x00000004);
      macAddr_ = "";
      bitField0_ = (bitField0_ & ~0x00000008);
      cellId_ = "";
      bitField0_ = (bitField0_ & ~0x00000010);
      gpsSource_ = 0;
      bitField0_ = (bitField0_ & ~0x00000020);
      address_ = "";
      bitField0_ = (bitField0_ & ~0x00000040);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return wechat.protobuf.Wechat.internal_static_wechat_proto_LbsLocationNew_descriptor;
    }

    @java.lang.Override
    public wechat.protobuf.LbsLocationNew getDefaultInstanceForType() {
      return wechat.protobuf.LbsLocationNew.getDefaultInstance();
    }

    @java.lang.Override
    public wechat.protobuf.LbsLocationNew build() {
      wechat.protobuf.LbsLocationNew result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public wechat.protobuf.LbsLocationNew buildPartial() {
      wechat.protobuf.LbsLocationNew result = new wechat.protobuf.LbsLocationNew(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.longitude_ = longitude_;
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.latitude_ = latitude_;
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.precision_ = precision_;
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        to_bitField0_ |= 0x00000008;
      }
      result.macAddr_ = macAddr_;
      if (((from_bitField0_ & 0x00000010) != 0)) {
        to_bitField0_ |= 0x00000010;
      }
      result.cellId_ = cellId_;
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.gpsSource_ = gpsSource_;
        to_bitField0_ |= 0x00000020;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        to_bitField0_ |= 0x00000040;
      }
      result.address_ = address_;
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    @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 wechat.protobuf.LbsLocationNew) {
        return mergeFrom((wechat.protobuf.LbsLocationNew)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(wechat.protobuf.LbsLocationNew other) {
      if (other == wechat.protobuf.LbsLocationNew.getDefaultInstance()) return this;
      if (other.hasLongitude()) {
        setLongitude(other.getLongitude());
      }
      if (other.hasLatitude()) {
        setLatitude(other.getLatitude());
      }
      if (other.hasPrecision()) {
        setPrecision(other.getPrecision());
      }
      if (other.hasMacAddr()) {
        bitField0_ |= 0x00000008;
        macAddr_ = other.macAddr_;
        onChanged();
      }
      if (other.hasCellId()) {
        bitField0_ |= 0x00000010;
        cellId_ = other.cellId_;
        onChanged();
      }
      if (other.hasGpsSource()) {
        setGpsSource(other.getGpsSource());
      }
      if (other.hasAddress()) {
        bitField0_ |= 0x00000040;
        address_ = other.address_;
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      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 {
      wechat.protobuf.LbsLocationNew parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (wechat.protobuf.LbsLocationNew) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private float longitude_ ;
    /**
     * optional float longitude = 1;
     * @return Whether the longitude field is set.
     */
    @java.lang.Override
    public boolean hasLongitude() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional float longitude = 1;
     * @return The longitude.
     */
    @java.lang.Override
    public float getLongitude() {
      return longitude_;
    }
    /**
     * optional float longitude = 1;
     * @param value The longitude to set.
     * @return This builder for chaining.
     */
    public Builder setLongitude(float value) {
      bitField0_ |= 0x00000001;
      longitude_ = value;
      onChanged();
      return this;
    }
    /**
     * optional float longitude = 1;
     * @return This builder for chaining.
     */
    public Builder clearLongitude() {
      bitField0_ = (bitField0_ & ~0x00000001);
      longitude_ = 0F;
      onChanged();
      return this;
    }

    private float latitude_ ;
    /**
     * optional float latitude = 2;
     * @return Whether the latitude field is set.
     */
    @java.lang.Override
    public boolean hasLatitude() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional float latitude = 2;
     * @return The latitude.
     */
    @java.lang.Override
    public float getLatitude() {
      return latitude_;
    }
    /**
     * optional float latitude = 2;
     * @param value The latitude to set.
     * @return This builder for chaining.
     */
    public Builder setLatitude(float value) {
      bitField0_ |= 0x00000002;
      latitude_ = value;
      onChanged();
      return this;
    }
    /**
     * optional float latitude = 2;
     * @return This builder for chaining.
     */
    public Builder clearLatitude() {
      bitField0_ = (bitField0_ & ~0x00000002);
      latitude_ = 0F;
      onChanged();
      return this;
    }

    private int precision_ ;
    /**
     * optional uint32 precision = 3;
     * @return Whether the precision field is set.
     */
    @java.lang.Override
    public boolean hasPrecision() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional uint32 precision = 3;
     * @return The precision.
     */
    @java.lang.Override
    public int getPrecision() {
      return precision_;
    }
    /**
     * optional uint32 precision = 3;
     * @param value The precision to set.
     * @return This builder for chaining.
     */
    public Builder setPrecision(int value) {
      bitField0_ |= 0x00000004;
      precision_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 precision = 3;
     * @return This builder for chaining.
     */
    public Builder clearPrecision() {
      bitField0_ = (bitField0_ & ~0x00000004);
      precision_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object macAddr_ = "";
    /**
     * optional string mac_addr = 4;
     * @return Whether the macAddr field is set.
     */
    public boolean hasMacAddr() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional string mac_addr = 4;
     * @return The macAddr.
     */
    public java.lang.String getMacAddr() {
      java.lang.Object ref = macAddr_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          macAddr_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string mac_addr = 4;
     * @return The bytes for macAddr.
     */
    public com.google.protobuf.ByteString
        getMacAddrBytes() {
      java.lang.Object ref = macAddr_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        macAddr_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string mac_addr = 4;
     * @param value The macAddr to set.
     * @return This builder for chaining.
     */
    public Builder setMacAddr(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
      macAddr_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string mac_addr = 4;
     * @return This builder for chaining.
     */
    public Builder clearMacAddr() {
      bitField0_ = (bitField0_ & ~0x00000008);
      macAddr_ = getDefaultInstance().getMacAddr();
      onChanged();
      return this;
    }
    /**
     * optional string mac_addr = 4;
     * @param value The bytes for macAddr to set.
     * @return This builder for chaining.
     */
    public Builder setMacAddrBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000008;
      macAddr_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object cellId_ = "";
    /**
     * optional string cell_id = 5;
     * @return Whether the cellId field is set.
     */
    public boolean hasCellId() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional string cell_id = 5;
     * @return The cellId.
     */
    public java.lang.String getCellId() {
      java.lang.Object ref = cellId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          cellId_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string cell_id = 5;
     * @return The bytes for cellId.
     */
    public com.google.protobuf.ByteString
        getCellIdBytes() {
      java.lang.Object ref = cellId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        cellId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string cell_id = 5;
     * @param value The cellId to set.
     * @return This builder for chaining.
     */
    public Builder setCellId(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
      cellId_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string cell_id = 5;
     * @return This builder for chaining.
     */
    public Builder clearCellId() {
      bitField0_ = (bitField0_ & ~0x00000010);
      cellId_ = getDefaultInstance().getCellId();
      onChanged();
      return this;
    }
    /**
     * optional string cell_id = 5;
     * @param value The bytes for cellId to set.
     * @return This builder for chaining.
     */
    public Builder setCellIdBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000010;
      cellId_ = value;
      onChanged();
      return this;
    }

    private int gpsSource_ ;
    /**
     * optional uint32 gps_source = 6;
     * @return Whether the gpsSource field is set.
     */
    @java.lang.Override
    public boolean hasGpsSource() {
      return ((bitField0_ & 0x00000020) != 0);
    }
    /**
     * optional uint32 gps_source = 6;
     * @return The gpsSource.
     */
    @java.lang.Override
    public int getGpsSource() {
      return gpsSource_;
    }
    /**
     * optional uint32 gps_source = 6;
     * @param value The gpsSource to set.
     * @return This builder for chaining.
     */
    public Builder setGpsSource(int value) {
      bitField0_ |= 0x00000020;
      gpsSource_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint32 gps_source = 6;
     * @return This builder for chaining.
     */
    public Builder clearGpsSource() {
      bitField0_ = (bitField0_ & ~0x00000020);
      gpsSource_ = 0;
      onChanged();
      return this;
    }

    private java.lang.Object address_ = "";
    /**
     * optional string address = 7;
     * @return Whether the address field is set.
     */
    public boolean hasAddress() {
      return ((bitField0_ & 0x00000040) != 0);
    }
    /**
     * optional string address = 7;
     * @return The address.
     */
    public java.lang.String getAddress() {
      java.lang.Object ref = address_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (bs.isValidUtf8()) {
          address_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string address = 7;
     * @return The bytes for address.
     */
    public com.google.protobuf.ByteString
        getAddressBytes() {
      java.lang.Object ref = address_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        address_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string address = 7;
     * @param value The address to set.
     * @return This builder for chaining.
     */
    public Builder setAddress(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000040;
      address_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string address = 7;
     * @return This builder for chaining.
     */
    public Builder clearAddress() {
      bitField0_ = (bitField0_ & ~0x00000040);
      address_ = getDefaultInstance().getAddress();
      onChanged();
      return this;
    }
    /**
     * optional string address = 7;
     * @param value The bytes for address to set.
     * @return This builder for chaining.
     */
    public Builder setAddressBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000040;
      address_ = value;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:wechat_proto.LbsLocationNew)
  }

  // @@protoc_insertion_point(class_scope:wechat_proto.LbsLocationNew)
  private static final wechat.protobuf.LbsLocationNew DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new wechat.protobuf.LbsLocationNew();
  }

  public static wechat.protobuf.LbsLocationNew getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  @java.lang.Deprecated public static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public LbsLocationNew parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new LbsLocationNew(input, extensionRegistry);
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public wechat.protobuf.LbsLocationNew getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy