com.android.emulator.control.LogcatEntry 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;
/**
*
* A parsed logcat entry.
*
*
* Protobuf type {@code android.emulation.control.LogcatEntry}
*/
public final class LogcatEntry extends
com.google.protobuf.GeneratedMessageLite<
LogcatEntry, LogcatEntry.Builder> implements
// @@protoc_insertion_point(message_implements:android.emulation.control.LogcatEntry)
LogcatEntryOrBuilder {
private LogcatEntry() {
tag_ = "";
msg_ = "";
}
/**
*
* The possible log levels.
*
*
* Protobuf enum {@code android.emulation.control.LogcatEntry.LogLevel}
*/
public enum LogLevel
implements com.google.protobuf.Internal.EnumLite {
/**
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
* DEFAULT = 1;
*/
DEFAULT(1),
/**
* VERBOSE = 2;
*/
VERBOSE(2),
/**
* DEBUG = 3;
*/
DEBUG(3),
/**
* INFO = 4;
*/
INFO(4),
/**
* WARN = 5;
*/
WARN(5),
/**
* ERR = 6;
*/
ERR(6),
/**
* FATAL = 7;
*/
FATAL(7),
/**
* SILENT = 8;
*/
SILENT(8),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
* DEFAULT = 1;
*/
public static final int DEFAULT_VALUE = 1;
/**
* VERBOSE = 2;
*/
public static final int VERBOSE_VALUE = 2;
/**
* DEBUG = 3;
*/
public static final int DEBUG_VALUE = 3;
/**
* INFO = 4;
*/
public static final int INFO_VALUE = 4;
/**
* WARN = 5;
*/
public static final int WARN_VALUE = 5;
/**
* ERR = 6;
*/
public static final int ERR_VALUE = 6;
/**
* FATAL = 7;
*/
public static final int FATAL_VALUE = 7;
/**
* SILENT = 8;
*/
public static final int SILENT_VALUE = 8;
@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 LogLevel valueOf(int value) {
return forNumber(value);
}
public static LogLevel forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return DEFAULT;
case 2: return VERBOSE;
case 3: return DEBUG;
case 4: return INFO;
case 5: return WARN;
case 6: return ERR;
case 7: return FATAL;
case 8: return SILENT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
LogLevel> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
@java.lang.Override
public LogLevel findValueByNumber(int number) {
return LogLevel.forNumber(number);
}
};
public static com.google.protobuf.Internal.EnumVerifier
internalGetVerifier() {
return LogLevelVerifier.INSTANCE;
}
private static final class LogLevelVerifier implements
com.google.protobuf.Internal.EnumVerifier {
static final com.google.protobuf.Internal.EnumVerifier INSTANCE = new LogLevelVerifier();
@java.lang.Override
public boolean isInRange(int number) {
return LogLevel.forNumber(number) != null;
}
};
private final int value;
private LogLevel(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:android.emulation.control.LogcatEntry.LogLevel)
}
public static final int TIMESTAMP_FIELD_NUMBER = 1;
private long timestamp_;
/**
*
* A Unix timestamps in milliseconds (The number of milliseconds that
* have elapsed since January 1, 1970 (midnight UTC/GMT), not counting
* leap seconds)
*
*
* uint64 timestamp = 1;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
/**
*
* A Unix timestamps in milliseconds (The number of milliseconds that
* have elapsed since January 1, 1970 (midnight UTC/GMT), not counting
* leap seconds)
*
*
* uint64 timestamp = 1;
* @param value The timestamp to set.
*/
private void setTimestamp(long value) {
timestamp_ = value;
}
/**
*
* A Unix timestamps in milliseconds (The number of milliseconds that
* have elapsed since January 1, 1970 (midnight UTC/GMT), not counting
* leap seconds)
*
*
* uint64 timestamp = 1;
*/
private void clearTimestamp() {
timestamp_ = 0L;
}
public static final int PID_FIELD_NUMBER = 2;
private int pid_;
/**
*
* Process id.
*
*
* uint32 pid = 2;
* @return The pid.
*/
@java.lang.Override
public int getPid() {
return pid_;
}
/**
*
* Process id.
*
*
* uint32 pid = 2;
* @param value The pid to set.
*/
private void setPid(int value) {
pid_ = value;
}
/**
*
* Process id.
*
*
* uint32 pid = 2;
*/
private void clearPid() {
pid_ = 0;
}
public static final int TID_FIELD_NUMBER = 3;
private int tid_;
/**
*
* Thread id.
*
*
* uint32 tid = 3;
* @return The tid.
*/
@java.lang.Override
public int getTid() {
return tid_;
}
/**
*
* Thread id.
*
*
* uint32 tid = 3;
* @param value The tid to set.
*/
private void setTid(int value) {
tid_ = value;
}
/**
*
* Thread id.
*
*
* uint32 tid = 3;
*/
private void clearTid() {
tid_ = 0;
}
public static final int LEVEL_FIELD_NUMBER = 4;
private int level_;
/**
* .android.emulation.control.LogcatEntry.LogLevel level = 4;
* @return The enum numeric value on the wire for level.
*/
@java.lang.Override
public int getLevelValue() {
return level_;
}
/**
* .android.emulation.control.LogcatEntry.LogLevel level = 4;
* @return The level.
*/
@java.lang.Override
public com.android.emulator.control.LogcatEntry.LogLevel getLevel() {
com.android.emulator.control.LogcatEntry.LogLevel result = com.android.emulator.control.LogcatEntry.LogLevel.forNumber(level_);
return result == null ? com.android.emulator.control.LogcatEntry.LogLevel.UNRECOGNIZED : result;
}
/**
* .android.emulation.control.LogcatEntry.LogLevel level = 4;
* @param value The enum numeric value on the wire for level to set.
*/
private void setLevelValue(int value) {
level_ = value;
}
/**
* .android.emulation.control.LogcatEntry.LogLevel level = 4;
* @param value The level to set.
*/
private void setLevel(com.android.emulator.control.LogcatEntry.LogLevel value) {
level_ = value.getNumber();
}
/**
* .android.emulation.control.LogcatEntry.LogLevel level = 4;
*/
private void clearLevel() {
level_ = 0;
}
public static final int TAG_FIELD_NUMBER = 5;
private java.lang.String tag_;
/**
* string tag = 5;
* @return The tag.
*/
@java.lang.Override
public java.lang.String getTag() {
return tag_;
}
/**
* string tag = 5;
* @return The bytes for tag.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTagBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(tag_);
}
/**
* string tag = 5;
* @param value The tag to set.
*/
private void setTag(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
tag_ = value;
}
/**
* string tag = 5;
*/
private void clearTag() {
tag_ = getDefaultInstance().getTag();
}
/**
* string tag = 5;
* @param value The bytes for tag to set.
*/
private void setTagBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
tag_ = value.toStringUtf8();
}
public static final int MSG_FIELD_NUMBER = 6;
private java.lang.String msg_;
/**
* string msg = 6;
* @return The msg.
*/
@java.lang.Override
public java.lang.String getMsg() {
return msg_;
}
/**
* string msg = 6;
* @return The bytes for msg.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMsgBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(msg_);
}
/**
* string msg = 6;
* @param value The msg to set.
*/
private void setMsg(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
msg_ = value;
}
/**
* string msg = 6;
*/
private void clearMsg() {
msg_ = getDefaultInstance().getMsg();
}
/**
* string msg = 6;
* @param value The bytes for msg to set.
*/
private void setMsgBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
msg_ = value.toStringUtf8();
}
public static com.android.emulator.control.LogcatEntry 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.LogcatEntry 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.LogcatEntry 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.LogcatEntry 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.LogcatEntry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.android.emulator.control.LogcatEntry 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.LogcatEntry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.android.emulator.control.LogcatEntry 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.LogcatEntry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.android.emulator.control.LogcatEntry 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.LogcatEntry 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.LogcatEntry 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.LogcatEntry prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* A parsed logcat entry.
*
*
* Protobuf type {@code android.emulation.control.LogcatEntry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.android.emulator.control.LogcatEntry, Builder> implements
// @@protoc_insertion_point(builder_implements:android.emulation.control.LogcatEntry)
com.android.emulator.control.LogcatEntryOrBuilder {
// Construct using com.android.emulator.control.LogcatEntry.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* A Unix timestamps in milliseconds (The number of milliseconds that
* have elapsed since January 1, 1970 (midnight UTC/GMT), not counting
* leap seconds)
*
*
* uint64 timestamp = 1;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return instance.getTimestamp();
}
/**
*
* A Unix timestamps in milliseconds (The number of milliseconds that
* have elapsed since January 1, 1970 (midnight UTC/GMT), not counting
* leap seconds)
*
*
* uint64 timestamp = 1;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(long value) {
copyOnWrite();
instance.setTimestamp(value);
return this;
}
/**
*
* A Unix timestamps in milliseconds (The number of milliseconds that
* have elapsed since January 1, 1970 (midnight UTC/GMT), not counting
* leap seconds)
*
*
* uint64 timestamp = 1;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
copyOnWrite();
instance.clearTimestamp();
return this;
}
/**
*
* Process id.
*
*
* uint32 pid = 2;
* @return The pid.
*/
@java.lang.Override
public int getPid() {
return instance.getPid();
}
/**
*
* Process id.
*
*
* uint32 pid = 2;
* @param value The pid to set.
* @return This builder for chaining.
*/
public Builder setPid(int value) {
copyOnWrite();
instance.setPid(value);
return this;
}
/**
*
* Process id.
*
*
* uint32 pid = 2;
* @return This builder for chaining.
*/
public Builder clearPid() {
copyOnWrite();
instance.clearPid();
return this;
}
/**
*
* Thread id.
*
*
* uint32 tid = 3;
* @return The tid.
*/
@java.lang.Override
public int getTid() {
return instance.getTid();
}
/**
*
* Thread id.
*
*
* uint32 tid = 3;
* @param value The tid to set.
* @return This builder for chaining.
*/
public Builder setTid(int value) {
copyOnWrite();
instance.setTid(value);
return this;
}
/**
*
* Thread id.
*
*
* uint32 tid = 3;
* @return This builder for chaining.
*/
public Builder clearTid() {
copyOnWrite();
instance.clearTid();
return this;
}
/**
* .android.emulation.control.LogcatEntry.LogLevel level = 4;
* @return The enum numeric value on the wire for level.
*/
@java.lang.Override
public int getLevelValue() {
return instance.getLevelValue();
}
/**
* .android.emulation.control.LogcatEntry.LogLevel level = 4;
* @param value The level to set.
* @return This builder for chaining.
*/
public Builder setLevelValue(int value) {
copyOnWrite();
instance.setLevelValue(value);
return this;
}
/**
* .android.emulation.control.LogcatEntry.LogLevel level = 4;
* @return The level.
*/
@java.lang.Override
public com.android.emulator.control.LogcatEntry.LogLevel getLevel() {
return instance.getLevel();
}
/**
* .android.emulation.control.LogcatEntry.LogLevel level = 4;
* @param value The enum numeric value on the wire for level to set.
* @return This builder for chaining.
*/
public Builder setLevel(com.android.emulator.control.LogcatEntry.LogLevel value) {
copyOnWrite();
instance.setLevel(value);
return this;
}
/**
* .android.emulation.control.LogcatEntry.LogLevel level = 4;
* @return This builder for chaining.
*/
public Builder clearLevel() {
copyOnWrite();
instance.clearLevel();
return this;
}
/**
* string tag = 5;
* @return The tag.
*/
@java.lang.Override
public java.lang.String getTag() {
return instance.getTag();
}
/**
* string tag = 5;
* @return The bytes for tag.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTagBytes() {
return instance.getTagBytes();
}
/**
* string tag = 5;
* @param value The tag to set.
* @return This builder for chaining.
*/
public Builder setTag(
java.lang.String value) {
copyOnWrite();
instance.setTag(value);
return this;
}
/**
* string tag = 5;
* @return This builder for chaining.
*/
public Builder clearTag() {
copyOnWrite();
instance.clearTag();
return this;
}
/**
* string tag = 5;
* @param value The bytes for tag to set.
* @return This builder for chaining.
*/
public Builder setTagBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setTagBytes(value);
return this;
}
/**
* string msg = 6;
* @return The msg.
*/
@java.lang.Override
public java.lang.String getMsg() {
return instance.getMsg();
}
/**
* string msg = 6;
* @return The bytes for msg.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMsgBytes() {
return instance.getMsgBytes();
}
/**
* string msg = 6;
* @param value The msg to set.
* @return This builder for chaining.
*/
public Builder setMsg(
java.lang.String value) {
copyOnWrite();
instance.setMsg(value);
return this;
}
/**
* string msg = 6;
* @return This builder for chaining.
*/
public Builder clearMsg() {
copyOnWrite();
instance.clearMsg();
return this;
}
/**
* string msg = 6;
* @param value The bytes for msg to set.
* @return This builder for chaining.
*/
public Builder setMsgBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setMsgBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:android.emulation.control.LogcatEntry)
}
@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.LogcatEntry();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"timestamp_",
"pid_",
"tid_",
"level_",
"tag_",
"msg_",
};
java.lang.String info =
"\u0000\u0006\u0000\u0000\u0001\u0006\u0006\u0000\u0000\u0000\u0001\u0003\u0002\u000b" +
"\u0003\u000b\u0004\f\u0005\u0208\u0006\u0208";
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.LogcatEntry.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.LogcatEntry)
private static final com.android.emulator.control.LogcatEntry DEFAULT_INSTANCE;
static {
LogcatEntry defaultInstance = new LogcatEntry();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
LogcatEntry.class, defaultInstance);
}
public static com.android.emulator.control.LogcatEntry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}