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

io.opencensus.proto.trace.v1.StackTrace Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: opencensus/proto/trace/v1/trace.proto

package io.opencensus.proto.trace.v1;

/**
 * 
 * The call stack which originated this span.
 * 
* * Protobuf type {@code opencensus.proto.trace.v1.StackTrace} */ public final class StackTrace extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opencensus.proto.trace.v1.StackTrace) StackTraceOrBuilder { private static final long serialVersionUID = 0L; // Use StackTrace.newBuilder() to construct. private StackTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StackTrace() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StackTrace(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StackTrace( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.opencensus.proto.trace.v1.StackTrace.StackFrames.Builder subBuilder = null; if (stackFrames_ != null) { subBuilder = stackFrames_.toBuilder(); } stackFrames_ = input.readMessage(io.opencensus.proto.trace.v1.StackTrace.StackFrames.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stackFrames_); stackFrames_ = subBuilder.buildPartial(); } break; } case 16: { stackTraceHashId_ = input.readUInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_StackTrace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_StackTrace_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencensus.proto.trace.v1.StackTrace.class, io.opencensus.proto.trace.v1.StackTrace.Builder.class); } public interface StackFrameOrBuilder extends // @@protoc_insertion_point(interface_extends:opencensus.proto.trace.v1.StackTrace.StackFrame) com.google.protobuf.MessageOrBuilder { /** *
     * The fully-qualified name that uniquely identifies the function or
     * method that is active in this frame.
     * 
* * .opencensus.proto.trace.v1.TruncatableString function_name = 1; */ boolean hasFunctionName(); /** *
     * The fully-qualified name that uniquely identifies the function or
     * method that is active in this frame.
     * 
* * .opencensus.proto.trace.v1.TruncatableString function_name = 1; */ io.opencensus.proto.trace.v1.TruncatableString getFunctionName(); /** *
     * The fully-qualified name that uniquely identifies the function or
     * method that is active in this frame.
     * 
* * .opencensus.proto.trace.v1.TruncatableString function_name = 1; */ io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getFunctionNameOrBuilder(); /** *
     * An un-mangled function name, if `function_name` is
     * [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
     * be fully qualified.
     * 
* * .opencensus.proto.trace.v1.TruncatableString original_function_name = 2; */ boolean hasOriginalFunctionName(); /** *
     * An un-mangled function name, if `function_name` is
     * [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
     * be fully qualified.
     * 
* * .opencensus.proto.trace.v1.TruncatableString original_function_name = 2; */ io.opencensus.proto.trace.v1.TruncatableString getOriginalFunctionName(); /** *
     * An un-mangled function name, if `function_name` is
     * [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
     * be fully qualified.
     * 
* * .opencensus.proto.trace.v1.TruncatableString original_function_name = 2; */ io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getOriginalFunctionNameOrBuilder(); /** *
     * The name of the source file where the function call appears.
     * 
* * .opencensus.proto.trace.v1.TruncatableString file_name = 3; */ boolean hasFileName(); /** *
     * The name of the source file where the function call appears.
     * 
* * .opencensus.proto.trace.v1.TruncatableString file_name = 3; */ io.opencensus.proto.trace.v1.TruncatableString getFileName(); /** *
     * The name of the source file where the function call appears.
     * 
* * .opencensus.proto.trace.v1.TruncatableString file_name = 3; */ io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getFileNameOrBuilder(); /** *
     * The line number in `file_name` where the function call appears.
     * 
* * int64 line_number = 4; */ long getLineNumber(); /** *
     * The column number where the function call appears, if available.
     * This is important in JavaScript because of its anonymous functions.
     * 
* * int64 column_number = 5; */ long getColumnNumber(); /** *
     * The binary module from where the code was loaded.
     * 
* * .opencensus.proto.trace.v1.Module load_module = 6; */ boolean hasLoadModule(); /** *
     * The binary module from where the code was loaded.
     * 
* * .opencensus.proto.trace.v1.Module load_module = 6; */ io.opencensus.proto.trace.v1.Module getLoadModule(); /** *
     * The binary module from where the code was loaded.
     * 
* * .opencensus.proto.trace.v1.Module load_module = 6; */ io.opencensus.proto.trace.v1.ModuleOrBuilder getLoadModuleOrBuilder(); /** *
     * The version of the deployed source code.
     * 
* * .opencensus.proto.trace.v1.TruncatableString source_version = 7; */ boolean hasSourceVersion(); /** *
     * The version of the deployed source code.
     * 
* * .opencensus.proto.trace.v1.TruncatableString source_version = 7; */ io.opencensus.proto.trace.v1.TruncatableString getSourceVersion(); /** *
     * The version of the deployed source code.
     * 
* * .opencensus.proto.trace.v1.TruncatableString source_version = 7; */ io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getSourceVersionOrBuilder(); } /** *
   * A single stack frame in a stack trace.
   * 
* * Protobuf type {@code opencensus.proto.trace.v1.StackTrace.StackFrame} */ public static final class StackFrame extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opencensus.proto.trace.v1.StackTrace.StackFrame) StackFrameOrBuilder { private static final long serialVersionUID = 0L; // Use StackFrame.newBuilder() to construct. private StackFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StackFrame() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StackFrame(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StackFrame( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.opencensus.proto.trace.v1.TruncatableString.Builder subBuilder = null; if (functionName_ != null) { subBuilder = functionName_.toBuilder(); } functionName_ = input.readMessage(io.opencensus.proto.trace.v1.TruncatableString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(functionName_); functionName_ = subBuilder.buildPartial(); } break; } case 18: { io.opencensus.proto.trace.v1.TruncatableString.Builder subBuilder = null; if (originalFunctionName_ != null) { subBuilder = originalFunctionName_.toBuilder(); } originalFunctionName_ = input.readMessage(io.opencensus.proto.trace.v1.TruncatableString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(originalFunctionName_); originalFunctionName_ = subBuilder.buildPartial(); } break; } case 26: { io.opencensus.proto.trace.v1.TruncatableString.Builder subBuilder = null; if (fileName_ != null) { subBuilder = fileName_.toBuilder(); } fileName_ = input.readMessage(io.opencensus.proto.trace.v1.TruncatableString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(fileName_); fileName_ = subBuilder.buildPartial(); } break; } case 32: { lineNumber_ = input.readInt64(); break; } case 40: { columnNumber_ = input.readInt64(); break; } case 50: { io.opencensus.proto.trace.v1.Module.Builder subBuilder = null; if (loadModule_ != null) { subBuilder = loadModule_.toBuilder(); } loadModule_ = input.readMessage(io.opencensus.proto.trace.v1.Module.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(loadModule_); loadModule_ = subBuilder.buildPartial(); } break; } case 58: { io.opencensus.proto.trace.v1.TruncatableString.Builder subBuilder = null; if (sourceVersion_ != null) { subBuilder = sourceVersion_.toBuilder(); } sourceVersion_ = input.readMessage(io.opencensus.proto.trace.v1.TruncatableString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sourceVersion_); sourceVersion_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_StackTrace_StackFrame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_StackTrace_StackFrame_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencensus.proto.trace.v1.StackTrace.StackFrame.class, io.opencensus.proto.trace.v1.StackTrace.StackFrame.Builder.class); } public static final int FUNCTION_NAME_FIELD_NUMBER = 1; private io.opencensus.proto.trace.v1.TruncatableString functionName_; /** *
     * The fully-qualified name that uniquely identifies the function or
     * method that is active in this frame.
     * 
* * .opencensus.proto.trace.v1.TruncatableString function_name = 1; */ public boolean hasFunctionName() { return functionName_ != null; } /** *
     * The fully-qualified name that uniquely identifies the function or
     * method that is active in this frame.
     * 
* * .opencensus.proto.trace.v1.TruncatableString function_name = 1; */ public io.opencensus.proto.trace.v1.TruncatableString getFunctionName() { return functionName_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : functionName_; } /** *
     * The fully-qualified name that uniquely identifies the function or
     * method that is active in this frame.
     * 
* * .opencensus.proto.trace.v1.TruncatableString function_name = 1; */ public io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getFunctionNameOrBuilder() { return getFunctionName(); } public static final int ORIGINAL_FUNCTION_NAME_FIELD_NUMBER = 2; private io.opencensus.proto.trace.v1.TruncatableString originalFunctionName_; /** *
     * An un-mangled function name, if `function_name` is
     * [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
     * be fully qualified.
     * 
* * .opencensus.proto.trace.v1.TruncatableString original_function_name = 2; */ public boolean hasOriginalFunctionName() { return originalFunctionName_ != null; } /** *
     * An un-mangled function name, if `function_name` is
     * [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
     * be fully qualified.
     * 
* * .opencensus.proto.trace.v1.TruncatableString original_function_name = 2; */ public io.opencensus.proto.trace.v1.TruncatableString getOriginalFunctionName() { return originalFunctionName_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : originalFunctionName_; } /** *
     * An un-mangled function name, if `function_name` is
     * [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
     * be fully qualified.
     * 
* * .opencensus.proto.trace.v1.TruncatableString original_function_name = 2; */ public io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getOriginalFunctionNameOrBuilder() { return getOriginalFunctionName(); } public static final int FILE_NAME_FIELD_NUMBER = 3; private io.opencensus.proto.trace.v1.TruncatableString fileName_; /** *
     * The name of the source file where the function call appears.
     * 
* * .opencensus.proto.trace.v1.TruncatableString file_name = 3; */ public boolean hasFileName() { return fileName_ != null; } /** *
     * The name of the source file where the function call appears.
     * 
* * .opencensus.proto.trace.v1.TruncatableString file_name = 3; */ public io.opencensus.proto.trace.v1.TruncatableString getFileName() { return fileName_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : fileName_; } /** *
     * The name of the source file where the function call appears.
     * 
* * .opencensus.proto.trace.v1.TruncatableString file_name = 3; */ public io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getFileNameOrBuilder() { return getFileName(); } public static final int LINE_NUMBER_FIELD_NUMBER = 4; private long lineNumber_; /** *
     * The line number in `file_name` where the function call appears.
     * 
* * int64 line_number = 4; */ public long getLineNumber() { return lineNumber_; } public static final int COLUMN_NUMBER_FIELD_NUMBER = 5; private long columnNumber_; /** *
     * The column number where the function call appears, if available.
     * This is important in JavaScript because of its anonymous functions.
     * 
* * int64 column_number = 5; */ public long getColumnNumber() { return columnNumber_; } public static final int LOAD_MODULE_FIELD_NUMBER = 6; private io.opencensus.proto.trace.v1.Module loadModule_; /** *
     * The binary module from where the code was loaded.
     * 
* * .opencensus.proto.trace.v1.Module load_module = 6; */ public boolean hasLoadModule() { return loadModule_ != null; } /** *
     * The binary module from where the code was loaded.
     * 
* * .opencensus.proto.trace.v1.Module load_module = 6; */ public io.opencensus.proto.trace.v1.Module getLoadModule() { return loadModule_ == null ? io.opencensus.proto.trace.v1.Module.getDefaultInstance() : loadModule_; } /** *
     * The binary module from where the code was loaded.
     * 
* * .opencensus.proto.trace.v1.Module load_module = 6; */ public io.opencensus.proto.trace.v1.ModuleOrBuilder getLoadModuleOrBuilder() { return getLoadModule(); } public static final int SOURCE_VERSION_FIELD_NUMBER = 7; private io.opencensus.proto.trace.v1.TruncatableString sourceVersion_; /** *
     * The version of the deployed source code.
     * 
* * .opencensus.proto.trace.v1.TruncatableString source_version = 7; */ public boolean hasSourceVersion() { return sourceVersion_ != null; } /** *
     * The version of the deployed source code.
     * 
* * .opencensus.proto.trace.v1.TruncatableString source_version = 7; */ public io.opencensus.proto.trace.v1.TruncatableString getSourceVersion() { return sourceVersion_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : sourceVersion_; } /** *
     * The version of the deployed source code.
     * 
* * .opencensus.proto.trace.v1.TruncatableString source_version = 7; */ public io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getSourceVersionOrBuilder() { return getSourceVersion(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (functionName_ != null) { output.writeMessage(1, getFunctionName()); } if (originalFunctionName_ != null) { output.writeMessage(2, getOriginalFunctionName()); } if (fileName_ != null) { output.writeMessage(3, getFileName()); } if (lineNumber_ != 0L) { output.writeInt64(4, lineNumber_); } if (columnNumber_ != 0L) { output.writeInt64(5, columnNumber_); } if (loadModule_ != null) { output.writeMessage(6, getLoadModule()); } if (sourceVersion_ != null) { output.writeMessage(7, getSourceVersion()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (functionName_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFunctionName()); } if (originalFunctionName_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOriginalFunctionName()); } if (fileName_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getFileName()); } if (lineNumber_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, lineNumber_); } if (columnNumber_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, columnNumber_); } if (loadModule_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getLoadModule()); } if (sourceVersion_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getSourceVersion()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.opencensus.proto.trace.v1.StackTrace.StackFrame)) { return super.equals(obj); } io.opencensus.proto.trace.v1.StackTrace.StackFrame other = (io.opencensus.proto.trace.v1.StackTrace.StackFrame) obj; if (hasFunctionName() != other.hasFunctionName()) return false; if (hasFunctionName()) { if (!getFunctionName() .equals(other.getFunctionName())) return false; } if (hasOriginalFunctionName() != other.hasOriginalFunctionName()) return false; if (hasOriginalFunctionName()) { if (!getOriginalFunctionName() .equals(other.getOriginalFunctionName())) return false; } if (hasFileName() != other.hasFileName()) return false; if (hasFileName()) { if (!getFileName() .equals(other.getFileName())) return false; } if (getLineNumber() != other.getLineNumber()) return false; if (getColumnNumber() != other.getColumnNumber()) return false; if (hasLoadModule() != other.hasLoadModule()) return false; if (hasLoadModule()) { if (!getLoadModule() .equals(other.getLoadModule())) return false; } if (hasSourceVersion() != other.hasSourceVersion()) return false; if (hasSourceVersion()) { if (!getSourceVersion() .equals(other.getSourceVersion())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFunctionName()) { hash = (37 * hash) + FUNCTION_NAME_FIELD_NUMBER; hash = (53 * hash) + getFunctionName().hashCode(); } if (hasOriginalFunctionName()) { hash = (37 * hash) + ORIGINAL_FUNCTION_NAME_FIELD_NUMBER; hash = (53 * hash) + getOriginalFunctionName().hashCode(); } if (hasFileName()) { hash = (37 * hash) + FILE_NAME_FIELD_NUMBER; hash = (53 * hash) + getFileName().hashCode(); } hash = (37 * hash) + LINE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLineNumber()); hash = (37 * hash) + COLUMN_NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getColumnNumber()); if (hasLoadModule()) { hash = (37 * hash) + LOAD_MODULE_FIELD_NUMBER; hash = (53 * hash) + getLoadModule().hashCode(); } if (hasSourceVersion()) { hash = (37 * hash) + SOURCE_VERSION_FIELD_NUMBER; hash = (53 * hash) + getSourceVersion().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.opencensus.proto.trace.v1.StackTrace.StackFrame parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrame parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrame parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrame parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrame parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrame parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrame parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrame parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrame parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrame parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrame parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrame parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.opencensus.proto.trace.v1.StackTrace.StackFrame prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A single stack frame in a stack trace.
     * 
* * Protobuf type {@code opencensus.proto.trace.v1.StackTrace.StackFrame} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opencensus.proto.trace.v1.StackTrace.StackFrame) io.opencensus.proto.trace.v1.StackTrace.StackFrameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_StackTrace_StackFrame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_StackTrace_StackFrame_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencensus.proto.trace.v1.StackTrace.StackFrame.class, io.opencensus.proto.trace.v1.StackTrace.StackFrame.Builder.class); } // Construct using io.opencensus.proto.trace.v1.StackTrace.StackFrame.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (functionNameBuilder_ == null) { functionName_ = null; } else { functionName_ = null; functionNameBuilder_ = null; } if (originalFunctionNameBuilder_ == null) { originalFunctionName_ = null; } else { originalFunctionName_ = null; originalFunctionNameBuilder_ = null; } if (fileNameBuilder_ == null) { fileName_ = null; } else { fileName_ = null; fileNameBuilder_ = null; } lineNumber_ = 0L; columnNumber_ = 0L; if (loadModuleBuilder_ == null) { loadModule_ = null; } else { loadModule_ = null; loadModuleBuilder_ = null; } if (sourceVersionBuilder_ == null) { sourceVersion_ = null; } else { sourceVersion_ = null; sourceVersionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_StackTrace_StackFrame_descriptor; } @java.lang.Override public io.opencensus.proto.trace.v1.StackTrace.StackFrame getDefaultInstanceForType() { return io.opencensus.proto.trace.v1.StackTrace.StackFrame.getDefaultInstance(); } @java.lang.Override public io.opencensus.proto.trace.v1.StackTrace.StackFrame build() { io.opencensus.proto.trace.v1.StackTrace.StackFrame result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opencensus.proto.trace.v1.StackTrace.StackFrame buildPartial() { io.opencensus.proto.trace.v1.StackTrace.StackFrame result = new io.opencensus.proto.trace.v1.StackTrace.StackFrame(this); if (functionNameBuilder_ == null) { result.functionName_ = functionName_; } else { result.functionName_ = functionNameBuilder_.build(); } if (originalFunctionNameBuilder_ == null) { result.originalFunctionName_ = originalFunctionName_; } else { result.originalFunctionName_ = originalFunctionNameBuilder_.build(); } if (fileNameBuilder_ == null) { result.fileName_ = fileName_; } else { result.fileName_ = fileNameBuilder_.build(); } result.lineNumber_ = lineNumber_; result.columnNumber_ = columnNumber_; if (loadModuleBuilder_ == null) { result.loadModule_ = loadModule_; } else { result.loadModule_ = loadModuleBuilder_.build(); } if (sourceVersionBuilder_ == null) { result.sourceVersion_ = sourceVersion_; } else { result.sourceVersion_ = sourceVersionBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.opencensus.proto.trace.v1.StackTrace.StackFrame) { return mergeFrom((io.opencensus.proto.trace.v1.StackTrace.StackFrame)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opencensus.proto.trace.v1.StackTrace.StackFrame other) { if (other == io.opencensus.proto.trace.v1.StackTrace.StackFrame.getDefaultInstance()) return this; if (other.hasFunctionName()) { mergeFunctionName(other.getFunctionName()); } if (other.hasOriginalFunctionName()) { mergeOriginalFunctionName(other.getOriginalFunctionName()); } if (other.hasFileName()) { mergeFileName(other.getFileName()); } if (other.getLineNumber() != 0L) { setLineNumber(other.getLineNumber()); } if (other.getColumnNumber() != 0L) { setColumnNumber(other.getColumnNumber()); } if (other.hasLoadModule()) { mergeLoadModule(other.getLoadModule()); } if (other.hasSourceVersion()) { mergeSourceVersion(other.getSourceVersion()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.opencensus.proto.trace.v1.StackTrace.StackFrame parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.opencensus.proto.trace.v1.StackTrace.StackFrame) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.opencensus.proto.trace.v1.TruncatableString functionName_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder> functionNameBuilder_; /** *
       * The fully-qualified name that uniquely identifies the function or
       * method that is active in this frame.
       * 
* * .opencensus.proto.trace.v1.TruncatableString function_name = 1; */ public boolean hasFunctionName() { return functionNameBuilder_ != null || functionName_ != null; } /** *
       * The fully-qualified name that uniquely identifies the function or
       * method that is active in this frame.
       * 
* * .opencensus.proto.trace.v1.TruncatableString function_name = 1; */ public io.opencensus.proto.trace.v1.TruncatableString getFunctionName() { if (functionNameBuilder_ == null) { return functionName_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : functionName_; } else { return functionNameBuilder_.getMessage(); } } /** *
       * The fully-qualified name that uniquely identifies the function or
       * method that is active in this frame.
       * 
* * .opencensus.proto.trace.v1.TruncatableString function_name = 1; */ public Builder setFunctionName(io.opencensus.proto.trace.v1.TruncatableString value) { if (functionNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } functionName_ = value; onChanged(); } else { functionNameBuilder_.setMessage(value); } return this; } /** *
       * The fully-qualified name that uniquely identifies the function or
       * method that is active in this frame.
       * 
* * .opencensus.proto.trace.v1.TruncatableString function_name = 1; */ public Builder setFunctionName( io.opencensus.proto.trace.v1.TruncatableString.Builder builderForValue) { if (functionNameBuilder_ == null) { functionName_ = builderForValue.build(); onChanged(); } else { functionNameBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The fully-qualified name that uniquely identifies the function or
       * method that is active in this frame.
       * 
* * .opencensus.proto.trace.v1.TruncatableString function_name = 1; */ public Builder mergeFunctionName(io.opencensus.proto.trace.v1.TruncatableString value) { if (functionNameBuilder_ == null) { if (functionName_ != null) { functionName_ = io.opencensus.proto.trace.v1.TruncatableString.newBuilder(functionName_).mergeFrom(value).buildPartial(); } else { functionName_ = value; } onChanged(); } else { functionNameBuilder_.mergeFrom(value); } return this; } /** *
       * The fully-qualified name that uniquely identifies the function or
       * method that is active in this frame.
       * 
* * .opencensus.proto.trace.v1.TruncatableString function_name = 1; */ public Builder clearFunctionName() { if (functionNameBuilder_ == null) { functionName_ = null; onChanged(); } else { functionName_ = null; functionNameBuilder_ = null; } return this; } /** *
       * The fully-qualified name that uniquely identifies the function or
       * method that is active in this frame.
       * 
* * .opencensus.proto.trace.v1.TruncatableString function_name = 1; */ public io.opencensus.proto.trace.v1.TruncatableString.Builder getFunctionNameBuilder() { onChanged(); return getFunctionNameFieldBuilder().getBuilder(); } /** *
       * The fully-qualified name that uniquely identifies the function or
       * method that is active in this frame.
       * 
* * .opencensus.proto.trace.v1.TruncatableString function_name = 1; */ public io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getFunctionNameOrBuilder() { if (functionNameBuilder_ != null) { return functionNameBuilder_.getMessageOrBuilder(); } else { return functionName_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : functionName_; } } /** *
       * The fully-qualified name that uniquely identifies the function or
       * method that is active in this frame.
       * 
* * .opencensus.proto.trace.v1.TruncatableString function_name = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder> getFunctionNameFieldBuilder() { if (functionNameBuilder_ == null) { functionNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder>( getFunctionName(), getParentForChildren(), isClean()); functionName_ = null; } return functionNameBuilder_; } private io.opencensus.proto.trace.v1.TruncatableString originalFunctionName_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder> originalFunctionNameBuilder_; /** *
       * An un-mangled function name, if `function_name` is
       * [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
       * be fully qualified.
       * 
* * .opencensus.proto.trace.v1.TruncatableString original_function_name = 2; */ public boolean hasOriginalFunctionName() { return originalFunctionNameBuilder_ != null || originalFunctionName_ != null; } /** *
       * An un-mangled function name, if `function_name` is
       * [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
       * be fully qualified.
       * 
* * .opencensus.proto.trace.v1.TruncatableString original_function_name = 2; */ public io.opencensus.proto.trace.v1.TruncatableString getOriginalFunctionName() { if (originalFunctionNameBuilder_ == null) { return originalFunctionName_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : originalFunctionName_; } else { return originalFunctionNameBuilder_.getMessage(); } } /** *
       * An un-mangled function name, if `function_name` is
       * [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
       * be fully qualified.
       * 
* * .opencensus.proto.trace.v1.TruncatableString original_function_name = 2; */ public Builder setOriginalFunctionName(io.opencensus.proto.trace.v1.TruncatableString value) { if (originalFunctionNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } originalFunctionName_ = value; onChanged(); } else { originalFunctionNameBuilder_.setMessage(value); } return this; } /** *
       * An un-mangled function name, if `function_name` is
       * [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
       * be fully qualified.
       * 
* * .opencensus.proto.trace.v1.TruncatableString original_function_name = 2; */ public Builder setOriginalFunctionName( io.opencensus.proto.trace.v1.TruncatableString.Builder builderForValue) { if (originalFunctionNameBuilder_ == null) { originalFunctionName_ = builderForValue.build(); onChanged(); } else { originalFunctionNameBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * An un-mangled function name, if `function_name` is
       * [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
       * be fully qualified.
       * 
* * .opencensus.proto.trace.v1.TruncatableString original_function_name = 2; */ public Builder mergeOriginalFunctionName(io.opencensus.proto.trace.v1.TruncatableString value) { if (originalFunctionNameBuilder_ == null) { if (originalFunctionName_ != null) { originalFunctionName_ = io.opencensus.proto.trace.v1.TruncatableString.newBuilder(originalFunctionName_).mergeFrom(value).buildPartial(); } else { originalFunctionName_ = value; } onChanged(); } else { originalFunctionNameBuilder_.mergeFrom(value); } return this; } /** *
       * An un-mangled function name, if `function_name` is
       * [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
       * be fully qualified.
       * 
* * .opencensus.proto.trace.v1.TruncatableString original_function_name = 2; */ public Builder clearOriginalFunctionName() { if (originalFunctionNameBuilder_ == null) { originalFunctionName_ = null; onChanged(); } else { originalFunctionName_ = null; originalFunctionNameBuilder_ = null; } return this; } /** *
       * An un-mangled function name, if `function_name` is
       * [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
       * be fully qualified.
       * 
* * .opencensus.proto.trace.v1.TruncatableString original_function_name = 2; */ public io.opencensus.proto.trace.v1.TruncatableString.Builder getOriginalFunctionNameBuilder() { onChanged(); return getOriginalFunctionNameFieldBuilder().getBuilder(); } /** *
       * An un-mangled function name, if `function_name` is
       * [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
       * be fully qualified.
       * 
* * .opencensus.proto.trace.v1.TruncatableString original_function_name = 2; */ public io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getOriginalFunctionNameOrBuilder() { if (originalFunctionNameBuilder_ != null) { return originalFunctionNameBuilder_.getMessageOrBuilder(); } else { return originalFunctionName_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : originalFunctionName_; } } /** *
       * An un-mangled function name, if `function_name` is
       * [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
       * be fully qualified.
       * 
* * .opencensus.proto.trace.v1.TruncatableString original_function_name = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder> getOriginalFunctionNameFieldBuilder() { if (originalFunctionNameBuilder_ == null) { originalFunctionNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder>( getOriginalFunctionName(), getParentForChildren(), isClean()); originalFunctionName_ = null; } return originalFunctionNameBuilder_; } private io.opencensus.proto.trace.v1.TruncatableString fileName_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder> fileNameBuilder_; /** *
       * The name of the source file where the function call appears.
       * 
* * .opencensus.proto.trace.v1.TruncatableString file_name = 3; */ public boolean hasFileName() { return fileNameBuilder_ != null || fileName_ != null; } /** *
       * The name of the source file where the function call appears.
       * 
* * .opencensus.proto.trace.v1.TruncatableString file_name = 3; */ public io.opencensus.proto.trace.v1.TruncatableString getFileName() { if (fileNameBuilder_ == null) { return fileName_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : fileName_; } else { return fileNameBuilder_.getMessage(); } } /** *
       * The name of the source file where the function call appears.
       * 
* * .opencensus.proto.trace.v1.TruncatableString file_name = 3; */ public Builder setFileName(io.opencensus.proto.trace.v1.TruncatableString value) { if (fileNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fileName_ = value; onChanged(); } else { fileNameBuilder_.setMessage(value); } return this; } /** *
       * The name of the source file where the function call appears.
       * 
* * .opencensus.proto.trace.v1.TruncatableString file_name = 3; */ public Builder setFileName( io.opencensus.proto.trace.v1.TruncatableString.Builder builderForValue) { if (fileNameBuilder_ == null) { fileName_ = builderForValue.build(); onChanged(); } else { fileNameBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The name of the source file where the function call appears.
       * 
* * .opencensus.proto.trace.v1.TruncatableString file_name = 3; */ public Builder mergeFileName(io.opencensus.proto.trace.v1.TruncatableString value) { if (fileNameBuilder_ == null) { if (fileName_ != null) { fileName_ = io.opencensus.proto.trace.v1.TruncatableString.newBuilder(fileName_).mergeFrom(value).buildPartial(); } else { fileName_ = value; } onChanged(); } else { fileNameBuilder_.mergeFrom(value); } return this; } /** *
       * The name of the source file where the function call appears.
       * 
* * .opencensus.proto.trace.v1.TruncatableString file_name = 3; */ public Builder clearFileName() { if (fileNameBuilder_ == null) { fileName_ = null; onChanged(); } else { fileName_ = null; fileNameBuilder_ = null; } return this; } /** *
       * The name of the source file where the function call appears.
       * 
* * .opencensus.proto.trace.v1.TruncatableString file_name = 3; */ public io.opencensus.proto.trace.v1.TruncatableString.Builder getFileNameBuilder() { onChanged(); return getFileNameFieldBuilder().getBuilder(); } /** *
       * The name of the source file where the function call appears.
       * 
* * .opencensus.proto.trace.v1.TruncatableString file_name = 3; */ public io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getFileNameOrBuilder() { if (fileNameBuilder_ != null) { return fileNameBuilder_.getMessageOrBuilder(); } else { return fileName_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : fileName_; } } /** *
       * The name of the source file where the function call appears.
       * 
* * .opencensus.proto.trace.v1.TruncatableString file_name = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder> getFileNameFieldBuilder() { if (fileNameBuilder_ == null) { fileNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder>( getFileName(), getParentForChildren(), isClean()); fileName_ = null; } return fileNameBuilder_; } private long lineNumber_ ; /** *
       * The line number in `file_name` where the function call appears.
       * 
* * int64 line_number = 4; */ public long getLineNumber() { return lineNumber_; } /** *
       * The line number in `file_name` where the function call appears.
       * 
* * int64 line_number = 4; */ public Builder setLineNumber(long value) { lineNumber_ = value; onChanged(); return this; } /** *
       * The line number in `file_name` where the function call appears.
       * 
* * int64 line_number = 4; */ public Builder clearLineNumber() { lineNumber_ = 0L; onChanged(); return this; } private long columnNumber_ ; /** *
       * The column number where the function call appears, if available.
       * This is important in JavaScript because of its anonymous functions.
       * 
* * int64 column_number = 5; */ public long getColumnNumber() { return columnNumber_; } /** *
       * The column number where the function call appears, if available.
       * This is important in JavaScript because of its anonymous functions.
       * 
* * int64 column_number = 5; */ public Builder setColumnNumber(long value) { columnNumber_ = value; onChanged(); return this; } /** *
       * The column number where the function call appears, if available.
       * This is important in JavaScript because of its anonymous functions.
       * 
* * int64 column_number = 5; */ public Builder clearColumnNumber() { columnNumber_ = 0L; onChanged(); return this; } private io.opencensus.proto.trace.v1.Module loadModule_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Module, io.opencensus.proto.trace.v1.Module.Builder, io.opencensus.proto.trace.v1.ModuleOrBuilder> loadModuleBuilder_; /** *
       * The binary module from where the code was loaded.
       * 
* * .opencensus.proto.trace.v1.Module load_module = 6; */ public boolean hasLoadModule() { return loadModuleBuilder_ != null || loadModule_ != null; } /** *
       * The binary module from where the code was loaded.
       * 
* * .opencensus.proto.trace.v1.Module load_module = 6; */ public io.opencensus.proto.trace.v1.Module getLoadModule() { if (loadModuleBuilder_ == null) { return loadModule_ == null ? io.opencensus.proto.trace.v1.Module.getDefaultInstance() : loadModule_; } else { return loadModuleBuilder_.getMessage(); } } /** *
       * The binary module from where the code was loaded.
       * 
* * .opencensus.proto.trace.v1.Module load_module = 6; */ public Builder setLoadModule(io.opencensus.proto.trace.v1.Module value) { if (loadModuleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } loadModule_ = value; onChanged(); } else { loadModuleBuilder_.setMessage(value); } return this; } /** *
       * The binary module from where the code was loaded.
       * 
* * .opencensus.proto.trace.v1.Module load_module = 6; */ public Builder setLoadModule( io.opencensus.proto.trace.v1.Module.Builder builderForValue) { if (loadModuleBuilder_ == null) { loadModule_ = builderForValue.build(); onChanged(); } else { loadModuleBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The binary module from where the code was loaded.
       * 
* * .opencensus.proto.trace.v1.Module load_module = 6; */ public Builder mergeLoadModule(io.opencensus.proto.trace.v1.Module value) { if (loadModuleBuilder_ == null) { if (loadModule_ != null) { loadModule_ = io.opencensus.proto.trace.v1.Module.newBuilder(loadModule_).mergeFrom(value).buildPartial(); } else { loadModule_ = value; } onChanged(); } else { loadModuleBuilder_.mergeFrom(value); } return this; } /** *
       * The binary module from where the code was loaded.
       * 
* * .opencensus.proto.trace.v1.Module load_module = 6; */ public Builder clearLoadModule() { if (loadModuleBuilder_ == null) { loadModule_ = null; onChanged(); } else { loadModule_ = null; loadModuleBuilder_ = null; } return this; } /** *
       * The binary module from where the code was loaded.
       * 
* * .opencensus.proto.trace.v1.Module load_module = 6; */ public io.opencensus.proto.trace.v1.Module.Builder getLoadModuleBuilder() { onChanged(); return getLoadModuleFieldBuilder().getBuilder(); } /** *
       * The binary module from where the code was loaded.
       * 
* * .opencensus.proto.trace.v1.Module load_module = 6; */ public io.opencensus.proto.trace.v1.ModuleOrBuilder getLoadModuleOrBuilder() { if (loadModuleBuilder_ != null) { return loadModuleBuilder_.getMessageOrBuilder(); } else { return loadModule_ == null ? io.opencensus.proto.trace.v1.Module.getDefaultInstance() : loadModule_; } } /** *
       * The binary module from where the code was loaded.
       * 
* * .opencensus.proto.trace.v1.Module load_module = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Module, io.opencensus.proto.trace.v1.Module.Builder, io.opencensus.proto.trace.v1.ModuleOrBuilder> getLoadModuleFieldBuilder() { if (loadModuleBuilder_ == null) { loadModuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Module, io.opencensus.proto.trace.v1.Module.Builder, io.opencensus.proto.trace.v1.ModuleOrBuilder>( getLoadModule(), getParentForChildren(), isClean()); loadModule_ = null; } return loadModuleBuilder_; } private io.opencensus.proto.trace.v1.TruncatableString sourceVersion_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder> sourceVersionBuilder_; /** *
       * The version of the deployed source code.
       * 
* * .opencensus.proto.trace.v1.TruncatableString source_version = 7; */ public boolean hasSourceVersion() { return sourceVersionBuilder_ != null || sourceVersion_ != null; } /** *
       * The version of the deployed source code.
       * 
* * .opencensus.proto.trace.v1.TruncatableString source_version = 7; */ public io.opencensus.proto.trace.v1.TruncatableString getSourceVersion() { if (sourceVersionBuilder_ == null) { return sourceVersion_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : sourceVersion_; } else { return sourceVersionBuilder_.getMessage(); } } /** *
       * The version of the deployed source code.
       * 
* * .opencensus.proto.trace.v1.TruncatableString source_version = 7; */ public Builder setSourceVersion(io.opencensus.proto.trace.v1.TruncatableString value) { if (sourceVersionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sourceVersion_ = value; onChanged(); } else { sourceVersionBuilder_.setMessage(value); } return this; } /** *
       * The version of the deployed source code.
       * 
* * .opencensus.proto.trace.v1.TruncatableString source_version = 7; */ public Builder setSourceVersion( io.opencensus.proto.trace.v1.TruncatableString.Builder builderForValue) { if (sourceVersionBuilder_ == null) { sourceVersion_ = builderForValue.build(); onChanged(); } else { sourceVersionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The version of the deployed source code.
       * 
* * .opencensus.proto.trace.v1.TruncatableString source_version = 7; */ public Builder mergeSourceVersion(io.opencensus.proto.trace.v1.TruncatableString value) { if (sourceVersionBuilder_ == null) { if (sourceVersion_ != null) { sourceVersion_ = io.opencensus.proto.trace.v1.TruncatableString.newBuilder(sourceVersion_).mergeFrom(value).buildPartial(); } else { sourceVersion_ = value; } onChanged(); } else { sourceVersionBuilder_.mergeFrom(value); } return this; } /** *
       * The version of the deployed source code.
       * 
* * .opencensus.proto.trace.v1.TruncatableString source_version = 7; */ public Builder clearSourceVersion() { if (sourceVersionBuilder_ == null) { sourceVersion_ = null; onChanged(); } else { sourceVersion_ = null; sourceVersionBuilder_ = null; } return this; } /** *
       * The version of the deployed source code.
       * 
* * .opencensus.proto.trace.v1.TruncatableString source_version = 7; */ public io.opencensus.proto.trace.v1.TruncatableString.Builder getSourceVersionBuilder() { onChanged(); return getSourceVersionFieldBuilder().getBuilder(); } /** *
       * The version of the deployed source code.
       * 
* * .opencensus.proto.trace.v1.TruncatableString source_version = 7; */ public io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getSourceVersionOrBuilder() { if (sourceVersionBuilder_ != null) { return sourceVersionBuilder_.getMessageOrBuilder(); } else { return sourceVersion_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : sourceVersion_; } } /** *
       * The version of the deployed source code.
       * 
* * .opencensus.proto.trace.v1.TruncatableString source_version = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder> getSourceVersionFieldBuilder() { if (sourceVersionBuilder_ == null) { sourceVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder>( getSourceVersion(), getParentForChildren(), isClean()); sourceVersion_ = null; } return sourceVersionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:opencensus.proto.trace.v1.StackTrace.StackFrame) } // @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.StackTrace.StackFrame) private static final io.opencensus.proto.trace.v1.StackTrace.StackFrame DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opencensus.proto.trace.v1.StackTrace.StackFrame(); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrame getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StackFrame parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StackFrame(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.opencensus.proto.trace.v1.StackTrace.StackFrame getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StackFramesOrBuilder extends // @@protoc_insertion_point(interface_extends:opencensus.proto.trace.v1.StackTrace.StackFrames) com.google.protobuf.MessageOrBuilder { /** *
     * Stack frames in this call stack.
     * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ java.util.List getFrameList(); /** *
     * Stack frames in this call stack.
     * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ io.opencensus.proto.trace.v1.StackTrace.StackFrame getFrame(int index); /** *
     * Stack frames in this call stack.
     * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ int getFrameCount(); /** *
     * Stack frames in this call stack.
     * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ java.util.List getFrameOrBuilderList(); /** *
     * Stack frames in this call stack.
     * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ io.opencensus.proto.trace.v1.StackTrace.StackFrameOrBuilder getFrameOrBuilder( int index); /** *
     * The number of stack frames that were dropped because there
     * were too many stack frames.
     * If this value is 0, then no stack frames were dropped.
     * 
* * int32 dropped_frames_count = 2; */ int getDroppedFramesCount(); } /** *
   * A collection of stack frames, which can be truncated.
   * 
* * Protobuf type {@code opencensus.proto.trace.v1.StackTrace.StackFrames} */ public static final class StackFrames extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opencensus.proto.trace.v1.StackTrace.StackFrames) StackFramesOrBuilder { private static final long serialVersionUID = 0L; // Use StackFrames.newBuilder() to construct. private StackFrames(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StackFrames() { frame_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StackFrames(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StackFrames( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { frame_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } frame_.add( input.readMessage(io.opencensus.proto.trace.v1.StackTrace.StackFrame.parser(), extensionRegistry)); break; } case 16: { droppedFramesCount_ = input.readInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { frame_ = java.util.Collections.unmodifiableList(frame_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_StackTrace_StackFrames_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_StackTrace_StackFrames_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencensus.proto.trace.v1.StackTrace.StackFrames.class, io.opencensus.proto.trace.v1.StackTrace.StackFrames.Builder.class); } public static final int FRAME_FIELD_NUMBER = 1; private java.util.List frame_; /** *
     * Stack frames in this call stack.
     * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public java.util.List getFrameList() { return frame_; } /** *
     * Stack frames in this call stack.
     * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public java.util.List getFrameOrBuilderList() { return frame_; } /** *
     * Stack frames in this call stack.
     * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public int getFrameCount() { return frame_.size(); } /** *
     * Stack frames in this call stack.
     * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public io.opencensus.proto.trace.v1.StackTrace.StackFrame getFrame(int index) { return frame_.get(index); } /** *
     * Stack frames in this call stack.
     * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public io.opencensus.proto.trace.v1.StackTrace.StackFrameOrBuilder getFrameOrBuilder( int index) { return frame_.get(index); } public static final int DROPPED_FRAMES_COUNT_FIELD_NUMBER = 2; private int droppedFramesCount_; /** *
     * The number of stack frames that were dropped because there
     * were too many stack frames.
     * If this value is 0, then no stack frames were dropped.
     * 
* * int32 dropped_frames_count = 2; */ public int getDroppedFramesCount() { return droppedFramesCount_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < frame_.size(); i++) { output.writeMessage(1, frame_.get(i)); } if (droppedFramesCount_ != 0) { output.writeInt32(2, droppedFramesCount_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < frame_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, frame_.get(i)); } if (droppedFramesCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, droppedFramesCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.opencensus.proto.trace.v1.StackTrace.StackFrames)) { return super.equals(obj); } io.opencensus.proto.trace.v1.StackTrace.StackFrames other = (io.opencensus.proto.trace.v1.StackTrace.StackFrames) obj; if (!getFrameList() .equals(other.getFrameList())) return false; if (getDroppedFramesCount() != other.getDroppedFramesCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getFrameCount() > 0) { hash = (37 * hash) + FRAME_FIELD_NUMBER; hash = (53 * hash) + getFrameList().hashCode(); } hash = (37 * hash) + DROPPED_FRAMES_COUNT_FIELD_NUMBER; hash = (53 * hash) + getDroppedFramesCount(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.opencensus.proto.trace.v1.StackTrace.StackFrames parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrames parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrames parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrames parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrames parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrames parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrames parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrames parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrames parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrames parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrames parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrames parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.opencensus.proto.trace.v1.StackTrace.StackFrames prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * A collection of stack frames, which can be truncated.
     * 
* * Protobuf type {@code opencensus.proto.trace.v1.StackTrace.StackFrames} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opencensus.proto.trace.v1.StackTrace.StackFrames) io.opencensus.proto.trace.v1.StackTrace.StackFramesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_StackTrace_StackFrames_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_StackTrace_StackFrames_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencensus.proto.trace.v1.StackTrace.StackFrames.class, io.opencensus.proto.trace.v1.StackTrace.StackFrames.Builder.class); } // Construct using io.opencensus.proto.trace.v1.StackTrace.StackFrames.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFrameFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (frameBuilder_ == null) { frame_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { frameBuilder_.clear(); } droppedFramesCount_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_StackTrace_StackFrames_descriptor; } @java.lang.Override public io.opencensus.proto.trace.v1.StackTrace.StackFrames getDefaultInstanceForType() { return io.opencensus.proto.trace.v1.StackTrace.StackFrames.getDefaultInstance(); } @java.lang.Override public io.opencensus.proto.trace.v1.StackTrace.StackFrames build() { io.opencensus.proto.trace.v1.StackTrace.StackFrames result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opencensus.proto.trace.v1.StackTrace.StackFrames buildPartial() { io.opencensus.proto.trace.v1.StackTrace.StackFrames result = new io.opencensus.proto.trace.v1.StackTrace.StackFrames(this); int from_bitField0_ = bitField0_; if (frameBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { frame_ = java.util.Collections.unmodifiableList(frame_); bitField0_ = (bitField0_ & ~0x00000001); } result.frame_ = frame_; } else { result.frame_ = frameBuilder_.build(); } result.droppedFramesCount_ = droppedFramesCount_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.opencensus.proto.trace.v1.StackTrace.StackFrames) { return mergeFrom((io.opencensus.proto.trace.v1.StackTrace.StackFrames)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opencensus.proto.trace.v1.StackTrace.StackFrames other) { if (other == io.opencensus.proto.trace.v1.StackTrace.StackFrames.getDefaultInstance()) return this; if (frameBuilder_ == null) { if (!other.frame_.isEmpty()) { if (frame_.isEmpty()) { frame_ = other.frame_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFrameIsMutable(); frame_.addAll(other.frame_); } onChanged(); } } else { if (!other.frame_.isEmpty()) { if (frameBuilder_.isEmpty()) { frameBuilder_.dispose(); frameBuilder_ = null; frame_ = other.frame_; bitField0_ = (bitField0_ & ~0x00000001); frameBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFrameFieldBuilder() : null; } else { frameBuilder_.addAllMessages(other.frame_); } } } if (other.getDroppedFramesCount() != 0) { setDroppedFramesCount(other.getDroppedFramesCount()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.opencensus.proto.trace.v1.StackTrace.StackFrames parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.opencensus.proto.trace.v1.StackTrace.StackFrames) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List frame_ = java.util.Collections.emptyList(); private void ensureFrameIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { frame_ = new java.util.ArrayList(frame_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opencensus.proto.trace.v1.StackTrace.StackFrame, io.opencensus.proto.trace.v1.StackTrace.StackFrame.Builder, io.opencensus.proto.trace.v1.StackTrace.StackFrameOrBuilder> frameBuilder_; /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public java.util.List getFrameList() { if (frameBuilder_ == null) { return java.util.Collections.unmodifiableList(frame_); } else { return frameBuilder_.getMessageList(); } } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public int getFrameCount() { if (frameBuilder_ == null) { return frame_.size(); } else { return frameBuilder_.getCount(); } } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public io.opencensus.proto.trace.v1.StackTrace.StackFrame getFrame(int index) { if (frameBuilder_ == null) { return frame_.get(index); } else { return frameBuilder_.getMessage(index); } } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public Builder setFrame( int index, io.opencensus.proto.trace.v1.StackTrace.StackFrame value) { if (frameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrameIsMutable(); frame_.set(index, value); onChanged(); } else { frameBuilder_.setMessage(index, value); } return this; } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public Builder setFrame( int index, io.opencensus.proto.trace.v1.StackTrace.StackFrame.Builder builderForValue) { if (frameBuilder_ == null) { ensureFrameIsMutable(); frame_.set(index, builderForValue.build()); onChanged(); } else { frameBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public Builder addFrame(io.opencensus.proto.trace.v1.StackTrace.StackFrame value) { if (frameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrameIsMutable(); frame_.add(value); onChanged(); } else { frameBuilder_.addMessage(value); } return this; } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public Builder addFrame( int index, io.opencensus.proto.trace.v1.StackTrace.StackFrame value) { if (frameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFrameIsMutable(); frame_.add(index, value); onChanged(); } else { frameBuilder_.addMessage(index, value); } return this; } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public Builder addFrame( io.opencensus.proto.trace.v1.StackTrace.StackFrame.Builder builderForValue) { if (frameBuilder_ == null) { ensureFrameIsMutable(); frame_.add(builderForValue.build()); onChanged(); } else { frameBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public Builder addFrame( int index, io.opencensus.proto.trace.v1.StackTrace.StackFrame.Builder builderForValue) { if (frameBuilder_ == null) { ensureFrameIsMutable(); frame_.add(index, builderForValue.build()); onChanged(); } else { frameBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public Builder addAllFrame( java.lang.Iterable values) { if (frameBuilder_ == null) { ensureFrameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, frame_); onChanged(); } else { frameBuilder_.addAllMessages(values); } return this; } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public Builder clearFrame() { if (frameBuilder_ == null) { frame_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { frameBuilder_.clear(); } return this; } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public Builder removeFrame(int index) { if (frameBuilder_ == null) { ensureFrameIsMutable(); frame_.remove(index); onChanged(); } else { frameBuilder_.remove(index); } return this; } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public io.opencensus.proto.trace.v1.StackTrace.StackFrame.Builder getFrameBuilder( int index) { return getFrameFieldBuilder().getBuilder(index); } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public io.opencensus.proto.trace.v1.StackTrace.StackFrameOrBuilder getFrameOrBuilder( int index) { if (frameBuilder_ == null) { return frame_.get(index); } else { return frameBuilder_.getMessageOrBuilder(index); } } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public java.util.List getFrameOrBuilderList() { if (frameBuilder_ != null) { return frameBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(frame_); } } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public io.opencensus.proto.trace.v1.StackTrace.StackFrame.Builder addFrameBuilder() { return getFrameFieldBuilder().addBuilder( io.opencensus.proto.trace.v1.StackTrace.StackFrame.getDefaultInstance()); } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public io.opencensus.proto.trace.v1.StackTrace.StackFrame.Builder addFrameBuilder( int index) { return getFrameFieldBuilder().addBuilder( index, io.opencensus.proto.trace.v1.StackTrace.StackFrame.getDefaultInstance()); } /** *
       * Stack frames in this call stack.
       * 
* * repeated .opencensus.proto.trace.v1.StackTrace.StackFrame frame = 1; */ public java.util.List getFrameBuilderList() { return getFrameFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opencensus.proto.trace.v1.StackTrace.StackFrame, io.opencensus.proto.trace.v1.StackTrace.StackFrame.Builder, io.opencensus.proto.trace.v1.StackTrace.StackFrameOrBuilder> getFrameFieldBuilder() { if (frameBuilder_ == null) { frameBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opencensus.proto.trace.v1.StackTrace.StackFrame, io.opencensus.proto.trace.v1.StackTrace.StackFrame.Builder, io.opencensus.proto.trace.v1.StackTrace.StackFrameOrBuilder>( frame_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); frame_ = null; } return frameBuilder_; } private int droppedFramesCount_ ; /** *
       * The number of stack frames that were dropped because there
       * were too many stack frames.
       * If this value is 0, then no stack frames were dropped.
       * 
* * int32 dropped_frames_count = 2; */ public int getDroppedFramesCount() { return droppedFramesCount_; } /** *
       * The number of stack frames that were dropped because there
       * were too many stack frames.
       * If this value is 0, then no stack frames were dropped.
       * 
* * int32 dropped_frames_count = 2; */ public Builder setDroppedFramesCount(int value) { droppedFramesCount_ = value; onChanged(); return this; } /** *
       * The number of stack frames that were dropped because there
       * were too many stack frames.
       * If this value is 0, then no stack frames were dropped.
       * 
* * int32 dropped_frames_count = 2; */ public Builder clearDroppedFramesCount() { droppedFramesCount_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:opencensus.proto.trace.v1.StackTrace.StackFrames) } // @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.StackTrace.StackFrames) private static final io.opencensus.proto.trace.v1.StackTrace.StackFrames DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opencensus.proto.trace.v1.StackTrace.StackFrames(); } public static io.opencensus.proto.trace.v1.StackTrace.StackFrames getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StackFrames parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StackFrames(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.opencensus.proto.trace.v1.StackTrace.StackFrames getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int STACK_FRAMES_FIELD_NUMBER = 1; private io.opencensus.proto.trace.v1.StackTrace.StackFrames stackFrames_; /** *
   * Stack frames in this stack trace.
   * 
* * .opencensus.proto.trace.v1.StackTrace.StackFrames stack_frames = 1; */ public boolean hasStackFrames() { return stackFrames_ != null; } /** *
   * Stack frames in this stack trace.
   * 
* * .opencensus.proto.trace.v1.StackTrace.StackFrames stack_frames = 1; */ public io.opencensus.proto.trace.v1.StackTrace.StackFrames getStackFrames() { return stackFrames_ == null ? io.opencensus.proto.trace.v1.StackTrace.StackFrames.getDefaultInstance() : stackFrames_; } /** *
   * Stack frames in this stack trace.
   * 
* * .opencensus.proto.trace.v1.StackTrace.StackFrames stack_frames = 1; */ public io.opencensus.proto.trace.v1.StackTrace.StackFramesOrBuilder getStackFramesOrBuilder() { return getStackFrames(); } public static final int STACK_TRACE_HASH_ID_FIELD_NUMBER = 2; private long stackTraceHashId_; /** *
   * The hash ID is used to conserve network bandwidth for duplicate
   * stack traces within a single trace.
   * Often multiple spans will have identical stack traces.
   * The first occurrence of a stack trace should contain both
   * `stack_frames` and a value in `stack_trace_hash_id`.
   * Subsequent spans within the same request can refer
   * to that stack trace by setting only `stack_trace_hash_id`.
   * TODO: describe how to deal with the case where stack_trace_hash_id is
   * zero because it was not set.
   * 
* * uint64 stack_trace_hash_id = 2; */ public long getStackTraceHashId() { return stackTraceHashId_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (stackFrames_ != null) { output.writeMessage(1, getStackFrames()); } if (stackTraceHashId_ != 0L) { output.writeUInt64(2, stackTraceHashId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (stackFrames_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStackFrames()); } if (stackTraceHashId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, stackTraceHashId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.opencensus.proto.trace.v1.StackTrace)) { return super.equals(obj); } io.opencensus.proto.trace.v1.StackTrace other = (io.opencensus.proto.trace.v1.StackTrace) obj; if (hasStackFrames() != other.hasStackFrames()) return false; if (hasStackFrames()) { if (!getStackFrames() .equals(other.getStackFrames())) return false; } if (getStackTraceHashId() != other.getStackTraceHashId()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStackFrames()) { hash = (37 * hash) + STACK_FRAMES_FIELD_NUMBER; hash = (53 * hash) + getStackFrames().hashCode(); } hash = (37 * hash) + STACK_TRACE_HASH_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getStackTraceHashId()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.opencensus.proto.trace.v1.StackTrace parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.StackTrace parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencensus.proto.trace.v1.StackTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.StackTrace parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencensus.proto.trace.v1.StackTrace parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.StackTrace parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencensus.proto.trace.v1.StackTrace parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opencensus.proto.trace.v1.StackTrace parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.opencensus.proto.trace.v1.StackTrace parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.opencensus.proto.trace.v1.StackTrace parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.opencensus.proto.trace.v1.StackTrace parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opencensus.proto.trace.v1.StackTrace parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.opencensus.proto.trace.v1.StackTrace prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * The call stack which originated this span.
   * 
* * Protobuf type {@code opencensus.proto.trace.v1.StackTrace} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opencensus.proto.trace.v1.StackTrace) io.opencensus.proto.trace.v1.StackTraceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_StackTrace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_StackTrace_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencensus.proto.trace.v1.StackTrace.class, io.opencensus.proto.trace.v1.StackTrace.Builder.class); } // Construct using io.opencensus.proto.trace.v1.StackTrace.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (stackFramesBuilder_ == null) { stackFrames_ = null; } else { stackFrames_ = null; stackFramesBuilder_ = null; } stackTraceHashId_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_StackTrace_descriptor; } @java.lang.Override public io.opencensus.proto.trace.v1.StackTrace getDefaultInstanceForType() { return io.opencensus.proto.trace.v1.StackTrace.getDefaultInstance(); } @java.lang.Override public io.opencensus.proto.trace.v1.StackTrace build() { io.opencensus.proto.trace.v1.StackTrace result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opencensus.proto.trace.v1.StackTrace buildPartial() { io.opencensus.proto.trace.v1.StackTrace result = new io.opencensus.proto.trace.v1.StackTrace(this); if (stackFramesBuilder_ == null) { result.stackFrames_ = stackFrames_; } else { result.stackFrames_ = stackFramesBuilder_.build(); } result.stackTraceHashId_ = stackTraceHashId_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.opencensus.proto.trace.v1.StackTrace) { return mergeFrom((io.opencensus.proto.trace.v1.StackTrace)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opencensus.proto.trace.v1.StackTrace other) { if (other == io.opencensus.proto.trace.v1.StackTrace.getDefaultInstance()) return this; if (other.hasStackFrames()) { mergeStackFrames(other.getStackFrames()); } if (other.getStackTraceHashId() != 0L) { setStackTraceHashId(other.getStackTraceHashId()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.opencensus.proto.trace.v1.StackTrace parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.opencensus.proto.trace.v1.StackTrace) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.opencensus.proto.trace.v1.StackTrace.StackFrames stackFrames_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.StackTrace.StackFrames, io.opencensus.proto.trace.v1.StackTrace.StackFrames.Builder, io.opencensus.proto.trace.v1.StackTrace.StackFramesOrBuilder> stackFramesBuilder_; /** *
     * Stack frames in this stack trace.
     * 
* * .opencensus.proto.trace.v1.StackTrace.StackFrames stack_frames = 1; */ public boolean hasStackFrames() { return stackFramesBuilder_ != null || stackFrames_ != null; } /** *
     * Stack frames in this stack trace.
     * 
* * .opencensus.proto.trace.v1.StackTrace.StackFrames stack_frames = 1; */ public io.opencensus.proto.trace.v1.StackTrace.StackFrames getStackFrames() { if (stackFramesBuilder_ == null) { return stackFrames_ == null ? io.opencensus.proto.trace.v1.StackTrace.StackFrames.getDefaultInstance() : stackFrames_; } else { return stackFramesBuilder_.getMessage(); } } /** *
     * Stack frames in this stack trace.
     * 
* * .opencensus.proto.trace.v1.StackTrace.StackFrames stack_frames = 1; */ public Builder setStackFrames(io.opencensus.proto.trace.v1.StackTrace.StackFrames value) { if (stackFramesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stackFrames_ = value; onChanged(); } else { stackFramesBuilder_.setMessage(value); } return this; } /** *
     * Stack frames in this stack trace.
     * 
* * .opencensus.proto.trace.v1.StackTrace.StackFrames stack_frames = 1; */ public Builder setStackFrames( io.opencensus.proto.trace.v1.StackTrace.StackFrames.Builder builderForValue) { if (stackFramesBuilder_ == null) { stackFrames_ = builderForValue.build(); onChanged(); } else { stackFramesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Stack frames in this stack trace.
     * 
* * .opencensus.proto.trace.v1.StackTrace.StackFrames stack_frames = 1; */ public Builder mergeStackFrames(io.opencensus.proto.trace.v1.StackTrace.StackFrames value) { if (stackFramesBuilder_ == null) { if (stackFrames_ != null) { stackFrames_ = io.opencensus.proto.trace.v1.StackTrace.StackFrames.newBuilder(stackFrames_).mergeFrom(value).buildPartial(); } else { stackFrames_ = value; } onChanged(); } else { stackFramesBuilder_.mergeFrom(value); } return this; } /** *
     * Stack frames in this stack trace.
     * 
* * .opencensus.proto.trace.v1.StackTrace.StackFrames stack_frames = 1; */ public Builder clearStackFrames() { if (stackFramesBuilder_ == null) { stackFrames_ = null; onChanged(); } else { stackFrames_ = null; stackFramesBuilder_ = null; } return this; } /** *
     * Stack frames in this stack trace.
     * 
* * .opencensus.proto.trace.v1.StackTrace.StackFrames stack_frames = 1; */ public io.opencensus.proto.trace.v1.StackTrace.StackFrames.Builder getStackFramesBuilder() { onChanged(); return getStackFramesFieldBuilder().getBuilder(); } /** *
     * Stack frames in this stack trace.
     * 
* * .opencensus.proto.trace.v1.StackTrace.StackFrames stack_frames = 1; */ public io.opencensus.proto.trace.v1.StackTrace.StackFramesOrBuilder getStackFramesOrBuilder() { if (stackFramesBuilder_ != null) { return stackFramesBuilder_.getMessageOrBuilder(); } else { return stackFrames_ == null ? io.opencensus.proto.trace.v1.StackTrace.StackFrames.getDefaultInstance() : stackFrames_; } } /** *
     * Stack frames in this stack trace.
     * 
* * .opencensus.proto.trace.v1.StackTrace.StackFrames stack_frames = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.StackTrace.StackFrames, io.opencensus.proto.trace.v1.StackTrace.StackFrames.Builder, io.opencensus.proto.trace.v1.StackTrace.StackFramesOrBuilder> getStackFramesFieldBuilder() { if (stackFramesBuilder_ == null) { stackFramesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.StackTrace.StackFrames, io.opencensus.proto.trace.v1.StackTrace.StackFrames.Builder, io.opencensus.proto.trace.v1.StackTrace.StackFramesOrBuilder>( getStackFrames(), getParentForChildren(), isClean()); stackFrames_ = null; } return stackFramesBuilder_; } private long stackTraceHashId_ ; /** *
     * The hash ID is used to conserve network bandwidth for duplicate
     * stack traces within a single trace.
     * Often multiple spans will have identical stack traces.
     * The first occurrence of a stack trace should contain both
     * `stack_frames` and a value in `stack_trace_hash_id`.
     * Subsequent spans within the same request can refer
     * to that stack trace by setting only `stack_trace_hash_id`.
     * TODO: describe how to deal with the case where stack_trace_hash_id is
     * zero because it was not set.
     * 
* * uint64 stack_trace_hash_id = 2; */ public long getStackTraceHashId() { return stackTraceHashId_; } /** *
     * The hash ID is used to conserve network bandwidth for duplicate
     * stack traces within a single trace.
     * Often multiple spans will have identical stack traces.
     * The first occurrence of a stack trace should contain both
     * `stack_frames` and a value in `stack_trace_hash_id`.
     * Subsequent spans within the same request can refer
     * to that stack trace by setting only `stack_trace_hash_id`.
     * TODO: describe how to deal with the case where stack_trace_hash_id is
     * zero because it was not set.
     * 
* * uint64 stack_trace_hash_id = 2; */ public Builder setStackTraceHashId(long value) { stackTraceHashId_ = value; onChanged(); return this; } /** *
     * The hash ID is used to conserve network bandwidth for duplicate
     * stack traces within a single trace.
     * Often multiple spans will have identical stack traces.
     * The first occurrence of a stack trace should contain both
     * `stack_frames` and a value in `stack_trace_hash_id`.
     * Subsequent spans within the same request can refer
     * to that stack trace by setting only `stack_trace_hash_id`.
     * TODO: describe how to deal with the case where stack_trace_hash_id is
     * zero because it was not set.
     * 
* * uint64 stack_trace_hash_id = 2; */ public Builder clearStackTraceHashId() { stackTraceHashId_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:opencensus.proto.trace.v1.StackTrace) } // @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.StackTrace) private static final io.opencensus.proto.trace.v1.StackTrace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opencensus.proto.trace.v1.StackTrace(); } public static io.opencensus.proto.trace.v1.StackTrace getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StackTrace parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StackTrace(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.opencensus.proto.trace.v1.StackTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy