com.android.emulator.control.Image 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.Image}
*/
public final class Image extends
com.google.protobuf.GeneratedMessageLite<
Image, Image.Builder> implements
// @@protoc_insertion_point(message_implements:android.emulation.control.Image)
ImageOrBuilder {
private Image() {
image_ = com.google.protobuf.ByteString.EMPTY;
}
private int bitField0_;
public static final int FORMAT_FIELD_NUMBER = 1;
private com.android.emulator.control.ImageFormat format_;
/**
* .android.emulation.control.ImageFormat format = 1;
*/
@java.lang.Override
public boolean hasFormat() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .android.emulation.control.ImageFormat format = 1;
*/
@java.lang.Override
public com.android.emulator.control.ImageFormat getFormat() {
return format_ == null ? com.android.emulator.control.ImageFormat.getDefaultInstance() : format_;
}
/**
* .android.emulation.control.ImageFormat format = 1;
*/
private void setFormat(com.android.emulator.control.ImageFormat value) {
value.getClass();
format_ = value;
bitField0_ |= 0x00000001;
}
/**
* .android.emulation.control.ImageFormat format = 1;
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeFormat(com.android.emulator.control.ImageFormat value) {
value.getClass();
if (format_ != null &&
format_ != com.android.emulator.control.ImageFormat.getDefaultInstance()) {
format_ =
com.android.emulator.control.ImageFormat.newBuilder(format_).mergeFrom(value).buildPartial();
} else {
format_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .android.emulation.control.ImageFormat format = 1;
*/
private void clearFormat() { format_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int WIDTH_FIELD_NUMBER = 2;
private int width_;
/**
*
* width is contained in format.
*
*
* uint32 width = 2 [deprecated = true];
* @deprecated android.emulation.control.Image.width is deprecated.
* See emulator_controller.proto;l=612
* @return The width.
*/
@java.lang.Override
@java.lang.Deprecated public int getWidth() {
return width_;
}
/**
*
* width is contained in format.
*
*
* uint32 width = 2 [deprecated = true];
* @deprecated android.emulation.control.Image.width is deprecated.
* See emulator_controller.proto;l=612
* @param value The width to set.
*/
private void setWidth(int value) {
width_ = value;
}
/**
*
* width is contained in format.
*
*
* uint32 width = 2 [deprecated = true];
* @deprecated android.emulation.control.Image.width is deprecated.
* See emulator_controller.proto;l=612
*/
private void clearWidth() {
width_ = 0;
}
public static final int HEIGHT_FIELD_NUMBER = 3;
private int height_;
/**
*
* height is contained in format.
*
*
* uint32 height = 3 [deprecated = true];
* @deprecated android.emulation.control.Image.height is deprecated.
* See emulator_controller.proto;l=613
* @return The height.
*/
@java.lang.Override
@java.lang.Deprecated public int getHeight() {
return height_;
}
/**
*
* height is contained in format.
*
*
* uint32 height = 3 [deprecated = true];
* @deprecated android.emulation.control.Image.height is deprecated.
* See emulator_controller.proto;l=613
* @param value The height to set.
*/
private void setHeight(int value) {
height_ = value;
}
/**
*
* height is contained in format.
*
*
* uint32 height = 3 [deprecated = true];
* @deprecated android.emulation.control.Image.height is deprecated.
* See emulator_controller.proto;l=613
*/
private void clearHeight() {
height_ = 0;
}
public static final int IMAGE_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString image_;
/**
*
* The organization of the pixels in the image buffer is from left to
* right and bottom up. This will be empty if an alternative image transport
* is requested in the image format. In that case the side channel should
* be used to obtain the image data.
*
*
* bytes image = 4;
* @return The image.
*/
@java.lang.Override
public com.google.protobuf.ByteString getImage() {
return image_;
}
/**
*
* The organization of the pixels in the image buffer is from left to
* right and bottom up. This will be empty if an alternative image transport
* is requested in the image format. In that case the side channel should
* be used to obtain the image data.
*
*
* bytes image = 4;
* @param value The image to set.
*/
private void setImage(com.google.protobuf.ByteString value) {
java.lang.Class valueClass = value.getClass();
image_ = value;
}
/**
*
* The organization of the pixels in the image buffer is from left to
* right and bottom up. This will be empty if an alternative image transport
* is requested in the image format. In that case the side channel should
* be used to obtain the image data.
*
*
* bytes image = 4;
*/
private void clearImage() {
image_ = getDefaultInstance().getImage();
}
public static final int SEQ_FIELD_NUMBER = 5;
private int seq_;
/**
*
* [Output Only] Monotonically increasing sequence number in a stream of
* screenshots. The first screenshot will have a sequence of 0. A single
* screenshot will always have a sequence number of 0. The sequence is not
* necessarily contiguous, and can be used to detect how many frames were
* dropped. An example sequence could be: [0, 3, 5, 7, 9, 11].
*
*
* uint32 seq = 5;
* @return The seq.
*/
@java.lang.Override
public int getSeq() {
return seq_;
}
/**
*
* [Output Only] Monotonically increasing sequence number in a stream of
* screenshots. The first screenshot will have a sequence of 0. A single
* screenshot will always have a sequence number of 0. The sequence is not
* necessarily contiguous, and can be used to detect how many frames were
* dropped. An example sequence could be: [0, 3, 5, 7, 9, 11].
*
*
* uint32 seq = 5;
* @param value The seq to set.
*/
private void setSeq(int value) {
seq_ = value;
}
/**
*
* [Output Only] Monotonically increasing sequence number in a stream of
* screenshots. The first screenshot will have a sequence of 0. A single
* screenshot will always have a sequence number of 0. The sequence is not
* necessarily contiguous, and can be used to detect how many frames were
* dropped. An example sequence could be: [0, 3, 5, 7, 9, 11].
*
*
* uint32 seq = 5;
*/
private void clearSeq() {
seq_ = 0;
}
public static com.android.emulator.control.Image 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.Image 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.Image 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.Image 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.Image parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.android.emulator.control.Image 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.Image parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.android.emulator.control.Image 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.Image parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.android.emulator.control.Image 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.Image 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.Image 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.Image prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code android.emulation.control.Image}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.android.emulator.control.Image, Builder> implements
// @@protoc_insertion_point(builder_implements:android.emulation.control.Image)
com.android.emulator.control.ImageOrBuilder {
// Construct using com.android.emulator.control.Image.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* .android.emulation.control.ImageFormat format = 1;
*/
@java.lang.Override
public boolean hasFormat() {
return instance.hasFormat();
}
/**
* .android.emulation.control.ImageFormat format = 1;
*/
@java.lang.Override
public com.android.emulator.control.ImageFormat getFormat() {
return instance.getFormat();
}
/**
* .android.emulation.control.ImageFormat format = 1;
*/
public Builder setFormat(com.android.emulator.control.ImageFormat value) {
copyOnWrite();
instance.setFormat(value);
return this;
}
/**
* .android.emulation.control.ImageFormat format = 1;
*/
public Builder setFormat(
com.android.emulator.control.ImageFormat.Builder builderForValue) {
copyOnWrite();
instance.setFormat(builderForValue.build());
return this;
}
/**
* .android.emulation.control.ImageFormat format = 1;
*/
public Builder mergeFormat(com.android.emulator.control.ImageFormat value) {
copyOnWrite();
instance.mergeFormat(value);
return this;
}
/**
* .android.emulation.control.ImageFormat format = 1;
*/
public Builder clearFormat() { copyOnWrite();
instance.clearFormat();
return this;
}
/**
*
* width is contained in format.
*
*
* uint32 width = 2 [deprecated = true];
* @deprecated android.emulation.control.Image.width is deprecated.
* See emulator_controller.proto;l=612
* @return The width.
*/
@java.lang.Override
@java.lang.Deprecated public int getWidth() {
return instance.getWidth();
}
/**
*
* width is contained in format.
*
*
* uint32 width = 2 [deprecated = true];
* @deprecated android.emulation.control.Image.width is deprecated.
* See emulator_controller.proto;l=612
* @param value The width to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setWidth(int value) {
copyOnWrite();
instance.setWidth(value);
return this;
}
/**
*
* width is contained in format.
*
*
* uint32 width = 2 [deprecated = true];
* @deprecated android.emulation.control.Image.width is deprecated.
* See emulator_controller.proto;l=612
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearWidth() {
copyOnWrite();
instance.clearWidth();
return this;
}
/**
*
* height is contained in format.
*
*
* uint32 height = 3 [deprecated = true];
* @deprecated android.emulation.control.Image.height is deprecated.
* See emulator_controller.proto;l=613
* @return The height.
*/
@java.lang.Override
@java.lang.Deprecated public int getHeight() {
return instance.getHeight();
}
/**
*
* height is contained in format.
*
*
* uint32 height = 3 [deprecated = true];
* @deprecated android.emulation.control.Image.height is deprecated.
* See emulator_controller.proto;l=613
* @param value The height to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setHeight(int value) {
copyOnWrite();
instance.setHeight(value);
return this;
}
/**
*
* height is contained in format.
*
*
* uint32 height = 3 [deprecated = true];
* @deprecated android.emulation.control.Image.height is deprecated.
* See emulator_controller.proto;l=613
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearHeight() {
copyOnWrite();
instance.clearHeight();
return this;
}
/**
*
* The organization of the pixels in the image buffer is from left to
* right and bottom up. This will be empty if an alternative image transport
* is requested in the image format. In that case the side channel should
* be used to obtain the image data.
*
*
* bytes image = 4;
* @return The image.
*/
@java.lang.Override
public com.google.protobuf.ByteString getImage() {
return instance.getImage();
}
/**
*
* The organization of the pixels in the image buffer is from left to
* right and bottom up. This will be empty if an alternative image transport
* is requested in the image format. In that case the side channel should
* be used to obtain the image data.
*
*
* bytes image = 4;
* @param value The image to set.
* @return This builder for chaining.
*/
public Builder setImage(com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setImage(value);
return this;
}
/**
*
* The organization of the pixels in the image buffer is from left to
* right and bottom up. This will be empty if an alternative image transport
* is requested in the image format. In that case the side channel should
* be used to obtain the image data.
*
*
* bytes image = 4;
* @return This builder for chaining.
*/
public Builder clearImage() {
copyOnWrite();
instance.clearImage();
return this;
}
/**
*
* [Output Only] Monotonically increasing sequence number in a stream of
* screenshots. The first screenshot will have a sequence of 0. A single
* screenshot will always have a sequence number of 0. The sequence is not
* necessarily contiguous, and can be used to detect how many frames were
* dropped. An example sequence could be: [0, 3, 5, 7, 9, 11].
*
*
* uint32 seq = 5;
* @return The seq.
*/
@java.lang.Override
public int getSeq() {
return instance.getSeq();
}
/**
*
* [Output Only] Monotonically increasing sequence number in a stream of
* screenshots. The first screenshot will have a sequence of 0. A single
* screenshot will always have a sequence number of 0. The sequence is not
* necessarily contiguous, and can be used to detect how many frames were
* dropped. An example sequence could be: [0, 3, 5, 7, 9, 11].
*
*
* uint32 seq = 5;
* @param value The seq to set.
* @return This builder for chaining.
*/
public Builder setSeq(int value) {
copyOnWrite();
instance.setSeq(value);
return this;
}
/**
*
* [Output Only] Monotonically increasing sequence number in a stream of
* screenshots. The first screenshot will have a sequence of 0. A single
* screenshot will always have a sequence number of 0. The sequence is not
* necessarily contiguous, and can be used to detect how many frames were
* dropped. An example sequence could be: [0, 3, 5, 7, 9, 11].
*
*
* uint32 seq = 5;
* @return This builder for chaining.
*/
public Builder clearSeq() {
copyOnWrite();
instance.clearSeq();
return this;
}
// @@protoc_insertion_point(builder_scope:android.emulation.control.Image)
}
@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.Image();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"format_",
"width_",
"height_",
"image_",
"seq_",
};
java.lang.String info =
"\u0000\u0005\u0000\u0001\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u1009\u0000\u0002" +
"\u000b\u0003\u000b\u0004\n\u0005\u000b";
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.Image.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.Image)
private static final com.android.emulator.control.Image DEFAULT_INSTANCE;
static {
Image defaultInstance = new Image();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Image.class, defaultInstance);
}
public static com.android.emulator.control.Image getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}