com.dimajix.flowman.kernel.proto.LogEvent Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: logging.proto
package com.dimajix.flowman.kernel.proto;
/**
* Protobuf type {@code com.dimajix.flowman.kernel.LogEvent}
*/
public final class LogEvent extends
com.dimajix.shaded.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.dimajix.flowman.kernel.LogEvent)
LogEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use LogEvent.newBuilder() to construct.
private LogEvent(com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LogEvent() {
logger_ = "";
level_ = 0;
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LogEvent();
}
public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dimajix.flowman.kernel.proto.LoggingProto.internal_static_com_dimajix_flowman_kernel_LogEvent_descriptor;
}
@java.lang.Override
protected com.dimajix.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dimajix.flowman.kernel.proto.LoggingProto.internal_static_com_dimajix_flowman_kernel_LogEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.LogEvent.class, com.dimajix.flowman.kernel.proto.LogEvent.Builder.class);
}
private int bitField0_;
public static final int LOGGER_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object logger_ = "";
/**
* string logger = 1;
* @return The logger.
*/
@java.lang.Override
public java.lang.String getLogger() {
java.lang.Object ref = logger_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logger_ = s;
return s;
}
}
/**
* string logger = 1;
* @return The bytes for logger.
*/
@java.lang.Override
public com.dimajix.shaded.protobuf.ByteString
getLoggerBytes() {
java.lang.Object ref = logger_;
if (ref instanceof java.lang.String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logger_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
public static final int TIMESTAMP_FIELD_NUMBER = 2;
private com.dimajix.flowman.kernel.proto.Timestamp timestamp_;
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 2;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return timestamp_ != null;
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 2;
* @return The timestamp.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Timestamp getTimestamp() {
return timestamp_ == null ? com.dimajix.flowman.kernel.proto.Timestamp.getDefaultInstance() : timestamp_;
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 2;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.TimestampOrBuilder getTimestampOrBuilder() {
return timestamp_ == null ? com.dimajix.flowman.kernel.proto.Timestamp.getDefaultInstance() : timestamp_;
}
public static final int LEVEL_FIELD_NUMBER = 3;
private int level_ = 0;
/**
* .com.dimajix.flowman.kernel.LogLevel level = 3;
* @return The enum numeric value on the wire for level.
*/
@java.lang.Override public int getLevelValue() {
return level_;
}
/**
* .com.dimajix.flowman.kernel.LogLevel level = 3;
* @return The level.
*/
@java.lang.Override public com.dimajix.flowman.kernel.proto.LogLevel getLevel() {
com.dimajix.flowman.kernel.proto.LogLevel result = com.dimajix.flowman.kernel.proto.LogLevel.forNumber(level_);
return result == null ? com.dimajix.flowman.kernel.proto.LogLevel.UNRECOGNIZED : result;
}
public static final int MESSAGE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
* string message = 4;
* @return The message.
*/
@java.lang.Override
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
}
}
/**
* string message = 4;
* @return The bytes for message.
*/
@java.lang.Override
public com.dimajix.shaded.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
public static final int LOCATION_FIELD_NUMBER = 5;
private com.dimajix.flowman.kernel.proto.LogLocation location_;
/**
* optional .com.dimajix.flowman.kernel.LogLocation location = 5;
* @return Whether the location field is set.
*/
@java.lang.Override
public boolean hasLocation() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .com.dimajix.flowman.kernel.LogLocation location = 5;
* @return The location.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.LogLocation getLocation() {
return location_ == null ? com.dimajix.flowman.kernel.proto.LogLocation.getDefaultInstance() : location_;
}
/**
* optional .com.dimajix.flowman.kernel.LogLocation location = 5;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.LogLocationOrBuilder getLocationOrBuilder() {
return location_ == null ? com.dimajix.flowman.kernel.proto.LogLocation.getDefaultInstance() : location_;
}
public static final int EXCEPTION_FIELD_NUMBER = 6;
private com.dimajix.flowman.kernel.proto.Exception exception_;
/**
* optional .com.dimajix.flowman.kernel.Exception exception = 6;
* @return Whether the exception field is set.
*/
@java.lang.Override
public boolean hasException() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .com.dimajix.flowman.kernel.Exception exception = 6;
* @return The exception.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.Exception getException() {
return exception_ == null ? com.dimajix.flowman.kernel.proto.Exception.getDefaultInstance() : exception_;
}
/**
* optional .com.dimajix.flowman.kernel.Exception exception = 6;
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.ExceptionOrBuilder getExceptionOrBuilder() {
return exception_ == null ? com.dimajix.flowman.kernel.proto.Exception.getDefaultInstance() : exception_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.dimajix.shaded.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.dimajix.shaded.protobuf.GeneratedMessageV3.isStringEmpty(logger_)) {
com.dimajix.shaded.protobuf.GeneratedMessageV3.writeString(output, 1, logger_);
}
if (timestamp_ != null) {
output.writeMessage(2, getTimestamp());
}
if (level_ != com.dimajix.flowman.kernel.proto.LogLevel.ALL.getNumber()) {
output.writeEnum(3, level_);
}
if (!com.dimajix.shaded.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
com.dimajix.shaded.protobuf.GeneratedMessageV3.writeString(output, 4, message_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getLocation());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getException());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.dimajix.shaded.protobuf.GeneratedMessageV3.isStringEmpty(logger_)) {
size += com.dimajix.shaded.protobuf.GeneratedMessageV3.computeStringSize(1, logger_);
}
if (timestamp_ != null) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(2, getTimestamp());
}
if (level_ != com.dimajix.flowman.kernel.proto.LogLevel.ALL.getNumber()) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeEnumSize(3, level_);
}
if (!com.dimajix.shaded.protobuf.GeneratedMessageV3.isStringEmpty(message_)) {
size += com.dimajix.shaded.protobuf.GeneratedMessageV3.computeStringSize(4, message_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(5, getLocation());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.dimajix.shaded.protobuf.CodedOutputStream
.computeMessageSize(6, getException());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.dimajix.flowman.kernel.proto.LogEvent)) {
return super.equals(obj);
}
com.dimajix.flowman.kernel.proto.LogEvent other = (com.dimajix.flowman.kernel.proto.LogEvent) obj;
if (!getLogger()
.equals(other.getLogger())) return false;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp()
.equals(other.getTimestamp())) return false;
}
if (level_ != other.level_) return false;
if (!getMessage()
.equals(other.getMessage())) return false;
if (hasLocation() != other.hasLocation()) return false;
if (hasLocation()) {
if (!getLocation()
.equals(other.getLocation())) return false;
}
if (hasException() != other.hasException()) return false;
if (hasException()) {
if (!getException()
.equals(other.getException())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + LOGGER_FIELD_NUMBER;
hash = (53 * hash) + getLogger().hashCode();
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
hash = (37 * hash) + LEVEL_FIELD_NUMBER;
hash = (53 * hash) + level_;
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
if (hasLocation()) {
hash = (37 * hash) + LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getLocation().hashCode();
}
if (hasException()) {
hash = (37 * hash) + EXCEPTION_FIELD_NUMBER;
hash = (53 * hash) + getException().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.dimajix.flowman.kernel.proto.LogEvent parseFrom(
java.nio.ByteBuffer data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.LogEvent parseFrom(
java.nio.ByteBuffer data,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.LogEvent parseFrom(
com.dimajix.shaded.protobuf.ByteString data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.LogEvent parseFrom(
com.dimajix.shaded.protobuf.ByteString data,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.LogEvent parseFrom(byte[] data)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.dimajix.flowman.kernel.proto.LogEvent parseFrom(
byte[] data,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.LogEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.LogEvent parseFrom(
java.io.InputStream input,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.LogEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.LogEvent parseDelimitedFrom(
java.io.InputStream input,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.dimajix.flowman.kernel.proto.LogEvent parseFrom(
com.dimajix.shaded.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.dimajix.flowman.kernel.proto.LogEvent parseFrom(
com.dimajix.shaded.protobuf.CodedInputStream input,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.dimajix.flowman.kernel.proto.LogEvent prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.dimajix.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.dimajix.flowman.kernel.LogEvent}
*/
public static final class Builder extends
com.dimajix.shaded.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.dimajix.flowman.kernel.LogEvent)
com.dimajix.flowman.kernel.proto.LogEventOrBuilder {
public static final com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.dimajix.flowman.kernel.proto.LoggingProto.internal_static_com_dimajix_flowman_kernel_LogEvent_descriptor;
}
@java.lang.Override
protected com.dimajix.shaded.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.dimajix.flowman.kernel.proto.LoggingProto.internal_static_com_dimajix_flowman_kernel_LogEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.dimajix.flowman.kernel.proto.LogEvent.class, com.dimajix.flowman.kernel.proto.LogEvent.Builder.class);
}
// Construct using com.dimajix.flowman.kernel.proto.LogEvent.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.dimajix.shaded.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.dimajix.shaded.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTimestampFieldBuilder();
getLocationFieldBuilder();
getExceptionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
logger_ = "";
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
level_ = 0;
message_ = "";
location_ = null;
if (locationBuilder_ != null) {
locationBuilder_.dispose();
locationBuilder_ = null;
}
exception_ = null;
if (exceptionBuilder_ != null) {
exceptionBuilder_.dispose();
exceptionBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.dimajix.shaded.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.dimajix.flowman.kernel.proto.LoggingProto.internal_static_com_dimajix_flowman_kernel_LogEvent_descriptor;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.LogEvent getDefaultInstanceForType() {
return com.dimajix.flowman.kernel.proto.LogEvent.getDefaultInstance();
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.LogEvent build() {
com.dimajix.flowman.kernel.proto.LogEvent result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.LogEvent buildPartial() {
com.dimajix.flowman.kernel.proto.LogEvent result = new com.dimajix.flowman.kernel.proto.LogEvent(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.dimajix.flowman.kernel.proto.LogEvent result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.logger_ = logger_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.timestamp_ = timestampBuilder_ == null
? timestamp_
: timestampBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.level_ = level_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.message_ = message_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.location_ = locationBuilder_ == null
? location_
: locationBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.exception_ = exceptionBuilder_ == null
? exception_
: exceptionBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.dimajix.shaded.protobuf.Message other) {
if (other instanceof com.dimajix.flowman.kernel.proto.LogEvent) {
return mergeFrom((com.dimajix.flowman.kernel.proto.LogEvent)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.dimajix.flowman.kernel.proto.LogEvent other) {
if (other == com.dimajix.flowman.kernel.proto.LogEvent.getDefaultInstance()) return this;
if (!other.getLogger().isEmpty()) {
logger_ = other.logger_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
if (other.level_ != 0) {
setLevelValue(other.getLevelValue());
}
if (!other.getMessage().isEmpty()) {
message_ = other.message_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasLocation()) {
mergeLocation(other.getLocation());
}
if (other.hasException()) {
mergeException(other.getException());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.dimajix.shaded.protobuf.CodedInputStream input,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
logger_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getTimestampFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
level_ = input.readEnum();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
message_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getLocationFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getExceptionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.dimajix.shaded.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object logger_ = "";
/**
* string logger = 1;
* @return The logger.
*/
public java.lang.String getLogger() {
java.lang.Object ref = logger_;
if (!(ref instanceof java.lang.String)) {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logger_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string logger = 1;
* @return The bytes for logger.
*/
public com.dimajix.shaded.protobuf.ByteString
getLoggerBytes() {
java.lang.Object ref = logger_;
if (ref instanceof String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
logger_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
/**
* string logger = 1;
* @param value The logger to set.
* @return This builder for chaining.
*/
public Builder setLogger(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
logger_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string logger = 1;
* @return This builder for chaining.
*/
public Builder clearLogger() {
logger_ = getDefaultInstance().getLogger();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string logger = 1;
* @param value The bytes for logger to set.
* @return This builder for chaining.
*/
public Builder setLoggerBytes(
com.dimajix.shaded.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
logger_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.dimajix.flowman.kernel.proto.Timestamp timestamp_;
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Timestamp, com.dimajix.flowman.kernel.proto.Timestamp.Builder, com.dimajix.flowman.kernel.proto.TimestampOrBuilder> timestampBuilder_;
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 2;
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 2;
* @return The timestamp.
*/
public com.dimajix.flowman.kernel.proto.Timestamp getTimestamp() {
if (timestampBuilder_ == null) {
return timestamp_ == null ? com.dimajix.flowman.kernel.proto.Timestamp.getDefaultInstance() : timestamp_;
} else {
return timestampBuilder_.getMessage();
}
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 2;
*/
public Builder setTimestamp(com.dimajix.flowman.kernel.proto.Timestamp value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
} else {
timestampBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 2;
*/
public Builder setTimestamp(
com.dimajix.flowman.kernel.proto.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 2;
*/
public Builder mergeTimestamp(com.dimajix.flowman.kernel.proto.Timestamp value) {
if (timestampBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
timestamp_ != null &&
timestamp_ != com.dimajix.flowman.kernel.proto.Timestamp.getDefaultInstance()) {
getTimestampBuilder().mergeFrom(value);
} else {
timestamp_ = value;
}
} else {
timestampBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 2;
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000002);
timestamp_ = null;
if (timestampBuilder_ != null) {
timestampBuilder_.dispose();
timestampBuilder_ = null;
}
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 2;
*/
public com.dimajix.flowman.kernel.proto.Timestamp.Builder getTimestampBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 2;
*/
public com.dimajix.flowman.kernel.proto.TimestampOrBuilder getTimestampOrBuilder() {
if (timestampBuilder_ != null) {
return timestampBuilder_.getMessageOrBuilder();
} else {
return timestamp_ == null ?
com.dimajix.flowman.kernel.proto.Timestamp.getDefaultInstance() : timestamp_;
}
}
/**
* .com.dimajix.flowman.kernel.Timestamp timestamp = 2;
*/
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Timestamp, com.dimajix.flowman.kernel.proto.Timestamp.Builder, com.dimajix.flowman.kernel.proto.TimestampOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Timestamp, com.dimajix.flowman.kernel.proto.Timestamp.Builder, com.dimajix.flowman.kernel.proto.TimestampOrBuilder>(
getTimestamp(),
getParentForChildren(),
isClean());
timestamp_ = null;
}
return timestampBuilder_;
}
private int level_ = 0;
/**
* .com.dimajix.flowman.kernel.LogLevel level = 3;
* @return The enum numeric value on the wire for level.
*/
@java.lang.Override public int getLevelValue() {
return level_;
}
/**
* .com.dimajix.flowman.kernel.LogLevel level = 3;
* @param value The enum numeric value on the wire for level to set.
* @return This builder for chaining.
*/
public Builder setLevelValue(int value) {
level_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.LogLevel level = 3;
* @return The level.
*/
@java.lang.Override
public com.dimajix.flowman.kernel.proto.LogLevel getLevel() {
com.dimajix.flowman.kernel.proto.LogLevel result = com.dimajix.flowman.kernel.proto.LogLevel.forNumber(level_);
return result == null ? com.dimajix.flowman.kernel.proto.LogLevel.UNRECOGNIZED : result;
}
/**
* .com.dimajix.flowman.kernel.LogLevel level = 3;
* @param value The level to set.
* @return This builder for chaining.
*/
public Builder setLevel(com.dimajix.flowman.kernel.proto.LogLevel value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
level_ = value.getNumber();
onChanged();
return this;
}
/**
* .com.dimajix.flowman.kernel.LogLevel level = 3;
* @return This builder for chaining.
*/
public Builder clearLevel() {
bitField0_ = (bitField0_ & ~0x00000004);
level_ = 0;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
* string message = 4;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.dimajix.shaded.protobuf.ByteString bs =
(com.dimajix.shaded.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
message_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string message = 4;
* @return The bytes for message.
*/
public com.dimajix.shaded.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.dimajix.shaded.protobuf.ByteString b =
com.dimajix.shaded.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.dimajix.shaded.protobuf.ByteString) ref;
}
}
/**
* string message = 4;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
message_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* string message = 4;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* string message = 4;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.dimajix.shaded.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
message_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private com.dimajix.flowman.kernel.proto.LogLocation location_;
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.LogLocation, com.dimajix.flowman.kernel.proto.LogLocation.Builder, com.dimajix.flowman.kernel.proto.LogLocationOrBuilder> locationBuilder_;
/**
* optional .com.dimajix.flowman.kernel.LogLocation location = 5;
* @return Whether the location field is set.
*/
public boolean hasLocation() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .com.dimajix.flowman.kernel.LogLocation location = 5;
* @return The location.
*/
public com.dimajix.flowman.kernel.proto.LogLocation getLocation() {
if (locationBuilder_ == null) {
return location_ == null ? com.dimajix.flowman.kernel.proto.LogLocation.getDefaultInstance() : location_;
} else {
return locationBuilder_.getMessage();
}
}
/**
* optional .com.dimajix.flowman.kernel.LogLocation location = 5;
*/
public Builder setLocation(com.dimajix.flowman.kernel.proto.LogLocation value) {
if (locationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
location_ = value;
} else {
locationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional .com.dimajix.flowman.kernel.LogLocation location = 5;
*/
public Builder setLocation(
com.dimajix.flowman.kernel.proto.LogLocation.Builder builderForValue) {
if (locationBuilder_ == null) {
location_ = builderForValue.build();
} else {
locationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional .com.dimajix.flowman.kernel.LogLocation location = 5;
*/
public Builder mergeLocation(com.dimajix.flowman.kernel.proto.LogLocation value) {
if (locationBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
location_ != null &&
location_ != com.dimajix.flowman.kernel.proto.LogLocation.getDefaultInstance()) {
getLocationBuilder().mergeFrom(value);
} else {
location_ = value;
}
} else {
locationBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional .com.dimajix.flowman.kernel.LogLocation location = 5;
*/
public Builder clearLocation() {
bitField0_ = (bitField0_ & ~0x00000010);
location_ = null;
if (locationBuilder_ != null) {
locationBuilder_.dispose();
locationBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .com.dimajix.flowman.kernel.LogLocation location = 5;
*/
public com.dimajix.flowman.kernel.proto.LogLocation.Builder getLocationBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getLocationFieldBuilder().getBuilder();
}
/**
* optional .com.dimajix.flowman.kernel.LogLocation location = 5;
*/
public com.dimajix.flowman.kernel.proto.LogLocationOrBuilder getLocationOrBuilder() {
if (locationBuilder_ != null) {
return locationBuilder_.getMessageOrBuilder();
} else {
return location_ == null ?
com.dimajix.flowman.kernel.proto.LogLocation.getDefaultInstance() : location_;
}
}
/**
* optional .com.dimajix.flowman.kernel.LogLocation location = 5;
*/
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.LogLocation, com.dimajix.flowman.kernel.proto.LogLocation.Builder, com.dimajix.flowman.kernel.proto.LogLocationOrBuilder>
getLocationFieldBuilder() {
if (locationBuilder_ == null) {
locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.LogLocation, com.dimajix.flowman.kernel.proto.LogLocation.Builder, com.dimajix.flowman.kernel.proto.LogLocationOrBuilder>(
getLocation(),
getParentForChildren(),
isClean());
location_ = null;
}
return locationBuilder_;
}
private com.dimajix.flowman.kernel.proto.Exception exception_;
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Exception, com.dimajix.flowman.kernel.proto.Exception.Builder, com.dimajix.flowman.kernel.proto.ExceptionOrBuilder> exceptionBuilder_;
/**
* optional .com.dimajix.flowman.kernel.Exception exception = 6;
* @return Whether the exception field is set.
*/
public boolean hasException() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .com.dimajix.flowman.kernel.Exception exception = 6;
* @return The exception.
*/
public com.dimajix.flowman.kernel.proto.Exception getException() {
if (exceptionBuilder_ == null) {
return exception_ == null ? com.dimajix.flowman.kernel.proto.Exception.getDefaultInstance() : exception_;
} else {
return exceptionBuilder_.getMessage();
}
}
/**
* optional .com.dimajix.flowman.kernel.Exception exception = 6;
*/
public Builder setException(com.dimajix.flowman.kernel.proto.Exception value) {
if (exceptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exception_ = value;
} else {
exceptionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* optional .com.dimajix.flowman.kernel.Exception exception = 6;
*/
public Builder setException(
com.dimajix.flowman.kernel.proto.Exception.Builder builderForValue) {
if (exceptionBuilder_ == null) {
exception_ = builderForValue.build();
} else {
exceptionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* optional .com.dimajix.flowman.kernel.Exception exception = 6;
*/
public Builder mergeException(com.dimajix.flowman.kernel.proto.Exception value) {
if (exceptionBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
exception_ != null &&
exception_ != com.dimajix.flowman.kernel.proto.Exception.getDefaultInstance()) {
getExceptionBuilder().mergeFrom(value);
} else {
exception_ = value;
}
} else {
exceptionBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* optional .com.dimajix.flowman.kernel.Exception exception = 6;
*/
public Builder clearException() {
bitField0_ = (bitField0_ & ~0x00000020);
exception_ = null;
if (exceptionBuilder_ != null) {
exceptionBuilder_.dispose();
exceptionBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .com.dimajix.flowman.kernel.Exception exception = 6;
*/
public com.dimajix.flowman.kernel.proto.Exception.Builder getExceptionBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getExceptionFieldBuilder().getBuilder();
}
/**
* optional .com.dimajix.flowman.kernel.Exception exception = 6;
*/
public com.dimajix.flowman.kernel.proto.ExceptionOrBuilder getExceptionOrBuilder() {
if (exceptionBuilder_ != null) {
return exceptionBuilder_.getMessageOrBuilder();
} else {
return exception_ == null ?
com.dimajix.flowman.kernel.proto.Exception.getDefaultInstance() : exception_;
}
}
/**
* optional .com.dimajix.flowman.kernel.Exception exception = 6;
*/
private com.dimajix.shaded.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Exception, com.dimajix.flowman.kernel.proto.Exception.Builder, com.dimajix.flowman.kernel.proto.ExceptionOrBuilder>
getExceptionFieldBuilder() {
if (exceptionBuilder_ == null) {
exceptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.dimajix.flowman.kernel.proto.Exception, com.dimajix.flowman.kernel.proto.Exception.Builder, com.dimajix.flowman.kernel.proto.ExceptionOrBuilder>(
getException(),
getParentForChildren(),
isClean());
exception_ = null;
}
return exceptionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.dimajix.shaded.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.dimajix.shaded.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.dimajix.flowman.kernel.LogEvent)
}
// @@protoc_insertion_point(class_scope:com.dimajix.flowman.kernel.LogEvent)
private static final com.dimajix.flowman.kernel.proto.LogEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.dimajix.flowman.kernel.proto.LogEvent();
}
public static com.dimajix.flowman.kernel.proto.LogEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.dimajix.shaded.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LogEvent parsePartialFrom(
com.dimajix.shaded.protobuf.CodedInputStream input,
com.dimajix.shaded.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.dimajix.shaded.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.dimajix.shaded.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.dimajix.shaded.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.dimajix.shaded.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.dimajix.shaded.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.dimajix.flowman.kernel.proto.LogEvent getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy