com.google.apphosting.base.protos.TraceEvents Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: trace_events.proto
package com.google.apphosting.base.protos;
public final class TraceEvents {
private TraceEvents() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface TraceEventsProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cloud_trace.TraceEventsProto)
com.google.protobuf.MessageOrBuilder {
/**
*
* The project id this event is associated with.
*
*
* optional int64 project_id = 1;
* @return Whether the projectId field is set.
*/
boolean hasProjectId();
/**
*
* The project id this event is associated with.
*
*
* optional int64 project_id = 1;
* @return The projectId.
*/
long getProjectId();
/**
*
* The id of the trace with which this event is associated.
*
*
* optional .cloud_trace.TraceIdProto trace_id = 2;
* @return Whether the traceId field is set.
*/
boolean hasTraceId();
/**
*
* The id of the trace with which this event is associated.
*
*
* optional .cloud_trace.TraceIdProto trace_id = 2;
* @return The traceId.
*/
com.google.apphosting.base.protos.TraceId.TraceIdProto getTraceId();
/**
*
* The id of the trace with which this event is associated.
*
*
* optional .cloud_trace.TraceIdProto trace_id = 2;
*/
com.google.apphosting.base.protos.TraceId.TraceIdProtoOrBuilder getTraceIdOrBuilder();
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
java.util.List
getDictionaryEntriesList();
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry getDictionaryEntries(int index);
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
int getDictionaryEntriesCount();
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
java.util.List extends com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntryOrBuilder>
getDictionaryEntriesOrBuilderList();
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntryOrBuilder getDictionaryEntriesOrBuilder(
int index);
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
java.util.List
getSpanEventsList();
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
com.google.apphosting.base.protos.TraceEvents.SpanEventsProto getSpanEvents(int index);
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
int getSpanEventsCount();
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
java.util.List extends com.google.apphosting.base.protos.TraceEvents.SpanEventsProtoOrBuilder>
getSpanEventsOrBuilderList();
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
com.google.apphosting.base.protos.TraceEvents.SpanEventsProtoOrBuilder getSpanEventsOrBuilder(
int index);
}
/**
*
* This message holds the data for one or more discrete events for a single
* trace.
* Next id: 7.
*
*
* Protobuf type {@code cloud_trace.TraceEventsProto}
*/
public static final class TraceEventsProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cloud_trace.TraceEventsProto)
TraceEventsProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TraceEventsProto.newBuilder() to construct.
private TraceEventsProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TraceEventsProto() {
dictionaryEntries_ = java.util.Collections.emptyList();
spanEvents_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TraceEventsProto();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_TraceEventsProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_TraceEventsProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.class, com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.Builder.class);
}
private int bitField0_;
public static final int PROJECT_ID_FIELD_NUMBER = 1;
private long projectId_ = 0L;
/**
*
* The project id this event is associated with.
*
*
* optional int64 project_id = 1;
* @return Whether the projectId field is set.
*/
@java.lang.Override
public boolean hasProjectId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The project id this event is associated with.
*
*
* optional int64 project_id = 1;
* @return The projectId.
*/
@java.lang.Override
public long getProjectId() {
return projectId_;
}
public static final int TRACE_ID_FIELD_NUMBER = 2;
private com.google.apphosting.base.protos.TraceId.TraceIdProto traceId_;
/**
*
* The id of the trace with which this event is associated.
*
*
* optional .cloud_trace.TraceIdProto trace_id = 2;
* @return Whether the traceId field is set.
*/
@java.lang.Override
public boolean hasTraceId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The id of the trace with which this event is associated.
*
*
* optional .cloud_trace.TraceIdProto trace_id = 2;
* @return The traceId.
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceId.TraceIdProto getTraceId() {
return traceId_ == null ? com.google.apphosting.base.protos.TraceId.TraceIdProto.getDefaultInstance() : traceId_;
}
/**
*
* The id of the trace with which this event is associated.
*
*
* optional .cloud_trace.TraceIdProto trace_id = 2;
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceId.TraceIdProtoOrBuilder getTraceIdOrBuilder() {
return traceId_ == null ? com.google.apphosting.base.protos.TraceId.TraceIdProto.getDefaultInstance() : traceId_;
}
public static final int DICTIONARY_ENTRIES_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List dictionaryEntries_;
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
@java.lang.Override
public java.util.List getDictionaryEntriesList() {
return dictionaryEntries_;
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
@java.lang.Override
public java.util.List extends com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntryOrBuilder>
getDictionaryEntriesOrBuilderList() {
return dictionaryEntries_;
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
@java.lang.Override
public int getDictionaryEntriesCount() {
return dictionaryEntries_.size();
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry getDictionaryEntries(int index) {
return dictionaryEntries_.get(index);
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntryOrBuilder getDictionaryEntriesOrBuilder(
int index) {
return dictionaryEntries_.get(index);
}
public static final int SPAN_EVENTS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List spanEvents_;
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
@java.lang.Override
public java.util.List getSpanEventsList() {
return spanEvents_;
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
@java.lang.Override
public java.util.List extends com.google.apphosting.base.protos.TraceEvents.SpanEventsProtoOrBuilder>
getSpanEventsOrBuilderList() {
return spanEvents_;
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
@java.lang.Override
public int getSpanEventsCount() {
return spanEvents_.size();
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.SpanEventsProto getSpanEvents(int index) {
return spanEvents_.get(index);
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.SpanEventsProtoOrBuilder getSpanEventsOrBuilder(
int index) {
return spanEvents_.get(index);
}
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.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, projectId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getTraceId());
}
for (int i = 0; i < spanEvents_.size(); i++) {
output.writeMessage(4, spanEvents_.get(i));
}
for (int i = 0; i < dictionaryEntries_.size(); i++) {
output.writeMessage(6, dictionaryEntries_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, projectId_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTraceId());
}
for (int i = 0; i < spanEvents_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, spanEvents_.get(i));
}
for (int i = 0; i < dictionaryEntries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, dictionaryEntries_.get(i));
}
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.google.apphosting.base.protos.TraceEvents.TraceEventsProto)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.TraceEvents.TraceEventsProto other = (com.google.apphosting.base.protos.TraceEvents.TraceEventsProto) obj;
if (hasProjectId() != other.hasProjectId()) return false;
if (hasProjectId()) {
if (getProjectId()
!= other.getProjectId()) return false;
}
if (hasTraceId() != other.hasTraceId()) return false;
if (hasTraceId()) {
if (!getTraceId()
.equals(other.getTraceId())) return false;
}
if (!getDictionaryEntriesList()
.equals(other.getDictionaryEntriesList())) return false;
if (!getSpanEventsList()
.equals(other.getSpanEventsList())) 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();
if (hasProjectId()) {
hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getProjectId());
}
if (hasTraceId()) {
hash = (37 * hash) + TRACE_ID_FIELD_NUMBER;
hash = (53 * hash) + getTraceId().hashCode();
}
if (getDictionaryEntriesCount() > 0) {
hash = (37 * hash) + DICTIONARY_ENTRIES_FIELD_NUMBER;
hash = (53 * hash) + getDictionaryEntriesList().hashCode();
}
if (getSpanEventsCount() > 0) {
hash = (37 * hash) + SPAN_EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getSpanEventsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsProto 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.google.apphosting.base.protos.TraceEvents.TraceEventsProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsProto 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.google.apphosting.base.protos.TraceEvents.TraceEventsProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.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.google.apphosting.base.protos.TraceEvents.TraceEventsProto 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.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* This message holds the data for one or more discrete events for a single
* trace.
* Next id: 7.
*
*
* Protobuf type {@code cloud_trace.TraceEventsProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cloud_trace.TraceEventsProto)
com.google.apphosting.base.protos.TraceEvents.TraceEventsProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_TraceEventsProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_TraceEventsProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.class, com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.Builder.class);
}
// Construct using com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTraceIdFieldBuilder();
getDictionaryEntriesFieldBuilder();
getSpanEventsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
projectId_ = 0L;
traceId_ = null;
if (traceIdBuilder_ != null) {
traceIdBuilder_.dispose();
traceIdBuilder_ = null;
}
if (dictionaryEntriesBuilder_ == null) {
dictionaryEntries_ = java.util.Collections.emptyList();
} else {
dictionaryEntries_ = null;
dictionaryEntriesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (spanEventsBuilder_ == null) {
spanEvents_ = java.util.Collections.emptyList();
} else {
spanEvents_ = null;
spanEventsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_TraceEventsProto_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.TraceEventsProto getDefaultInstanceForType() {
return com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.TraceEventsProto build() {
com.google.apphosting.base.protos.TraceEvents.TraceEventsProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.TraceEventsProto buildPartial() {
com.google.apphosting.base.protos.TraceEvents.TraceEventsProto result = new com.google.apphosting.base.protos.TraceEvents.TraceEventsProto(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apphosting.base.protos.TraceEvents.TraceEventsProto result) {
if (dictionaryEntriesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
dictionaryEntries_ = java.util.Collections.unmodifiableList(dictionaryEntries_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.dictionaryEntries_ = dictionaryEntries_;
} else {
result.dictionaryEntries_ = dictionaryEntriesBuilder_.build();
}
if (spanEventsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
spanEvents_ = java.util.Collections.unmodifiableList(spanEvents_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.spanEvents_ = spanEvents_;
} else {
result.spanEvents_ = spanEventsBuilder_.build();
}
}
private void buildPartial0(com.google.apphosting.base.protos.TraceEvents.TraceEventsProto result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.projectId_ = projectId_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.traceId_ = traceIdBuilder_ == null
? traceId_
: traceIdBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.base.protos.TraceEvents.TraceEventsProto) {
return mergeFrom((com.google.apphosting.base.protos.TraceEvents.TraceEventsProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.TraceEvents.TraceEventsProto other) {
if (other == com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.getDefaultInstance()) return this;
if (other.hasProjectId()) {
setProjectId(other.getProjectId());
}
if (other.hasTraceId()) {
mergeTraceId(other.getTraceId());
}
if (dictionaryEntriesBuilder_ == null) {
if (!other.dictionaryEntries_.isEmpty()) {
if (dictionaryEntries_.isEmpty()) {
dictionaryEntries_ = other.dictionaryEntries_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureDictionaryEntriesIsMutable();
dictionaryEntries_.addAll(other.dictionaryEntries_);
}
onChanged();
}
} else {
if (!other.dictionaryEntries_.isEmpty()) {
if (dictionaryEntriesBuilder_.isEmpty()) {
dictionaryEntriesBuilder_.dispose();
dictionaryEntriesBuilder_ = null;
dictionaryEntries_ = other.dictionaryEntries_;
bitField0_ = (bitField0_ & ~0x00000004);
dictionaryEntriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDictionaryEntriesFieldBuilder() : null;
} else {
dictionaryEntriesBuilder_.addAllMessages(other.dictionaryEntries_);
}
}
}
if (spanEventsBuilder_ == null) {
if (!other.spanEvents_.isEmpty()) {
if (spanEvents_.isEmpty()) {
spanEvents_ = other.spanEvents_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureSpanEventsIsMutable();
spanEvents_.addAll(other.spanEvents_);
}
onChanged();
}
} else {
if (!other.spanEvents_.isEmpty()) {
if (spanEventsBuilder_.isEmpty()) {
spanEventsBuilder_.dispose();
spanEventsBuilder_ = null;
spanEvents_ = other.spanEvents_;
bitField0_ = (bitField0_ & ~0x00000008);
spanEventsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSpanEventsFieldBuilder() : null;
} else {
spanEventsBuilder_.addAllMessages(other.spanEvents_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.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 8: {
projectId_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getTraceIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 34: {
com.google.apphosting.base.protos.TraceEvents.SpanEventsProto m =
input.readMessage(
com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.PARSER,
extensionRegistry);
if (spanEventsBuilder_ == null) {
ensureSpanEventsIsMutable();
spanEvents_.add(m);
} else {
spanEventsBuilder_.addMessage(m);
}
break;
} // case 34
case 50: {
com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry m =
input.readMessage(
com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.PARSER,
extensionRegistry);
if (dictionaryEntriesBuilder_ == null) {
ensureDictionaryEntriesIsMutable();
dictionaryEntries_.add(m);
} else {
dictionaryEntriesBuilder_.addMessage(m);
}
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long projectId_ ;
/**
*
* The project id this event is associated with.
*
*
* optional int64 project_id = 1;
* @return Whether the projectId field is set.
*/
@java.lang.Override
public boolean hasProjectId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The project id this event is associated with.
*
*
* optional int64 project_id = 1;
* @return The projectId.
*/
@java.lang.Override
public long getProjectId() {
return projectId_;
}
/**
*
* The project id this event is associated with.
*
*
* optional int64 project_id = 1;
* @param value The projectId to set.
* @return This builder for chaining.
*/
public Builder setProjectId(long value) {
projectId_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The project id this event is associated with.
*
*
* optional int64 project_id = 1;
* @return This builder for chaining.
*/
public Builder clearProjectId() {
bitField0_ = (bitField0_ & ~0x00000001);
projectId_ = 0L;
onChanged();
return this;
}
private com.google.apphosting.base.protos.TraceId.TraceIdProto traceId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.TraceId.TraceIdProto, com.google.apphosting.base.protos.TraceId.TraceIdProto.Builder, com.google.apphosting.base.protos.TraceId.TraceIdProtoOrBuilder> traceIdBuilder_;
/**
*
* The id of the trace with which this event is associated.
*
*
* optional .cloud_trace.TraceIdProto trace_id = 2;
* @return Whether the traceId field is set.
*/
public boolean hasTraceId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The id of the trace with which this event is associated.
*
*
* optional .cloud_trace.TraceIdProto trace_id = 2;
* @return The traceId.
*/
public com.google.apphosting.base.protos.TraceId.TraceIdProto getTraceId() {
if (traceIdBuilder_ == null) {
return traceId_ == null ? com.google.apphosting.base.protos.TraceId.TraceIdProto.getDefaultInstance() : traceId_;
} else {
return traceIdBuilder_.getMessage();
}
}
/**
*
* The id of the trace with which this event is associated.
*
*
* optional .cloud_trace.TraceIdProto trace_id = 2;
*/
public Builder setTraceId(com.google.apphosting.base.protos.TraceId.TraceIdProto value) {
if (traceIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
traceId_ = value;
} else {
traceIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The id of the trace with which this event is associated.
*
*
* optional .cloud_trace.TraceIdProto trace_id = 2;
*/
public Builder setTraceId(
com.google.apphosting.base.protos.TraceId.TraceIdProto.Builder builderForValue) {
if (traceIdBuilder_ == null) {
traceId_ = builderForValue.build();
} else {
traceIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The id of the trace with which this event is associated.
*
*
* optional .cloud_trace.TraceIdProto trace_id = 2;
*/
public Builder mergeTraceId(com.google.apphosting.base.protos.TraceId.TraceIdProto value) {
if (traceIdBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
traceId_ != null &&
traceId_ != com.google.apphosting.base.protos.TraceId.TraceIdProto.getDefaultInstance()) {
getTraceIdBuilder().mergeFrom(value);
} else {
traceId_ = value;
}
} else {
traceIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The id of the trace with which this event is associated.
*
*
* optional .cloud_trace.TraceIdProto trace_id = 2;
*/
public Builder clearTraceId() {
bitField0_ = (bitField0_ & ~0x00000002);
traceId_ = null;
if (traceIdBuilder_ != null) {
traceIdBuilder_.dispose();
traceIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The id of the trace with which this event is associated.
*
*
* optional .cloud_trace.TraceIdProto trace_id = 2;
*/
public com.google.apphosting.base.protos.TraceId.TraceIdProto.Builder getTraceIdBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTraceIdFieldBuilder().getBuilder();
}
/**
*
* The id of the trace with which this event is associated.
*
*
* optional .cloud_trace.TraceIdProto trace_id = 2;
*/
public com.google.apphosting.base.protos.TraceId.TraceIdProtoOrBuilder getTraceIdOrBuilder() {
if (traceIdBuilder_ != null) {
return traceIdBuilder_.getMessageOrBuilder();
} else {
return traceId_ == null ?
com.google.apphosting.base.protos.TraceId.TraceIdProto.getDefaultInstance() : traceId_;
}
}
/**
*
* The id of the trace with which this event is associated.
*
*
* optional .cloud_trace.TraceIdProto trace_id = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.TraceId.TraceIdProto, com.google.apphosting.base.protos.TraceId.TraceIdProto.Builder, com.google.apphosting.base.protos.TraceId.TraceIdProtoOrBuilder>
getTraceIdFieldBuilder() {
if (traceIdBuilder_ == null) {
traceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.TraceId.TraceIdProto, com.google.apphosting.base.protos.TraceId.TraceIdProto.Builder, com.google.apphosting.base.protos.TraceId.TraceIdProtoOrBuilder>(
getTraceId(),
getParentForChildren(),
isClean());
traceId_ = null;
}
return traceIdBuilder_;
}
private java.util.List dictionaryEntries_ =
java.util.Collections.emptyList();
private void ensureDictionaryEntriesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
dictionaryEntries_ = new java.util.ArrayList(dictionaryEntries_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry, com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.Builder, com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntryOrBuilder> dictionaryEntriesBuilder_;
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public java.util.List getDictionaryEntriesList() {
if (dictionaryEntriesBuilder_ == null) {
return java.util.Collections.unmodifiableList(dictionaryEntries_);
} else {
return dictionaryEntriesBuilder_.getMessageList();
}
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public int getDictionaryEntriesCount() {
if (dictionaryEntriesBuilder_ == null) {
return dictionaryEntries_.size();
} else {
return dictionaryEntriesBuilder_.getCount();
}
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry getDictionaryEntries(int index) {
if (dictionaryEntriesBuilder_ == null) {
return dictionaryEntries_.get(index);
} else {
return dictionaryEntriesBuilder_.getMessage(index);
}
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public Builder setDictionaryEntries(
int index, com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry value) {
if (dictionaryEntriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDictionaryEntriesIsMutable();
dictionaryEntries_.set(index, value);
onChanged();
} else {
dictionaryEntriesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public Builder setDictionaryEntries(
int index, com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.Builder builderForValue) {
if (dictionaryEntriesBuilder_ == null) {
ensureDictionaryEntriesIsMutable();
dictionaryEntries_.set(index, builderForValue.build());
onChanged();
} else {
dictionaryEntriesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public Builder addDictionaryEntries(com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry value) {
if (dictionaryEntriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDictionaryEntriesIsMutable();
dictionaryEntries_.add(value);
onChanged();
} else {
dictionaryEntriesBuilder_.addMessage(value);
}
return this;
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public Builder addDictionaryEntries(
int index, com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry value) {
if (dictionaryEntriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDictionaryEntriesIsMutable();
dictionaryEntries_.add(index, value);
onChanged();
} else {
dictionaryEntriesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public Builder addDictionaryEntries(
com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.Builder builderForValue) {
if (dictionaryEntriesBuilder_ == null) {
ensureDictionaryEntriesIsMutable();
dictionaryEntries_.add(builderForValue.build());
onChanged();
} else {
dictionaryEntriesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public Builder addDictionaryEntries(
int index, com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.Builder builderForValue) {
if (dictionaryEntriesBuilder_ == null) {
ensureDictionaryEntriesIsMutable();
dictionaryEntries_.add(index, builderForValue.build());
onChanged();
} else {
dictionaryEntriesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public Builder addAllDictionaryEntries(
java.lang.Iterable extends com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry> values) {
if (dictionaryEntriesBuilder_ == null) {
ensureDictionaryEntriesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, dictionaryEntries_);
onChanged();
} else {
dictionaryEntriesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public Builder clearDictionaryEntries() {
if (dictionaryEntriesBuilder_ == null) {
dictionaryEntries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
dictionaryEntriesBuilder_.clear();
}
return this;
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public Builder removeDictionaryEntries(int index) {
if (dictionaryEntriesBuilder_ == null) {
ensureDictionaryEntriesIsMutable();
dictionaryEntries_.remove(index);
onChanged();
} else {
dictionaryEntriesBuilder_.remove(index);
}
return this;
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.Builder getDictionaryEntriesBuilder(
int index) {
return getDictionaryEntriesFieldBuilder().getBuilder(index);
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntryOrBuilder getDictionaryEntriesOrBuilder(
int index) {
if (dictionaryEntriesBuilder_ == null) {
return dictionaryEntries_.get(index); } else {
return dictionaryEntriesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public java.util.List extends com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntryOrBuilder>
getDictionaryEntriesOrBuilderList() {
if (dictionaryEntriesBuilder_ != null) {
return dictionaryEntriesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dictionaryEntries_);
}
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.Builder addDictionaryEntriesBuilder() {
return getDictionaryEntriesFieldBuilder().addBuilder(
com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.getDefaultInstance());
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.Builder addDictionaryEntriesBuilder(
int index) {
return getDictionaryEntriesFieldBuilder().addBuilder(
index, com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.getDefaultInstance());
}
/**
*
* A map from integer keys to label values. This is used for dictionary based
* compression of span annotations. Per span annotations can store just
* the hash IDs. The corresponding values are stored in this dictionary.
* In this way, a unique value appear only once per trace instead of
* repeatedly in multiple span events.
* This field is populated by both Java and Python (NaCl based) runtime.
* NaCl proto compiler does not support map and oneof. So we have to use
* the repeated [dictionary_entries] field instead of a map field to store
* the dictionary.
*
*
* repeated .cloud_trace.EventDictionaryEntry dictionary_entries = 6;
*/
public java.util.List
getDictionaryEntriesBuilderList() {
return getDictionaryEntriesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry, com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.Builder, com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntryOrBuilder>
getDictionaryEntriesFieldBuilder() {
if (dictionaryEntriesBuilder_ == null) {
dictionaryEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry, com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.Builder, com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntryOrBuilder>(
dictionaryEntries_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
dictionaryEntries_ = null;
}
return dictionaryEntriesBuilder_;
}
private java.util.List spanEvents_ =
java.util.Collections.emptyList();
private void ensureSpanEventsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
spanEvents_ = new java.util.ArrayList(spanEvents_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.SpanEventsProto, com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.Builder, com.google.apphosting.base.protos.TraceEvents.SpanEventsProtoOrBuilder> spanEventsBuilder_;
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public java.util.List getSpanEventsList() {
if (spanEventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(spanEvents_);
} else {
return spanEventsBuilder_.getMessageList();
}
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public int getSpanEventsCount() {
if (spanEventsBuilder_ == null) {
return spanEvents_.size();
} else {
return spanEventsBuilder_.getCount();
}
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public com.google.apphosting.base.protos.TraceEvents.SpanEventsProto getSpanEvents(int index) {
if (spanEventsBuilder_ == null) {
return spanEvents_.get(index);
} else {
return spanEventsBuilder_.getMessage(index);
}
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public Builder setSpanEvents(
int index, com.google.apphosting.base.protos.TraceEvents.SpanEventsProto value) {
if (spanEventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpanEventsIsMutable();
spanEvents_.set(index, value);
onChanged();
} else {
spanEventsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public Builder setSpanEvents(
int index, com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.Builder builderForValue) {
if (spanEventsBuilder_ == null) {
ensureSpanEventsIsMutable();
spanEvents_.set(index, builderForValue.build());
onChanged();
} else {
spanEventsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public Builder addSpanEvents(com.google.apphosting.base.protos.TraceEvents.SpanEventsProto value) {
if (spanEventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpanEventsIsMutable();
spanEvents_.add(value);
onChanged();
} else {
spanEventsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public Builder addSpanEvents(
int index, com.google.apphosting.base.protos.TraceEvents.SpanEventsProto value) {
if (spanEventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpanEventsIsMutable();
spanEvents_.add(index, value);
onChanged();
} else {
spanEventsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public Builder addSpanEvents(
com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.Builder builderForValue) {
if (spanEventsBuilder_ == null) {
ensureSpanEventsIsMutable();
spanEvents_.add(builderForValue.build());
onChanged();
} else {
spanEventsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public Builder addSpanEvents(
int index, com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.Builder builderForValue) {
if (spanEventsBuilder_ == null) {
ensureSpanEventsIsMutable();
spanEvents_.add(index, builderForValue.build());
onChanged();
} else {
spanEventsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public Builder addAllSpanEvents(
java.lang.Iterable extends com.google.apphosting.base.protos.TraceEvents.SpanEventsProto> values) {
if (spanEventsBuilder_ == null) {
ensureSpanEventsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, spanEvents_);
onChanged();
} else {
spanEventsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public Builder clearSpanEvents() {
if (spanEventsBuilder_ == null) {
spanEvents_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
spanEventsBuilder_.clear();
}
return this;
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public Builder removeSpanEvents(int index) {
if (spanEventsBuilder_ == null) {
ensureSpanEventsIsMutable();
spanEvents_.remove(index);
onChanged();
} else {
spanEventsBuilder_.remove(index);
}
return this;
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.Builder getSpanEventsBuilder(
int index) {
return getSpanEventsFieldBuilder().getBuilder(index);
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public com.google.apphosting.base.protos.TraceEvents.SpanEventsProtoOrBuilder getSpanEventsOrBuilder(
int index) {
if (spanEventsBuilder_ == null) {
return spanEvents_.get(index); } else {
return spanEventsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public java.util.List extends com.google.apphosting.base.protos.TraceEvents.SpanEventsProtoOrBuilder>
getSpanEventsOrBuilderList() {
if (spanEventsBuilder_ != null) {
return spanEventsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(spanEvents_);
}
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.Builder addSpanEventsBuilder() {
return getSpanEventsFieldBuilder().addBuilder(
com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.getDefaultInstance());
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.Builder addSpanEventsBuilder(
int index) {
return getSpanEventsFieldBuilder().addBuilder(
index, com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.getDefaultInstance());
}
/**
*
* The events for one or more spans associated with the trace identified by
* the [project_id] and [trace_id] fields of this message.
*
*
* repeated .cloud_trace.SpanEventsProto span_events = 4;
*/
public java.util.List
getSpanEventsBuilderList() {
return getSpanEventsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.SpanEventsProto, com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.Builder, com.google.apphosting.base.protos.TraceEvents.SpanEventsProtoOrBuilder>
getSpanEventsFieldBuilder() {
if (spanEventsBuilder_ == null) {
spanEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.SpanEventsProto, com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.Builder, com.google.apphosting.base.protos.TraceEvents.SpanEventsProtoOrBuilder>(
spanEvents_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
spanEvents_ = null;
}
return spanEventsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cloud_trace.TraceEventsProto)
}
// @@protoc_insertion_point(class_scope:cloud_trace.TraceEventsProto)
private static final com.google.apphosting.base.protos.TraceEvents.TraceEventsProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.TraceEvents.TraceEventsProto();
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TraceEventsProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.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.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.TraceEventsProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EventDictionaryValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:cloud_trace.EventDictionaryValue)
com.google.protobuf.MessageOrBuilder {
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 1;
* @return Whether the stackTraceValue field is set.
*/
boolean hasStackTraceValue();
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 1;
* @return The stackTraceValue.
*/
com.google.apphosting.base.protos.SpanDetails.StackTraceDetails getStackTraceValue();
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 1;
*/
com.google.apphosting.base.protos.SpanDetails.StackTraceDetailsOrBuilder getStackTraceValueOrBuilder();
/**
* optional string str_value = 2;
* @return Whether the strValue field is set.
*/
boolean hasStrValue();
/**
* optional string str_value = 2;
* @return The strValue.
*/
java.lang.String getStrValue();
/**
* optional string str_value = 2;
* @return The bytes for strValue.
*/
com.google.protobuf.ByteString
getStrValueBytes();
}
/**
*
* This message defines the value type for a dictionary used to compress
* duplicate values.
*
*
* Protobuf type {@code cloud_trace.EventDictionaryValue}
*/
public static final class EventDictionaryValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cloud_trace.EventDictionaryValue)
EventDictionaryValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use EventDictionaryValue.newBuilder() to construct.
private EventDictionaryValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EventDictionaryValue() {
strValue_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EventDictionaryValue();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_EventDictionaryValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_EventDictionaryValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue.class, com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue.Builder.class);
}
private int bitField0_;
public static final int STACK_TRACE_VALUE_FIELD_NUMBER = 1;
private com.google.apphosting.base.protos.SpanDetails.StackTraceDetails stackTraceValue_;
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 1;
* @return Whether the stackTraceValue field is set.
*/
@java.lang.Override
public boolean hasStackTraceValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 1;
* @return The stackTraceValue.
*/
@java.lang.Override
public com.google.apphosting.base.protos.SpanDetails.StackTraceDetails getStackTraceValue() {
return stackTraceValue_ == null ? com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.getDefaultInstance() : stackTraceValue_;
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 1;
*/
@java.lang.Override
public com.google.apphosting.base.protos.SpanDetails.StackTraceDetailsOrBuilder getStackTraceValueOrBuilder() {
return stackTraceValue_ == null ? com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.getDefaultInstance() : stackTraceValue_;
}
public static final int STR_VALUE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object strValue_ = "";
/**
* optional string str_value = 2;
* @return Whether the strValue field is set.
*/
@java.lang.Override
public boolean hasStrValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string str_value = 2;
* @return The strValue.
*/
@java.lang.Override
public java.lang.String getStrValue() {
java.lang.Object ref = strValue_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
strValue_ = s;
}
return s;
}
}
/**
* optional string str_value = 2;
* @return The bytes for strValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStrValueBytes() {
java.lang.Object ref = strValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
strValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getStackTraceValue());
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, strValue_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStackTraceValue());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, strValue_);
}
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.google.apphosting.base.protos.TraceEvents.EventDictionaryValue)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue other = (com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue) obj;
if (hasStackTraceValue() != other.hasStackTraceValue()) return false;
if (hasStackTraceValue()) {
if (!getStackTraceValue()
.equals(other.getStackTraceValue())) return false;
}
if (hasStrValue() != other.hasStrValue()) return false;
if (hasStrValue()) {
if (!getStrValue()
.equals(other.getStrValue())) 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();
if (hasStackTraceValue()) {
hash = (37 * hash) + STACK_TRACE_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getStackTraceValue().hashCode();
}
if (hasStrValue()) {
hash = (37 * hash) + STR_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getStrValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue 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.google.apphosting.base.protos.TraceEvents.EventDictionaryValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue 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.google.apphosting.base.protos.TraceEvents.EventDictionaryValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.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.google.apphosting.base.protos.TraceEvents.EventDictionaryValue 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.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* This message defines the value type for a dictionary used to compress
* duplicate values.
*
*
* Protobuf type {@code cloud_trace.EventDictionaryValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cloud_trace.EventDictionaryValue)
com.google.apphosting.base.protos.TraceEvents.EventDictionaryValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_EventDictionaryValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_EventDictionaryValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue.class, com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue.Builder.class);
}
// Construct using com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStackTraceValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
stackTraceValue_ = null;
if (stackTraceValueBuilder_ != null) {
stackTraceValueBuilder_.dispose();
stackTraceValueBuilder_ = null;
}
strValue_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_EventDictionaryValue_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue getDefaultInstanceForType() {
return com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue build() {
com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue buildPartial() {
com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue result = new com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.stackTraceValue_ = stackTraceValueBuilder_ == null
? stackTraceValue_
: stackTraceValueBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.strValue_ = strValue_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue) {
return mergeFrom((com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue other) {
if (other == com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue.getDefaultInstance()) return this;
if (other.hasStackTraceValue()) {
mergeStackTraceValue(other.getStackTraceValue());
}
if (other.hasStrValue()) {
strValue_ = other.strValue_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.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: {
input.readMessage(
getStackTraceValueFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
strValue_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.apphosting.base.protos.SpanDetails.StackTraceDetails stackTraceValue_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.SpanDetails.StackTraceDetails, com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.Builder, com.google.apphosting.base.protos.SpanDetails.StackTraceDetailsOrBuilder> stackTraceValueBuilder_;
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 1;
* @return Whether the stackTraceValue field is set.
*/
public boolean hasStackTraceValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 1;
* @return The stackTraceValue.
*/
public com.google.apphosting.base.protos.SpanDetails.StackTraceDetails getStackTraceValue() {
if (stackTraceValueBuilder_ == null) {
return stackTraceValue_ == null ? com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.getDefaultInstance() : stackTraceValue_;
} else {
return stackTraceValueBuilder_.getMessage();
}
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 1;
*/
public Builder setStackTraceValue(com.google.apphosting.base.protos.SpanDetails.StackTraceDetails value) {
if (stackTraceValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stackTraceValue_ = value;
} else {
stackTraceValueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 1;
*/
public Builder setStackTraceValue(
com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.Builder builderForValue) {
if (stackTraceValueBuilder_ == null) {
stackTraceValue_ = builderForValue.build();
} else {
stackTraceValueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 1;
*/
public Builder mergeStackTraceValue(com.google.apphosting.base.protos.SpanDetails.StackTraceDetails value) {
if (stackTraceValueBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
stackTraceValue_ != null &&
stackTraceValue_ != com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.getDefaultInstance()) {
getStackTraceValueBuilder().mergeFrom(value);
} else {
stackTraceValue_ = value;
}
} else {
stackTraceValueBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 1;
*/
public Builder clearStackTraceValue() {
bitField0_ = (bitField0_ & ~0x00000001);
stackTraceValue_ = null;
if (stackTraceValueBuilder_ != null) {
stackTraceValueBuilder_.dispose();
stackTraceValueBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 1;
*/
public com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.Builder getStackTraceValueBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getStackTraceValueFieldBuilder().getBuilder();
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 1;
*/
public com.google.apphosting.base.protos.SpanDetails.StackTraceDetailsOrBuilder getStackTraceValueOrBuilder() {
if (stackTraceValueBuilder_ != null) {
return stackTraceValueBuilder_.getMessageOrBuilder();
} else {
return stackTraceValue_ == null ?
com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.getDefaultInstance() : stackTraceValue_;
}
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.SpanDetails.StackTraceDetails, com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.Builder, com.google.apphosting.base.protos.SpanDetails.StackTraceDetailsOrBuilder>
getStackTraceValueFieldBuilder() {
if (stackTraceValueBuilder_ == null) {
stackTraceValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.SpanDetails.StackTraceDetails, com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.Builder, com.google.apphosting.base.protos.SpanDetails.StackTraceDetailsOrBuilder>(
getStackTraceValue(),
getParentForChildren(),
isClean());
stackTraceValue_ = null;
}
return stackTraceValueBuilder_;
}
private java.lang.Object strValue_ = "";
/**
* optional string str_value = 2;
* @return Whether the strValue field is set.
*/
public boolean hasStrValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string str_value = 2;
* @return The strValue.
*/
public java.lang.String getStrValue() {
java.lang.Object ref = strValue_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
strValue_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string str_value = 2;
* @return The bytes for strValue.
*/
public com.google.protobuf.ByteString
getStrValueBytes() {
java.lang.Object ref = strValue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
strValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string str_value = 2;
* @param value The strValue to set.
* @return This builder for chaining.
*/
public Builder setStrValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
strValue_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string str_value = 2;
* @return This builder for chaining.
*/
public Builder clearStrValue() {
strValue_ = getDefaultInstance().getStrValue();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string str_value = 2;
* @param value The bytes for strValue to set.
* @return This builder for chaining.
*/
public Builder setStrValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
strValue_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cloud_trace.EventDictionaryValue)
}
// @@protoc_insertion_point(class_scope:cloud_trace.EventDictionaryValue)
private static final com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue();
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EventDictionaryValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.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.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.EventDictionaryValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EventDictionaryEntryOrBuilder extends
// @@protoc_insertion_point(interface_extends:cloud_trace.EventDictionaryEntry)
com.google.protobuf.MessageOrBuilder {
/**
* optional uint64 key = 1;
* @return Whether the key field is set.
*/
boolean hasKey();
/**
* optional uint64 key = 1;
* @return The key.
*/
long getKey();
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 2;
* @return Whether the stackTraceValue field is set.
*/
boolean hasStackTraceValue();
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 2;
* @return The stackTraceValue.
*/
com.google.apphosting.base.protos.SpanDetails.StackTraceDetails getStackTraceValue();
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 2;
*/
com.google.apphosting.base.protos.SpanDetails.StackTraceDetailsOrBuilder getStackTraceValueOrBuilder();
/**
* optional string str_value = 3;
* @return Whether the strValue field is set.
*/
boolean hasStrValue();
/**
* optional string str_value = 3;
* @return The strValue.
*/
java.lang.String getStrValue();
/**
* optional string str_value = 3;
* @return The bytes for strValue.
*/
com.google.protobuf.ByteString
getStrValueBytes();
}
/**
*
* This message defines the key and value type for a dictionary used to compress
* duplicate values.
*
*
* Protobuf type {@code cloud_trace.EventDictionaryEntry}
*/
public static final class EventDictionaryEntry extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cloud_trace.EventDictionaryEntry)
EventDictionaryEntryOrBuilder {
private static final long serialVersionUID = 0L;
// Use EventDictionaryEntry.newBuilder() to construct.
private EventDictionaryEntry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EventDictionaryEntry() {
strValue_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EventDictionaryEntry();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_EventDictionaryEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_EventDictionaryEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.class, com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.Builder.class);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
private long key_ = 0L;
/**
* optional uint64 key = 1;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional uint64 key = 1;
* @return The key.
*/
@java.lang.Override
public long getKey() {
return key_;
}
public static final int STACK_TRACE_VALUE_FIELD_NUMBER = 2;
private com.google.apphosting.base.protos.SpanDetails.StackTraceDetails stackTraceValue_;
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 2;
* @return Whether the stackTraceValue field is set.
*/
@java.lang.Override
public boolean hasStackTraceValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 2;
* @return The stackTraceValue.
*/
@java.lang.Override
public com.google.apphosting.base.protos.SpanDetails.StackTraceDetails getStackTraceValue() {
return stackTraceValue_ == null ? com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.getDefaultInstance() : stackTraceValue_;
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 2;
*/
@java.lang.Override
public com.google.apphosting.base.protos.SpanDetails.StackTraceDetailsOrBuilder getStackTraceValueOrBuilder() {
return stackTraceValue_ == null ? com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.getDefaultInstance() : stackTraceValue_;
}
public static final int STR_VALUE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object strValue_ = "";
/**
* optional string str_value = 3;
* @return Whether the strValue field is set.
*/
@java.lang.Override
public boolean hasStrValue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string str_value = 3;
* @return The strValue.
*/
@java.lang.Override
public java.lang.String getStrValue() {
java.lang.Object ref = strValue_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
strValue_ = s;
}
return s;
}
}
/**
* optional string str_value = 3;
* @return The bytes for strValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStrValueBytes() {
java.lang.Object ref = strValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
strValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeUInt64(1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getStackTraceValue());
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, strValue_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getStackTraceValue());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, strValue_);
}
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.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry other = (com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (getKey()
!= other.getKey()) return false;
}
if (hasStackTraceValue() != other.hasStackTraceValue()) return false;
if (hasStackTraceValue()) {
if (!getStackTraceValue()
.equals(other.getStackTraceValue())) return false;
}
if (hasStrValue() != other.hasStrValue()) return false;
if (hasStrValue()) {
if (!getStrValue()
.equals(other.getStrValue())) 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();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getKey());
}
if (hasStackTraceValue()) {
hash = (37 * hash) + STACK_TRACE_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getStackTraceValue().hashCode();
}
if (hasStrValue()) {
hash = (37 * hash) + STR_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getStrValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry 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.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry 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.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.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.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry 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.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* This message defines the key and value type for a dictionary used to compress
* duplicate values.
*
*
* Protobuf type {@code cloud_trace.EventDictionaryEntry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cloud_trace.EventDictionaryEntry)
com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_EventDictionaryEntry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_EventDictionaryEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.class, com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.Builder.class);
}
// Construct using com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStackTraceValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
key_ = 0L;
stackTraceValue_ = null;
if (stackTraceValueBuilder_ != null) {
stackTraceValueBuilder_.dispose();
stackTraceValueBuilder_ = null;
}
strValue_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_EventDictionaryEntry_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry getDefaultInstanceForType() {
return com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry build() {
com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry buildPartial() {
com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry result = new com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.key_ = key_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.stackTraceValue_ = stackTraceValueBuilder_ == null
? stackTraceValue_
: stackTraceValueBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.strValue_ = strValue_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry) {
return mergeFrom((com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry other) {
if (other == com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry.getDefaultInstance()) return this;
if (other.hasKey()) {
setKey(other.getKey());
}
if (other.hasStackTraceValue()) {
mergeStackTraceValue(other.getStackTraceValue());
}
if (other.hasStrValue()) {
strValue_ = other.strValue_;
bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.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 8: {
key_ = input.readUInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getStackTraceValueFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
strValue_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long key_ ;
/**
* optional uint64 key = 1;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional uint64 key = 1;
* @return The key.
*/
@java.lang.Override
public long getKey() {
return key_;
}
/**
* optional uint64 key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(long value) {
key_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional uint64 key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000001);
key_ = 0L;
onChanged();
return this;
}
private com.google.apphosting.base.protos.SpanDetails.StackTraceDetails stackTraceValue_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.SpanDetails.StackTraceDetails, com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.Builder, com.google.apphosting.base.protos.SpanDetails.StackTraceDetailsOrBuilder> stackTraceValueBuilder_;
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 2;
* @return Whether the stackTraceValue field is set.
*/
public boolean hasStackTraceValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 2;
* @return The stackTraceValue.
*/
public com.google.apphosting.base.protos.SpanDetails.StackTraceDetails getStackTraceValue() {
if (stackTraceValueBuilder_ == null) {
return stackTraceValue_ == null ? com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.getDefaultInstance() : stackTraceValue_;
} else {
return stackTraceValueBuilder_.getMessage();
}
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 2;
*/
public Builder setStackTraceValue(com.google.apphosting.base.protos.SpanDetails.StackTraceDetails value) {
if (stackTraceValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stackTraceValue_ = value;
} else {
stackTraceValueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 2;
*/
public Builder setStackTraceValue(
com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.Builder builderForValue) {
if (stackTraceValueBuilder_ == null) {
stackTraceValue_ = builderForValue.build();
} else {
stackTraceValueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 2;
*/
public Builder mergeStackTraceValue(com.google.apphosting.base.protos.SpanDetails.StackTraceDetails value) {
if (stackTraceValueBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
stackTraceValue_ != null &&
stackTraceValue_ != com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.getDefaultInstance()) {
getStackTraceValueBuilder().mergeFrom(value);
} else {
stackTraceValue_ = value;
}
} else {
stackTraceValueBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 2;
*/
public Builder clearStackTraceValue() {
bitField0_ = (bitField0_ & ~0x00000002);
stackTraceValue_ = null;
if (stackTraceValueBuilder_ != null) {
stackTraceValueBuilder_.dispose();
stackTraceValueBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 2;
*/
public com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.Builder getStackTraceValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getStackTraceValueFieldBuilder().getBuilder();
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 2;
*/
public com.google.apphosting.base.protos.SpanDetails.StackTraceDetailsOrBuilder getStackTraceValueOrBuilder() {
if (stackTraceValueBuilder_ != null) {
return stackTraceValueBuilder_.getMessageOrBuilder();
} else {
return stackTraceValue_ == null ?
com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.getDefaultInstance() : stackTraceValue_;
}
}
/**
*
* Only one of the following should be set. When more than one are set, the
* behavior is undefined.
*
*
* optional .cloud_trace.StackTraceDetails stack_trace_value = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.SpanDetails.StackTraceDetails, com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.Builder, com.google.apphosting.base.protos.SpanDetails.StackTraceDetailsOrBuilder>
getStackTraceValueFieldBuilder() {
if (stackTraceValueBuilder_ == null) {
stackTraceValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.SpanDetails.StackTraceDetails, com.google.apphosting.base.protos.SpanDetails.StackTraceDetails.Builder, com.google.apphosting.base.protos.SpanDetails.StackTraceDetailsOrBuilder>(
getStackTraceValue(),
getParentForChildren(),
isClean());
stackTraceValue_ = null;
}
return stackTraceValueBuilder_;
}
private java.lang.Object strValue_ = "";
/**
* optional string str_value = 3;
* @return Whether the strValue field is set.
*/
public boolean hasStrValue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string str_value = 3;
* @return The strValue.
*/
public java.lang.String getStrValue() {
java.lang.Object ref = strValue_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
strValue_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string str_value = 3;
* @return The bytes for strValue.
*/
public com.google.protobuf.ByteString
getStrValueBytes() {
java.lang.Object ref = strValue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
strValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string str_value = 3;
* @param value The strValue to set.
* @return This builder for chaining.
*/
public Builder setStrValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
strValue_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional string str_value = 3;
* @return This builder for chaining.
*/
public Builder clearStrValue() {
strValue_ = getDefaultInstance().getStrValue();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* optional string str_value = 3;
* @param value The bytes for strValue to set.
* @return This builder for chaining.
*/
public Builder setStrValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
strValue_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cloud_trace.EventDictionaryEntry)
}
// @@protoc_insertion_point(class_scope:cloud_trace.EventDictionaryEntry)
private static final com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry();
}
public static com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EventDictionaryEntry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.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.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.EventDictionaryEntry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TraceEventsListProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cloud_trace.TraceEventsListProto)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
java.util.List
getEventsList();
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
com.google.apphosting.base.protos.TraceEvents.TraceEventsProto getEvents(int index);
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
int getEventsCount();
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
java.util.List extends com.google.apphosting.base.protos.TraceEvents.TraceEventsProtoOrBuilder>
getEventsOrBuilderList();
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
com.google.apphosting.base.protos.TraceEvents.TraceEventsProtoOrBuilder getEventsOrBuilder(
int index);
}
/**
*
* This message is nothing more than a collection of trace events messages.
* Among other things, it is used for batching the events for different
* traces, where it is expected that two (or more) instances of this message
* serialized into a buffer can be deserialized as a single instance that
* contains all of child messages of the original messages.
*
*
* Protobuf type {@code cloud_trace.TraceEventsListProto}
*/
public static final class TraceEventsListProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cloud_trace.TraceEventsListProto)
TraceEventsListProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TraceEventsListProto.newBuilder() to construct.
private TraceEventsListProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TraceEventsListProto() {
events_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TraceEventsListProto();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_TraceEventsListProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_TraceEventsListProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto.class, com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto.Builder.class);
}
public static final int EVENTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List events_;
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
@java.lang.Override
public java.util.List extends com.google.apphosting.base.protos.TraceEvents.TraceEventsProtoOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.TraceEventsProto getEvents(int index) {
return events_.get(index);
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.TraceEventsProtoOrBuilder getEventsOrBuilder(
int index) {
return events_.get(index);
}
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.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < events_.size(); i++) {
output.writeMessage(1, events_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < events_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, events_.get(i));
}
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.google.apphosting.base.protos.TraceEvents.TraceEventsListProto)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto other = (com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto) obj;
if (!getEventsList()
.equals(other.getEventsList())) 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();
if (getEventsCount() > 0) {
hash = (37 * hash) + EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getEventsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto 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.google.apphosting.base.protos.TraceEvents.TraceEventsListProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto 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.google.apphosting.base.protos.TraceEvents.TraceEventsListProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.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.google.apphosting.base.protos.TraceEvents.TraceEventsListProto 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.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* This message is nothing more than a collection of trace events messages.
* Among other things, it is used for batching the events for different
* traces, where it is expected that two (or more) instances of this message
* serialized into a buffer can be deserialized as a single instance that
* contains all of child messages of the original messages.
*
*
* Protobuf type {@code cloud_trace.TraceEventsListProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cloud_trace.TraceEventsListProto)
com.google.apphosting.base.protos.TraceEvents.TraceEventsListProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_TraceEventsListProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_TraceEventsListProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto.class, com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto.Builder.class);
}
// Construct using com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
} else {
events_ = null;
eventsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_TraceEventsListProto_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto getDefaultInstanceForType() {
return com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto build() {
com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto buildPartial() {
com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto result = new com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto result) {
if (eventsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
events_ = java.util.Collections.unmodifiableList(events_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.events_ = events_;
} else {
result.events_ = eventsBuilder_.build();
}
}
private void buildPartial0(com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto) {
return mergeFrom((com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto other) {
if (other == com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto.getDefaultInstance()) return this;
if (eventsBuilder_ == null) {
if (!other.events_.isEmpty()) {
if (events_.isEmpty()) {
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEventsIsMutable();
events_.addAll(other.events_);
}
onChanged();
}
} else {
if (!other.events_.isEmpty()) {
if (eventsBuilder_.isEmpty()) {
eventsBuilder_.dispose();
eventsBuilder_ = null;
events_ = other.events_;
bitField0_ = (bitField0_ & ~0x00000001);
eventsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEventsFieldBuilder() : null;
} else {
eventsBuilder_.addAllMessages(other.events_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.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: {
com.google.apphosting.base.protos.TraceEvents.TraceEventsProto m =
input.readMessage(
com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.PARSER,
extensionRegistry);
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(m);
} else {
eventsBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List events_ =
java.util.Collections.emptyList();
private void ensureEventsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
events_ = new java.util.ArrayList(events_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.TraceEventsProto, com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.Builder, com.google.apphosting.base.protos.TraceEvents.TraceEventsProtoOrBuilder> eventsBuilder_;
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public java.util.List getEventsList() {
if (eventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(events_);
} else {
return eventsBuilder_.getMessageList();
}
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public int getEventsCount() {
if (eventsBuilder_ == null) {
return events_.size();
} else {
return eventsBuilder_.getCount();
}
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public com.google.apphosting.base.protos.TraceEvents.TraceEventsProto getEvents(int index) {
if (eventsBuilder_ == null) {
return events_.get(index);
} else {
return eventsBuilder_.getMessage(index);
}
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public Builder setEvents(
int index, com.google.apphosting.base.protos.TraceEvents.TraceEventsProto value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.set(index, value);
onChanged();
} else {
eventsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public Builder setEvents(
int index, com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.set(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public Builder addEvents(com.google.apphosting.base.protos.TraceEvents.TraceEventsProto value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(value);
onChanged();
} else {
eventsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public Builder addEvents(
int index, com.google.apphosting.base.protos.TraceEvents.TraceEventsProto value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(index, value);
onChanged();
} else {
eventsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public Builder addEvents(
com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public Builder addEvents(
int index, com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public Builder addAllEvents(
java.lang.Iterable extends com.google.apphosting.base.protos.TraceEvents.TraceEventsProto> values) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, events_);
onChanged();
} else {
eventsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public Builder clearEvents() {
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
eventsBuilder_.clear();
}
return this;
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public Builder removeEvents(int index) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.remove(index);
onChanged();
} else {
eventsBuilder_.remove(index);
}
return this;
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.Builder getEventsBuilder(
int index) {
return getEventsFieldBuilder().getBuilder(index);
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public com.google.apphosting.base.protos.TraceEvents.TraceEventsProtoOrBuilder getEventsOrBuilder(
int index) {
if (eventsBuilder_ == null) {
return events_.get(index); } else {
return eventsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public java.util.List extends com.google.apphosting.base.protos.TraceEvents.TraceEventsProtoOrBuilder>
getEventsOrBuilderList() {
if (eventsBuilder_ != null) {
return eventsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(events_);
}
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.Builder addEventsBuilder() {
return getEventsFieldBuilder().addBuilder(
com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.getDefaultInstance());
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.Builder addEventsBuilder(
int index) {
return getEventsFieldBuilder().addBuilder(
index, com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.getDefaultInstance());
}
/**
* repeated .cloud_trace.TraceEventsProto events = 1;
*/
public java.util.List
getEventsBuilderList() {
return getEventsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.TraceEventsProto, com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.Builder, com.google.apphosting.base.protos.TraceEvents.TraceEventsProtoOrBuilder>
getEventsFieldBuilder() {
if (eventsBuilder_ == null) {
eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.TraceEventsProto, com.google.apphosting.base.protos.TraceEvents.TraceEventsProto.Builder, com.google.apphosting.base.protos.TraceEvents.TraceEventsProtoOrBuilder>(
events_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
events_ = null;
}
return eventsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cloud_trace.TraceEventsListProto)
}
// @@protoc_insertion_point(class_scope:cloud_trace.TraceEventsListProto)
private static final com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto();
}
public static com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TraceEventsListProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.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.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.TraceEventsListProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SpanEventsProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cloud_trace.SpanEventsProto)
com.google.protobuf.MessageOrBuilder {
/**
*
* The span id for the events in this message.
*
*
* optional .cloud_trace.SpanIdProto span_id = 1;
* @return Whether the spanId field is set.
*/
boolean hasSpanId();
/**
*
* The span id for the events in this message.
*
*
* optional .cloud_trace.SpanIdProto span_id = 1;
* @return The spanId.
*/
com.google.apphosting.base.protos.SpanId.SpanIdProto getSpanId();
/**
*
* The span id for the events in this message.
*
*
* optional .cloud_trace.SpanIdProto span_id = 1;
*/
com.google.apphosting.base.protos.SpanId.SpanIdProtoOrBuilder getSpanIdOrBuilder();
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
java.util.List
getEventList();
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
com.google.apphosting.base.protos.TraceEvents.SpanEventProto getEvent(int index);
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
int getEventCount();
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
java.util.List extends com.google.apphosting.base.protos.TraceEvents.SpanEventProtoOrBuilder>
getEventOrBuilderList();
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
com.google.apphosting.base.protos.TraceEvents.SpanEventProtoOrBuilder getEventOrBuilder(
int index);
/**
*
* True if this message contains all trace events for this Span.
*
*
* optional bool full_span = 3;
* @return Whether the fullSpan field is set.
*/
boolean hasFullSpan();
/**
*
* True if this message contains all trace events for this Span.
*
*
* optional bool full_span = 3;
* @return The fullSpan.
*/
boolean getFullSpan();
}
/**
*
* This message holds the details for one or more events associated with a
* single span. The span's trace id and project id must be derived from this
* messsage's context (e.g. its parent TraceEventsProto message).
*
*
* Protobuf type {@code cloud_trace.SpanEventsProto}
*/
public static final class SpanEventsProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cloud_trace.SpanEventsProto)
SpanEventsProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use SpanEventsProto.newBuilder() to construct.
private SpanEventsProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SpanEventsProto() {
event_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SpanEventsProto();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_SpanEventsProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_SpanEventsProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.class, com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.Builder.class);
}
private int bitField0_;
public static final int SPAN_ID_FIELD_NUMBER = 1;
private com.google.apphosting.base.protos.SpanId.SpanIdProto spanId_;
/**
*
* The span id for the events in this message.
*
*
* optional .cloud_trace.SpanIdProto span_id = 1;
* @return Whether the spanId field is set.
*/
@java.lang.Override
public boolean hasSpanId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The span id for the events in this message.
*
*
* optional .cloud_trace.SpanIdProto span_id = 1;
* @return The spanId.
*/
@java.lang.Override
public com.google.apphosting.base.protos.SpanId.SpanIdProto getSpanId() {
return spanId_ == null ? com.google.apphosting.base.protos.SpanId.SpanIdProto.getDefaultInstance() : spanId_;
}
/**
*
* The span id for the events in this message.
*
*
* optional .cloud_trace.SpanIdProto span_id = 1;
*/
@java.lang.Override
public com.google.apphosting.base.protos.SpanId.SpanIdProtoOrBuilder getSpanIdOrBuilder() {
return spanId_ == null ? com.google.apphosting.base.protos.SpanId.SpanIdProto.getDefaultInstance() : spanId_;
}
public static final int EVENT_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List event_;
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
@java.lang.Override
public java.util.List getEventList() {
return event_;
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
@java.lang.Override
public java.util.List extends com.google.apphosting.base.protos.TraceEvents.SpanEventProtoOrBuilder>
getEventOrBuilderList() {
return event_;
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
@java.lang.Override
public int getEventCount() {
return event_.size();
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.SpanEventProto getEvent(int index) {
return event_.get(index);
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.SpanEventProtoOrBuilder getEventOrBuilder(
int index) {
return event_.get(index);
}
public static final int FULL_SPAN_FIELD_NUMBER = 3;
private boolean fullSpan_ = false;
/**
*
* True if this message contains all trace events for this Span.
*
*
* optional bool full_span = 3;
* @return Whether the fullSpan field is set.
*/
@java.lang.Override
public boolean hasFullSpan() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* True if this message contains all trace events for this Span.
*
*
* optional bool full_span = 3;
* @return The fullSpan.
*/
@java.lang.Override
public boolean getFullSpan() {
return fullSpan_;
}
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.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getSpanId());
}
for (int i = 0; i < event_.size(); i++) {
output.writeMessage(2, event_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(3, fullSpan_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSpanId());
}
for (int i = 0; i < event_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, event_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, fullSpan_);
}
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.google.apphosting.base.protos.TraceEvents.SpanEventsProto)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.TraceEvents.SpanEventsProto other = (com.google.apphosting.base.protos.TraceEvents.SpanEventsProto) obj;
if (hasSpanId() != other.hasSpanId()) return false;
if (hasSpanId()) {
if (!getSpanId()
.equals(other.getSpanId())) return false;
}
if (!getEventList()
.equals(other.getEventList())) return false;
if (hasFullSpan() != other.hasFullSpan()) return false;
if (hasFullSpan()) {
if (getFullSpan()
!= other.getFullSpan()) 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();
if (hasSpanId()) {
hash = (37 * hash) + SPAN_ID_FIELD_NUMBER;
hash = (53 * hash) + getSpanId().hashCode();
}
if (getEventCount() > 0) {
hash = (37 * hash) + EVENT_FIELD_NUMBER;
hash = (53 * hash) + getEventList().hashCode();
}
if (hasFullSpan()) {
hash = (37 * hash) + FULL_SPAN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFullSpan());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventsProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventsProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventsProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventsProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventsProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventsProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventsProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventsProto 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.google.apphosting.base.protos.TraceEvents.SpanEventsProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventsProto 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.google.apphosting.base.protos.TraceEvents.SpanEventsProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventsProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.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.google.apphosting.base.protos.TraceEvents.SpanEventsProto 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.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* This message holds the details for one or more events associated with a
* single span. The span's trace id and project id must be derived from this
* messsage's context (e.g. its parent TraceEventsProto message).
*
*
* Protobuf type {@code cloud_trace.SpanEventsProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cloud_trace.SpanEventsProto)
com.google.apphosting.base.protos.TraceEvents.SpanEventsProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_SpanEventsProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_SpanEventsProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.class, com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.Builder.class);
}
// Construct using com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSpanIdFieldBuilder();
getEventFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
spanId_ = null;
if (spanIdBuilder_ != null) {
spanIdBuilder_.dispose();
spanIdBuilder_ = null;
}
if (eventBuilder_ == null) {
event_ = java.util.Collections.emptyList();
} else {
event_ = null;
eventBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
fullSpan_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_SpanEventsProto_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.SpanEventsProto getDefaultInstanceForType() {
return com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.SpanEventsProto build() {
com.google.apphosting.base.protos.TraceEvents.SpanEventsProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.SpanEventsProto buildPartial() {
com.google.apphosting.base.protos.TraceEvents.SpanEventsProto result = new com.google.apphosting.base.protos.TraceEvents.SpanEventsProto(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.apphosting.base.protos.TraceEvents.SpanEventsProto result) {
if (eventBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
event_ = java.util.Collections.unmodifiableList(event_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.event_ = event_;
} else {
result.event_ = eventBuilder_.build();
}
}
private void buildPartial0(com.google.apphosting.base.protos.TraceEvents.SpanEventsProto result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.spanId_ = spanIdBuilder_ == null
? spanId_
: spanIdBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.fullSpan_ = fullSpan_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.base.protos.TraceEvents.SpanEventsProto) {
return mergeFrom((com.google.apphosting.base.protos.TraceEvents.SpanEventsProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.TraceEvents.SpanEventsProto other) {
if (other == com.google.apphosting.base.protos.TraceEvents.SpanEventsProto.getDefaultInstance()) return this;
if (other.hasSpanId()) {
mergeSpanId(other.getSpanId());
}
if (eventBuilder_ == null) {
if (!other.event_.isEmpty()) {
if (event_.isEmpty()) {
event_ = other.event_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureEventIsMutable();
event_.addAll(other.event_);
}
onChanged();
}
} else {
if (!other.event_.isEmpty()) {
if (eventBuilder_.isEmpty()) {
eventBuilder_.dispose();
eventBuilder_ = null;
event_ = other.event_;
bitField0_ = (bitField0_ & ~0x00000002);
eventBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEventFieldBuilder() : null;
} else {
eventBuilder_.addAllMessages(other.event_);
}
}
}
if (other.hasFullSpan()) {
setFullSpan(other.getFullSpan());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.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: {
input.readMessage(
getSpanIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.google.apphosting.base.protos.TraceEvents.SpanEventProto m =
input.readMessage(
com.google.apphosting.base.protos.TraceEvents.SpanEventProto.PARSER,
extensionRegistry);
if (eventBuilder_ == null) {
ensureEventIsMutable();
event_.add(m);
} else {
eventBuilder_.addMessage(m);
}
break;
} // case 18
case 24: {
fullSpan_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.apphosting.base.protos.SpanId.SpanIdProto spanId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.SpanId.SpanIdProto, com.google.apphosting.base.protos.SpanId.SpanIdProto.Builder, com.google.apphosting.base.protos.SpanId.SpanIdProtoOrBuilder> spanIdBuilder_;
/**
*
* The span id for the events in this message.
*
*
* optional .cloud_trace.SpanIdProto span_id = 1;
* @return Whether the spanId field is set.
*/
public boolean hasSpanId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The span id for the events in this message.
*
*
* optional .cloud_trace.SpanIdProto span_id = 1;
* @return The spanId.
*/
public com.google.apphosting.base.protos.SpanId.SpanIdProto getSpanId() {
if (spanIdBuilder_ == null) {
return spanId_ == null ? com.google.apphosting.base.protos.SpanId.SpanIdProto.getDefaultInstance() : spanId_;
} else {
return spanIdBuilder_.getMessage();
}
}
/**
*
* The span id for the events in this message.
*
*
* optional .cloud_trace.SpanIdProto span_id = 1;
*/
public Builder setSpanId(com.google.apphosting.base.protos.SpanId.SpanIdProto value) {
if (spanIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spanId_ = value;
} else {
spanIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The span id for the events in this message.
*
*
* optional .cloud_trace.SpanIdProto span_id = 1;
*/
public Builder setSpanId(
com.google.apphosting.base.protos.SpanId.SpanIdProto.Builder builderForValue) {
if (spanIdBuilder_ == null) {
spanId_ = builderForValue.build();
} else {
spanIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The span id for the events in this message.
*
*
* optional .cloud_trace.SpanIdProto span_id = 1;
*/
public Builder mergeSpanId(com.google.apphosting.base.protos.SpanId.SpanIdProto value) {
if (spanIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
spanId_ != null &&
spanId_ != com.google.apphosting.base.protos.SpanId.SpanIdProto.getDefaultInstance()) {
getSpanIdBuilder().mergeFrom(value);
} else {
spanId_ = value;
}
} else {
spanIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The span id for the events in this message.
*
*
* optional .cloud_trace.SpanIdProto span_id = 1;
*/
public Builder clearSpanId() {
bitField0_ = (bitField0_ & ~0x00000001);
spanId_ = null;
if (spanIdBuilder_ != null) {
spanIdBuilder_.dispose();
spanIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The span id for the events in this message.
*
*
* optional .cloud_trace.SpanIdProto span_id = 1;
*/
public com.google.apphosting.base.protos.SpanId.SpanIdProto.Builder getSpanIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getSpanIdFieldBuilder().getBuilder();
}
/**
*
* The span id for the events in this message.
*
*
* optional .cloud_trace.SpanIdProto span_id = 1;
*/
public com.google.apphosting.base.protos.SpanId.SpanIdProtoOrBuilder getSpanIdOrBuilder() {
if (spanIdBuilder_ != null) {
return spanIdBuilder_.getMessageOrBuilder();
} else {
return spanId_ == null ?
com.google.apphosting.base.protos.SpanId.SpanIdProto.getDefaultInstance() : spanId_;
}
}
/**
*
* The span id for the events in this message.
*
*
* optional .cloud_trace.SpanIdProto span_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.SpanId.SpanIdProto, com.google.apphosting.base.protos.SpanId.SpanIdProto.Builder, com.google.apphosting.base.protos.SpanId.SpanIdProtoOrBuilder>
getSpanIdFieldBuilder() {
if (spanIdBuilder_ == null) {
spanIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.SpanId.SpanIdProto, com.google.apphosting.base.protos.SpanId.SpanIdProto.Builder, com.google.apphosting.base.protos.SpanId.SpanIdProtoOrBuilder>(
getSpanId(),
getParentForChildren(),
isClean());
spanId_ = null;
}
return spanIdBuilder_;
}
private java.util.List event_ =
java.util.Collections.emptyList();
private void ensureEventIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
event_ = new java.util.ArrayList(event_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.SpanEventProto, com.google.apphosting.base.protos.TraceEvents.SpanEventProto.Builder, com.google.apphosting.base.protos.TraceEvents.SpanEventProtoOrBuilder> eventBuilder_;
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public java.util.List getEventList() {
if (eventBuilder_ == null) {
return java.util.Collections.unmodifiableList(event_);
} else {
return eventBuilder_.getMessageList();
}
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public int getEventCount() {
if (eventBuilder_ == null) {
return event_.size();
} else {
return eventBuilder_.getCount();
}
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public com.google.apphosting.base.protos.TraceEvents.SpanEventProto getEvent(int index) {
if (eventBuilder_ == null) {
return event_.get(index);
} else {
return eventBuilder_.getMessage(index);
}
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public Builder setEvent(
int index, com.google.apphosting.base.protos.TraceEvents.SpanEventProto value) {
if (eventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventIsMutable();
event_.set(index, value);
onChanged();
} else {
eventBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public Builder setEvent(
int index, com.google.apphosting.base.protos.TraceEvents.SpanEventProto.Builder builderForValue) {
if (eventBuilder_ == null) {
ensureEventIsMutable();
event_.set(index, builderForValue.build());
onChanged();
} else {
eventBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public Builder addEvent(com.google.apphosting.base.protos.TraceEvents.SpanEventProto value) {
if (eventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventIsMutable();
event_.add(value);
onChanged();
} else {
eventBuilder_.addMessage(value);
}
return this;
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public Builder addEvent(
int index, com.google.apphosting.base.protos.TraceEvents.SpanEventProto value) {
if (eventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventIsMutable();
event_.add(index, value);
onChanged();
} else {
eventBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public Builder addEvent(
com.google.apphosting.base.protos.TraceEvents.SpanEventProto.Builder builderForValue) {
if (eventBuilder_ == null) {
ensureEventIsMutable();
event_.add(builderForValue.build());
onChanged();
} else {
eventBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public Builder addEvent(
int index, com.google.apphosting.base.protos.TraceEvents.SpanEventProto.Builder builderForValue) {
if (eventBuilder_ == null) {
ensureEventIsMutable();
event_.add(index, builderForValue.build());
onChanged();
} else {
eventBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public Builder addAllEvent(
java.lang.Iterable extends com.google.apphosting.base.protos.TraceEvents.SpanEventProto> values) {
if (eventBuilder_ == null) {
ensureEventIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, event_);
onChanged();
} else {
eventBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public Builder clearEvent() {
if (eventBuilder_ == null) {
event_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
eventBuilder_.clear();
}
return this;
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public Builder removeEvent(int index) {
if (eventBuilder_ == null) {
ensureEventIsMutable();
event_.remove(index);
onChanged();
} else {
eventBuilder_.remove(index);
}
return this;
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public com.google.apphosting.base.protos.TraceEvents.SpanEventProto.Builder getEventBuilder(
int index) {
return getEventFieldBuilder().getBuilder(index);
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public com.google.apphosting.base.protos.TraceEvents.SpanEventProtoOrBuilder getEventOrBuilder(
int index) {
if (eventBuilder_ == null) {
return event_.get(index); } else {
return eventBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public java.util.List extends com.google.apphosting.base.protos.TraceEvents.SpanEventProtoOrBuilder>
getEventOrBuilderList() {
if (eventBuilder_ != null) {
return eventBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(event_);
}
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public com.google.apphosting.base.protos.TraceEvents.SpanEventProto.Builder addEventBuilder() {
return getEventFieldBuilder().addBuilder(
com.google.apphosting.base.protos.TraceEvents.SpanEventProto.getDefaultInstance());
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public com.google.apphosting.base.protos.TraceEvents.SpanEventProto.Builder addEventBuilder(
int index) {
return getEventFieldBuilder().addBuilder(
index, com.google.apphosting.base.protos.TraceEvents.SpanEventProto.getDefaultInstance());
}
/**
*
* The span events for the span identified by the [span_id] field of this
* message.
*
*
* repeated .cloud_trace.SpanEventProto event = 2;
*/
public java.util.List
getEventBuilderList() {
return getEventFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.SpanEventProto, com.google.apphosting.base.protos.TraceEvents.SpanEventProto.Builder, com.google.apphosting.base.protos.TraceEvents.SpanEventProtoOrBuilder>
getEventFieldBuilder() {
if (eventBuilder_ == null) {
eventBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.SpanEventProto, com.google.apphosting.base.protos.TraceEvents.SpanEventProto.Builder, com.google.apphosting.base.protos.TraceEvents.SpanEventProtoOrBuilder>(
event_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
event_ = null;
}
return eventBuilder_;
}
private boolean fullSpan_ ;
/**
*
* True if this message contains all trace events for this Span.
*
*
* optional bool full_span = 3;
* @return Whether the fullSpan field is set.
*/
@java.lang.Override
public boolean hasFullSpan() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* True if this message contains all trace events for this Span.
*
*
* optional bool full_span = 3;
* @return The fullSpan.
*/
@java.lang.Override
public boolean getFullSpan() {
return fullSpan_;
}
/**
*
* True if this message contains all trace events for this Span.
*
*
* optional bool full_span = 3;
* @param value The fullSpan to set.
* @return This builder for chaining.
*/
public Builder setFullSpan(boolean value) {
fullSpan_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* True if this message contains all trace events for this Span.
*
*
* optional bool full_span = 3;
* @return This builder for chaining.
*/
public Builder clearFullSpan() {
bitField0_ = (bitField0_ & ~0x00000004);
fullSpan_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cloud_trace.SpanEventsProto)
}
// @@protoc_insertion_point(class_scope:cloud_trace.SpanEventsProto)
private static final com.google.apphosting.base.protos.TraceEvents.SpanEventsProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.TraceEvents.SpanEventsProto();
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventsProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SpanEventsProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.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.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.SpanEventsProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SpanEventProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cloud_trace.SpanEventProto)
com.google.protobuf.MessageOrBuilder {
/**
*
* The timestamp for this event, in nanoseconds since the epoch.
*
*
* optional int64 timestamp = 1;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
*
* The timestamp for this event, in nanoseconds since the epoch.
*
*
* optional int64 timestamp = 1;
* @return The timestamp.
*/
long getTimestamp();
/**
*
* Present only if this event represents the start of a span.
*
*
* optional .cloud_trace.StartSpanProto start_span = 2;
* @return Whether the startSpan field is set.
*/
boolean hasStartSpan();
/**
*
* Present only if this event represents the start of a span.
*
*
* optional .cloud_trace.StartSpanProto start_span = 2;
* @return The startSpan.
*/
com.google.apphosting.base.protos.TraceEvents.StartSpanProto getStartSpan();
/**
*
* Present only if this event represents the start of a span.
*
*
* optional .cloud_trace.StartSpanProto start_span = 2;
*/
com.google.apphosting.base.protos.TraceEvents.StartSpanProtoOrBuilder getStartSpanOrBuilder();
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.EndSpanProto end_span = 3;
* @return Whether the endSpan field is set.
*/
boolean hasEndSpan();
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.EndSpanProto end_span = 3;
* @return The endSpan.
*/
com.google.apphosting.base.protos.TraceEvents.EndSpanProto getEndSpan();
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.EndSpanProto end_span = 3;
*/
com.google.apphosting.base.protos.TraceEvents.EndSpanProtoOrBuilder getEndSpanOrBuilder();
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.AnnotateSpanProto annotate_span = 4;
* @return Whether the annotateSpan field is set.
*/
boolean hasAnnotateSpan();
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.AnnotateSpanProto annotate_span = 4;
* @return The annotateSpan.
*/
com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto getAnnotateSpan();
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.AnnotateSpanProto annotate_span = 4;
*/
com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProtoOrBuilder getAnnotateSpanOrBuilder();
/**
*
* Present for events representing textual log messages.
*
*
* optional .cloud_trace.LogMessageProto log_message = 5;
* @return Whether the logMessage field is set.
*/
boolean hasLogMessage();
/**
*
* Present for events representing textual log messages.
*
*
* optional .cloud_trace.LogMessageProto log_message = 5;
* @return The logMessage.
*/
com.google.apphosting.base.protos.TraceEvents.LogMessageProto getLogMessage();
/**
*
* Present for events representing textual log messages.
*
*
* optional .cloud_trace.LogMessageProto log_message = 5;
*/
com.google.apphosting.base.protos.TraceEvents.LogMessageProtoOrBuilder getLogMessageOrBuilder();
}
/**
*
* Thie message holds the detail for a single event associated with a span.
* Its span id, trace id, and project id must be derived from this message's
* context (e.g. its parent SpanEventsProto and grandparent TraceEventsProto).
*
*
* Protobuf type {@code cloud_trace.SpanEventProto}
*/
public static final class SpanEventProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cloud_trace.SpanEventProto)
SpanEventProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use SpanEventProto.newBuilder() to construct.
private SpanEventProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SpanEventProto() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SpanEventProto();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_SpanEventProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_SpanEventProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.SpanEventProto.class, com.google.apphosting.base.protos.TraceEvents.SpanEventProto.Builder.class);
}
/**
* Protobuf enum {@code cloud_trace.SpanEventProto.EventType}
*/
public enum EventType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* This value represents an invalid span event. This is slightly different
* than an event with an unknown type; see below.
*
*
* INVALID_EVENT = 0;
*/
INVALID_EVENT(0),
/**
*
* This value represents an event whose "start_span" field is present.
*
*
* START_SPAN = 1;
*/
START_SPAN(1),
/**
*
* This value represents an event whose "end_span" field is present.
*
*
* END_SPAN = 2;
*/
END_SPAN(2),
/**
*
* This value represents an event whose "annotate_span" field is present.
*
*
* ANNOTATE_SPAN = 3;
*/
ANNOTATE_SPAN(3),
/**
*
* This value represents an event whose "log_message" field is present.
*
*
* LOG_MESSAGE = 4;
*/
LOG_MESSAGE(4),
/**
*
* This value represents an event whose type cannot be determined.
*
*
* UNKNOWN_EVENT_TYPE = 6;
*/
UNKNOWN_EVENT_TYPE(6),
;
/**
*
* This value represents an invalid span event. This is slightly different
* than an event with an unknown type; see below.
*
*
* INVALID_EVENT = 0;
*/
public static final int INVALID_EVENT_VALUE = 0;
/**
*
* This value represents an event whose "start_span" field is present.
*
*
* START_SPAN = 1;
*/
public static final int START_SPAN_VALUE = 1;
/**
*
* This value represents an event whose "end_span" field is present.
*
*
* END_SPAN = 2;
*/
public static final int END_SPAN_VALUE = 2;
/**
*
* This value represents an event whose "annotate_span" field is present.
*
*
* ANNOTATE_SPAN = 3;
*/
public static final int ANNOTATE_SPAN_VALUE = 3;
/**
*
* This value represents an event whose "log_message" field is present.
*
*
* LOG_MESSAGE = 4;
*/
public static final int LOG_MESSAGE_VALUE = 4;
/**
*
* This value represents an event whose type cannot be determined.
*
*
* UNKNOWN_EVENT_TYPE = 6;
*/
public static final int UNKNOWN_EVENT_TYPE_VALUE = 6;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EventType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static EventType forNumber(int value) {
switch (value) {
case 0: return INVALID_EVENT;
case 1: return START_SPAN;
case 2: return END_SPAN;
case 3: return ANNOTATE_SPAN;
case 4: return LOG_MESSAGE;
case 6: return UNKNOWN_EVENT_TYPE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
EventType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public EventType findValueByNumber(int number) {
return EventType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.SpanEventProto.getDescriptor().getEnumTypes().get(0);
}
private static final EventType[] VALUES = values();
public static EventType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private EventType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cloud_trace.SpanEventProto.EventType)
}
private int bitField0_;
public static final int TIMESTAMP_FIELD_NUMBER = 1;
private long timestamp_ = 0L;
/**
*
* The timestamp for this event, in nanoseconds since the epoch.
*
*
* optional int64 timestamp = 1;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The timestamp for this event, in nanoseconds since the epoch.
*
*
* optional int64 timestamp = 1;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
public static final int START_SPAN_FIELD_NUMBER = 2;
private com.google.apphosting.base.protos.TraceEvents.StartSpanProto startSpan_;
/**
*
* Present only if this event represents the start of a span.
*
*
* optional .cloud_trace.StartSpanProto start_span = 2;
* @return Whether the startSpan field is set.
*/
@java.lang.Override
public boolean hasStartSpan() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Present only if this event represents the start of a span.
*
*
* optional .cloud_trace.StartSpanProto start_span = 2;
* @return The startSpan.
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.StartSpanProto getStartSpan() {
return startSpan_ == null ? com.google.apphosting.base.protos.TraceEvents.StartSpanProto.getDefaultInstance() : startSpan_;
}
/**
*
* Present only if this event represents the start of a span.
*
*
* optional .cloud_trace.StartSpanProto start_span = 2;
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.StartSpanProtoOrBuilder getStartSpanOrBuilder() {
return startSpan_ == null ? com.google.apphosting.base.protos.TraceEvents.StartSpanProto.getDefaultInstance() : startSpan_;
}
public static final int END_SPAN_FIELD_NUMBER = 3;
private com.google.apphosting.base.protos.TraceEvents.EndSpanProto endSpan_;
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.EndSpanProto end_span = 3;
* @return Whether the endSpan field is set.
*/
@java.lang.Override
public boolean hasEndSpan() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.EndSpanProto end_span = 3;
* @return The endSpan.
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.EndSpanProto getEndSpan() {
return endSpan_ == null ? com.google.apphosting.base.protos.TraceEvents.EndSpanProto.getDefaultInstance() : endSpan_;
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.EndSpanProto end_span = 3;
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.EndSpanProtoOrBuilder getEndSpanOrBuilder() {
return endSpan_ == null ? com.google.apphosting.base.protos.TraceEvents.EndSpanProto.getDefaultInstance() : endSpan_;
}
public static final int ANNOTATE_SPAN_FIELD_NUMBER = 4;
private com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto annotateSpan_;
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.AnnotateSpanProto annotate_span = 4;
* @return Whether the annotateSpan field is set.
*/
@java.lang.Override
public boolean hasAnnotateSpan() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.AnnotateSpanProto annotate_span = 4;
* @return The annotateSpan.
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto getAnnotateSpan() {
return annotateSpan_ == null ? com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.getDefaultInstance() : annotateSpan_;
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.AnnotateSpanProto annotate_span = 4;
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProtoOrBuilder getAnnotateSpanOrBuilder() {
return annotateSpan_ == null ? com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.getDefaultInstance() : annotateSpan_;
}
public static final int LOG_MESSAGE_FIELD_NUMBER = 5;
private com.google.apphosting.base.protos.TraceEvents.LogMessageProto logMessage_;
/**
*
* Present for events representing textual log messages.
*
*
* optional .cloud_trace.LogMessageProto log_message = 5;
* @return Whether the logMessage field is set.
*/
@java.lang.Override
public boolean hasLogMessage() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Present for events representing textual log messages.
*
*
* optional .cloud_trace.LogMessageProto log_message = 5;
* @return The logMessage.
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.LogMessageProto getLogMessage() {
return logMessage_ == null ? com.google.apphosting.base.protos.TraceEvents.LogMessageProto.getDefaultInstance() : logMessage_;
}
/**
*
* Present for events representing textual log messages.
*
*
* optional .cloud_trace.LogMessageProto log_message = 5;
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.LogMessageProtoOrBuilder getLogMessageOrBuilder() {
return logMessage_ == null ? com.google.apphosting.base.protos.TraceEvents.LogMessageProto.getDefaultInstance() : logMessage_;
}
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.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, timestamp_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getStartSpan());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getEndSpan());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getAnnotateSpan());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getLogMessage());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, timestamp_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getStartSpan());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getEndSpan());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getAnnotateSpan());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getLogMessage());
}
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.google.apphosting.base.protos.TraceEvents.SpanEventProto)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.TraceEvents.SpanEventProto other = (com.google.apphosting.base.protos.TraceEvents.SpanEventProto) obj;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (getTimestamp()
!= other.getTimestamp()) return false;
}
if (hasStartSpan() != other.hasStartSpan()) return false;
if (hasStartSpan()) {
if (!getStartSpan()
.equals(other.getStartSpan())) return false;
}
if (hasEndSpan() != other.hasEndSpan()) return false;
if (hasEndSpan()) {
if (!getEndSpan()
.equals(other.getEndSpan())) return false;
}
if (hasAnnotateSpan() != other.hasAnnotateSpan()) return false;
if (hasAnnotateSpan()) {
if (!getAnnotateSpan()
.equals(other.getAnnotateSpan())) return false;
}
if (hasLogMessage() != other.hasLogMessage()) return false;
if (hasLogMessage()) {
if (!getLogMessage()
.equals(other.getLogMessage())) 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();
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
}
if (hasStartSpan()) {
hash = (37 * hash) + START_SPAN_FIELD_NUMBER;
hash = (53 * hash) + getStartSpan().hashCode();
}
if (hasEndSpan()) {
hash = (37 * hash) + END_SPAN_FIELD_NUMBER;
hash = (53 * hash) + getEndSpan().hashCode();
}
if (hasAnnotateSpan()) {
hash = (37 * hash) + ANNOTATE_SPAN_FIELD_NUMBER;
hash = (53 * hash) + getAnnotateSpan().hashCode();
}
if (hasLogMessage()) {
hash = (37 * hash) + LOG_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getLogMessage().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventProto 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.google.apphosting.base.protos.TraceEvents.SpanEventProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventProto 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.google.apphosting.base.protos.TraceEvents.SpanEventProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.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.google.apphosting.base.protos.TraceEvents.SpanEventProto 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.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Thie message holds the detail for a single event associated with a span.
* Its span id, trace id, and project id must be derived from this message's
* context (e.g. its parent SpanEventsProto and grandparent TraceEventsProto).
*
*
* Protobuf type {@code cloud_trace.SpanEventProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cloud_trace.SpanEventProto)
com.google.apphosting.base.protos.TraceEvents.SpanEventProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_SpanEventProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_SpanEventProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.SpanEventProto.class, com.google.apphosting.base.protos.TraceEvents.SpanEventProto.Builder.class);
}
// Construct using com.google.apphosting.base.protos.TraceEvents.SpanEventProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStartSpanFieldBuilder();
getEndSpanFieldBuilder();
getAnnotateSpanFieldBuilder();
getLogMessageFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
timestamp_ = 0L;
startSpan_ = null;
if (startSpanBuilder_ != null) {
startSpanBuilder_.dispose();
startSpanBuilder_ = null;
}
endSpan_ = null;
if (endSpanBuilder_ != null) {
endSpanBuilder_.dispose();
endSpanBuilder_ = null;
}
annotateSpan_ = null;
if (annotateSpanBuilder_ != null) {
annotateSpanBuilder_.dispose();
annotateSpanBuilder_ = null;
}
logMessage_ = null;
if (logMessageBuilder_ != null) {
logMessageBuilder_.dispose();
logMessageBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_SpanEventProto_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.SpanEventProto getDefaultInstanceForType() {
return com.google.apphosting.base.protos.TraceEvents.SpanEventProto.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.SpanEventProto build() {
com.google.apphosting.base.protos.TraceEvents.SpanEventProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.SpanEventProto buildPartial() {
com.google.apphosting.base.protos.TraceEvents.SpanEventProto result = new com.google.apphosting.base.protos.TraceEvents.SpanEventProto(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.base.protos.TraceEvents.SpanEventProto result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.timestamp_ = timestamp_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.startSpan_ = startSpanBuilder_ == null
? startSpan_
: startSpanBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.endSpan_ = endSpanBuilder_ == null
? endSpan_
: endSpanBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.annotateSpan_ = annotateSpanBuilder_ == null
? annotateSpan_
: annotateSpanBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.logMessage_ = logMessageBuilder_ == null
? logMessage_
: logMessageBuilder_.build();
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.base.protos.TraceEvents.SpanEventProto) {
return mergeFrom((com.google.apphosting.base.protos.TraceEvents.SpanEventProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.TraceEvents.SpanEventProto other) {
if (other == com.google.apphosting.base.protos.TraceEvents.SpanEventProto.getDefaultInstance()) return this;
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
if (other.hasStartSpan()) {
mergeStartSpan(other.getStartSpan());
}
if (other.hasEndSpan()) {
mergeEndSpan(other.getEndSpan());
}
if (other.hasAnnotateSpan()) {
mergeAnnotateSpan(other.getAnnotateSpan());
}
if (other.hasLogMessage()) {
mergeLogMessage(other.getLogMessage());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.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 8: {
timestamp_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
input.readMessage(
getStartSpanFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getEndSpanFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getAnnotateSpanFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getLogMessageFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long timestamp_ ;
/**
*
* The timestamp for this event, in nanoseconds since the epoch.
*
*
* optional int64 timestamp = 1;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The timestamp for this event, in nanoseconds since the epoch.
*
*
* optional int64 timestamp = 1;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
/**
*
* The timestamp for this event, in nanoseconds since the epoch.
*
*
* optional int64 timestamp = 1;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The timestamp for this event, in nanoseconds since the epoch.
*
*
* optional int64 timestamp = 1;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000001);
timestamp_ = 0L;
onChanged();
return this;
}
private com.google.apphosting.base.protos.TraceEvents.StartSpanProto startSpan_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.StartSpanProto, com.google.apphosting.base.protos.TraceEvents.StartSpanProto.Builder, com.google.apphosting.base.protos.TraceEvents.StartSpanProtoOrBuilder> startSpanBuilder_;
/**
*
* Present only if this event represents the start of a span.
*
*
* optional .cloud_trace.StartSpanProto start_span = 2;
* @return Whether the startSpan field is set.
*/
public boolean hasStartSpan() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Present only if this event represents the start of a span.
*
*
* optional .cloud_trace.StartSpanProto start_span = 2;
* @return The startSpan.
*/
public com.google.apphosting.base.protos.TraceEvents.StartSpanProto getStartSpan() {
if (startSpanBuilder_ == null) {
return startSpan_ == null ? com.google.apphosting.base.protos.TraceEvents.StartSpanProto.getDefaultInstance() : startSpan_;
} else {
return startSpanBuilder_.getMessage();
}
}
/**
*
* Present only if this event represents the start of a span.
*
*
* optional .cloud_trace.StartSpanProto start_span = 2;
*/
public Builder setStartSpan(com.google.apphosting.base.protos.TraceEvents.StartSpanProto value) {
if (startSpanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startSpan_ = value;
} else {
startSpanBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Present only if this event represents the start of a span.
*
*
* optional .cloud_trace.StartSpanProto start_span = 2;
*/
public Builder setStartSpan(
com.google.apphosting.base.protos.TraceEvents.StartSpanProto.Builder builderForValue) {
if (startSpanBuilder_ == null) {
startSpan_ = builderForValue.build();
} else {
startSpanBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Present only if this event represents the start of a span.
*
*
* optional .cloud_trace.StartSpanProto start_span = 2;
*/
public Builder mergeStartSpan(com.google.apphosting.base.protos.TraceEvents.StartSpanProto value) {
if (startSpanBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
startSpan_ != null &&
startSpan_ != com.google.apphosting.base.protos.TraceEvents.StartSpanProto.getDefaultInstance()) {
getStartSpanBuilder().mergeFrom(value);
} else {
startSpan_ = value;
}
} else {
startSpanBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Present only if this event represents the start of a span.
*
*
* optional .cloud_trace.StartSpanProto start_span = 2;
*/
public Builder clearStartSpan() {
bitField0_ = (bitField0_ & ~0x00000002);
startSpan_ = null;
if (startSpanBuilder_ != null) {
startSpanBuilder_.dispose();
startSpanBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Present only if this event represents the start of a span.
*
*
* optional .cloud_trace.StartSpanProto start_span = 2;
*/
public com.google.apphosting.base.protos.TraceEvents.StartSpanProto.Builder getStartSpanBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getStartSpanFieldBuilder().getBuilder();
}
/**
*
* Present only if this event represents the start of a span.
*
*
* optional .cloud_trace.StartSpanProto start_span = 2;
*/
public com.google.apphosting.base.protos.TraceEvents.StartSpanProtoOrBuilder getStartSpanOrBuilder() {
if (startSpanBuilder_ != null) {
return startSpanBuilder_.getMessageOrBuilder();
} else {
return startSpan_ == null ?
com.google.apphosting.base.protos.TraceEvents.StartSpanProto.getDefaultInstance() : startSpan_;
}
}
/**
*
* Present only if this event represents the start of a span.
*
*
* optional .cloud_trace.StartSpanProto start_span = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.StartSpanProto, com.google.apphosting.base.protos.TraceEvents.StartSpanProto.Builder, com.google.apphosting.base.protos.TraceEvents.StartSpanProtoOrBuilder>
getStartSpanFieldBuilder() {
if (startSpanBuilder_ == null) {
startSpanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.StartSpanProto, com.google.apphosting.base.protos.TraceEvents.StartSpanProto.Builder, com.google.apphosting.base.protos.TraceEvents.StartSpanProtoOrBuilder>(
getStartSpan(),
getParentForChildren(),
isClean());
startSpan_ = null;
}
return startSpanBuilder_;
}
private com.google.apphosting.base.protos.TraceEvents.EndSpanProto endSpan_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.EndSpanProto, com.google.apphosting.base.protos.TraceEvents.EndSpanProto.Builder, com.google.apphosting.base.protos.TraceEvents.EndSpanProtoOrBuilder> endSpanBuilder_;
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.EndSpanProto end_span = 3;
* @return Whether the endSpan field is set.
*/
public boolean hasEndSpan() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.EndSpanProto end_span = 3;
* @return The endSpan.
*/
public com.google.apphosting.base.protos.TraceEvents.EndSpanProto getEndSpan() {
if (endSpanBuilder_ == null) {
return endSpan_ == null ? com.google.apphosting.base.protos.TraceEvents.EndSpanProto.getDefaultInstance() : endSpan_;
} else {
return endSpanBuilder_.getMessage();
}
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.EndSpanProto end_span = 3;
*/
public Builder setEndSpan(com.google.apphosting.base.protos.TraceEvents.EndSpanProto value) {
if (endSpanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endSpan_ = value;
} else {
endSpanBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.EndSpanProto end_span = 3;
*/
public Builder setEndSpan(
com.google.apphosting.base.protos.TraceEvents.EndSpanProto.Builder builderForValue) {
if (endSpanBuilder_ == null) {
endSpan_ = builderForValue.build();
} else {
endSpanBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.EndSpanProto end_span = 3;
*/
public Builder mergeEndSpan(com.google.apphosting.base.protos.TraceEvents.EndSpanProto value) {
if (endSpanBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
endSpan_ != null &&
endSpan_ != com.google.apphosting.base.protos.TraceEvents.EndSpanProto.getDefaultInstance()) {
getEndSpanBuilder().mergeFrom(value);
} else {
endSpan_ = value;
}
} else {
endSpanBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.EndSpanProto end_span = 3;
*/
public Builder clearEndSpan() {
bitField0_ = (bitField0_ & ~0x00000004);
endSpan_ = null;
if (endSpanBuilder_ != null) {
endSpanBuilder_.dispose();
endSpanBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.EndSpanProto end_span = 3;
*/
public com.google.apphosting.base.protos.TraceEvents.EndSpanProto.Builder getEndSpanBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getEndSpanFieldBuilder().getBuilder();
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.EndSpanProto end_span = 3;
*/
public com.google.apphosting.base.protos.TraceEvents.EndSpanProtoOrBuilder getEndSpanOrBuilder() {
if (endSpanBuilder_ != null) {
return endSpanBuilder_.getMessageOrBuilder();
} else {
return endSpan_ == null ?
com.google.apphosting.base.protos.TraceEvents.EndSpanProto.getDefaultInstance() : endSpan_;
}
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.EndSpanProto end_span = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.EndSpanProto, com.google.apphosting.base.protos.TraceEvents.EndSpanProto.Builder, com.google.apphosting.base.protos.TraceEvents.EndSpanProtoOrBuilder>
getEndSpanFieldBuilder() {
if (endSpanBuilder_ == null) {
endSpanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.EndSpanProto, com.google.apphosting.base.protos.TraceEvents.EndSpanProto.Builder, com.google.apphosting.base.protos.TraceEvents.EndSpanProtoOrBuilder>(
getEndSpan(),
getParentForChildren(),
isClean());
endSpan_ = null;
}
return endSpanBuilder_;
}
private com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto annotateSpan_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto, com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.Builder, com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProtoOrBuilder> annotateSpanBuilder_;
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.AnnotateSpanProto annotate_span = 4;
* @return Whether the annotateSpan field is set.
*/
public boolean hasAnnotateSpan() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.AnnotateSpanProto annotate_span = 4;
* @return The annotateSpan.
*/
public com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto getAnnotateSpan() {
if (annotateSpanBuilder_ == null) {
return annotateSpan_ == null ? com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.getDefaultInstance() : annotateSpan_;
} else {
return annotateSpanBuilder_.getMessage();
}
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.AnnotateSpanProto annotate_span = 4;
*/
public Builder setAnnotateSpan(com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto value) {
if (annotateSpanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
annotateSpan_ = value;
} else {
annotateSpanBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.AnnotateSpanProto annotate_span = 4;
*/
public Builder setAnnotateSpan(
com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.Builder builderForValue) {
if (annotateSpanBuilder_ == null) {
annotateSpan_ = builderForValue.build();
} else {
annotateSpanBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.AnnotateSpanProto annotate_span = 4;
*/
public Builder mergeAnnotateSpan(com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto value) {
if (annotateSpanBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
annotateSpan_ != null &&
annotateSpan_ != com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.getDefaultInstance()) {
getAnnotateSpanBuilder().mergeFrom(value);
} else {
annotateSpan_ = value;
}
} else {
annotateSpanBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.AnnotateSpanProto annotate_span = 4;
*/
public Builder clearAnnotateSpan() {
bitField0_ = (bitField0_ & ~0x00000008);
annotateSpan_ = null;
if (annotateSpanBuilder_ != null) {
annotateSpanBuilder_.dispose();
annotateSpanBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.AnnotateSpanProto annotate_span = 4;
*/
public com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.Builder getAnnotateSpanBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getAnnotateSpanFieldBuilder().getBuilder();
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.AnnotateSpanProto annotate_span = 4;
*/
public com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProtoOrBuilder getAnnotateSpanOrBuilder() {
if (annotateSpanBuilder_ != null) {
return annotateSpanBuilder_.getMessageOrBuilder();
} else {
return annotateSpan_ == null ?
com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.getDefaultInstance() : annotateSpan_;
}
}
/**
*
* Present only if this event represents the end of a span.
*
*
* optional .cloud_trace.AnnotateSpanProto annotate_span = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto, com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.Builder, com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProtoOrBuilder>
getAnnotateSpanFieldBuilder() {
if (annotateSpanBuilder_ == null) {
annotateSpanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto, com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.Builder, com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProtoOrBuilder>(
getAnnotateSpan(),
getParentForChildren(),
isClean());
annotateSpan_ = null;
}
return annotateSpanBuilder_;
}
private com.google.apphosting.base.protos.TraceEvents.LogMessageProto logMessage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.LogMessageProto, com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Builder, com.google.apphosting.base.protos.TraceEvents.LogMessageProtoOrBuilder> logMessageBuilder_;
/**
*
* Present for events representing textual log messages.
*
*
* optional .cloud_trace.LogMessageProto log_message = 5;
* @return Whether the logMessage field is set.
*/
public boolean hasLogMessage() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Present for events representing textual log messages.
*
*
* optional .cloud_trace.LogMessageProto log_message = 5;
* @return The logMessage.
*/
public com.google.apphosting.base.protos.TraceEvents.LogMessageProto getLogMessage() {
if (logMessageBuilder_ == null) {
return logMessage_ == null ? com.google.apphosting.base.protos.TraceEvents.LogMessageProto.getDefaultInstance() : logMessage_;
} else {
return logMessageBuilder_.getMessage();
}
}
/**
*
* Present for events representing textual log messages.
*
*
* optional .cloud_trace.LogMessageProto log_message = 5;
*/
public Builder setLogMessage(com.google.apphosting.base.protos.TraceEvents.LogMessageProto value) {
if (logMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
logMessage_ = value;
} else {
logMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Present for events representing textual log messages.
*
*
* optional .cloud_trace.LogMessageProto log_message = 5;
*/
public Builder setLogMessage(
com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Builder builderForValue) {
if (logMessageBuilder_ == null) {
logMessage_ = builderForValue.build();
} else {
logMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Present for events representing textual log messages.
*
*
* optional .cloud_trace.LogMessageProto log_message = 5;
*/
public Builder mergeLogMessage(com.google.apphosting.base.protos.TraceEvents.LogMessageProto value) {
if (logMessageBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
logMessage_ != null &&
logMessage_ != com.google.apphosting.base.protos.TraceEvents.LogMessageProto.getDefaultInstance()) {
getLogMessageBuilder().mergeFrom(value);
} else {
logMessage_ = value;
}
} else {
logMessageBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Present for events representing textual log messages.
*
*
* optional .cloud_trace.LogMessageProto log_message = 5;
*/
public Builder clearLogMessage() {
bitField0_ = (bitField0_ & ~0x00000010);
logMessage_ = null;
if (logMessageBuilder_ != null) {
logMessageBuilder_.dispose();
logMessageBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Present for events representing textual log messages.
*
*
* optional .cloud_trace.LogMessageProto log_message = 5;
*/
public com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Builder getLogMessageBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getLogMessageFieldBuilder().getBuilder();
}
/**
*
* Present for events representing textual log messages.
*
*
* optional .cloud_trace.LogMessageProto log_message = 5;
*/
public com.google.apphosting.base.protos.TraceEvents.LogMessageProtoOrBuilder getLogMessageOrBuilder() {
if (logMessageBuilder_ != null) {
return logMessageBuilder_.getMessageOrBuilder();
} else {
return logMessage_ == null ?
com.google.apphosting.base.protos.TraceEvents.LogMessageProto.getDefaultInstance() : logMessage_;
}
}
/**
*
* Present for events representing textual log messages.
*
*
* optional .cloud_trace.LogMessageProto log_message = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.LogMessageProto, com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Builder, com.google.apphosting.base.protos.TraceEvents.LogMessageProtoOrBuilder>
getLogMessageFieldBuilder() {
if (logMessageBuilder_ == null) {
logMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.TraceEvents.LogMessageProto, com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Builder, com.google.apphosting.base.protos.TraceEvents.LogMessageProtoOrBuilder>(
getLogMessage(),
getParentForChildren(),
isClean());
logMessage_ = null;
}
return logMessageBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cloud_trace.SpanEventProto)
}
// @@protoc_insertion_point(class_scope:cloud_trace.SpanEventProto)
private static final com.google.apphosting.base.protos.TraceEvents.SpanEventProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.TraceEvents.SpanEventProto();
}
public static com.google.apphosting.base.protos.TraceEvents.SpanEventProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SpanEventProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.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.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.SpanEventProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface StartSpanProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cloud_trace.StartSpanProto)
com.google.protobuf.MessageOrBuilder {
/**
*
* The id of this span's parent. The parent span is assumed to be part of
* the same trace as this span and thus have the same trace id.
*
*
* optional .cloud_trace.SpanIdProto parent_span_id = 1;
* @return Whether the parentSpanId field is set.
*/
boolean hasParentSpanId();
/**
*
* The id of this span's parent. The parent span is assumed to be part of
* the same trace as this span and thus have the same trace id.
*
*
* optional .cloud_trace.SpanIdProto parent_span_id = 1;
* @return The parentSpanId.
*/
com.google.apphosting.base.protos.SpanId.SpanIdProto getParentSpanId();
/**
*
* The id of this span's parent. The parent span is assumed to be part of
* the same trace as this span and thus have the same trace id.
*
*
* optional .cloud_trace.SpanIdProto parent_span_id = 1;
*/
com.google.apphosting.base.protos.SpanId.SpanIdProtoOrBuilder getParentSpanIdOrBuilder();
/**
*
* The name of the span.
*
*
* optional string name = 3;
* @return Whether the name field is set.
*/
boolean hasName();
/**
*
* The name of the span.
*
*
* optional string name = 3;
* @return The name.
*/
java.lang.String getName();
/**
*
* The name of the span.
*
*
* optional string name = 3;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* The kind of the span.
*
*
* optional .cloud_trace.SpanKind kind = 4;
* @return Whether the kind field is set.
*/
boolean hasKind();
/**
*
* The kind of the span.
*
*
* optional .cloud_trace.SpanKind kind = 4;
* @return The kind.
*/
com.google.apphosting.base.protos.SpanKindOuterClass.SpanKind getKind();
/**
*
* Whether this span is a primary span. We only search and return the primary
* spans of a trace when a ROOTSPAN view is requested. In most cases, primary
* spans are also root spans.
*
*
* optional bool is_primary = 5;
* @return Whether the isPrimary field is set.
*/
boolean hasIsPrimary();
/**
*
* Whether this span is a primary span. We only search and return the primary
* spans of a trace when a ROOTSPAN view is requested. In most cases, primary
* spans are also root spans.
*
*
* optional bool is_primary = 5;
* @return The isPrimary.
*/
boolean getIsPrimary();
}
/**
* Protobuf type {@code cloud_trace.StartSpanProto}
*/
public static final class StartSpanProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cloud_trace.StartSpanProto)
StartSpanProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use StartSpanProto.newBuilder() to construct.
private StartSpanProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StartSpanProto() {
name_ = "";
kind_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StartSpanProto();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_StartSpanProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_StartSpanProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.StartSpanProto.class, com.google.apphosting.base.protos.TraceEvents.StartSpanProto.Builder.class);
}
private int bitField0_;
public static final int PARENT_SPAN_ID_FIELD_NUMBER = 1;
private com.google.apphosting.base.protos.SpanId.SpanIdProto parentSpanId_;
/**
*
* The id of this span's parent. The parent span is assumed to be part of
* the same trace as this span and thus have the same trace id.
*
*
* optional .cloud_trace.SpanIdProto parent_span_id = 1;
* @return Whether the parentSpanId field is set.
*/
@java.lang.Override
public boolean hasParentSpanId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The id of this span's parent. The parent span is assumed to be part of
* the same trace as this span and thus have the same trace id.
*
*
* optional .cloud_trace.SpanIdProto parent_span_id = 1;
* @return The parentSpanId.
*/
@java.lang.Override
public com.google.apphosting.base.protos.SpanId.SpanIdProto getParentSpanId() {
return parentSpanId_ == null ? com.google.apphosting.base.protos.SpanId.SpanIdProto.getDefaultInstance() : parentSpanId_;
}
/**
*
* The id of this span's parent. The parent span is assumed to be part of
* the same trace as this span and thus have the same trace id.
*
*
* optional .cloud_trace.SpanIdProto parent_span_id = 1;
*/
@java.lang.Override
public com.google.apphosting.base.protos.SpanId.SpanIdProtoOrBuilder getParentSpanIdOrBuilder() {
return parentSpanId_ == null ? com.google.apphosting.base.protos.SpanId.SpanIdProto.getDefaultInstance() : parentSpanId_;
}
public static final int NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
* The name of the span.
*
*
* optional string name = 3;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The name of the span.
*
*
* optional string name = 3;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
* The name of the span.
*
*
* optional string name = 3;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KIND_FIELD_NUMBER = 4;
private int kind_ = 0;
/**
*
* The kind of the span.
*
*
* optional .cloud_trace.SpanKind kind = 4;
* @return Whether the kind field is set.
*/
@java.lang.Override public boolean hasKind() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The kind of the span.
*
*
* optional .cloud_trace.SpanKind kind = 4;
* @return The kind.
*/
@java.lang.Override public com.google.apphosting.base.protos.SpanKindOuterClass.SpanKind getKind() {
com.google.apphosting.base.protos.SpanKindOuterClass.SpanKind result = com.google.apphosting.base.protos.SpanKindOuterClass.SpanKind.forNumber(kind_);
return result == null ? com.google.apphosting.base.protos.SpanKindOuterClass.SpanKind.SPAN_DEFAULT : result;
}
public static final int IS_PRIMARY_FIELD_NUMBER = 5;
private boolean isPrimary_ = false;
/**
*
* Whether this span is a primary span. We only search and return the primary
* spans of a trace when a ROOTSPAN view is requested. In most cases, primary
* spans are also root spans.
*
*
* optional bool is_primary = 5;
* @return Whether the isPrimary field is set.
*/
@java.lang.Override
public boolean hasIsPrimary() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Whether this span is a primary span. We only search and return the primary
* spans of a trace when a ROOTSPAN view is requested. In most cases, primary
* spans are also root spans.
*
*
* optional bool is_primary = 5;
* @return The isPrimary.
*/
@java.lang.Override
public boolean getIsPrimary() {
return isPrimary_;
}
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.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getParentSpanId());
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeEnum(4, kind_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(5, isPrimary_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getParentSpanId());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, kind_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, isPrimary_);
}
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.google.apphosting.base.protos.TraceEvents.StartSpanProto)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.TraceEvents.StartSpanProto other = (com.google.apphosting.base.protos.TraceEvents.StartSpanProto) obj;
if (hasParentSpanId() != other.hasParentSpanId()) return false;
if (hasParentSpanId()) {
if (!getParentSpanId()
.equals(other.getParentSpanId())) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasKind() != other.hasKind()) return false;
if (hasKind()) {
if (kind_ != other.kind_) return false;
}
if (hasIsPrimary() != other.hasIsPrimary()) return false;
if (hasIsPrimary()) {
if (getIsPrimary()
!= other.getIsPrimary()) 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();
if (hasParentSpanId()) {
hash = (37 * hash) + PARENT_SPAN_ID_FIELD_NUMBER;
hash = (53 * hash) + getParentSpanId().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasKind()) {
hash = (37 * hash) + KIND_FIELD_NUMBER;
hash = (53 * hash) + kind_;
}
if (hasIsPrimary()) {
hash = (37 * hash) + IS_PRIMARY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsPrimary());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.TraceEvents.StartSpanProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.StartSpanProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.StartSpanProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.StartSpanProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.StartSpanProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.StartSpanProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.StartSpanProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.StartSpanProto 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.google.apphosting.base.protos.TraceEvents.StartSpanProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.StartSpanProto 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.google.apphosting.base.protos.TraceEvents.StartSpanProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.StartSpanProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.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.google.apphosting.base.protos.TraceEvents.StartSpanProto 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.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cloud_trace.StartSpanProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cloud_trace.StartSpanProto)
com.google.apphosting.base.protos.TraceEvents.StartSpanProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_StartSpanProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_StartSpanProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.StartSpanProto.class, com.google.apphosting.base.protos.TraceEvents.StartSpanProto.Builder.class);
}
// Construct using com.google.apphosting.base.protos.TraceEvents.StartSpanProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getParentSpanIdFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
parentSpanId_ = null;
if (parentSpanIdBuilder_ != null) {
parentSpanIdBuilder_.dispose();
parentSpanIdBuilder_ = null;
}
name_ = "";
kind_ = 0;
isPrimary_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_StartSpanProto_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.StartSpanProto getDefaultInstanceForType() {
return com.google.apphosting.base.protos.TraceEvents.StartSpanProto.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.StartSpanProto build() {
com.google.apphosting.base.protos.TraceEvents.StartSpanProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.StartSpanProto buildPartial() {
com.google.apphosting.base.protos.TraceEvents.StartSpanProto result = new com.google.apphosting.base.protos.TraceEvents.StartSpanProto(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.base.protos.TraceEvents.StartSpanProto result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.parentSpanId_ = parentSpanIdBuilder_ == null
? parentSpanId_
: parentSpanIdBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.name_ = name_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.kind_ = kind_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.isPrimary_ = isPrimary_;
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.base.protos.TraceEvents.StartSpanProto) {
return mergeFrom((com.google.apphosting.base.protos.TraceEvents.StartSpanProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.TraceEvents.StartSpanProto other) {
if (other == com.google.apphosting.base.protos.TraceEvents.StartSpanProto.getDefaultInstance()) return this;
if (other.hasParentSpanId()) {
mergeParentSpanId(other.getParentSpanId());
}
if (other.hasName()) {
name_ = other.name_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasKind()) {
setKind(other.getKind());
}
if (other.hasIsPrimary()) {
setIsPrimary(other.getIsPrimary());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.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: {
input.readMessage(
getParentSpanIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 26: {
name_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 26
case 32: {
int tmpRaw = input.readEnum();
com.google.apphosting.base.protos.SpanKindOuterClass.SpanKind tmpValue =
com.google.apphosting.base.protos.SpanKindOuterClass.SpanKind.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(4, tmpRaw);
} else {
kind_ = tmpRaw;
bitField0_ |= 0x00000004;
}
break;
} // case 32
case 40: {
isPrimary_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.apphosting.base.protos.SpanId.SpanIdProto parentSpanId_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.SpanId.SpanIdProto, com.google.apphosting.base.protos.SpanId.SpanIdProto.Builder, com.google.apphosting.base.protos.SpanId.SpanIdProtoOrBuilder> parentSpanIdBuilder_;
/**
*
* The id of this span's parent. The parent span is assumed to be part of
* the same trace as this span and thus have the same trace id.
*
*
* optional .cloud_trace.SpanIdProto parent_span_id = 1;
* @return Whether the parentSpanId field is set.
*/
public boolean hasParentSpanId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The id of this span's parent. The parent span is assumed to be part of
* the same trace as this span and thus have the same trace id.
*
*
* optional .cloud_trace.SpanIdProto parent_span_id = 1;
* @return The parentSpanId.
*/
public com.google.apphosting.base.protos.SpanId.SpanIdProto getParentSpanId() {
if (parentSpanIdBuilder_ == null) {
return parentSpanId_ == null ? com.google.apphosting.base.protos.SpanId.SpanIdProto.getDefaultInstance() : parentSpanId_;
} else {
return parentSpanIdBuilder_.getMessage();
}
}
/**
*
* The id of this span's parent. The parent span is assumed to be part of
* the same trace as this span and thus have the same trace id.
*
*
* optional .cloud_trace.SpanIdProto parent_span_id = 1;
*/
public Builder setParentSpanId(com.google.apphosting.base.protos.SpanId.SpanIdProto value) {
if (parentSpanIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parentSpanId_ = value;
} else {
parentSpanIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The id of this span's parent. The parent span is assumed to be part of
* the same trace as this span and thus have the same trace id.
*
*
* optional .cloud_trace.SpanIdProto parent_span_id = 1;
*/
public Builder setParentSpanId(
com.google.apphosting.base.protos.SpanId.SpanIdProto.Builder builderForValue) {
if (parentSpanIdBuilder_ == null) {
parentSpanId_ = builderForValue.build();
} else {
parentSpanIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The id of this span's parent. The parent span is assumed to be part of
* the same trace as this span and thus have the same trace id.
*
*
* optional .cloud_trace.SpanIdProto parent_span_id = 1;
*/
public Builder mergeParentSpanId(com.google.apphosting.base.protos.SpanId.SpanIdProto value) {
if (parentSpanIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
parentSpanId_ != null &&
parentSpanId_ != com.google.apphosting.base.protos.SpanId.SpanIdProto.getDefaultInstance()) {
getParentSpanIdBuilder().mergeFrom(value);
} else {
parentSpanId_ = value;
}
} else {
parentSpanIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The id of this span's parent. The parent span is assumed to be part of
* the same trace as this span and thus have the same trace id.
*
*
* optional .cloud_trace.SpanIdProto parent_span_id = 1;
*/
public Builder clearParentSpanId() {
bitField0_ = (bitField0_ & ~0x00000001);
parentSpanId_ = null;
if (parentSpanIdBuilder_ != null) {
parentSpanIdBuilder_.dispose();
parentSpanIdBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* The id of this span's parent. The parent span is assumed to be part of
* the same trace as this span and thus have the same trace id.
*
*
* optional .cloud_trace.SpanIdProto parent_span_id = 1;
*/
public com.google.apphosting.base.protos.SpanId.SpanIdProto.Builder getParentSpanIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getParentSpanIdFieldBuilder().getBuilder();
}
/**
*
* The id of this span's parent. The parent span is assumed to be part of
* the same trace as this span and thus have the same trace id.
*
*
* optional .cloud_trace.SpanIdProto parent_span_id = 1;
*/
public com.google.apphosting.base.protos.SpanId.SpanIdProtoOrBuilder getParentSpanIdOrBuilder() {
if (parentSpanIdBuilder_ != null) {
return parentSpanIdBuilder_.getMessageOrBuilder();
} else {
return parentSpanId_ == null ?
com.google.apphosting.base.protos.SpanId.SpanIdProto.getDefaultInstance() : parentSpanId_;
}
}
/**
*
* The id of this span's parent. The parent span is assumed to be part of
* the same trace as this span and thus have the same trace id.
*
*
* optional .cloud_trace.SpanIdProto parent_span_id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.SpanId.SpanIdProto, com.google.apphosting.base.protos.SpanId.SpanIdProto.Builder, com.google.apphosting.base.protos.SpanId.SpanIdProtoOrBuilder>
getParentSpanIdFieldBuilder() {
if (parentSpanIdBuilder_ == null) {
parentSpanIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.SpanId.SpanIdProto, com.google.apphosting.base.protos.SpanId.SpanIdProto.Builder, com.google.apphosting.base.protos.SpanId.SpanIdProtoOrBuilder>(
getParentSpanId(),
getParentForChildren(),
isClean());
parentSpanId_ = null;
}
return parentSpanIdBuilder_;
}
private java.lang.Object name_ = "";
/**
*
* The name of the span.
*
*
* optional string name = 3;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The name of the span.
*
*
* optional string name = 3;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of the span.
*
*
* optional string name = 3;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the span.
*
*
* optional string name = 3;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The name of the span.
*
*
* optional string name = 3;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The name of the span.
*
*
* optional string name = 3;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
name_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int kind_ = 0;
/**
*
* The kind of the span.
*
*
* optional .cloud_trace.SpanKind kind = 4;
* @return Whether the kind field is set.
*/
@java.lang.Override public boolean hasKind() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* The kind of the span.
*
*
* optional .cloud_trace.SpanKind kind = 4;
* @return The kind.
*/
@java.lang.Override
public com.google.apphosting.base.protos.SpanKindOuterClass.SpanKind getKind() {
com.google.apphosting.base.protos.SpanKindOuterClass.SpanKind result = com.google.apphosting.base.protos.SpanKindOuterClass.SpanKind.forNumber(kind_);
return result == null ? com.google.apphosting.base.protos.SpanKindOuterClass.SpanKind.SPAN_DEFAULT : result;
}
/**
*
* The kind of the span.
*
*
* optional .cloud_trace.SpanKind kind = 4;
* @param value The kind to set.
* @return This builder for chaining.
*/
public Builder setKind(com.google.apphosting.base.protos.SpanKindOuterClass.SpanKind value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
kind_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The kind of the span.
*
*
* optional .cloud_trace.SpanKind kind = 4;
* @return This builder for chaining.
*/
public Builder clearKind() {
bitField0_ = (bitField0_ & ~0x00000004);
kind_ = 0;
onChanged();
return this;
}
private boolean isPrimary_ ;
/**
*
* Whether this span is a primary span. We only search and return the primary
* spans of a trace when a ROOTSPAN view is requested. In most cases, primary
* spans are also root spans.
*
*
* optional bool is_primary = 5;
* @return Whether the isPrimary field is set.
*/
@java.lang.Override
public boolean hasIsPrimary() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Whether this span is a primary span. We only search and return the primary
* spans of a trace when a ROOTSPAN view is requested. In most cases, primary
* spans are also root spans.
*
*
* optional bool is_primary = 5;
* @return The isPrimary.
*/
@java.lang.Override
public boolean getIsPrimary() {
return isPrimary_;
}
/**
*
* Whether this span is a primary span. We only search and return the primary
* spans of a trace when a ROOTSPAN view is requested. In most cases, primary
* spans are also root spans.
*
*
* optional bool is_primary = 5;
* @param value The isPrimary to set.
* @return This builder for chaining.
*/
public Builder setIsPrimary(boolean value) {
isPrimary_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Whether this span is a primary span. We only search and return the primary
* spans of a trace when a ROOTSPAN view is requested. In most cases, primary
* spans are also root spans.
*
*
* optional bool is_primary = 5;
* @return This builder for chaining.
*/
public Builder clearIsPrimary() {
bitField0_ = (bitField0_ & ~0x00000008);
isPrimary_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cloud_trace.StartSpanProto)
}
// @@protoc_insertion_point(class_scope:cloud_trace.StartSpanProto)
private static final com.google.apphosting.base.protos.TraceEvents.StartSpanProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.TraceEvents.StartSpanProto();
}
public static com.google.apphosting.base.protos.TraceEvents.StartSpanProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StartSpanProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.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.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.StartSpanProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EndSpanProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cloud_trace.EndSpanProto)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code cloud_trace.EndSpanProto}
*/
public static final class EndSpanProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cloud_trace.EndSpanProto)
EndSpanProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use EndSpanProto.newBuilder() to construct.
private EndSpanProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EndSpanProto() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EndSpanProto();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_EndSpanProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_EndSpanProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.EndSpanProto.class, com.google.apphosting.base.protos.TraceEvents.EndSpanProto.Builder.class);
}
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.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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.google.apphosting.base.protos.TraceEvents.EndSpanProto)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.TraceEvents.EndSpanProto other = (com.google.apphosting.base.protos.TraceEvents.EndSpanProto) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.TraceEvents.EndSpanProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.EndSpanProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.EndSpanProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.EndSpanProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.EndSpanProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.EndSpanProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.EndSpanProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.EndSpanProto 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.google.apphosting.base.protos.TraceEvents.EndSpanProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.EndSpanProto 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.google.apphosting.base.protos.TraceEvents.EndSpanProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.EndSpanProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.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.google.apphosting.base.protos.TraceEvents.EndSpanProto 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.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cloud_trace.EndSpanProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cloud_trace.EndSpanProto)
com.google.apphosting.base.protos.TraceEvents.EndSpanProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_EndSpanProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_EndSpanProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.EndSpanProto.class, com.google.apphosting.base.protos.TraceEvents.EndSpanProto.Builder.class);
}
// Construct using com.google.apphosting.base.protos.TraceEvents.EndSpanProto.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_EndSpanProto_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.EndSpanProto getDefaultInstanceForType() {
return com.google.apphosting.base.protos.TraceEvents.EndSpanProto.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.EndSpanProto build() {
com.google.apphosting.base.protos.TraceEvents.EndSpanProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.EndSpanProto buildPartial() {
com.google.apphosting.base.protos.TraceEvents.EndSpanProto result = new com.google.apphosting.base.protos.TraceEvents.EndSpanProto(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.base.protos.TraceEvents.EndSpanProto) {
return mergeFrom((com.google.apphosting.base.protos.TraceEvents.EndSpanProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.TraceEvents.EndSpanProto other) {
if (other == com.google.apphosting.base.protos.TraceEvents.EndSpanProto.getDefaultInstance()) return this;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.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;
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cloud_trace.EndSpanProto)
}
// @@protoc_insertion_point(class_scope:cloud_trace.EndSpanProto)
private static final com.google.apphosting.base.protos.TraceEvents.EndSpanProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.TraceEvents.EndSpanProto();
}
public static com.google.apphosting.base.protos.TraceEvents.EndSpanProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EndSpanProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.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.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.EndSpanProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AnnotateSpanProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cloud_trace.AnnotateSpanProto)
com.google.protobuf.MessageOrBuilder {
/**
*
* A set of labels containing the annotations for the span.
*
*
* optional .cloud_trace.LabelsProto labels = 2;
* @return Whether the labels field is set.
*/
boolean hasLabels();
/**
*
* A set of labels containing the annotations for the span.
*
*
* optional .cloud_trace.LabelsProto labels = 2;
* @return The labels.
*/
com.google.apphosting.base.protos.LabelsProtos.LabelsProto getLabels();
/**
*
* A set of labels containing the annotations for the span.
*
*
* optional .cloud_trace.LabelsProto labels = 2;
*/
com.google.apphosting.base.protos.LabelsProtos.LabelsProtoOrBuilder getLabelsOrBuilder();
/**
*
* A message containing additional annotations for the span.
*
*
* optional .cloud_trace.SpanDetailsProto span_details = 3;
* @return Whether the spanDetails field is set.
*/
boolean hasSpanDetails();
/**
*
* A message containing additional annotations for the span.
*
*
* optional .cloud_trace.SpanDetailsProto span_details = 3;
* @return The spanDetails.
*/
com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto getSpanDetails();
/**
*
* A message containing additional annotations for the span.
*
*
* optional .cloud_trace.SpanDetailsProto span_details = 3;
*/
com.google.apphosting.base.protos.SpanDetails.SpanDetailsProtoOrBuilder getSpanDetailsOrBuilder();
}
/**
* Protobuf type {@code cloud_trace.AnnotateSpanProto}
*/
public static final class AnnotateSpanProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cloud_trace.AnnotateSpanProto)
AnnotateSpanProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use AnnotateSpanProto.newBuilder() to construct.
private AnnotateSpanProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AnnotateSpanProto() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AnnotateSpanProto();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_AnnotateSpanProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_AnnotateSpanProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.class, com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.Builder.class);
}
private int bitField0_;
public static final int LABELS_FIELD_NUMBER = 2;
private com.google.apphosting.base.protos.LabelsProtos.LabelsProto labels_;
/**
*
* A set of labels containing the annotations for the span.
*
*
* optional .cloud_trace.LabelsProto labels = 2;
* @return Whether the labels field is set.
*/
@java.lang.Override
public boolean hasLabels() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* A set of labels containing the annotations for the span.
*
*
* optional .cloud_trace.LabelsProto labels = 2;
* @return The labels.
*/
@java.lang.Override
public com.google.apphosting.base.protos.LabelsProtos.LabelsProto getLabels() {
return labels_ == null ? com.google.apphosting.base.protos.LabelsProtos.LabelsProto.getDefaultInstance() : labels_;
}
/**
*
* A set of labels containing the annotations for the span.
*
*
* optional .cloud_trace.LabelsProto labels = 2;
*/
@java.lang.Override
public com.google.apphosting.base.protos.LabelsProtos.LabelsProtoOrBuilder getLabelsOrBuilder() {
return labels_ == null ? com.google.apphosting.base.protos.LabelsProtos.LabelsProto.getDefaultInstance() : labels_;
}
public static final int SPAN_DETAILS_FIELD_NUMBER = 3;
private com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto spanDetails_;
/**
*
* A message containing additional annotations for the span.
*
*
* optional .cloud_trace.SpanDetailsProto span_details = 3;
* @return Whether the spanDetails field is set.
*/
@java.lang.Override
public boolean hasSpanDetails() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* A message containing additional annotations for the span.
*
*
* optional .cloud_trace.SpanDetailsProto span_details = 3;
* @return The spanDetails.
*/
@java.lang.Override
public com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto getSpanDetails() {
return spanDetails_ == null ? com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto.getDefaultInstance() : spanDetails_;
}
/**
*
* A message containing additional annotations for the span.
*
*
* optional .cloud_trace.SpanDetailsProto span_details = 3;
*/
@java.lang.Override
public com.google.apphosting.base.protos.SpanDetails.SpanDetailsProtoOrBuilder getSpanDetailsOrBuilder() {
return spanDetails_ == null ? com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto.getDefaultInstance() : spanDetails_;
}
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.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getLabels());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getSpanDetails());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getLabels());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getSpanDetails());
}
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.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto other = (com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto) obj;
if (hasLabels() != other.hasLabels()) return false;
if (hasLabels()) {
if (!getLabels()
.equals(other.getLabels())) return false;
}
if (hasSpanDetails() != other.hasSpanDetails()) return false;
if (hasSpanDetails()) {
if (!getSpanDetails()
.equals(other.getSpanDetails())) 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();
if (hasLabels()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + getLabels().hashCode();
}
if (hasSpanDetails()) {
hash = (37 * hash) + SPAN_DETAILS_FIELD_NUMBER;
hash = (53 * hash) + getSpanDetails().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto 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.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto 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.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.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.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto 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.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cloud_trace.AnnotateSpanProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cloud_trace.AnnotateSpanProto)
com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_AnnotateSpanProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_AnnotateSpanProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.class, com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.Builder.class);
}
// Construct using com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLabelsFieldBuilder();
getSpanDetailsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
labels_ = null;
if (labelsBuilder_ != null) {
labelsBuilder_.dispose();
labelsBuilder_ = null;
}
spanDetails_ = null;
if (spanDetailsBuilder_ != null) {
spanDetailsBuilder_.dispose();
spanDetailsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_AnnotateSpanProto_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto getDefaultInstanceForType() {
return com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto build() {
com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto buildPartial() {
com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto result = new com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.labels_ = labelsBuilder_ == null
? labels_
: labelsBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.spanDetails_ = spanDetailsBuilder_ == null
? spanDetails_
: spanDetailsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto) {
return mergeFrom((com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto other) {
if (other == com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto.getDefaultInstance()) return this;
if (other.hasLabels()) {
mergeLabels(other.getLabels());
}
if (other.hasSpanDetails()) {
mergeSpanDetails(other.getSpanDetails());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.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 18: {
input.readMessage(
getLabelsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 18
case 26: {
input.readMessage(
getSpanDetailsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.apphosting.base.protos.LabelsProtos.LabelsProto labels_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.LabelsProtos.LabelsProto, com.google.apphosting.base.protos.LabelsProtos.LabelsProto.Builder, com.google.apphosting.base.protos.LabelsProtos.LabelsProtoOrBuilder> labelsBuilder_;
/**
*
* A set of labels containing the annotations for the span.
*
*
* optional .cloud_trace.LabelsProto labels = 2;
* @return Whether the labels field is set.
*/
public boolean hasLabels() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* A set of labels containing the annotations for the span.
*
*
* optional .cloud_trace.LabelsProto labels = 2;
* @return The labels.
*/
public com.google.apphosting.base.protos.LabelsProtos.LabelsProto getLabels() {
if (labelsBuilder_ == null) {
return labels_ == null ? com.google.apphosting.base.protos.LabelsProtos.LabelsProto.getDefaultInstance() : labels_;
} else {
return labelsBuilder_.getMessage();
}
}
/**
*
* A set of labels containing the annotations for the span.
*
*
* optional .cloud_trace.LabelsProto labels = 2;
*/
public Builder setLabels(com.google.apphosting.base.protos.LabelsProtos.LabelsProto value) {
if (labelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
labels_ = value;
} else {
labelsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A set of labels containing the annotations for the span.
*
*
* optional .cloud_trace.LabelsProto labels = 2;
*/
public Builder setLabels(
com.google.apphosting.base.protos.LabelsProtos.LabelsProto.Builder builderForValue) {
if (labelsBuilder_ == null) {
labels_ = builderForValue.build();
} else {
labelsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A set of labels containing the annotations for the span.
*
*
* optional .cloud_trace.LabelsProto labels = 2;
*/
public Builder mergeLabels(com.google.apphosting.base.protos.LabelsProtos.LabelsProto value) {
if (labelsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
labels_ != null &&
labels_ != com.google.apphosting.base.protos.LabelsProtos.LabelsProto.getDefaultInstance()) {
getLabelsBuilder().mergeFrom(value);
} else {
labels_ = value;
}
} else {
labelsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* A set of labels containing the annotations for the span.
*
*
* optional .cloud_trace.LabelsProto labels = 2;
*/
public Builder clearLabels() {
bitField0_ = (bitField0_ & ~0x00000001);
labels_ = null;
if (labelsBuilder_ != null) {
labelsBuilder_.dispose();
labelsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* A set of labels containing the annotations for the span.
*
*
* optional .cloud_trace.LabelsProto labels = 2;
*/
public com.google.apphosting.base.protos.LabelsProtos.LabelsProto.Builder getLabelsBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getLabelsFieldBuilder().getBuilder();
}
/**
*
* A set of labels containing the annotations for the span.
*
*
* optional .cloud_trace.LabelsProto labels = 2;
*/
public com.google.apphosting.base.protos.LabelsProtos.LabelsProtoOrBuilder getLabelsOrBuilder() {
if (labelsBuilder_ != null) {
return labelsBuilder_.getMessageOrBuilder();
} else {
return labels_ == null ?
com.google.apphosting.base.protos.LabelsProtos.LabelsProto.getDefaultInstance() : labels_;
}
}
/**
*
* A set of labels containing the annotations for the span.
*
*
* optional .cloud_trace.LabelsProto labels = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.LabelsProtos.LabelsProto, com.google.apphosting.base.protos.LabelsProtos.LabelsProto.Builder, com.google.apphosting.base.protos.LabelsProtos.LabelsProtoOrBuilder>
getLabelsFieldBuilder() {
if (labelsBuilder_ == null) {
labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.LabelsProtos.LabelsProto, com.google.apphosting.base.protos.LabelsProtos.LabelsProto.Builder, com.google.apphosting.base.protos.LabelsProtos.LabelsProtoOrBuilder>(
getLabels(),
getParentForChildren(),
isClean());
labels_ = null;
}
return labelsBuilder_;
}
private com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto spanDetails_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto, com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto.Builder, com.google.apphosting.base.protos.SpanDetails.SpanDetailsProtoOrBuilder> spanDetailsBuilder_;
/**
*
* A message containing additional annotations for the span.
*
*
* optional .cloud_trace.SpanDetailsProto span_details = 3;
* @return Whether the spanDetails field is set.
*/
public boolean hasSpanDetails() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* A message containing additional annotations for the span.
*
*
* optional .cloud_trace.SpanDetailsProto span_details = 3;
* @return The spanDetails.
*/
public com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto getSpanDetails() {
if (spanDetailsBuilder_ == null) {
return spanDetails_ == null ? com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto.getDefaultInstance() : spanDetails_;
} else {
return spanDetailsBuilder_.getMessage();
}
}
/**
*
* A message containing additional annotations for the span.
*
*
* optional .cloud_trace.SpanDetailsProto span_details = 3;
*/
public Builder setSpanDetails(com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto value) {
if (spanDetailsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spanDetails_ = value;
} else {
spanDetailsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* A message containing additional annotations for the span.
*
*
* optional .cloud_trace.SpanDetailsProto span_details = 3;
*/
public Builder setSpanDetails(
com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto.Builder builderForValue) {
if (spanDetailsBuilder_ == null) {
spanDetails_ = builderForValue.build();
} else {
spanDetailsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* A message containing additional annotations for the span.
*
*
* optional .cloud_trace.SpanDetailsProto span_details = 3;
*/
public Builder mergeSpanDetails(com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto value) {
if (spanDetailsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
spanDetails_ != null &&
spanDetails_ != com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto.getDefaultInstance()) {
getSpanDetailsBuilder().mergeFrom(value);
} else {
spanDetails_ = value;
}
} else {
spanDetailsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* A message containing additional annotations for the span.
*
*
* optional .cloud_trace.SpanDetailsProto span_details = 3;
*/
public Builder clearSpanDetails() {
bitField0_ = (bitField0_ & ~0x00000002);
spanDetails_ = null;
if (spanDetailsBuilder_ != null) {
spanDetailsBuilder_.dispose();
spanDetailsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* A message containing additional annotations for the span.
*
*
* optional .cloud_trace.SpanDetailsProto span_details = 3;
*/
public com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto.Builder getSpanDetailsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSpanDetailsFieldBuilder().getBuilder();
}
/**
*
* A message containing additional annotations for the span.
*
*
* optional .cloud_trace.SpanDetailsProto span_details = 3;
*/
public com.google.apphosting.base.protos.SpanDetails.SpanDetailsProtoOrBuilder getSpanDetailsOrBuilder() {
if (spanDetailsBuilder_ != null) {
return spanDetailsBuilder_.getMessageOrBuilder();
} else {
return spanDetails_ == null ?
com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto.getDefaultInstance() : spanDetails_;
}
}
/**
*
* A message containing additional annotations for the span.
*
*
* optional .cloud_trace.SpanDetailsProto span_details = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto, com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto.Builder, com.google.apphosting.base.protos.SpanDetails.SpanDetailsProtoOrBuilder>
getSpanDetailsFieldBuilder() {
if (spanDetailsBuilder_ == null) {
spanDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto, com.google.apphosting.base.protos.SpanDetails.SpanDetailsProto.Builder, com.google.apphosting.base.protos.SpanDetails.SpanDetailsProtoOrBuilder>(
getSpanDetails(),
getParentForChildren(),
isClean());
spanDetails_ = null;
}
return spanDetailsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cloud_trace.AnnotateSpanProto)
}
// @@protoc_insertion_point(class_scope:cloud_trace.AnnotateSpanProto)
private static final com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto();
}
public static com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AnnotateSpanProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.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.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.AnnotateSpanProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LogMessageProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:cloud_trace.LogMessageProto)
com.google.protobuf.MessageOrBuilder {
/**
* optional .cloud_trace.LogMessageProto.Level level = 2;
* @return Whether the level field is set.
*/
boolean hasLevel();
/**
* optional .cloud_trace.LogMessageProto.Level level = 2;
* @return The level.
*/
com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Level getLevel();
/**
* optional string message = 3;
* @return Whether the message field is set.
*/
boolean hasMessage();
/**
* optional string message = 3;
* @return The message.
*/
java.lang.String getMessage();
/**
* optional string message = 3;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
}
/**
*
* This message represents a single, textual log message associated with a
* span.
* NOTE: Yes, this looks like it could hold messages from our C++
* and/or Java text logging systems. However, that isn't really its intended
* goal (for now). This message should be used for testing/debugging the
* Tapper tracing system.
*
*
* Protobuf type {@code cloud_trace.LogMessageProto}
*/
public static final class LogMessageProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cloud_trace.LogMessageProto)
LogMessageProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use LogMessageProto.newBuilder() to construct.
private LogMessageProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LogMessageProto() {
level_ = 0;
message_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LogMessageProto();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_LogMessageProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_LogMessageProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.LogMessageProto.class, com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Builder.class);
}
/**
* Protobuf enum {@code cloud_trace.LogMessageProto.Level}
*/
public enum Level
implements com.google.protobuf.ProtocolMessageEnum {
/**
* INVALID_LEVEL = 0;
*/
INVALID_LEVEL(0),
/**
* DEBUG = 1;
*/
DEBUG(1),
/**
* INFO = 2;
*/
INFO(2),
/**
* WARNING = 3;
*/
WARNING(3),
/**
* ERROR = 4;
*/
ERROR(4),
;
/**
* INVALID_LEVEL = 0;
*/
public static final int INVALID_LEVEL_VALUE = 0;
/**
* DEBUG = 1;
*/
public static final int DEBUG_VALUE = 1;
/**
* INFO = 2;
*/
public static final int INFO_VALUE = 2;
/**
* WARNING = 3;
*/
public static final int WARNING_VALUE = 3;
/**
* ERROR = 4;
*/
public static final int ERROR_VALUE = 4;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Level valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Level forNumber(int value) {
switch (value) {
case 0: return INVALID_LEVEL;
case 1: return DEBUG;
case 2: return INFO;
case 3: return WARNING;
case 4: return ERROR;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Level> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Level findValueByNumber(int number) {
return Level.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.LogMessageProto.getDescriptor().getEnumTypes().get(0);
}
private static final Level[] VALUES = values();
public static Level valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Level(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cloud_trace.LogMessageProto.Level)
}
private int bitField0_;
public static final int LEVEL_FIELD_NUMBER = 2;
private int level_ = 0;
/**
* optional .cloud_trace.LogMessageProto.Level level = 2;
* @return Whether the level field is set.
*/
@java.lang.Override public boolean hasLevel() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .cloud_trace.LogMessageProto.Level level = 2;
* @return The level.
*/
@java.lang.Override public com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Level getLevel() {
com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Level result = com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Level.forNumber(level_);
return result == null ? com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Level.INVALID_LEVEL : result;
}
public static final int MESSAGE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object message_ = "";
/**
* optional string message = 3;
* @return Whether the message field is set.
*/
@java.lang.Override
public boolean hasMessage() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string message = 3;
* @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.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
}
}
/**
* optional string message = 3;
* @return The bytes for message.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(2, level_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, level_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_);
}
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.google.apphosting.base.protos.TraceEvents.LogMessageProto)) {
return super.equals(obj);
}
com.google.apphosting.base.protos.TraceEvents.LogMessageProto other = (com.google.apphosting.base.protos.TraceEvents.LogMessageProto) obj;
if (hasLevel() != other.hasLevel()) return false;
if (hasLevel()) {
if (level_ != other.level_) return false;
}
if (hasMessage() != other.hasMessage()) return false;
if (hasMessage()) {
if (!getMessage()
.equals(other.getMessage())) 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();
if (hasLevel()) {
hash = (37 * hash) + LEVEL_FIELD_NUMBER;
hash = (53 * hash) + level_;
}
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.apphosting.base.protos.TraceEvents.LogMessageProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.LogMessageProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.LogMessageProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.LogMessageProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.LogMessageProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.apphosting.base.protos.TraceEvents.LogMessageProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.apphosting.base.protos.TraceEvents.LogMessageProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.LogMessageProto 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.google.apphosting.base.protos.TraceEvents.LogMessageProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.LogMessageProto 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.google.apphosting.base.protos.TraceEvents.LogMessageProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.apphosting.base.protos.TraceEvents.LogMessageProto parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.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.google.apphosting.base.protos.TraceEvents.LogMessageProto 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.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* This message represents a single, textual log message associated with a
* span.
* NOTE: Yes, this looks like it could hold messages from our C++
* and/or Java text logging systems. However, that isn't really its intended
* goal (for now). This message should be used for testing/debugging the
* Tapper tracing system.
*
*
* Protobuf type {@code cloud_trace.LogMessageProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cloud_trace.LogMessageProto)
com.google.apphosting.base.protos.TraceEvents.LogMessageProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_LogMessageProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_LogMessageProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.apphosting.base.protos.TraceEvents.LogMessageProto.class, com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Builder.class);
}
// Construct using com.google.apphosting.base.protos.TraceEvents.LogMessageProto.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
level_ = 0;
message_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.apphosting.base.protos.TraceEvents.internal_static_cloud_trace_LogMessageProto_descriptor;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.LogMessageProto getDefaultInstanceForType() {
return com.google.apphosting.base.protos.TraceEvents.LogMessageProto.getDefaultInstance();
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.LogMessageProto build() {
com.google.apphosting.base.protos.TraceEvents.LogMessageProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.LogMessageProto buildPartial() {
com.google.apphosting.base.protos.TraceEvents.LogMessageProto result = new com.google.apphosting.base.protos.TraceEvents.LogMessageProto(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.apphosting.base.protos.TraceEvents.LogMessageProto result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.level_ = level_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.message_ = message_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.apphosting.base.protos.TraceEvents.LogMessageProto) {
return mergeFrom((com.google.apphosting.base.protos.TraceEvents.LogMessageProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.apphosting.base.protos.TraceEvents.LogMessageProto other) {
if (other == com.google.apphosting.base.protos.TraceEvents.LogMessageProto.getDefaultInstance()) return this;
if (other.hasLevel()) {
setLevel(other.getLevel());
}
if (other.hasMessage()) {
message_ = other.message_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.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 16: {
int tmpRaw = input.readEnum();
com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Level tmpValue =
com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Level.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(2, tmpRaw);
} else {
level_ = tmpRaw;
bitField0_ |= 0x00000001;
}
break;
} // case 16
case 26: {
message_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int level_ = 0;
/**
* optional .cloud_trace.LogMessageProto.Level level = 2;
* @return Whether the level field is set.
*/
@java.lang.Override public boolean hasLevel() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .cloud_trace.LogMessageProto.Level level = 2;
* @return The level.
*/
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Level getLevel() {
com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Level result = com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Level.forNumber(level_);
return result == null ? com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Level.INVALID_LEVEL : result;
}
/**
* optional .cloud_trace.LogMessageProto.Level level = 2;
* @param value The level to set.
* @return This builder for chaining.
*/
public Builder setLevel(com.google.apphosting.base.protos.TraceEvents.LogMessageProto.Level value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
level_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .cloud_trace.LogMessageProto.Level level = 2;
* @return This builder for chaining.
*/
public Builder clearLevel() {
bitField0_ = (bitField0_ & ~0x00000001);
level_ = 0;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
* optional string message = 3;
* @return Whether the message field is set.
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string message = 3;
* @return The message.
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
message_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string message = 3;
* @return The bytes for message.
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string message = 3;
* @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_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string message = 3;
* @return This builder for chaining.
*/
public Builder clearMessage() {
message_ = getDefaultInstance().getMessage();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string message = 3;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
message_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cloud_trace.LogMessageProto)
}
// @@protoc_insertion_point(class_scope:cloud_trace.LogMessageProto)
private static final com.google.apphosting.base.protos.TraceEvents.LogMessageProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.apphosting.base.protos.TraceEvents.LogMessageProto();
}
public static com.google.apphosting.base.protos.TraceEvents.LogMessageProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LogMessageProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.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.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.apphosting.base.protos.TraceEvents.LogMessageProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cloud_trace_TraceEventsProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cloud_trace_TraceEventsProto_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cloud_trace_EventDictionaryValue_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cloud_trace_EventDictionaryValue_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cloud_trace_EventDictionaryEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cloud_trace_EventDictionaryEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cloud_trace_TraceEventsListProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cloud_trace_TraceEventsListProto_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cloud_trace_SpanEventsProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cloud_trace_SpanEventsProto_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cloud_trace_SpanEventProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cloud_trace_SpanEventProto_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cloud_trace_StartSpanProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cloud_trace_StartSpanProto_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cloud_trace_EndSpanProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cloud_trace_EndSpanProto_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cloud_trace_AnnotateSpanProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cloud_trace_AnnotateSpanProto_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cloud_trace_LogMessageProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cloud_trace_LogMessageProto_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\022trace_events.proto\022\013cloud_trace\032\014label" +
"s.proto\032\022span_details.proto\032\rspan_id.pro" +
"to\032\017span_kind.proto\032\016trace_id.proto\"\313\001\n\020" +
"TraceEventsProto\022\022\n\nproject_id\030\001 \001(\003\022+\n\010" +
"trace_id\030\002 \001(\0132\031.cloud_trace.TraceIdProt" +
"o\022=\n\022dictionary_entries\030\006 \003(\0132!.cloud_tr" +
"ace.EventDictionaryEntry\0221\n\013span_events\030" +
"\004 \003(\0132\034.cloud_trace.SpanEventsProtoJ\004\010\005\020" +
"\006\"d\n\024EventDictionaryValue\0229\n\021stack_trace" +
"_value\030\001 \001(\0132\036.cloud_trace.StackTraceDet" +
"ails\022\021\n\tstr_value\030\002 \001(\t\"q\n\024EventDictiona" +
"ryEntry\022\013\n\003key\030\001 \001(\004\0229\n\021stack_trace_valu" +
"e\030\002 \001(\0132\036.cloud_trace.StackTraceDetails\022" +
"\021\n\tstr_value\030\003 \001(\t\"E\n\024TraceEventsListPro" +
"to\022-\n\006events\030\001 \003(\0132\035.cloud_trace.TraceEv" +
"entsProto\"{\n\017SpanEventsProto\022)\n\007span_id\030" +
"\001 \001(\0132\030.cloud_trace.SpanIdProto\022*\n\005event" +
"\030\002 \003(\0132\033.cloud_trace.SpanEventProto\022\021\n\tf" +
"ull_span\030\003 \001(\010\"\345\002\n\016SpanEventProto\022\021\n\ttim" +
"estamp\030\001 \001(\003\022/\n\nstart_span\030\002 \001(\0132\033.cloud" +
"_trace.StartSpanProto\022+\n\010end_span\030\003 \001(\0132" +
"\031.cloud_trace.EndSpanProto\0225\n\rannotate_s" +
"pan\030\004 \001(\0132\036.cloud_trace.AnnotateSpanProt" +
"o\0221\n\013log_message\030\005 \001(\0132\034.cloud_trace.Log" +
"MessageProto\"x\n\tEventType\022\021\n\rINVALID_EVE" +
"NT\020\000\022\016\n\nSTART_SPAN\020\001\022\014\n\010END_SPAN\020\002\022\021\n\rAN" +
"NOTATE_SPAN\020\003\022\017\n\013LOG_MESSAGE\020\004\022\026\n\022UNKNOW" +
"N_EVENT_TYPE\020\006\"\217\001\n\016StartSpanProto\0220\n\016par" +
"ent_span_id\030\001 \001(\0132\030.cloud_trace.SpanIdPr" +
"oto\022\014\n\004name\030\003 \001(\t\022#\n\004kind\030\004 \001(\0162\025.cloud_" +
"trace.SpanKind\022\022\n\nis_primary\030\005 \001(\010J\004\010\002\020\003" +
"\"\032\n\014EndSpanProtoJ\004\010\001\020\002J\004\010\002\020\003\"x\n\021Annotate" +
"SpanProto\022(\n\006labels\030\002 \001(\0132\030.cloud_trace." +
"LabelsProto\0223\n\014span_details\030\003 \001(\0132\035.clou" +
"d_trace.SpanDetailsProtoJ\004\010\001\020\002\"\236\001\n\017LogMe" +
"ssageProto\0221\n\005level\030\002 \001(\0162\".cloud_trace." +
"LogMessageProto.Level\022\017\n\007message\030\003 \001(\t\"G" +
"\n\005Level\022\021\n\rINVALID_LEVEL\020\000\022\t\n\005DEBUG\020\001\022\010\n" +
"\004INFO\020\002\022\013\n\007WARNING\020\003\022\t\n\005ERROR\020\004B#\n!com.g" +
"oogle.apphosting.base.protos"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.apphosting.base.protos.LabelsProtos.getDescriptor(),
com.google.apphosting.base.protos.SpanDetails.getDescriptor(),
com.google.apphosting.base.protos.SpanId.getDescriptor(),
com.google.apphosting.base.protos.SpanKindOuterClass.getDescriptor(),
com.google.apphosting.base.protos.TraceId.getDescriptor(),
});
internal_static_cloud_trace_TraceEventsProto_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cloud_trace_TraceEventsProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cloud_trace_TraceEventsProto_descriptor,
new java.lang.String[] { "ProjectId", "TraceId", "DictionaryEntries", "SpanEvents", });
internal_static_cloud_trace_EventDictionaryValue_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cloud_trace_EventDictionaryValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cloud_trace_EventDictionaryValue_descriptor,
new java.lang.String[] { "StackTraceValue", "StrValue", });
internal_static_cloud_trace_EventDictionaryEntry_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_cloud_trace_EventDictionaryEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cloud_trace_EventDictionaryEntry_descriptor,
new java.lang.String[] { "Key", "StackTraceValue", "StrValue", });
internal_static_cloud_trace_TraceEventsListProto_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_cloud_trace_TraceEventsListProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cloud_trace_TraceEventsListProto_descriptor,
new java.lang.String[] { "Events", });
internal_static_cloud_trace_SpanEventsProto_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_cloud_trace_SpanEventsProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cloud_trace_SpanEventsProto_descriptor,
new java.lang.String[] { "SpanId", "Event", "FullSpan", });
internal_static_cloud_trace_SpanEventProto_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_cloud_trace_SpanEventProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cloud_trace_SpanEventProto_descriptor,
new java.lang.String[] { "Timestamp", "StartSpan", "EndSpan", "AnnotateSpan", "LogMessage", });
internal_static_cloud_trace_StartSpanProto_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_cloud_trace_StartSpanProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cloud_trace_StartSpanProto_descriptor,
new java.lang.String[] { "ParentSpanId", "Name", "Kind", "IsPrimary", });
internal_static_cloud_trace_EndSpanProto_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_cloud_trace_EndSpanProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cloud_trace_EndSpanProto_descriptor,
new java.lang.String[] { });
internal_static_cloud_trace_AnnotateSpanProto_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_cloud_trace_AnnotateSpanProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cloud_trace_AnnotateSpanProto_descriptor,
new java.lang.String[] { "Labels", "SpanDetails", });
internal_static_cloud_trace_LogMessageProto_descriptor =
getDescriptor().getMessageTypes().get(9);
internal_static_cloud_trace_LogMessageProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cloud_trace_LogMessageProto_descriptor,
new java.lang.String[] { "Level", "Message", });
com.google.apphosting.base.protos.LabelsProtos.getDescriptor();
com.google.apphosting.base.protos.SpanDetails.getDescriptor();
com.google.apphosting.base.protos.SpanId.getDescriptor();
com.google.apphosting.base.protos.SpanKindOuterClass.getDescriptor();
com.google.apphosting.base.protos.TraceId.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy