All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.glowroot.wire.api.model.TraceOuterClass Maven / Gradle / Ivy

There is a newer version: 0.9.24
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: Trace.proto

package org.glowroot.wire.api.model;

public final class TraceOuterClass {
  private TraceOuterClass() {}
  public static void registerAllExtensions(
      org.glowroot.agent.shaded.google.protobuf.ExtensionRegistry registry) {
  }
  public interface TraceOrBuilder extends
      // @@protoc_insertion_point(interface_extends:org_glowroot_wire_api_model.Trace)
      org.glowroot.agent.shaded.google.protobuf.MessageOrBuilder {

    /**
     * optional string id = 1;
     *
     * 
     * this is a uuid
     * 
*/ java.lang.String getId(); /** * optional string id = 1; * *
     * this is a uuid
     * 
*/ org.glowroot.agent.shaded.google.protobuf.ByteString getIdBytes(); /** * optional .org_glowroot_wire_api_model.Trace.Header header = 2; */ boolean hasHeader(); /** * optional .org_glowroot_wire_api_model.Trace.Header header = 2; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.Header getHeader(); /** * optional .org_glowroot_wire_api_model.Trace.Header header = 2; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.HeaderOrBuilder getHeaderOrBuilder(); /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
     * entry ordering is pre-order depth-first
     * there are typically multiple "root" nodes (with depth=0)
     * 
*/ java.util.List getEntryList(); /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
     * entry ordering is pre-order depth-first
     * there are typically multiple "root" nodes (with depth=0)
     * 
*/ org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry getEntry(int index); /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
     * entry ordering is pre-order depth-first
     * there are typically multiple "root" nodes (with depth=0)
     * 
*/ int getEntryCount(); /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
     * entry ordering is pre-order depth-first
     * there are typically multiple "root" nodes (with depth=0)
     * 
*/ java.util.List getEntryOrBuilderList(); /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
     * entry ordering is pre-order depth-first
     * there are typically multiple "root" nodes (with depth=0)
     * 
*/ org.glowroot.wire.api.model.TraceOuterClass.Trace.EntryOrBuilder getEntryOrBuilder( int index); /** * optional .org_glowroot_wire_api_model.Profile main_thread_profile = 4; */ boolean hasMainThreadProfile(); /** * optional .org_glowroot_wire_api_model.Profile main_thread_profile = 4; */ org.glowroot.wire.api.model.ProfileOuterClass.Profile getMainThreadProfile(); /** * optional .org_glowroot_wire_api_model.Profile main_thread_profile = 4; */ org.glowroot.wire.api.model.ProfileOuterClass.ProfileOrBuilder getMainThreadProfileOrBuilder(); /** * optional .org_glowroot_wire_api_model.Profile aux_thread_profile = 5; */ boolean hasAuxThreadProfile(); /** * optional .org_glowroot_wire_api_model.Profile aux_thread_profile = 5; */ org.glowroot.wire.api.model.ProfileOuterClass.Profile getAuxThreadProfile(); /** * optional .org_glowroot_wire_api_model.Profile aux_thread_profile = 5; */ org.glowroot.wire.api.model.ProfileOuterClass.ProfileOrBuilder getAuxThreadProfileOrBuilder(); } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace} */ public static final class Trace extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org_glowroot_wire_api_model.Trace) TraceOrBuilder { // Use Trace.newBuilder() to construct. private Trace(org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Trace() { id_ = ""; entry_ = java.util.Collections.emptyList(); } @java.lang.Override public final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet getUnknownFields() { return org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Trace( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.Builder subBuilder = null; if (header_ != null) { subBuilder = header_.toBuilder(); } header_ = input.readMessage(org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(header_); header_ = subBuilder.buildPartial(); } break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { entry_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } entry_.add(input.readMessage(org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.parser(), extensionRegistry)); break; } case 34: { org.glowroot.wire.api.model.ProfileOuterClass.Profile.Builder subBuilder = null; if (mainThreadProfile_ != null) { subBuilder = mainThreadProfile_.toBuilder(); } mainThreadProfile_ = input.readMessage(org.glowroot.wire.api.model.ProfileOuterClass.Profile.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(mainThreadProfile_); mainThreadProfile_ = subBuilder.buildPartial(); } break; } case 42: { org.glowroot.wire.api.model.ProfileOuterClass.Profile.Builder subBuilder = null; if (auxThreadProfile_ != null) { subBuilder = auxThreadProfile_.toBuilder(); } auxThreadProfile_ = input.readMessage(org.glowroot.wire.api.model.ProfileOuterClass.Profile.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(auxThreadProfile_); auxThreadProfile_ = subBuilder.buildPartial(); } break; } } } } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { entry_ = java.util.Collections.unmodifiableList(entry_); } makeExtensionsImmutable(); } } public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.Builder.class); } public interface HeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:org_glowroot_wire_api_model.Trace.Header) org.glowroot.agent.shaded.google.protobuf.MessageOrBuilder { /** * optional bool partial = 1; */ boolean getPartial(); /** * optional bool slow = 2; */ boolean getSlow(); /** * optional bool async = 3; */ boolean getAsync(); /** * optional int64 start_time = 4; */ long getStartTime(); /** * optional int64 capture_time = 5; */ long getCaptureTime(); /** * optional int64 duration_nanos = 6; */ long getDurationNanos(); /** * optional string transaction_type = 7; */ java.lang.String getTransactionType(); /** * optional string transaction_type = 7; */ org.glowroot.agent.shaded.google.protobuf.ByteString getTransactionTypeBytes(); /** * optional string transaction_name = 8; */ java.lang.String getTransactionName(); /** * optional string transaction_name = 8; */ org.glowroot.agent.shaded.google.protobuf.ByteString getTransactionNameBytes(); /** * optional string headline = 9; */ java.lang.String getHeadline(); /** * optional string headline = 9; */ org.glowroot.agent.shaded.google.protobuf.ByteString getHeadlineBytes(); /** * optional string user = 10; */ java.lang.String getUser(); /** * optional string user = 10; */ org.glowroot.agent.shaded.google.protobuf.ByteString getUserBytes(); /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ java.util.List getAttributeList(); /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute getAttribute(int index); /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ int getAttributeCount(); /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ java.util.List getAttributeOrBuilderList(); /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.AttributeOrBuilder getAttributeOrBuilder( int index); /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ java.util.List getDetailEntryList(); /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry getDetailEntry(int index); /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ int getDetailEntryCount(); /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ java.util.List getDetailEntryOrBuilderList(); /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder getDetailEntryOrBuilder( int index); /** * optional .org_glowroot_wire_api_model.Trace.Error error = 13; */ boolean hasError(); /** * optional .org_glowroot_wire_api_model.Trace.Error error = 13; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.Error getError(); /** * optional .org_glowroot_wire_api_model.Trace.Error error = 13; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.ErrorOrBuilder getErrorOrBuilder(); /** * optional .org_glowroot_wire_api_model.Trace.Timer main_thread_root_timer = 14; */ boolean hasMainThreadRootTimer(); /** * optional .org_glowroot_wire_api_model.Trace.Timer main_thread_root_timer = 14; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer getMainThreadRootTimer(); /** * optional .org_glowroot_wire_api_model.Trace.Timer main_thread_root_timer = 14; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder getMainThreadRootTimerOrBuilder(); /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ java.util.List getAuxThreadRootTimerList(); /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer getAuxThreadRootTimer(int index); /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ int getAuxThreadRootTimerCount(); /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ java.util.List getAuxThreadRootTimerOrBuilderList(); /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder getAuxThreadRootTimerOrBuilder( int index); /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
       * children are also async, so sum of time in children can
       * 
*/ java.util.List getAsyncRootTimerList(); /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
       * children are also async, so sum of time in children can
       * 
*/ org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer getAsyncRootTimer(int index); /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
       * children are also async, so sum of time in children can
       * 
*/ int getAsyncRootTimerCount(); /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
       * children are also async, so sum of time in children can
       * 
*/ java.util.List getAsyncRootTimerOrBuilderList(); /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
       * children are also async, so sum of time in children can
       * 
*/ org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder getAsyncRootTimerOrBuilder( int index); /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats main_thread_stats = 17; * *
       * be greater than time in parent
       * 
*/ boolean hasMainThreadStats(); /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats main_thread_stats = 17; * *
       * be greater than time in parent
       * 
*/ org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats getMainThreadStats(); /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats main_thread_stats = 17; * *
       * be greater than time in parent
       * 
*/ org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStatsOrBuilder getMainThreadStatsOrBuilder(); /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats aux_thread_stats = 18; */ boolean hasAuxThreadStats(); /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats aux_thread_stats = 18; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats getAuxThreadStats(); /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats aux_thread_stats = 18; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStatsOrBuilder getAuxThreadStatsOrBuilder(); /** * optional int32 entry_count = 19; */ int getEntryCount(); /** * optional bool entry_limit_exceeded = 20; */ boolean getEntryLimitExceeded(); /** * optional int64 main_thread_profile_sample_count = 21; */ long getMainThreadProfileSampleCount(); /** * optional bool main_thread_profile_sample_limit_exceeded = 22; */ boolean getMainThreadProfileSampleLimitExceeded(); /** * optional int64 aux_thread_profile_sample_count = 23; */ long getAuxThreadProfileSampleCount(); /** * optional bool aux_thread_profile_sample_limit_exceeded = 24; */ boolean getAuxThreadProfileSampleLimitExceeded(); } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.Header} */ public static final class Header extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org_glowroot_wire_api_model.Trace.Header) HeaderOrBuilder { // Use Header.newBuilder() to construct. private Header(org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Header() { partial_ = false; slow_ = false; async_ = false; startTime_ = 0L; captureTime_ = 0L; durationNanos_ = 0L; transactionType_ = ""; transactionName_ = ""; headline_ = ""; user_ = ""; attribute_ = java.util.Collections.emptyList(); detailEntry_ = java.util.Collections.emptyList(); auxThreadRootTimer_ = java.util.Collections.emptyList(); asyncRootTimer_ = java.util.Collections.emptyList(); entryCount_ = 0; entryLimitExceeded_ = false; mainThreadProfileSampleCount_ = 0L; mainThreadProfileSampleLimitExceeded_ = false; auxThreadProfileSampleCount_ = 0L; auxThreadProfileSampleLimitExceeded_ = false; } @java.lang.Override public final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet getUnknownFields() { return org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Header( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { partial_ = input.readBool(); break; } case 16: { slow_ = input.readBool(); break; } case 24: { async_ = input.readBool(); break; } case 32: { startTime_ = input.readInt64(); break; } case 40: { captureTime_ = input.readInt64(); break; } case 48: { durationNanos_ = input.readInt64(); break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); transactionType_ = s; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); transactionName_ = s; break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); headline_ = s; break; } case 82: { java.lang.String s = input.readStringRequireUtf8(); user_ = s; break; } case 90: { if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { attribute_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000400; } attribute_.add(input.readMessage(org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.parser(), extensionRegistry)); break; } case 98: { if (!((mutable_bitField0_ & 0x00000800) == 0x00000800)) { detailEntry_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000800; } detailEntry_.add(input.readMessage(org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.parser(), extensionRegistry)); break; } case 106: { org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } case 114: { org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder subBuilder = null; if (mainThreadRootTimer_ != null) { subBuilder = mainThreadRootTimer_.toBuilder(); } mainThreadRootTimer_ = input.readMessage(org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(mainThreadRootTimer_); mainThreadRootTimer_ = subBuilder.buildPartial(); } break; } case 122: { if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) { auxThreadRootTimer_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00004000; } auxThreadRootTimer_.add(input.readMessage(org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.parser(), extensionRegistry)); break; } case 130: { if (!((mutable_bitField0_ & 0x00008000) == 0x00008000)) { asyncRootTimer_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00008000; } asyncRootTimer_.add(input.readMessage(org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.parser(), extensionRegistry)); break; } case 138: { org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.Builder subBuilder = null; if (mainThreadStats_ != null) { subBuilder = mainThreadStats_.toBuilder(); } mainThreadStats_ = input.readMessage(org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(mainThreadStats_); mainThreadStats_ = subBuilder.buildPartial(); } break; } case 146: { org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.Builder subBuilder = null; if (auxThreadStats_ != null) { subBuilder = auxThreadStats_.toBuilder(); } auxThreadStats_ = input.readMessage(org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(auxThreadStats_); auxThreadStats_ = subBuilder.buildPartial(); } break; } case 152: { entryCount_ = input.readInt32(); break; } case 160: { entryLimitExceeded_ = input.readBool(); break; } case 168: { mainThreadProfileSampleCount_ = input.readInt64(); break; } case 176: { mainThreadProfileSampleLimitExceeded_ = input.readBool(); break; } case 184: { auxThreadProfileSampleCount_ = input.readInt64(); break; } case 192: { auxThreadProfileSampleLimitExceeded_ = input.readBool(); break; } } } } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { attribute_ = java.util.Collections.unmodifiableList(attribute_); } if (((mutable_bitField0_ & 0x00000800) == 0x00000800)) { detailEntry_ = java.util.Collections.unmodifiableList(detailEntry_); } if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) { auxThreadRootTimer_ = java.util.Collections.unmodifiableList(auxThreadRootTimer_); } if (((mutable_bitField0_ & 0x00008000) == 0x00008000)) { asyncRootTimer_ = java.util.Collections.unmodifiableList(asyncRootTimer_); } makeExtensionsImmutable(); } } public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Header_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.Builder.class); } private int bitField0_; public static final int PARTIAL_FIELD_NUMBER = 1; private boolean partial_; /** * optional bool partial = 1; */ public boolean getPartial() { return partial_; } public static final int SLOW_FIELD_NUMBER = 2; private boolean slow_; /** * optional bool slow = 2; */ public boolean getSlow() { return slow_; } public static final int ASYNC_FIELD_NUMBER = 3; private boolean async_; /** * optional bool async = 3; */ public boolean getAsync() { return async_; } public static final int START_TIME_FIELD_NUMBER = 4; private long startTime_; /** * optional int64 start_time = 4; */ public long getStartTime() { return startTime_; } public static final int CAPTURE_TIME_FIELD_NUMBER = 5; private long captureTime_; /** * optional int64 capture_time = 5; */ public long getCaptureTime() { return captureTime_; } public static final int DURATION_NANOS_FIELD_NUMBER = 6; private long durationNanos_; /** * optional int64 duration_nanos = 6; */ public long getDurationNanos() { return durationNanos_; } public static final int TRANSACTION_TYPE_FIELD_NUMBER = 7; private volatile java.lang.Object transactionType_; /** * optional string transaction_type = 7; */ public java.lang.String getTransactionType() { java.lang.Object ref = transactionType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionType_ = s; return s; } } /** * optional string transaction_type = 7; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getTransactionTypeBytes() { java.lang.Object ref = transactionType_; if (ref instanceof java.lang.String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); transactionType_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } public static final int TRANSACTION_NAME_FIELD_NUMBER = 8; private volatile java.lang.Object transactionName_; /** * optional string transaction_name = 8; */ public java.lang.String getTransactionName() { java.lang.Object ref = transactionName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionName_ = s; return s; } } /** * optional string transaction_name = 8; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getTransactionNameBytes() { java.lang.Object ref = transactionName_; if (ref instanceof java.lang.String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); transactionName_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } public static final int HEADLINE_FIELD_NUMBER = 9; private volatile java.lang.Object headline_; /** * optional string headline = 9; */ public java.lang.String getHeadline() { java.lang.Object ref = headline_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headline_ = s; return s; } } /** * optional string headline = 9; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getHeadlineBytes() { java.lang.Object ref = headline_; if (ref instanceof java.lang.String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headline_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } public static final int USER_FIELD_NUMBER = 10; private volatile java.lang.Object user_; /** * optional string user = 10; */ public java.lang.String getUser() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); user_ = s; return s; } } /** * optional string user = 10; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } public static final int ATTRIBUTE_FIELD_NUMBER = 11; private java.util.List attribute_; /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public java.util.List getAttributeList() { return attribute_; } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public java.util.List getAttributeOrBuilderList() { return attribute_; } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public int getAttributeCount() { return attribute_.size(); } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute getAttribute(int index) { return attribute_.get(index); } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.AttributeOrBuilder getAttributeOrBuilder( int index) { return attribute_.get(index); } public static final int DETAIL_ENTRY_FIELD_NUMBER = 12; private java.util.List detailEntry_; /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public java.util.List getDetailEntryList() { return detailEntry_; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public java.util.List getDetailEntryOrBuilderList() { return detailEntry_; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public int getDetailEntryCount() { return detailEntry_.size(); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry getDetailEntry(int index) { return detailEntry_.get(index); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder getDetailEntryOrBuilder( int index) { return detailEntry_.get(index); } public static final int ERROR_FIELD_NUMBER = 13; private org.glowroot.wire.api.model.TraceOuterClass.Trace.Error error_; /** * optional .org_glowroot_wire_api_model.Trace.Error error = 13; */ public boolean hasError() { return error_ != null; } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 13; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Error getError() { return error_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.getDefaultInstance() : error_; } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 13; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.ErrorOrBuilder getErrorOrBuilder() { return getError(); } public static final int MAIN_THREAD_ROOT_TIMER_FIELD_NUMBER = 14; private org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer mainThreadRootTimer_; /** * optional .org_glowroot_wire_api_model.Trace.Timer main_thread_root_timer = 14; */ public boolean hasMainThreadRootTimer() { return mainThreadRootTimer_ != null; } /** * optional .org_glowroot_wire_api_model.Trace.Timer main_thread_root_timer = 14; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer getMainThreadRootTimer() { return mainThreadRootTimer_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.getDefaultInstance() : mainThreadRootTimer_; } /** * optional .org_glowroot_wire_api_model.Trace.Timer main_thread_root_timer = 14; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder getMainThreadRootTimerOrBuilder() { return getMainThreadRootTimer(); } public static final int AUX_THREAD_ROOT_TIMER_FIELD_NUMBER = 15; private java.util.List auxThreadRootTimer_; /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public java.util.List getAuxThreadRootTimerList() { return auxThreadRootTimer_; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public java.util.List getAuxThreadRootTimerOrBuilderList() { return auxThreadRootTimer_; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public int getAuxThreadRootTimerCount() { return auxThreadRootTimer_.size(); } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer getAuxThreadRootTimer(int index) { return auxThreadRootTimer_.get(index); } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder getAuxThreadRootTimerOrBuilder( int index) { return auxThreadRootTimer_.get(index); } public static final int ASYNC_ROOT_TIMER_FIELD_NUMBER = 16; private java.util.List asyncRootTimer_; /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
       * children are also async, so sum of time in children can
       * 
*/ public java.util.List getAsyncRootTimerList() { return asyncRootTimer_; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
       * children are also async, so sum of time in children can
       * 
*/ public java.util.List getAsyncRootTimerOrBuilderList() { return asyncRootTimer_; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
       * children are also async, so sum of time in children can
       * 
*/ public int getAsyncRootTimerCount() { return asyncRootTimer_.size(); } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
       * children are also async, so sum of time in children can
       * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer getAsyncRootTimer(int index) { return asyncRootTimer_.get(index); } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
       * children are also async, so sum of time in children can
       * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder getAsyncRootTimerOrBuilder( int index) { return asyncRootTimer_.get(index); } public static final int MAIN_THREAD_STATS_FIELD_NUMBER = 17; private org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats mainThreadStats_; /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats main_thread_stats = 17; * *
       * be greater than time in parent
       * 
*/ public boolean hasMainThreadStats() { return mainThreadStats_ != null; } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats main_thread_stats = 17; * *
       * be greater than time in parent
       * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats getMainThreadStats() { return mainThreadStats_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.getDefaultInstance() : mainThreadStats_; } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats main_thread_stats = 17; * *
       * be greater than time in parent
       * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStatsOrBuilder getMainThreadStatsOrBuilder() { return getMainThreadStats(); } public static final int AUX_THREAD_STATS_FIELD_NUMBER = 18; private org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats auxThreadStats_; /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats aux_thread_stats = 18; */ public boolean hasAuxThreadStats() { return auxThreadStats_ != null; } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats aux_thread_stats = 18; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats getAuxThreadStats() { return auxThreadStats_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.getDefaultInstance() : auxThreadStats_; } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats aux_thread_stats = 18; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStatsOrBuilder getAuxThreadStatsOrBuilder() { return getAuxThreadStats(); } public static final int ENTRY_COUNT_FIELD_NUMBER = 19; private int entryCount_; /** * optional int32 entry_count = 19; */ public int getEntryCount() { return entryCount_; } public static final int ENTRY_LIMIT_EXCEEDED_FIELD_NUMBER = 20; private boolean entryLimitExceeded_; /** * optional bool entry_limit_exceeded = 20; */ public boolean getEntryLimitExceeded() { return entryLimitExceeded_; } public static final int MAIN_THREAD_PROFILE_SAMPLE_COUNT_FIELD_NUMBER = 21; private long mainThreadProfileSampleCount_; /** * optional int64 main_thread_profile_sample_count = 21; */ public long getMainThreadProfileSampleCount() { return mainThreadProfileSampleCount_; } public static final int MAIN_THREAD_PROFILE_SAMPLE_LIMIT_EXCEEDED_FIELD_NUMBER = 22; private boolean mainThreadProfileSampleLimitExceeded_; /** * optional bool main_thread_profile_sample_limit_exceeded = 22; */ public boolean getMainThreadProfileSampleLimitExceeded() { return mainThreadProfileSampleLimitExceeded_; } public static final int AUX_THREAD_PROFILE_SAMPLE_COUNT_FIELD_NUMBER = 23; private long auxThreadProfileSampleCount_; /** * optional int64 aux_thread_profile_sample_count = 23; */ public long getAuxThreadProfileSampleCount() { return auxThreadProfileSampleCount_; } public static final int AUX_THREAD_PROFILE_SAMPLE_LIMIT_EXCEEDED_FIELD_NUMBER = 24; private boolean auxThreadProfileSampleLimitExceeded_; /** * optional bool aux_thread_profile_sample_limit_exceeded = 24; */ public boolean getAuxThreadProfileSampleLimitExceeded() { return auxThreadProfileSampleLimitExceeded_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.glowroot.agent.shaded.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (partial_ != false) { output.writeBool(1, partial_); } if (slow_ != false) { output.writeBool(2, slow_); } if (async_ != false) { output.writeBool(3, async_); } if (startTime_ != 0L) { output.writeInt64(4, startTime_); } if (captureTime_ != 0L) { output.writeInt64(5, captureTime_); } if (durationNanos_ != 0L) { output.writeInt64(6, durationNanos_); } if (!getTransactionTypeBytes().isEmpty()) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 7, transactionType_); } if (!getTransactionNameBytes().isEmpty()) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 8, transactionName_); } if (!getHeadlineBytes().isEmpty()) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 9, headline_); } if (!getUserBytes().isEmpty()) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 10, user_); } for (int i = 0; i < attribute_.size(); i++) { output.writeMessage(11, attribute_.get(i)); } for (int i = 0; i < detailEntry_.size(); i++) { output.writeMessage(12, detailEntry_.get(i)); } if (error_ != null) { output.writeMessage(13, getError()); } if (mainThreadRootTimer_ != null) { output.writeMessage(14, getMainThreadRootTimer()); } for (int i = 0; i < auxThreadRootTimer_.size(); i++) { output.writeMessage(15, auxThreadRootTimer_.get(i)); } for (int i = 0; i < asyncRootTimer_.size(); i++) { output.writeMessage(16, asyncRootTimer_.get(i)); } if (mainThreadStats_ != null) { output.writeMessage(17, getMainThreadStats()); } if (auxThreadStats_ != null) { output.writeMessage(18, getAuxThreadStats()); } if (entryCount_ != 0) { output.writeInt32(19, entryCount_); } if (entryLimitExceeded_ != false) { output.writeBool(20, entryLimitExceeded_); } if (mainThreadProfileSampleCount_ != 0L) { output.writeInt64(21, mainThreadProfileSampleCount_); } if (mainThreadProfileSampleLimitExceeded_ != false) { output.writeBool(22, mainThreadProfileSampleLimitExceeded_); } if (auxThreadProfileSampleCount_ != 0L) { output.writeInt64(23, auxThreadProfileSampleCount_); } if (auxThreadProfileSampleLimitExceeded_ != false) { output.writeBool(24, auxThreadProfileSampleLimitExceeded_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (partial_ != false) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeBoolSize(1, partial_); } if (slow_ != false) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeBoolSize(2, slow_); } if (async_ != false) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeBoolSize(3, async_); } if (startTime_ != 0L) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt64Size(4, startTime_); } if (captureTime_ != 0L) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt64Size(5, captureTime_); } if (durationNanos_ != 0L) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt64Size(6, durationNanos_); } if (!getTransactionTypeBytes().isEmpty()) { size += org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.computeStringSize(7, transactionType_); } if (!getTransactionNameBytes().isEmpty()) { size += org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.computeStringSize(8, transactionName_); } if (!getHeadlineBytes().isEmpty()) { size += org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.computeStringSize(9, headline_); } if (!getUserBytes().isEmpty()) { size += org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.computeStringSize(10, user_); } for (int i = 0; i < attribute_.size(); i++) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(11, attribute_.get(i)); } for (int i = 0; i < detailEntry_.size(); i++) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(12, detailEntry_.get(i)); } if (error_ != null) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(13, getError()); } if (mainThreadRootTimer_ != null) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(14, getMainThreadRootTimer()); } for (int i = 0; i < auxThreadRootTimer_.size(); i++) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(15, auxThreadRootTimer_.get(i)); } for (int i = 0; i < asyncRootTimer_.size(); i++) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(16, asyncRootTimer_.get(i)); } if (mainThreadStats_ != null) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(17, getMainThreadStats()); } if (auxThreadStats_ != null) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(18, getAuxThreadStats()); } if (entryCount_ != 0) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt32Size(19, entryCount_); } if (entryLimitExceeded_ != false) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeBoolSize(20, entryLimitExceeded_); } if (mainThreadProfileSampleCount_ != 0L) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt64Size(21, mainThreadProfileSampleCount_); } if (mainThreadProfileSampleLimitExceeded_ != false) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeBoolSize(22, mainThreadProfileSampleLimitExceeded_); } if (auxThreadProfileSampleCount_ != 0L) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt64Size(23, auxThreadProfileSampleCount_); } if (auxThreadProfileSampleLimitExceeded_ != false) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeBoolSize(24, auxThreadProfileSampleLimitExceeded_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Header parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Header parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Header parseFrom(byte[] data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Header parseFrom( byte[] data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Header parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Header parseFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Header parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Header parseDelimitedFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Header parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Header parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.glowroot.wire.api.model.TraceOuterClass.Trace.Header prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.Header} */ public static final class Builder extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org_glowroot_wire_api_model.Trace.Header) org.glowroot.wire.api.model.TraceOuterClass.Trace.HeaderOrBuilder { public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Header_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.Builder.class); } // Construct using org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getAttributeFieldBuilder(); getDetailEntryFieldBuilder(); getAuxThreadRootTimerFieldBuilder(); getAsyncRootTimerFieldBuilder(); } } public Builder clear() { super.clear(); partial_ = false; slow_ = false; async_ = false; startTime_ = 0L; captureTime_ = 0L; durationNanos_ = 0L; transactionType_ = ""; transactionName_ = ""; headline_ = ""; user_ = ""; if (attributeBuilder_ == null) { attribute_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); } else { attributeBuilder_.clear(); } if (detailEntryBuilder_ == null) { detailEntry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); } else { detailEntryBuilder_.clear(); } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } if (mainThreadRootTimerBuilder_ == null) { mainThreadRootTimer_ = null; } else { mainThreadRootTimer_ = null; mainThreadRootTimerBuilder_ = null; } if (auxThreadRootTimerBuilder_ == null) { auxThreadRootTimer_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00004000); } else { auxThreadRootTimerBuilder_.clear(); } if (asyncRootTimerBuilder_ == null) { asyncRootTimer_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00008000); } else { asyncRootTimerBuilder_.clear(); } if (mainThreadStatsBuilder_ == null) { mainThreadStats_ = null; } else { mainThreadStats_ = null; mainThreadStatsBuilder_ = null; } if (auxThreadStatsBuilder_ == null) { auxThreadStats_ = null; } else { auxThreadStats_ = null; auxThreadStatsBuilder_ = null; } entryCount_ = 0; entryLimitExceeded_ = false; mainThreadProfileSampleCount_ = 0L; mainThreadProfileSampleLimitExceeded_ = false; auxThreadProfileSampleCount_ = 0L; auxThreadProfileSampleLimitExceeded_ = false; return this; } public org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Header_descriptor; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Header getDefaultInstanceForType() { return org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.getDefaultInstance(); } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Header build() { org.glowroot.wire.api.model.TraceOuterClass.Trace.Header result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Header buildPartial() { org.glowroot.wire.api.model.TraceOuterClass.Trace.Header result = new org.glowroot.wire.api.model.TraceOuterClass.Trace.Header(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.partial_ = partial_; result.slow_ = slow_; result.async_ = async_; result.startTime_ = startTime_; result.captureTime_ = captureTime_; result.durationNanos_ = durationNanos_; result.transactionType_ = transactionType_; result.transactionName_ = transactionName_; result.headline_ = headline_; result.user_ = user_; if (attributeBuilder_ == null) { if (((bitField0_ & 0x00000400) == 0x00000400)) { attribute_ = java.util.Collections.unmodifiableList(attribute_); bitField0_ = (bitField0_ & ~0x00000400); } result.attribute_ = attribute_; } else { result.attribute_ = attributeBuilder_.build(); } if (detailEntryBuilder_ == null) { if (((bitField0_ & 0x00000800) == 0x00000800)) { detailEntry_ = java.util.Collections.unmodifiableList(detailEntry_); bitField0_ = (bitField0_ & ~0x00000800); } result.detailEntry_ = detailEntry_; } else { result.detailEntry_ = detailEntryBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } if (mainThreadRootTimerBuilder_ == null) { result.mainThreadRootTimer_ = mainThreadRootTimer_; } else { result.mainThreadRootTimer_ = mainThreadRootTimerBuilder_.build(); } if (auxThreadRootTimerBuilder_ == null) { if (((bitField0_ & 0x00004000) == 0x00004000)) { auxThreadRootTimer_ = java.util.Collections.unmodifiableList(auxThreadRootTimer_); bitField0_ = (bitField0_ & ~0x00004000); } result.auxThreadRootTimer_ = auxThreadRootTimer_; } else { result.auxThreadRootTimer_ = auxThreadRootTimerBuilder_.build(); } if (asyncRootTimerBuilder_ == null) { if (((bitField0_ & 0x00008000) == 0x00008000)) { asyncRootTimer_ = java.util.Collections.unmodifiableList(asyncRootTimer_); bitField0_ = (bitField0_ & ~0x00008000); } result.asyncRootTimer_ = asyncRootTimer_; } else { result.asyncRootTimer_ = asyncRootTimerBuilder_.build(); } if (mainThreadStatsBuilder_ == null) { result.mainThreadStats_ = mainThreadStats_; } else { result.mainThreadStats_ = mainThreadStatsBuilder_.build(); } if (auxThreadStatsBuilder_ == null) { result.auxThreadStats_ = auxThreadStats_; } else { result.auxThreadStats_ = auxThreadStatsBuilder_.build(); } result.entryCount_ = entryCount_; result.entryLimitExceeded_ = entryLimitExceeded_; result.mainThreadProfileSampleCount_ = mainThreadProfileSampleCount_; result.mainThreadProfileSampleLimitExceeded_ = mainThreadProfileSampleLimitExceeded_; result.auxThreadProfileSampleCount_ = auxThreadProfileSampleCount_; result.auxThreadProfileSampleLimitExceeded_ = auxThreadProfileSampleLimitExceeded_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(org.glowroot.agent.shaded.google.protobuf.Message other) { if (other instanceof org.glowroot.wire.api.model.TraceOuterClass.Trace.Header) { return mergeFrom((org.glowroot.wire.api.model.TraceOuterClass.Trace.Header)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.glowroot.wire.api.model.TraceOuterClass.Trace.Header other) { if (other == org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.getDefaultInstance()) return this; if (other.getPartial() != false) { setPartial(other.getPartial()); } if (other.getSlow() != false) { setSlow(other.getSlow()); } if (other.getAsync() != false) { setAsync(other.getAsync()); } if (other.getStartTime() != 0L) { setStartTime(other.getStartTime()); } if (other.getCaptureTime() != 0L) { setCaptureTime(other.getCaptureTime()); } if (other.getDurationNanos() != 0L) { setDurationNanos(other.getDurationNanos()); } if (!other.getTransactionType().isEmpty()) { transactionType_ = other.transactionType_; onChanged(); } if (!other.getTransactionName().isEmpty()) { transactionName_ = other.transactionName_; onChanged(); } if (!other.getHeadline().isEmpty()) { headline_ = other.headline_; onChanged(); } if (!other.getUser().isEmpty()) { user_ = other.user_; onChanged(); } if (attributeBuilder_ == null) { if (!other.attribute_.isEmpty()) { if (attribute_.isEmpty()) { attribute_ = other.attribute_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureAttributeIsMutable(); attribute_.addAll(other.attribute_); } onChanged(); } } else { if (!other.attribute_.isEmpty()) { if (attributeBuilder_.isEmpty()) { attributeBuilder_.dispose(); attributeBuilder_ = null; attribute_ = other.attribute_; bitField0_ = (bitField0_ & ~0x00000400); attributeBuilder_ = org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAttributeFieldBuilder() : null; } else { attributeBuilder_.addAllMessages(other.attribute_); } } } if (detailEntryBuilder_ == null) { if (!other.detailEntry_.isEmpty()) { if (detailEntry_.isEmpty()) { detailEntry_ = other.detailEntry_; bitField0_ = (bitField0_ & ~0x00000800); } else { ensureDetailEntryIsMutable(); detailEntry_.addAll(other.detailEntry_); } onChanged(); } } else { if (!other.detailEntry_.isEmpty()) { if (detailEntryBuilder_.isEmpty()) { detailEntryBuilder_.dispose(); detailEntryBuilder_ = null; detailEntry_ = other.detailEntry_; bitField0_ = (bitField0_ & ~0x00000800); detailEntryBuilder_ = org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDetailEntryFieldBuilder() : null; } else { detailEntryBuilder_.addAllMessages(other.detailEntry_); } } } if (other.hasError()) { mergeError(other.getError()); } if (other.hasMainThreadRootTimer()) { mergeMainThreadRootTimer(other.getMainThreadRootTimer()); } if (auxThreadRootTimerBuilder_ == null) { if (!other.auxThreadRootTimer_.isEmpty()) { if (auxThreadRootTimer_.isEmpty()) { auxThreadRootTimer_ = other.auxThreadRootTimer_; bitField0_ = (bitField0_ & ~0x00004000); } else { ensureAuxThreadRootTimerIsMutable(); auxThreadRootTimer_.addAll(other.auxThreadRootTimer_); } onChanged(); } } else { if (!other.auxThreadRootTimer_.isEmpty()) { if (auxThreadRootTimerBuilder_.isEmpty()) { auxThreadRootTimerBuilder_.dispose(); auxThreadRootTimerBuilder_ = null; auxThreadRootTimer_ = other.auxThreadRootTimer_; bitField0_ = (bitField0_ & ~0x00004000); auxThreadRootTimerBuilder_ = org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAuxThreadRootTimerFieldBuilder() : null; } else { auxThreadRootTimerBuilder_.addAllMessages(other.auxThreadRootTimer_); } } } if (asyncRootTimerBuilder_ == null) { if (!other.asyncRootTimer_.isEmpty()) { if (asyncRootTimer_.isEmpty()) { asyncRootTimer_ = other.asyncRootTimer_; bitField0_ = (bitField0_ & ~0x00008000); } else { ensureAsyncRootTimerIsMutable(); asyncRootTimer_.addAll(other.asyncRootTimer_); } onChanged(); } } else { if (!other.asyncRootTimer_.isEmpty()) { if (asyncRootTimerBuilder_.isEmpty()) { asyncRootTimerBuilder_.dispose(); asyncRootTimerBuilder_ = null; asyncRootTimer_ = other.asyncRootTimer_; bitField0_ = (bitField0_ & ~0x00008000); asyncRootTimerBuilder_ = org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAsyncRootTimerFieldBuilder() : null; } else { asyncRootTimerBuilder_.addAllMessages(other.asyncRootTimer_); } } } if (other.hasMainThreadStats()) { mergeMainThreadStats(other.getMainThreadStats()); } if (other.hasAuxThreadStats()) { mergeAuxThreadStats(other.getAuxThreadStats()); } if (other.getEntryCount() != 0) { setEntryCount(other.getEntryCount()); } if (other.getEntryLimitExceeded() != false) { setEntryLimitExceeded(other.getEntryLimitExceeded()); } if (other.getMainThreadProfileSampleCount() != 0L) { setMainThreadProfileSampleCount(other.getMainThreadProfileSampleCount()); } if (other.getMainThreadProfileSampleLimitExceeded() != false) { setMainThreadProfileSampleLimitExceeded(other.getMainThreadProfileSampleLimitExceeded()); } if (other.getAuxThreadProfileSampleCount() != 0L) { setAuxThreadProfileSampleCount(other.getAuxThreadProfileSampleCount()); } if (other.getAuxThreadProfileSampleLimitExceeded() != false) { setAuxThreadProfileSampleLimitExceeded(other.getAuxThreadProfileSampleLimitExceeded()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.glowroot.wire.api.model.TraceOuterClass.Trace.Header parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.glowroot.wire.api.model.TraceOuterClass.Trace.Header) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private boolean partial_ ; /** * optional bool partial = 1; */ public boolean getPartial() { return partial_; } /** * optional bool partial = 1; */ public Builder setPartial(boolean value) { partial_ = value; onChanged(); return this; } /** * optional bool partial = 1; */ public Builder clearPartial() { partial_ = false; onChanged(); return this; } private boolean slow_ ; /** * optional bool slow = 2; */ public boolean getSlow() { return slow_; } /** * optional bool slow = 2; */ public Builder setSlow(boolean value) { slow_ = value; onChanged(); return this; } /** * optional bool slow = 2; */ public Builder clearSlow() { slow_ = false; onChanged(); return this; } private boolean async_ ; /** * optional bool async = 3; */ public boolean getAsync() { return async_; } /** * optional bool async = 3; */ public Builder setAsync(boolean value) { async_ = value; onChanged(); return this; } /** * optional bool async = 3; */ public Builder clearAsync() { async_ = false; onChanged(); return this; } private long startTime_ ; /** * optional int64 start_time = 4; */ public long getStartTime() { return startTime_; } /** * optional int64 start_time = 4; */ public Builder setStartTime(long value) { startTime_ = value; onChanged(); return this; } /** * optional int64 start_time = 4; */ public Builder clearStartTime() { startTime_ = 0L; onChanged(); return this; } private long captureTime_ ; /** * optional int64 capture_time = 5; */ public long getCaptureTime() { return captureTime_; } /** * optional int64 capture_time = 5; */ public Builder setCaptureTime(long value) { captureTime_ = value; onChanged(); return this; } /** * optional int64 capture_time = 5; */ public Builder clearCaptureTime() { captureTime_ = 0L; onChanged(); return this; } private long durationNanos_ ; /** * optional int64 duration_nanos = 6; */ public long getDurationNanos() { return durationNanos_; } /** * optional int64 duration_nanos = 6; */ public Builder setDurationNanos(long value) { durationNanos_ = value; onChanged(); return this; } /** * optional int64 duration_nanos = 6; */ public Builder clearDurationNanos() { durationNanos_ = 0L; onChanged(); return this; } private java.lang.Object transactionType_ = ""; /** * optional string transaction_type = 7; */ public java.lang.String getTransactionType() { java.lang.Object ref = transactionType_; if (!(ref instanceof java.lang.String)) { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionType_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string transaction_type = 7; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getTransactionTypeBytes() { java.lang.Object ref = transactionType_; if (ref instanceof String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); transactionType_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } /** * optional string transaction_type = 7; */ public Builder setTransactionType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } transactionType_ = value; onChanged(); return this; } /** * optional string transaction_type = 7; */ public Builder clearTransactionType() { transactionType_ = getDefaultInstance().getTransactionType(); onChanged(); return this; } /** * optional string transaction_type = 7; */ public Builder setTransactionTypeBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transactionType_ = value; onChanged(); return this; } private java.lang.Object transactionName_ = ""; /** * optional string transaction_name = 8; */ public java.lang.String getTransactionName() { java.lang.Object ref = transactionName_; if (!(ref instanceof java.lang.String)) { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transactionName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string transaction_name = 8; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getTransactionNameBytes() { java.lang.Object ref = transactionName_; if (ref instanceof String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); transactionName_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } /** * optional string transaction_name = 8; */ public Builder setTransactionName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } transactionName_ = value; onChanged(); return this; } /** * optional string transaction_name = 8; */ public Builder clearTransactionName() { transactionName_ = getDefaultInstance().getTransactionName(); onChanged(); return this; } /** * optional string transaction_name = 8; */ public Builder setTransactionNameBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); transactionName_ = value; onChanged(); return this; } private java.lang.Object headline_ = ""; /** * optional string headline = 9; */ public java.lang.String getHeadline() { java.lang.Object ref = headline_; if (!(ref instanceof java.lang.String)) { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); headline_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string headline = 9; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getHeadlineBytes() { java.lang.Object ref = headline_; if (ref instanceof String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); headline_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } /** * optional string headline = 9; */ public Builder setHeadline( java.lang.String value) { if (value == null) { throw new NullPointerException(); } headline_ = value; onChanged(); return this; } /** * optional string headline = 9; */ public Builder clearHeadline() { headline_ = getDefaultInstance().getHeadline(); onChanged(); return this; } /** * optional string headline = 9; */ public Builder setHeadlineBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); headline_ = value; onChanged(); return this; } private java.lang.Object user_ = ""; /** * optional string user = 10; */ public java.lang.String getUser() { java.lang.Object ref = user_; if (!(ref instanceof java.lang.String)) { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); user_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string user = 10; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } /** * optional string user = 10; */ public Builder setUser( java.lang.String value) { if (value == null) { throw new NullPointerException(); } user_ = value; onChanged(); return this; } /** * optional string user = 10; */ public Builder clearUser() { user_ = getDefaultInstance().getUser(); onChanged(); return this; } /** * optional string user = 10; */ public Builder setUserBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); user_ = value; onChanged(); return this; } private java.util.List attribute_ = java.util.Collections.emptyList(); private void ensureAttributeIsMutable() { if (!((bitField0_ & 0x00000400) == 0x00000400)) { attribute_ = new java.util.ArrayList(attribute_); bitField0_ |= 0x00000400; } } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute, org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.AttributeOrBuilder> attributeBuilder_; /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public java.util.List getAttributeList() { if (attributeBuilder_ == null) { return java.util.Collections.unmodifiableList(attribute_); } else { return attributeBuilder_.getMessageList(); } } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public int getAttributeCount() { if (attributeBuilder_ == null) { return attribute_.size(); } else { return attributeBuilder_.getCount(); } } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute getAttribute(int index) { if (attributeBuilder_ == null) { return attribute_.get(index); } else { return attributeBuilder_.getMessage(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public Builder setAttribute( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.set(index, value); onChanged(); } else { attributeBuilder_.setMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public Builder setAttribute( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.set(index, builderForValue.build()); onChanged(); } else { attributeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public Builder addAttribute(org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.add(value); onChanged(); } else { attributeBuilder_.addMessage(value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public Builder addAttribute( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute value) { if (attributeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAttributeIsMutable(); attribute_.add(index, value); onChanged(); } else { attributeBuilder_.addMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public Builder addAttribute( org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(builderForValue.build()); onChanged(); } else { attributeBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public Builder addAttribute( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.Builder builderForValue) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.add(index, builderForValue.build()); onChanged(); } else { attributeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public Builder addAllAttribute( java.lang.Iterable values) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, attribute_); onChanged(); } else { attributeBuilder_.addAllMessages(values); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public Builder clearAttribute() { if (attributeBuilder_ == null) { attribute_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { attributeBuilder_.clear(); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public Builder removeAttribute(int index) { if (attributeBuilder_ == null) { ensureAttributeIsMutable(); attribute_.remove(index); onChanged(); } else { attributeBuilder_.remove(index); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.Builder getAttributeBuilder( int index) { return getAttributeFieldBuilder().getBuilder(index); } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.AttributeOrBuilder getAttributeOrBuilder( int index) { if (attributeBuilder_ == null) { return attribute_.get(index); } else { return attributeBuilder_.getMessageOrBuilder(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public java.util.List getAttributeOrBuilderList() { if (attributeBuilder_ != null) { return attributeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(attribute_); } } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.Builder addAttributeBuilder() { return getAttributeFieldBuilder().addBuilder( org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.Builder addAttributeBuilder( int index) { return getAttributeFieldBuilder().addBuilder( index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.Attribute attribute = 11; */ public java.util.List getAttributeBuilderList() { return getAttributeFieldBuilder().getBuilderList(); } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute, org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.AttributeOrBuilder> getAttributeFieldBuilder() { if (attributeBuilder_ == null) { attributeBuilder_ = new org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute, org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.AttributeOrBuilder>( attribute_, ((bitField0_ & 0x00000400) == 0x00000400), getParentForChildren(), isClean()); attribute_ = null; } return attributeBuilder_; } private java.util.List detailEntry_ = java.util.Collections.emptyList(); private void ensureDetailEntryIsMutable() { if (!((bitField0_ & 0x00000800) == 0x00000800)) { detailEntry_ = new java.util.ArrayList(detailEntry_); bitField0_ |= 0x00000800; } } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder> detailEntryBuilder_; /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public java.util.List getDetailEntryList() { if (detailEntryBuilder_ == null) { return java.util.Collections.unmodifiableList(detailEntry_); } else { return detailEntryBuilder_.getMessageList(); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public int getDetailEntryCount() { if (detailEntryBuilder_ == null) { return detailEntry_.size(); } else { return detailEntryBuilder_.getCount(); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry getDetailEntry(int index) { if (detailEntryBuilder_ == null) { return detailEntry_.get(index); } else { return detailEntryBuilder_.getMessage(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public Builder setDetailEntry( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry value) { if (detailEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDetailEntryIsMutable(); detailEntry_.set(index, value); onChanged(); } else { detailEntryBuilder_.setMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public Builder setDetailEntry( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder builderForValue) { if (detailEntryBuilder_ == null) { ensureDetailEntryIsMutable(); detailEntry_.set(index, builderForValue.build()); onChanged(); } else { detailEntryBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public Builder addDetailEntry(org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry value) { if (detailEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDetailEntryIsMutable(); detailEntry_.add(value); onChanged(); } else { detailEntryBuilder_.addMessage(value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public Builder addDetailEntry( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry value) { if (detailEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDetailEntryIsMutable(); detailEntry_.add(index, value); onChanged(); } else { detailEntryBuilder_.addMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public Builder addDetailEntry( org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder builderForValue) { if (detailEntryBuilder_ == null) { ensureDetailEntryIsMutable(); detailEntry_.add(builderForValue.build()); onChanged(); } else { detailEntryBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public Builder addDetailEntry( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder builderForValue) { if (detailEntryBuilder_ == null) { ensureDetailEntryIsMutable(); detailEntry_.add(index, builderForValue.build()); onChanged(); } else { detailEntryBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public Builder addAllDetailEntry( java.lang.Iterable values) { if (detailEntryBuilder_ == null) { ensureDetailEntryIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, detailEntry_); onChanged(); } else { detailEntryBuilder_.addAllMessages(values); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public Builder clearDetailEntry() { if (detailEntryBuilder_ == null) { detailEntry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { detailEntryBuilder_.clear(); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public Builder removeDetailEntry(int index) { if (detailEntryBuilder_ == null) { ensureDetailEntryIsMutable(); detailEntry_.remove(index); onChanged(); } else { detailEntryBuilder_.remove(index); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder getDetailEntryBuilder( int index) { return getDetailEntryFieldBuilder().getBuilder(index); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder getDetailEntryOrBuilder( int index) { if (detailEntryBuilder_ == null) { return detailEntry_.get(index); } else { return detailEntryBuilder_.getMessageOrBuilder(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public java.util.List getDetailEntryOrBuilderList() { if (detailEntryBuilder_ != null) { return detailEntryBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(detailEntry_); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder addDetailEntryBuilder() { return getDetailEntryFieldBuilder().addBuilder( org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder addDetailEntryBuilder( int index) { return getDetailEntryFieldBuilder().addBuilder( index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 12; */ public java.util.List getDetailEntryBuilderList() { return getDetailEntryFieldBuilder().getBuilderList(); } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder> getDetailEntryFieldBuilder() { if (detailEntryBuilder_ == null) { detailEntryBuilder_ = new org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder>( detailEntry_, ((bitField0_ & 0x00000800) == 0x00000800), getParentForChildren(), isClean()); detailEntry_ = null; } return detailEntryBuilder_; } private org.glowroot.wire.api.model.TraceOuterClass.Trace.Error error_ = null; private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Error, org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.ErrorOrBuilder> errorBuilder_; /** * optional .org_glowroot_wire_api_model.Trace.Error error = 13; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 13; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Error getError() { if (errorBuilder_ == null) { return error_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 13; */ public Builder setError(org.glowroot.wire.api.model.TraceOuterClass.Trace.Error value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 13; */ public Builder setError( org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 13; */ public Builder mergeError(org.glowroot.wire.api.model.TraceOuterClass.Trace.Error value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 13; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 13; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 13; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.getDefaultInstance() : error_; } } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 13; */ private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Error, org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Error, org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.ErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } private org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer mainThreadRootTimer_ = null; private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder> mainThreadRootTimerBuilder_; /** * optional .org_glowroot_wire_api_model.Trace.Timer main_thread_root_timer = 14; */ public boolean hasMainThreadRootTimer() { return mainThreadRootTimerBuilder_ != null || mainThreadRootTimer_ != null; } /** * optional .org_glowroot_wire_api_model.Trace.Timer main_thread_root_timer = 14; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer getMainThreadRootTimer() { if (mainThreadRootTimerBuilder_ == null) { return mainThreadRootTimer_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.getDefaultInstance() : mainThreadRootTimer_; } else { return mainThreadRootTimerBuilder_.getMessage(); } } /** * optional .org_glowroot_wire_api_model.Trace.Timer main_thread_root_timer = 14; */ public Builder setMainThreadRootTimer(org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer value) { if (mainThreadRootTimerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mainThreadRootTimer_ = value; onChanged(); } else { mainThreadRootTimerBuilder_.setMessage(value); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.Timer main_thread_root_timer = 14; */ public Builder setMainThreadRootTimer( org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder builderForValue) { if (mainThreadRootTimerBuilder_ == null) { mainThreadRootTimer_ = builderForValue.build(); onChanged(); } else { mainThreadRootTimerBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.Timer main_thread_root_timer = 14; */ public Builder mergeMainThreadRootTimer(org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer value) { if (mainThreadRootTimerBuilder_ == null) { if (mainThreadRootTimer_ != null) { mainThreadRootTimer_ = org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.newBuilder(mainThreadRootTimer_).mergeFrom(value).buildPartial(); } else { mainThreadRootTimer_ = value; } onChanged(); } else { mainThreadRootTimerBuilder_.mergeFrom(value); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.Timer main_thread_root_timer = 14; */ public Builder clearMainThreadRootTimer() { if (mainThreadRootTimerBuilder_ == null) { mainThreadRootTimer_ = null; onChanged(); } else { mainThreadRootTimer_ = null; mainThreadRootTimerBuilder_ = null; } return this; } /** * optional .org_glowroot_wire_api_model.Trace.Timer main_thread_root_timer = 14; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder getMainThreadRootTimerBuilder() { onChanged(); return getMainThreadRootTimerFieldBuilder().getBuilder(); } /** * optional .org_glowroot_wire_api_model.Trace.Timer main_thread_root_timer = 14; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder getMainThreadRootTimerOrBuilder() { if (mainThreadRootTimerBuilder_ != null) { return mainThreadRootTimerBuilder_.getMessageOrBuilder(); } else { return mainThreadRootTimer_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.getDefaultInstance() : mainThreadRootTimer_; } } /** * optional .org_glowroot_wire_api_model.Trace.Timer main_thread_root_timer = 14; */ private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder> getMainThreadRootTimerFieldBuilder() { if (mainThreadRootTimerBuilder_ == null) { mainThreadRootTimerBuilder_ = new org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder>( getMainThreadRootTimer(), getParentForChildren(), isClean()); mainThreadRootTimer_ = null; } return mainThreadRootTimerBuilder_; } private java.util.List auxThreadRootTimer_ = java.util.Collections.emptyList(); private void ensureAuxThreadRootTimerIsMutable() { if (!((bitField0_ & 0x00004000) == 0x00004000)) { auxThreadRootTimer_ = new java.util.ArrayList(auxThreadRootTimer_); bitField0_ |= 0x00004000; } } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder> auxThreadRootTimerBuilder_; /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public java.util.List getAuxThreadRootTimerList() { if (auxThreadRootTimerBuilder_ == null) { return java.util.Collections.unmodifiableList(auxThreadRootTimer_); } else { return auxThreadRootTimerBuilder_.getMessageList(); } } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public int getAuxThreadRootTimerCount() { if (auxThreadRootTimerBuilder_ == null) { return auxThreadRootTimer_.size(); } else { return auxThreadRootTimerBuilder_.getCount(); } } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer getAuxThreadRootTimer(int index) { if (auxThreadRootTimerBuilder_ == null) { return auxThreadRootTimer_.get(index); } else { return auxThreadRootTimerBuilder_.getMessage(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public Builder setAuxThreadRootTimer( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer value) { if (auxThreadRootTimerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAuxThreadRootTimerIsMutable(); auxThreadRootTimer_.set(index, value); onChanged(); } else { auxThreadRootTimerBuilder_.setMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public Builder setAuxThreadRootTimer( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder builderForValue) { if (auxThreadRootTimerBuilder_ == null) { ensureAuxThreadRootTimerIsMutable(); auxThreadRootTimer_.set(index, builderForValue.build()); onChanged(); } else { auxThreadRootTimerBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public Builder addAuxThreadRootTimer(org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer value) { if (auxThreadRootTimerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAuxThreadRootTimerIsMutable(); auxThreadRootTimer_.add(value); onChanged(); } else { auxThreadRootTimerBuilder_.addMessage(value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public Builder addAuxThreadRootTimer( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer value) { if (auxThreadRootTimerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAuxThreadRootTimerIsMutable(); auxThreadRootTimer_.add(index, value); onChanged(); } else { auxThreadRootTimerBuilder_.addMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public Builder addAuxThreadRootTimer( org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder builderForValue) { if (auxThreadRootTimerBuilder_ == null) { ensureAuxThreadRootTimerIsMutable(); auxThreadRootTimer_.add(builderForValue.build()); onChanged(); } else { auxThreadRootTimerBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public Builder addAuxThreadRootTimer( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder builderForValue) { if (auxThreadRootTimerBuilder_ == null) { ensureAuxThreadRootTimerIsMutable(); auxThreadRootTimer_.add(index, builderForValue.build()); onChanged(); } else { auxThreadRootTimerBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public Builder addAllAuxThreadRootTimer( java.lang.Iterable values) { if (auxThreadRootTimerBuilder_ == null) { ensureAuxThreadRootTimerIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, auxThreadRootTimer_); onChanged(); } else { auxThreadRootTimerBuilder_.addAllMessages(values); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public Builder clearAuxThreadRootTimer() { if (auxThreadRootTimerBuilder_ == null) { auxThreadRootTimer_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { auxThreadRootTimerBuilder_.clear(); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public Builder removeAuxThreadRootTimer(int index) { if (auxThreadRootTimerBuilder_ == null) { ensureAuxThreadRootTimerIsMutable(); auxThreadRootTimer_.remove(index); onChanged(); } else { auxThreadRootTimerBuilder_.remove(index); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder getAuxThreadRootTimerBuilder( int index) { return getAuxThreadRootTimerFieldBuilder().getBuilder(index); } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder getAuxThreadRootTimerOrBuilder( int index) { if (auxThreadRootTimerBuilder_ == null) { return auxThreadRootTimer_.get(index); } else { return auxThreadRootTimerBuilder_.getMessageOrBuilder(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public java.util.List getAuxThreadRootTimerOrBuilderList() { if (auxThreadRootTimerBuilder_ != null) { return auxThreadRootTimerBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(auxThreadRootTimer_); } } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder addAuxThreadRootTimerBuilder() { return getAuxThreadRootTimerFieldBuilder().addBuilder( org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder addAuxThreadRootTimerBuilder( int index) { return getAuxThreadRootTimerFieldBuilder().addBuilder( index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.Timer aux_thread_root_timer = 15; */ public java.util.List getAuxThreadRootTimerBuilderList() { return getAuxThreadRootTimerFieldBuilder().getBuilderList(); } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder> getAuxThreadRootTimerFieldBuilder() { if (auxThreadRootTimerBuilder_ == null) { auxThreadRootTimerBuilder_ = new org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder>( auxThreadRootTimer_, ((bitField0_ & 0x00004000) == 0x00004000), getParentForChildren(), isClean()); auxThreadRootTimer_ = null; } return auxThreadRootTimerBuilder_; } private java.util.List asyncRootTimer_ = java.util.Collections.emptyList(); private void ensureAsyncRootTimerIsMutable() { if (!((bitField0_ & 0x00008000) == 0x00008000)) { asyncRootTimer_ = new java.util.ArrayList(asyncRootTimer_); bitField0_ |= 0x00008000; } } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder> asyncRootTimerBuilder_; /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public java.util.List getAsyncRootTimerList() { if (asyncRootTimerBuilder_ == null) { return java.util.Collections.unmodifiableList(asyncRootTimer_); } else { return asyncRootTimerBuilder_.getMessageList(); } } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public int getAsyncRootTimerCount() { if (asyncRootTimerBuilder_ == null) { return asyncRootTimer_.size(); } else { return asyncRootTimerBuilder_.getCount(); } } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer getAsyncRootTimer(int index) { if (asyncRootTimerBuilder_ == null) { return asyncRootTimer_.get(index); } else { return asyncRootTimerBuilder_.getMessage(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public Builder setAsyncRootTimer( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer value) { if (asyncRootTimerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAsyncRootTimerIsMutable(); asyncRootTimer_.set(index, value); onChanged(); } else { asyncRootTimerBuilder_.setMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public Builder setAsyncRootTimer( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder builderForValue) { if (asyncRootTimerBuilder_ == null) { ensureAsyncRootTimerIsMutable(); asyncRootTimer_.set(index, builderForValue.build()); onChanged(); } else { asyncRootTimerBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public Builder addAsyncRootTimer(org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer value) { if (asyncRootTimerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAsyncRootTimerIsMutable(); asyncRootTimer_.add(value); onChanged(); } else { asyncRootTimerBuilder_.addMessage(value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public Builder addAsyncRootTimer( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer value) { if (asyncRootTimerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAsyncRootTimerIsMutable(); asyncRootTimer_.add(index, value); onChanged(); } else { asyncRootTimerBuilder_.addMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public Builder addAsyncRootTimer( org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder builderForValue) { if (asyncRootTimerBuilder_ == null) { ensureAsyncRootTimerIsMutable(); asyncRootTimer_.add(builderForValue.build()); onChanged(); } else { asyncRootTimerBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public Builder addAsyncRootTimer( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder builderForValue) { if (asyncRootTimerBuilder_ == null) { ensureAsyncRootTimerIsMutable(); asyncRootTimer_.add(index, builderForValue.build()); onChanged(); } else { asyncRootTimerBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public Builder addAllAsyncRootTimer( java.lang.Iterable values) { if (asyncRootTimerBuilder_ == null) { ensureAsyncRootTimerIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, asyncRootTimer_); onChanged(); } else { asyncRootTimerBuilder_.addAllMessages(values); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public Builder clearAsyncRootTimer() { if (asyncRootTimerBuilder_ == null) { asyncRootTimer_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { asyncRootTimerBuilder_.clear(); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public Builder removeAsyncRootTimer(int index) { if (asyncRootTimerBuilder_ == null) { ensureAsyncRootTimerIsMutable(); asyncRootTimer_.remove(index); onChanged(); } else { asyncRootTimerBuilder_.remove(index); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder getAsyncRootTimerBuilder( int index) { return getAsyncRootTimerFieldBuilder().getBuilder(index); } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder getAsyncRootTimerOrBuilder( int index) { if (asyncRootTimerBuilder_ == null) { return asyncRootTimer_.get(index); } else { return asyncRootTimerBuilder_.getMessageOrBuilder(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public java.util.List getAsyncRootTimerOrBuilderList() { if (asyncRootTimerBuilder_ != null) { return asyncRootTimerBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(asyncRootTimer_); } } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder addAsyncRootTimerBuilder() { return getAsyncRootTimerFieldBuilder().addBuilder( org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder addAsyncRootTimerBuilder( int index) { return getAsyncRootTimerFieldBuilder().addBuilder( index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.Timer async_root_timer = 16; * *
         * children are also async, so sum of time in children can
         * 
*/ public java.util.List getAsyncRootTimerBuilderList() { return getAsyncRootTimerFieldBuilder().getBuilderList(); } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder> getAsyncRootTimerFieldBuilder() { if (asyncRootTimerBuilder_ == null) { asyncRootTimerBuilder_ = new org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder>( asyncRootTimer_, ((bitField0_ & 0x00008000) == 0x00008000), getParentForChildren(), isClean()); asyncRootTimer_ = null; } return asyncRootTimerBuilder_; } private org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats mainThreadStats_ = null; private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats, org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStatsOrBuilder> mainThreadStatsBuilder_; /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats main_thread_stats = 17; * *
         * be greater than time in parent
         * 
*/ public boolean hasMainThreadStats() { return mainThreadStatsBuilder_ != null || mainThreadStats_ != null; } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats main_thread_stats = 17; * *
         * be greater than time in parent
         * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats getMainThreadStats() { if (mainThreadStatsBuilder_ == null) { return mainThreadStats_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.getDefaultInstance() : mainThreadStats_; } else { return mainThreadStatsBuilder_.getMessage(); } } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats main_thread_stats = 17; * *
         * be greater than time in parent
         * 
*/ public Builder setMainThreadStats(org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats value) { if (mainThreadStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mainThreadStats_ = value; onChanged(); } else { mainThreadStatsBuilder_.setMessage(value); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats main_thread_stats = 17; * *
         * be greater than time in parent
         * 
*/ public Builder setMainThreadStats( org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.Builder builderForValue) { if (mainThreadStatsBuilder_ == null) { mainThreadStats_ = builderForValue.build(); onChanged(); } else { mainThreadStatsBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats main_thread_stats = 17; * *
         * be greater than time in parent
         * 
*/ public Builder mergeMainThreadStats(org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats value) { if (mainThreadStatsBuilder_ == null) { if (mainThreadStats_ != null) { mainThreadStats_ = org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.newBuilder(mainThreadStats_).mergeFrom(value).buildPartial(); } else { mainThreadStats_ = value; } onChanged(); } else { mainThreadStatsBuilder_.mergeFrom(value); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats main_thread_stats = 17; * *
         * be greater than time in parent
         * 
*/ public Builder clearMainThreadStats() { if (mainThreadStatsBuilder_ == null) { mainThreadStats_ = null; onChanged(); } else { mainThreadStats_ = null; mainThreadStatsBuilder_ = null; } return this; } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats main_thread_stats = 17; * *
         * be greater than time in parent
         * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.Builder getMainThreadStatsBuilder() { onChanged(); return getMainThreadStatsFieldBuilder().getBuilder(); } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats main_thread_stats = 17; * *
         * be greater than time in parent
         * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStatsOrBuilder getMainThreadStatsOrBuilder() { if (mainThreadStatsBuilder_ != null) { return mainThreadStatsBuilder_.getMessageOrBuilder(); } else { return mainThreadStats_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.getDefaultInstance() : mainThreadStats_; } } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats main_thread_stats = 17; * *
         * be greater than time in parent
         * 
*/ private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats, org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStatsOrBuilder> getMainThreadStatsFieldBuilder() { if (mainThreadStatsBuilder_ == null) { mainThreadStatsBuilder_ = new org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats, org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStatsOrBuilder>( getMainThreadStats(), getParentForChildren(), isClean()); mainThreadStats_ = null; } return mainThreadStatsBuilder_; } private org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats auxThreadStats_ = null; private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats, org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStatsOrBuilder> auxThreadStatsBuilder_; /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats aux_thread_stats = 18; */ public boolean hasAuxThreadStats() { return auxThreadStatsBuilder_ != null || auxThreadStats_ != null; } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats aux_thread_stats = 18; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats getAuxThreadStats() { if (auxThreadStatsBuilder_ == null) { return auxThreadStats_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.getDefaultInstance() : auxThreadStats_; } else { return auxThreadStatsBuilder_.getMessage(); } } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats aux_thread_stats = 18; */ public Builder setAuxThreadStats(org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats value) { if (auxThreadStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } auxThreadStats_ = value; onChanged(); } else { auxThreadStatsBuilder_.setMessage(value); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats aux_thread_stats = 18; */ public Builder setAuxThreadStats( org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.Builder builderForValue) { if (auxThreadStatsBuilder_ == null) { auxThreadStats_ = builderForValue.build(); onChanged(); } else { auxThreadStatsBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats aux_thread_stats = 18; */ public Builder mergeAuxThreadStats(org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats value) { if (auxThreadStatsBuilder_ == null) { if (auxThreadStats_ != null) { auxThreadStats_ = org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.newBuilder(auxThreadStats_).mergeFrom(value).buildPartial(); } else { auxThreadStats_ = value; } onChanged(); } else { auxThreadStatsBuilder_.mergeFrom(value); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats aux_thread_stats = 18; */ public Builder clearAuxThreadStats() { if (auxThreadStatsBuilder_ == null) { auxThreadStats_ = null; onChanged(); } else { auxThreadStats_ = null; auxThreadStatsBuilder_ = null; } return this; } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats aux_thread_stats = 18; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.Builder getAuxThreadStatsBuilder() { onChanged(); return getAuxThreadStatsFieldBuilder().getBuilder(); } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats aux_thread_stats = 18; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStatsOrBuilder getAuxThreadStatsOrBuilder() { if (auxThreadStatsBuilder_ != null) { return auxThreadStatsBuilder_.getMessageOrBuilder(); } else { return auxThreadStats_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.getDefaultInstance() : auxThreadStats_; } } /** * optional .org_glowroot_wire_api_model.Trace.ThreadStats aux_thread_stats = 18; */ private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats, org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStatsOrBuilder> getAuxThreadStatsFieldBuilder() { if (auxThreadStatsBuilder_ == null) { auxThreadStatsBuilder_ = new org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats, org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStatsOrBuilder>( getAuxThreadStats(), getParentForChildren(), isClean()); auxThreadStats_ = null; } return auxThreadStatsBuilder_; } private int entryCount_ ; /** * optional int32 entry_count = 19; */ public int getEntryCount() { return entryCount_; } /** * optional int32 entry_count = 19; */ public Builder setEntryCount(int value) { entryCount_ = value; onChanged(); return this; } /** * optional int32 entry_count = 19; */ public Builder clearEntryCount() { entryCount_ = 0; onChanged(); return this; } private boolean entryLimitExceeded_ ; /** * optional bool entry_limit_exceeded = 20; */ public boolean getEntryLimitExceeded() { return entryLimitExceeded_; } /** * optional bool entry_limit_exceeded = 20; */ public Builder setEntryLimitExceeded(boolean value) { entryLimitExceeded_ = value; onChanged(); return this; } /** * optional bool entry_limit_exceeded = 20; */ public Builder clearEntryLimitExceeded() { entryLimitExceeded_ = false; onChanged(); return this; } private long mainThreadProfileSampleCount_ ; /** * optional int64 main_thread_profile_sample_count = 21; */ public long getMainThreadProfileSampleCount() { return mainThreadProfileSampleCount_; } /** * optional int64 main_thread_profile_sample_count = 21; */ public Builder setMainThreadProfileSampleCount(long value) { mainThreadProfileSampleCount_ = value; onChanged(); return this; } /** * optional int64 main_thread_profile_sample_count = 21; */ public Builder clearMainThreadProfileSampleCount() { mainThreadProfileSampleCount_ = 0L; onChanged(); return this; } private boolean mainThreadProfileSampleLimitExceeded_ ; /** * optional bool main_thread_profile_sample_limit_exceeded = 22; */ public boolean getMainThreadProfileSampleLimitExceeded() { return mainThreadProfileSampleLimitExceeded_; } /** * optional bool main_thread_profile_sample_limit_exceeded = 22; */ public Builder setMainThreadProfileSampleLimitExceeded(boolean value) { mainThreadProfileSampleLimitExceeded_ = value; onChanged(); return this; } /** * optional bool main_thread_profile_sample_limit_exceeded = 22; */ public Builder clearMainThreadProfileSampleLimitExceeded() { mainThreadProfileSampleLimitExceeded_ = false; onChanged(); return this; } private long auxThreadProfileSampleCount_ ; /** * optional int64 aux_thread_profile_sample_count = 23; */ public long getAuxThreadProfileSampleCount() { return auxThreadProfileSampleCount_; } /** * optional int64 aux_thread_profile_sample_count = 23; */ public Builder setAuxThreadProfileSampleCount(long value) { auxThreadProfileSampleCount_ = value; onChanged(); return this; } /** * optional int64 aux_thread_profile_sample_count = 23; */ public Builder clearAuxThreadProfileSampleCount() { auxThreadProfileSampleCount_ = 0L; onChanged(); return this; } private boolean auxThreadProfileSampleLimitExceeded_ ; /** * optional bool aux_thread_profile_sample_limit_exceeded = 24; */ public boolean getAuxThreadProfileSampleLimitExceeded() { return auxThreadProfileSampleLimitExceeded_; } /** * optional bool aux_thread_profile_sample_limit_exceeded = 24; */ public Builder setAuxThreadProfileSampleLimitExceeded(boolean value) { auxThreadProfileSampleLimitExceeded_ = value; onChanged(); return this; } /** * optional bool aux_thread_profile_sample_limit_exceeded = 24; */ public Builder clearAuxThreadProfileSampleLimitExceeded() { auxThreadProfileSampleLimitExceeded_ = false; onChanged(); return this; } public final Builder setUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:org_glowroot_wire_api_model.Trace.Header) } // @@protoc_insertion_point(class_scope:org_glowroot_wire_api_model.Trace.Header) private static final org.glowroot.wire.api.model.TraceOuterClass.Trace.Header DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.glowroot.wire.api.model.TraceOuterClass.Trace.Header(); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Header getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.glowroot.agent.shaded.google.protobuf.Parser
PARSER = new org.glowroot.agent.shaded.google.protobuf.AbstractParser
() { public Header parsePartialFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { try { return new Header(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) { throw (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static org.glowroot.agent.shaded.google.protobuf.Parser
parser() { return PARSER; } @java.lang.Override public org.glowroot.agent.shaded.google.protobuf.Parser
getParserForType() { return PARSER; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AttributeOrBuilder extends // @@protoc_insertion_point(interface_extends:org_glowroot_wire_api_model.Trace.Attribute) org.glowroot.agent.shaded.google.protobuf.MessageOrBuilder { /** * optional string name = 1; */ java.lang.String getName(); /** * optional string name = 1; */ org.glowroot.agent.shaded.google.protobuf.ByteString getNameBytes(); /** * repeated string value = 2; */ org.glowroot.agent.shaded.google.protobuf.ProtocolStringList getValueList(); /** * repeated string value = 2; */ int getValueCount(); /** * repeated string value = 2; */ java.lang.String getValue(int index); /** * repeated string value = 2; */ org.glowroot.agent.shaded.google.protobuf.ByteString getValueBytes(int index); } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.Attribute} */ public static final class Attribute extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org_glowroot_wire_api_model.Trace.Attribute) AttributeOrBuilder { // Use Attribute.newBuilder() to construct. private Attribute(org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Attribute() { name_ = ""; value_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet getUnknownFields() { return org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Attribute( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { value_ = new org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } value_.add(s); break; } } } } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { value_ = value_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Attribute_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Attribute_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * optional string name = 1; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private org.glowroot.agent.shaded.google.protobuf.LazyStringList value_; /** * repeated string value = 2; */ public org.glowroot.agent.shaded.google.protobuf.ProtocolStringList getValueList() { return value_; } /** * repeated string value = 2; */ public int getValueCount() { return value_.size(); } /** * repeated string value = 2; */ public java.lang.String getValue(int index) { return value_.get(index); } /** * repeated string value = 2; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getValueBytes(int index) { return value_.getByteString(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.glowroot.agent.shaded.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } for (int i = 0; i < value_.size(); i++) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 2, value_.getRaw(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } { int dataSize = 0; for (int i = 0; i < value_.size(); i++) { dataSize += computeStringSizeNoTag(value_.getRaw(i)); } size += dataSize; size += 1 * getValueList().size(); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute parseFrom(byte[] data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute parseFrom( byte[] data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute parseFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute parseDelimitedFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.Attribute} */ public static final class Builder extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org_glowroot_wire_api_model.Trace.Attribute) org.glowroot.wire.api.model.TraceOuterClass.Trace.AttributeOrBuilder { public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Attribute_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Attribute_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.Builder.class); } // Construct using org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); name_ = ""; value_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Attribute_descriptor; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute getDefaultInstanceForType() { return org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.getDefaultInstance(); } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute build() { org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute buildPartial() { org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute result = new org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; if (((bitField0_ & 0x00000002) == 0x00000002)) { value_ = value_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(org.glowroot.agent.shaded.google.protobuf.Message other) { if (other instanceof org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute) { return mergeFrom((org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute other) { if (other == org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name = 1; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } /** * optional string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * optional string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 1; */ public Builder setNameBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private org.glowroot.agent.shaded.google.protobuf.LazyStringList value_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { value_ = new org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList(value_); bitField0_ |= 0x00000002; } } /** * repeated string value = 2; */ public org.glowroot.agent.shaded.google.protobuf.ProtocolStringList getValueList() { return value_.getUnmodifiableView(); } /** * repeated string value = 2; */ public int getValueCount() { return value_.size(); } /** * repeated string value = 2; */ public java.lang.String getValue(int index) { return value_.get(index); } /** * repeated string value = 2; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getValueBytes(int index) { return value_.getByteString(index); } /** * repeated string value = 2; */ public Builder setValue( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); return this; } /** * repeated string value = 2; */ public Builder addValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); return this; } /** * repeated string value = 2; */ public Builder addAllValue( java.lang.Iterable values) { ensureValueIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); onChanged(); return this; } /** * repeated string value = 2; */ public Builder clearValue() { value_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string value = 2; */ public Builder addValueBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureValueIsMutable(); value_.add(value); onChanged(); return this; } public final Builder setUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:org_glowroot_wire_api_model.Trace.Attribute) } // @@protoc_insertion_point(class_scope:org_glowroot_wire_api_model.Trace.Attribute) private static final org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute(); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.glowroot.agent.shaded.google.protobuf.Parser PARSER = new org.glowroot.agent.shaded.google.protobuf.AbstractParser() { public Attribute parsePartialFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { try { return new Attribute(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) { throw (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static org.glowroot.agent.shaded.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.glowroot.agent.shaded.google.protobuf.Parser getParserForType() { return PARSER; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Attribute getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DetailEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:org_glowroot_wire_api_model.Trace.DetailEntry) org.glowroot.agent.shaded.google.protobuf.MessageOrBuilder { /** * optional string name = 1; */ java.lang.String getName(); /** * optional string name = 1; */ org.glowroot.agent.shaded.google.protobuf.ByteString getNameBytes(); /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
       * one of these two (or neither for an empty value)
       * 
*/ java.util.List getValueList(); /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
       * one of these two (or neither for an empty value)
       * 
*/ org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue getValue(int index); /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
       * one of these two (or neither for an empty value)
       * 
*/ int getValueCount(); /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
       * one of these two (or neither for an empty value)
       * 
*/ java.util.List getValueOrBuilderList(); /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
       * one of these two (or neither for an empty value)
       * 
*/ org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValueOrBuilder getValueOrBuilder( int index); /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ java.util.List getChildEntryList(); /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry getChildEntry(int index); /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ int getChildEntryCount(); /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ java.util.List getChildEntryOrBuilderList(); /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder getChildEntryOrBuilder( int index); } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.DetailEntry} */ public static final class DetailEntry extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org_glowroot_wire_api_model.Trace.DetailEntry) DetailEntryOrBuilder { // Use DetailEntry.newBuilder() to construct. private DetailEntry(org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DetailEntry() { name_ = ""; value_ = java.util.Collections.emptyList(); childEntry_ = java.util.Collections.emptyList(); } @java.lang.Override public final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet getUnknownFields() { return org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DetailEntry( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { value_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } value_.add(input.readMessage(org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.parser(), extensionRegistry)); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { childEntry_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } childEntry_.add(input.readMessage(org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.parser(), extensionRegistry)); break; } } } } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { value_ = java.util.Collections.unmodifiableList(value_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { childEntry_ = java.util.Collections.unmodifiableList(childEntry_); } makeExtensionsImmutable(); } } public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_DetailEntry_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_DetailEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * optional string name = 1; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private java.util.List value_; /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
       * one of these two (or neither for an empty value)
       * 
*/ public java.util.List getValueList() { return value_; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
       * one of these two (or neither for an empty value)
       * 
*/ public java.util.List getValueOrBuilderList() { return value_; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
       * one of these two (or neither for an empty value)
       * 
*/ public int getValueCount() { return value_.size(); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
       * one of these two (or neither for an empty value)
       * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue getValue(int index) { return value_.get(index); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
       * one of these two (or neither for an empty value)
       * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValueOrBuilder getValueOrBuilder( int index) { return value_.get(index); } public static final int CHILD_ENTRY_FIELD_NUMBER = 3; private java.util.List childEntry_; /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public java.util.List getChildEntryList() { return childEntry_; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public java.util.List getChildEntryOrBuilderList() { return childEntry_; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public int getChildEntryCount() { return childEntry_.size(); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry getChildEntry(int index) { return childEntry_.get(index); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder getChildEntryOrBuilder( int index) { return childEntry_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.glowroot.agent.shaded.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } for (int i = 0; i < value_.size(); i++) { output.writeMessage(2, value_.get(i)); } for (int i = 0; i < childEntry_.size(); i++) { output.writeMessage(3, childEntry_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } for (int i = 0; i < value_.size(); i++) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(2, value_.get(i)); } for (int i = 0; i < childEntry_.size(); i++) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(3, childEntry_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry parseFrom(byte[] data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry parseFrom( byte[] data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry parseFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry parseDelimitedFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.DetailEntry} */ public static final class Builder extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org_glowroot_wire_api_model.Trace.DetailEntry) org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder { public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_DetailEntry_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_DetailEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder.class); } // Construct using org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getValueFieldBuilder(); getChildEntryFieldBuilder(); } } public Builder clear() { super.clear(); name_ = ""; if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { valueBuilder_.clear(); } if (childEntryBuilder_ == null) { childEntry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { childEntryBuilder_.clear(); } return this; } public org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_DetailEntry_descriptor; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry getDefaultInstanceForType() { return org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.getDefaultInstance(); } public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry build() { org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry buildPartial() { org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry result = new org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { value_ = java.util.Collections.unmodifiableList(value_); bitField0_ = (bitField0_ & ~0x00000002); } result.value_ = value_; } else { result.value_ = valueBuilder_.build(); } if (childEntryBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { childEntry_ = java.util.Collections.unmodifiableList(childEntry_); bitField0_ = (bitField0_ & ~0x00000004); } result.childEntry_ = childEntry_; } else { result.childEntry_ = childEntryBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(org.glowroot.agent.shaded.google.protobuf.Message other) { if (other instanceof org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry) { return mergeFrom((org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry other) { if (other == org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (valueBuilder_ == null) { if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } } else { if (!other.value_.isEmpty()) { if (valueBuilder_.isEmpty()) { valueBuilder_.dispose(); valueBuilder_ = null; value_ = other.value_; bitField0_ = (bitField0_ & ~0x00000002); valueBuilder_ = org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getValueFieldBuilder() : null; } else { valueBuilder_.addAllMessages(other.value_); } } } if (childEntryBuilder_ == null) { if (!other.childEntry_.isEmpty()) { if (childEntry_.isEmpty()) { childEntry_ = other.childEntry_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureChildEntryIsMutable(); childEntry_.addAll(other.childEntry_); } onChanged(); } } else { if (!other.childEntry_.isEmpty()) { if (childEntryBuilder_.isEmpty()) { childEntryBuilder_.dispose(); childEntryBuilder_ = null; childEntry_ = other.childEntry_; bitField0_ = (bitField0_ & ~0x00000004); childEntryBuilder_ = org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getChildEntryFieldBuilder() : null; } else { childEntryBuilder_.addAllMessages(other.childEntry_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name = 1; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } /** * optional string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * optional string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 1; */ public Builder setNameBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.util.List value_ = java.util.Collections.emptyList(); private void ensureValueIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { value_ = new java.util.ArrayList(value_); bitField0_ |= 0x00000002; } } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValueOrBuilder> valueBuilder_; /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public java.util.List getValueList() { if (valueBuilder_ == null) { return java.util.Collections.unmodifiableList(value_); } else { return valueBuilder_.getMessageList(); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public int getValueCount() { if (valueBuilder_ == null) { return value_.size(); } else { return valueBuilder_.getCount(); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue getValue(int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessage(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public Builder setValue( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.set(index, value); onChanged(); } else { valueBuilder_.setMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public Builder setValue( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.set(index, builderForValue.build()); onChanged(); } else { valueBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public Builder addValue(org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(value); onChanged(); } else { valueBuilder_.addMessage(value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public Builder addValue( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueIsMutable(); value_.add(index, value); onChanged(); } else { valueBuilder_.addMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public Builder addValue( org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public Builder addValue( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.Builder builderForValue) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.add(index, builderForValue.build()); onChanged(); } else { valueBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public Builder addAllValue( java.lang.Iterable values) { if (valueBuilder_ == null) { ensureValueIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); onChanged(); } else { valueBuilder_.addAllMessages(values); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public Builder clearValue() { if (valueBuilder_ == null) { value_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { valueBuilder_.clear(); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public Builder removeValue(int index) { if (valueBuilder_ == null) { ensureValueIsMutable(); value_.remove(index); onChanged(); } else { valueBuilder_.remove(index); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.Builder getValueBuilder( int index) { return getValueFieldBuilder().getBuilder(index); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValueOrBuilder getValueOrBuilder( int index) { if (valueBuilder_ == null) { return value_.get(index); } else { return valueBuilder_.getMessageOrBuilder(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public java.util.List getValueOrBuilderList() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(value_); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.Builder addValueBuilder() { return getValueFieldBuilder().addBuilder( org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.Builder addValueBuilder( int index) { return getValueFieldBuilder().addBuilder( index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailValue value = 2; * *
         * one of these two (or neither for an empty value)
         * 
*/ public java.util.List getValueBuilderList() { return getValueFieldBuilder().getBuilderList(); } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValueOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValueOrBuilder>( value_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } private java.util.List childEntry_ = java.util.Collections.emptyList(); private void ensureChildEntryIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { childEntry_ = new java.util.ArrayList(childEntry_); bitField0_ |= 0x00000004; } } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder> childEntryBuilder_; /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public java.util.List getChildEntryList() { if (childEntryBuilder_ == null) { return java.util.Collections.unmodifiableList(childEntry_); } else { return childEntryBuilder_.getMessageList(); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public int getChildEntryCount() { if (childEntryBuilder_ == null) { return childEntry_.size(); } else { return childEntryBuilder_.getCount(); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry getChildEntry(int index) { if (childEntryBuilder_ == null) { return childEntry_.get(index); } else { return childEntryBuilder_.getMessage(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public Builder setChildEntry( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry value) { if (childEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildEntryIsMutable(); childEntry_.set(index, value); onChanged(); } else { childEntryBuilder_.setMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public Builder setChildEntry( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder builderForValue) { if (childEntryBuilder_ == null) { ensureChildEntryIsMutable(); childEntry_.set(index, builderForValue.build()); onChanged(); } else { childEntryBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public Builder addChildEntry(org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry value) { if (childEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildEntryIsMutable(); childEntry_.add(value); onChanged(); } else { childEntryBuilder_.addMessage(value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public Builder addChildEntry( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry value) { if (childEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildEntryIsMutable(); childEntry_.add(index, value); onChanged(); } else { childEntryBuilder_.addMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public Builder addChildEntry( org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder builderForValue) { if (childEntryBuilder_ == null) { ensureChildEntryIsMutable(); childEntry_.add(builderForValue.build()); onChanged(); } else { childEntryBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public Builder addChildEntry( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder builderForValue) { if (childEntryBuilder_ == null) { ensureChildEntryIsMutable(); childEntry_.add(index, builderForValue.build()); onChanged(); } else { childEntryBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public Builder addAllChildEntry( java.lang.Iterable values) { if (childEntryBuilder_ == null) { ensureChildEntryIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, childEntry_); onChanged(); } else { childEntryBuilder_.addAllMessages(values); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public Builder clearChildEntry() { if (childEntryBuilder_ == null) { childEntry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { childEntryBuilder_.clear(); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public Builder removeChildEntry(int index) { if (childEntryBuilder_ == null) { ensureChildEntryIsMutable(); childEntry_.remove(index); onChanged(); } else { childEntryBuilder_.remove(index); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder getChildEntryBuilder( int index) { return getChildEntryFieldBuilder().getBuilder(index); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder getChildEntryOrBuilder( int index) { if (childEntryBuilder_ == null) { return childEntry_.get(index); } else { return childEntryBuilder_.getMessageOrBuilder(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public java.util.List getChildEntryOrBuilderList() { if (childEntryBuilder_ != null) { return childEntryBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(childEntry_); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder addChildEntryBuilder() { return getChildEntryFieldBuilder().addBuilder( org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder addChildEntryBuilder( int index) { return getChildEntryFieldBuilder().addBuilder( index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry child_entry = 3; */ public java.util.List getChildEntryBuilderList() { return getChildEntryFieldBuilder().getBuilderList(); } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder> getChildEntryFieldBuilder() { if (childEntryBuilder_ == null) { childEntryBuilder_ = new org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder>( childEntry_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); childEntry_ = null; } return childEntryBuilder_; } public final Builder setUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:org_glowroot_wire_api_model.Trace.DetailEntry) } // @@protoc_insertion_point(class_scope:org_glowroot_wire_api_model.Trace.DetailEntry) private static final org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry(); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.glowroot.agent.shaded.google.protobuf.Parser PARSER = new org.glowroot.agent.shaded.google.protobuf.AbstractParser() { public DetailEntry parsePartialFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { try { return new DetailEntry(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) { throw (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static org.glowroot.agent.shaded.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.glowroot.agent.shaded.google.protobuf.Parser getParserForType() { return PARSER; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DetailValueOrBuilder extends // @@protoc_insertion_point(interface_extends:org_glowroot_wire_api_model.Trace.DetailValue) org.glowroot.agent.shaded.google.protobuf.MessageOrBuilder { /** * optional string string = 1; */ java.lang.String getString(); /** * optional string string = 1; */ org.glowroot.agent.shaded.google.protobuf.ByteString getStringBytes(); /** * optional double double = 2; */ double getDouble(); /** * optional int64 long = 3; */ long getLong(); /** * optional bool boolean = 4; */ boolean getBoolean(); public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.ValCase getValCase(); } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.DetailValue} */ public static final class DetailValue extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org_glowroot_wire_api_model.Trace.DetailValue) DetailValueOrBuilder { // Use DetailValue.newBuilder() to construct. private DetailValue(org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private DetailValue() { } @java.lang.Override public final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet getUnknownFields() { return org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private DetailValue( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); valCase_ = 1; val_ = s; break; } case 17: { valCase_ = 2; val_ = input.readDouble(); break; } case 24: { valCase_ = 3; val_ = input.readInt64(); break; } case 32: { valCase_ = 4; val_ = input.readBool(); break; } } } } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { makeExtensionsImmutable(); } } public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_DetailValue_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_DetailValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.Builder.class); } private int valCase_ = 0; private java.lang.Object val_; public enum ValCase implements org.glowroot.agent.shaded.google.protobuf.Internal.EnumLite { STRING(1), DOUBLE(2), LONG(3), BOOLEAN(4), VAL_NOT_SET(0); private int value = 0; private ValCase(int value) { this.value = value; } public static ValCase valueOf(int value) { switch (value) { case 1: return STRING; case 2: return DOUBLE; case 3: return LONG; case 4: return BOOLEAN; case 0: return VAL_NOT_SET; default: throw new java.lang.IllegalArgumentException( "Value is undefined for this oneof enum."); } } public int getNumber() { return this.value; } }; public ValCase getValCase() { return ValCase.valueOf( valCase_); } public static final int STRING_FIELD_NUMBER = 1; /** * optional string string = 1; */ public java.lang.String getString() { java.lang.Object ref = ""; if (valCase_ == 1) { ref = val_; } if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valCase_ == 1) { val_ = s; } return s; } } /** * optional string string = 1; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getStringBytes() { java.lang.Object ref = ""; if (valCase_ == 1) { ref = val_; } if (ref instanceof java.lang.String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valCase_ == 1) { val_ = b; } return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } public static final int DOUBLE_FIELD_NUMBER = 2; /** * optional double double = 2; */ public double getDouble() { if (valCase_ == 2) { return (java.lang.Double) val_; } return 0D; } public static final int LONG_FIELD_NUMBER = 3; /** * optional int64 long = 3; */ public long getLong() { if (valCase_ == 3) { return (java.lang.Long) val_; } return 0L; } public static final int BOOLEAN_FIELD_NUMBER = 4; /** * optional bool boolean = 4; */ public boolean getBoolean() { if (valCase_ == 4) { return (java.lang.Boolean) val_; } return false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.glowroot.agent.shaded.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (valCase_ == 1) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 1, val_); } if (valCase_ == 2) { output.writeDouble( 2, (double)((java.lang.Double) val_)); } if (valCase_ == 3) { output.writeInt64( 3, (long)((java.lang.Long) val_)); } if (valCase_ == 4) { output.writeBool( 4, (boolean)((java.lang.Boolean) val_)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (valCase_ == 1) { size += org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.computeStringSize(1, val_); } if (valCase_ == 2) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeDoubleSize( 2, (double)((java.lang.Double) val_)); } if (valCase_ == 3) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt64Size( 3, (long)((java.lang.Long) val_)); } if (valCase_ == 4) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeBoolSize( 4, (boolean)((java.lang.Boolean) val_)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue parseFrom(byte[] data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue parseFrom( byte[] data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue parseFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue parseDelimitedFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.DetailValue} */ public static final class Builder extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org_glowroot_wire_api_model.Trace.DetailValue) org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValueOrBuilder { public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_DetailValue_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_DetailValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.Builder.class); } // Construct using org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); valCase_ = 0; val_ = null; return this; } public org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_DetailValue_descriptor; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue getDefaultInstanceForType() { return org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.getDefaultInstance(); } public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue build() { org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue buildPartial() { org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue result = new org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue(this); if (valCase_ == 1) { result.val_ = val_; } if (valCase_ == 2) { result.val_ = val_; } if (valCase_ == 3) { result.val_ = val_; } if (valCase_ == 4) { result.val_ = val_; } result.valCase_ = valCase_; onBuilt(); return result; } public Builder mergeFrom(org.glowroot.agent.shaded.google.protobuf.Message other) { if (other instanceof org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue) { return mergeFrom((org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue other) { if (other == org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue.getDefaultInstance()) return this; switch (other.getValCase()) { case STRING: { valCase_ = 1; val_ = other.val_; onChanged(); break; } case DOUBLE: { setDouble(other.getDouble()); break; } case LONG: { setLong(other.getLong()); break; } case BOOLEAN: { setBoolean(other.getBoolean()); break; } case VAL_NOT_SET: { break; } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int valCase_ = 0; private java.lang.Object val_; public ValCase getValCase() { return ValCase.valueOf( valCase_); } public Builder clearVal() { valCase_ = 0; val_ = null; onChanged(); return this; } /** * optional string string = 1; */ public java.lang.String getString() { java.lang.Object ref = ""; if (valCase_ == 1) { ref = val_; } if (!(ref instanceof java.lang.String)) { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (valCase_ == 1) { val_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string string = 1; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getStringBytes() { java.lang.Object ref = ""; if (valCase_ == 1) { ref = val_; } if (ref instanceof String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (valCase_ == 1) { val_ = b; } return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } /** * optional string string = 1; */ public Builder setString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } valCase_ = 1; val_ = value; onChanged(); return this; } /** * optional string string = 1; */ public Builder clearString() { if (valCase_ == 1) { valCase_ = 0; val_ = null; onChanged(); } return this; } /** * optional string string = 1; */ public Builder setStringBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); valCase_ = 1; val_ = value; onChanged(); return this; } /** * optional double double = 2; */ public double getDouble() { if (valCase_ == 2) { return (java.lang.Double) val_; } return 0D; } /** * optional double double = 2; */ public Builder setDouble(double value) { valCase_ = 2; val_ = value; onChanged(); return this; } /** * optional double double = 2; */ public Builder clearDouble() { if (valCase_ == 2) { valCase_ = 0; val_ = null; onChanged(); } return this; } /** * optional int64 long = 3; */ public long getLong() { if (valCase_ == 3) { return (java.lang.Long) val_; } return 0L; } /** * optional int64 long = 3; */ public Builder setLong(long value) { valCase_ = 3; val_ = value; onChanged(); return this; } /** * optional int64 long = 3; */ public Builder clearLong() { if (valCase_ == 3) { valCase_ = 0; val_ = null; onChanged(); } return this; } /** * optional bool boolean = 4; */ public boolean getBoolean() { if (valCase_ == 4) { return (java.lang.Boolean) val_; } return false; } /** * optional bool boolean = 4; */ public Builder setBoolean(boolean value) { valCase_ = 4; val_ = value; onChanged(); return this; } /** * optional bool boolean = 4; */ public Builder clearBoolean() { if (valCase_ == 4) { valCase_ = 0; val_ = null; onChanged(); } return this; } public final Builder setUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:org_glowroot_wire_api_model.Trace.DetailValue) } // @@protoc_insertion_point(class_scope:org_glowroot_wire_api_model.Trace.DetailValue) private static final org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue(); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.glowroot.agent.shaded.google.protobuf.Parser PARSER = new org.glowroot.agent.shaded.google.protobuf.AbstractParser() { public DetailValue parsePartialFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { try { return new DetailValue(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) { throw (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static org.glowroot.agent.shaded.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.glowroot.agent.shaded.google.protobuf.Parser getParserForType() { return PARSER; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:org_glowroot_wire_api_model.Trace.Error) org.glowroot.agent.shaded.google.protobuf.MessageOrBuilder { /** * optional string message = 1; */ java.lang.String getMessage(); /** * optional string message = 1; */ org.glowroot.agent.shaded.google.protobuf.ByteString getMessageBytes(); /** * optional .org_glowroot_wire_api_model.Throwable exception = 2; */ boolean hasException(); /** * optional .org_glowroot_wire_api_model.Throwable exception = 2; */ org.glowroot.wire.api.model.Proto.Throwable getException(); /** * optional .org_glowroot_wire_api_model.Throwable exception = 2; */ org.glowroot.wire.api.model.Proto.ThrowableOrBuilder getExceptionOrBuilder(); } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.Error} */ public static final class Error extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org_glowroot_wire_api_model.Trace.Error) ErrorOrBuilder { // Use Error.newBuilder() to construct. private Error(org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Error() { message_ = ""; } @java.lang.Override public final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet getUnknownFields() { return org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Error( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); message_ = s; break; } case 18: { org.glowroot.wire.api.model.Proto.Throwable.Builder subBuilder = null; if (exception_ != null) { subBuilder = exception_.toBuilder(); } exception_ = input.readMessage(org.glowroot.wire.api.model.Proto.Throwable.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(exception_); exception_ = subBuilder.buildPartial(); } break; } } } } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { makeExtensionsImmutable(); } } public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Error_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.Builder.class); } public static final int MESSAGE_FIELD_NUMBER = 1; private volatile java.lang.Object message_; /** * optional string message = 1; */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** * optional string message = 1; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } public static final int EXCEPTION_FIELD_NUMBER = 2; private org.glowroot.wire.api.model.Proto.Throwable exception_; /** * optional .org_glowroot_wire_api_model.Throwable exception = 2; */ public boolean hasException() { return exception_ != null; } /** * optional .org_glowroot_wire_api_model.Throwable exception = 2; */ public org.glowroot.wire.api.model.Proto.Throwable getException() { return exception_ == null ? org.glowroot.wire.api.model.Proto.Throwable.getDefaultInstance() : exception_; } /** * optional .org_glowroot_wire_api_model.Throwable exception = 2; */ public org.glowroot.wire.api.model.Proto.ThrowableOrBuilder getExceptionOrBuilder() { return getException(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.glowroot.agent.shaded.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getMessageBytes().isEmpty()) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 1, message_); } if (exception_ != null) { output.writeMessage(2, getException()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getMessageBytes().isEmpty()) { size += org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.computeStringSize(1, message_); } if (exception_ != null) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(2, getException()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Error parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Error parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Error parseFrom(byte[] data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Error parseFrom( byte[] data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Error parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Error parseFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Error parseDelimitedFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Error parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Error parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.glowroot.wire.api.model.TraceOuterClass.Trace.Error prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.Error} */ public static final class Builder extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org_glowroot_wire_api_model.Trace.Error) org.glowroot.wire.api.model.TraceOuterClass.Trace.ErrorOrBuilder { public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Error_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.Builder.class); } // Construct using org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); message_ = ""; if (exceptionBuilder_ == null) { exception_ = null; } else { exception_ = null; exceptionBuilder_ = null; } return this; } public org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Error_descriptor; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Error getDefaultInstanceForType() { return org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.getDefaultInstance(); } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Error build() { org.glowroot.wire.api.model.TraceOuterClass.Trace.Error result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Error buildPartial() { org.glowroot.wire.api.model.TraceOuterClass.Trace.Error result = new org.glowroot.wire.api.model.TraceOuterClass.Trace.Error(this); result.message_ = message_; if (exceptionBuilder_ == null) { result.exception_ = exception_; } else { result.exception_ = exceptionBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(org.glowroot.agent.shaded.google.protobuf.Message other) { if (other instanceof org.glowroot.wire.api.model.TraceOuterClass.Trace.Error) { return mergeFrom((org.glowroot.wire.api.model.TraceOuterClass.Trace.Error)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.glowroot.wire.api.model.TraceOuterClass.Trace.Error other) { if (other == org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } if (other.hasException()) { mergeException(other.getException()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.glowroot.wire.api.model.TraceOuterClass.Trace.Error parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.glowroot.wire.api.model.TraceOuterClass.Trace.Error) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object message_ = ""; /** * optional string message = 1; */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string message = 1; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } /** * optional string message = 1; */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /** * optional string message = 1; */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * optional string message = 1; */ public Builder setMessageBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; onChanged(); return this; } private org.glowroot.wire.api.model.Proto.Throwable exception_ = null; private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.Proto.Throwable, org.glowroot.wire.api.model.Proto.Throwable.Builder, org.glowroot.wire.api.model.Proto.ThrowableOrBuilder> exceptionBuilder_; /** * optional .org_glowroot_wire_api_model.Throwable exception = 2; */ public boolean hasException() { return exceptionBuilder_ != null || exception_ != null; } /** * optional .org_glowroot_wire_api_model.Throwable exception = 2; */ public org.glowroot.wire.api.model.Proto.Throwable getException() { if (exceptionBuilder_ == null) { return exception_ == null ? org.glowroot.wire.api.model.Proto.Throwable.getDefaultInstance() : exception_; } else { return exceptionBuilder_.getMessage(); } } /** * optional .org_glowroot_wire_api_model.Throwable exception = 2; */ public Builder setException(org.glowroot.wire.api.model.Proto.Throwable value) { if (exceptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } exception_ = value; onChanged(); } else { exceptionBuilder_.setMessage(value); } return this; } /** * optional .org_glowroot_wire_api_model.Throwable exception = 2; */ public Builder setException( org.glowroot.wire.api.model.Proto.Throwable.Builder builderForValue) { if (exceptionBuilder_ == null) { exception_ = builderForValue.build(); onChanged(); } else { exceptionBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .org_glowroot_wire_api_model.Throwable exception = 2; */ public Builder mergeException(org.glowroot.wire.api.model.Proto.Throwable value) { if (exceptionBuilder_ == null) { if (exception_ != null) { exception_ = org.glowroot.wire.api.model.Proto.Throwable.newBuilder(exception_).mergeFrom(value).buildPartial(); } else { exception_ = value; } onChanged(); } else { exceptionBuilder_.mergeFrom(value); } return this; } /** * optional .org_glowroot_wire_api_model.Throwable exception = 2; */ public Builder clearException() { if (exceptionBuilder_ == null) { exception_ = null; onChanged(); } else { exception_ = null; exceptionBuilder_ = null; } return this; } /** * optional .org_glowroot_wire_api_model.Throwable exception = 2; */ public org.glowroot.wire.api.model.Proto.Throwable.Builder getExceptionBuilder() { onChanged(); return getExceptionFieldBuilder().getBuilder(); } /** * optional .org_glowroot_wire_api_model.Throwable exception = 2; */ public org.glowroot.wire.api.model.Proto.ThrowableOrBuilder getExceptionOrBuilder() { if (exceptionBuilder_ != null) { return exceptionBuilder_.getMessageOrBuilder(); } else { return exception_ == null ? org.glowroot.wire.api.model.Proto.Throwable.getDefaultInstance() : exception_; } } /** * optional .org_glowroot_wire_api_model.Throwable exception = 2; */ private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.Proto.Throwable, org.glowroot.wire.api.model.Proto.Throwable.Builder, org.glowroot.wire.api.model.Proto.ThrowableOrBuilder> getExceptionFieldBuilder() { if (exceptionBuilder_ == null) { exceptionBuilder_ = new org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.Proto.Throwable, org.glowroot.wire.api.model.Proto.Throwable.Builder, org.glowroot.wire.api.model.Proto.ThrowableOrBuilder>( getException(), getParentForChildren(), isClean()); exception_ = null; } return exceptionBuilder_; } public final Builder setUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:org_glowroot_wire_api_model.Trace.Error) } // @@protoc_insertion_point(class_scope:org_glowroot_wire_api_model.Trace.Error) private static final org.glowroot.wire.api.model.TraceOuterClass.Trace.Error DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.glowroot.wire.api.model.TraceOuterClass.Trace.Error(); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Error getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.glowroot.agent.shaded.google.protobuf.Parser PARSER = new org.glowroot.agent.shaded.google.protobuf.AbstractParser() { public Error parsePartialFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { try { return new Error(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) { throw (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static org.glowroot.agent.shaded.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.glowroot.agent.shaded.google.protobuf.Parser getParserForType() { return PARSER; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TimerOrBuilder extends // @@protoc_insertion_point(interface_extends:org_glowroot_wire_api_model.Trace.Timer) org.glowroot.agent.shaded.google.protobuf.MessageOrBuilder { /** * optional string name = 1; */ java.lang.String getName(); /** * optional string name = 1; */ org.glowroot.agent.shaded.google.protobuf.ByteString getNameBytes(); /** * optional bool extended = 2; */ boolean getExtended(); /** * optional int64 total_nanos = 3; */ long getTotalNanos(); /** * optional int64 count = 4; */ long getCount(); /** * optional bool active = 5; * *
       * whether timer was active at the time of a partial trace capture
       * 
*/ boolean getActive(); /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ java.util.List getChildTimerList(); /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer getChildTimer(int index); /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ int getChildTimerCount(); /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ java.util.List getChildTimerOrBuilderList(); /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder getChildTimerOrBuilder( int index); } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.Timer} */ public static final class Timer extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org_glowroot_wire_api_model.Trace.Timer) TimerOrBuilder { // Use Timer.newBuilder() to construct. private Timer(org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Timer() { name_ = ""; extended_ = false; totalNanos_ = 0L; count_ = 0L; active_ = false; childTimer_ = java.util.Collections.emptyList(); } @java.lang.Override public final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet getUnknownFields() { return org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Timer( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 16: { extended_ = input.readBool(); break; } case 24: { totalNanos_ = input.readInt64(); break; } case 32: { count_ = input.readInt64(); break; } case 40: { active_ = input.readBool(); break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { childTimer_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } childTimer_.add(input.readMessage(org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.parser(), extensionRegistry)); break; } } } } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { childTimer_ = java.util.Collections.unmodifiableList(childTimer_); } makeExtensionsImmutable(); } } public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Timer_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Timer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * optional string name = 1; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } public static final int EXTENDED_FIELD_NUMBER = 2; private boolean extended_; /** * optional bool extended = 2; */ public boolean getExtended() { return extended_; } public static final int TOTAL_NANOS_FIELD_NUMBER = 3; private long totalNanos_; /** * optional int64 total_nanos = 3; */ public long getTotalNanos() { return totalNanos_; } public static final int COUNT_FIELD_NUMBER = 4; private long count_; /** * optional int64 count = 4; */ public long getCount() { return count_; } public static final int ACTIVE_FIELD_NUMBER = 5; private boolean active_; /** * optional bool active = 5; * *
       * whether timer was active at the time of a partial trace capture
       * 
*/ public boolean getActive() { return active_; } public static final int CHILD_TIMER_FIELD_NUMBER = 6; private java.util.List childTimer_; /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public java.util.List getChildTimerList() { return childTimer_; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public java.util.List getChildTimerOrBuilderList() { return childTimer_; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public int getChildTimerCount() { return childTimer_.size(); } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer getChildTimer(int index) { return childTimer_.get(index); } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder getChildTimerOrBuilder( int index) { return childTimer_.get(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.glowroot.agent.shaded.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } if (extended_ != false) { output.writeBool(2, extended_); } if (totalNanos_ != 0L) { output.writeInt64(3, totalNanos_); } if (count_ != 0L) { output.writeInt64(4, count_); } if (active_ != false) { output.writeBool(5, active_); } for (int i = 0; i < childTimer_.size(); i++) { output.writeMessage(6, childTimer_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } if (extended_ != false) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeBoolSize(2, extended_); } if (totalNanos_ != 0L) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt64Size(3, totalNanos_); } if (count_ != 0L) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt64Size(4, count_); } if (active_ != false) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeBoolSize(5, active_); } for (int i = 0; i < childTimer_.size(); i++) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(6, childTimer_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer parseFrom(byte[] data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer parseFrom( byte[] data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer parseFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer parseDelimitedFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.Timer} */ public static final class Builder extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org_glowroot_wire_api_model.Trace.Timer) org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder { public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Timer_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Timer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder.class); } // Construct using org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getChildTimerFieldBuilder(); } } public Builder clear() { super.clear(); name_ = ""; extended_ = false; totalNanos_ = 0L; count_ = 0L; active_ = false; if (childTimerBuilder_ == null) { childTimer_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { childTimerBuilder_.clear(); } return this; } public org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Timer_descriptor; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer getDefaultInstanceForType() { return org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.getDefaultInstance(); } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer build() { org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer buildPartial() { org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer result = new org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; result.extended_ = extended_; result.totalNanos_ = totalNanos_; result.count_ = count_; result.active_ = active_; if (childTimerBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { childTimer_ = java.util.Collections.unmodifiableList(childTimer_); bitField0_ = (bitField0_ & ~0x00000020); } result.childTimer_ = childTimer_; } else { result.childTimer_ = childTimerBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(org.glowroot.agent.shaded.google.protobuf.Message other) { if (other instanceof org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer) { return mergeFrom((org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer other) { if (other == org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getExtended() != false) { setExtended(other.getExtended()); } if (other.getTotalNanos() != 0L) { setTotalNanos(other.getTotalNanos()); } if (other.getCount() != 0L) { setCount(other.getCount()); } if (other.getActive() != false) { setActive(other.getActive()); } if (childTimerBuilder_ == null) { if (!other.childTimer_.isEmpty()) { if (childTimer_.isEmpty()) { childTimer_ = other.childTimer_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureChildTimerIsMutable(); childTimer_.addAll(other.childTimer_); } onChanged(); } } else { if (!other.childTimer_.isEmpty()) { if (childTimerBuilder_.isEmpty()) { childTimerBuilder_.dispose(); childTimerBuilder_ = null; childTimer_ = other.childTimer_; bitField0_ = (bitField0_ & ~0x00000020); childTimerBuilder_ = org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getChildTimerFieldBuilder() : null; } else { childTimerBuilder_.addAllMessages(other.childTimer_); } } } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * optional string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name = 1; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } /** * optional string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * optional string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 1; */ public Builder setNameBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private boolean extended_ ; /** * optional bool extended = 2; */ public boolean getExtended() { return extended_; } /** * optional bool extended = 2; */ public Builder setExtended(boolean value) { extended_ = value; onChanged(); return this; } /** * optional bool extended = 2; */ public Builder clearExtended() { extended_ = false; onChanged(); return this; } private long totalNanos_ ; /** * optional int64 total_nanos = 3; */ public long getTotalNanos() { return totalNanos_; } /** * optional int64 total_nanos = 3; */ public Builder setTotalNanos(long value) { totalNanos_ = value; onChanged(); return this; } /** * optional int64 total_nanos = 3; */ public Builder clearTotalNanos() { totalNanos_ = 0L; onChanged(); return this; } private long count_ ; /** * optional int64 count = 4; */ public long getCount() { return count_; } /** * optional int64 count = 4; */ public Builder setCount(long value) { count_ = value; onChanged(); return this; } /** * optional int64 count = 4; */ public Builder clearCount() { count_ = 0L; onChanged(); return this; } private boolean active_ ; /** * optional bool active = 5; * *
         * whether timer was active at the time of a partial trace capture
         * 
*/ public boolean getActive() { return active_; } /** * optional bool active = 5; * *
         * whether timer was active at the time of a partial trace capture
         * 
*/ public Builder setActive(boolean value) { active_ = value; onChanged(); return this; } /** * optional bool active = 5; * *
         * whether timer was active at the time of a partial trace capture
         * 
*/ public Builder clearActive() { active_ = false; onChanged(); return this; } private java.util.List childTimer_ = java.util.Collections.emptyList(); private void ensureChildTimerIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { childTimer_ = new java.util.ArrayList(childTimer_); bitField0_ |= 0x00000020; } } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder> childTimerBuilder_; /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public java.util.List getChildTimerList() { if (childTimerBuilder_ == null) { return java.util.Collections.unmodifiableList(childTimer_); } else { return childTimerBuilder_.getMessageList(); } } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public int getChildTimerCount() { if (childTimerBuilder_ == null) { return childTimer_.size(); } else { return childTimerBuilder_.getCount(); } } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer getChildTimer(int index) { if (childTimerBuilder_ == null) { return childTimer_.get(index); } else { return childTimerBuilder_.getMessage(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public Builder setChildTimer( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer value) { if (childTimerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildTimerIsMutable(); childTimer_.set(index, value); onChanged(); } else { childTimerBuilder_.setMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public Builder setChildTimer( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder builderForValue) { if (childTimerBuilder_ == null) { ensureChildTimerIsMutable(); childTimer_.set(index, builderForValue.build()); onChanged(); } else { childTimerBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public Builder addChildTimer(org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer value) { if (childTimerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildTimerIsMutable(); childTimer_.add(value); onChanged(); } else { childTimerBuilder_.addMessage(value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public Builder addChildTimer( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer value) { if (childTimerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildTimerIsMutable(); childTimer_.add(index, value); onChanged(); } else { childTimerBuilder_.addMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public Builder addChildTimer( org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder builderForValue) { if (childTimerBuilder_ == null) { ensureChildTimerIsMutable(); childTimer_.add(builderForValue.build()); onChanged(); } else { childTimerBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public Builder addChildTimer( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder builderForValue) { if (childTimerBuilder_ == null) { ensureChildTimerIsMutable(); childTimer_.add(index, builderForValue.build()); onChanged(); } else { childTimerBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public Builder addAllChildTimer( java.lang.Iterable values) { if (childTimerBuilder_ == null) { ensureChildTimerIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, childTimer_); onChanged(); } else { childTimerBuilder_.addAllMessages(values); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public Builder clearChildTimer() { if (childTimerBuilder_ == null) { childTimer_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { childTimerBuilder_.clear(); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public Builder removeChildTimer(int index) { if (childTimerBuilder_ == null) { ensureChildTimerIsMutable(); childTimer_.remove(index); onChanged(); } else { childTimerBuilder_.remove(index); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder getChildTimerBuilder( int index) { return getChildTimerFieldBuilder().getBuilder(index); } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder getChildTimerOrBuilder( int index) { if (childTimerBuilder_ == null) { return childTimer_.get(index); } else { return childTimerBuilder_.getMessageOrBuilder(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public java.util.List getChildTimerOrBuilderList() { if (childTimerBuilder_ != null) { return childTimerBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(childTimer_); } } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder addChildTimerBuilder() { return getChildTimerFieldBuilder().addBuilder( org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder addChildTimerBuilder( int index) { return getChildTimerFieldBuilder().addBuilder( index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.Timer child_timer = 6; */ public java.util.List getChildTimerBuilderList() { return getChildTimerFieldBuilder().getBuilderList(); } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder> getChildTimerFieldBuilder() { if (childTimerBuilder_ == null) { childTimerBuilder_ = new org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer, org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.TimerOrBuilder>( childTimer_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); childTimer_ = null; } return childTimerBuilder_; } public final Builder setUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:org_glowroot_wire_api_model.Trace.Timer) } // @@protoc_insertion_point(class_scope:org_glowroot_wire_api_model.Trace.Timer) private static final org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer(); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.glowroot.agent.shaded.google.protobuf.Parser PARSER = new org.glowroot.agent.shaded.google.protobuf.AbstractParser() { public Timer parsePartialFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { try { return new Timer(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) { throw (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static org.glowroot.agent.shaded.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.glowroot.agent.shaded.google.protobuf.Parser getParserForType() { return PARSER; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Timer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ThreadStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:org_glowroot_wire_api_model.Trace.ThreadStats) org.glowroot.agent.shaded.google.protobuf.MessageOrBuilder { /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_cpu_nanos = 1; */ boolean hasTotalCpuNanos(); /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_cpu_nanos = 1; */ org.glowroot.wire.api.model.Proto.OptionalInt64 getTotalCpuNanos(); /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_cpu_nanos = 1; */ org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder getTotalCpuNanosOrBuilder(); /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_blocked_nanos = 2; */ boolean hasTotalBlockedNanos(); /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_blocked_nanos = 2; */ org.glowroot.wire.api.model.Proto.OptionalInt64 getTotalBlockedNanos(); /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_blocked_nanos = 2; */ org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder getTotalBlockedNanosOrBuilder(); /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_waited_nanos = 3; */ boolean hasTotalWaitedNanos(); /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_waited_nanos = 3; */ org.glowroot.wire.api.model.Proto.OptionalInt64 getTotalWaitedNanos(); /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_waited_nanos = 3; */ org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder getTotalWaitedNanosOrBuilder(); /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_allocated_bytes = 4; */ boolean hasTotalAllocatedBytes(); /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_allocated_bytes = 4; */ org.glowroot.wire.api.model.Proto.OptionalInt64 getTotalAllocatedBytes(); /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_allocated_bytes = 4; */ org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder getTotalAllocatedBytesOrBuilder(); } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.ThreadStats} */ public static final class ThreadStats extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org_glowroot_wire_api_model.Trace.ThreadStats) ThreadStatsOrBuilder { // Use ThreadStats.newBuilder() to construct. private ThreadStats(org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ThreadStats() { } @java.lang.Override public final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet getUnknownFields() { return org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ThreadStats( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { org.glowroot.wire.api.model.Proto.OptionalInt64.Builder subBuilder = null; if (totalCpuNanos_ != null) { subBuilder = totalCpuNanos_.toBuilder(); } totalCpuNanos_ = input.readMessage(org.glowroot.wire.api.model.Proto.OptionalInt64.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(totalCpuNanos_); totalCpuNanos_ = subBuilder.buildPartial(); } break; } case 18: { org.glowroot.wire.api.model.Proto.OptionalInt64.Builder subBuilder = null; if (totalBlockedNanos_ != null) { subBuilder = totalBlockedNanos_.toBuilder(); } totalBlockedNanos_ = input.readMessage(org.glowroot.wire.api.model.Proto.OptionalInt64.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(totalBlockedNanos_); totalBlockedNanos_ = subBuilder.buildPartial(); } break; } case 26: { org.glowroot.wire.api.model.Proto.OptionalInt64.Builder subBuilder = null; if (totalWaitedNanos_ != null) { subBuilder = totalWaitedNanos_.toBuilder(); } totalWaitedNanos_ = input.readMessage(org.glowroot.wire.api.model.Proto.OptionalInt64.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(totalWaitedNanos_); totalWaitedNanos_ = subBuilder.buildPartial(); } break; } case 34: { org.glowroot.wire.api.model.Proto.OptionalInt64.Builder subBuilder = null; if (totalAllocatedBytes_ != null) { subBuilder = totalAllocatedBytes_.toBuilder(); } totalAllocatedBytes_ = input.readMessage(org.glowroot.wire.api.model.Proto.OptionalInt64.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(totalAllocatedBytes_); totalAllocatedBytes_ = subBuilder.buildPartial(); } break; } } } } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { makeExtensionsImmutable(); } } public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_ThreadStats_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_ThreadStats_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.Builder.class); } public static final int TOTAL_CPU_NANOS_FIELD_NUMBER = 1; private org.glowroot.wire.api.model.Proto.OptionalInt64 totalCpuNanos_; /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_cpu_nanos = 1; */ public boolean hasTotalCpuNanos() { return totalCpuNanos_ != null; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_cpu_nanos = 1; */ public org.glowroot.wire.api.model.Proto.OptionalInt64 getTotalCpuNanos() { return totalCpuNanos_ == null ? org.glowroot.wire.api.model.Proto.OptionalInt64.getDefaultInstance() : totalCpuNanos_; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_cpu_nanos = 1; */ public org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder getTotalCpuNanosOrBuilder() { return getTotalCpuNanos(); } public static final int TOTAL_BLOCKED_NANOS_FIELD_NUMBER = 2; private org.glowroot.wire.api.model.Proto.OptionalInt64 totalBlockedNanos_; /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_blocked_nanos = 2; */ public boolean hasTotalBlockedNanos() { return totalBlockedNanos_ != null; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_blocked_nanos = 2; */ public org.glowroot.wire.api.model.Proto.OptionalInt64 getTotalBlockedNanos() { return totalBlockedNanos_ == null ? org.glowroot.wire.api.model.Proto.OptionalInt64.getDefaultInstance() : totalBlockedNanos_; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_blocked_nanos = 2; */ public org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder getTotalBlockedNanosOrBuilder() { return getTotalBlockedNanos(); } public static final int TOTAL_WAITED_NANOS_FIELD_NUMBER = 3; private org.glowroot.wire.api.model.Proto.OptionalInt64 totalWaitedNanos_; /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_waited_nanos = 3; */ public boolean hasTotalWaitedNanos() { return totalWaitedNanos_ != null; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_waited_nanos = 3; */ public org.glowroot.wire.api.model.Proto.OptionalInt64 getTotalWaitedNanos() { return totalWaitedNanos_ == null ? org.glowroot.wire.api.model.Proto.OptionalInt64.getDefaultInstance() : totalWaitedNanos_; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_waited_nanos = 3; */ public org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder getTotalWaitedNanosOrBuilder() { return getTotalWaitedNanos(); } public static final int TOTAL_ALLOCATED_BYTES_FIELD_NUMBER = 4; private org.glowroot.wire.api.model.Proto.OptionalInt64 totalAllocatedBytes_; /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_allocated_bytes = 4; */ public boolean hasTotalAllocatedBytes() { return totalAllocatedBytes_ != null; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_allocated_bytes = 4; */ public org.glowroot.wire.api.model.Proto.OptionalInt64 getTotalAllocatedBytes() { return totalAllocatedBytes_ == null ? org.glowroot.wire.api.model.Proto.OptionalInt64.getDefaultInstance() : totalAllocatedBytes_; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_allocated_bytes = 4; */ public org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder getTotalAllocatedBytesOrBuilder() { return getTotalAllocatedBytes(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.glowroot.agent.shaded.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (totalCpuNanos_ != null) { output.writeMessage(1, getTotalCpuNanos()); } if (totalBlockedNanos_ != null) { output.writeMessage(2, getTotalBlockedNanos()); } if (totalWaitedNanos_ != null) { output.writeMessage(3, getTotalWaitedNanos()); } if (totalAllocatedBytes_ != null) { output.writeMessage(4, getTotalAllocatedBytes()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (totalCpuNanos_ != null) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(1, getTotalCpuNanos()); } if (totalBlockedNanos_ != null) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(2, getTotalBlockedNanos()); } if (totalWaitedNanos_ != null) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(3, getTotalWaitedNanos()); } if (totalAllocatedBytes_ != null) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(4, getTotalAllocatedBytes()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats parseFrom(byte[] data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats parseFrom( byte[] data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats parseFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats parseDelimitedFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.ThreadStats} */ public static final class Builder extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org_glowroot_wire_api_model.Trace.ThreadStats) org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStatsOrBuilder { public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_ThreadStats_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_ThreadStats_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.Builder.class); } // Construct using org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (totalCpuNanosBuilder_ == null) { totalCpuNanos_ = null; } else { totalCpuNanos_ = null; totalCpuNanosBuilder_ = null; } if (totalBlockedNanosBuilder_ == null) { totalBlockedNanos_ = null; } else { totalBlockedNanos_ = null; totalBlockedNanosBuilder_ = null; } if (totalWaitedNanosBuilder_ == null) { totalWaitedNanos_ = null; } else { totalWaitedNanos_ = null; totalWaitedNanosBuilder_ = null; } if (totalAllocatedBytesBuilder_ == null) { totalAllocatedBytes_ = null; } else { totalAllocatedBytes_ = null; totalAllocatedBytesBuilder_ = null; } return this; } public org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_ThreadStats_descriptor; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats getDefaultInstanceForType() { return org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.getDefaultInstance(); } public org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats build() { org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats buildPartial() { org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats result = new org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats(this); if (totalCpuNanosBuilder_ == null) { result.totalCpuNanos_ = totalCpuNanos_; } else { result.totalCpuNanos_ = totalCpuNanosBuilder_.build(); } if (totalBlockedNanosBuilder_ == null) { result.totalBlockedNanos_ = totalBlockedNanos_; } else { result.totalBlockedNanos_ = totalBlockedNanosBuilder_.build(); } if (totalWaitedNanosBuilder_ == null) { result.totalWaitedNanos_ = totalWaitedNanos_; } else { result.totalWaitedNanos_ = totalWaitedNanosBuilder_.build(); } if (totalAllocatedBytesBuilder_ == null) { result.totalAllocatedBytes_ = totalAllocatedBytes_; } else { result.totalAllocatedBytes_ = totalAllocatedBytesBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(org.glowroot.agent.shaded.google.protobuf.Message other) { if (other instanceof org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats) { return mergeFrom((org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats other) { if (other == org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats.getDefaultInstance()) return this; if (other.hasTotalCpuNanos()) { mergeTotalCpuNanos(other.getTotalCpuNanos()); } if (other.hasTotalBlockedNanos()) { mergeTotalBlockedNanos(other.getTotalBlockedNanos()); } if (other.hasTotalWaitedNanos()) { mergeTotalWaitedNanos(other.getTotalWaitedNanos()); } if (other.hasTotalAllocatedBytes()) { mergeTotalAllocatedBytes(other.getTotalAllocatedBytes()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private org.glowroot.wire.api.model.Proto.OptionalInt64 totalCpuNanos_ = null; private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.Proto.OptionalInt64, org.glowroot.wire.api.model.Proto.OptionalInt64.Builder, org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder> totalCpuNanosBuilder_; /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_cpu_nanos = 1; */ public boolean hasTotalCpuNanos() { return totalCpuNanosBuilder_ != null || totalCpuNanos_ != null; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_cpu_nanos = 1; */ public org.glowroot.wire.api.model.Proto.OptionalInt64 getTotalCpuNanos() { if (totalCpuNanosBuilder_ == null) { return totalCpuNanos_ == null ? org.glowroot.wire.api.model.Proto.OptionalInt64.getDefaultInstance() : totalCpuNanos_; } else { return totalCpuNanosBuilder_.getMessage(); } } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_cpu_nanos = 1; */ public Builder setTotalCpuNanos(org.glowroot.wire.api.model.Proto.OptionalInt64 value) { if (totalCpuNanosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalCpuNanos_ = value; onChanged(); } else { totalCpuNanosBuilder_.setMessage(value); } return this; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_cpu_nanos = 1; */ public Builder setTotalCpuNanos( org.glowroot.wire.api.model.Proto.OptionalInt64.Builder builderForValue) { if (totalCpuNanosBuilder_ == null) { totalCpuNanos_ = builderForValue.build(); onChanged(); } else { totalCpuNanosBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_cpu_nanos = 1; */ public Builder mergeTotalCpuNanos(org.glowroot.wire.api.model.Proto.OptionalInt64 value) { if (totalCpuNanosBuilder_ == null) { if (totalCpuNanos_ != null) { totalCpuNanos_ = org.glowroot.wire.api.model.Proto.OptionalInt64.newBuilder(totalCpuNanos_).mergeFrom(value).buildPartial(); } else { totalCpuNanos_ = value; } onChanged(); } else { totalCpuNanosBuilder_.mergeFrom(value); } return this; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_cpu_nanos = 1; */ public Builder clearTotalCpuNanos() { if (totalCpuNanosBuilder_ == null) { totalCpuNanos_ = null; onChanged(); } else { totalCpuNanos_ = null; totalCpuNanosBuilder_ = null; } return this; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_cpu_nanos = 1; */ public org.glowroot.wire.api.model.Proto.OptionalInt64.Builder getTotalCpuNanosBuilder() { onChanged(); return getTotalCpuNanosFieldBuilder().getBuilder(); } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_cpu_nanos = 1; */ public org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder getTotalCpuNanosOrBuilder() { if (totalCpuNanosBuilder_ != null) { return totalCpuNanosBuilder_.getMessageOrBuilder(); } else { return totalCpuNanos_ == null ? org.glowroot.wire.api.model.Proto.OptionalInt64.getDefaultInstance() : totalCpuNanos_; } } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_cpu_nanos = 1; */ private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.Proto.OptionalInt64, org.glowroot.wire.api.model.Proto.OptionalInt64.Builder, org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder> getTotalCpuNanosFieldBuilder() { if (totalCpuNanosBuilder_ == null) { totalCpuNanosBuilder_ = new org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.Proto.OptionalInt64, org.glowroot.wire.api.model.Proto.OptionalInt64.Builder, org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder>( getTotalCpuNanos(), getParentForChildren(), isClean()); totalCpuNanos_ = null; } return totalCpuNanosBuilder_; } private org.glowroot.wire.api.model.Proto.OptionalInt64 totalBlockedNanos_ = null; private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.Proto.OptionalInt64, org.glowroot.wire.api.model.Proto.OptionalInt64.Builder, org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder> totalBlockedNanosBuilder_; /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_blocked_nanos = 2; */ public boolean hasTotalBlockedNanos() { return totalBlockedNanosBuilder_ != null || totalBlockedNanos_ != null; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_blocked_nanos = 2; */ public org.glowroot.wire.api.model.Proto.OptionalInt64 getTotalBlockedNanos() { if (totalBlockedNanosBuilder_ == null) { return totalBlockedNanos_ == null ? org.glowroot.wire.api.model.Proto.OptionalInt64.getDefaultInstance() : totalBlockedNanos_; } else { return totalBlockedNanosBuilder_.getMessage(); } } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_blocked_nanos = 2; */ public Builder setTotalBlockedNanos(org.glowroot.wire.api.model.Proto.OptionalInt64 value) { if (totalBlockedNanosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalBlockedNanos_ = value; onChanged(); } else { totalBlockedNanosBuilder_.setMessage(value); } return this; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_blocked_nanos = 2; */ public Builder setTotalBlockedNanos( org.glowroot.wire.api.model.Proto.OptionalInt64.Builder builderForValue) { if (totalBlockedNanosBuilder_ == null) { totalBlockedNanos_ = builderForValue.build(); onChanged(); } else { totalBlockedNanosBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_blocked_nanos = 2; */ public Builder mergeTotalBlockedNanos(org.glowroot.wire.api.model.Proto.OptionalInt64 value) { if (totalBlockedNanosBuilder_ == null) { if (totalBlockedNanos_ != null) { totalBlockedNanos_ = org.glowroot.wire.api.model.Proto.OptionalInt64.newBuilder(totalBlockedNanos_).mergeFrom(value).buildPartial(); } else { totalBlockedNanos_ = value; } onChanged(); } else { totalBlockedNanosBuilder_.mergeFrom(value); } return this; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_blocked_nanos = 2; */ public Builder clearTotalBlockedNanos() { if (totalBlockedNanosBuilder_ == null) { totalBlockedNanos_ = null; onChanged(); } else { totalBlockedNanos_ = null; totalBlockedNanosBuilder_ = null; } return this; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_blocked_nanos = 2; */ public org.glowroot.wire.api.model.Proto.OptionalInt64.Builder getTotalBlockedNanosBuilder() { onChanged(); return getTotalBlockedNanosFieldBuilder().getBuilder(); } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_blocked_nanos = 2; */ public org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder getTotalBlockedNanosOrBuilder() { if (totalBlockedNanosBuilder_ != null) { return totalBlockedNanosBuilder_.getMessageOrBuilder(); } else { return totalBlockedNanos_ == null ? org.glowroot.wire.api.model.Proto.OptionalInt64.getDefaultInstance() : totalBlockedNanos_; } } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_blocked_nanos = 2; */ private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.Proto.OptionalInt64, org.glowroot.wire.api.model.Proto.OptionalInt64.Builder, org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder> getTotalBlockedNanosFieldBuilder() { if (totalBlockedNanosBuilder_ == null) { totalBlockedNanosBuilder_ = new org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.Proto.OptionalInt64, org.glowroot.wire.api.model.Proto.OptionalInt64.Builder, org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder>( getTotalBlockedNanos(), getParentForChildren(), isClean()); totalBlockedNanos_ = null; } return totalBlockedNanosBuilder_; } private org.glowroot.wire.api.model.Proto.OptionalInt64 totalWaitedNanos_ = null; private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.Proto.OptionalInt64, org.glowroot.wire.api.model.Proto.OptionalInt64.Builder, org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder> totalWaitedNanosBuilder_; /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_waited_nanos = 3; */ public boolean hasTotalWaitedNanos() { return totalWaitedNanosBuilder_ != null || totalWaitedNanos_ != null; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_waited_nanos = 3; */ public org.glowroot.wire.api.model.Proto.OptionalInt64 getTotalWaitedNanos() { if (totalWaitedNanosBuilder_ == null) { return totalWaitedNanos_ == null ? org.glowroot.wire.api.model.Proto.OptionalInt64.getDefaultInstance() : totalWaitedNanos_; } else { return totalWaitedNanosBuilder_.getMessage(); } } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_waited_nanos = 3; */ public Builder setTotalWaitedNanos(org.glowroot.wire.api.model.Proto.OptionalInt64 value) { if (totalWaitedNanosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalWaitedNanos_ = value; onChanged(); } else { totalWaitedNanosBuilder_.setMessage(value); } return this; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_waited_nanos = 3; */ public Builder setTotalWaitedNanos( org.glowroot.wire.api.model.Proto.OptionalInt64.Builder builderForValue) { if (totalWaitedNanosBuilder_ == null) { totalWaitedNanos_ = builderForValue.build(); onChanged(); } else { totalWaitedNanosBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_waited_nanos = 3; */ public Builder mergeTotalWaitedNanos(org.glowroot.wire.api.model.Proto.OptionalInt64 value) { if (totalWaitedNanosBuilder_ == null) { if (totalWaitedNanos_ != null) { totalWaitedNanos_ = org.glowroot.wire.api.model.Proto.OptionalInt64.newBuilder(totalWaitedNanos_).mergeFrom(value).buildPartial(); } else { totalWaitedNanos_ = value; } onChanged(); } else { totalWaitedNanosBuilder_.mergeFrom(value); } return this; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_waited_nanos = 3; */ public Builder clearTotalWaitedNanos() { if (totalWaitedNanosBuilder_ == null) { totalWaitedNanos_ = null; onChanged(); } else { totalWaitedNanos_ = null; totalWaitedNanosBuilder_ = null; } return this; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_waited_nanos = 3; */ public org.glowroot.wire.api.model.Proto.OptionalInt64.Builder getTotalWaitedNanosBuilder() { onChanged(); return getTotalWaitedNanosFieldBuilder().getBuilder(); } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_waited_nanos = 3; */ public org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder getTotalWaitedNanosOrBuilder() { if (totalWaitedNanosBuilder_ != null) { return totalWaitedNanosBuilder_.getMessageOrBuilder(); } else { return totalWaitedNanos_ == null ? org.glowroot.wire.api.model.Proto.OptionalInt64.getDefaultInstance() : totalWaitedNanos_; } } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_waited_nanos = 3; */ private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.Proto.OptionalInt64, org.glowroot.wire.api.model.Proto.OptionalInt64.Builder, org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder> getTotalWaitedNanosFieldBuilder() { if (totalWaitedNanosBuilder_ == null) { totalWaitedNanosBuilder_ = new org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.Proto.OptionalInt64, org.glowroot.wire.api.model.Proto.OptionalInt64.Builder, org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder>( getTotalWaitedNanos(), getParentForChildren(), isClean()); totalWaitedNanos_ = null; } return totalWaitedNanosBuilder_; } private org.glowroot.wire.api.model.Proto.OptionalInt64 totalAllocatedBytes_ = null; private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.Proto.OptionalInt64, org.glowroot.wire.api.model.Proto.OptionalInt64.Builder, org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder> totalAllocatedBytesBuilder_; /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_allocated_bytes = 4; */ public boolean hasTotalAllocatedBytes() { return totalAllocatedBytesBuilder_ != null || totalAllocatedBytes_ != null; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_allocated_bytes = 4; */ public org.glowroot.wire.api.model.Proto.OptionalInt64 getTotalAllocatedBytes() { if (totalAllocatedBytesBuilder_ == null) { return totalAllocatedBytes_ == null ? org.glowroot.wire.api.model.Proto.OptionalInt64.getDefaultInstance() : totalAllocatedBytes_; } else { return totalAllocatedBytesBuilder_.getMessage(); } } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_allocated_bytes = 4; */ public Builder setTotalAllocatedBytes(org.glowroot.wire.api.model.Proto.OptionalInt64 value) { if (totalAllocatedBytesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalAllocatedBytes_ = value; onChanged(); } else { totalAllocatedBytesBuilder_.setMessage(value); } return this; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_allocated_bytes = 4; */ public Builder setTotalAllocatedBytes( org.glowroot.wire.api.model.Proto.OptionalInt64.Builder builderForValue) { if (totalAllocatedBytesBuilder_ == null) { totalAllocatedBytes_ = builderForValue.build(); onChanged(); } else { totalAllocatedBytesBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_allocated_bytes = 4; */ public Builder mergeTotalAllocatedBytes(org.glowroot.wire.api.model.Proto.OptionalInt64 value) { if (totalAllocatedBytesBuilder_ == null) { if (totalAllocatedBytes_ != null) { totalAllocatedBytes_ = org.glowroot.wire.api.model.Proto.OptionalInt64.newBuilder(totalAllocatedBytes_).mergeFrom(value).buildPartial(); } else { totalAllocatedBytes_ = value; } onChanged(); } else { totalAllocatedBytesBuilder_.mergeFrom(value); } return this; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_allocated_bytes = 4; */ public Builder clearTotalAllocatedBytes() { if (totalAllocatedBytesBuilder_ == null) { totalAllocatedBytes_ = null; onChanged(); } else { totalAllocatedBytes_ = null; totalAllocatedBytesBuilder_ = null; } return this; } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_allocated_bytes = 4; */ public org.glowroot.wire.api.model.Proto.OptionalInt64.Builder getTotalAllocatedBytesBuilder() { onChanged(); return getTotalAllocatedBytesFieldBuilder().getBuilder(); } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_allocated_bytes = 4; */ public org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder getTotalAllocatedBytesOrBuilder() { if (totalAllocatedBytesBuilder_ != null) { return totalAllocatedBytesBuilder_.getMessageOrBuilder(); } else { return totalAllocatedBytes_ == null ? org.glowroot.wire.api.model.Proto.OptionalInt64.getDefaultInstance() : totalAllocatedBytes_; } } /** * optional .org_glowroot_wire_api_model.OptionalInt64 total_allocated_bytes = 4; */ private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.Proto.OptionalInt64, org.glowroot.wire.api.model.Proto.OptionalInt64.Builder, org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder> getTotalAllocatedBytesFieldBuilder() { if (totalAllocatedBytesBuilder_ == null) { totalAllocatedBytesBuilder_ = new org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.Proto.OptionalInt64, org.glowroot.wire.api.model.Proto.OptionalInt64.Builder, org.glowroot.wire.api.model.Proto.OptionalInt64OrBuilder>( getTotalAllocatedBytes(), getParentForChildren(), isClean()); totalAllocatedBytes_ = null; } return totalAllocatedBytesBuilder_; } public final Builder setUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:org_glowroot_wire_api_model.Trace.ThreadStats) } // @@protoc_insertion_point(class_scope:org_glowroot_wire_api_model.Trace.ThreadStats) private static final org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats(); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.glowroot.agent.shaded.google.protobuf.Parser PARSER = new org.glowroot.agent.shaded.google.protobuf.AbstractParser() { public ThreadStats parsePartialFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { try { return new ThreadStats(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) { throw (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static org.glowroot.agent.shaded.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.glowroot.agent.shaded.google.protobuf.Parser getParserForType() { return PARSER; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.ThreadStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface GarbageCollectionActivityOrBuilder extends // @@protoc_insertion_point(interface_extends:org_glowroot_wire_api_model.Trace.GarbageCollectionActivity) org.glowroot.agent.shaded.google.protobuf.MessageOrBuilder { /** * optional string collector_name = 1; */ java.lang.String getCollectorName(); /** * optional string collector_name = 1; */ org.glowroot.agent.shaded.google.protobuf.ByteString getCollectorNameBytes(); /** * optional int64 total_millis = 2; */ long getTotalMillis(); /** * optional int64 count = 3; */ long getCount(); } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.GarbageCollectionActivity} */ public static final class GarbageCollectionActivity extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org_glowroot_wire_api_model.Trace.GarbageCollectionActivity) GarbageCollectionActivityOrBuilder { // Use GarbageCollectionActivity.newBuilder() to construct. private GarbageCollectionActivity(org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private GarbageCollectionActivity() { collectorName_ = ""; totalMillis_ = 0L; count_ = 0L; } @java.lang.Override public final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet getUnknownFields() { return org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GarbageCollectionActivity( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); collectorName_ = s; break; } case 16: { totalMillis_ = input.readInt64(); break; } case 24: { count_ = input.readInt64(); break; } } } } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { makeExtensionsImmutable(); } } public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_GarbageCollectionActivity_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_GarbageCollectionActivity_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity.Builder.class); } public static final int COLLECTOR_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object collectorName_; /** * optional string collector_name = 1; */ public java.lang.String getCollectorName() { java.lang.Object ref = collectorName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collectorName_ = s; return s; } } /** * optional string collector_name = 1; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getCollectorNameBytes() { java.lang.Object ref = collectorName_; if (ref instanceof java.lang.String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collectorName_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } public static final int TOTAL_MILLIS_FIELD_NUMBER = 2; private long totalMillis_; /** * optional int64 total_millis = 2; */ public long getTotalMillis() { return totalMillis_; } public static final int COUNT_FIELD_NUMBER = 3; private long count_; /** * optional int64 count = 3; */ public long getCount() { return count_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.glowroot.agent.shaded.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getCollectorNameBytes().isEmpty()) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 1, collectorName_); } if (totalMillis_ != 0L) { output.writeInt64(2, totalMillis_); } if (count_ != 0L) { output.writeInt64(3, count_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getCollectorNameBytes().isEmpty()) { size += org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.computeStringSize(1, collectorName_); } if (totalMillis_ != 0L) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt64Size(2, totalMillis_); } if (count_ != 0L) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt64Size(3, count_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity parseFrom(byte[] data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity parseFrom( byte[] data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity parseFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity parseDelimitedFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.GarbageCollectionActivity} */ public static final class Builder extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org_glowroot_wire_api_model.Trace.GarbageCollectionActivity) org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivityOrBuilder { public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_GarbageCollectionActivity_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_GarbageCollectionActivity_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity.Builder.class); } // Construct using org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); collectorName_ = ""; totalMillis_ = 0L; count_ = 0L; return this; } public org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_GarbageCollectionActivity_descriptor; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity getDefaultInstanceForType() { return org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity.getDefaultInstance(); } public org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity build() { org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity buildPartial() { org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity result = new org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity(this); result.collectorName_ = collectorName_; result.totalMillis_ = totalMillis_; result.count_ = count_; onBuilt(); return result; } public Builder mergeFrom(org.glowroot.agent.shaded.google.protobuf.Message other) { if (other instanceof org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity) { return mergeFrom((org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity other) { if (other == org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity.getDefaultInstance()) return this; if (!other.getCollectorName().isEmpty()) { collectorName_ = other.collectorName_; onChanged(); } if (other.getTotalMillis() != 0L) { setTotalMillis(other.getTotalMillis()); } if (other.getCount() != 0L) { setCount(other.getCount()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object collectorName_ = ""; /** * optional string collector_name = 1; */ public java.lang.String getCollectorName() { java.lang.Object ref = collectorName_; if (!(ref instanceof java.lang.String)) { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collectorName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string collector_name = 1; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getCollectorNameBytes() { java.lang.Object ref = collectorName_; if (ref instanceof String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collectorName_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } /** * optional string collector_name = 1; */ public Builder setCollectorName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } collectorName_ = value; onChanged(); return this; } /** * optional string collector_name = 1; */ public Builder clearCollectorName() { collectorName_ = getDefaultInstance().getCollectorName(); onChanged(); return this; } /** * optional string collector_name = 1; */ public Builder setCollectorNameBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); collectorName_ = value; onChanged(); return this; } private long totalMillis_ ; /** * optional int64 total_millis = 2; */ public long getTotalMillis() { return totalMillis_; } /** * optional int64 total_millis = 2; */ public Builder setTotalMillis(long value) { totalMillis_ = value; onChanged(); return this; } /** * optional int64 total_millis = 2; */ public Builder clearTotalMillis() { totalMillis_ = 0L; onChanged(); return this; } private long count_ ; /** * optional int64 count = 3; */ public long getCount() { return count_; } /** * optional int64 count = 3; */ public Builder setCount(long value) { count_ = value; onChanged(); return this; } /** * optional int64 count = 3; */ public Builder clearCount() { count_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:org_glowroot_wire_api_model.Trace.GarbageCollectionActivity) } // @@protoc_insertion_point(class_scope:org_glowroot_wire_api_model.Trace.GarbageCollectionActivity) private static final org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity(); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.glowroot.agent.shaded.google.protobuf.Parser PARSER = new org.glowroot.agent.shaded.google.protobuf.AbstractParser() { public GarbageCollectionActivity parsePartialFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { try { return new GarbageCollectionActivity(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) { throw (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static org.glowroot.agent.shaded.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.glowroot.agent.shaded.google.protobuf.Parser getParserForType() { return PARSER; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.GarbageCollectionActivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EntryOrBuilder extends // @@protoc_insertion_point(interface_extends:org_glowroot_wire_api_model.Trace.Entry) org.glowroot.agent.shaded.google.protobuf.MessageOrBuilder { /** * optional int32 depth = 1; */ int getDepth(); /** * optional int64 start_offset_nanos = 2; * *
       * start time relative to trace start
       * 
*/ long getStartOffsetNanos(); /** * optional int64 duration_nanos = 3; */ long getDurationNanos(); /** * optional bool active = 4; * *
       * whether entry was active at the time of a partial trace capture
       * 
*/ boolean getActive(); /** * optional string message = 5; * *
       * message is empty for trace entries added using addErrorEntry()
       * 
*/ java.lang.String getMessage(); /** * optional string message = 5; * *
       * message is empty for trace entries added using addErrorEntry()
       * 
*/ org.glowroot.agent.shaded.google.protobuf.ByteString getMessageBytes(); /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ java.util.List getDetailEntryList(); /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry getDetailEntry(int index); /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ int getDetailEntryCount(); /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ java.util.List getDetailEntryOrBuilderList(); /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder getDetailEntryOrBuilder( int index); /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ java.util.List getLocationStackTraceElementList(); /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ org.glowroot.wire.api.model.Proto.StackTraceElement getLocationStackTraceElement(int index); /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ int getLocationStackTraceElementCount(); /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ java.util.List getLocationStackTraceElementOrBuilderList(); /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ org.glowroot.wire.api.model.Proto.StackTraceElementOrBuilder getLocationStackTraceElementOrBuilder( int index); /** * optional .org_glowroot_wire_api_model.Trace.Error error = 8; */ boolean hasError(); /** * optional .org_glowroot_wire_api_model.Trace.Error error = 8; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.Error getError(); /** * optional .org_glowroot_wire_api_model.Trace.Error error = 8; */ org.glowroot.wire.api.model.TraceOuterClass.Trace.ErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.Entry} */ public static final class Entry extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org_glowroot_wire_api_model.Trace.Entry) EntryOrBuilder { // Use Entry.newBuilder() to construct. private Entry(org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Entry() { depth_ = 0; startOffsetNanos_ = 0L; durationNanos_ = 0L; active_ = false; message_ = ""; detailEntry_ = java.util.Collections.emptyList(); locationStackTraceElement_ = java.util.Collections.emptyList(); } @java.lang.Override public final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet getUnknownFields() { return org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Entry( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { depth_ = input.readInt32(); break; } case 16: { startOffsetNanos_ = input.readInt64(); break; } case 24: { durationNanos_ = input.readInt64(); break; } case 32: { active_ = input.readBool(); break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); message_ = s; break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { detailEntry_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } detailEntry_.add(input.readMessage(org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.parser(), extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { locationStackTraceElement_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000040; } locationStackTraceElement_.add(input.readMessage(org.glowroot.wire.api.model.Proto.StackTraceElement.parser(), extensionRegistry)); break; } case 66: { org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.Builder subBuilder = null; if (error_ != null) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } break; } } } } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { detailEntry_ = java.util.Collections.unmodifiableList(detailEntry_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { locationStackTraceElement_ = java.util.Collections.unmodifiableList(locationStackTraceElement_); } makeExtensionsImmutable(); } } public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Entry_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.Builder.class); } private int bitField0_; public static final int DEPTH_FIELD_NUMBER = 1; private int depth_; /** * optional int32 depth = 1; */ public int getDepth() { return depth_; } public static final int START_OFFSET_NANOS_FIELD_NUMBER = 2; private long startOffsetNanos_; /** * optional int64 start_offset_nanos = 2; * *
       * start time relative to trace start
       * 
*/ public long getStartOffsetNanos() { return startOffsetNanos_; } public static final int DURATION_NANOS_FIELD_NUMBER = 3; private long durationNanos_; /** * optional int64 duration_nanos = 3; */ public long getDurationNanos() { return durationNanos_; } public static final int ACTIVE_FIELD_NUMBER = 4; private boolean active_; /** * optional bool active = 4; * *
       * whether entry was active at the time of a partial trace capture
       * 
*/ public boolean getActive() { return active_; } public static final int MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object message_; /** * optional string message = 5; * *
       * message is empty for trace entries added using addErrorEntry()
       * 
*/ public java.lang.String getMessage() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** * optional string message = 5; * *
       * message is empty for trace entries added using addErrorEntry()
       * 
*/ public org.glowroot.agent.shaded.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } public static final int DETAIL_ENTRY_FIELD_NUMBER = 6; private java.util.List detailEntry_; /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public java.util.List getDetailEntryList() { return detailEntry_; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public java.util.List getDetailEntryOrBuilderList() { return detailEntry_; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public int getDetailEntryCount() { return detailEntry_.size(); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry getDetailEntry(int index) { return detailEntry_.get(index); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder getDetailEntryOrBuilder( int index) { return detailEntry_.get(index); } public static final int LOCATION_STACK_TRACE_ELEMENT_FIELD_NUMBER = 7; private java.util.List locationStackTraceElement_; /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public java.util.List getLocationStackTraceElementList() { return locationStackTraceElement_; } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public java.util.List getLocationStackTraceElementOrBuilderList() { return locationStackTraceElement_; } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public int getLocationStackTraceElementCount() { return locationStackTraceElement_.size(); } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public org.glowroot.wire.api.model.Proto.StackTraceElement getLocationStackTraceElement(int index) { return locationStackTraceElement_.get(index); } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public org.glowroot.wire.api.model.Proto.StackTraceElementOrBuilder getLocationStackTraceElementOrBuilder( int index) { return locationStackTraceElement_.get(index); } public static final int ERROR_FIELD_NUMBER = 8; private org.glowroot.wire.api.model.TraceOuterClass.Trace.Error error_; /** * optional .org_glowroot_wire_api_model.Trace.Error error = 8; */ public boolean hasError() { return error_ != null; } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 8; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Error getError() { return error_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.getDefaultInstance() : error_; } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 8; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.ErrorOrBuilder getErrorOrBuilder() { return getError(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.glowroot.agent.shaded.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (depth_ != 0) { output.writeInt32(1, depth_); } if (startOffsetNanos_ != 0L) { output.writeInt64(2, startOffsetNanos_); } if (durationNanos_ != 0L) { output.writeInt64(3, durationNanos_); } if (active_ != false) { output.writeBool(4, active_); } if (!getMessageBytes().isEmpty()) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 5, message_); } for (int i = 0; i < detailEntry_.size(); i++) { output.writeMessage(6, detailEntry_.get(i)); } for (int i = 0; i < locationStackTraceElement_.size(); i++) { output.writeMessage(7, locationStackTraceElement_.get(i)); } if (error_ != null) { output.writeMessage(8, getError()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (depth_ != 0) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt32Size(1, depth_); } if (startOffsetNanos_ != 0L) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt64Size(2, startOffsetNanos_); } if (durationNanos_ != 0L) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt64Size(3, durationNanos_); } if (active_ != false) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeBoolSize(4, active_); } if (!getMessageBytes().isEmpty()) { size += org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.computeStringSize(5, message_); } for (int i = 0; i < detailEntry_.size(); i++) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(6, detailEntry_.get(i)); } for (int i = 0; i < locationStackTraceElement_.size(); i++) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(7, locationStackTraceElement_.get(i)); } if (error_ != null) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(8, getError()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry parseFrom(byte[] data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry parseFrom( byte[] data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry parseFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry parseDelimitedFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace.Entry} */ public static final class Builder extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org_glowroot_wire_api_model.Trace.Entry) org.glowroot.wire.api.model.TraceOuterClass.Trace.EntryOrBuilder { public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Entry_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.Builder.class); } // Construct using org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getDetailEntryFieldBuilder(); getLocationStackTraceElementFieldBuilder(); } } public Builder clear() { super.clear(); depth_ = 0; startOffsetNanos_ = 0L; durationNanos_ = 0L; active_ = false; message_ = ""; if (detailEntryBuilder_ == null) { detailEntry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { detailEntryBuilder_.clear(); } if (locationStackTraceElementBuilder_ == null) { locationStackTraceElement_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { locationStackTraceElementBuilder_.clear(); } if (errorBuilder_ == null) { error_ = null; } else { error_ = null; errorBuilder_ = null; } return this; } public org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_Entry_descriptor; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry getDefaultInstanceForType() { return org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.getDefaultInstance(); } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry build() { org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry buildPartial() { org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry result = new org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.depth_ = depth_; result.startOffsetNanos_ = startOffsetNanos_; result.durationNanos_ = durationNanos_; result.active_ = active_; result.message_ = message_; if (detailEntryBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { detailEntry_ = java.util.Collections.unmodifiableList(detailEntry_); bitField0_ = (bitField0_ & ~0x00000020); } result.detailEntry_ = detailEntry_; } else { result.detailEntry_ = detailEntryBuilder_.build(); } if (locationStackTraceElementBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { locationStackTraceElement_ = java.util.Collections.unmodifiableList(locationStackTraceElement_); bitField0_ = (bitField0_ & ~0x00000040); } result.locationStackTraceElement_ = locationStackTraceElement_; } else { result.locationStackTraceElement_ = locationStackTraceElementBuilder_.build(); } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(org.glowroot.agent.shaded.google.protobuf.Message other) { if (other instanceof org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry) { return mergeFrom((org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry other) { if (other == org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.getDefaultInstance()) return this; if (other.getDepth() != 0) { setDepth(other.getDepth()); } if (other.getStartOffsetNanos() != 0L) { setStartOffsetNanos(other.getStartOffsetNanos()); } if (other.getDurationNanos() != 0L) { setDurationNanos(other.getDurationNanos()); } if (other.getActive() != false) { setActive(other.getActive()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } if (detailEntryBuilder_ == null) { if (!other.detailEntry_.isEmpty()) { if (detailEntry_.isEmpty()) { detailEntry_ = other.detailEntry_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureDetailEntryIsMutable(); detailEntry_.addAll(other.detailEntry_); } onChanged(); } } else { if (!other.detailEntry_.isEmpty()) { if (detailEntryBuilder_.isEmpty()) { detailEntryBuilder_.dispose(); detailEntryBuilder_ = null; detailEntry_ = other.detailEntry_; bitField0_ = (bitField0_ & ~0x00000020); detailEntryBuilder_ = org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getDetailEntryFieldBuilder() : null; } else { detailEntryBuilder_.addAllMessages(other.detailEntry_); } } } if (locationStackTraceElementBuilder_ == null) { if (!other.locationStackTraceElement_.isEmpty()) { if (locationStackTraceElement_.isEmpty()) { locationStackTraceElement_ = other.locationStackTraceElement_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureLocationStackTraceElementIsMutable(); locationStackTraceElement_.addAll(other.locationStackTraceElement_); } onChanged(); } } else { if (!other.locationStackTraceElement_.isEmpty()) { if (locationStackTraceElementBuilder_.isEmpty()) { locationStackTraceElementBuilder_.dispose(); locationStackTraceElementBuilder_ = null; locationStackTraceElement_ = other.locationStackTraceElement_; bitField0_ = (bitField0_ & ~0x00000040); locationStackTraceElementBuilder_ = org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getLocationStackTraceElementFieldBuilder() : null; } else { locationStackTraceElementBuilder_.addAllMessages(other.locationStackTraceElement_); } } } if (other.hasError()) { mergeError(other.getError()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int depth_ ; /** * optional int32 depth = 1; */ public int getDepth() { return depth_; } /** * optional int32 depth = 1; */ public Builder setDepth(int value) { depth_ = value; onChanged(); return this; } /** * optional int32 depth = 1; */ public Builder clearDepth() { depth_ = 0; onChanged(); return this; } private long startOffsetNanos_ ; /** * optional int64 start_offset_nanos = 2; * *
         * start time relative to trace start
         * 
*/ public long getStartOffsetNanos() { return startOffsetNanos_; } /** * optional int64 start_offset_nanos = 2; * *
         * start time relative to trace start
         * 
*/ public Builder setStartOffsetNanos(long value) { startOffsetNanos_ = value; onChanged(); return this; } /** * optional int64 start_offset_nanos = 2; * *
         * start time relative to trace start
         * 
*/ public Builder clearStartOffsetNanos() { startOffsetNanos_ = 0L; onChanged(); return this; } private long durationNanos_ ; /** * optional int64 duration_nanos = 3; */ public long getDurationNanos() { return durationNanos_; } /** * optional int64 duration_nanos = 3; */ public Builder setDurationNanos(long value) { durationNanos_ = value; onChanged(); return this; } /** * optional int64 duration_nanos = 3; */ public Builder clearDurationNanos() { durationNanos_ = 0L; onChanged(); return this; } private boolean active_ ; /** * optional bool active = 4; * *
         * whether entry was active at the time of a partial trace capture
         * 
*/ public boolean getActive() { return active_; } /** * optional bool active = 4; * *
         * whether entry was active at the time of a partial trace capture
         * 
*/ public Builder setActive(boolean value) { active_ = value; onChanged(); return this; } /** * optional bool active = 4; * *
         * whether entry was active at the time of a partial trace capture
         * 
*/ public Builder clearActive() { active_ = false; onChanged(); return this; } private java.lang.Object message_ = ""; /** * optional string message = 5; * *
         * message is empty for trace entries added using addErrorEntry()
         * 
*/ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string message = 5; * *
         * message is empty for trace entries added using addErrorEntry()
         * 
*/ public org.glowroot.agent.shaded.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } /** * optional string message = 5; * *
         * message is empty for trace entries added using addErrorEntry()
         * 
*/ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /** * optional string message = 5; * *
         * message is empty for trace entries added using addErrorEntry()
         * 
*/ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * optional string message = 5; * *
         * message is empty for trace entries added using addErrorEntry()
         * 
*/ public Builder setMessageBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; onChanged(); return this; } private java.util.List detailEntry_ = java.util.Collections.emptyList(); private void ensureDetailEntryIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { detailEntry_ = new java.util.ArrayList(detailEntry_); bitField0_ |= 0x00000020; } } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder> detailEntryBuilder_; /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public java.util.List getDetailEntryList() { if (detailEntryBuilder_ == null) { return java.util.Collections.unmodifiableList(detailEntry_); } else { return detailEntryBuilder_.getMessageList(); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public int getDetailEntryCount() { if (detailEntryBuilder_ == null) { return detailEntry_.size(); } else { return detailEntryBuilder_.getCount(); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry getDetailEntry(int index) { if (detailEntryBuilder_ == null) { return detailEntry_.get(index); } else { return detailEntryBuilder_.getMessage(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public Builder setDetailEntry( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry value) { if (detailEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDetailEntryIsMutable(); detailEntry_.set(index, value); onChanged(); } else { detailEntryBuilder_.setMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public Builder setDetailEntry( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder builderForValue) { if (detailEntryBuilder_ == null) { ensureDetailEntryIsMutable(); detailEntry_.set(index, builderForValue.build()); onChanged(); } else { detailEntryBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public Builder addDetailEntry(org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry value) { if (detailEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDetailEntryIsMutable(); detailEntry_.add(value); onChanged(); } else { detailEntryBuilder_.addMessage(value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public Builder addDetailEntry( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry value) { if (detailEntryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDetailEntryIsMutable(); detailEntry_.add(index, value); onChanged(); } else { detailEntryBuilder_.addMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public Builder addDetailEntry( org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder builderForValue) { if (detailEntryBuilder_ == null) { ensureDetailEntryIsMutable(); detailEntry_.add(builderForValue.build()); onChanged(); } else { detailEntryBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public Builder addDetailEntry( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder builderForValue) { if (detailEntryBuilder_ == null) { ensureDetailEntryIsMutable(); detailEntry_.add(index, builderForValue.build()); onChanged(); } else { detailEntryBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public Builder addAllDetailEntry( java.lang.Iterable values) { if (detailEntryBuilder_ == null) { ensureDetailEntryIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, detailEntry_); onChanged(); } else { detailEntryBuilder_.addAllMessages(values); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public Builder clearDetailEntry() { if (detailEntryBuilder_ == null) { detailEntry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { detailEntryBuilder_.clear(); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public Builder removeDetailEntry(int index) { if (detailEntryBuilder_ == null) { ensureDetailEntryIsMutable(); detailEntry_.remove(index); onChanged(); } else { detailEntryBuilder_.remove(index); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder getDetailEntryBuilder( int index) { return getDetailEntryFieldBuilder().getBuilder(index); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder getDetailEntryOrBuilder( int index) { if (detailEntryBuilder_ == null) { return detailEntry_.get(index); } else { return detailEntryBuilder_.getMessageOrBuilder(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public java.util.List getDetailEntryOrBuilderList() { if (detailEntryBuilder_ != null) { return detailEntryBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(detailEntry_); } } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder addDetailEntryBuilder() { return getDetailEntryFieldBuilder().addBuilder( org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder addDetailEntryBuilder( int index) { return getDetailEntryFieldBuilder().addBuilder( index, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.DetailEntry detail_entry = 6; */ public java.util.List getDetailEntryBuilderList() { return getDetailEntryFieldBuilder().getBuilderList(); } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder> getDetailEntryFieldBuilder() { if (detailEntryBuilder_ == null) { detailEntryBuilder_ = new org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntry.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.DetailEntryOrBuilder>( detailEntry_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); detailEntry_ = null; } return detailEntryBuilder_; } private java.util.List locationStackTraceElement_ = java.util.Collections.emptyList(); private void ensureLocationStackTraceElementIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { locationStackTraceElement_ = new java.util.ArrayList(locationStackTraceElement_); bitField0_ |= 0x00000040; } } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.Proto.StackTraceElement, org.glowroot.wire.api.model.Proto.StackTraceElement.Builder, org.glowroot.wire.api.model.Proto.StackTraceElementOrBuilder> locationStackTraceElementBuilder_; /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public java.util.List getLocationStackTraceElementList() { if (locationStackTraceElementBuilder_ == null) { return java.util.Collections.unmodifiableList(locationStackTraceElement_); } else { return locationStackTraceElementBuilder_.getMessageList(); } } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public int getLocationStackTraceElementCount() { if (locationStackTraceElementBuilder_ == null) { return locationStackTraceElement_.size(); } else { return locationStackTraceElementBuilder_.getCount(); } } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public org.glowroot.wire.api.model.Proto.StackTraceElement getLocationStackTraceElement(int index) { if (locationStackTraceElementBuilder_ == null) { return locationStackTraceElement_.get(index); } else { return locationStackTraceElementBuilder_.getMessage(index); } } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public Builder setLocationStackTraceElement( int index, org.glowroot.wire.api.model.Proto.StackTraceElement value) { if (locationStackTraceElementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationStackTraceElementIsMutable(); locationStackTraceElement_.set(index, value); onChanged(); } else { locationStackTraceElementBuilder_.setMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public Builder setLocationStackTraceElement( int index, org.glowroot.wire.api.model.Proto.StackTraceElement.Builder builderForValue) { if (locationStackTraceElementBuilder_ == null) { ensureLocationStackTraceElementIsMutable(); locationStackTraceElement_.set(index, builderForValue.build()); onChanged(); } else { locationStackTraceElementBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public Builder addLocationStackTraceElement(org.glowroot.wire.api.model.Proto.StackTraceElement value) { if (locationStackTraceElementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationStackTraceElementIsMutable(); locationStackTraceElement_.add(value); onChanged(); } else { locationStackTraceElementBuilder_.addMessage(value); } return this; } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public Builder addLocationStackTraceElement( int index, org.glowroot.wire.api.model.Proto.StackTraceElement value) { if (locationStackTraceElementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationStackTraceElementIsMutable(); locationStackTraceElement_.add(index, value); onChanged(); } else { locationStackTraceElementBuilder_.addMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public Builder addLocationStackTraceElement( org.glowroot.wire.api.model.Proto.StackTraceElement.Builder builderForValue) { if (locationStackTraceElementBuilder_ == null) { ensureLocationStackTraceElementIsMutable(); locationStackTraceElement_.add(builderForValue.build()); onChanged(); } else { locationStackTraceElementBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public Builder addLocationStackTraceElement( int index, org.glowroot.wire.api.model.Proto.StackTraceElement.Builder builderForValue) { if (locationStackTraceElementBuilder_ == null) { ensureLocationStackTraceElementIsMutable(); locationStackTraceElement_.add(index, builderForValue.build()); onChanged(); } else { locationStackTraceElementBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public Builder addAllLocationStackTraceElement( java.lang.Iterable values) { if (locationStackTraceElementBuilder_ == null) { ensureLocationStackTraceElementIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, locationStackTraceElement_); onChanged(); } else { locationStackTraceElementBuilder_.addAllMessages(values); } return this; } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public Builder clearLocationStackTraceElement() { if (locationStackTraceElementBuilder_ == null) { locationStackTraceElement_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { locationStackTraceElementBuilder_.clear(); } return this; } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public Builder removeLocationStackTraceElement(int index) { if (locationStackTraceElementBuilder_ == null) { ensureLocationStackTraceElementIsMutable(); locationStackTraceElement_.remove(index); onChanged(); } else { locationStackTraceElementBuilder_.remove(index); } return this; } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public org.glowroot.wire.api.model.Proto.StackTraceElement.Builder getLocationStackTraceElementBuilder( int index) { return getLocationStackTraceElementFieldBuilder().getBuilder(index); } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public org.glowroot.wire.api.model.Proto.StackTraceElementOrBuilder getLocationStackTraceElementOrBuilder( int index) { if (locationStackTraceElementBuilder_ == null) { return locationStackTraceElement_.get(index); } else { return locationStackTraceElementBuilder_.getMessageOrBuilder(index); } } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public java.util.List getLocationStackTraceElementOrBuilderList() { if (locationStackTraceElementBuilder_ != null) { return locationStackTraceElementBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(locationStackTraceElement_); } } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public org.glowroot.wire.api.model.Proto.StackTraceElement.Builder addLocationStackTraceElementBuilder() { return getLocationStackTraceElementFieldBuilder().addBuilder( org.glowroot.wire.api.model.Proto.StackTraceElement.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public org.glowroot.wire.api.model.Proto.StackTraceElement.Builder addLocationStackTraceElementBuilder( int index) { return getLocationStackTraceElementFieldBuilder().addBuilder( index, org.glowroot.wire.api.model.Proto.StackTraceElement.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.StackTraceElement location_stack_trace_element = 7; */ public java.util.List getLocationStackTraceElementBuilderList() { return getLocationStackTraceElementFieldBuilder().getBuilderList(); } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.Proto.StackTraceElement, org.glowroot.wire.api.model.Proto.StackTraceElement.Builder, org.glowroot.wire.api.model.Proto.StackTraceElementOrBuilder> getLocationStackTraceElementFieldBuilder() { if (locationStackTraceElementBuilder_ == null) { locationStackTraceElementBuilder_ = new org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.Proto.StackTraceElement, org.glowroot.wire.api.model.Proto.StackTraceElement.Builder, org.glowroot.wire.api.model.Proto.StackTraceElementOrBuilder>( locationStackTraceElement_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); locationStackTraceElement_ = null; } return locationStackTraceElementBuilder_; } private org.glowroot.wire.api.model.TraceOuterClass.Trace.Error error_ = null; private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Error, org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.ErrorOrBuilder> errorBuilder_; /** * optional .org_glowroot_wire_api_model.Trace.Error error = 8; */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 8; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Error getError() { if (errorBuilder_ == null) { return error_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 8; */ public Builder setError(org.glowroot.wire.api.model.TraceOuterClass.Trace.Error value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 8; */ public Builder setError( org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 8; */ public Builder mergeError(org.glowroot.wire.api.model.TraceOuterClass.Trace.Error value) { if (errorBuilder_ == null) { if (error_ != null) { error_ = org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 8; */ public Builder clearError() { if (errorBuilder_ == null) { error_ = null; onChanged(); } else { error_ = null; errorBuilder_ = null; } return this; } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 8; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.Builder getErrorBuilder() { onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 8; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.getDefaultInstance() : error_; } } /** * optional .org_glowroot_wire_api_model.Trace.Error error = 8; */ private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Error, org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Error, org.glowroot.wire.api.model.TraceOuterClass.Trace.Error.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.ErrorOrBuilder>( getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } public final Builder setUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:org_glowroot_wire_api_model.Trace.Entry) } // @@protoc_insertion_point(class_scope:org_glowroot_wire_api_model.Trace.Entry) private static final org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry(); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.glowroot.agent.shaded.google.protobuf.Parser PARSER = new org.glowroot.agent.shaded.google.protobuf.AbstractParser() { public Entry parsePartialFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { try { return new Entry(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) { throw (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static org.glowroot.agent.shaded.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.glowroot.agent.shaded.google.protobuf.Parser getParserForType() { return PARSER; } public org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * optional string id = 1; * *
     * this is a uuid
     * 
*/ public java.lang.String getId() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** * optional string id = 1; * *
     * this is a uuid
     * 
*/ public org.glowroot.agent.shaded.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } public static final int HEADER_FIELD_NUMBER = 2; private org.glowroot.wire.api.model.TraceOuterClass.Trace.Header header_; /** * optional .org_glowroot_wire_api_model.Trace.Header header = 2; */ public boolean hasHeader() { return header_ != null; } /** * optional .org_glowroot_wire_api_model.Trace.Header header = 2; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Header getHeader() { return header_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.getDefaultInstance() : header_; } /** * optional .org_glowroot_wire_api_model.Trace.Header header = 2; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.HeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int ENTRY_FIELD_NUMBER = 3; private java.util.List entry_; /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
     * entry ordering is pre-order depth-first
     * there are typically multiple "root" nodes (with depth=0)
     * 
*/ public java.util.List getEntryList() { return entry_; } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
     * entry ordering is pre-order depth-first
     * there are typically multiple "root" nodes (with depth=0)
     * 
*/ public java.util.List getEntryOrBuilderList() { return entry_; } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
     * entry ordering is pre-order depth-first
     * there are typically multiple "root" nodes (with depth=0)
     * 
*/ public int getEntryCount() { return entry_.size(); } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
     * entry ordering is pre-order depth-first
     * there are typically multiple "root" nodes (with depth=0)
     * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry getEntry(int index) { return entry_.get(index); } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
     * entry ordering is pre-order depth-first
     * there are typically multiple "root" nodes (with depth=0)
     * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.EntryOrBuilder getEntryOrBuilder( int index) { return entry_.get(index); } public static final int MAIN_THREAD_PROFILE_FIELD_NUMBER = 4; private org.glowroot.wire.api.model.ProfileOuterClass.Profile mainThreadProfile_; /** * optional .org_glowroot_wire_api_model.Profile main_thread_profile = 4; */ public boolean hasMainThreadProfile() { return mainThreadProfile_ != null; } /** * optional .org_glowroot_wire_api_model.Profile main_thread_profile = 4; */ public org.glowroot.wire.api.model.ProfileOuterClass.Profile getMainThreadProfile() { return mainThreadProfile_ == null ? org.glowroot.wire.api.model.ProfileOuterClass.Profile.getDefaultInstance() : mainThreadProfile_; } /** * optional .org_glowroot_wire_api_model.Profile main_thread_profile = 4; */ public org.glowroot.wire.api.model.ProfileOuterClass.ProfileOrBuilder getMainThreadProfileOrBuilder() { return getMainThreadProfile(); } public static final int AUX_THREAD_PROFILE_FIELD_NUMBER = 5; private org.glowroot.wire.api.model.ProfileOuterClass.Profile auxThreadProfile_; /** * optional .org_glowroot_wire_api_model.Profile aux_thread_profile = 5; */ public boolean hasAuxThreadProfile() { return auxThreadProfile_ != null; } /** * optional .org_glowroot_wire_api_model.Profile aux_thread_profile = 5; */ public org.glowroot.wire.api.model.ProfileOuterClass.Profile getAuxThreadProfile() { return auxThreadProfile_ == null ? org.glowroot.wire.api.model.ProfileOuterClass.Profile.getDefaultInstance() : auxThreadProfile_; } /** * optional .org_glowroot_wire_api_model.Profile aux_thread_profile = 5; */ public org.glowroot.wire.api.model.ProfileOuterClass.ProfileOrBuilder getAuxThreadProfileOrBuilder() { return getAuxThreadProfile(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(org.glowroot.agent.shaded.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getIdBytes().isEmpty()) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 1, id_); } if (header_ != null) { output.writeMessage(2, getHeader()); } for (int i = 0; i < entry_.size(); i++) { output.writeMessage(3, entry_.get(i)); } if (mainThreadProfile_ != null) { output.writeMessage(4, getMainThreadProfile()); } if (auxThreadProfile_ != null) { output.writeMessage(5, getAuxThreadProfile()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getIdBytes().isEmpty()) { size += org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.computeStringSize(1, id_); } if (header_ != null) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(2, getHeader()); } for (int i = 0; i < entry_.size(); i++) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(3, entry_.get(i)); } if (mainThreadProfile_ != null) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(4, getMainThreadProfile()); } if (auxThreadProfile_ != null) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(5, getAuxThreadProfile()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.glowroot.wire.api.model.TraceOuterClass.Trace parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace parseFrom(byte[] data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace parseFrom( byte[] data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace parseFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace parseDelimitedFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.glowroot.wire.api.model.TraceOuterClass.Trace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code org_glowroot_wire_api_model.Trace} */ public static final class Builder extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org_glowroot_wire_api_model.Trace) org.glowroot.wire.api.model.TraceOuterClass.TraceOrBuilder { public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.TraceOuterClass.Trace.class, org.glowroot.wire.api.model.TraceOuterClass.Trace.Builder.class); } // Construct using org.glowroot.wire.api.model.TraceOuterClass.Trace.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getEntryFieldBuilder(); } } public Builder clear() { super.clear(); id_ = ""; if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } if (entryBuilder_ == null) { entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { entryBuilder_.clear(); } if (mainThreadProfileBuilder_ == null) { mainThreadProfile_ = null; } else { mainThreadProfile_ = null; mainThreadProfileBuilder_ = null; } if (auxThreadProfileBuilder_ == null) { auxThreadProfile_ = null; } else { auxThreadProfile_ = null; auxThreadProfileBuilder_ = null; } return this; } public org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.glowroot.wire.api.model.TraceOuterClass.internal_static_org_glowroot_wire_api_model_Trace_descriptor; } public org.glowroot.wire.api.model.TraceOuterClass.Trace getDefaultInstanceForType() { return org.glowroot.wire.api.model.TraceOuterClass.Trace.getDefaultInstance(); } public org.glowroot.wire.api.model.TraceOuterClass.Trace build() { org.glowroot.wire.api.model.TraceOuterClass.Trace result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.glowroot.wire.api.model.TraceOuterClass.Trace buildPartial() { org.glowroot.wire.api.model.TraceOuterClass.Trace result = new org.glowroot.wire.api.model.TraceOuterClass.Trace(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.id_ = id_; if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } if (entryBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { entry_ = java.util.Collections.unmodifiableList(entry_); bitField0_ = (bitField0_ & ~0x00000004); } result.entry_ = entry_; } else { result.entry_ = entryBuilder_.build(); } if (mainThreadProfileBuilder_ == null) { result.mainThreadProfile_ = mainThreadProfile_; } else { result.mainThreadProfile_ = mainThreadProfileBuilder_.build(); } if (auxThreadProfileBuilder_ == null) { result.auxThreadProfile_ = auxThreadProfile_; } else { result.auxThreadProfile_ = auxThreadProfileBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(org.glowroot.agent.shaded.google.protobuf.Message other) { if (other instanceof org.glowroot.wire.api.model.TraceOuterClass.Trace) { return mergeFrom((org.glowroot.wire.api.model.TraceOuterClass.Trace)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.glowroot.wire.api.model.TraceOuterClass.Trace other) { if (other == org.glowroot.wire.api.model.TraceOuterClass.Trace.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (entryBuilder_ == null) { if (!other.entry_.isEmpty()) { if (entry_.isEmpty()) { entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureEntryIsMutable(); entry_.addAll(other.entry_); } onChanged(); } } else { if (!other.entry_.isEmpty()) { if (entryBuilder_.isEmpty()) { entryBuilder_.dispose(); entryBuilder_ = null; entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000004); entryBuilder_ = org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getEntryFieldBuilder() : null; } else { entryBuilder_.addAllMessages(other.entry_); } } } if (other.hasMainThreadProfile()) { mergeMainThreadProfile(other.getMainThreadProfile()); } if (other.hasAuxThreadProfile()) { mergeAuxThreadProfile(other.getAuxThreadProfile()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.glowroot.wire.api.model.TraceOuterClass.Trace parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.glowroot.wire.api.model.TraceOuterClass.Trace) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * optional string id = 1; * *
       * this is a uuid
       * 
*/ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string id = 1; * *
       * this is a uuid
       * 
*/ public org.glowroot.agent.shaded.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } /** * optional string id = 1; * *
       * this is a uuid
       * 
*/ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** * optional string id = 1; * *
       * this is a uuid
       * 
*/ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * optional string id = 1; * *
       * this is a uuid
       * 
*/ public Builder setIdBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private org.glowroot.wire.api.model.TraceOuterClass.Trace.Header header_ = null; private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Header, org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.HeaderOrBuilder> headerBuilder_; /** * optional .org_glowroot_wire_api_model.Trace.Header header = 2; */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * optional .org_glowroot_wire_api_model.Trace.Header header = 2; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Header getHeader() { if (headerBuilder_ == null) { return header_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * optional .org_glowroot_wire_api_model.Trace.Header header = 2; */ public Builder setHeader(org.glowroot.wire.api.model.TraceOuterClass.Trace.Header value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.Header header = 2; */ public Builder setHeader( org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.Header header = 2; */ public Builder mergeHeader(org.glowroot.wire.api.model.TraceOuterClass.Trace.Header value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * optional .org_glowroot_wire_api_model.Trace.Header header = 2; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * optional .org_glowroot_wire_api_model.Trace.Header header = 2; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * optional .org_glowroot_wire_api_model.Trace.Header header = 2; */ public org.glowroot.wire.api.model.TraceOuterClass.Trace.HeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.getDefaultInstance() : header_; } } /** * optional .org_glowroot_wire_api_model.Trace.Header header = 2; */ private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Header, org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.HeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Header, org.glowroot.wire.api.model.TraceOuterClass.Trace.Header.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.HeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private java.util.List entry_ = java.util.Collections.emptyList(); private void ensureEntryIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { entry_ = new java.util.ArrayList(entry_); bitField0_ |= 0x00000004; } } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry, org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.EntryOrBuilder> entryBuilder_; /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public java.util.List getEntryList() { if (entryBuilder_ == null) { return java.util.Collections.unmodifiableList(entry_); } else { return entryBuilder_.getMessageList(); } } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public int getEntryCount() { if (entryBuilder_ == null) { return entry_.size(); } else { return entryBuilder_.getCount(); } } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry getEntry(int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { return entryBuilder_.getMessage(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public Builder setEntry( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.set(index, value); onChanged(); } else { entryBuilder_.setMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public Builder setEntry( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.set(index, builderForValue.build()); onChanged(); } else { entryBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public Builder addEntry(org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.add(value); onChanged(); } else { entryBuilder_.addMessage(value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public Builder addEntry( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.add(index, value); onChanged(); } else { entryBuilder_.addMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public Builder addEntry( org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(builderForValue.build()); onChanged(); } else { entryBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public Builder addEntry( int index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(index, builderForValue.build()); onChanged(); } else { entryBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public Builder addAllEntry( java.lang.Iterable values) { if (entryBuilder_ == null) { ensureEntryIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, entry_); onChanged(); } else { entryBuilder_.addAllMessages(values); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public Builder clearEntry() { if (entryBuilder_ == null) { entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { entryBuilder_.clear(); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public Builder removeEntry(int index) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.remove(index); onChanged(); } else { entryBuilder_.remove(index); } return this; } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.Builder getEntryBuilder( int index) { return getEntryFieldBuilder().getBuilder(index); } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.EntryOrBuilder getEntryOrBuilder( int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { return entryBuilder_.getMessageOrBuilder(index); } } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public java.util.List getEntryOrBuilderList() { if (entryBuilder_ != null) { return entryBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entry_); } } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.Builder addEntryBuilder() { return getEntryFieldBuilder().addBuilder( org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.Builder addEntryBuilder( int index) { return getEntryFieldBuilder().addBuilder( index, org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.Trace.Entry entry = 3; * *
       * entry ordering is pre-order depth-first
       * there are typically multiple "root" nodes (with depth=0)
       * 
*/ public java.util.List getEntryBuilderList() { return getEntryFieldBuilder().getBuilderList(); } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry, org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.EntryOrBuilder> getEntryFieldBuilder() { if (entryBuilder_ == null) { entryBuilder_ = new org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry, org.glowroot.wire.api.model.TraceOuterClass.Trace.Entry.Builder, org.glowroot.wire.api.model.TraceOuterClass.Trace.EntryOrBuilder>( entry_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); entry_ = null; } return entryBuilder_; } private org.glowroot.wire.api.model.ProfileOuterClass.Profile mainThreadProfile_ = null; private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.ProfileOuterClass.Profile, org.glowroot.wire.api.model.ProfileOuterClass.Profile.Builder, org.glowroot.wire.api.model.ProfileOuterClass.ProfileOrBuilder> mainThreadProfileBuilder_; /** * optional .org_glowroot_wire_api_model.Profile main_thread_profile = 4; */ public boolean hasMainThreadProfile() { return mainThreadProfileBuilder_ != null || mainThreadProfile_ != null; } /** * optional .org_glowroot_wire_api_model.Profile main_thread_profile = 4; */ public org.glowroot.wire.api.model.ProfileOuterClass.Profile getMainThreadProfile() { if (mainThreadProfileBuilder_ == null) { return mainThreadProfile_ == null ? org.glowroot.wire.api.model.ProfileOuterClass.Profile.getDefaultInstance() : mainThreadProfile_; } else { return mainThreadProfileBuilder_.getMessage(); } } /** * optional .org_glowroot_wire_api_model.Profile main_thread_profile = 4; */ public Builder setMainThreadProfile(org.glowroot.wire.api.model.ProfileOuterClass.Profile value) { if (mainThreadProfileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mainThreadProfile_ = value; onChanged(); } else { mainThreadProfileBuilder_.setMessage(value); } return this; } /** * optional .org_glowroot_wire_api_model.Profile main_thread_profile = 4; */ public Builder setMainThreadProfile( org.glowroot.wire.api.model.ProfileOuterClass.Profile.Builder builderForValue) { if (mainThreadProfileBuilder_ == null) { mainThreadProfile_ = builderForValue.build(); onChanged(); } else { mainThreadProfileBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .org_glowroot_wire_api_model.Profile main_thread_profile = 4; */ public Builder mergeMainThreadProfile(org.glowroot.wire.api.model.ProfileOuterClass.Profile value) { if (mainThreadProfileBuilder_ == null) { if (mainThreadProfile_ != null) { mainThreadProfile_ = org.glowroot.wire.api.model.ProfileOuterClass.Profile.newBuilder(mainThreadProfile_).mergeFrom(value).buildPartial(); } else { mainThreadProfile_ = value; } onChanged(); } else { mainThreadProfileBuilder_.mergeFrom(value); } return this; } /** * optional .org_glowroot_wire_api_model.Profile main_thread_profile = 4; */ public Builder clearMainThreadProfile() { if (mainThreadProfileBuilder_ == null) { mainThreadProfile_ = null; onChanged(); } else { mainThreadProfile_ = null; mainThreadProfileBuilder_ = null; } return this; } /** * optional .org_glowroot_wire_api_model.Profile main_thread_profile = 4; */ public org.glowroot.wire.api.model.ProfileOuterClass.Profile.Builder getMainThreadProfileBuilder() { onChanged(); return getMainThreadProfileFieldBuilder().getBuilder(); } /** * optional .org_glowroot_wire_api_model.Profile main_thread_profile = 4; */ public org.glowroot.wire.api.model.ProfileOuterClass.ProfileOrBuilder getMainThreadProfileOrBuilder() { if (mainThreadProfileBuilder_ != null) { return mainThreadProfileBuilder_.getMessageOrBuilder(); } else { return mainThreadProfile_ == null ? org.glowroot.wire.api.model.ProfileOuterClass.Profile.getDefaultInstance() : mainThreadProfile_; } } /** * optional .org_glowroot_wire_api_model.Profile main_thread_profile = 4; */ private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.ProfileOuterClass.Profile, org.glowroot.wire.api.model.ProfileOuterClass.Profile.Builder, org.glowroot.wire.api.model.ProfileOuterClass.ProfileOrBuilder> getMainThreadProfileFieldBuilder() { if (mainThreadProfileBuilder_ == null) { mainThreadProfileBuilder_ = new org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.ProfileOuterClass.Profile, org.glowroot.wire.api.model.ProfileOuterClass.Profile.Builder, org.glowroot.wire.api.model.ProfileOuterClass.ProfileOrBuilder>( getMainThreadProfile(), getParentForChildren(), isClean()); mainThreadProfile_ = null; } return mainThreadProfileBuilder_; } private org.glowroot.wire.api.model.ProfileOuterClass.Profile auxThreadProfile_ = null; private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.ProfileOuterClass.Profile, org.glowroot.wire.api.model.ProfileOuterClass.Profile.Builder, org.glowroot.wire.api.model.ProfileOuterClass.ProfileOrBuilder> auxThreadProfileBuilder_; /** * optional .org_glowroot_wire_api_model.Profile aux_thread_profile = 5; */ public boolean hasAuxThreadProfile() { return auxThreadProfileBuilder_ != null || auxThreadProfile_ != null; } /** * optional .org_glowroot_wire_api_model.Profile aux_thread_profile = 5; */ public org.glowroot.wire.api.model.ProfileOuterClass.Profile getAuxThreadProfile() { if (auxThreadProfileBuilder_ == null) { return auxThreadProfile_ == null ? org.glowroot.wire.api.model.ProfileOuterClass.Profile.getDefaultInstance() : auxThreadProfile_; } else { return auxThreadProfileBuilder_.getMessage(); } } /** * optional .org_glowroot_wire_api_model.Profile aux_thread_profile = 5; */ public Builder setAuxThreadProfile(org.glowroot.wire.api.model.ProfileOuterClass.Profile value) { if (auxThreadProfileBuilder_ == null) { if (value == null) { throw new NullPointerException(); } auxThreadProfile_ = value; onChanged(); } else { auxThreadProfileBuilder_.setMessage(value); } return this; } /** * optional .org_glowroot_wire_api_model.Profile aux_thread_profile = 5; */ public Builder setAuxThreadProfile( org.glowroot.wire.api.model.ProfileOuterClass.Profile.Builder builderForValue) { if (auxThreadProfileBuilder_ == null) { auxThreadProfile_ = builderForValue.build(); onChanged(); } else { auxThreadProfileBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .org_glowroot_wire_api_model.Profile aux_thread_profile = 5; */ public Builder mergeAuxThreadProfile(org.glowroot.wire.api.model.ProfileOuterClass.Profile value) { if (auxThreadProfileBuilder_ == null) { if (auxThreadProfile_ != null) { auxThreadProfile_ = org.glowroot.wire.api.model.ProfileOuterClass.Profile.newBuilder(auxThreadProfile_).mergeFrom(value).buildPartial(); } else { auxThreadProfile_ = value; } onChanged(); } else { auxThreadProfileBuilder_.mergeFrom(value); } return this; } /** * optional .org_glowroot_wire_api_model.Profile aux_thread_profile = 5; */ public Builder clearAuxThreadProfile() { if (auxThreadProfileBuilder_ == null) { auxThreadProfile_ = null; onChanged(); } else { auxThreadProfile_ = null; auxThreadProfileBuilder_ = null; } return this; } /** * optional .org_glowroot_wire_api_model.Profile aux_thread_profile = 5; */ public org.glowroot.wire.api.model.ProfileOuterClass.Profile.Builder getAuxThreadProfileBuilder() { onChanged(); return getAuxThreadProfileFieldBuilder().getBuilder(); } /** * optional .org_glowroot_wire_api_model.Profile aux_thread_profile = 5; */ public org.glowroot.wire.api.model.ProfileOuterClass.ProfileOrBuilder getAuxThreadProfileOrBuilder() { if (auxThreadProfileBuilder_ != null) { return auxThreadProfileBuilder_.getMessageOrBuilder(); } else { return auxThreadProfile_ == null ? org.glowroot.wire.api.model.ProfileOuterClass.Profile.getDefaultInstance() : auxThreadProfile_; } } /** * optional .org_glowroot_wire_api_model.Profile aux_thread_profile = 5; */ private org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.ProfileOuterClass.Profile, org.glowroot.wire.api.model.ProfileOuterClass.Profile.Builder, org.glowroot.wire.api.model.ProfileOuterClass.ProfileOrBuilder> getAuxThreadProfileFieldBuilder() { if (auxThreadProfileBuilder_ == null) { auxThreadProfileBuilder_ = new org.glowroot.agent.shaded.google.protobuf.SingleFieldBuilder< org.glowroot.wire.api.model.ProfileOuterClass.Profile, org.glowroot.wire.api.model.ProfileOuterClass.Profile.Builder, org.glowroot.wire.api.model.ProfileOuterClass.ProfileOrBuilder>( getAuxThreadProfile(), getParentForChildren(), isClean()); auxThreadProfile_ = null; } return auxThreadProfileBuilder_; } public final Builder setUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:org_glowroot_wire_api_model.Trace) } // @@protoc_insertion_point(class_scope:org_glowroot_wire_api_model.Trace) private static final org.glowroot.wire.api.model.TraceOuterClass.Trace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.glowroot.wire.api.model.TraceOuterClass.Trace(); } public static org.glowroot.wire.api.model.TraceOuterClass.Trace getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.glowroot.agent.shaded.google.protobuf.Parser PARSER = new org.glowroot.agent.shaded.google.protobuf.AbstractParser() { public Trace parsePartialFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { try { return new Trace(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) { throw (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static org.glowroot.agent.shaded.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.glowroot.agent.shaded.google.protobuf.Parser getParserForType() { return PARSER; } public org.glowroot.wire.api.model.TraceOuterClass.Trace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor internal_static_org_glowroot_wire_api_model_Trace_descriptor; private static org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_glowroot_wire_api_model_Trace_fieldAccessorTable; private static org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor internal_static_org_glowroot_wire_api_model_Trace_Header_descriptor; private static org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_glowroot_wire_api_model_Trace_Header_fieldAccessorTable; private static org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor internal_static_org_glowroot_wire_api_model_Trace_Attribute_descriptor; private static org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_glowroot_wire_api_model_Trace_Attribute_fieldAccessorTable; private static org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor internal_static_org_glowroot_wire_api_model_Trace_DetailEntry_descriptor; private static org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_glowroot_wire_api_model_Trace_DetailEntry_fieldAccessorTable; private static org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor internal_static_org_glowroot_wire_api_model_Trace_DetailValue_descriptor; private static org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_glowroot_wire_api_model_Trace_DetailValue_fieldAccessorTable; private static org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor internal_static_org_glowroot_wire_api_model_Trace_Error_descriptor; private static org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_glowroot_wire_api_model_Trace_Error_fieldAccessorTable; private static org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor internal_static_org_glowroot_wire_api_model_Trace_Timer_descriptor; private static org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_glowroot_wire_api_model_Trace_Timer_fieldAccessorTable; private static org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor internal_static_org_glowroot_wire_api_model_Trace_ThreadStats_descriptor; private static org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_glowroot_wire_api_model_Trace_ThreadStats_fieldAccessorTable; private static org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor internal_static_org_glowroot_wire_api_model_Trace_GarbageCollectionActivity_descriptor; private static org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_glowroot_wire_api_model_Trace_GarbageCollectionActivity_fieldAccessorTable; private static org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor internal_static_org_glowroot_wire_api_model_Trace_Entry_descriptor; private static org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_glowroot_wire_api_model_Trace_Entry_fieldAccessorTable; public static org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\013Trace.proto\022\033org_glowroot_wire_api_mod" + "el\032\rProfile.proto\032\014Common.proto\"\333\023\n\005Trac" + "e\022\n\n\002id\030\001 \001(\t\0229\n\006header\030\002 \001(\0132).org_glow" + "root_wire_api_model.Trace.Header\0227\n\005entr" + "y\030\003 \003(\0132(.org_glowroot_wire_api_model.Tr" + "ace.Entry\022A\n\023main_thread_profile\030\004 \001(\0132$" + ".org_glowroot_wire_api_model.Profile\022@\n\022" + "aux_thread_profile\030\005 \001(\0132$.org_glowroot_" + "wire_api_model.Profile\032\343\007\n\006Header\022\017\n\007par" + "tial\030\001 \001(\010\022\014\n\004slow\030\002 \001(\010\022\r\n\005async\030\003 \001(\010\022", "\022\n\nstart_time\030\004 \001(\003\022\024\n\014capture_time\030\005 \001(" + "\003\022\026\n\016duration_nanos\030\006 \001(\003\022\030\n\020transaction" + "_type\030\007 \001(\t\022\030\n\020transaction_name\030\010 \001(\t\022\020\n" + "\010headline\030\t \001(\t\022\014\n\004user\030\n \001(\t\022?\n\tattribu" + "te\030\013 \003(\0132,.org_glowroot_wire_api_model.T" + "race.Attribute\022D\n\014detail_entry\030\014 \003(\0132..o" + "rg_glowroot_wire_api_model.Trace.DetailE" + "ntry\0227\n\005error\030\r \001(\0132(.org_glowroot_wire_" + "api_model.Trace.Error\022H\n\026main_thread_roo" + "t_timer\030\016 \001(\0132(.org_glowroot_wire_api_mo", "del.Trace.Timer\022G\n\025aux_thread_root_timer" + "\030\017 \003(\0132(.org_glowroot_wire_api_model.Tra" + "ce.Timer\022B\n\020async_root_timer\030\020 \003(\0132(.org" + "_glowroot_wire_api_model.Trace.Timer\022I\n\021" + "main_thread_stats\030\021 \001(\0132..org_glowroot_w" + "ire_api_model.Trace.ThreadStats\022H\n\020aux_t" + "hread_stats\030\022 \001(\0132..org_glowroot_wire_ap" + "i_model.Trace.ThreadStats\022\023\n\013entry_count" + "\030\023 \001(\005\022\034\n\024entry_limit_exceeded\030\024 \001(\010\022(\n " + "main_thread_profile_sample_count\030\025 \001(\003\0221", "\n)main_thread_profile_sample_limit_excee" + "ded\030\026 \001(\010\022\'\n\037aux_thread_profile_sample_c" + "ount\030\027 \001(\003\0220\n(aux_thread_profile_sample_" + "limit_exceeded\030\030 \001(\010\032(\n\tAttribute\022\014\n\004nam" + "e\030\001 \001(\t\022\r\n\005value\030\002 \003(\t\032\237\001\n\013DetailEntry\022\014" + "\n\004name\030\001 \001(\t\022=\n\005value\030\002 \003(\0132..org_glowro" + "ot_wire_api_model.Trace.DetailValue\022C\n\013c" + "hild_entry\030\003 \003(\0132..org_glowroot_wire_api" + "_model.Trace.DetailEntry\032[\n\013DetailValue\022" + "\020\n\006string\030\001 \001(\tH\000\022\020\n\006double\030\002 \001(\001H\000\022\016\n\004l", "ong\030\003 \001(\003H\000\022\021\n\007boolean\030\004 \001(\010H\000B\005\n\003val\032S\n" + "\005Error\022\017\n\007message\030\001 \001(\t\0229\n\texception\030\002 \001" + "(\0132&.org_glowroot_wire_api_model.Throwab" + "le\032\232\001\n\005Timer\022\014\n\004name\030\001 \001(\t\022\020\n\010extended\030\002" + " \001(\010\022\023\n\013total_nanos\030\003 \001(\003\022\r\n\005count\030\004 \001(\003" + "\022\016\n\006active\030\005 \001(\010\022=\n\013child_timer\030\006 \003(\0132(." + "org_glowroot_wire_api_model.Trace.Timer\032" + "\256\002\n\013ThreadStats\022C\n\017total_cpu_nanos\030\001 \001(\013" + "2*.org_glowroot_wire_api_model.OptionalI" + "nt64\022G\n\023total_blocked_nanos\030\002 \001(\0132*.org_", "glowroot_wire_api_model.OptionalInt64\022F\n" + "\022total_waited_nanos\030\003 \001(\0132*.org_glowroot" + "_wire_api_model.OptionalInt64\022I\n\025total_a" + "llocated_bytes\030\004 \001(\0132*.org_glowroot_wire" + "_api_model.OptionalInt64\032X\n\031GarbageColle" + "ctionActivity\022\026\n\016collector_name\030\001 \001(\t\022\024\n" + "\014total_millis\030\002 \001(\003\022\r\n\005count\030\003 \001(\003\032\300\002\n\005E" + "ntry\022\r\n\005depth\030\001 \001(\005\022\032\n\022start_offset_nano" + "s\030\002 \001(\003\022\026\n\016duration_nanos\030\003 \001(\003\022\016\n\006activ" + "e\030\004 \001(\010\022\017\n\007message\030\005 \001(\t\022D\n\014detail_entry", "\030\006 \003(\0132..org_glowroot_wire_api_model.Tra" + "ce.DetailEntry\022T\n\034location_stack_trace_e" + "lement\030\007 \003(\0132..org_glowroot_wire_api_mod" + "el.StackTraceElement\0227\n\005error\030\010 \001(\0132(.or" + "g_glowroot_wire_api_model.Trace.ErrorB\035\n" + "\033org.glowroot.wire.api.modelb\006proto3" }; org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public org.glowroot.agent.shaded.google.protobuf.ExtensionRegistry assignDescriptors( org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor[] { org.glowroot.wire.api.model.ProfileOuterClass.getDescriptor(), org.glowroot.wire.api.model.Proto.getDescriptor(), }, assigner); internal_static_org_glowroot_wire_api_model_Trace_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_org_glowroot_wire_api_model_Trace_fieldAccessorTable = new org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_glowroot_wire_api_model_Trace_descriptor, new java.lang.String[] { "Id", "Header", "Entry", "MainThreadProfile", "AuxThreadProfile", }); internal_static_org_glowroot_wire_api_model_Trace_Header_descriptor = internal_static_org_glowroot_wire_api_model_Trace_descriptor.getNestedTypes().get(0); internal_static_org_glowroot_wire_api_model_Trace_Header_fieldAccessorTable = new org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_glowroot_wire_api_model_Trace_Header_descriptor, new java.lang.String[] { "Partial", "Slow", "Async", "StartTime", "CaptureTime", "DurationNanos", "TransactionType", "TransactionName", "Headline", "User", "Attribute", "DetailEntry", "Error", "MainThreadRootTimer", "AuxThreadRootTimer", "AsyncRootTimer", "MainThreadStats", "AuxThreadStats", "EntryCount", "EntryLimitExceeded", "MainThreadProfileSampleCount", "MainThreadProfileSampleLimitExceeded", "AuxThreadProfileSampleCount", "AuxThreadProfileSampleLimitExceeded", }); internal_static_org_glowroot_wire_api_model_Trace_Attribute_descriptor = internal_static_org_glowroot_wire_api_model_Trace_descriptor.getNestedTypes().get(1); internal_static_org_glowroot_wire_api_model_Trace_Attribute_fieldAccessorTable = new org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_glowroot_wire_api_model_Trace_Attribute_descriptor, new java.lang.String[] { "Name", "Value", }); internal_static_org_glowroot_wire_api_model_Trace_DetailEntry_descriptor = internal_static_org_glowroot_wire_api_model_Trace_descriptor.getNestedTypes().get(2); internal_static_org_glowroot_wire_api_model_Trace_DetailEntry_fieldAccessorTable = new org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_glowroot_wire_api_model_Trace_DetailEntry_descriptor, new java.lang.String[] { "Name", "Value", "ChildEntry", }); internal_static_org_glowroot_wire_api_model_Trace_DetailValue_descriptor = internal_static_org_glowroot_wire_api_model_Trace_descriptor.getNestedTypes().get(3); internal_static_org_glowroot_wire_api_model_Trace_DetailValue_fieldAccessorTable = new org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_glowroot_wire_api_model_Trace_DetailValue_descriptor, new java.lang.String[] { "String", "Double", "Long", "Boolean", "Val", }); internal_static_org_glowroot_wire_api_model_Trace_Error_descriptor = internal_static_org_glowroot_wire_api_model_Trace_descriptor.getNestedTypes().get(4); internal_static_org_glowroot_wire_api_model_Trace_Error_fieldAccessorTable = new org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_glowroot_wire_api_model_Trace_Error_descriptor, new java.lang.String[] { "Message", "Exception", }); internal_static_org_glowroot_wire_api_model_Trace_Timer_descriptor = internal_static_org_glowroot_wire_api_model_Trace_descriptor.getNestedTypes().get(5); internal_static_org_glowroot_wire_api_model_Trace_Timer_fieldAccessorTable = new org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_glowroot_wire_api_model_Trace_Timer_descriptor, new java.lang.String[] { "Name", "Extended", "TotalNanos", "Count", "Active", "ChildTimer", }); internal_static_org_glowroot_wire_api_model_Trace_ThreadStats_descriptor = internal_static_org_glowroot_wire_api_model_Trace_descriptor.getNestedTypes().get(6); internal_static_org_glowroot_wire_api_model_Trace_ThreadStats_fieldAccessorTable = new org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_glowroot_wire_api_model_Trace_ThreadStats_descriptor, new java.lang.String[] { "TotalCpuNanos", "TotalBlockedNanos", "TotalWaitedNanos", "TotalAllocatedBytes", }); internal_static_org_glowroot_wire_api_model_Trace_GarbageCollectionActivity_descriptor = internal_static_org_glowroot_wire_api_model_Trace_descriptor.getNestedTypes().get(7); internal_static_org_glowroot_wire_api_model_Trace_GarbageCollectionActivity_fieldAccessorTable = new org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_glowroot_wire_api_model_Trace_GarbageCollectionActivity_descriptor, new java.lang.String[] { "CollectorName", "TotalMillis", "Count", }); internal_static_org_glowroot_wire_api_model_Trace_Entry_descriptor = internal_static_org_glowroot_wire_api_model_Trace_descriptor.getNestedTypes().get(8); internal_static_org_glowroot_wire_api_model_Trace_Entry_fieldAccessorTable = new org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_glowroot_wire_api_model_Trace_Entry_descriptor, new java.lang.String[] { "Depth", "StartOffsetNanos", "DurationNanos", "Active", "Message", "DetailEntry", "LocationStackTraceElement", "Error", }); org.glowroot.wire.api.model.ProfileOuterClass.getDescriptor(); org.glowroot.wire.api.model.Proto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy