com.expedia.open.tracing.Log Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: span.proto
package com.expedia.open.tracing;
/**
*
* Log is a timestamped event with a set of tags.
*
*
* Protobuf type {@code Log}
*/
public final class Log extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Log)
LogOrBuilder {
// Use Log.newBuilder() to construct.
private Log(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Log() {
timestamp_ = 0L;
fields_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private Log(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
fields_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
fields_.add(
input.readMessage(com.expedia.open.tracing.Tag.parser(), extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.expedia.open.tracing.SpanOuterClass.internal_static_Log_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.expedia.open.tracing.SpanOuterClass.internal_static_Log_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.expedia.open.tracing.Log.class, com.expedia.open.tracing.Log.Builder.class);
}
private int bitField0_;
public static final int TIMESTAMP_FIELD_NUMBER = 1;
private long timestamp_;
/**
*
* timestamp in microseconds since epoch
*
*
* optional int64 timestamp = 1;
*/
public long getTimestamp() {
return timestamp_;
}
public static final int FIELDS_FIELD_NUMBER = 2;
private java.util.List fields_;
/**
* repeated .Tag fields = 2;
*/
public java.util.List getFieldsList() {
return fields_;
}
/**
* repeated .Tag fields = 2;
*/
public java.util.List extends com.expedia.open.tracing.TagOrBuilder>
getFieldsOrBuilderList() {
return fields_;
}
/**
* repeated .Tag fields = 2;
*/
public int getFieldsCount() {
return fields_.size();
}
/**
* repeated .Tag fields = 2;
*/
public com.expedia.open.tracing.Tag getFields(int index) {
return fields_.get(index);
}
/**
* repeated .Tag fields = 2;
*/
public com.expedia.open.tracing.TagOrBuilder getFieldsOrBuilder(
int index) {
return fields_.get(index);
}
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(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (timestamp_ != 0L) {
output.writeInt64(1, timestamp_);
}
for (int i = 0; i < fields_.size(); i++) {
output.writeMessage(2, fields_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, timestamp_);
}
for (int i = 0; i < fields_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, fields_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.expedia.open.tracing.Log)) {
return super.equals(obj);
}
com.expedia.open.tracing.Log other = (com.expedia.open.tracing.Log) obj;
boolean result = true;
result = result && (getTimestamp()
== other.getTimestamp());
result = result && getFieldsList()
.equals(other.getFieldsList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptorForType().hashCode();
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
if (getFieldsCount() > 0) {
hash = (37 * hash) + FIELDS_FIELD_NUMBER;
hash = (53 * hash) + getFieldsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.expedia.open.tracing.Log parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.expedia.open.tracing.Log parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.expedia.open.tracing.Log parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.expedia.open.tracing.Log parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.expedia.open.tracing.Log parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.expedia.open.tracing.Log parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.expedia.open.tracing.Log parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.expedia.open.tracing.Log parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.expedia.open.tracing.Log parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.expedia.open.tracing.Log parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.expedia.open.tracing.Log 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(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Log is a timestamped event with a set of tags.
*
*
* Protobuf type {@code Log}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Log)
com.expedia.open.tracing.LogOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.expedia.open.tracing.SpanOuterClass.internal_static_Log_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.expedia.open.tracing.SpanOuterClass.internal_static_Log_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.expedia.open.tracing.Log.class, com.expedia.open.tracing.Log.Builder.class);
}
// Construct using com.expedia.open.tracing.Log.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFieldsFieldBuilder();
}
}
public Builder clear() {
super.clear();
timestamp_ = 0L;
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
fieldsBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.expedia.open.tracing.SpanOuterClass.internal_static_Log_descriptor;
}
public com.expedia.open.tracing.Log getDefaultInstanceForType() {
return com.expedia.open.tracing.Log.getDefaultInstance();
}
public com.expedia.open.tracing.Log build() {
com.expedia.open.tracing.Log result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.expedia.open.tracing.Log buildPartial() {
com.expedia.open.tracing.Log result = new com.expedia.open.tracing.Log(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.timestamp_ = timestamp_;
if (fieldsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
fields_ = java.util.Collections.unmodifiableList(fields_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.fields_ = fields_;
} else {
result.fields_ = fieldsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.expedia.open.tracing.Log) {
return mergeFrom((com.expedia.open.tracing.Log)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.expedia.open.tracing.Log other) {
if (other == com.expedia.open.tracing.Log.getDefaultInstance()) return this;
if (other.getTimestamp() != 0L) {
setTimestamp(other.getTimestamp());
}
if (fieldsBuilder_ == null) {
if (!other.fields_.isEmpty()) {
if (fields_.isEmpty()) {
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFieldsIsMutable();
fields_.addAll(other.fields_);
}
onChanged();
}
} else {
if (!other.fields_.isEmpty()) {
if (fieldsBuilder_.isEmpty()) {
fieldsBuilder_.dispose();
fieldsBuilder_ = null;
fields_ = other.fields_;
bitField0_ = (bitField0_ & ~0x00000002);
fieldsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFieldsFieldBuilder() : null;
} else {
fieldsBuilder_.addAllMessages(other.fields_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.expedia.open.tracing.Log parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.expedia.open.tracing.Log) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long timestamp_ ;
/**
*
* timestamp in microseconds since epoch
*
*
* optional int64 timestamp = 1;
*/
public long getTimestamp() {
return timestamp_;
}
/**
*
* timestamp in microseconds since epoch
*
*
* optional int64 timestamp = 1;
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
*
* timestamp in microseconds since epoch
*
*
* optional int64 timestamp = 1;
*/
public Builder clearTimestamp() {
timestamp_ = 0L;
onChanged();
return this;
}
private java.util.List fields_ =
java.util.Collections.emptyList();
private void ensureFieldsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
fields_ = new java.util.ArrayList(fields_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.expedia.open.tracing.Tag, com.expedia.open.tracing.Tag.Builder, com.expedia.open.tracing.TagOrBuilder> fieldsBuilder_;
/**
* repeated .Tag fields = 2;
*/
public java.util.List getFieldsList() {
if (fieldsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fields_);
} else {
return fieldsBuilder_.getMessageList();
}
}
/**
* repeated .Tag fields = 2;
*/
public int getFieldsCount() {
if (fieldsBuilder_ == null) {
return fields_.size();
} else {
return fieldsBuilder_.getCount();
}
}
/**
* repeated .Tag fields = 2;
*/
public com.expedia.open.tracing.Tag getFields(int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index);
} else {
return fieldsBuilder_.getMessage(index);
}
}
/**
* repeated .Tag fields = 2;
*/
public Builder setFields(
int index, com.expedia.open.tracing.Tag value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.set(index, value);
onChanged();
} else {
fieldsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Tag fields = 2;
*/
public Builder setFields(
int index, com.expedia.open.tracing.Tag.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.set(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Tag fields = 2;
*/
public Builder addFields(com.expedia.open.tracing.Tag value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(value);
onChanged();
} else {
fieldsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Tag fields = 2;
*/
public Builder addFields(
int index, com.expedia.open.tracing.Tag value) {
if (fieldsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldsIsMutable();
fields_.add(index, value);
onChanged();
} else {
fieldsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Tag fields = 2;
*/
public Builder addFields(
com.expedia.open.tracing.Tag.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Tag fields = 2;
*/
public Builder addFields(
int index, com.expedia.open.tracing.Tag.Builder builderForValue) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.add(index, builderForValue.build());
onChanged();
} else {
fieldsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Tag fields = 2;
*/
public Builder addAllFields(
java.lang.Iterable extends com.expedia.open.tracing.Tag> values) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fields_);
onChanged();
} else {
fieldsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Tag fields = 2;
*/
public Builder clearFields() {
if (fieldsBuilder_ == null) {
fields_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
fieldsBuilder_.clear();
}
return this;
}
/**
* repeated .Tag fields = 2;
*/
public Builder removeFields(int index) {
if (fieldsBuilder_ == null) {
ensureFieldsIsMutable();
fields_.remove(index);
onChanged();
} else {
fieldsBuilder_.remove(index);
}
return this;
}
/**
* repeated .Tag fields = 2;
*/
public com.expedia.open.tracing.Tag.Builder getFieldsBuilder(
int index) {
return getFieldsFieldBuilder().getBuilder(index);
}
/**
* repeated .Tag fields = 2;
*/
public com.expedia.open.tracing.TagOrBuilder getFieldsOrBuilder(
int index) {
if (fieldsBuilder_ == null) {
return fields_.get(index); } else {
return fieldsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Tag fields = 2;
*/
public java.util.List extends com.expedia.open.tracing.TagOrBuilder>
getFieldsOrBuilderList() {
if (fieldsBuilder_ != null) {
return fieldsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fields_);
}
}
/**
* repeated .Tag fields = 2;
*/
public com.expedia.open.tracing.Tag.Builder addFieldsBuilder() {
return getFieldsFieldBuilder().addBuilder(
com.expedia.open.tracing.Tag.getDefaultInstance());
}
/**
* repeated .Tag fields = 2;
*/
public com.expedia.open.tracing.Tag.Builder addFieldsBuilder(
int index) {
return getFieldsFieldBuilder().addBuilder(
index, com.expedia.open.tracing.Tag.getDefaultInstance());
}
/**
* repeated .Tag fields = 2;
*/
public java.util.List
getFieldsBuilderList() {
return getFieldsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.expedia.open.tracing.Tag, com.expedia.open.tracing.Tag.Builder, com.expedia.open.tracing.TagOrBuilder>
getFieldsFieldBuilder() {
if (fieldsBuilder_ == null) {
fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.expedia.open.tracing.Tag, com.expedia.open.tracing.Tag.Builder, com.expedia.open.tracing.TagOrBuilder>(
fields_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
fields_ = null;
}
return fieldsBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:Log)
}
// @@protoc_insertion_point(class_scope:Log)
private static final com.expedia.open.tracing.Log DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.expedia.open.tracing.Log();
}
public static com.expedia.open.tracing.Log getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public Log parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Log(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.expedia.open.tracing.Log getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy