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

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

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

package org.glowroot.wire.api.model;

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

    /**
     * repeated string package_name = 1;
     */
    org.glowroot.agent.shaded.google.protobuf.ProtocolStringList
        getPackageNameList();
    /**
     * repeated string package_name = 1;
     */
    int getPackageNameCount();
    /**
     * repeated string package_name = 1;
     */
    java.lang.String getPackageName(int index);
    /**
     * repeated string package_name = 1;
     */
    org.glowroot.agent.shaded.google.protobuf.ByteString
        getPackageNameBytes(int index);

    /**
     * repeated string class_name = 2;
     */
    org.glowroot.agent.shaded.google.protobuf.ProtocolStringList
        getClassNameList();
    /**
     * repeated string class_name = 2;
     */
    int getClassNameCount();
    /**
     * repeated string class_name = 2;
     */
    java.lang.String getClassName(int index);
    /**
     * repeated string class_name = 2;
     */
    org.glowroot.agent.shaded.google.protobuf.ByteString
        getClassNameBytes(int index);

    /**
     * repeated string method_name = 3;
     */
    org.glowroot.agent.shaded.google.protobuf.ProtocolStringList
        getMethodNameList();
    /**
     * repeated string method_name = 3;
     */
    int getMethodNameCount();
    /**
     * repeated string method_name = 3;
     */
    java.lang.String getMethodName(int index);
    /**
     * repeated string method_name = 3;
     */
    org.glowroot.agent.shaded.google.protobuf.ByteString
        getMethodNameBytes(int index);

    /**
     * repeated string file_name = 4;
     */
    org.glowroot.agent.shaded.google.protobuf.ProtocolStringList
        getFileNameList();
    /**
     * repeated string file_name = 4;
     */
    int getFileNameCount();
    /**
     * repeated string file_name = 4;
     */
    java.lang.String getFileName(int index);
    /**
     * repeated string file_name = 4;
     */
    org.glowroot.agent.shaded.google.protobuf.ByteString
        getFileNameBytes(int index);

    /**
     * repeated string timer_name = 5;
     */
    org.glowroot.agent.shaded.google.protobuf.ProtocolStringList
        getTimerNameList();
    /**
     * repeated string timer_name = 5;
     */
    int getTimerNameCount();
    /**
     * repeated string timer_name = 5;
     */
    java.lang.String getTimerName(int index);
    /**
     * repeated string timer_name = 5;
     */
    org.glowroot.agent.shaded.google.protobuf.ByteString
        getTimerNameBytes(int index);

    /**
     * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6;
     *
     * 
     * node ordering is pre-order depth-first
     * IMPORTANT there can be multiple "root" nodes (with depth=0)
     * 
*/ java.util.List getNodeList(); /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
     * node ordering is pre-order depth-first
     * IMPORTANT there can be multiple "root" nodes (with depth=0)
     * 
*/ org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode getNode(int index); /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
     * node ordering is pre-order depth-first
     * IMPORTANT there can be multiple "root" nodes (with depth=0)
     * 
*/ int getNodeCount(); /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
     * node ordering is pre-order depth-first
     * IMPORTANT there can be multiple "root" nodes (with depth=0)
     * 
*/ java.util.List getNodeOrBuilderList(); /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
     * node ordering is pre-order depth-first
     * IMPORTANT there can be multiple "root" nodes (with depth=0)
     * 
*/ org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNodeOrBuilder getNodeOrBuilder( int index); } /** * Protobuf type {@code org_glowroot_wire_api_model.ProfileTree} */ public static final class ProfileTree extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org_glowroot_wire_api_model.ProfileTree) ProfileTreeOrBuilder { // Use ProfileTree.newBuilder() to construct. private ProfileTree(org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ProfileTree() { packageName_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; className_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; methodName_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; fileName_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; timerName_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; node_ = 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 ProfileTree( 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: { String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { packageName_ = new org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } packageName_.add(s); break; } case 18: { String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { className_ = new org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } className_.add(s); break; } case 26: { String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { methodName_ = new org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } methodName_.add(s); break; } case 34: { String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { fileName_ = new org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } fileName_.add(s); break; } case 42: { String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { timerName_ = new org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000010; } timerName_.add(s); break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { node_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000020; } node_.add(input.readMessage(org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.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_ & 0x00000001) == 0x00000001)) { packageName_ = packageName_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { className_ = className_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { methodName_ = methodName_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { fileName_ = fileName_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { timerName_ = timerName_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { node_ = java.util.Collections.unmodifiableList(node_); } makeExtensionsImmutable(); } } public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.ProfileTreeOuterClass.internal_static_org_glowroot_wire_api_model_ProfileTree_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.ProfileTreeOuterClass.internal_static_org_glowroot_wire_api_model_ProfileTree_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.class, org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.Builder.class); } /** * Protobuf enum {@code org_glowroot_wire_api_model.ProfileTree.LeafThreadState} */ public enum LeafThreadState implements org.glowroot.agent.shaded.google.protobuf.ProtocolMessageEnum { /** * NONE = 0; * *
       * means not a leaf node
       * 
*/ NONE(0, 0), /** * NEW = 1; */ NEW(1, 1), /** * RUNNABLE = 2; */ RUNNABLE(2, 2), /** * BLOCKED = 3; */ BLOCKED(3, 3), /** * WAITING = 4; */ WAITING(4, 4), /** * TIMED_WAITING = 5; */ TIMED_WAITING(5, 5), /** * TERMINATED = 6; */ TERMINATED(6, 6), UNRECOGNIZED(-1, -1), ; /** * NONE = 0; * *
       * means not a leaf node
       * 
*/ public static final int NONE_VALUE = 0; /** * NEW = 1; */ public static final int NEW_VALUE = 1; /** * RUNNABLE = 2; */ public static final int RUNNABLE_VALUE = 2; /** * BLOCKED = 3; */ public static final int BLOCKED_VALUE = 3; /** * WAITING = 4; */ public static final int WAITING_VALUE = 4; /** * TIMED_WAITING = 5; */ public static final int TIMED_WAITING_VALUE = 5; /** * TERMINATED = 6; */ public static final int TERMINATED_VALUE = 6; public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } public static LeafThreadState valueOf(int value) { switch (value) { case 0: return NONE; case 1: return NEW; case 2: return RUNNABLE; case 3: return BLOCKED; case 4: return WAITING; case 5: return TIMED_WAITING; case 6: return TERMINATED; default: return null; } } public static org.glowroot.agent.shaded.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final org.glowroot.agent.shaded.google.protobuf.Internal.EnumLiteMap< LeafThreadState> internalValueMap = new org.glowroot.agent.shaded.google.protobuf.Internal.EnumLiteMap() { public LeafThreadState findValueByNumber(int number) { return LeafThreadState.valueOf(number); } }; public final org.glowroot.agent.shaded.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final org.glowroot.agent.shaded.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.getDescriptor().getEnumTypes().get(0); } private static final LeafThreadState[] VALUES = values(); public static LeafThreadState valueOf( org.glowroot.agent.shaded.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int index; private final int value; private LeafThreadState(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:org_glowroot_wire_api_model.ProfileTree.LeafThreadState) } public interface ProfileNodeOrBuilder extends // @@protoc_insertion_point(interface_extends:org_glowroot_wire_api_model.ProfileTree.ProfileNode) org.glowroot.agent.shaded.google.protobuf.MessageOrBuilder { /** * optional int32 depth = 1; */ int getDepth(); /** * optional int32 package_name_index = 2; */ int getPackageNameIndex(); /** * optional int32 class_name_index = 3; */ int getClassNameIndex(); /** * optional int32 method_name_index = 4; */ int getMethodNameIndex(); /** * optional int32 file_name_index = 5; */ int getFileNameIndex(); /** * optional sint32 line_number = 6; */ int getLineNumber(); /** * optional .org_glowroot_wire_api_model.ProfileTree.LeafThreadState leaf_thread_state = 7; */ int getLeafThreadStateValue(); /** * optional .org_glowroot_wire_api_model.ProfileTree.LeafThreadState leaf_thread_state = 7; */ org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.LeafThreadState getLeafThreadState(); /** * optional int64 sample_count = 8; */ long getSampleCount(); /** * repeated int32 timer_name_index = 9; */ java.util.List getTimerNameIndexList(); /** * repeated int32 timer_name_index = 9; */ int getTimerNameIndexCount(); /** * repeated int32 timer_name_index = 9; */ int getTimerNameIndex(int index); } /** * Protobuf type {@code org_glowroot_wire_api_model.ProfileTree.ProfileNode} */ public static final class ProfileNode extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org_glowroot_wire_api_model.ProfileTree.ProfileNode) ProfileNodeOrBuilder { // Use ProfileNode.newBuilder() to construct. private ProfileNode(org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ProfileNode() { depth_ = 0; packageNameIndex_ = 0; classNameIndex_ = 0; methodNameIndex_ = 0; fileNameIndex_ = 0; lineNumber_ = 0; leafThreadState_ = 0; sampleCount_ = 0L; timerNameIndex_ = 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 ProfileNode( 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: { packageNameIndex_ = input.readInt32(); break; } case 24: { classNameIndex_ = input.readInt32(); break; } case 32: { methodNameIndex_ = input.readInt32(); break; } case 40: { fileNameIndex_ = input.readInt32(); break; } case 48: { lineNumber_ = input.readSInt32(); break; } case 56: { int rawValue = input.readEnum(); leafThreadState_ = rawValue; break; } case 64: { sampleCount_ = input.readInt64(); break; } case 72: { if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { timerNameIndex_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } timerNameIndex_.add(input.readInt32()); break; } case 74: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000100) == 0x00000100) && input.getBytesUntilLimit() > 0) { timerNameIndex_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000100; } while (input.getBytesUntilLimit() > 0) { timerNameIndex_.add(input.readInt32()); } input.popLimit(limit); 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_ & 0x00000100) == 0x00000100)) { timerNameIndex_ = java.util.Collections.unmodifiableList(timerNameIndex_); } makeExtensionsImmutable(); } } public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.ProfileTreeOuterClass.internal_static_org_glowroot_wire_api_model_ProfileTree_ProfileNode_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.ProfileTreeOuterClass.internal_static_org_glowroot_wire_api_model_ProfileTree_ProfileNode_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.class, org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.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 PACKAGE_NAME_INDEX_FIELD_NUMBER = 2; private int packageNameIndex_; /** * optional int32 package_name_index = 2; */ public int getPackageNameIndex() { return packageNameIndex_; } public static final int CLASS_NAME_INDEX_FIELD_NUMBER = 3; private int classNameIndex_; /** * optional int32 class_name_index = 3; */ public int getClassNameIndex() { return classNameIndex_; } public static final int METHOD_NAME_INDEX_FIELD_NUMBER = 4; private int methodNameIndex_; /** * optional int32 method_name_index = 4; */ public int getMethodNameIndex() { return methodNameIndex_; } public static final int FILE_NAME_INDEX_FIELD_NUMBER = 5; private int fileNameIndex_; /** * optional int32 file_name_index = 5; */ public int getFileNameIndex() { return fileNameIndex_; } public static final int LINE_NUMBER_FIELD_NUMBER = 6; private int lineNumber_; /** * optional sint32 line_number = 6; */ public int getLineNumber() { return lineNumber_; } public static final int LEAF_THREAD_STATE_FIELD_NUMBER = 7; private int leafThreadState_; /** * optional .org_glowroot_wire_api_model.ProfileTree.LeafThreadState leaf_thread_state = 7; */ public int getLeafThreadStateValue() { return leafThreadState_; } /** * optional .org_glowroot_wire_api_model.ProfileTree.LeafThreadState leaf_thread_state = 7; */ public org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.LeafThreadState getLeafThreadState() { org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.LeafThreadState result = org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.LeafThreadState.valueOf(leafThreadState_); return result == null ? org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.LeafThreadState.UNRECOGNIZED : result; } public static final int SAMPLE_COUNT_FIELD_NUMBER = 8; private long sampleCount_; /** * optional int64 sample_count = 8; */ public long getSampleCount() { return sampleCount_; } public static final int TIMER_NAME_INDEX_FIELD_NUMBER = 9; private java.util.List timerNameIndex_; /** * repeated int32 timer_name_index = 9; */ public java.util.List getTimerNameIndexList() { return timerNameIndex_; } /** * repeated int32 timer_name_index = 9; */ public int getTimerNameIndexCount() { return timerNameIndex_.size(); } /** * repeated int32 timer_name_index = 9; */ public int getTimerNameIndex(int index) { return timerNameIndex_.get(index); } private int timerNameIndexMemoizedSerializedSize = -1; 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 { getSerializedSize(); if (depth_ != 0) { output.writeInt32(1, depth_); } if (packageNameIndex_ != 0) { output.writeInt32(2, packageNameIndex_); } if (classNameIndex_ != 0) { output.writeInt32(3, classNameIndex_); } if (methodNameIndex_ != 0) { output.writeInt32(4, methodNameIndex_); } if (fileNameIndex_ != 0) { output.writeInt32(5, fileNameIndex_); } if (lineNumber_ != 0) { output.writeSInt32(6, lineNumber_); } if (leafThreadState_ != org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.LeafThreadState.NONE.getNumber()) { output.writeEnum(7, leafThreadState_); } if (sampleCount_ != 0L) { output.writeInt64(8, sampleCount_); } if (getTimerNameIndexList().size() > 0) { output.writeRawVarint32(74); output.writeRawVarint32(timerNameIndexMemoizedSerializedSize); } for (int i = 0; i < timerNameIndex_.size(); i++) { output.writeInt32NoTag(timerNameIndex_.get(i)); } } 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 (packageNameIndex_ != 0) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt32Size(2, packageNameIndex_); } if (classNameIndex_ != 0) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt32Size(3, classNameIndex_); } if (methodNameIndex_ != 0) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt32Size(4, methodNameIndex_); } if (fileNameIndex_ != 0) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt32Size(5, fileNameIndex_); } if (lineNumber_ != 0) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeSInt32Size(6, lineNumber_); } if (leafThreadState_ != org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.LeafThreadState.NONE.getNumber()) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeEnumSize(7, leafThreadState_); } if (sampleCount_ != 0L) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt64Size(8, sampleCount_); } { int dataSize = 0; for (int i = 0; i < timerNameIndex_.size(); i++) { dataSize += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(timerNameIndex_.get(i)); } size += dataSize; if (!getTimerNameIndexList().isEmpty()) { size += 1; size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } timerNameIndexMemoizedSerializedSize = dataSize; } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode 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.ProfileTreeOuterClass.ProfileTree.ProfileNode 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.ProfileTreeOuterClass.ProfileTree.ProfileNode parseFrom(byte[] data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode 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.ProfileTreeOuterClass.ProfileTree.ProfileNode parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode 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.ProfileTreeOuterClass.ProfileTree.ProfileNode parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode 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.ProfileTreeOuterClass.ProfileTree.ProfileNode parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode 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.ProfileTreeOuterClass.ProfileTree.ProfileNode 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.ProfileTree.ProfileNode} */ 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.ProfileTree.ProfileNode) org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNodeOrBuilder { public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.ProfileTreeOuterClass.internal_static_org_glowroot_wire_api_model_ProfileTree_ProfileNode_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.ProfileTreeOuterClass.internal_static_org_glowroot_wire_api_model_ProfileTree_ProfileNode_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.class, org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.Builder.class); } // Construct using org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.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(); depth_ = 0; packageNameIndex_ = 0; classNameIndex_ = 0; methodNameIndex_ = 0; fileNameIndex_ = 0; lineNumber_ = 0; leafThreadState_ = 0; sampleCount_ = 0L; timerNameIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); return this; } public org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.glowroot.wire.api.model.ProfileTreeOuterClass.internal_static_org_glowroot_wire_api_model_ProfileTree_ProfileNode_descriptor; } public org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode getDefaultInstanceForType() { return org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.getDefaultInstance(); } public org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode build() { org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode buildPartial() { org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode result = new org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.depth_ = depth_; result.packageNameIndex_ = packageNameIndex_; result.classNameIndex_ = classNameIndex_; result.methodNameIndex_ = methodNameIndex_; result.fileNameIndex_ = fileNameIndex_; result.lineNumber_ = lineNumber_; result.leafThreadState_ = leafThreadState_; result.sampleCount_ = sampleCount_; if (((bitField0_ & 0x00000100) == 0x00000100)) { timerNameIndex_ = java.util.Collections.unmodifiableList(timerNameIndex_); bitField0_ = (bitField0_ & ~0x00000100); } result.timerNameIndex_ = timerNameIndex_; 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.ProfileTreeOuterClass.ProfileTree.ProfileNode) { return mergeFrom((org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode other) { if (other == org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.getDefaultInstance()) return this; if (other.getDepth() != 0) { setDepth(other.getDepth()); } if (other.getPackageNameIndex() != 0) { setPackageNameIndex(other.getPackageNameIndex()); } if (other.getClassNameIndex() != 0) { setClassNameIndex(other.getClassNameIndex()); } if (other.getMethodNameIndex() != 0) { setMethodNameIndex(other.getMethodNameIndex()); } if (other.getFileNameIndex() != 0) { setFileNameIndex(other.getFileNameIndex()); } if (other.getLineNumber() != 0) { setLineNumber(other.getLineNumber()); } if (other.leafThreadState_ != 0) { setLeafThreadStateValue(other.getLeafThreadStateValue()); } if (other.getSampleCount() != 0L) { setSampleCount(other.getSampleCount()); } if (!other.timerNameIndex_.isEmpty()) { if (timerNameIndex_.isEmpty()) { timerNameIndex_ = other.timerNameIndex_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureTimerNameIndexIsMutable(); timerNameIndex_.addAll(other.timerNameIndex_); } 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.ProfileTreeOuterClass.ProfileTree.ProfileNode parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode) 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 int packageNameIndex_ ; /** * optional int32 package_name_index = 2; */ public int getPackageNameIndex() { return packageNameIndex_; } /** * optional int32 package_name_index = 2; */ public Builder setPackageNameIndex(int value) { packageNameIndex_ = value; onChanged(); return this; } /** * optional int32 package_name_index = 2; */ public Builder clearPackageNameIndex() { packageNameIndex_ = 0; onChanged(); return this; } private int classNameIndex_ ; /** * optional int32 class_name_index = 3; */ public int getClassNameIndex() { return classNameIndex_; } /** * optional int32 class_name_index = 3; */ public Builder setClassNameIndex(int value) { classNameIndex_ = value; onChanged(); return this; } /** * optional int32 class_name_index = 3; */ public Builder clearClassNameIndex() { classNameIndex_ = 0; onChanged(); return this; } private int methodNameIndex_ ; /** * optional int32 method_name_index = 4; */ public int getMethodNameIndex() { return methodNameIndex_; } /** * optional int32 method_name_index = 4; */ public Builder setMethodNameIndex(int value) { methodNameIndex_ = value; onChanged(); return this; } /** * optional int32 method_name_index = 4; */ public Builder clearMethodNameIndex() { methodNameIndex_ = 0; onChanged(); return this; } private int fileNameIndex_ ; /** * optional int32 file_name_index = 5; */ public int getFileNameIndex() { return fileNameIndex_; } /** * optional int32 file_name_index = 5; */ public Builder setFileNameIndex(int value) { fileNameIndex_ = value; onChanged(); return this; } /** * optional int32 file_name_index = 5; */ public Builder clearFileNameIndex() { fileNameIndex_ = 0; onChanged(); return this; } private int lineNumber_ ; /** * optional sint32 line_number = 6; */ public int getLineNumber() { return lineNumber_; } /** * optional sint32 line_number = 6; */ public Builder setLineNumber(int value) { lineNumber_ = value; onChanged(); return this; } /** * optional sint32 line_number = 6; */ public Builder clearLineNumber() { lineNumber_ = 0; onChanged(); return this; } private int leafThreadState_ = 0; /** * optional .org_glowroot_wire_api_model.ProfileTree.LeafThreadState leaf_thread_state = 7; */ public int getLeafThreadStateValue() { return leafThreadState_; } /** * optional .org_glowroot_wire_api_model.ProfileTree.LeafThreadState leaf_thread_state = 7; */ public Builder setLeafThreadStateValue(int value) { leafThreadState_ = value; onChanged(); return this; } /** * optional .org_glowroot_wire_api_model.ProfileTree.LeafThreadState leaf_thread_state = 7; */ public org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.LeafThreadState getLeafThreadState() { org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.LeafThreadState result = org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.LeafThreadState.valueOf(leafThreadState_); return result == null ? org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.LeafThreadState.UNRECOGNIZED : result; } /** * optional .org_glowroot_wire_api_model.ProfileTree.LeafThreadState leaf_thread_state = 7; */ public Builder setLeafThreadState(org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.LeafThreadState value) { if (value == null) { throw new NullPointerException(); } leafThreadState_ = value.getNumber(); onChanged(); return this; } /** * optional .org_glowroot_wire_api_model.ProfileTree.LeafThreadState leaf_thread_state = 7; */ public Builder clearLeafThreadState() { leafThreadState_ = 0; onChanged(); return this; } private long sampleCount_ ; /** * optional int64 sample_count = 8; */ public long getSampleCount() { return sampleCount_; } /** * optional int64 sample_count = 8; */ public Builder setSampleCount(long value) { sampleCount_ = value; onChanged(); return this; } /** * optional int64 sample_count = 8; */ public Builder clearSampleCount() { sampleCount_ = 0L; onChanged(); return this; } private java.util.List timerNameIndex_ = java.util.Collections.emptyList(); private void ensureTimerNameIndexIsMutable() { if (!((bitField0_ & 0x00000100) == 0x00000100)) { timerNameIndex_ = new java.util.ArrayList(timerNameIndex_); bitField0_ |= 0x00000100; } } /** * repeated int32 timer_name_index = 9; */ public java.util.List getTimerNameIndexList() { return java.util.Collections.unmodifiableList(timerNameIndex_); } /** * repeated int32 timer_name_index = 9; */ public int getTimerNameIndexCount() { return timerNameIndex_.size(); } /** * repeated int32 timer_name_index = 9; */ public int getTimerNameIndex(int index) { return timerNameIndex_.get(index); } /** * repeated int32 timer_name_index = 9; */ public Builder setTimerNameIndex( int index, int value) { ensureTimerNameIndexIsMutable(); timerNameIndex_.set(index, value); onChanged(); return this; } /** * repeated int32 timer_name_index = 9; */ public Builder addTimerNameIndex(int value) { ensureTimerNameIndexIsMutable(); timerNameIndex_.add(value); onChanged(); return this; } /** * repeated int32 timer_name_index = 9; */ public Builder addAllTimerNameIndex( java.lang.Iterable values) { ensureTimerNameIndexIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, timerNameIndex_); onChanged(); return this; } /** * repeated int32 timer_name_index = 9; */ public Builder clearTimerNameIndex() { timerNameIndex_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); 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.ProfileTree.ProfileNode) } // @@protoc_insertion_point(class_scope:org_glowroot_wire_api_model.ProfileTree.ProfileNode) private static final org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode(); } public static org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.glowroot.agent.shaded.google.protobuf.Parser PARSER = new org.glowroot.agent.shaded.google.protobuf.AbstractParser() { public ProfileNode 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 ProfileNode(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.ProfileTreeOuterClass.ProfileTree.ProfileNode getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int PACKAGE_NAME_FIELD_NUMBER = 1; private org.glowroot.agent.shaded.google.protobuf.LazyStringList packageName_; /** * repeated string package_name = 1; */ public org.glowroot.agent.shaded.google.protobuf.ProtocolStringList getPackageNameList() { return packageName_; } /** * repeated string package_name = 1; */ public int getPackageNameCount() { return packageName_.size(); } /** * repeated string package_name = 1; */ public java.lang.String getPackageName(int index) { return packageName_.get(index); } /** * repeated string package_name = 1; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getPackageNameBytes(int index) { return packageName_.getByteString(index); } public static final int CLASS_NAME_FIELD_NUMBER = 2; private org.glowroot.agent.shaded.google.protobuf.LazyStringList className_; /** * repeated string class_name = 2; */ public org.glowroot.agent.shaded.google.protobuf.ProtocolStringList getClassNameList() { return className_; } /** * repeated string class_name = 2; */ public int getClassNameCount() { return className_.size(); } /** * repeated string class_name = 2; */ public java.lang.String getClassName(int index) { return className_.get(index); } /** * repeated string class_name = 2; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getClassNameBytes(int index) { return className_.getByteString(index); } public static final int METHOD_NAME_FIELD_NUMBER = 3; private org.glowroot.agent.shaded.google.protobuf.LazyStringList methodName_; /** * repeated string method_name = 3; */ public org.glowroot.agent.shaded.google.protobuf.ProtocolStringList getMethodNameList() { return methodName_; } /** * repeated string method_name = 3; */ public int getMethodNameCount() { return methodName_.size(); } /** * repeated string method_name = 3; */ public java.lang.String getMethodName(int index) { return methodName_.get(index); } /** * repeated string method_name = 3; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getMethodNameBytes(int index) { return methodName_.getByteString(index); } public static final int FILE_NAME_FIELD_NUMBER = 4; private org.glowroot.agent.shaded.google.protobuf.LazyStringList fileName_; /** * repeated string file_name = 4; */ public org.glowroot.agent.shaded.google.protobuf.ProtocolStringList getFileNameList() { return fileName_; } /** * repeated string file_name = 4; */ public int getFileNameCount() { return fileName_.size(); } /** * repeated string file_name = 4; */ public java.lang.String getFileName(int index) { return fileName_.get(index); } /** * repeated string file_name = 4; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getFileNameBytes(int index) { return fileName_.getByteString(index); } public static final int TIMER_NAME_FIELD_NUMBER = 5; private org.glowroot.agent.shaded.google.protobuf.LazyStringList timerName_; /** * repeated string timer_name = 5; */ public org.glowroot.agent.shaded.google.protobuf.ProtocolStringList getTimerNameList() { return timerName_; } /** * repeated string timer_name = 5; */ public int getTimerNameCount() { return timerName_.size(); } /** * repeated string timer_name = 5; */ public java.lang.String getTimerName(int index) { return timerName_.get(index); } /** * repeated string timer_name = 5; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getTimerNameBytes(int index) { return timerName_.getByteString(index); } public static final int NODE_FIELD_NUMBER = 6; private java.util.List node_; /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
     * node ordering is pre-order depth-first
     * IMPORTANT there can be multiple "root" nodes (with depth=0)
     * 
*/ public java.util.List getNodeList() { return node_; } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
     * node ordering is pre-order depth-first
     * IMPORTANT there can be multiple "root" nodes (with depth=0)
     * 
*/ public java.util.List getNodeOrBuilderList() { return node_; } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
     * node ordering is pre-order depth-first
     * IMPORTANT there can be multiple "root" nodes (with depth=0)
     * 
*/ public int getNodeCount() { return node_.size(); } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
     * node ordering is pre-order depth-first
     * IMPORTANT there can be multiple "root" nodes (with depth=0)
     * 
*/ public org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode getNode(int index) { return node_.get(index); } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
     * node ordering is pre-order depth-first
     * IMPORTANT there can be multiple "root" nodes (with depth=0)
     * 
*/ public org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNodeOrBuilder getNodeOrBuilder( int index) { return node_.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 { for (int i = 0; i < packageName_.size(); i++) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 1, packageName_.getRaw(i)); } for (int i = 0; i < className_.size(); i++) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 2, className_.getRaw(i)); } for (int i = 0; i < methodName_.size(); i++) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 3, methodName_.getRaw(i)); } for (int i = 0; i < fileName_.size(); i++) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 4, fileName_.getRaw(i)); } for (int i = 0; i < timerName_.size(); i++) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 5, timerName_.getRaw(i)); } for (int i = 0; i < node_.size(); i++) { output.writeMessage(6, node_.get(i)); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < packageName_.size(); i++) { dataSize += computeStringSizeNoTag(packageName_.getRaw(i)); } size += dataSize; size += 1 * getPackageNameList().size(); } { int dataSize = 0; for (int i = 0; i < className_.size(); i++) { dataSize += computeStringSizeNoTag(className_.getRaw(i)); } size += dataSize; size += 1 * getClassNameList().size(); } { int dataSize = 0; for (int i = 0; i < methodName_.size(); i++) { dataSize += computeStringSizeNoTag(methodName_.getRaw(i)); } size += dataSize; size += 1 * getMethodNameList().size(); } { int dataSize = 0; for (int i = 0; i < fileName_.size(); i++) { dataSize += computeStringSizeNoTag(fileName_.getRaw(i)); } size += dataSize; size += 1 * getFileNameList().size(); } { int dataSize = 0; for (int i = 0; i < timerName_.size(); i++) { dataSize += computeStringSizeNoTag(timerName_.getRaw(i)); } size += dataSize; size += 1 * getTimerNameList().size(); } for (int i = 0; i < node_.size(); i++) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeMessageSize(6, node_.get(i)); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree 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.ProfileTreeOuterClass.ProfileTree 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.ProfileTreeOuterClass.ProfileTree parseFrom(byte[] data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree 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.ProfileTreeOuterClass.ProfileTree parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree 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.ProfileTreeOuterClass.ProfileTree parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree 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.ProfileTreeOuterClass.ProfileTree parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree 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.ProfileTreeOuterClass.ProfileTree 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.ProfileTree} */ 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.ProfileTree) org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTreeOrBuilder { public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.ProfileTreeOuterClass.internal_static_org_glowroot_wire_api_model_ProfileTree_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.ProfileTreeOuterClass.internal_static_org_glowroot_wire_api_model_ProfileTree_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.class, org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.Builder.class); } // Construct using org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.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) { getNodeFieldBuilder(); } } public Builder clear() { super.clear(); packageName_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); className_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); methodName_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); fileName_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); timerName_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); if (nodeBuilder_ == null) { node_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { nodeBuilder_.clear(); } return this; } public org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.glowroot.wire.api.model.ProfileTreeOuterClass.internal_static_org_glowroot_wire_api_model_ProfileTree_descriptor; } public org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree getDefaultInstanceForType() { return org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.getDefaultInstance(); } public org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree build() { org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree buildPartial() { org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree result = new org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { packageName_ = packageName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.packageName_ = packageName_; if (((bitField0_ & 0x00000002) == 0x00000002)) { className_ = className_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.className_ = className_; if (((bitField0_ & 0x00000004) == 0x00000004)) { methodName_ = methodName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.methodName_ = methodName_; if (((bitField0_ & 0x00000008) == 0x00000008)) { fileName_ = fileName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.fileName_ = fileName_; if (((bitField0_ & 0x00000010) == 0x00000010)) { timerName_ = timerName_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.timerName_ = timerName_; if (nodeBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { node_ = java.util.Collections.unmodifiableList(node_); bitField0_ = (bitField0_ & ~0x00000020); } result.node_ = node_; } else { result.node_ = nodeBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(org.glowroot.agent.shaded.google.protobuf.Message other) { if (other instanceof org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree) { return mergeFrom((org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree other) { if (other == org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.getDefaultInstance()) return this; if (!other.packageName_.isEmpty()) { if (packageName_.isEmpty()) { packageName_ = other.packageName_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePackageNameIsMutable(); packageName_.addAll(other.packageName_); } onChanged(); } if (!other.className_.isEmpty()) { if (className_.isEmpty()) { className_ = other.className_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureClassNameIsMutable(); className_.addAll(other.className_); } onChanged(); } if (!other.methodName_.isEmpty()) { if (methodName_.isEmpty()) { methodName_ = other.methodName_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureMethodNameIsMutable(); methodName_.addAll(other.methodName_); } onChanged(); } if (!other.fileName_.isEmpty()) { if (fileName_.isEmpty()) { fileName_ = other.fileName_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFileNameIsMutable(); fileName_.addAll(other.fileName_); } onChanged(); } if (!other.timerName_.isEmpty()) { if (timerName_.isEmpty()) { timerName_ = other.timerName_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureTimerNameIsMutable(); timerName_.addAll(other.timerName_); } onChanged(); } if (nodeBuilder_ == null) { if (!other.node_.isEmpty()) { if (node_.isEmpty()) { node_ = other.node_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureNodeIsMutable(); node_.addAll(other.node_); } onChanged(); } } else { if (!other.node_.isEmpty()) { if (nodeBuilder_.isEmpty()) { nodeBuilder_.dispose(); nodeBuilder_ = null; node_ = other.node_; bitField0_ = (bitField0_ & ~0x00000020); nodeBuilder_ = org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getNodeFieldBuilder() : null; } else { nodeBuilder_.addAllMessages(other.node_); } } } 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.ProfileTreeOuterClass.ProfileTree parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.glowroot.agent.shaded.google.protobuf.LazyStringList packageName_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePackageNameIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { packageName_ = new org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList(packageName_); bitField0_ |= 0x00000001; } } /** * repeated string package_name = 1; */ public org.glowroot.agent.shaded.google.protobuf.ProtocolStringList getPackageNameList() { return packageName_.getUnmodifiableView(); } /** * repeated string package_name = 1; */ public int getPackageNameCount() { return packageName_.size(); } /** * repeated string package_name = 1; */ public java.lang.String getPackageName(int index) { return packageName_.get(index); } /** * repeated string package_name = 1; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getPackageNameBytes(int index) { return packageName_.getByteString(index); } /** * repeated string package_name = 1; */ public Builder setPackageName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePackageNameIsMutable(); packageName_.set(index, value); onChanged(); return this; } /** * repeated string package_name = 1; */ public Builder addPackageName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePackageNameIsMutable(); packageName_.add(value); onChanged(); return this; } /** * repeated string package_name = 1; */ public Builder addAllPackageName( java.lang.Iterable values) { ensurePackageNameIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, packageName_); onChanged(); return this; } /** * repeated string package_name = 1; */ public Builder clearPackageName() { packageName_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string package_name = 1; */ public Builder addPackageNameBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePackageNameIsMutable(); packageName_.add(value); onChanged(); return this; } private org.glowroot.agent.shaded.google.protobuf.LazyStringList className_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; private void ensureClassNameIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { className_ = new org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList(className_); bitField0_ |= 0x00000002; } } /** * repeated string class_name = 2; */ public org.glowroot.agent.shaded.google.protobuf.ProtocolStringList getClassNameList() { return className_.getUnmodifiableView(); } /** * repeated string class_name = 2; */ public int getClassNameCount() { return className_.size(); } /** * repeated string class_name = 2; */ public java.lang.String getClassName(int index) { return className_.get(index); } /** * repeated string class_name = 2; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getClassNameBytes(int index) { return className_.getByteString(index); } /** * repeated string class_name = 2; */ public Builder setClassName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureClassNameIsMutable(); className_.set(index, value); onChanged(); return this; } /** * repeated string class_name = 2; */ public Builder addClassName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureClassNameIsMutable(); className_.add(value); onChanged(); return this; } /** * repeated string class_name = 2; */ public Builder addAllClassName( java.lang.Iterable values) { ensureClassNameIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, className_); onChanged(); return this; } /** * repeated string class_name = 2; */ public Builder clearClassName() { className_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string class_name = 2; */ public Builder addClassNameBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureClassNameIsMutable(); className_.add(value); onChanged(); return this; } private org.glowroot.agent.shaded.google.protobuf.LazyStringList methodName_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMethodNameIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { methodName_ = new org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList(methodName_); bitField0_ |= 0x00000004; } } /** * repeated string method_name = 3; */ public org.glowroot.agent.shaded.google.protobuf.ProtocolStringList getMethodNameList() { return methodName_.getUnmodifiableView(); } /** * repeated string method_name = 3; */ public int getMethodNameCount() { return methodName_.size(); } /** * repeated string method_name = 3; */ public java.lang.String getMethodName(int index) { return methodName_.get(index); } /** * repeated string method_name = 3; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getMethodNameBytes(int index) { return methodName_.getByteString(index); } /** * repeated string method_name = 3; */ public Builder setMethodName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMethodNameIsMutable(); methodName_.set(index, value); onChanged(); return this; } /** * repeated string method_name = 3; */ public Builder addMethodName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureMethodNameIsMutable(); methodName_.add(value); onChanged(); return this; } /** * repeated string method_name = 3; */ public Builder addAllMethodName( java.lang.Iterable values) { ensureMethodNameIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, methodName_); onChanged(); return this; } /** * repeated string method_name = 3; */ public Builder clearMethodName() { methodName_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * repeated string method_name = 3; */ public Builder addMethodNameBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureMethodNameIsMutable(); methodName_.add(value); onChanged(); return this; } private org.glowroot.agent.shaded.google.protobuf.LazyStringList fileName_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; private void ensureFileNameIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { fileName_ = new org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList(fileName_); bitField0_ |= 0x00000008; } } /** * repeated string file_name = 4; */ public org.glowroot.agent.shaded.google.protobuf.ProtocolStringList getFileNameList() { return fileName_.getUnmodifiableView(); } /** * repeated string file_name = 4; */ public int getFileNameCount() { return fileName_.size(); } /** * repeated string file_name = 4; */ public java.lang.String getFileName(int index) { return fileName_.get(index); } /** * repeated string file_name = 4; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getFileNameBytes(int index) { return fileName_.getByteString(index); } /** * repeated string file_name = 4; */ public Builder setFileName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFileNameIsMutable(); fileName_.set(index, value); onChanged(); return this; } /** * repeated string file_name = 4; */ public Builder addFileName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFileNameIsMutable(); fileName_.add(value); onChanged(); return this; } /** * repeated string file_name = 4; */ public Builder addAllFileName( java.lang.Iterable values) { ensureFileNameIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, fileName_); onChanged(); return this; } /** * repeated string file_name = 4; */ public Builder clearFileName() { fileName_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * repeated string file_name = 4; */ public Builder addFileNameBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFileNameIsMutable(); fileName_.add(value); onChanged(); return this; } private org.glowroot.agent.shaded.google.protobuf.LazyStringList timerName_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTimerNameIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { timerName_ = new org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList(timerName_); bitField0_ |= 0x00000010; } } /** * repeated string timer_name = 5; */ public org.glowroot.agent.shaded.google.protobuf.ProtocolStringList getTimerNameList() { return timerName_.getUnmodifiableView(); } /** * repeated string timer_name = 5; */ public int getTimerNameCount() { return timerName_.size(); } /** * repeated string timer_name = 5; */ public java.lang.String getTimerName(int index) { return timerName_.get(index); } /** * repeated string timer_name = 5; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getTimerNameBytes(int index) { return timerName_.getByteString(index); } /** * repeated string timer_name = 5; */ public Builder setTimerName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTimerNameIsMutable(); timerName_.set(index, value); onChanged(); return this; } /** * repeated string timer_name = 5; */ public Builder addTimerName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTimerNameIsMutable(); timerName_.add(value); onChanged(); return this; } /** * repeated string timer_name = 5; */ public Builder addAllTimerName( java.lang.Iterable values) { ensureTimerNameIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, timerName_); onChanged(); return this; } /** * repeated string timer_name = 5; */ public Builder clearTimerName() { timerName_ = org.glowroot.agent.shaded.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * repeated string timer_name = 5; */ public Builder addTimerNameBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTimerNameIsMutable(); timerName_.add(value); onChanged(); return this; } private java.util.List node_ = java.util.Collections.emptyList(); private void ensureNodeIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { node_ = new java.util.ArrayList(node_); bitField0_ |= 0x00000020; } } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode, org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.Builder, org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNodeOrBuilder> nodeBuilder_; /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public java.util.List getNodeList() { if (nodeBuilder_ == null) { return java.util.Collections.unmodifiableList(node_); } else { return nodeBuilder_.getMessageList(); } } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public int getNodeCount() { if (nodeBuilder_ == null) { return node_.size(); } else { return nodeBuilder_.getCount(); } } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode getNode(int index) { if (nodeBuilder_ == null) { return node_.get(index); } else { return nodeBuilder_.getMessage(index); } } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public Builder setNode( int index, org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode value) { if (nodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodeIsMutable(); node_.set(index, value); onChanged(); } else { nodeBuilder_.setMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public Builder setNode( int index, org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.Builder builderForValue) { if (nodeBuilder_ == null) { ensureNodeIsMutable(); node_.set(index, builderForValue.build()); onChanged(); } else { nodeBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public Builder addNode(org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode value) { if (nodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodeIsMutable(); node_.add(value); onChanged(); } else { nodeBuilder_.addMessage(value); } return this; } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public Builder addNode( int index, org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode value) { if (nodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNodeIsMutable(); node_.add(index, value); onChanged(); } else { nodeBuilder_.addMessage(index, value); } return this; } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public Builder addNode( org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.Builder builderForValue) { if (nodeBuilder_ == null) { ensureNodeIsMutable(); node_.add(builderForValue.build()); onChanged(); } else { nodeBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public Builder addNode( int index, org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.Builder builderForValue) { if (nodeBuilder_ == null) { ensureNodeIsMutable(); node_.add(index, builderForValue.build()); onChanged(); } else { nodeBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public Builder addAllNode( java.lang.Iterable values) { if (nodeBuilder_ == null) { ensureNodeIsMutable(); org.glowroot.agent.shaded.google.protobuf.AbstractMessageLite.Builder.addAll( values, node_); onChanged(); } else { nodeBuilder_.addAllMessages(values); } return this; } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public Builder clearNode() { if (nodeBuilder_ == null) { node_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { nodeBuilder_.clear(); } return this; } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public Builder removeNode(int index) { if (nodeBuilder_ == null) { ensureNodeIsMutable(); node_.remove(index); onChanged(); } else { nodeBuilder_.remove(index); } return this; } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.Builder getNodeBuilder( int index) { return getNodeFieldBuilder().getBuilder(index); } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNodeOrBuilder getNodeOrBuilder( int index) { if (nodeBuilder_ == null) { return node_.get(index); } else { return nodeBuilder_.getMessageOrBuilder(index); } } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public java.util.List getNodeOrBuilderList() { if (nodeBuilder_ != null) { return nodeBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(node_); } } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.Builder addNodeBuilder() { return getNodeFieldBuilder().addBuilder( org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.Builder addNodeBuilder( int index) { return getNodeFieldBuilder().addBuilder( index, org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.getDefaultInstance()); } /** * repeated .org_glowroot_wire_api_model.ProfileTree.ProfileNode node = 6; * *
       * node ordering is pre-order depth-first
       * IMPORTANT there can be multiple "root" nodes (with depth=0)
       * 
*/ public java.util.List getNodeBuilderList() { return getNodeFieldBuilder().getBuilderList(); } private org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode, org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.Builder, org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNodeOrBuilder> getNodeFieldBuilder() { if (nodeBuilder_ == null) { nodeBuilder_ = new org.glowroot.agent.shaded.google.protobuf.RepeatedFieldBuilder< org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode, org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNode.Builder, org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree.ProfileNodeOrBuilder>( node_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); node_ = null; } return nodeBuilder_; } 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.ProfileTree) } // @@protoc_insertion_point(class_scope:org_glowroot_wire_api_model.ProfileTree) private static final org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree(); } public static org.glowroot.wire.api.model.ProfileTreeOuterClass.ProfileTree getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.glowroot.agent.shaded.google.protobuf.Parser PARSER = new org.glowroot.agent.shaded.google.protobuf.AbstractParser() { public ProfileTree 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 ProfileTree(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.ProfileTreeOuterClass.ProfileTree getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor internal_static_org_glowroot_wire_api_model_ProfileTree_descriptor; private static org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_glowroot_wire_api_model_ProfileTree_fieldAccessorTable; private static org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor internal_static_org_glowroot_wire_api_model_ProfileTree_ProfileNode_descriptor; private static org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_glowroot_wire_api_model_ProfileTree_ProfileNode_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\021ProfileTree.proto\022\033org_glowroot_wire_a" + "pi_model\"\313\004\n\013ProfileTree\022\024\n\014package_name" + "\030\001 \003(\t\022\022\n\nclass_name\030\002 \003(\t\022\023\n\013method_nam" + "e\030\003 \003(\t\022\021\n\tfile_name\030\004 \003(\t\022\022\n\ntimer_name" + "\030\005 \003(\t\022B\n\004node\030\006 \003(\01324.org_glowroot_wire" + "_api_model.ProfileTree.ProfileNode\032\240\002\n\013P" + "rofileNode\022\r\n\005depth\030\001 \001(\005\022\032\n\022package_nam" + "e_index\030\002 \001(\005\022\030\n\020class_name_index\030\003 \001(\005\022" + "\031\n\021method_name_index\030\004 \001(\005\022\027\n\017file_name_" + "index\030\005 \001(\005\022\023\n\013line_number\030\006 \001(\021\022S\n\021leaf", "_thread_state\030\007 \001(\01628.org_glowroot_wire_" + "api_model.ProfileTree.LeafThreadState\022\024\n" + "\014sample_count\030\010 \001(\003\022\030\n\020timer_name_index\030" + "\t \003(\005\"o\n\017LeafThreadState\022\010\n\004NONE\020\000\022\007\n\003NE" + "W\020\001\022\014\n\010RUNNABLE\020\002\022\013\n\007BLOCKED\020\003\022\013\n\007WAITIN" + "G\020\004\022\021\n\rTIMED_WAITING\020\005\022\016\n\nTERMINATED\020\006B\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[] { }, assigner); internal_static_org_glowroot_wire_api_model_ProfileTree_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_org_glowroot_wire_api_model_ProfileTree_fieldAccessorTable = new org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_glowroot_wire_api_model_ProfileTree_descriptor, new java.lang.String[] { "PackageName", "ClassName", "MethodName", "FileName", "TimerName", "Node", }); internal_static_org_glowroot_wire_api_model_ProfileTree_ProfileNode_descriptor = internal_static_org_glowroot_wire_api_model_ProfileTree_descriptor.getNestedTypes().get(0); internal_static_org_glowroot_wire_api_model_ProfileTree_ProfileNode_fieldAccessorTable = new org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_glowroot_wire_api_model_ProfileTree_ProfileNode_descriptor, new java.lang.String[] { "Depth", "PackageNameIndex", "ClassNameIndex", "MethodNameIndex", "FileNameIndex", "LineNumber", "LeafThreadState", "SampleCount", "TimerNameIndex", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy