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

com.android.emulator.control.MouseEvent 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 MouseEvent interface represents events that occur due to the user
 * interacting with a pointing device (such as a mouse).
 * 
* * Protobuf type {@code android.emulation.control.MouseEvent} */ public final class MouseEvent extends com.google.protobuf.GeneratedMessageLite< MouseEvent, MouseEvent.Builder> implements // @@protoc_insertion_point(message_implements:android.emulation.control.MouseEvent) MouseEventOrBuilder { private MouseEvent() { } 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 BUTTONS_FIELD_NUMBER = 3; private int buttons_; /** *
   * Indicates which buttons are pressed.
   * 0: No button was pressed
   * 1: Primary button (left)
   * 2: Secondary button (right)
   * 
* * int32 buttons = 3; * @return The buttons. */ @java.lang.Override public int getButtons() { return buttons_; } /** *
   * Indicates which buttons are pressed.
   * 0: No button was pressed
   * 1: Primary button (left)
   * 2: Secondary button (right)
   * 
* * int32 buttons = 3; * @param value The buttons to set. */ private void setButtons(int value) { buttons_ = value; } /** *
   * Indicates which buttons are pressed.
   * 0: No button was pressed
   * 1: Primary button (left)
   * 2: Secondary button (right)
   * 
* * int32 buttons = 3; */ private void clearButtons() { buttons_ = 0; } public static final int DEVICE_FIELD_NUMBER = 4; private int device_; /** *
   * The display device where the mouse event occurred.
   * Omitting or using the value 0 indicates the main display.
   * 
* * int32 device = 4; * @return The device. */ @java.lang.Override public int getDevice() { return device_; } /** *
   * The display device where the mouse event occurred.
   * Omitting or using the value 0 indicates the main display.
   * 
* * int32 device = 4; * @param value The device to set. */ private void setDevice(int value) { device_ = value; } /** *
   * The display device where the mouse event occurred.
   * Omitting or using the value 0 indicates the main display.
   * 
* * int32 device = 4; */ private void clearDevice() { device_ = 0; } public static com.android.emulator.control.MouseEvent 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.MouseEvent 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.MouseEvent 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.MouseEvent 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.MouseEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.android.emulator.control.MouseEvent 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.MouseEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.android.emulator.control.MouseEvent 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.MouseEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.android.emulator.control.MouseEvent 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.MouseEvent 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.MouseEvent 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.MouseEvent prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   * The MouseEvent interface represents events that occur due to the user
   * interacting with a pointing device (such as a mouse).
   * 
* * Protobuf type {@code android.emulation.control.MouseEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.android.emulator.control.MouseEvent, Builder> implements // @@protoc_insertion_point(builder_implements:android.emulation.control.MouseEvent) com.android.emulator.control.MouseEventOrBuilder { // Construct using com.android.emulator.control.MouseEvent.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; } /** *
     * Indicates which buttons are pressed.
     * 0: No button was pressed
     * 1: Primary button (left)
     * 2: Secondary button (right)
     * 
* * int32 buttons = 3; * @return The buttons. */ @java.lang.Override public int getButtons() { return instance.getButtons(); } /** *
     * Indicates which buttons are pressed.
     * 0: No button was pressed
     * 1: Primary button (left)
     * 2: Secondary button (right)
     * 
* * int32 buttons = 3; * @param value The buttons to set. * @return This builder for chaining. */ public Builder setButtons(int value) { copyOnWrite(); instance.setButtons(value); return this; } /** *
     * Indicates which buttons are pressed.
     * 0: No button was pressed
     * 1: Primary button (left)
     * 2: Secondary button (right)
     * 
* * int32 buttons = 3; * @return This builder for chaining. */ public Builder clearButtons() { copyOnWrite(); instance.clearButtons(); return this; } /** *
     * The display device where the mouse event occurred.
     * Omitting or using the value 0 indicates the main display.
     * 
* * int32 device = 4; * @return The device. */ @java.lang.Override public int getDevice() { return instance.getDevice(); } /** *
     * The display device where the mouse event occurred.
     * Omitting or using the value 0 indicates the main display.
     * 
* * int32 device = 4; * @param value The device to set. * @return This builder for chaining. */ public Builder setDevice(int value) { copyOnWrite(); instance.setDevice(value); return this; } /** *
     * The display device where the mouse event occurred.
     * Omitting or using the value 0 indicates the main display.
     * 
* * int32 device = 4; * @return This builder for chaining. */ public Builder clearDevice() { copyOnWrite(); instance.clearDevice(); return this; } // @@protoc_insertion_point(builder_scope:android.emulation.control.MouseEvent) } @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.MouseEvent(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "x_", "y_", "buttons_", "device_", }; java.lang.String info = "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u0004\u0002\u0004" + "\u0003\u0004\u0004\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.MouseEvent.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.MouseEvent) private static final com.android.emulator.control.MouseEvent DEFAULT_INSTANCE; static { MouseEvent defaultInstance = new MouseEvent(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( MouseEvent.class, defaultInstance); } public static com.android.emulator.control.MouseEvent 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