Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// 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.
*
* 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.
*
*
* 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_;
/**
*
*
* .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_;
/**
*
* 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.
*
* 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;
}
}