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;
/**
*
* A span represents a single operation within a trace. Spans can be
* nested to form a trace tree. Spans may also be linked to other spans
* from the same or different trace. And form graphs. Often, a trace
* contains a root span that describes the end-to-end latency, and one
* or more subspans for its sub-operations. A trace can also contain
* multiple root spans, or none at all. Spans do not need to be
* contiguous - there may be gaps or overlaps between spans in a trace.
* The next id is 17.
* TODO(bdrutu): Add an example.
*
*
* Protobuf type {@code opencensus.proto.trace.v1.Span}
*/
public final class Span extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opencensus.proto.trace.v1.Span)
SpanOrBuilder {
private static final long serialVersionUID = 0L;
// Use Span.newBuilder() to construct.
private Span(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Span() {
traceId_ = com.google.protobuf.ByteString.EMPTY;
spanId_ = com.google.protobuf.ByteString.EMPTY;
parentSpanId_ = com.google.protobuf.ByteString.EMPTY;
kind_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Span();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Span(
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: {
traceId_ = input.readBytes();
break;
}
case 18: {
spanId_ = input.readBytes();
break;
}
case 26: {
parentSpanId_ = input.readBytes();
break;
}
case 34: {
io.opencensus.proto.trace.v1.TruncatableString.Builder subBuilder = null;
if (name_ != null) {
subBuilder = name_.toBuilder();
}
name_ = input.readMessage(io.opencensus.proto.trace.v1.TruncatableString.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(name_);
name_ = subBuilder.buildPartial();
}
break;
}
case 42: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (startTime_ != null) {
subBuilder = startTime_.toBuilder();
}
startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(startTime_);
startTime_ = subBuilder.buildPartial();
}
break;
}
case 50: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (endTime_ != null) {
subBuilder = endTime_.toBuilder();
}
endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(endTime_);
endTime_ = subBuilder.buildPartial();
}
break;
}
case 58: {
io.opencensus.proto.trace.v1.Span.Attributes.Builder subBuilder = null;
if (attributes_ != null) {
subBuilder = attributes_.toBuilder();
}
attributes_ = input.readMessage(io.opencensus.proto.trace.v1.Span.Attributes.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(attributes_);
attributes_ = subBuilder.buildPartial();
}
break;
}
case 66: {
io.opencensus.proto.trace.v1.StackTrace.Builder subBuilder = null;
if (stackTrace_ != null) {
subBuilder = stackTrace_.toBuilder();
}
stackTrace_ = input.readMessage(io.opencensus.proto.trace.v1.StackTrace.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(stackTrace_);
stackTrace_ = subBuilder.buildPartial();
}
break;
}
case 74: {
io.opencensus.proto.trace.v1.Span.TimeEvents.Builder subBuilder = null;
if (timeEvents_ != null) {
subBuilder = timeEvents_.toBuilder();
}
timeEvents_ = input.readMessage(io.opencensus.proto.trace.v1.Span.TimeEvents.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timeEvents_);
timeEvents_ = subBuilder.buildPartial();
}
break;
}
case 82: {
io.opencensus.proto.trace.v1.Span.Links.Builder subBuilder = null;
if (links_ != null) {
subBuilder = links_.toBuilder();
}
links_ = input.readMessage(io.opencensus.proto.trace.v1.Span.Links.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(links_);
links_ = subBuilder.buildPartial();
}
break;
}
case 90: {
io.opencensus.proto.trace.v1.Status.Builder subBuilder = null;
if (status_ != null) {
subBuilder = status_.toBuilder();
}
status_ = input.readMessage(io.opencensus.proto.trace.v1.Status.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
break;
}
case 98: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (sameProcessAsParentSpan_ != null) {
subBuilder = sameProcessAsParentSpan_.toBuilder();
}
sameProcessAsParentSpan_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sameProcessAsParentSpan_);
sameProcessAsParentSpan_ = subBuilder.buildPartial();
}
break;
}
case 106: {
com.google.protobuf.UInt32Value.Builder subBuilder = null;
if (childSpanCount_ != null) {
subBuilder = childSpanCount_.toBuilder();
}
childSpanCount_ = input.readMessage(com.google.protobuf.UInt32Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(childSpanCount_);
childSpanCount_ = subBuilder.buildPartial();
}
break;
}
case 112: {
int rawValue = input.readEnum();
kind_ = rawValue;
break;
}
case 122: {
io.opencensus.proto.trace.v1.Span.Tracestate.Builder subBuilder = null;
if (tracestate_ != null) {
subBuilder = tracestate_.toBuilder();
}
tracestate_ = input.readMessage(io.opencensus.proto.trace.v1.Span.Tracestate.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tracestate_);
tracestate_ = subBuilder.buildPartial();
}
break;
}
case 130: {
io.opencensus.proto.resource.v1.Resource.Builder subBuilder = null;
if (resource_ != null) {
subBuilder = resource_.toBuilder();
}
resource_ = input.readMessage(io.opencensus.proto.resource.v1.Resource.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resource_);
resource_ = 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_Span_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencensus.proto.trace.v1.Span.class, io.opencensus.proto.trace.v1.Span.Builder.class);
}
/**
*
* Type of span. Can be used to specify additional relationships between spans
* in addition to a parent/child relationship.
*
*
* SPAN_KIND_UNSPECIFIED = 0;
*/
public static final int SPAN_KIND_UNSPECIFIED_VALUE = 0;
/**
*
* Indicates that the span covers server-side handling of an RPC or other
* remote network request.
*
*
* SERVER = 1;
*/
public static final int SERVER_VALUE = 1;
/**
*
* Indicates that the span covers the client-side wrapper around an RPC or
* other remote request.
*
*
* CLIENT = 2;
*/
public static final int CLIENT_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SpanKind valueOf(int value) {
return forNumber(value);
}
public static SpanKind forNumber(int value) {
switch (value) {
case 0: return SPAN_KIND_UNSPECIFIED;
case 1: return SERVER;
case 2: return CLIENT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SpanKind> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SpanKind findValueByNumber(int number) {
return SpanKind.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.opencensus.proto.trace.v1.Span.getDescriptor().getEnumTypes().get(0);
}
private static final SpanKind[] VALUES = values();
public static SpanKind valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private SpanKind(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:opencensus.proto.trace.v1.Span.SpanKind)
}
public interface TracestateOrBuilder extends
// @@protoc_insertion_point(interface_extends:opencensus.proto.trace.v1.Span.Tracestate)
com.google.protobuf.MessageOrBuilder {
/**
*
* A list of entries that represent the Tracestate.
*
* This field conveys information about request position in multiple distributed tracing graphs.
* It is a list of Tracestate.Entry with a maximum of 32 members in the list.
* See the https://github.com/w3c/distributed-tracing for more details about this field.
*
*
* Protobuf type {@code opencensus.proto.trace.v1.Span.Tracestate}
*/
public static final class Tracestate extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opencensus.proto.trace.v1.Span.Tracestate)
TracestateOrBuilder {
private static final long serialVersionUID = 0L;
// Use Tracestate.newBuilder() to construct.
private Tracestate(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Tracestate() {
entries_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Tracestate();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Tracestate(
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)) {
entries_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
entries_.add(
input.readMessage(io.opencensus.proto.trace.v1.Span.Tracestate.Entry.parser(), extensionRegistry));
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)) {
entries_ = java.util.Collections.unmodifiableList(entries_);
}
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_Span_Tracestate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_Tracestate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencensus.proto.trace.v1.Span.Tracestate.class, io.opencensus.proto.trace.v1.Span.Tracestate.Builder.class);
}
public interface EntryOrBuilder extends
// @@protoc_insertion_point(interface_extends:opencensus.proto.trace.v1.Span.Tracestate.Entry)
com.google.protobuf.MessageOrBuilder {
/**
*
* The key must begin with a lowercase letter, and can only contain
* lowercase letters 'a'-'z', digits '0'-'9', underscores '_', dashes
* '-', asterisks '*', and forward slashes '/'.
*
* The key must begin with a lowercase letter, and can only contain
* lowercase letters 'a'-'z', digits '0'-'9', underscores '_', dashes
* '-', asterisks '*', and forward slashes '/'.
*
* The value is opaque string up to 256 characters printable ASCII
* RFC0020 characters (i.e., the range 0x20 to 0x7E) except ',' and '='.
* Note that this also excludes tabs, newlines, carriage returns, etc.
*
* The value is opaque string up to 256 characters printable ASCII
* RFC0020 characters (i.e., the range 0x20 to 0x7E) except ',' and '='.
* Note that this also excludes tabs, newlines, carriage returns, etc.
*
*
* string value = 2;
*/
com.google.protobuf.ByteString
getValueBytes();
}
/**
* Protobuf type {@code opencensus.proto.trace.v1.Span.Tracestate.Entry}
*/
public static final class Entry extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opencensus.proto.trace.v1.Span.Tracestate.Entry)
EntryOrBuilder {
private static final long serialVersionUID = 0L;
// Use Entry.newBuilder() to construct.
private Entry(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Entry() {
key_ = "";
value_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Entry();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Entry(
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: {
java.lang.String s = input.readStringRequireUtf8();
key_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
value_ = s;
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_Span_Tracestate_Entry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_Tracestate_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencensus.proto.trace.v1.Span.Tracestate.Entry.class, io.opencensus.proto.trace.v1.Span.Tracestate.Entry.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
*
* The key must begin with a lowercase letter, and can only contain
* lowercase letters 'a'-'z', digits '0'-'9', underscores '_', dashes
* '-', asterisks '*', and forward slashes '/'.
*
* The key must begin with a lowercase letter, and can only contain
* lowercase letters 'a'-'z', digits '0'-'9', underscores '_', dashes
* '-', asterisks '*', and forward slashes '/'.
*
*
* string key = 1;
*/
public com.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private volatile java.lang.Object value_;
/**
*
* The value is opaque string up to 256 characters printable ASCII
* RFC0020 characters (i.e., the range 0x20 to 0x7E) except ',' and '='.
* Note that this also excludes tabs, newlines, carriage returns, etc.
*
* The value is opaque string up to 256 characters printable ASCII
* RFC0020 characters (i.e., the range 0x20 to 0x7E) except ',' and '='.
* Note that this also excludes tabs, newlines, carriage returns, etc.
*
*
* string value = 2;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (!getValueBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (!getValueBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
}
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.Span.Tracestate.Entry)) {
return super.equals(obj);
}
io.opencensus.proto.trace.v1.Span.Tracestate.Entry other = (io.opencensus.proto.trace.v1.Span.Tracestate.Entry) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (!getValue()
.equals(other.getValue())) 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();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opencensus.proto.trace.v1.Span.Tracestate.Entry parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencensus.proto.trace.v1.Span.Tracestate.Entry 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.Span.Tracestate.Entry parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencensus.proto.trace.v1.Span.Tracestate.Entry 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.Span.Tracestate.Entry parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencensus.proto.trace.v1.Span.Tracestate.Entry 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.Span.Tracestate.Entry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opencensus.proto.trace.v1.Span.Tracestate.Entry 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.Span.Tracestate.Entry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opencensus.proto.trace.v1.Span.Tracestate.Entry 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.Span.Tracestate.Entry 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.Span.Tracestate.Entry 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.Span.Tracestate.Entry prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code opencensus.proto.trace.v1.Span.Tracestate.Entry}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:opencensus.proto.trace.v1.Span.Tracestate.Entry)
io.opencensus.proto.trace.v1.Span.Tracestate.EntryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_Tracestate_Entry_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_Tracestate_Entry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencensus.proto.trace.v1.Span.Tracestate.Entry.class, io.opencensus.proto.trace.v1.Span.Tracestate.Entry.Builder.class);
}
// Construct using io.opencensus.proto.trace.v1.Span.Tracestate.Entry.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();
key_ = "";
value_ = "";
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_Span_Tracestate_Entry_descriptor;
}
@java.lang.Override
public io.opencensus.proto.trace.v1.Span.Tracestate.Entry getDefaultInstanceForType() {
return io.opencensus.proto.trace.v1.Span.Tracestate.Entry.getDefaultInstance();
}
@java.lang.Override
public io.opencensus.proto.trace.v1.Span.Tracestate.Entry build() {
io.opencensus.proto.trace.v1.Span.Tracestate.Entry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.opencensus.proto.trace.v1.Span.Tracestate.Entry buildPartial() {
io.opencensus.proto.trace.v1.Span.Tracestate.Entry result = new io.opencensus.proto.trace.v1.Span.Tracestate.Entry(this);
result.key_ = key_;
result.value_ = value_;
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.Span.Tracestate.Entry) {
return mergeFrom((io.opencensus.proto.trace.v1.Span.Tracestate.Entry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.opencensus.proto.trace.v1.Span.Tracestate.Entry other) {
if (other == io.opencensus.proto.trace.v1.Span.Tracestate.Entry.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (!other.getValue().isEmpty()) {
value_ = other.value_;
onChanged();
}
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.Span.Tracestate.Entry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.opencensus.proto.trace.v1.Span.Tracestate.Entry) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object key_ = "";
/**
*
* The key must begin with a lowercase letter, and can only contain
* lowercase letters 'a'-'z', digits '0'-'9', underscores '_', dashes
* '-', asterisks '*', and forward slashes '/'.
*
* The key must begin with a lowercase letter, and can only contain
* lowercase letters 'a'-'z', digits '0'-'9', underscores '_', dashes
* '-', asterisks '*', and forward slashes '/'.
*
* The key must begin with a lowercase letter, and can only contain
* lowercase letters 'a'-'z', digits '0'-'9', underscores '_', dashes
* '-', asterisks '*', and forward slashes '/'.
*
* The key must begin with a lowercase letter, and can only contain
* lowercase letters 'a'-'z', digits '0'-'9', underscores '_', dashes
* '-', asterisks '*', and forward slashes '/'.
*
* The key must begin with a lowercase letter, and can only contain
* lowercase letters 'a'-'z', digits '0'-'9', underscores '_', dashes
* '-', asterisks '*', and forward slashes '/'.
*
* The value is opaque string up to 256 characters printable ASCII
* RFC0020 characters (i.e., the range 0x20 to 0x7E) except ',' and '='.
* Note that this also excludes tabs, newlines, carriage returns, etc.
*
* The value is opaque string up to 256 characters printable ASCII
* RFC0020 characters (i.e., the range 0x20 to 0x7E) except ',' and '='.
* Note that this also excludes tabs, newlines, carriage returns, etc.
*
* The value is opaque string up to 256 characters printable ASCII
* RFC0020 characters (i.e., the range 0x20 to 0x7E) except ',' and '='.
* Note that this also excludes tabs, newlines, carriage returns, etc.
*
*
* string value = 2;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
*
* The value is opaque string up to 256 characters printable ASCII
* RFC0020 characters (i.e., the range 0x20 to 0x7E) except ',' and '='.
* Note that this also excludes tabs, newlines, carriage returns, etc.
*
*
* string value = 2;
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
*
* The value is opaque string up to 256 characters printable ASCII
* RFC0020 characters (i.e., the range 0x20 to 0x7E) except ',' and '='.
* Note that this also excludes tabs, newlines, carriage returns, etc.
*
*
* string value = 2;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
value_ = value;
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.Span.Tracestate.Entry)
}
// @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.Span.Tracestate.Entry)
private static final io.opencensus.proto.trace.v1.Span.Tracestate.Entry DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.opencensus.proto.trace.v1.Span.Tracestate.Entry();
}
public static io.opencensus.proto.trace.v1.Span.Tracestate.Entry getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Entry parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Entry(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.Span.Tracestate.Entry getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ENTRIES_FIELD_NUMBER = 1;
private java.util.List entries_;
/**
*
* A list of entries that represent the Tracestate.
*
* A list of entries that represent the Tracestate.
*
*
* repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1;
*/
public io.opencensus.proto.trace.v1.Span.Tracestate.EntryOrBuilder getEntriesOrBuilder(
int index) {
return entries_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < entries_.size(); i++) {
output.writeMessage(1, entries_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < entries_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, entries_.get(i));
}
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.Span.Tracestate)) {
return super.equals(obj);
}
io.opencensus.proto.trace.v1.Span.Tracestate other = (io.opencensus.proto.trace.v1.Span.Tracestate) obj;
if (!getEntriesList()
.equals(other.getEntriesList())) 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 (getEntriesCount() > 0) {
hash = (37 * hash) + ENTRIES_FIELD_NUMBER;
hash = (53 * hash) + getEntriesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opencensus.proto.trace.v1.Span.Tracestate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencensus.proto.trace.v1.Span.Tracestate 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.Span.Tracestate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencensus.proto.trace.v1.Span.Tracestate 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.Span.Tracestate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencensus.proto.trace.v1.Span.Tracestate 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.Span.Tracestate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opencensus.proto.trace.v1.Span.Tracestate 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.Span.Tracestate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opencensus.proto.trace.v1.Span.Tracestate 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.Span.Tracestate 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.Span.Tracestate 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.Span.Tracestate prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* This field conveys information about request position in multiple distributed tracing graphs.
* It is a list of Tracestate.Entry with a maximum of 32 members in the list.
* See the https://github.com/w3c/distributed-tracing for more details about this field.
*
*
* Protobuf type {@code opencensus.proto.trace.v1.Span.Tracestate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:opencensus.proto.trace.v1.Span.Tracestate)
io.opencensus.proto.trace.v1.Span.TracestateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_Tracestate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_Tracestate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencensus.proto.trace.v1.Span.Tracestate.class, io.opencensus.proto.trace.v1.Span.Tracestate.Builder.class);
}
// Construct using io.opencensus.proto.trace.v1.Span.Tracestate.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEntriesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (entriesBuilder_ == null) {
entries_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
entriesBuilder_.clear();
}
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_Span_Tracestate_descriptor;
}
@java.lang.Override
public io.opencensus.proto.trace.v1.Span.Tracestate getDefaultInstanceForType() {
return io.opencensus.proto.trace.v1.Span.Tracestate.getDefaultInstance();
}
@java.lang.Override
public io.opencensus.proto.trace.v1.Span.Tracestate build() {
io.opencensus.proto.trace.v1.Span.Tracestate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.opencensus.proto.trace.v1.Span.Tracestate buildPartial() {
io.opencensus.proto.trace.v1.Span.Tracestate result = new io.opencensus.proto.trace.v1.Span.Tracestate(this);
int from_bitField0_ = bitField0_;
if (entriesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
entries_ = java.util.Collections.unmodifiableList(entries_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.entries_ = entries_;
} else {
result.entries_ = entriesBuilder_.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.Span.Tracestate) {
return mergeFrom((io.opencensus.proto.trace.v1.Span.Tracestate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.opencensus.proto.trace.v1.Span.Tracestate other) {
if (other == io.opencensus.proto.trace.v1.Span.Tracestate.getDefaultInstance()) return this;
if (entriesBuilder_ == null) {
if (!other.entries_.isEmpty()) {
if (entries_.isEmpty()) {
entries_ = other.entries_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEntriesIsMutable();
entries_.addAll(other.entries_);
}
onChanged();
}
} else {
if (!other.entries_.isEmpty()) {
if (entriesBuilder_.isEmpty()) {
entriesBuilder_.dispose();
entriesBuilder_ = null;
entries_ = other.entries_;
bitField0_ = (bitField0_ & ~0x00000001);
entriesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEntriesFieldBuilder() : null;
} else {
entriesBuilder_.addAllMessages(other.entries_);
}
}
}
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.Span.Tracestate parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.opencensus.proto.trace.v1.Span.Tracestate) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List entries_ =
java.util.Collections.emptyList();
private void ensureEntriesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
entries_ = new java.util.ArrayList(entries_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.opencensus.proto.trace.v1.Span.Tracestate.Entry, io.opencensus.proto.trace.v1.Span.Tracestate.Entry.Builder, io.opencensus.proto.trace.v1.Span.Tracestate.EntryOrBuilder> entriesBuilder_;
/**
*
* A list of entries that represent the Tracestate.
*
* A list of entries that represent the Tracestate.
*
*
* repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1;
*/
public java.util.List
getEntriesBuilderList() {
return getEntriesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.opencensus.proto.trace.v1.Span.Tracestate.Entry, io.opencensus.proto.trace.v1.Span.Tracestate.Entry.Builder, io.opencensus.proto.trace.v1.Span.Tracestate.EntryOrBuilder>
getEntriesFieldBuilder() {
if (entriesBuilder_ == null) {
entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.opencensus.proto.trace.v1.Span.Tracestate.Entry, io.opencensus.proto.trace.v1.Span.Tracestate.Entry.Builder, io.opencensus.proto.trace.v1.Span.Tracestate.EntryOrBuilder>(
entries_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
entries_ = null;
}
return entriesBuilder_;
}
@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.Span.Tracestate)
}
// @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.Span.Tracestate)
private static final io.opencensus.proto.trace.v1.Span.Tracestate DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.opencensus.proto.trace.v1.Span.Tracestate();
}
public static io.opencensus.proto.trace.v1.Span.Tracestate getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Tracestate parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Tracestate(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.Span.Tracestate getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AttributesOrBuilder extends
// @@protoc_insertion_point(interface_extends:opencensus.proto.trace.v1.Span.Attributes)
com.google.protobuf.MessageOrBuilder {
/**
*
* The set of attributes. The value can be a string, an integer, a double
* or the Boolean values `true` or `false`. Note, global attributes like
* server name can be set as tags using resource API. Examples of attributes:
* "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
* "/http/server_latency": 300
* "abc.com/myattribute": true
* "abc.com/score": 10.239
*
* The set of attributes. The value can be a string, an integer, a double
* or the Boolean values `true` or `false`. Note, global attributes like
* server name can be set as tags using resource API. Examples of attributes:
* "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
* "/http/server_latency": 300
* "abc.com/myattribute": true
* "abc.com/score": 10.239
*
* The set of attributes. The value can be a string, an integer, a double
* or the Boolean values `true` or `false`. Note, global attributes like
* server name can be set as tags using resource API. Examples of attributes:
* "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
* "/http/server_latency": 300
* "abc.com/myattribute": true
* "abc.com/score": 10.239
*
* The set of attributes. The value can be a string, an integer, a double
* or the Boolean values `true` or `false`. Note, global attributes like
* server name can be set as tags using resource API. Examples of attributes:
* "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
* "/http/server_latency": 300
* "abc.com/myattribute": true
* "abc.com/score": 10.239
*
* The set of attributes. The value can be a string, an integer, a double
* or the Boolean values `true` or `false`. Note, global attributes like
* server name can be set as tags using resource API. Examples of attributes:
* "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
* "/http/server_latency": 300
* "abc.com/myattribute": true
* "abc.com/score": 10.239
*
* The number of attributes that were discarded. Attributes can be discarded
* because their keys are too long or because there are too many attributes.
* If this value is 0, then no attributes were dropped.
*
* A set of attributes, each with a key and a value.
*
*
* Protobuf type {@code opencensus.proto.trace.v1.Span.Attributes}
*/
public static final class Attributes extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opencensus.proto.trace.v1.Span.Attributes)
AttributesOrBuilder {
private static final long serialVersionUID = 0L;
// Use Attributes.newBuilder() to construct.
private Attributes(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Attributes() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Attributes();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Attributes(
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)) {
attributeMap_ = com.google.protobuf.MapField.newMapField(
AttributeMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
attributeMap__ = input.readMessage(
AttributeMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
attributeMap_.getMutableMap().put(
attributeMap__.getKey(), attributeMap__.getValue());
break;
}
case 16: {
droppedAttributesCount_ = 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 {
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_Span_Attributes_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetAttributeMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_Attributes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencensus.proto.trace.v1.Span.Attributes.class, io.opencensus.proto.trace.v1.Span.Attributes.Builder.class);
}
public static final int ATTRIBUTE_MAP_FIELD_NUMBER = 1;
private static final class AttributeMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, io.opencensus.proto.trace.v1.AttributeValue> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_Attributes_AttributeMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
io.opencensus.proto.trace.v1.AttributeValue.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, io.opencensus.proto.trace.v1.AttributeValue> attributeMap_;
private com.google.protobuf.MapField
internalGetAttributeMap() {
if (attributeMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AttributeMapDefaultEntryHolder.defaultEntry);
}
return attributeMap_;
}
public int getAttributeMapCount() {
return internalGetAttributeMap().getMap().size();
}
/**
*
* The set of attributes. The value can be a string, an integer, a double
* or the Boolean values `true` or `false`. Note, global attributes like
* server name can be set as tags using resource API. Examples of attributes:
* "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
* "/http/server_latency": 300
* "abc.com/myattribute": true
* "abc.com/score": 10.239
*
*
* map<string, .opencensus.proto.trace.v1.AttributeValue> attribute_map = 1;
*/
public boolean containsAttributeMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetAttributeMap().getMap().containsKey(key);
}
/**
* Use {@link #getAttributeMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getAttributeMap() {
return getAttributeMapMap();
}
/**
*
* The set of attributes. The value can be a string, an integer, a double
* or the Boolean values `true` or `false`. Note, global attributes like
* server name can be set as tags using resource API. Examples of attributes:
* "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
* "/http/server_latency": 300
* "abc.com/myattribute": true
* "abc.com/score": 10.239
*
* The set of attributes. The value can be a string, an integer, a double
* or the Boolean values `true` or `false`. Note, global attributes like
* server name can be set as tags using resource API. Examples of attributes:
* "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
* "/http/server_latency": 300
* "abc.com/myattribute": true
* "abc.com/score": 10.239
*
* The set of attributes. The value can be a string, an integer, a double
* or the Boolean values `true` or `false`. Note, global attributes like
* server name can be set as tags using resource API. Examples of attributes:
* "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
* "/http/server_latency": 300
* "abc.com/myattribute": true
* "abc.com/score": 10.239
*
*
* map<string, .opencensus.proto.trace.v1.AttributeValue> attribute_map = 1;
*/
public io.opencensus.proto.trace.v1.AttributeValue getAttributeMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAttributeMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER = 2;
private int droppedAttributesCount_;
/**
*
* The number of attributes that were discarded. Attributes can be discarded
* because their keys are too long or because there are too many attributes.
* If this value is 0, then no attributes were dropped.
*
* A set of attributes, each with a key and a value.
*
*
* Protobuf type {@code opencensus.proto.trace.v1.Span.Attributes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:opencensus.proto.trace.v1.Span.Attributes)
io.opencensus.proto.trace.v1.Span.AttributesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_Attributes_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetAttributeMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableAttributeMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_Attributes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencensus.proto.trace.v1.Span.Attributes.class, io.opencensus.proto.trace.v1.Span.Attributes.Builder.class);
}
// Construct using io.opencensus.proto.trace.v1.Span.Attributes.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();
internalGetMutableAttributeMap().clear();
droppedAttributesCount_ = 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_Span_Attributes_descriptor;
}
@java.lang.Override
public io.opencensus.proto.trace.v1.Span.Attributes getDefaultInstanceForType() {
return io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance();
}
@java.lang.Override
public io.opencensus.proto.trace.v1.Span.Attributes build() {
io.opencensus.proto.trace.v1.Span.Attributes result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.opencensus.proto.trace.v1.Span.Attributes buildPartial() {
io.opencensus.proto.trace.v1.Span.Attributes result = new io.opencensus.proto.trace.v1.Span.Attributes(this);
int from_bitField0_ = bitField0_;
result.attributeMap_ = internalGetAttributeMap();
result.attributeMap_.makeImmutable();
result.droppedAttributesCount_ = droppedAttributesCount_;
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.Span.Attributes) {
return mergeFrom((io.opencensus.proto.trace.v1.Span.Attributes)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.opencensus.proto.trace.v1.Span.Attributes other) {
if (other == io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance()) return this;
internalGetMutableAttributeMap().mergeFrom(
other.internalGetAttributeMap());
if (other.getDroppedAttributesCount() != 0) {
setDroppedAttributesCount(other.getDroppedAttributesCount());
}
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.Span.Attributes parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.opencensus.proto.trace.v1.Span.Attributes) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.String, io.opencensus.proto.trace.v1.AttributeValue> attributeMap_;
private com.google.protobuf.MapField
internalGetAttributeMap() {
if (attributeMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AttributeMapDefaultEntryHolder.defaultEntry);
}
return attributeMap_;
}
private com.google.protobuf.MapField
internalGetMutableAttributeMap() {
onChanged();;
if (attributeMap_ == null) {
attributeMap_ = com.google.protobuf.MapField.newMapField(
AttributeMapDefaultEntryHolder.defaultEntry);
}
if (!attributeMap_.isMutable()) {
attributeMap_ = attributeMap_.copy();
}
return attributeMap_;
}
public int getAttributeMapCount() {
return internalGetAttributeMap().getMap().size();
}
/**
*
* The set of attributes. The value can be a string, an integer, a double
* or the Boolean values `true` or `false`. Note, global attributes like
* server name can be set as tags using resource API. Examples of attributes:
* "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
* "/http/server_latency": 300
* "abc.com/myattribute": true
* "abc.com/score": 10.239
*
*
* map<string, .opencensus.proto.trace.v1.AttributeValue> attribute_map = 1;
*/
public boolean containsAttributeMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetAttributeMap().getMap().containsKey(key);
}
/**
* Use {@link #getAttributeMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getAttributeMap() {
return getAttributeMapMap();
}
/**
*
* The set of attributes. The value can be a string, an integer, a double
* or the Boolean values `true` or `false`. Note, global attributes like
* server name can be set as tags using resource API. Examples of attributes:
* "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
* "/http/server_latency": 300
* "abc.com/myattribute": true
* "abc.com/score": 10.239
*
* The set of attributes. The value can be a string, an integer, a double
* or the Boolean values `true` or `false`. Note, global attributes like
* server name can be set as tags using resource API. Examples of attributes:
* "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
* "/http/server_latency": 300
* "abc.com/myattribute": true
* "abc.com/score": 10.239
*
* The set of attributes. The value can be a string, an integer, a double
* or the Boolean values `true` or `false`. Note, global attributes like
* server name can be set as tags using resource API. Examples of attributes:
* "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
* "/http/server_latency": 300
* "abc.com/myattribute": true
* "abc.com/score": 10.239
*
*
* map<string, .opencensus.proto.trace.v1.AttributeValue> attribute_map = 1;
*/
public io.opencensus.proto.trace.v1.AttributeValue getAttributeMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetAttributeMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearAttributeMap() {
internalGetMutableAttributeMap().getMutableMap()
.clear();
return this;
}
/**
*
* The set of attributes. The value can be a string, an integer, a double
* or the Boolean values `true` or `false`. Note, global attributes like
* server name can be set as tags using resource API. Examples of attributes:
* "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
* "/http/server_latency": 300
* "abc.com/myattribute": true
* "abc.com/score": 10.239
*
*
* map<string, .opencensus.proto.trace.v1.AttributeValue> attribute_map = 1;
*/
public Builder removeAttributeMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableAttributeMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableAttributeMap() {
return internalGetMutableAttributeMap().getMutableMap();
}
/**
*
* The set of attributes. The value can be a string, an integer, a double
* or the Boolean values `true` or `false`. Note, global attributes like
* server name can be set as tags using resource API. Examples of attributes:
* "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
* "/http/server_latency": 300
* "abc.com/myattribute": true
* "abc.com/score": 10.239
*
*
* map<string, .opencensus.proto.trace.v1.AttributeValue> attribute_map = 1;
*/
public Builder putAttributeMap(
java.lang.String key,
io.opencensus.proto.trace.v1.AttributeValue value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableAttributeMap().getMutableMap()
.put(key, value);
return this;
}
/**
*
* The set of attributes. The value can be a string, an integer, a double
* or the Boolean values `true` or `false`. Note, global attributes like
* server name can be set as tags using resource API. Examples of attributes:
* "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
* "/http/server_latency": 300
* "abc.com/myattribute": true
* "abc.com/score": 10.239
*
* The number of attributes that were discarded. Attributes can be discarded
* because their keys are too long or because there are too many attributes.
* If this value is 0, then no attributes were dropped.
*
*
* int32 dropped_attributes_count = 2;
*/
public int getDroppedAttributesCount() {
return droppedAttributesCount_;
}
/**
*
* The number of attributes that were discarded. Attributes can be discarded
* because their keys are too long or because there are too many attributes.
* If this value is 0, then no attributes were dropped.
*
* The number of attributes that were discarded. Attributes can be discarded
* because their keys are too long or because there are too many attributes.
* If this value is 0, then no attributes were dropped.
*
*
* int32 dropped_attributes_count = 2;
*/
public Builder clearDroppedAttributesCount() {
droppedAttributesCount_ = 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.Span.Attributes)
}
// @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.Span.Attributes)
private static final io.opencensus.proto.trace.v1.Span.Attributes DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.opencensus.proto.trace.v1.Span.Attributes();
}
public static io.opencensus.proto.trace.v1.Span.Attributes getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Attributes parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Attributes(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.Span.Attributes getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TimeEventOrBuilder extends
// @@protoc_insertion_point(interface_extends:opencensus.proto.trace.v1.Span.TimeEvent)
com.google.protobuf.MessageOrBuilder {
/**
*
* An identifier for the MessageEvent's message that can be used to match
* SENT and RECEIVED MessageEvents. For example, this field could
* represent a sequence ID for a streaming RPC. It is recommended to be
* unique within a Span.
*
*
* uint64 id = 2;
*/
long getId();
/**
*
* The number of uncompressed bytes sent or received.
*
*
* TYPE_UNSPECIFIED = 0;
*/
public static final int TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* Indicates a sent message.
*
*
* SENT = 1;
*/
public static final int SENT_VALUE = 1;
/**
*
* Indicates a received message.
*
*
* RECEIVED = 2;
*/
public static final int RECEIVED_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
public static Type forNumber(int value) {
switch (value) {
case 0: return TYPE_UNSPECIFIED;
case 1: return SENT;
case 2: return RECEIVED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type)
}
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
*
* The type of MessageEvent. Indicates whether the message was sent or
* received.
*
*
* .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type type = 1;
*/
public int getTypeValue() {
return type_;
}
/**
*
* The type of MessageEvent. Indicates whether the message was sent or
* received.
*
*
* .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type type = 1;
*/
public io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type getType() {
@SuppressWarnings("deprecation")
io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type result = io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type.valueOf(type_);
return result == null ? io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type.UNRECOGNIZED : result;
}
public static final int ID_FIELD_NUMBER = 2;
private long id_;
/**
*
* An identifier for the MessageEvent's message that can be used to match
* SENT and RECEIVED MessageEvents. For example, this field could
* represent a sequence ID for a streaming RPC. It is recommended to be
* unique within a Span.
*
*
* uint64 id = 2;
*/
public long getId() {
return id_;
}
public static final int UNCOMPRESSED_SIZE_FIELD_NUMBER = 3;
private long uncompressedSize_;
/**
*
* The number of uncompressed bytes sent or received.
*
*
* uint64 uncompressed_size = 3;
*/
public long getUncompressedSize() {
return uncompressedSize_;
}
public static final int COMPRESSED_SIZE_FIELD_NUMBER = 4;
private long compressedSize_;
/**
*
* The number of compressed bytes sent or received. If zero, assumed to
* be the same size as uncompressed.
*
* The type of MessageEvent. Indicates whether the message was sent or
* received.
*
*
* .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type type = 1;
*/
public io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type getType() {
@SuppressWarnings("deprecation")
io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type result = io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type.valueOf(type_);
return result == null ? io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type.UNRECOGNIZED : result;
}
/**
*
* The type of MessageEvent. Indicates whether the message was sent or
* received.
*
*
* .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type type = 1;
*/
public Builder setType(io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The type of MessageEvent. Indicates whether the message was sent or
* received.
*
*
* .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type type = 1;
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private long id_ ;
/**
*
* An identifier for the MessageEvent's message that can be used to match
* SENT and RECEIVED MessageEvents. For example, this field could
* represent a sequence ID for a streaming RPC. It is recommended to be
* unique within a Span.
*
*
* uint64 id = 2;
*/
public long getId() {
return id_;
}
/**
*
* An identifier for the MessageEvent's message that can be used to match
* SENT and RECEIVED MessageEvents. For example, this field could
* represent a sequence ID for a streaming RPC. It is recommended to be
* unique within a Span.
*
* An identifier for the MessageEvent's message that can be used to match
* SENT and RECEIVED MessageEvents. For example, this field could
* represent a sequence ID for a streaming RPC. It is recommended to be
* unique within a Span.
*
*
* uint64 id = 2;
*/
public Builder clearId() {
id_ = 0L;
onChanged();
return this;
}
private long uncompressedSize_ ;
/**
*
* The number of uncompressed bytes sent or received.
*
*
* uint64 uncompressed_size = 3;
*/
public long getUncompressedSize() {
return uncompressedSize_;
}
/**
*
* The number of uncompressed bytes sent or received.
*
*
* .google.protobuf.Timestamp time = 1;
*/
public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() {
return getTime();
}
public static final int ANNOTATION_FIELD_NUMBER = 2;
/**
*
* A collection of `TimeEvent`s. A `TimeEvent` is a time-stamped annotation
* on the span, consisting of either user-supplied key-value pairs, or
* details of a message sent/received between Spans.
*
*
* Protobuf type {@code opencensus.proto.trace.v1.Span.TimeEvents}
*/
public static final class TimeEvents extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opencensus.proto.trace.v1.Span.TimeEvents)
TimeEventsOrBuilder {
private static final long serialVersionUID = 0L;
// Use TimeEvents.newBuilder() to construct.
private TimeEvents(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TimeEvents() {
timeEvent_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TimeEvents();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TimeEvents(
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)) {
timeEvent_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
timeEvent_.add(
input.readMessage(io.opencensus.proto.trace.v1.Span.TimeEvent.parser(), extensionRegistry));
break;
}
case 16: {
droppedAnnotationsCount_ = input.readInt32();
break;
}
case 24: {
droppedMessageEventsCount_ = 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)) {
timeEvent_ = java.util.Collections.unmodifiableList(timeEvent_);
}
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_Span_TimeEvents_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_TimeEvents_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencensus.proto.trace.v1.Span.TimeEvents.class, io.opencensus.proto.trace.v1.Span.TimeEvents.Builder.class);
}
public static final int TIME_EVENT_FIELD_NUMBER = 1;
private java.util.List timeEvent_;
/**
*
*
* repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1;
*/
public io.opencensus.proto.trace.v1.Span.TimeEventOrBuilder getTimeEventOrBuilder(
int index) {
return timeEvent_.get(index);
}
public static final int DROPPED_ANNOTATIONS_COUNT_FIELD_NUMBER = 2;
private int droppedAnnotationsCount_;
/**
*
* The number of dropped annotations in all the included time events.
* If the value is 0, then no annotations were dropped.
*
*
* int32 dropped_annotations_count = 2;
*/
public int getDroppedAnnotationsCount() {
return droppedAnnotationsCount_;
}
public static final int DROPPED_MESSAGE_EVENTS_COUNT_FIELD_NUMBER = 3;
private int droppedMessageEventsCount_;
/**
*
* The number of dropped message events in all the included time events.
* If the value is 0, then no message events were dropped.
*
*
* int32 dropped_message_events_count = 3;
*/
public int getDroppedMessageEventsCount() {
return droppedMessageEventsCount_;
}
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 < timeEvent_.size(); i++) {
output.writeMessage(1, timeEvent_.get(i));
}
if (droppedAnnotationsCount_ != 0) {
output.writeInt32(2, droppedAnnotationsCount_);
}
if (droppedMessageEventsCount_ != 0) {
output.writeInt32(3, droppedMessageEventsCount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < timeEvent_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, timeEvent_.get(i));
}
if (droppedAnnotationsCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, droppedAnnotationsCount_);
}
if (droppedMessageEventsCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, droppedMessageEventsCount_);
}
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.Span.TimeEvents)) {
return super.equals(obj);
}
io.opencensus.proto.trace.v1.Span.TimeEvents other = (io.opencensus.proto.trace.v1.Span.TimeEvents) obj;
if (!getTimeEventList()
.equals(other.getTimeEventList())) return false;
if (getDroppedAnnotationsCount()
!= other.getDroppedAnnotationsCount()) return false;
if (getDroppedMessageEventsCount()
!= other.getDroppedMessageEventsCount()) 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 (getTimeEventCount() > 0) {
hash = (37 * hash) + TIME_EVENT_FIELD_NUMBER;
hash = (53 * hash) + getTimeEventList().hashCode();
}
hash = (37 * hash) + DROPPED_ANNOTATIONS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getDroppedAnnotationsCount();
hash = (37 * hash) + DROPPED_MESSAGE_EVENTS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getDroppedMessageEventsCount();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opencensus.proto.trace.v1.Span.TimeEvents parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencensus.proto.trace.v1.Span.TimeEvents 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.Span.TimeEvents parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencensus.proto.trace.v1.Span.TimeEvents 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.Span.TimeEvents parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencensus.proto.trace.v1.Span.TimeEvents 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.Span.TimeEvents parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opencensus.proto.trace.v1.Span.TimeEvents 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.Span.TimeEvents parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opencensus.proto.trace.v1.Span.TimeEvents 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.Span.TimeEvents 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.Span.TimeEvents 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.Span.TimeEvents 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 `TimeEvent`s. A `TimeEvent` is a time-stamped annotation
* on the span, consisting of either user-supplied key-value pairs, or
* details of a message sent/received between Spans.
*
* A pointer from the current span to another span in the same trace or in a
* different trace. For example, this can be used in batching operations,
* where a single batch handler processes multiple requests from different
* traces or when the handler receives a request from a different project.
*
*
* Protobuf type {@code opencensus.proto.trace.v1.Span.Link}
*/
public static final class Link extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opencensus.proto.trace.v1.Span.Link)
LinkOrBuilder {
private static final long serialVersionUID = 0L;
// Use Link.newBuilder() to construct.
private Link(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Link() {
traceId_ = com.google.protobuf.ByteString.EMPTY;
spanId_ = com.google.protobuf.ByteString.EMPTY;
type_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Link();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Link(
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: {
traceId_ = input.readBytes();
break;
}
case 18: {
spanId_ = input.readBytes();
break;
}
case 24: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 34: {
io.opencensus.proto.trace.v1.Span.Attributes.Builder subBuilder = null;
if (attributes_ != null) {
subBuilder = attributes_.toBuilder();
}
attributes_ = input.readMessage(io.opencensus.proto.trace.v1.Span.Attributes.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(attributes_);
attributes_ = 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_Span_Link_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_Link_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencensus.proto.trace.v1.Span.Link.class, io.opencensus.proto.trace.v1.Span.Link.Builder.class);
}
/**
*
* The relationship of the current span relative to the linked span: child,
* parent, or unspecified.
*
*
* Protobuf enum {@code opencensus.proto.trace.v1.Span.Link.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* The relationship of the two spans is unknown, or known but other
* than parent-child.
*
* The relationship of the two spans is unknown, or known but other
* than parent-child.
*
*
* TYPE_UNSPECIFIED = 0;
*/
public static final int TYPE_UNSPECIFIED_VALUE = 0;
/**
*
* The linked span is a child of the current span.
*
*
* CHILD_LINKED_SPAN = 1;
*/
public static final int CHILD_LINKED_SPAN_VALUE = 1;
/**
*
* The linked span is a parent of the current span.
*
*
* PARENT_LINKED_SPAN = 2;
*/
public static final int PARENT_LINKED_SPAN_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
public static Type forNumber(int value) {
switch (value) {
case 0: return TYPE_UNSPECIFIED;
case 1: return CHILD_LINKED_SPAN;
case 2: return PARENT_LINKED_SPAN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.opencensus.proto.trace.v1.Span.Link.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:opencensus.proto.trace.v1.Span.Link.Type)
}
public static final int TRACE_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString traceId_;
/**
*
* A unique identifier of a trace that this linked span is part of. The ID is a
* 16-byte array.
*
*
* bytes trace_id = 1;
*/
public com.google.protobuf.ByteString getTraceId() {
return traceId_;
}
public static final int SPAN_ID_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString spanId_;
/**
*
* A unique identifier for the linked span. The ID is an 8-byte array.
*
*
* bytes span_id = 2;
*/
public com.google.protobuf.ByteString getSpanId() {
return spanId_;
}
public static final int TYPE_FIELD_NUMBER = 3;
private int type_;
/**
*
* The relationship of the current span relative to the linked span.
*
*
* .opencensus.proto.trace.v1.Span.Link.Type type = 3;
*/
public int getTypeValue() {
return type_;
}
/**
*
* The relationship of the current span relative to the linked span.
*
*
* .opencensus.proto.trace.v1.Span.Link.Type type = 3;
*/
public io.opencensus.proto.trace.v1.Span.Link.Type getType() {
@SuppressWarnings("deprecation")
io.opencensus.proto.trace.v1.Span.Link.Type result = io.opencensus.proto.trace.v1.Span.Link.Type.valueOf(type_);
return result == null ? io.opencensus.proto.trace.v1.Span.Link.Type.UNRECOGNIZED : result;
}
public static final int ATTRIBUTES_FIELD_NUMBER = 4;
private io.opencensus.proto.trace.v1.Span.Attributes attributes_;
/**
*
* A pointer from the current span to another span in the same trace or in a
* different trace. For example, this can be used in batching operations,
* where a single batch handler processes multiple requests from different
* traces or when the handler receives a request from a different project.
*
*
* Protobuf type {@code opencensus.proto.trace.v1.Span.Link}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:opencensus.proto.trace.v1.Span.Link)
io.opencensus.proto.trace.v1.Span.LinkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_Link_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_Link_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencensus.proto.trace.v1.Span.Link.class, io.opencensus.proto.trace.v1.Span.Link.Builder.class);
}
// Construct using io.opencensus.proto.trace.v1.Span.Link.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();
traceId_ = com.google.protobuf.ByteString.EMPTY;
spanId_ = com.google.protobuf.ByteString.EMPTY;
type_ = 0;
if (attributesBuilder_ == null) {
attributes_ = null;
} else {
attributes_ = null;
attributesBuilder_ = 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_Span_Link_descriptor;
}
@java.lang.Override
public io.opencensus.proto.trace.v1.Span.Link getDefaultInstanceForType() {
return io.opencensus.proto.trace.v1.Span.Link.getDefaultInstance();
}
@java.lang.Override
public io.opencensus.proto.trace.v1.Span.Link build() {
io.opencensus.proto.trace.v1.Span.Link result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.opencensus.proto.trace.v1.Span.Link buildPartial() {
io.opencensus.proto.trace.v1.Span.Link result = new io.opencensus.proto.trace.v1.Span.Link(this);
result.traceId_ = traceId_;
result.spanId_ = spanId_;
result.type_ = type_;
if (attributesBuilder_ == null) {
result.attributes_ = attributes_;
} else {
result.attributes_ = attributesBuilder_.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.Span.Link) {
return mergeFrom((io.opencensus.proto.trace.v1.Span.Link)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.opencensus.proto.trace.v1.Span.Link other) {
if (other == io.opencensus.proto.trace.v1.Span.Link.getDefaultInstance()) return this;
if (other.getTraceId() != com.google.protobuf.ByteString.EMPTY) {
setTraceId(other.getTraceId());
}
if (other.getSpanId() != com.google.protobuf.ByteString.EMPTY) {
setSpanId(other.getSpanId());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.hasAttributes()) {
mergeAttributes(other.getAttributes());
}
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.Span.Link parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.opencensus.proto.trace.v1.Span.Link) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.ByteString traceId_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* A unique identifier of a trace that this linked span is part of. The ID is a
* 16-byte array.
*
* A collection of links, which are references from this span to a span
* in the same or different trace.
*
*
* Protobuf type {@code opencensus.proto.trace.v1.Span.Links}
*/
public static final class Links extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opencensus.proto.trace.v1.Span.Links)
LinksOrBuilder {
private static final long serialVersionUID = 0L;
// Use Links.newBuilder() to construct.
private Links(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Links() {
link_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Links();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Links(
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)) {
link_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
link_.add(
input.readMessage(io.opencensus.proto.trace.v1.Span.Link.parser(), extensionRegistry));
break;
}
case 16: {
droppedLinksCount_ = 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)) {
link_ = java.util.Collections.unmodifiableList(link_);
}
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_Span_Links_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_Links_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencensus.proto.trace.v1.Span.Links.class, io.opencensus.proto.trace.v1.Span.Links.Builder.class);
}
public static final int LINK_FIELD_NUMBER = 1;
private java.util.List link_;
/**
*
* A collection of links.
*
*
* repeated .opencensus.proto.trace.v1.Span.Link link = 1;
*/
public java.util.List getLinkList() {
return link_;
}
/**
*
* A collection of links.
*
*
* repeated .opencensus.proto.trace.v1.Span.Link link = 1;
*/
public java.util.List extends io.opencensus.proto.trace.v1.Span.LinkOrBuilder>
getLinkOrBuilderList() {
return link_;
}
/**
*
* A collection of links.
*
*
* repeated .opencensus.proto.trace.v1.Span.Link link = 1;
*/
public int getLinkCount() {
return link_.size();
}
/**
*
* A collection of links.
*
*
* repeated .opencensus.proto.trace.v1.Span.Link link = 1;
*/
public io.opencensus.proto.trace.v1.Span.Link getLink(int index) {
return link_.get(index);
}
/**
*
* A collection of links.
*
*
* repeated .opencensus.proto.trace.v1.Span.Link link = 1;
*/
public io.opencensus.proto.trace.v1.Span.LinkOrBuilder getLinkOrBuilder(
int index) {
return link_.get(index);
}
public static final int DROPPED_LINKS_COUNT_FIELD_NUMBER = 2;
private int droppedLinksCount_;
/**
*
* The number of dropped links after the maximum size was enforced. If
* this value is 0, then no links were dropped.
*
*
* int32 dropped_links_count = 2;
*/
public int getDroppedLinksCount() {
return droppedLinksCount_;
}
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 < link_.size(); i++) {
output.writeMessage(1, link_.get(i));
}
if (droppedLinksCount_ != 0) {
output.writeInt32(2, droppedLinksCount_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < link_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, link_.get(i));
}
if (droppedLinksCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, droppedLinksCount_);
}
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.Span.Links)) {
return super.equals(obj);
}
io.opencensus.proto.trace.v1.Span.Links other = (io.opencensus.proto.trace.v1.Span.Links) obj;
if (!getLinkList()
.equals(other.getLinkList())) return false;
if (getDroppedLinksCount()
!= other.getDroppedLinksCount()) 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 (getLinkCount() > 0) {
hash = (37 * hash) + LINK_FIELD_NUMBER;
hash = (53 * hash) + getLinkList().hashCode();
}
hash = (37 * hash) + DROPPED_LINKS_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getDroppedLinksCount();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opencensus.proto.trace.v1.Span.Links parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencensus.proto.trace.v1.Span.Links 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.Span.Links parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencensus.proto.trace.v1.Span.Links 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.Span.Links parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencensus.proto.trace.v1.Span.Links 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.Span.Links parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opencensus.proto.trace.v1.Span.Links 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.Span.Links parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opencensus.proto.trace.v1.Span.Links 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.Span.Links 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.Span.Links 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.Span.Links 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 links, which are references from this span to a span
* in the same or different trace.
*
*
* Protobuf type {@code opencensus.proto.trace.v1.Span.Links}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:opencensus.proto.trace.v1.Span.Links)
io.opencensus.proto.trace.v1.Span.LinksOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_Links_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_Links_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opencensus.proto.trace.v1.Span.Links.class, io.opencensus.proto.trace.v1.Span.Links.Builder.class);
}
// Construct using io.opencensus.proto.trace.v1.Span.Links.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLinkFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (linkBuilder_ == null) {
link_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
linkBuilder_.clear();
}
droppedLinksCount_ = 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_Span_Links_descriptor;
}
@java.lang.Override
public io.opencensus.proto.trace.v1.Span.Links getDefaultInstanceForType() {
return io.opencensus.proto.trace.v1.Span.Links.getDefaultInstance();
}
@java.lang.Override
public io.opencensus.proto.trace.v1.Span.Links build() {
io.opencensus.proto.trace.v1.Span.Links result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.opencensus.proto.trace.v1.Span.Links buildPartial() {
io.opencensus.proto.trace.v1.Span.Links result = new io.opencensus.proto.trace.v1.Span.Links(this);
int from_bitField0_ = bitField0_;
if (linkBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
link_ = java.util.Collections.unmodifiableList(link_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.link_ = link_;
} else {
result.link_ = linkBuilder_.build();
}
result.droppedLinksCount_ = droppedLinksCount_;
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.Span.Links) {
return mergeFrom((io.opencensus.proto.trace.v1.Span.Links)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.opencensus.proto.trace.v1.Span.Links other) {
if (other == io.opencensus.proto.trace.v1.Span.Links.getDefaultInstance()) return this;
if (linkBuilder_ == null) {
if (!other.link_.isEmpty()) {
if (link_.isEmpty()) {
link_ = other.link_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLinkIsMutable();
link_.addAll(other.link_);
}
onChanged();
}
} else {
if (!other.link_.isEmpty()) {
if (linkBuilder_.isEmpty()) {
linkBuilder_.dispose();
linkBuilder_ = null;
link_ = other.link_;
bitField0_ = (bitField0_ & ~0x00000001);
linkBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getLinkFieldBuilder() : null;
} else {
linkBuilder_.addAllMessages(other.link_);
}
}
}
if (other.getDroppedLinksCount() != 0) {
setDroppedLinksCount(other.getDroppedLinksCount());
}
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.Span.Links parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.opencensus.proto.trace.v1.Span.Links) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List link_ =
java.util.Collections.emptyList();
private void ensureLinkIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
link_ = new java.util.ArrayList(link_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.opencensus.proto.trace.v1.Span.Link, io.opencensus.proto.trace.v1.Span.Link.Builder, io.opencensus.proto.trace.v1.Span.LinkOrBuilder> linkBuilder_;
/**
*
* A collection of links.
*
*
* repeated .opencensus.proto.trace.v1.Span.Link link = 1;
*/
public java.util.List getLinkList() {
if (linkBuilder_ == null) {
return java.util.Collections.unmodifiableList(link_);
} else {
return linkBuilder_.getMessageList();
}
}
/**
*
* A collection of links.
*
*
* repeated .opencensus.proto.trace.v1.Span.Link link = 1;
*/
public int getLinkCount() {
if (linkBuilder_ == null) {
return link_.size();
} else {
return linkBuilder_.getCount();
}
}
/**
*
* A collection of links.
*
*
* repeated .opencensus.proto.trace.v1.Span.Link link = 1;
*/
public io.opencensus.proto.trace.v1.Span.Link getLink(int index) {
if (linkBuilder_ == null) {
return link_.get(index);
} else {
return linkBuilder_.getMessage(index);
}
}
/**
*
* A collection of links.
*
*
* repeated .opencensus.proto.trace.v1.Span.Link link = 1;
*/
public Builder setLink(
int index, io.opencensus.proto.trace.v1.Span.Link value) {
if (linkBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinkIsMutable();
link_.set(index, value);
onChanged();
} else {
linkBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A collection of links.
*
*
* repeated .opencensus.proto.trace.v1.Span.Link link = 1;
*/
public Builder setLink(
int index, io.opencensus.proto.trace.v1.Span.Link.Builder builderForValue) {
if (linkBuilder_ == null) {
ensureLinkIsMutable();
link_.set(index, builderForValue.build());
onChanged();
} else {
linkBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A collection of links.
*
*
* repeated .opencensus.proto.trace.v1.Span.Link link = 1;
*/
public Builder addLink(io.opencensus.proto.trace.v1.Span.Link value) {
if (linkBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinkIsMutable();
link_.add(value);
onChanged();
} else {
linkBuilder_.addMessage(value);
}
return this;
}
/**
*
* A collection of links.
*
*
* repeated .opencensus.proto.trace.v1.Span.Link link = 1;
*/
public Builder addLink(
int index, io.opencensus.proto.trace.v1.Span.Link value) {
if (linkBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinkIsMutable();
link_.add(index, value);
onChanged();
} else {
linkBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The number of dropped links after the maximum size was enforced. If
* this value is 0, then no links were dropped.
*
*
* int32 dropped_links_count = 2;
*/
public Builder clearDroppedLinksCount() {
droppedLinksCount_ = 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.Span.Links)
}
// @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.Span.Links)
private static final io.opencensus.proto.trace.v1.Span.Links DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.opencensus.proto.trace.v1.Span.Links();
}
public static io.opencensus.proto.trace.v1.Span.Links getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Links parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Links(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.Span.Links getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int TRACE_ID_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString traceId_;
/**
*
* A unique identifier for a trace. All spans from the same trace share
* the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes
* is considered invalid.
* This field is semantically required. Receiver should generate new
* random trace_id if empty or invalid trace_id was received.
* This field is required.
*
*
* bytes trace_id = 1;
*/
public com.google.protobuf.ByteString getTraceId() {
return traceId_;
}
public static final int SPAN_ID_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString spanId_;
/**
*
* A unique identifier for a span within a trace, assigned when the span
* is created. The ID is an 8-byte array. An ID with all zeroes is considered
* invalid.
* This field is semantically required. Receiver should generate new
* random span_id if empty or invalid span_id was received.
* This field is required.
*
*
* bytes span_id = 2;
*/
public com.google.protobuf.ByteString getSpanId() {
return spanId_;
}
public static final int TRACESTATE_FIELD_NUMBER = 15;
private io.opencensus.proto.trace.v1.Span.Tracestate tracestate_;
/**
*
*
* .opencensus.proto.trace.v1.Span.Tracestate tracestate = 15;
*/
public io.opencensus.proto.trace.v1.Span.TracestateOrBuilder getTracestateOrBuilder() {
return getTracestate();
}
public static final int PARENT_SPAN_ID_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString parentSpanId_;
/**
*
* The `span_id` of this span's parent span. If this is a root span, then this
* field must be empty. The ID is an 8-byte array.
*
*
* bytes parent_span_id = 3;
*/
public com.google.protobuf.ByteString getParentSpanId() {
return parentSpanId_;
}
public static final int NAME_FIELD_NUMBER = 4;
private io.opencensus.proto.trace.v1.TruncatableString name_;
/**
*
* A description of the span's operation.
* For example, the name can be a qualified method name or a file name
* and a line number where the operation is called. A best practice is to use
* the same display name at the same call point in an application.
* This makes it easier to correlate spans in different traces.
* This field is semantically required to be set to non-empty string.
* When null or empty string received - receiver may use string "name"
* as a replacement. There might be smarted algorithms implemented by
* receiver to fix the empty span name.
* This field is required.
*
*
* .opencensus.proto.trace.v1.TruncatableString name = 4;
*/
public boolean hasName() {
return name_ != null;
}
/**
*
* A description of the span's operation.
* For example, the name can be a qualified method name or a file name
* and a line number where the operation is called. A best practice is to use
* the same display name at the same call point in an application.
* This makes it easier to correlate spans in different traces.
* This field is semantically required to be set to non-empty string.
* When null or empty string received - receiver may use string "name"
* as a replacement. There might be smarted algorithms implemented by
* receiver to fix the empty span name.
* This field is required.
*
* A description of the span's operation.
* For example, the name can be a qualified method name or a file name
* and a line number where the operation is called. A best practice is to use
* the same display name at the same call point in an application.
* This makes it easier to correlate spans in different traces.
* This field is semantically required to be set to non-empty string.
* When null or empty string received - receiver may use string "name"
* as a replacement. There might be smarted algorithms implemented by
* receiver to fix the empty span name.
* This field is required.
*
*
* .opencensus.proto.trace.v1.TruncatableString name = 4;
*/
public io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getNameOrBuilder() {
return getName();
}
public static final int KIND_FIELD_NUMBER = 14;
private int kind_;
/**
*
* Distinguishes between spans generated in a particular context. For example,
* two spans with the same name may be distinguished using `CLIENT` (caller)
* and `SERVER` (callee) to identify queueing latency associated with the span.
*
*
* .opencensus.proto.trace.v1.Span.SpanKind kind = 14;
*/
public int getKindValue() {
return kind_;
}
/**
*
* Distinguishes between spans generated in a particular context. For example,
* two spans with the same name may be distinguished using `CLIENT` (caller)
* and `SERVER` (callee) to identify queueing latency associated with the span.
*
*
* .opencensus.proto.trace.v1.Span.SpanKind kind = 14;
*/
public io.opencensus.proto.trace.v1.Span.SpanKind getKind() {
@SuppressWarnings("deprecation")
io.opencensus.proto.trace.v1.Span.SpanKind result = io.opencensus.proto.trace.v1.Span.SpanKind.valueOf(kind_);
return result == null ? io.opencensus.proto.trace.v1.Span.SpanKind.UNRECOGNIZED : result;
}
public static final int START_TIME_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp startTime_;
/**
*
* The start time of the span. On the client side, this is the time kept by
* the local machine where the span execution starts. On the server side, this
* is the time when the server's application handler starts running.
* This field is semantically required. When not set on receive -
* receiver should set it to the value of end_time field if it was
* set. Or to the current time if neither was set. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The start time of the span. On the client side, this is the time kept by
* the local machine where the span execution starts. On the server side, this
* is the time when the server's application handler starts running.
* This field is semantically required. When not set on receive -
* receiver should set it to the value of end_time field if it was
* set. Or to the current time if neither was set. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The start time of the span. On the client side, this is the time kept by
* the local machine where the span execution starts. On the server side, this
* is the time when the server's application handler starts running.
* This field is semantically required. When not set on receive -
* receiver should set it to the value of end_time field if it was
* set. Or to the current time if neither was set. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
*
* .google.protobuf.Timestamp start_time = 5;
*/
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return getStartTime();
}
public static final int END_TIME_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp endTime_;
/**
*
* The end time of the span. On the client side, this is the time kept by
* the local machine where the span execution ends. On the server side, this
* is the time when the server application handler stops running.
* This field is semantically required. When not set on receive -
* receiver should set it to start_time value. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The end time of the span. On the client side, this is the time kept by
* the local machine where the span execution ends. On the server side, this
* is the time when the server application handler stops running.
* This field is semantically required. When not set on receive -
* receiver should set it to start_time value. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The end time of the span. On the client side, this is the time kept by
* the local machine where the span execution ends. On the server side, this
* is the time when the server application handler stops running.
* This field is semantically required. When not set on receive -
* receiver should set it to start_time value. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
*
* .google.protobuf.Timestamp end_time = 6;
*/
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
return getEndTime();
}
public static final int ATTRIBUTES_FIELD_NUMBER = 7;
private io.opencensus.proto.trace.v1.Span.Attributes attributes_;
/**
*
*
* .opencensus.proto.trace.v1.Span.Links links = 10;
*/
public io.opencensus.proto.trace.v1.Span.LinksOrBuilder getLinksOrBuilder() {
return getLinks();
}
public static final int STATUS_FIELD_NUMBER = 11;
private io.opencensus.proto.trace.v1.Status status_;
/**
*
* An optional final status for this span. Semantically when Status
* wasn't set it is means span ended without errors and assume
* Status.Ok (code = 0).
*
*
* .opencensus.proto.trace.v1.Status status = 11;
*/
public boolean hasStatus() {
return status_ != null;
}
/**
*
* An optional final status for this span. Semantically when Status
* wasn't set it is means span ended without errors and assume
* Status.Ok (code = 0).
*
* An optional final status for this span. Semantically when Status
* wasn't set it is means span ended without errors and assume
* Status.Ok (code = 0).
*
*
* .opencensus.proto.trace.v1.Status status = 11;
*/
public io.opencensus.proto.trace.v1.StatusOrBuilder getStatusOrBuilder() {
return getStatus();
}
public static final int RESOURCE_FIELD_NUMBER = 16;
private io.opencensus.proto.resource.v1.Resource resource_;
/**
*
* An optional resource that is associated with this span. If not set, this span
* should be part of a batch that does include the resource information, unless resource
* information is unknown.
*
* An optional resource that is associated with this span. If not set, this span
* should be part of a batch that does include the resource information, unless resource
* information is unknown.
*
* An optional resource that is associated with this span. If not set, this span
* should be part of a batch that does include the resource information, unless resource
* information is unknown.
*
*
* .opencensus.proto.resource.v1.Resource resource = 16;
*/
public io.opencensus.proto.resource.v1.ResourceOrBuilder getResourceOrBuilder() {
return getResource();
}
public static final int SAME_PROCESS_AS_PARENT_SPAN_FIELD_NUMBER = 12;
private com.google.protobuf.BoolValue sameProcessAsParentSpan_;
/**
*
* A highly recommended but not required flag that identifies when a
* trace crosses a process boundary. True when the parent_span belongs
* to the same process as the current span. This flag is most commonly
* used to indicate the need to adjust time as clocks in different
* processes may not be synchronized.
*
* A highly recommended but not required flag that identifies when a
* trace crosses a process boundary. True when the parent_span belongs
* to the same process as the current span. This flag is most commonly
* used to indicate the need to adjust time as clocks in different
* processes may not be synchronized.
*
* A highly recommended but not required flag that identifies when a
* trace crosses a process boundary. True when the parent_span belongs
* to the same process as the current span. This flag is most commonly
* used to indicate the need to adjust time as clocks in different
* processes may not be synchronized.
*
*
* .google.protobuf.BoolValue same_process_as_parent_span = 12;
*/
public com.google.protobuf.BoolValueOrBuilder getSameProcessAsParentSpanOrBuilder() {
return getSameProcessAsParentSpan();
}
public static final int CHILD_SPAN_COUNT_FIELD_NUMBER = 13;
private com.google.protobuf.UInt32Value childSpanCount_;
/**
*
* An optional number of child spans that were generated while this span
* was active. If set, allows an implementation to detect missing child spans.
*
* An optional number of child spans that were generated while this span
* was active. If set, allows an implementation to detect missing child spans.
*
* An optional number of child spans that were generated while this span
* was active. If set, allows an implementation to detect missing child spans.
*
*
* .google.protobuf.UInt32Value child_span_count = 13;
*/
public com.google.protobuf.UInt32ValueOrBuilder getChildSpanCountOrBuilder() {
return getChildSpanCount();
}
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 (!traceId_.isEmpty()) {
output.writeBytes(1, traceId_);
}
if (!spanId_.isEmpty()) {
output.writeBytes(2, spanId_);
}
if (!parentSpanId_.isEmpty()) {
output.writeBytes(3, parentSpanId_);
}
if (name_ != null) {
output.writeMessage(4, getName());
}
if (startTime_ != null) {
output.writeMessage(5, getStartTime());
}
if (endTime_ != null) {
output.writeMessage(6, getEndTime());
}
if (attributes_ != null) {
output.writeMessage(7, getAttributes());
}
if (stackTrace_ != null) {
output.writeMessage(8, getStackTrace());
}
if (timeEvents_ != null) {
output.writeMessage(9, getTimeEvents());
}
if (links_ != null) {
output.writeMessage(10, getLinks());
}
if (status_ != null) {
output.writeMessage(11, getStatus());
}
if (sameProcessAsParentSpan_ != null) {
output.writeMessage(12, getSameProcessAsParentSpan());
}
if (childSpanCount_ != null) {
output.writeMessage(13, getChildSpanCount());
}
if (kind_ != io.opencensus.proto.trace.v1.Span.SpanKind.SPAN_KIND_UNSPECIFIED.getNumber()) {
output.writeEnum(14, kind_);
}
if (tracestate_ != null) {
output.writeMessage(15, getTracestate());
}
if (resource_ != null) {
output.writeMessage(16, getResource());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!traceId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, traceId_);
}
if (!spanId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, spanId_);
}
if (!parentSpanId_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, parentSpanId_);
}
if (name_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getName());
}
if (startTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getStartTime());
}
if (endTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getEndTime());
}
if (attributes_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getAttributes());
}
if (stackTrace_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getStackTrace());
}
if (timeEvents_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getTimeEvents());
}
if (links_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getLinks());
}
if (status_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getStatus());
}
if (sameProcessAsParentSpan_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getSameProcessAsParentSpan());
}
if (childSpanCount_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getChildSpanCount());
}
if (kind_ != io.opencensus.proto.trace.v1.Span.SpanKind.SPAN_KIND_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(14, kind_);
}
if (tracestate_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getTracestate());
}
if (resource_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getResource());
}
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.Span)) {
return super.equals(obj);
}
io.opencensus.proto.trace.v1.Span other = (io.opencensus.proto.trace.v1.Span) obj;
if (!getTraceId()
.equals(other.getTraceId())) return false;
if (!getSpanId()
.equals(other.getSpanId())) return false;
if (hasTracestate() != other.hasTracestate()) return false;
if (hasTracestate()) {
if (!getTracestate()
.equals(other.getTracestate())) return false;
}
if (!getParentSpanId()
.equals(other.getParentSpanId())) return false;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (kind_ != other.kind_) return false;
if (hasStartTime() != other.hasStartTime()) return false;
if (hasStartTime()) {
if (!getStartTime()
.equals(other.getStartTime())) return false;
}
if (hasEndTime() != other.hasEndTime()) return false;
if (hasEndTime()) {
if (!getEndTime()
.equals(other.getEndTime())) return false;
}
if (hasAttributes() != other.hasAttributes()) return false;
if (hasAttributes()) {
if (!getAttributes()
.equals(other.getAttributes())) return false;
}
if (hasStackTrace() != other.hasStackTrace()) return false;
if (hasStackTrace()) {
if (!getStackTrace()
.equals(other.getStackTrace())) return false;
}
if (hasTimeEvents() != other.hasTimeEvents()) return false;
if (hasTimeEvents()) {
if (!getTimeEvents()
.equals(other.getTimeEvents())) return false;
}
if (hasLinks() != other.hasLinks()) return false;
if (hasLinks()) {
if (!getLinks()
.equals(other.getLinks())) return false;
}
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (!getStatus()
.equals(other.getStatus())) return false;
}
if (hasResource() != other.hasResource()) return false;
if (hasResource()) {
if (!getResource()
.equals(other.getResource())) return false;
}
if (hasSameProcessAsParentSpan() != other.hasSameProcessAsParentSpan()) return false;
if (hasSameProcessAsParentSpan()) {
if (!getSameProcessAsParentSpan()
.equals(other.getSameProcessAsParentSpan())) return false;
}
if (hasChildSpanCount() != other.hasChildSpanCount()) return false;
if (hasChildSpanCount()) {
if (!getChildSpanCount()
.equals(other.getChildSpanCount())) 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();
hash = (37 * hash) + TRACE_ID_FIELD_NUMBER;
hash = (53 * hash) + getTraceId().hashCode();
hash = (37 * hash) + SPAN_ID_FIELD_NUMBER;
hash = (53 * hash) + getSpanId().hashCode();
if (hasTracestate()) {
hash = (37 * hash) + TRACESTATE_FIELD_NUMBER;
hash = (53 * hash) + getTracestate().hashCode();
}
hash = (37 * hash) + PARENT_SPAN_ID_FIELD_NUMBER;
hash = (53 * hash) + getParentSpanId().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
hash = (37 * hash) + KIND_FIELD_NUMBER;
hash = (53 * hash) + kind_;
if (hasStartTime()) {
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + getStartTime().hashCode();
}
if (hasEndTime()) {
hash = (37 * hash) + END_TIME_FIELD_NUMBER;
hash = (53 * hash) + getEndTime().hashCode();
}
if (hasAttributes()) {
hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + getAttributes().hashCode();
}
if (hasStackTrace()) {
hash = (37 * hash) + STACK_TRACE_FIELD_NUMBER;
hash = (53 * hash) + getStackTrace().hashCode();
}
if (hasTimeEvents()) {
hash = (37 * hash) + TIME_EVENTS_FIELD_NUMBER;
hash = (53 * hash) + getTimeEvents().hashCode();
}
if (hasLinks()) {
hash = (37 * hash) + LINKS_FIELD_NUMBER;
hash = (53 * hash) + getLinks().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + getStatus().hashCode();
}
if (hasResource()) {
hash = (37 * hash) + RESOURCE_FIELD_NUMBER;
hash = (53 * hash) + getResource().hashCode();
}
if (hasSameProcessAsParentSpan()) {
hash = (37 * hash) + SAME_PROCESS_AS_PARENT_SPAN_FIELD_NUMBER;
hash = (53 * hash) + getSameProcessAsParentSpan().hashCode();
}
if (hasChildSpanCount()) {
hash = (37 * hash) + CHILD_SPAN_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getChildSpanCount().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opencensus.proto.trace.v1.Span parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencensus.proto.trace.v1.Span 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.Span parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencensus.proto.trace.v1.Span 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.Span parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opencensus.proto.trace.v1.Span 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.Span parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opencensus.proto.trace.v1.Span 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.Span parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opencensus.proto.trace.v1.Span 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.Span 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.Span 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.Span 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 span represents a single operation within a trace. Spans can be
* nested to form a trace tree. Spans may also be linked to other spans
* from the same or different trace. And form graphs. Often, a trace
* contains a root span that describes the end-to-end latency, and one
* or more subspans for its sub-operations. A trace can also contain
* multiple root spans, or none at all. Spans do not need to be
* contiguous - there may be gaps or overlaps between spans in a trace.
* The next id is 17.
* TODO(bdrutu): Add an example.
*
* A unique identifier for a trace. All spans from the same trace share
* the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes
* is considered invalid.
* This field is semantically required. Receiver should generate new
* random trace_id if empty or invalid trace_id was received.
* This field is required.
*
* A unique identifier for a trace. All spans from the same trace share
* the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes
* is considered invalid.
* This field is semantically required. Receiver should generate new
* random trace_id if empty or invalid trace_id was received.
* This field is required.
*
*
* bytes trace_id = 1;
*/
public Builder setTraceId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
traceId_ = value;
onChanged();
return this;
}
/**
*
* A unique identifier for a trace. All spans from the same trace share
* the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes
* is considered invalid.
* This field is semantically required. Receiver should generate new
* random trace_id if empty or invalid trace_id was received.
* This field is required.
*
* A unique identifier for a span within a trace, assigned when the span
* is created. The ID is an 8-byte array. An ID with all zeroes is considered
* invalid.
* This field is semantically required. Receiver should generate new
* random span_id if empty or invalid span_id was received.
* This field is required.
*
* A unique identifier for a span within a trace, assigned when the span
* is created. The ID is an 8-byte array. An ID with all zeroes is considered
* invalid.
* This field is semantically required. Receiver should generate new
* random span_id if empty or invalid span_id was received.
* This field is required.
*
*
* bytes span_id = 2;
*/
public Builder setSpanId(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
spanId_ = value;
onChanged();
return this;
}
/**
*
* A unique identifier for a span within a trace, assigned when the span
* is created. The ID is an 8-byte array. An ID with all zeroes is considered
* invalid.
* This field is semantically required. Receiver should generate new
* random span_id if empty or invalid span_id was received.
* This field is required.
*
* A description of the span's operation.
* For example, the name can be a qualified method name or a file name
* and a line number where the operation is called. A best practice is to use
* the same display name at the same call point in an application.
* This makes it easier to correlate spans in different traces.
* This field is semantically required to be set to non-empty string.
* When null or empty string received - receiver may use string "name"
* as a replacement. There might be smarted algorithms implemented by
* receiver to fix the empty span name.
* This field is required.
*
* A description of the span's operation.
* For example, the name can be a qualified method name or a file name
* and a line number where the operation is called. A best practice is to use
* the same display name at the same call point in an application.
* This makes it easier to correlate spans in different traces.
* This field is semantically required to be set to non-empty string.
* When null or empty string received - receiver may use string "name"
* as a replacement. There might be smarted algorithms implemented by
* receiver to fix the empty span name.
* This field is required.
*
* A description of the span's operation.
* For example, the name can be a qualified method name or a file name
* and a line number where the operation is called. A best practice is to use
* the same display name at the same call point in an application.
* This makes it easier to correlate spans in different traces.
* This field is semantically required to be set to non-empty string.
* When null or empty string received - receiver may use string "name"
* as a replacement. There might be smarted algorithms implemented by
* receiver to fix the empty span name.
* This field is required.
*
*
* .opencensus.proto.trace.v1.TruncatableString name = 4;
*/
public Builder setName(io.opencensus.proto.trace.v1.TruncatableString value) {
if (nameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
} else {
nameBuilder_.setMessage(value);
}
return this;
}
/**
*
* A description of the span's operation.
* For example, the name can be a qualified method name or a file name
* and a line number where the operation is called. A best practice is to use
* the same display name at the same call point in an application.
* This makes it easier to correlate spans in different traces.
* This field is semantically required to be set to non-empty string.
* When null or empty string received - receiver may use string "name"
* as a replacement. There might be smarted algorithms implemented by
* receiver to fix the empty span name.
* This field is required.
*
* A description of the span's operation.
* For example, the name can be a qualified method name or a file name
* and a line number where the operation is called. A best practice is to use
* the same display name at the same call point in an application.
* This makes it easier to correlate spans in different traces.
* This field is semantically required to be set to non-empty string.
* When null or empty string received - receiver may use string "name"
* as a replacement. There might be smarted algorithms implemented by
* receiver to fix the empty span name.
* This field is required.
*
* A description of the span's operation.
* For example, the name can be a qualified method name or a file name
* and a line number where the operation is called. A best practice is to use
* the same display name at the same call point in an application.
* This makes it easier to correlate spans in different traces.
* This field is semantically required to be set to non-empty string.
* When null or empty string received - receiver may use string "name"
* as a replacement. There might be smarted algorithms implemented by
* receiver to fix the empty span name.
* This field is required.
*
* A description of the span's operation.
* For example, the name can be a qualified method name or a file name
* and a line number where the operation is called. A best practice is to use
* the same display name at the same call point in an application.
* This makes it easier to correlate spans in different traces.
* This field is semantically required to be set to non-empty string.
* When null or empty string received - receiver may use string "name"
* as a replacement. There might be smarted algorithms implemented by
* receiver to fix the empty span name.
* This field is required.
*
*
* .opencensus.proto.trace.v1.TruncatableString name = 4;
*/
public io.opencensus.proto.trace.v1.TruncatableString.Builder getNameBuilder() {
onChanged();
return getNameFieldBuilder().getBuilder();
}
/**
*
* A description of the span's operation.
* For example, the name can be a qualified method name or a file name
* and a line number where the operation is called. A best practice is to use
* the same display name at the same call point in an application.
* This makes it easier to correlate spans in different traces.
* This field is semantically required to be set to non-empty string.
* When null or empty string received - receiver may use string "name"
* as a replacement. There might be smarted algorithms implemented by
* receiver to fix the empty span name.
* This field is required.
*
* A description of the span's operation.
* For example, the name can be a qualified method name or a file name
* and a line number where the operation is called. A best practice is to use
* the same display name at the same call point in an application.
* This makes it easier to correlate spans in different traces.
* This field is semantically required to be set to non-empty string.
* When null or empty string received - receiver may use string "name"
* as a replacement. There might be smarted algorithms implemented by
* receiver to fix the empty span name.
* This field is required.
*
* Distinguishes between spans generated in a particular context. For example,
* two spans with the same name may be distinguished using `CLIENT` (caller)
* and `SERVER` (callee) to identify queueing latency associated with the span.
*
*
* .opencensus.proto.trace.v1.Span.SpanKind kind = 14;
*/
public int getKindValue() {
return kind_;
}
/**
*
* Distinguishes between spans generated in a particular context. For example,
* two spans with the same name may be distinguished using `CLIENT` (caller)
* and `SERVER` (callee) to identify queueing latency associated with the span.
*
* Distinguishes between spans generated in a particular context. For example,
* two spans with the same name may be distinguished using `CLIENT` (caller)
* and `SERVER` (callee) to identify queueing latency associated with the span.
*
*
* .opencensus.proto.trace.v1.Span.SpanKind kind = 14;
*/
public io.opencensus.proto.trace.v1.Span.SpanKind getKind() {
@SuppressWarnings("deprecation")
io.opencensus.proto.trace.v1.Span.SpanKind result = io.opencensus.proto.trace.v1.Span.SpanKind.valueOf(kind_);
return result == null ? io.opencensus.proto.trace.v1.Span.SpanKind.UNRECOGNIZED : result;
}
/**
*
* Distinguishes between spans generated in a particular context. For example,
* two spans with the same name may be distinguished using `CLIENT` (caller)
* and `SERVER` (callee) to identify queueing latency associated with the span.
*
*
* .opencensus.proto.trace.v1.Span.SpanKind kind = 14;
*/
public Builder setKind(io.opencensus.proto.trace.v1.Span.SpanKind value) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Distinguishes between spans generated in a particular context. For example,
* two spans with the same name may be distinguished using `CLIENT` (caller)
* and `SERVER` (callee) to identify queueing latency associated with the span.
*
* The start time of the span. On the client side, this is the time kept by
* the local machine where the span execution starts. On the server side, this
* is the time when the server's application handler starts running.
* This field is semantically required. When not set on receive -
* receiver should set it to the value of end_time field if it was
* set. Or to the current time if neither was set. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The start time of the span. On the client side, this is the time kept by
* the local machine where the span execution starts. On the server side, this
* is the time when the server's application handler starts running.
* This field is semantically required. When not set on receive -
* receiver should set it to the value of end_time field if it was
* set. Or to the current time if neither was set. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The start time of the span. On the client side, this is the time kept by
* the local machine where the span execution starts. On the server side, this
* is the time when the server's application handler starts running.
* This field is semantically required. When not set on receive -
* receiver should set it to the value of end_time field if it was
* set. Or to the current time if neither was set. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
*
* .google.protobuf.Timestamp start_time = 5;
*/
public Builder setStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startTime_ = value;
onChanged();
} else {
startTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The start time of the span. On the client side, this is the time kept by
* the local machine where the span execution starts. On the server side, this
* is the time when the server's application handler starts running.
* This field is semantically required. When not set on receive -
* receiver should set it to the value of end_time field if it was
* set. Or to the current time if neither was set. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The start time of the span. On the client side, this is the time kept by
* the local machine where the span execution starts. On the server side, this
* is the time when the server's application handler starts running.
* This field is semantically required. When not set on receive -
* receiver should set it to the value of end_time field if it was
* set. Or to the current time if neither was set. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The start time of the span. On the client side, this is the time kept by
* the local machine where the span execution starts. On the server side, this
* is the time when the server's application handler starts running.
* This field is semantically required. When not set on receive -
* receiver should set it to the value of end_time field if it was
* set. Or to the current time if neither was set. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The start time of the span. On the client side, this is the time kept by
* the local machine where the span execution starts. On the server side, this
* is the time when the server's application handler starts running.
* This field is semantically required. When not set on receive -
* receiver should set it to the value of end_time field if it was
* set. Or to the current time if neither was set. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The start time of the span. On the client side, this is the time kept by
* the local machine where the span execution starts. On the server side, this
* is the time when the server's application handler starts running.
* This field is semantically required. When not set on receive -
* receiver should set it to the value of end_time field if it was
* set. Or to the current time if neither was set. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The start time of the span. On the client side, this is the time kept by
* the local machine where the span execution starts. On the server side, this
* is the time when the server's application handler starts running.
* This field is semantically required. When not set on receive -
* receiver should set it to the value of end_time field if it was
* set. Or to the current time if neither was set. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The end time of the span. On the client side, this is the time kept by
* the local machine where the span execution ends. On the server side, this
* is the time when the server application handler stops running.
* This field is semantically required. When not set on receive -
* receiver should set it to start_time value. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The end time of the span. On the client side, this is the time kept by
* the local machine where the span execution ends. On the server side, this
* is the time when the server application handler stops running.
* This field is semantically required. When not set on receive -
* receiver should set it to start_time value. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The end time of the span. On the client side, this is the time kept by
* the local machine where the span execution ends. On the server side, this
* is the time when the server application handler stops running.
* This field is semantically required. When not set on receive -
* receiver should set it to start_time value. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
*
* .google.protobuf.Timestamp end_time = 6;
*/
public Builder setEndTime(com.google.protobuf.Timestamp value) {
if (endTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
endTime_ = value;
onChanged();
} else {
endTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The end time of the span. On the client side, this is the time kept by
* the local machine where the span execution ends. On the server side, this
* is the time when the server application handler stops running.
* This field is semantically required. When not set on receive -
* receiver should set it to start_time value. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The end time of the span. On the client side, this is the time kept by
* the local machine where the span execution ends. On the server side, this
* is the time when the server application handler stops running.
* This field is semantically required. When not set on receive -
* receiver should set it to start_time value. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The end time of the span. On the client side, this is the time kept by
* the local machine where the span execution ends. On the server side, this
* is the time when the server application handler stops running.
* This field is semantically required. When not set on receive -
* receiver should set it to start_time value. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The end time of the span. On the client side, this is the time kept by
* the local machine where the span execution ends. On the server side, this
* is the time when the server application handler stops running.
* This field is semantically required. When not set on receive -
* receiver should set it to start_time value. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The end time of the span. On the client side, this is the time kept by
* the local machine where the span execution ends. On the server side, this
* is the time when the server application handler stops running.
* This field is semantically required. When not set on receive -
* receiver should set it to start_time value. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* The end time of the span. On the client side, this is the time kept by
* the local machine where the span execution ends. On the server side, this
* is the time when the server application handler stops running.
* This field is semantically required. When not set on receive -
* receiver should set it to start_time value. It is important to
* keep end_time > start_time for consistency.
* This field is required.
*
* An optional final status for this span. Semantically when Status
* wasn't set it is means span ended without errors and assume
* Status.Ok (code = 0).
*
* An optional final status for this span. Semantically when Status
* wasn't set it is means span ended without errors and assume
* Status.Ok (code = 0).
*
* An optional final status for this span. Semantically when Status
* wasn't set it is means span ended without errors and assume
* Status.Ok (code = 0).
*
*
* .opencensus.proto.trace.v1.Status status = 11;
*/
public Builder setStatus(io.opencensus.proto.trace.v1.Status value) {
if (statusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
status_ = value;
onChanged();
} else {
statusBuilder_.setMessage(value);
}
return this;
}
/**
*
* An optional final status for this span. Semantically when Status
* wasn't set it is means span ended without errors and assume
* Status.Ok (code = 0).
*
* An optional final status for this span. Semantically when Status
* wasn't set it is means span ended without errors and assume
* Status.Ok (code = 0).
*
* An optional final status for this span. Semantically when Status
* wasn't set it is means span ended without errors and assume
* Status.Ok (code = 0).
*
* An optional final status for this span. Semantically when Status
* wasn't set it is means span ended without errors and assume
* Status.Ok (code = 0).
*
*
* .opencensus.proto.trace.v1.Status status = 11;
*/
public io.opencensus.proto.trace.v1.Status.Builder getStatusBuilder() {
onChanged();
return getStatusFieldBuilder().getBuilder();
}
/**
*
* An optional final status for this span. Semantically when Status
* wasn't set it is means span ended without errors and assume
* Status.Ok (code = 0).
*
* An optional final status for this span. Semantically when Status
* wasn't set it is means span ended without errors and assume
* Status.Ok (code = 0).
*
* An optional resource that is associated with this span. If not set, this span
* should be part of a batch that does include the resource information, unless resource
* information is unknown.
*
* An optional resource that is associated with this span. If not set, this span
* should be part of a batch that does include the resource information, unless resource
* information is unknown.
*
* An optional resource that is associated with this span. If not set, this span
* should be part of a batch that does include the resource information, unless resource
* information is unknown.
*
*
* .opencensus.proto.resource.v1.Resource resource = 16;
*/
public Builder setResource(io.opencensus.proto.resource.v1.Resource value) {
if (resourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
resource_ = value;
onChanged();
} else {
resourceBuilder_.setMessage(value);
}
return this;
}
/**
*
* An optional resource that is associated with this span. If not set, this span
* should be part of a batch that does include the resource information, unless resource
* information is unknown.
*
* An optional resource that is associated with this span. If not set, this span
* should be part of a batch that does include the resource information, unless resource
* information is unknown.
*
* An optional resource that is associated with this span. If not set, this span
* should be part of a batch that does include the resource information, unless resource
* information is unknown.
*
* An optional resource that is associated with this span. If not set, this span
* should be part of a batch that does include the resource information, unless resource
* information is unknown.
*
* An optional resource that is associated with this span. If not set, this span
* should be part of a batch that does include the resource information, unless resource
* information is unknown.
*
* An optional resource that is associated with this span. If not set, this span
* should be part of a batch that does include the resource information, unless resource
* information is unknown.
*
* A highly recommended but not required flag that identifies when a
* trace crosses a process boundary. True when the parent_span belongs
* to the same process as the current span. This flag is most commonly
* used to indicate the need to adjust time as clocks in different
* processes may not be synchronized.
*
* A highly recommended but not required flag that identifies when a
* trace crosses a process boundary. True when the parent_span belongs
* to the same process as the current span. This flag is most commonly
* used to indicate the need to adjust time as clocks in different
* processes may not be synchronized.
*
* A highly recommended but not required flag that identifies when a
* trace crosses a process boundary. True when the parent_span belongs
* to the same process as the current span. This flag is most commonly
* used to indicate the need to adjust time as clocks in different
* processes may not be synchronized.
*
*
* .google.protobuf.BoolValue same_process_as_parent_span = 12;
*/
public Builder setSameProcessAsParentSpan(com.google.protobuf.BoolValue value) {
if (sameProcessAsParentSpanBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sameProcessAsParentSpan_ = value;
onChanged();
} else {
sameProcessAsParentSpanBuilder_.setMessage(value);
}
return this;
}
/**
*
* A highly recommended but not required flag that identifies when a
* trace crosses a process boundary. True when the parent_span belongs
* to the same process as the current span. This flag is most commonly
* used to indicate the need to adjust time as clocks in different
* processes may not be synchronized.
*
* A highly recommended but not required flag that identifies when a
* trace crosses a process boundary. True when the parent_span belongs
* to the same process as the current span. This flag is most commonly
* used to indicate the need to adjust time as clocks in different
* processes may not be synchronized.
*
* A highly recommended but not required flag that identifies when a
* trace crosses a process boundary. True when the parent_span belongs
* to the same process as the current span. This flag is most commonly
* used to indicate the need to adjust time as clocks in different
* processes may not be synchronized.
*
* A highly recommended but not required flag that identifies when a
* trace crosses a process boundary. True when the parent_span belongs
* to the same process as the current span. This flag is most commonly
* used to indicate the need to adjust time as clocks in different
* processes may not be synchronized.
*
* A highly recommended but not required flag that identifies when a
* trace crosses a process boundary. True when the parent_span belongs
* to the same process as the current span. This flag is most commonly
* used to indicate the need to adjust time as clocks in different
* processes may not be synchronized.
*
* A highly recommended but not required flag that identifies when a
* trace crosses a process boundary. True when the parent_span belongs
* to the same process as the current span. This flag is most commonly
* used to indicate the need to adjust time as clocks in different
* processes may not be synchronized.
*
* An optional number of child spans that were generated while this span
* was active. If set, allows an implementation to detect missing child spans.
*
* An optional number of child spans that were generated while this span
* was active. If set, allows an implementation to detect missing child spans.
*
* An optional number of child spans that were generated while this span
* was active. If set, allows an implementation to detect missing child spans.
*
*
* .google.protobuf.UInt32Value child_span_count = 13;
*/
public Builder setChildSpanCount(com.google.protobuf.UInt32Value value) {
if (childSpanCountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
childSpanCount_ = value;
onChanged();
} else {
childSpanCountBuilder_.setMessage(value);
}
return this;
}
/**
*
* An optional number of child spans that were generated while this span
* was active. If set, allows an implementation to detect missing child spans.
*
* An optional number of child spans that were generated while this span
* was active. If set, allows an implementation to detect missing child spans.
*
* An optional number of child spans that were generated while this span
* was active. If set, allows an implementation to detect missing child spans.
*
* An optional number of child spans that were generated while this span
* was active. If set, allows an implementation to detect missing child spans.
*
* An optional number of child spans that were generated while this span
* was active. If set, allows an implementation to detect missing child spans.
*
* An optional number of child spans that were generated while this span
* was active. If set, allows an implementation to detect missing child spans.
*
*
* .google.protobuf.UInt32Value child_span_count = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>
getChildSpanCountFieldBuilder() {
if (childSpanCountBuilder_ == null) {
childSpanCountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder>(
getChildSpanCount(),
getParentForChildren(),
isClean());
childSpanCount_ = null;
}
return childSpanCountBuilder_;
}
@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.Span)
}
// @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.Span)
private static final io.opencensus.proto.trace.v1.Span DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.opencensus.proto.trace.v1.Span();
}
public static io.opencensus.proto.trace.v1.Span getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Span parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Span(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.Span getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}