com.android.emulator.control.Rotation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adam Show documentation
Show all versions of adam Show documentation
Android Debug Bridge helper
// 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.Rotation}
*/
public final class Rotation extends
com.google.protobuf.GeneratedMessageLite<
Rotation, Rotation.Builder> implements
// @@protoc_insertion_point(message_implements:android.emulation.control.Rotation)
RotationOrBuilder {
private Rotation() {
}
/**
* Protobuf enum {@code android.emulation.control.Rotation.SkinRotation}
*/
public enum SkinRotation
implements com.google.protobuf.Internal.EnumLite {
/**
*
* 0 degrees
*
*
* PORTRAIT = 0;
*/
PORTRAIT(0),
/**
*
* 90 degrees
*
*
* LANDSCAPE = 1;
*/
LANDSCAPE(1),
/**
*
* -180 degrees
*
*
* REVERSE_PORTRAIT = 2;
*/
REVERSE_PORTRAIT(2),
/**
*
* -90 degrees
*
*
* REVERSE_LANDSCAPE = 3;
*/
REVERSE_LANDSCAPE(3),
UNRECOGNIZED(-1),
;
/**
*
* 0 degrees
*
*
* PORTRAIT = 0;
*/
public static final int PORTRAIT_VALUE = 0;
/**
*
* 90 degrees
*
*
* LANDSCAPE = 1;
*/
public static final int LANDSCAPE_VALUE = 1;
/**
*
* -180 degrees
*
*
* REVERSE_PORTRAIT = 2;
*/
public static final int REVERSE_PORTRAIT_VALUE = 2;
/**
*
* -90 degrees
*
*
* REVERSE_LANDSCAPE = 3;
*/
public static final int REVERSE_LANDSCAPE_VALUE = 3;
@java.lang.Override
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SkinRotation valueOf(int value) {
return forNumber(value);
}
public static SkinRotation forNumber(int value) {
switch (value) {
case 0: return PORTRAIT;
case 1: return LANDSCAPE;
case 2: return REVERSE_PORTRAIT;
case 3: return REVERSE_LANDSCAPE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SkinRotation> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public SkinRotation findValueByNumber(int number) {
return SkinRotation.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return SkinRotationVerifier.INSTANCE;
}
private static final class SkinRotationVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new SkinRotationVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return SkinRotation.forNumber(number) != null;
}
};
private final int value;
private SkinRotation(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:android.emulation.control.Rotation.SkinRotation)
}
public static final int ROTATION_FIELD_NUMBER = 1;
private int rotation_;
/**
*
* Can be inferred from z-axis as well.
*
*
* .android.emulation.control.Rotation.SkinRotation rotation = 1;
* @return The enum numeric value on the wire for rotation.
*/
@java.lang.Override
public int getRotationValue() {
return rotation_;
}
/**
*
* Can be inferred from z-axis as well.
*
*
* .android.emulation.control.Rotation.SkinRotation rotation = 1;
* @return The rotation.
*/
@java.lang.Override
public com.android.emulator.control.Rotation.SkinRotation getRotation() {
com.android.emulator.control.Rotation.SkinRotation result = com.android.emulator.control.Rotation.SkinRotation.forNumber(rotation_);
return result == null ? com.android.emulator.control.Rotation.SkinRotation.UNRECOGNIZED : result;
}
/**
*
* Can be inferred from z-axis as well.
*
*
* .android.emulation.control.Rotation.SkinRotation rotation = 1;
* @param value The enum numeric value on the wire for rotation to set.
*/
private void setRotationValue(int value) {
rotation_ = value;
}
/**
*
* Can be inferred from z-axis as well.
*
*
* .android.emulation.control.Rotation.SkinRotation rotation = 1;
* @param value The rotation to set.
*/
private void setRotation(com.android.emulator.control.Rotation.SkinRotation value) {
rotation_ = value.getNumber();
}
/**
*
* Can be inferred from z-axis as well.
*
*
* .android.emulation.control.Rotation.SkinRotation rotation = 1;
*/
private void clearRotation() {
rotation_ = 0;
}
public static final int XAXIS_FIELD_NUMBER = 2;
private double xAxis_;
/**
*
* Specifies the angle of rotation, in degrees [-180, 180]
*
*
* double xAxis = 2;
* @return The xAxis.
*/
@java.lang.Override
public double getXAxis() {
return xAxis_;
}
/**
*
* Specifies the angle of rotation, in degrees [-180, 180]
*
*
* double xAxis = 2;
* @param value The xAxis to set.
*/
private void setXAxis(double value) {
xAxis_ = value;
}
/**
*
* Specifies the angle of rotation, in degrees [-180, 180]
*
*
* double xAxis = 2;
*/
private void clearXAxis() {
xAxis_ = 0D;
}
public static final int YAXIS_FIELD_NUMBER = 3;
private double yAxis_;
/**
* double yAxis = 3;
* @return The yAxis.
*/
@java.lang.Override
public double getYAxis() {
return yAxis_;
}
/**
* double yAxis = 3;
* @param value The yAxis to set.
*/
private void setYAxis(double value) {
yAxis_ = value;
}
/**
* double yAxis = 3;
*/
private void clearYAxis() {
yAxis_ = 0D;
}
public static final int ZAXIS_FIELD_NUMBER = 4;
private double zAxis_;
/**
* double zAxis = 4;
* @return The zAxis.
*/
@java.lang.Override
public double getZAxis() {
return zAxis_;
}
/**
* double zAxis = 4;
* @param value The zAxis to set.
*/
private void setZAxis(double value) {
zAxis_ = value;
}
/**
* double zAxis = 4;
*/
private void clearZAxis() {
zAxis_ = 0D;
}
public static com.android.emulator.control.Rotation 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.Rotation 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.Rotation 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.Rotation 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.Rotation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.android.emulator.control.Rotation 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.Rotation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.android.emulator.control.Rotation 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.Rotation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.android.emulator.control.Rotation 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.Rotation 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.Rotation 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.Rotation prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code android.emulation.control.Rotation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.android.emulator.control.Rotation, Builder> implements
// @@protoc_insertion_point(builder_implements:android.emulation.control.Rotation)
com.android.emulator.control.RotationOrBuilder {
// Construct using com.android.emulator.control.Rotation.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* Can be inferred from z-axis as well.
*
*
* .android.emulation.control.Rotation.SkinRotation rotation = 1;
* @return The enum numeric value on the wire for rotation.
*/
@java.lang.Override
public int getRotationValue() {
return instance.getRotationValue();
}
/**
*
* Can be inferred from z-axis as well.
*
*
* .android.emulation.control.Rotation.SkinRotation rotation = 1;
* @param value The rotation to set.
* @return This builder for chaining.
*/
public Builder setRotationValue(int value) {
copyOnWrite();
instance.setRotationValue(value);
return this;
}
/**
*
* Can be inferred from z-axis as well.
*
*
* .android.emulation.control.Rotation.SkinRotation rotation = 1;
* @return The rotation.
*/
@java.lang.Override
public com.android.emulator.control.Rotation.SkinRotation getRotation() {
return instance.getRotation();
}
/**
*
* Can be inferred from z-axis as well.
*
*
* .android.emulation.control.Rotation.SkinRotation rotation = 1;
* @param value The enum numeric value on the wire for rotation to set.
* @return This builder for chaining.
*/
public Builder setRotation(com.android.emulator.control.Rotation.SkinRotation value) {
copyOnWrite();
instance.setRotation(value);
return this;
}
/**
*
* Can be inferred from z-axis as well.
*
*
* .android.emulation.control.Rotation.SkinRotation rotation = 1;
* @return This builder for chaining.
*/
public Builder clearRotation() {
copyOnWrite();
instance.clearRotation();
return this;
}
/**
*
* Specifies the angle of rotation, in degrees [-180, 180]
*
*
* double xAxis = 2;
* @return The xAxis.
*/
@java.lang.Override
public double getXAxis() {
return instance.getXAxis();
}
/**
*
* Specifies the angle of rotation, in degrees [-180, 180]
*
*
* double xAxis = 2;
* @param value The xAxis to set.
* @return This builder for chaining.
*/
public Builder setXAxis(double value) {
copyOnWrite();
instance.setXAxis(value);
return this;
}
/**
*
* Specifies the angle of rotation, in degrees [-180, 180]
*
*
* double xAxis = 2;
* @return This builder for chaining.
*/
public Builder clearXAxis() {
copyOnWrite();
instance.clearXAxis();
return this;
}
/**
* double yAxis = 3;
* @return The yAxis.
*/
@java.lang.Override
public double getYAxis() {
return instance.getYAxis();
}
/**
* double yAxis = 3;
* @param value The yAxis to set.
* @return This builder for chaining.
*/
public Builder setYAxis(double value) {
copyOnWrite();
instance.setYAxis(value);
return this;
}
/**
* double yAxis = 3;
* @return This builder for chaining.
*/
public Builder clearYAxis() {
copyOnWrite();
instance.clearYAxis();
return this;
}
/**
* double zAxis = 4;
* @return The zAxis.
*/
@java.lang.Override
public double getZAxis() {
return instance.getZAxis();
}
/**
* double zAxis = 4;
* @param value The zAxis to set.
* @return This builder for chaining.
*/
public Builder setZAxis(double value) {
copyOnWrite();
instance.setZAxis(value);
return this;
}
/**
* double zAxis = 4;
* @return This builder for chaining.
*/
public Builder clearZAxis() {
copyOnWrite();
instance.clearZAxis();
return this;
}
// @@protoc_insertion_point(builder_scope:android.emulation.control.Rotation)
}
@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.Rotation();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"rotation_",
"xAxis_",
"yAxis_",
"zAxis_",
};
java.lang.String info =
"\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\f\u0002\u0000" +
"\u0003\u0000\u0004\u0000";
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.Rotation.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.Rotation)
private static final com.android.emulator.control.Rotation DEFAULT_INSTANCE;
static {
Rotation defaultInstance = new Rotation();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Rotation.class, defaultInstance);
}
public static com.android.emulator.control.Rotation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}