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

com.android.emulator.control.GpsState Maven / Gradle / Ivy

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

// Protobuf Java Version: 3.25.0
package com.android.emulator.control;

/**
 * Protobuf type {@code android.emulation.control.GpsState}
 */
public  final class GpsState extends
    com.google.protobuf.GeneratedMessageLite<
        GpsState, GpsState.Builder> implements
    // @@protoc_insertion_point(message_implements:android.emulation.control.GpsState)
    GpsStateOrBuilder {
  private GpsState() {
  }
  public static final int PASSIVEUPDATE_FIELD_NUMBER = 1;
  private boolean passiveUpdate_;
  /**
   * 
   * Setting this to false will disable auto updating  from the LocationUI,
   * otherwise the location UI will override the location at a frequency of 1hz.
   *
   * - This is unused if the emulator is launched with -no-window, or when he
   *   location ui is disabled.
   * - This will BREAK the location ui experience if it is set to false. For
   *    example routing will no longer function.
   * 
* * bool passiveUpdate = 1; * @return The passiveUpdate. */ @java.lang.Override public boolean getPassiveUpdate() { return passiveUpdate_; } /** *
   * Setting this to false will disable auto updating  from the LocationUI,
   * otherwise the location UI will override the location at a frequency of 1hz.
   *
   * - This is unused if the emulator is launched with -no-window, or when he
   *   location ui is disabled.
   * - This will BREAK the location ui experience if it is set to false. For
   *    example routing will no longer function.
   * 
* * bool passiveUpdate = 1; * @param value The passiveUpdate to set. */ private void setPassiveUpdate(boolean value) { passiveUpdate_ = value; } /** *
   * Setting this to false will disable auto updating  from the LocationUI,
   * otherwise the location UI will override the location at a frequency of 1hz.
   *
   * - This is unused if the emulator is launched with -no-window, or when he
   *   location ui is disabled.
   * - This will BREAK the location ui experience if it is set to false. For
   *    example routing will no longer function.
   * 
* * bool passiveUpdate = 1; */ private void clearPassiveUpdate() { passiveUpdate_ = false; } public static final int LATITUDE_FIELD_NUMBER = 2; private double latitude_; /** *
   * The latitude, in degrees.
   * 
* * double latitude = 2; * @return The latitude. */ @java.lang.Override public double getLatitude() { return latitude_; } /** *
   * The latitude, in degrees.
   * 
* * double latitude = 2; * @param value The latitude to set. */ private void setLatitude(double value) { latitude_ = value; } /** *
   * The latitude, in degrees.
   * 
* * double latitude = 2; */ private void clearLatitude() { latitude_ = 0D; } public static final int LONGITUDE_FIELD_NUMBER = 3; private double longitude_; /** *
   * The longitude, in degrees.
   * 
* * double longitude = 3; * @return The longitude. */ @java.lang.Override public double getLongitude() { return longitude_; } /** *
   * The longitude, in degrees.
   * 
* * double longitude = 3; * @param value The longitude to set. */ private void setLongitude(double value) { longitude_ = value; } /** *
   * The longitude, in degrees.
   * 
* * double longitude = 3; */ private void clearLongitude() { longitude_ = 0D; } public static final int SPEED_FIELD_NUMBER = 4; private double speed_; /** *
   * The speed if it is available, in meters/second over ground
   * 
* * double speed = 4; * @return The speed. */ @java.lang.Override public double getSpeed() { return speed_; } /** *
   * The speed if it is available, in meters/second over ground
   * 
* * double speed = 4; * @param value The speed to set. */ private void setSpeed(double value) { speed_ = value; } /** *
   * The speed if it is available, in meters/second over ground
   * 
* * double speed = 4; */ private void clearSpeed() { speed_ = 0D; } public static final int BEARING_FIELD_NUMBER = 5; private double bearing_; /** *
   * gets the horizontal direction of travel of this device, and is not
   * related to the device orientation. It is guaranteed to be in the
   * range [0.0, 360.0] if the device has a bearing. 0=North, 90=East,
   * 180=South, etc..
   * 
* * double bearing = 5; * @return The bearing. */ @java.lang.Override public double getBearing() { return bearing_; } /** *
   * gets the horizontal direction of travel of this device, and is not
   * related to the device orientation. It is guaranteed to be in the
   * range [0.0, 360.0] if the device has a bearing. 0=North, 90=East,
   * 180=South, etc..
   * 
* * double bearing = 5; * @param value The bearing to set. */ private void setBearing(double value) { bearing_ = value; } /** *
   * gets the horizontal direction of travel of this device, and is not
   * related to the device orientation. It is guaranteed to be in the
   * range [0.0, 360.0] if the device has a bearing. 0=North, 90=East,
   * 180=South, etc..
   * 
* * double bearing = 5; */ private void clearBearing() { bearing_ = 0D; } public static final int ALTITUDE_FIELD_NUMBER = 6; private double altitude_; /** *
   * The altitude if available, in meters above the WGS 84 reference
   * ellipsoid.
   * 
* * double altitude = 6; * @return The altitude. */ @java.lang.Override public double getAltitude() { return altitude_; } /** *
   * The altitude if available, in meters above the WGS 84 reference
   * ellipsoid.
   * 
* * double altitude = 6; * @param value The altitude to set. */ private void setAltitude(double value) { altitude_ = value; } /** *
   * The altitude if available, in meters above the WGS 84 reference
   * ellipsoid.
   * 
* * double altitude = 6; */ private void clearAltitude() { altitude_ = 0D; } public static final int SATELLITES_FIELD_NUMBER = 7; private int satellites_; /** *
   * The number of satellites used to derive the fix
   * 
* * int32 satellites = 7; * @return The satellites. */ @java.lang.Override public int getSatellites() { return satellites_; } /** *
   * The number of satellites used to derive the fix
   * 
* * int32 satellites = 7; * @param value The satellites to set. */ private void setSatellites(int value) { satellites_ = value; } /** *
   * The number of satellites used to derive the fix
   * 
* * int32 satellites = 7; */ private void clearSatellites() { satellites_ = 0; } public static com.android.emulator.control.GpsState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.android.emulator.control.GpsState parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.android.emulator.control.GpsState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.android.emulator.control.GpsState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.android.emulator.control.GpsState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.android.emulator.control.GpsState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.android.emulator.control.GpsState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.android.emulator.control.GpsState parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.android.emulator.control.GpsState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.android.emulator.control.GpsState parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.android.emulator.control.GpsState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.android.emulator.control.GpsState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.android.emulator.control.GpsState prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** * Protobuf type {@code android.emulation.control.GpsState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.android.emulator.control.GpsState, Builder> implements // @@protoc_insertion_point(builder_implements:android.emulation.control.GpsState) com.android.emulator.control.GpsStateOrBuilder { // Construct using com.android.emulator.control.GpsState.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     * Setting this to false will disable auto updating  from the LocationUI,
     * otherwise the location UI will override the location at a frequency of 1hz.
     *
     * - This is unused if the emulator is launched with -no-window, or when he
     *   location ui is disabled.
     * - This will BREAK the location ui experience if it is set to false. For
     *    example routing will no longer function.
     * 
* * bool passiveUpdate = 1; * @return The passiveUpdate. */ @java.lang.Override public boolean getPassiveUpdate() { return instance.getPassiveUpdate(); } /** *
     * Setting this to false will disable auto updating  from the LocationUI,
     * otherwise the location UI will override the location at a frequency of 1hz.
     *
     * - This is unused if the emulator is launched with -no-window, or when he
     *   location ui is disabled.
     * - This will BREAK the location ui experience if it is set to false. For
     *    example routing will no longer function.
     * 
* * bool passiveUpdate = 1; * @param value The passiveUpdate to set. * @return This builder for chaining. */ public Builder setPassiveUpdate(boolean value) { copyOnWrite(); instance.setPassiveUpdate(value); return this; } /** *
     * Setting this to false will disable auto updating  from the LocationUI,
     * otherwise the location UI will override the location at a frequency of 1hz.
     *
     * - This is unused if the emulator is launched with -no-window, or when he
     *   location ui is disabled.
     * - This will BREAK the location ui experience if it is set to false. For
     *    example routing will no longer function.
     * 
* * bool passiveUpdate = 1; * @return This builder for chaining. */ public Builder clearPassiveUpdate() { copyOnWrite(); instance.clearPassiveUpdate(); return this; } /** *
     * The latitude, in degrees.
     * 
* * double latitude = 2; * @return The latitude. */ @java.lang.Override public double getLatitude() { return instance.getLatitude(); } /** *
     * The latitude, in degrees.
     * 
* * double latitude = 2; * @param value The latitude to set. * @return This builder for chaining. */ public Builder setLatitude(double value) { copyOnWrite(); instance.setLatitude(value); return this; } /** *
     * The latitude, in degrees.
     * 
* * double latitude = 2; * @return This builder for chaining. */ public Builder clearLatitude() { copyOnWrite(); instance.clearLatitude(); return this; } /** *
     * The longitude, in degrees.
     * 
* * double longitude = 3; * @return The longitude. */ @java.lang.Override public double getLongitude() { return instance.getLongitude(); } /** *
     * The longitude, in degrees.
     * 
* * double longitude = 3; * @param value The longitude to set. * @return This builder for chaining. */ public Builder setLongitude(double value) { copyOnWrite(); instance.setLongitude(value); return this; } /** *
     * The longitude, in degrees.
     * 
* * double longitude = 3; * @return This builder for chaining. */ public Builder clearLongitude() { copyOnWrite(); instance.clearLongitude(); return this; } /** *
     * The speed if it is available, in meters/second over ground
     * 
* * double speed = 4; * @return The speed. */ @java.lang.Override public double getSpeed() { return instance.getSpeed(); } /** *
     * The speed if it is available, in meters/second over ground
     * 
* * double speed = 4; * @param value The speed to set. * @return This builder for chaining. */ public Builder setSpeed(double value) { copyOnWrite(); instance.setSpeed(value); return this; } /** *
     * The speed if it is available, in meters/second over ground
     * 
* * double speed = 4; * @return This builder for chaining. */ public Builder clearSpeed() { copyOnWrite(); instance.clearSpeed(); return this; } /** *
     * gets the horizontal direction of travel of this device, and is not
     * related to the device orientation. It is guaranteed to be in the
     * range [0.0, 360.0] if the device has a bearing. 0=North, 90=East,
     * 180=South, etc..
     * 
* * double bearing = 5; * @return The bearing. */ @java.lang.Override public double getBearing() { return instance.getBearing(); } /** *
     * gets the horizontal direction of travel of this device, and is not
     * related to the device orientation. It is guaranteed to be in the
     * range [0.0, 360.0] if the device has a bearing. 0=North, 90=East,
     * 180=South, etc..
     * 
* * double bearing = 5; * @param value The bearing to set. * @return This builder for chaining. */ public Builder setBearing(double value) { copyOnWrite(); instance.setBearing(value); return this; } /** *
     * gets the horizontal direction of travel of this device, and is not
     * related to the device orientation. It is guaranteed to be in the
     * range [0.0, 360.0] if the device has a bearing. 0=North, 90=East,
     * 180=South, etc..
     * 
* * double bearing = 5; * @return This builder for chaining. */ public Builder clearBearing() { copyOnWrite(); instance.clearBearing(); return this; } /** *
     * The altitude if available, in meters above the WGS 84 reference
     * ellipsoid.
     * 
* * double altitude = 6; * @return The altitude. */ @java.lang.Override public double getAltitude() { return instance.getAltitude(); } /** *
     * The altitude if available, in meters above the WGS 84 reference
     * ellipsoid.
     * 
* * double altitude = 6; * @param value The altitude to set. * @return This builder for chaining. */ public Builder setAltitude(double value) { copyOnWrite(); instance.setAltitude(value); return this; } /** *
     * The altitude if available, in meters above the WGS 84 reference
     * ellipsoid.
     * 
* * double altitude = 6; * @return This builder for chaining. */ public Builder clearAltitude() { copyOnWrite(); instance.clearAltitude(); return this; } /** *
     * The number of satellites used to derive the fix
     * 
* * int32 satellites = 7; * @return The satellites. */ @java.lang.Override public int getSatellites() { return instance.getSatellites(); } /** *
     * The number of satellites used to derive the fix
     * 
* * int32 satellites = 7; * @param value The satellites to set. * @return This builder for chaining. */ public Builder setSatellites(int value) { copyOnWrite(); instance.setSatellites(value); return this; } /** *
     * The number of satellites used to derive the fix
     * 
* * int32 satellites = 7; * @return This builder for chaining. */ public Builder clearSatellites() { copyOnWrite(); instance.clearSatellites(); return this; } // @@protoc_insertion_point(builder_scope:android.emulation.control.GpsState) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.android.emulator.control.GpsState(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "passiveUpdate_", "latitude_", "longitude_", "speed_", "bearing_", "altitude_", "satellites_", }; java.lang.String info = "\u0000\u0007\u0000\u0000\u0001\u0007\u0007\u0000\u0000\u0000\u0001\u0007\u0002\u0000" + "\u0003\u0000\u0004\u0000\u0005\u0000\u0006\u0000\u0007\u0004"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.android.emulator.control.GpsState.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:android.emulation.control.GpsState) private static final com.android.emulator.control.GpsState DEFAULT_INSTANCE; static { GpsState defaultInstance = new GpsState(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( GpsState.class, defaultInstance); } public static com.android.emulator.control.GpsState getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy