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

com.android.emulator.control.Touch 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;

/**
 * 
 * The Touch interface represents a single contact point on a
 * touch-sensitive device. The contact point is commonly a finger or stylus
 * and the device may be a touchscreen or trackpad.
 * 
* * Protobuf type {@code android.emulation.control.Touch} */ public final class Touch extends com.google.protobuf.GeneratedMessageLite< Touch, Touch.Builder> implements // @@protoc_insertion_point(message_implements:android.emulation.control.Touch) TouchOrBuilder { private Touch() { } public static final int X_FIELD_NUMBER = 1; private int x_; /** *
   * The horizontal coordinate. This is the physical location on the
   * screen For example 0 indicates the leftmost coordinate.
   * 
* * int32 x = 1; * @return The x. */ @java.lang.Override public int getX() { return x_; } /** *
   * The horizontal coordinate. This is the physical location on the
   * screen For example 0 indicates the leftmost coordinate.
   * 
* * int32 x = 1; * @param value The x to set. */ private void setX(int value) { x_ = value; } /** *
   * The horizontal coordinate. This is the physical location on the
   * screen For example 0 indicates the leftmost coordinate.
   * 
* * int32 x = 1; */ private void clearX() { x_ = 0; } public static final int Y_FIELD_NUMBER = 2; private int y_; /** *
   * The vertical coordinate. This is the physical location on the screen
   * For example 0 indicates the top left coordinate.
   * 
* * int32 y = 2; * @return The y. */ @java.lang.Override public int getY() { return y_; } /** *
   * The vertical coordinate. This is the physical location on the screen
   * For example 0 indicates the top left coordinate.
   * 
* * int32 y = 2; * @param value The y to set. */ private void setY(int value) { y_ = value; } /** *
   * The vertical coordinate. This is the physical location on the screen
   * For example 0 indicates the top left coordinate.
   * 
* * int32 y = 2; */ private void clearY() { y_ = 0; } public static final int IDENTIFIER_FIELD_NUMBER = 3; private int identifier_; /** *
   * The identifier is an arbitrary non-negative integer that is used to
   * identify and track each tool independently when multiple tools are
   * active. For example, when multiple fingers are touching the device,
   * each finger should be assigned a distinct tracking id that is used as
   * long as the finger remains in contact. Tracking ids may be reused
   * when their associated tools move out of range.
   *
   * The emulator currently supports up to 10 concurrent touch events. The
   * identifier should be a value from the set [0, 10]
   * 
* * int32 identifier = 3; * @return The identifier. */ @java.lang.Override public int getIdentifier() { return identifier_; } /** *
   * The identifier is an arbitrary non-negative integer that is used to
   * identify and track each tool independently when multiple tools are
   * active. For example, when multiple fingers are touching the device,
   * each finger should be assigned a distinct tracking id that is used as
   * long as the finger remains in contact. Tracking ids may be reused
   * when their associated tools move out of range.
   *
   * The emulator currently supports up to 10 concurrent touch events. The
   * identifier should be a value from the set [0, 10]
   * 
* * int32 identifier = 3; * @param value The identifier to set. */ private void setIdentifier(int value) { identifier_ = value; } /** *
   * The identifier is an arbitrary non-negative integer that is used to
   * identify and track each tool independently when multiple tools are
   * active. For example, when multiple fingers are touching the device,
   * each finger should be assigned a distinct tracking id that is used as
   * long as the finger remains in contact. Tracking ids may be reused
   * when their associated tools move out of range.
   *
   * The emulator currently supports up to 10 concurrent touch events. The
   * identifier should be a value from the set [0, 10]
   * 
* * int32 identifier = 3; */ private void clearIdentifier() { identifier_ = 0; } public static final int PRESSURE_FIELD_NUMBER = 4; private int pressure_; /** *
   * Reports the physical pressure applied to the tip of the tool or the
   * signal strength of the touch contact.
   *
   * The values reported must be non-zero when the tool is touching the
   * device and zero otherwise to indicate that the touch event is
   * completed.
   *
   * Make sure to deliver a pressure of 0 for the given identifier when
   * the touch event is completed, otherwise the touch identifier will not
   * be unregistered!
   * 
* * int32 pressure = 4; * @return The pressure. */ @java.lang.Override public int getPressure() { return pressure_; } /** *
   * Reports the physical pressure applied to the tip of the tool or the
   * signal strength of the touch contact.
   *
   * The values reported must be non-zero when the tool is touching the
   * device and zero otherwise to indicate that the touch event is
   * completed.
   *
   * Make sure to deliver a pressure of 0 for the given identifier when
   * the touch event is completed, otherwise the touch identifier will not
   * be unregistered!
   * 
* * int32 pressure = 4; * @param value The pressure to set. */ private void setPressure(int value) { pressure_ = value; } /** *
   * Reports the physical pressure applied to the tip of the tool or the
   * signal strength of the touch contact.
   *
   * The values reported must be non-zero when the tool is touching the
   * device and zero otherwise to indicate that the touch event is
   * completed.
   *
   * Make sure to deliver a pressure of 0 for the given identifier when
   * the touch event is completed, otherwise the touch identifier will not
   * be unregistered!
   * 
* * int32 pressure = 4; */ private void clearPressure() { pressure_ = 0; } public static final int TOUCH_MAJOR_FIELD_NUMBER = 5; private int touchMajor_; /** *
   * Optionally reports the cross-sectional area of the touch contact, or
   * the length of the longer dimension of the touch contact.
   * 
* * int32 touch_major = 5; * @return The touchMajor. */ @java.lang.Override public int getTouchMajor() { return touchMajor_; } /** *
   * Optionally reports the cross-sectional area of the touch contact, or
   * the length of the longer dimension of the touch contact.
   * 
* * int32 touch_major = 5; * @param value The touchMajor to set. */ private void setTouchMajor(int value) { touchMajor_ = value; } /** *
   * Optionally reports the cross-sectional area of the touch contact, or
   * the length of the longer dimension of the touch contact.
   * 
* * int32 touch_major = 5; */ private void clearTouchMajor() { touchMajor_ = 0; } public static final int TOUCH_MINOR_FIELD_NUMBER = 6; private int touchMinor_; /** *
   * Optionally reports the length of the shorter dimension of the touch
   * contact. This axis will be ignored if touch_major is reporting an
   * area measurement greater than 0.
   * 
* * int32 touch_minor = 6; * @return The touchMinor. */ @java.lang.Override public int getTouchMinor() { return touchMinor_; } /** *
   * Optionally reports the length of the shorter dimension of the touch
   * contact. This axis will be ignored if touch_major is reporting an
   * area measurement greater than 0.
   * 
* * int32 touch_minor = 6; * @param value The touchMinor to set. */ private void setTouchMinor(int value) { touchMinor_ = value; } /** *
   * Optionally reports the length of the shorter dimension of the touch
   * contact. This axis will be ignored if touch_major is reporting an
   * area measurement greater than 0.
   * 
* * int32 touch_minor = 6; */ private void clearTouchMinor() { touchMinor_ = 0; } public static com.android.emulator.control.Touch 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.Touch 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.Touch 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.Touch 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.Touch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.android.emulator.control.Touch 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.Touch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.android.emulator.control.Touch 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.Touch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.android.emulator.control.Touch 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.Touch 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.Touch 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.Touch prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   * The Touch interface represents a single contact point on a
   * touch-sensitive device. The contact point is commonly a finger or stylus
   * and the device may be a touchscreen or trackpad.
   * 
* * Protobuf type {@code android.emulation.control.Touch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.android.emulator.control.Touch, Builder> implements // @@protoc_insertion_point(builder_implements:android.emulation.control.Touch) com.android.emulator.control.TouchOrBuilder { // Construct using com.android.emulator.control.Touch.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     * The horizontal coordinate. This is the physical location on the
     * screen For example 0 indicates the leftmost coordinate.
     * 
* * int32 x = 1; * @return The x. */ @java.lang.Override public int getX() { return instance.getX(); } /** *
     * The horizontal coordinate. This is the physical location on the
     * screen For example 0 indicates the leftmost coordinate.
     * 
* * int32 x = 1; * @param value The x to set. * @return This builder for chaining. */ public Builder setX(int value) { copyOnWrite(); instance.setX(value); return this; } /** *
     * The horizontal coordinate. This is the physical location on the
     * screen For example 0 indicates the leftmost coordinate.
     * 
* * int32 x = 1; * @return This builder for chaining. */ public Builder clearX() { copyOnWrite(); instance.clearX(); return this; } /** *
     * The vertical coordinate. This is the physical location on the screen
     * For example 0 indicates the top left coordinate.
     * 
* * int32 y = 2; * @return The y. */ @java.lang.Override public int getY() { return instance.getY(); } /** *
     * The vertical coordinate. This is the physical location on the screen
     * For example 0 indicates the top left coordinate.
     * 
* * int32 y = 2; * @param value The y to set. * @return This builder for chaining. */ public Builder setY(int value) { copyOnWrite(); instance.setY(value); return this; } /** *
     * The vertical coordinate. This is the physical location on the screen
     * For example 0 indicates the top left coordinate.
     * 
* * int32 y = 2; * @return This builder for chaining. */ public Builder clearY() { copyOnWrite(); instance.clearY(); return this; } /** *
     * The identifier is an arbitrary non-negative integer that is used to
     * identify and track each tool independently when multiple tools are
     * active. For example, when multiple fingers are touching the device,
     * each finger should be assigned a distinct tracking id that is used as
     * long as the finger remains in contact. Tracking ids may be reused
     * when their associated tools move out of range.
     *
     * The emulator currently supports up to 10 concurrent touch events. The
     * identifier should be a value from the set [0, 10]
     * 
* * int32 identifier = 3; * @return The identifier. */ @java.lang.Override public int getIdentifier() { return instance.getIdentifier(); } /** *
     * The identifier is an arbitrary non-negative integer that is used to
     * identify and track each tool independently when multiple tools are
     * active. For example, when multiple fingers are touching the device,
     * each finger should be assigned a distinct tracking id that is used as
     * long as the finger remains in contact. Tracking ids may be reused
     * when their associated tools move out of range.
     *
     * The emulator currently supports up to 10 concurrent touch events. The
     * identifier should be a value from the set [0, 10]
     * 
* * int32 identifier = 3; * @param value The identifier to set. * @return This builder for chaining. */ public Builder setIdentifier(int value) { copyOnWrite(); instance.setIdentifier(value); return this; } /** *
     * The identifier is an arbitrary non-negative integer that is used to
     * identify and track each tool independently when multiple tools are
     * active. For example, when multiple fingers are touching the device,
     * each finger should be assigned a distinct tracking id that is used as
     * long as the finger remains in contact. Tracking ids may be reused
     * when their associated tools move out of range.
     *
     * The emulator currently supports up to 10 concurrent touch events. The
     * identifier should be a value from the set [0, 10]
     * 
* * int32 identifier = 3; * @return This builder for chaining. */ public Builder clearIdentifier() { copyOnWrite(); instance.clearIdentifier(); return this; } /** *
     * Reports the physical pressure applied to the tip of the tool or the
     * signal strength of the touch contact.
     *
     * The values reported must be non-zero when the tool is touching the
     * device and zero otherwise to indicate that the touch event is
     * completed.
     *
     * Make sure to deliver a pressure of 0 for the given identifier when
     * the touch event is completed, otherwise the touch identifier will not
     * be unregistered!
     * 
* * int32 pressure = 4; * @return The pressure. */ @java.lang.Override public int getPressure() { return instance.getPressure(); } /** *
     * Reports the physical pressure applied to the tip of the tool or the
     * signal strength of the touch contact.
     *
     * The values reported must be non-zero when the tool is touching the
     * device and zero otherwise to indicate that the touch event is
     * completed.
     *
     * Make sure to deliver a pressure of 0 for the given identifier when
     * the touch event is completed, otherwise the touch identifier will not
     * be unregistered!
     * 
* * int32 pressure = 4; * @param value The pressure to set. * @return This builder for chaining. */ public Builder setPressure(int value) { copyOnWrite(); instance.setPressure(value); return this; } /** *
     * Reports the physical pressure applied to the tip of the tool or the
     * signal strength of the touch contact.
     *
     * The values reported must be non-zero when the tool is touching the
     * device and zero otherwise to indicate that the touch event is
     * completed.
     *
     * Make sure to deliver a pressure of 0 for the given identifier when
     * the touch event is completed, otherwise the touch identifier will not
     * be unregistered!
     * 
* * int32 pressure = 4; * @return This builder for chaining. */ public Builder clearPressure() { copyOnWrite(); instance.clearPressure(); return this; } /** *
     * Optionally reports the cross-sectional area of the touch contact, or
     * the length of the longer dimension of the touch contact.
     * 
* * int32 touch_major = 5; * @return The touchMajor. */ @java.lang.Override public int getTouchMajor() { return instance.getTouchMajor(); } /** *
     * Optionally reports the cross-sectional area of the touch contact, or
     * the length of the longer dimension of the touch contact.
     * 
* * int32 touch_major = 5; * @param value The touchMajor to set. * @return This builder for chaining. */ public Builder setTouchMajor(int value) { copyOnWrite(); instance.setTouchMajor(value); return this; } /** *
     * Optionally reports the cross-sectional area of the touch contact, or
     * the length of the longer dimension of the touch contact.
     * 
* * int32 touch_major = 5; * @return This builder for chaining. */ public Builder clearTouchMajor() { copyOnWrite(); instance.clearTouchMajor(); return this; } /** *
     * Optionally reports the length of the shorter dimension of the touch
     * contact. This axis will be ignored if touch_major is reporting an
     * area measurement greater than 0.
     * 
* * int32 touch_minor = 6; * @return The touchMinor. */ @java.lang.Override public int getTouchMinor() { return instance.getTouchMinor(); } /** *
     * Optionally reports the length of the shorter dimension of the touch
     * contact. This axis will be ignored if touch_major is reporting an
     * area measurement greater than 0.
     * 
* * int32 touch_minor = 6; * @param value The touchMinor to set. * @return This builder for chaining. */ public Builder setTouchMinor(int value) { copyOnWrite(); instance.setTouchMinor(value); return this; } /** *
     * Optionally reports the length of the shorter dimension of the touch
     * contact. This axis will be ignored if touch_major is reporting an
     * area measurement greater than 0.
     * 
* * int32 touch_minor = 6; * @return This builder for chaining. */ public Builder clearTouchMinor() { copyOnWrite(); instance.clearTouchMinor(); return this; } // @@protoc_insertion_point(builder_scope:android.emulation.control.Touch) } @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.Touch(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "x_", "y_", "identifier_", "pressure_", "touchMajor_", "touchMinor_", }; java.lang.String info = "\u0000\u0006\u0000\u0000\u0001\u0006\u0006\u0000\u0000\u0000\u0001\u0004\u0002\u0004" + "\u0003\u0004\u0004\u0004\u0005\u0004\u0006\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.Touch.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.Touch) private static final com.android.emulator.control.Touch DEFAULT_INSTANCE; static { Touch defaultInstance = new Touch(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( Touch.class, defaultInstance); } public static com.android.emulator.control.Touch 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