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

POGOProtos.Data.Geofence.GeofenceMetadataOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: POGOProtos/Data/Geofence/GeofenceMetadata.proto

package POGOProtos.Data.Geofence;

public final class GeofenceMetadataOuterClass {
  private GeofenceMetadataOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface GeofenceMetadataOrBuilder extends
      // @@protoc_insertion_point(interface_extends:POGOProtos.Data.Geofence.GeofenceMetadata)
      com.google.protobuf.MessageOrBuilder {

    /**
     * double latitude_deg = 1;
     */
    double getLatitudeDeg();

    /**
     * double longitude_deg = 2;
     */
    double getLongitudeDeg();

    /**
     * double radius = 3;
     */
    double getRadius();

    /**
     * string identifier = 4;
     */
    java.lang.String getIdentifier();
    /**
     * string identifier = 4;
     */
    com.google.protobuf.ByteString
        getIdentifierBytes();

    /**
     * int64 expiration_ms = 5;
     */
    long getExpirationMs();

    /**
     * int64 dwell_time_ms = 6;
     */
    long getDwellTimeMs();

    /**
     * bool fire_on_entrance = 7;
     */
    boolean getFireOnEntrance();

    /**
     * bool fire_on_exit = 8;
     */
    boolean getFireOnExit();
  }
  /**
   * Protobuf type {@code POGOProtos.Data.Geofence.GeofenceMetadata}
   */
  public  static final class GeofenceMetadata extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:POGOProtos.Data.Geofence.GeofenceMetadata)
      GeofenceMetadataOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use GeofenceMetadata.newBuilder() to construct.
    private GeofenceMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private GeofenceMetadata() {
      latitudeDeg_ = 0D;
      longitudeDeg_ = 0D;
      radius_ = 0D;
      identifier_ = "";
      expirationMs_ = 0L;
      dwellTimeMs_ = 0L;
      fireOnEntrance_ = false;
      fireOnExit_ = false;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private GeofenceMetadata(
        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 9: {

              latitudeDeg_ = input.readDouble();
              break;
            }
            case 17: {

              longitudeDeg_ = input.readDouble();
              break;
            }
            case 25: {

              radius_ = input.readDouble();
              break;
            }
            case 34: {
              java.lang.String s = input.readStringRequireUtf8();

              identifier_ = s;
              break;
            }
            case 40: {

              expirationMs_ = input.readInt64();
              break;
            }
            case 48: {

              dwellTimeMs_ = input.readInt64();
              break;
            }
            case 56: {

              fireOnEntrance_ = input.readBool();
              break;
            }
            case 64: {

              fireOnExit_ = input.readBool();
              break;
            }
            default: {
              if (!parseUnknownFieldProto3(
                  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 POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.internal_static_POGOProtos_Data_Geofence_GeofenceMetadata_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.internal_static_POGOProtos_Data_Geofence_GeofenceMetadata_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata.class, POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata.Builder.class);
    }

    public static final int LATITUDE_DEG_FIELD_NUMBER = 1;
    private double latitudeDeg_;
    /**
     * double latitude_deg = 1;
     */
    public double getLatitudeDeg() {
      return latitudeDeg_;
    }

    public static final int LONGITUDE_DEG_FIELD_NUMBER = 2;
    private double longitudeDeg_;
    /**
     * double longitude_deg = 2;
     */
    public double getLongitudeDeg() {
      return longitudeDeg_;
    }

    public static final int RADIUS_FIELD_NUMBER = 3;
    private double radius_;
    /**
     * double radius = 3;
     */
    public double getRadius() {
      return radius_;
    }

    public static final int IDENTIFIER_FIELD_NUMBER = 4;
    private volatile java.lang.Object identifier_;
    /**
     * string identifier = 4;
     */
    public java.lang.String getIdentifier() {
      java.lang.Object ref = identifier_;
      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();
        identifier_ = s;
        return s;
      }
    }
    /**
     * string identifier = 4;
     */
    public com.google.protobuf.ByteString
        getIdentifierBytes() {
      java.lang.Object ref = identifier_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        identifier_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int EXPIRATION_MS_FIELD_NUMBER = 5;
    private long expirationMs_;
    /**
     * int64 expiration_ms = 5;
     */
    public long getExpirationMs() {
      return expirationMs_;
    }

    public static final int DWELL_TIME_MS_FIELD_NUMBER = 6;
    private long dwellTimeMs_;
    /**
     * int64 dwell_time_ms = 6;
     */
    public long getDwellTimeMs() {
      return dwellTimeMs_;
    }

    public static final int FIRE_ON_ENTRANCE_FIELD_NUMBER = 7;
    private boolean fireOnEntrance_;
    /**
     * bool fire_on_entrance = 7;
     */
    public boolean getFireOnEntrance() {
      return fireOnEntrance_;
    }

    public static final int FIRE_ON_EXIT_FIELD_NUMBER = 8;
    private boolean fireOnExit_;
    /**
     * bool fire_on_exit = 8;
     */
    public boolean getFireOnExit() {
      return fireOnExit_;
    }

    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 (latitudeDeg_ != 0D) {
        output.writeDouble(1, latitudeDeg_);
      }
      if (longitudeDeg_ != 0D) {
        output.writeDouble(2, longitudeDeg_);
      }
      if (radius_ != 0D) {
        output.writeDouble(3, radius_);
      }
      if (!getIdentifierBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, identifier_);
      }
      if (expirationMs_ != 0L) {
        output.writeInt64(5, expirationMs_);
      }
      if (dwellTimeMs_ != 0L) {
        output.writeInt64(6, dwellTimeMs_);
      }
      if (fireOnEntrance_ != false) {
        output.writeBool(7, fireOnEntrance_);
      }
      if (fireOnExit_ != false) {
        output.writeBool(8, fireOnExit_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (latitudeDeg_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(1, latitudeDeg_);
      }
      if (longitudeDeg_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(2, longitudeDeg_);
      }
      if (radius_ != 0D) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(3, radius_);
      }
      if (!getIdentifierBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, identifier_);
      }
      if (expirationMs_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(5, expirationMs_);
      }
      if (dwellTimeMs_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(6, dwellTimeMs_);
      }
      if (fireOnEntrance_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(7, fireOnEntrance_);
      }
      if (fireOnExit_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(8, fireOnExit_);
      }
      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 POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata)) {
        return super.equals(obj);
      }
      POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata other = (POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata) obj;

      boolean result = true;
      result = result && (
          java.lang.Double.doubleToLongBits(getLatitudeDeg())
          == java.lang.Double.doubleToLongBits(
              other.getLatitudeDeg()));
      result = result && (
          java.lang.Double.doubleToLongBits(getLongitudeDeg())
          == java.lang.Double.doubleToLongBits(
              other.getLongitudeDeg()));
      result = result && (
          java.lang.Double.doubleToLongBits(getRadius())
          == java.lang.Double.doubleToLongBits(
              other.getRadius()));
      result = result && getIdentifier()
          .equals(other.getIdentifier());
      result = result && (getExpirationMs()
          == other.getExpirationMs());
      result = result && (getDwellTimeMs()
          == other.getDwellTimeMs());
      result = result && (getFireOnEntrance()
          == other.getFireOnEntrance());
      result = result && (getFireOnExit()
          == other.getFireOnExit());
      result = result && unknownFields.equals(other.unknownFields);
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + LATITUDE_DEG_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getLatitudeDeg()));
      hash = (37 * hash) + LONGITUDE_DEG_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getLongitudeDeg()));
      hash = (37 * hash) + RADIUS_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getRadius()));
      hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER;
      hash = (53 * hash) + getIdentifier().hashCode();
      hash = (37 * hash) + EXPIRATION_MS_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getExpirationMs());
      hash = (37 * hash) + DWELL_TIME_MS_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getDwellTimeMs());
      hash = (37 * hash) + FIRE_ON_ENTRANCE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getFireOnEntrance());
      hash = (37 * hash) + FIRE_ON_EXIT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getFireOnExit());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata 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 POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata 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 POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata 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(POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata 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 POGOProtos.Data.Geofence.GeofenceMetadata}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:POGOProtos.Data.Geofence.GeofenceMetadata)
        POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadataOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.internal_static_POGOProtos_Data_Geofence_GeofenceMetadata_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.internal_static_POGOProtos_Data_Geofence_GeofenceMetadata_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata.class, POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata.Builder.class);
      }

      // Construct using POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata.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();
        latitudeDeg_ = 0D;

        longitudeDeg_ = 0D;

        radius_ = 0D;

        identifier_ = "";

        expirationMs_ = 0L;

        dwellTimeMs_ = 0L;

        fireOnEntrance_ = false;

        fireOnExit_ = false;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.internal_static_POGOProtos_Data_Geofence_GeofenceMetadata_descriptor;
      }

      @java.lang.Override
      public POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata getDefaultInstanceForType() {
        return POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata.getDefaultInstance();
      }

      @java.lang.Override
      public POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata build() {
        POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata buildPartial() {
        POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata result = new POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata(this);
        result.latitudeDeg_ = latitudeDeg_;
        result.longitudeDeg_ = longitudeDeg_;
        result.radius_ = radius_;
        result.identifier_ = identifier_;
        result.expirationMs_ = expirationMs_;
        result.dwellTimeMs_ = dwellTimeMs_;
        result.fireOnEntrance_ = fireOnEntrance_;
        result.fireOnExit_ = fireOnExit_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return (Builder) super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return (Builder) super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return (Builder) super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata) {
          return mergeFrom((POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata other) {
        if (other == POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata.getDefaultInstance()) return this;
        if (other.getLatitudeDeg() != 0D) {
          setLatitudeDeg(other.getLatitudeDeg());
        }
        if (other.getLongitudeDeg() != 0D) {
          setLongitudeDeg(other.getLongitudeDeg());
        }
        if (other.getRadius() != 0D) {
          setRadius(other.getRadius());
        }
        if (!other.getIdentifier().isEmpty()) {
          identifier_ = other.identifier_;
          onChanged();
        }
        if (other.getExpirationMs() != 0L) {
          setExpirationMs(other.getExpirationMs());
        }
        if (other.getDwellTimeMs() != 0L) {
          setDwellTimeMs(other.getDwellTimeMs());
        }
        if (other.getFireOnEntrance() != false) {
          setFireOnEntrance(other.getFireOnEntrance());
        }
        if (other.getFireOnExit() != false) {
          setFireOnExit(other.getFireOnExit());
        }
        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 {
        POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private double latitudeDeg_ ;
      /**
       * double latitude_deg = 1;
       */
      public double getLatitudeDeg() {
        return latitudeDeg_;
      }
      /**
       * double latitude_deg = 1;
       */
      public Builder setLatitudeDeg(double value) {
        
        latitudeDeg_ = value;
        onChanged();
        return this;
      }
      /**
       * double latitude_deg = 1;
       */
      public Builder clearLatitudeDeg() {
        
        latitudeDeg_ = 0D;
        onChanged();
        return this;
      }

      private double longitudeDeg_ ;
      /**
       * double longitude_deg = 2;
       */
      public double getLongitudeDeg() {
        return longitudeDeg_;
      }
      /**
       * double longitude_deg = 2;
       */
      public Builder setLongitudeDeg(double value) {
        
        longitudeDeg_ = value;
        onChanged();
        return this;
      }
      /**
       * double longitude_deg = 2;
       */
      public Builder clearLongitudeDeg() {
        
        longitudeDeg_ = 0D;
        onChanged();
        return this;
      }

      private double radius_ ;
      /**
       * double radius = 3;
       */
      public double getRadius() {
        return radius_;
      }
      /**
       * double radius = 3;
       */
      public Builder setRadius(double value) {
        
        radius_ = value;
        onChanged();
        return this;
      }
      /**
       * double radius = 3;
       */
      public Builder clearRadius() {
        
        radius_ = 0D;
        onChanged();
        return this;
      }

      private java.lang.Object identifier_ = "";
      /**
       * string identifier = 4;
       */
      public java.lang.String getIdentifier() {
        java.lang.Object ref = identifier_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          identifier_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string identifier = 4;
       */
      public com.google.protobuf.ByteString
          getIdentifierBytes() {
        java.lang.Object ref = identifier_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          identifier_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string identifier = 4;
       */
      public Builder setIdentifier(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        identifier_ = value;
        onChanged();
        return this;
      }
      /**
       * string identifier = 4;
       */
      public Builder clearIdentifier() {
        
        identifier_ = getDefaultInstance().getIdentifier();
        onChanged();
        return this;
      }
      /**
       * string identifier = 4;
       */
      public Builder setIdentifierBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        identifier_ = value;
        onChanged();
        return this;
      }

      private long expirationMs_ ;
      /**
       * int64 expiration_ms = 5;
       */
      public long getExpirationMs() {
        return expirationMs_;
      }
      /**
       * int64 expiration_ms = 5;
       */
      public Builder setExpirationMs(long value) {
        
        expirationMs_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 expiration_ms = 5;
       */
      public Builder clearExpirationMs() {
        
        expirationMs_ = 0L;
        onChanged();
        return this;
      }

      private long dwellTimeMs_ ;
      /**
       * int64 dwell_time_ms = 6;
       */
      public long getDwellTimeMs() {
        return dwellTimeMs_;
      }
      /**
       * int64 dwell_time_ms = 6;
       */
      public Builder setDwellTimeMs(long value) {
        
        dwellTimeMs_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 dwell_time_ms = 6;
       */
      public Builder clearDwellTimeMs() {
        
        dwellTimeMs_ = 0L;
        onChanged();
        return this;
      }

      private boolean fireOnEntrance_ ;
      /**
       * bool fire_on_entrance = 7;
       */
      public boolean getFireOnEntrance() {
        return fireOnEntrance_;
      }
      /**
       * bool fire_on_entrance = 7;
       */
      public Builder setFireOnEntrance(boolean value) {
        
        fireOnEntrance_ = value;
        onChanged();
        return this;
      }
      /**
       * bool fire_on_entrance = 7;
       */
      public Builder clearFireOnEntrance() {
        
        fireOnEntrance_ = false;
        onChanged();
        return this;
      }

      private boolean fireOnExit_ ;
      /**
       * bool fire_on_exit = 8;
       */
      public boolean getFireOnExit() {
        return fireOnExit_;
      }
      /**
       * bool fire_on_exit = 8;
       */
      public Builder setFireOnExit(boolean value) {
        
        fireOnExit_ = value;
        onChanged();
        return this;
      }
      /**
       * bool fire_on_exit = 8;
       */
      public Builder clearFireOnExit() {
        
        fireOnExit_ = false;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFieldsProto3(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:POGOProtos.Data.Geofence.GeofenceMetadata)
    }

    // @@protoc_insertion_point(class_scope:POGOProtos.Data.Geofence.GeofenceMetadata)
    private static final POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata();
    }

    public static POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public GeofenceMetadata parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new GeofenceMetadata(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 POGOProtos.Data.Geofence.GeofenceMetadataOuterClass.GeofenceMetadata getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_POGOProtos_Data_Geofence_GeofenceMetadata_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_POGOProtos_Data_Geofence_GeofenceMetadata_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n/POGOProtos/Data/Geofence/GeofenceMetad" +
      "ata.proto\022\030POGOProtos.Data.Geofence\"\301\001\n\020" +
      "GeofenceMetadata\022\024\n\014latitude_deg\030\001 \001(\001\022\025" +
      "\n\rlongitude_deg\030\002 \001(\001\022\016\n\006radius\030\003 \001(\001\022\022\n" +
      "\nidentifier\030\004 \001(\t\022\025\n\rexpiration_ms\030\005 \001(\003" +
      "\022\025\n\rdwell_time_ms\030\006 \001(\003\022\030\n\020fire_on_entra" +
      "nce\030\007 \001(\010\022\024\n\014fire_on_exit\030\010 \001(\010b\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
    internal_static_POGOProtos_Data_Geofence_GeofenceMetadata_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_POGOProtos_Data_Geofence_GeofenceMetadata_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_POGOProtos_Data_Geofence_GeofenceMetadata_descriptor,
        new java.lang.String[] { "LatitudeDeg", "LongitudeDeg", "Radius", "Identifier", "ExpirationMs", "DwellTimeMs", "FireOnEntrance", "FireOnExit", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy