
org.glowroot.wire.api.model.LogEventOuterClass Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: LogEvent.proto
package org.glowroot.wire.api.model;
public final class LogEventOuterClass {
private LogEventOuterClass() {}
public static void registerAllExtensions(
org.glowroot.agent.shaded.google.protobuf.ExtensionRegistry registry) {
}
public interface LogEventOrBuilder extends
// @@protoc_insertion_point(interface_extends:org_glowroot_wire_api_model.LogEvent)
org.glowroot.agent.shaded.google.protobuf.MessageOrBuilder {
/**
* optional int64 timestamp = 1;
*/
long getTimestamp();
/**
* optional .org_glowroot_wire_api_model.LogEvent.Level level = 2;
*/
int getLevelValue();
/**
* optional .org_glowroot_wire_api_model.LogEvent.Level level = 2;
*/
org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.Level getLevel();
/**
* optional string logger_name = 3;
*/
java.lang.String getLoggerName();
/**
* optional string logger_name = 3;
*/
org.glowroot.agent.shaded.google.protobuf.ByteString
getLoggerNameBytes();
/**
* optional string formatted_message = 4;
*/
java.lang.String getFormattedMessage();
/**
* optional string formatted_message = 4;
*/
org.glowroot.agent.shaded.google.protobuf.ByteString
getFormattedMessageBytes();
}
/**
* Protobuf type {@code org_glowroot_wire_api_model.LogEvent}
*/
public static final class LogEvent extends
org.glowroot.agent.shaded.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:org_glowroot_wire_api_model.LogEvent)
LogEventOrBuilder {
// Use LogEvent.newBuilder() to construct.
private LogEvent(org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private LogEvent() {
timestamp_ = 0L;
level_ = 0;
loggerName_ = "";
formattedMessage_ = "";
}
@java.lang.Override
public final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet
getUnknownFields() {
return org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private LogEvent(
org.glowroot.agent.shaded.google.protobuf.CodedInputStream input,
org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
timestamp_ = input.readInt64();
break;
}
case 16: {
int rawValue = input.readEnum();
level_ = rawValue;
break;
}
case 26: {
String s = input.readStringRequireUtf8();
loggerName_ = s;
break;
}
case 34: {
String s = input.readStringRequireUtf8();
formattedMessage_ = s;
break;
}
}
}
} catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
makeExtensionsImmutable();
}
}
public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.glowroot.wire.api.model.LogEventOuterClass.internal_static_org_glowroot_wire_api_model_LogEvent_descriptor;
}
protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.glowroot.wire.api.model.LogEventOuterClass.internal_static_org_glowroot_wire_api_model_LogEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.class, org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.Builder.class);
}
/**
* Protobuf enum {@code org_glowroot_wire_api_model.LogEvent.Level}
*/
public enum Level
implements org.glowroot.agent.shaded.google.protobuf.ProtocolMessageEnum {
/**
* NONE = 0;
*/
NONE(0, 0),
/**
* TRACE = 1;
*/
TRACE(1, 1),
/**
* DEBUG = 2;
*/
DEBUG(2, 2),
/**
* INFO = 3;
*/
INFO(3, 3),
/**
* WARN = 4;
*/
WARN(4, 4),
/**
* ERROR = 5;
*/
ERROR(5, 5),
UNRECOGNIZED(-1, -1),
;
/**
* NONE = 0;
*/
public static final int NONE_VALUE = 0;
/**
* TRACE = 1;
*/
public static final int TRACE_VALUE = 1;
/**
* DEBUG = 2;
*/
public static final int DEBUG_VALUE = 2;
/**
* INFO = 3;
*/
public static final int INFO_VALUE = 3;
/**
* WARN = 4;
*/
public static final int WARN_VALUE = 4;
/**
* ERROR = 5;
*/
public static final int ERROR_VALUE = 5;
public final int getNumber() {
if (index == -1) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
public static Level valueOf(int value) {
switch (value) {
case 0: return NONE;
case 1: return TRACE;
case 2: return DEBUG;
case 3: return INFO;
case 4: return WARN;
case 5: return ERROR;
default: return null;
}
}
public static org.glowroot.agent.shaded.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final org.glowroot.agent.shaded.google.protobuf.Internal.EnumLiteMap<
Level> internalValueMap =
new org.glowroot.agent.shaded.google.protobuf.Internal.EnumLiteMap() {
public Level findValueByNumber(int number) {
return Level.valueOf(number);
}
};
public final org.glowroot.agent.shaded.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final org.glowroot.agent.shaded.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.getDescriptor().getEnumTypes().get(0);
}
private static final Level[] VALUES = values();
public static Level valueOf(
org.glowroot.agent.shaded.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Level(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:org_glowroot_wire_api_model.LogEvent.Level)
}
public static final int TIMESTAMP_FIELD_NUMBER = 1;
private long timestamp_;
/**
* optional int64 timestamp = 1;
*/
public long getTimestamp() {
return timestamp_;
}
public static final int LEVEL_FIELD_NUMBER = 2;
private int level_;
/**
* optional .org_glowroot_wire_api_model.LogEvent.Level level = 2;
*/
public int getLevelValue() {
return level_;
}
/**
* optional .org_glowroot_wire_api_model.LogEvent.Level level = 2;
*/
public org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.Level getLevel() {
org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.Level result = org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.Level.valueOf(level_);
return result == null ? org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.Level.UNRECOGNIZED : result;
}
public static final int LOGGER_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object loggerName_;
/**
* optional string logger_name = 3;
*/
public java.lang.String getLoggerName() {
java.lang.Object ref = loggerName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.glowroot.agent.shaded.google.protobuf.ByteString bs =
(org.glowroot.agent.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
loggerName_ = s;
return s;
}
}
/**
* optional string logger_name = 3;
*/
public org.glowroot.agent.shaded.google.protobuf.ByteString
getLoggerNameBytes() {
java.lang.Object ref = loggerName_;
if (ref instanceof java.lang.String) {
org.glowroot.agent.shaded.google.protobuf.ByteString b =
org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
loggerName_ = b;
return b;
} else {
return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref;
}
}
public static final int FORMATTED_MESSAGE_FIELD_NUMBER = 4;
private volatile java.lang.Object formattedMessage_;
/**
* optional string formatted_message = 4;
*/
public java.lang.String getFormattedMessage() {
java.lang.Object ref = formattedMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
org.glowroot.agent.shaded.google.protobuf.ByteString bs =
(org.glowroot.agent.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
formattedMessage_ = s;
return s;
}
}
/**
* optional string formatted_message = 4;
*/
public org.glowroot.agent.shaded.google.protobuf.ByteString
getFormattedMessageBytes() {
java.lang.Object ref = formattedMessage_;
if (ref instanceof java.lang.String) {
org.glowroot.agent.shaded.google.protobuf.ByteString b =
org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formattedMessage_ = b;
return b;
} else {
return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(org.glowroot.agent.shaded.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (timestamp_ != 0L) {
output.writeInt64(1, timestamp_);
}
if (level_ != org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.Level.NONE.getNumber()) {
output.writeEnum(2, level_);
}
if (!getLoggerNameBytes().isEmpty()) {
org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 3, loggerName_);
}
if (!getFormattedMessageBytes().isEmpty()) {
org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 4, formattedMessage_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (timestamp_ != 0L) {
size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream
.computeInt64Size(1, timestamp_);
}
if (level_ != org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.Level.NONE.getNumber()) {
size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream
.computeEnumSize(2, level_);
}
if (!getLoggerNameBytes().isEmpty()) {
size += org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.computeStringSize(3, loggerName_);
}
if (!getFormattedMessageBytes().isEmpty()) {
size += org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.computeStringSize(4, formattedMessage_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
public static org.glowroot.wire.api.model.LogEventOuterClass.LogEvent parseFrom(
org.glowroot.agent.shaded.google.protobuf.ByteString data)
throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.glowroot.wire.api.model.LogEventOuterClass.LogEvent parseFrom(
org.glowroot.agent.shaded.google.protobuf.ByteString data,
org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.glowroot.wire.api.model.LogEventOuterClass.LogEvent parseFrom(byte[] data)
throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.glowroot.wire.api.model.LogEventOuterClass.LogEvent parseFrom(
byte[] data,
org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.glowroot.wire.api.model.LogEventOuterClass.LogEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.glowroot.wire.api.model.LogEventOuterClass.LogEvent parseFrom(
java.io.InputStream input,
org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.glowroot.wire.api.model.LogEventOuterClass.LogEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.glowroot.wire.api.model.LogEventOuterClass.LogEvent parseDelimitedFrom(
java.io.InputStream input,
org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.glowroot.wire.api.model.LogEventOuterClass.LogEvent parseFrom(
org.glowroot.agent.shaded.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.glowroot.wire.api.model.LogEventOuterClass.LogEvent parseFrom(
org.glowroot.agent.shaded.google.protobuf.CodedInputStream input,
org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.glowroot.wire.api.model.LogEventOuterClass.LogEvent prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code org_glowroot_wire_api_model.LogEvent}
*/
public static final class Builder extends
org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:org_glowroot_wire_api_model.LogEvent)
org.glowroot.wire.api.model.LogEventOuterClass.LogEventOrBuilder {
public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.glowroot.wire.api.model.LogEventOuterClass.internal_static_org_glowroot_wire_api_model_LogEvent_descriptor;
}
protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.glowroot.wire.api.model.LogEventOuterClass.internal_static_org_glowroot_wire_api_model_LogEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.class, org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.Builder.class);
}
// Construct using org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
timestamp_ = 0L;
level_ = 0;
loggerName_ = "";
formattedMessage_ = "";
return this;
}
public org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.glowroot.wire.api.model.LogEventOuterClass.internal_static_org_glowroot_wire_api_model_LogEvent_descriptor;
}
public org.glowroot.wire.api.model.LogEventOuterClass.LogEvent getDefaultInstanceForType() {
return org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.getDefaultInstance();
}
public org.glowroot.wire.api.model.LogEventOuterClass.LogEvent build() {
org.glowroot.wire.api.model.LogEventOuterClass.LogEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.glowroot.wire.api.model.LogEventOuterClass.LogEvent buildPartial() {
org.glowroot.wire.api.model.LogEventOuterClass.LogEvent result = new org.glowroot.wire.api.model.LogEventOuterClass.LogEvent(this);
result.timestamp_ = timestamp_;
result.level_ = level_;
result.loggerName_ = loggerName_;
result.formattedMessage_ = formattedMessage_;
onBuilt();
return result;
}
public Builder mergeFrom(org.glowroot.agent.shaded.google.protobuf.Message other) {
if (other instanceof org.glowroot.wire.api.model.LogEventOuterClass.LogEvent) {
return mergeFrom((org.glowroot.wire.api.model.LogEventOuterClass.LogEvent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.glowroot.wire.api.model.LogEventOuterClass.LogEvent other) {
if (other == org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.getDefaultInstance()) return this;
if (other.getTimestamp() != 0L) {
setTimestamp(other.getTimestamp());
}
if (other.level_ != 0) {
setLevelValue(other.getLevelValue());
}
if (!other.getLoggerName().isEmpty()) {
loggerName_ = other.loggerName_;
onChanged();
}
if (!other.getFormattedMessage().isEmpty()) {
formattedMessage_ = other.formattedMessage_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
org.glowroot.agent.shaded.google.protobuf.CodedInputStream input,
org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.glowroot.wire.api.model.LogEventOuterClass.LogEvent parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.glowroot.wire.api.model.LogEventOuterClass.LogEvent) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long timestamp_ ;
/**
* optional int64 timestamp = 1;
*/
public long getTimestamp() {
return timestamp_;
}
/**
* optional int64 timestamp = 1;
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
* optional int64 timestamp = 1;
*/
public Builder clearTimestamp() {
timestamp_ = 0L;
onChanged();
return this;
}
private int level_ = 0;
/**
* optional .org_glowroot_wire_api_model.LogEvent.Level level = 2;
*/
public int getLevelValue() {
return level_;
}
/**
* optional .org_glowroot_wire_api_model.LogEvent.Level level = 2;
*/
public Builder setLevelValue(int value) {
level_ = value;
onChanged();
return this;
}
/**
* optional .org_glowroot_wire_api_model.LogEvent.Level level = 2;
*/
public org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.Level getLevel() {
org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.Level result = org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.Level.valueOf(level_);
return result == null ? org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.Level.UNRECOGNIZED : result;
}
/**
* optional .org_glowroot_wire_api_model.LogEvent.Level level = 2;
*/
public Builder setLevel(org.glowroot.wire.api.model.LogEventOuterClass.LogEvent.Level value) {
if (value == null) {
throw new NullPointerException();
}
level_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .org_glowroot_wire_api_model.LogEvent.Level level = 2;
*/
public Builder clearLevel() {
level_ = 0;
onChanged();
return this;
}
private java.lang.Object loggerName_ = "";
/**
* optional string logger_name = 3;
*/
public java.lang.String getLoggerName() {
java.lang.Object ref = loggerName_;
if (!(ref instanceof java.lang.String)) {
org.glowroot.agent.shaded.google.protobuf.ByteString bs =
(org.glowroot.agent.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
loggerName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string logger_name = 3;
*/
public org.glowroot.agent.shaded.google.protobuf.ByteString
getLoggerNameBytes() {
java.lang.Object ref = loggerName_;
if (ref instanceof String) {
org.glowroot.agent.shaded.google.protobuf.ByteString b =
org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
loggerName_ = b;
return b;
} else {
return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref;
}
}
/**
* optional string logger_name = 3;
*/
public Builder setLoggerName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
loggerName_ = value;
onChanged();
return this;
}
/**
* optional string logger_name = 3;
*/
public Builder clearLoggerName() {
loggerName_ = getDefaultInstance().getLoggerName();
onChanged();
return this;
}
/**
* optional string logger_name = 3;
*/
public Builder setLoggerNameBytes(
org.glowroot.agent.shaded.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
loggerName_ = value;
onChanged();
return this;
}
private java.lang.Object formattedMessage_ = "";
/**
* optional string formatted_message = 4;
*/
public java.lang.String getFormattedMessage() {
java.lang.Object ref = formattedMessage_;
if (!(ref instanceof java.lang.String)) {
org.glowroot.agent.shaded.google.protobuf.ByteString bs =
(org.glowroot.agent.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
formattedMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string formatted_message = 4;
*/
public org.glowroot.agent.shaded.google.protobuf.ByteString
getFormattedMessageBytes() {
java.lang.Object ref = formattedMessage_;
if (ref instanceof String) {
org.glowroot.agent.shaded.google.protobuf.ByteString b =
org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formattedMessage_ = b;
return b;
} else {
return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref;
}
}
/**
* optional string formatted_message = 4;
*/
public Builder setFormattedMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
formattedMessage_ = value;
onChanged();
return this;
}
/**
* optional string formatted_message = 4;
*/
public Builder clearFormattedMessage() {
formattedMessage_ = getDefaultInstance().getFormattedMessage();
onChanged();
return this;
}
/**
* optional string formatted_message = 4;
*/
public Builder setFormattedMessageBytes(
org.glowroot.agent.shaded.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
formattedMessage_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:org_glowroot_wire_api_model.LogEvent)
}
// @@protoc_insertion_point(class_scope:org_glowroot_wire_api_model.LogEvent)
private static final org.glowroot.wire.api.model.LogEventOuterClass.LogEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.glowroot.wire.api.model.LogEventOuterClass.LogEvent();
}
public static org.glowroot.wire.api.model.LogEventOuterClass.LogEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.glowroot.agent.shaded.google.protobuf.Parser
PARSER = new org.glowroot.agent.shaded.google.protobuf.AbstractParser() {
public LogEvent parsePartialFrom(
org.glowroot.agent.shaded.google.protobuf.CodedInputStream input,
org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException {
try {
return new LogEvent(input, extensionRegistry);
} catch (RuntimeException e) {
if (e.getCause() instanceof
org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) {
throw (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException)
e.getCause();
}
throw e;
}
}
};
public static org.glowroot.agent.shaded.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.glowroot.agent.shaded.google.protobuf.Parser getParserForType() {
return PARSER;
}
public org.glowroot.wire.api.model.LogEventOuterClass.LogEvent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor
internal_static_org_glowroot_wire_api_model_LogEvent_descriptor;
private static
org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_org_glowroot_wire_api_model_LogEvent_fieldAccessorTable;
public static org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\016LogEvent.proto\022\033org_glowroot_wire_api_" +
"model\"\321\001\n\010LogEvent\022\021\n\ttimestamp\030\001 \001(\003\022:\n" +
"\005level\030\002 \001(\0162+.org_glowroot_wire_api_mod" +
"el.LogEvent.Level\022\023\n\013logger_name\030\003 \001(\t\022\031" +
"\n\021formatted_message\030\004 \001(\t\"F\n\005Level\022\010\n\004NO" +
"NE\020\000\022\t\n\005TRACE\020\001\022\t\n\005DEBUG\020\002\022\010\n\004INFO\020\003\022\010\n\004" +
"WARN\020\004\022\t\n\005ERROR\020\005B\035\n\033org.glowroot.wire.a" +
"pi.modelb\006proto3"
};
org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public org.glowroot.agent.shaded.google.protobuf.ExtensionRegistry assignDescriptors(
org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_org_glowroot_wire_api_model_LogEvent_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_org_glowroot_wire_api_model_LogEvent_fieldAccessorTable = new
org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_org_glowroot_wire_api_model_LogEvent_descriptor,
new java.lang.String[] { "Timestamp", "Level", "LoggerName", "FormattedMessage", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy