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

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

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

package io.opencensus.proto.trace.v1;

/**
 * 
 * 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.
   * 
* * Protobuf enum {@code opencensus.proto.trace.v1.Span.SpanKind} */ public enum SpanKind implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Unspecified.
     * 
* * SPAN_KIND_UNSPECIFIED = 0; */ SPAN_KIND_UNSPECIFIED(0), /** *
     * Indicates that the span covers server-side handling of an RPC or other
     * remote network request.
     * 
* * SERVER = 1; */ SERVER(1), /** *
     * Indicates that the span covers the client-side wrapper around an RPC or
     * other remote request.
     * 
* * CLIENT = 2; */ CLIENT(2), UNRECOGNIZED(-1), ; /** *
     * Unspecified.
     * 
* * 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.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ java.util.List getEntriesList(); /** *
     * A list of entries that represent the Tracestate.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ io.opencensus.proto.trace.v1.Span.Tracestate.Entry getEntries(int index); /** *
     * A list of entries that represent the Tracestate.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ int getEntriesCount(); /** *
     * A list of entries that represent the Tracestate.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ java.util.List getEntriesOrBuilderList(); /** *
     * A list of entries that represent the Tracestate.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ io.opencensus.proto.trace.v1.Span.Tracestate.EntryOrBuilder getEntriesOrBuilder( int index); } /** *
   * 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 '/'.
       * 
* * string key = 1; */ java.lang.String getKey(); /** *
       * 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; */ com.google.protobuf.ByteString getKeyBytes(); /** *
       * 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; */ java.lang.String getValue(); /** *
       * 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 '/'.
       * 
* * string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } } /** *
       * 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.
       * 
* * string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** *
       * 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 '/'.
         * 
* * string key = 1; */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * 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 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; } } /** *
         * 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 Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; onChanged(); return this; } /** *
         * 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 Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** *
         * 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 Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; onChanged(); return this; } private 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.
         * 
* * string value = 2; */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** *
         * 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 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; } } /** *
         * 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.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ public java.util.List getEntriesList() { return entries_; } /** *
     * A list of entries that represent the Tracestate.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ public java.util.List getEntriesOrBuilderList() { return entries_; } /** *
     * A list of entries that represent the Tracestate.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ public int getEntriesCount() { return entries_.size(); } /** *
     * 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.Entry getEntries(int index) { return entries_.get(index); } /** *
     * 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.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { return entriesBuilder_.getMessageList(); } } /** *
       * A list of entries that represent the Tracestate.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** *
       * 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.Entry getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(index); } } /** *
       * A list of entries that represent the Tracestate.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ public Builder setEntries( int index, io.opencensus.proto.trace.v1.Span.Tracestate.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); } else { entriesBuilder_.setMessage(index, value); } return this; } /** *
       * A list of entries that represent the Tracestate.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ public Builder setEntries( int index, io.opencensus.proto.trace.v1.Span.Tracestate.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A list of entries that represent the Tracestate.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ public Builder addEntries(io.opencensus.proto.trace.v1.Span.Tracestate.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); } else { entriesBuilder_.addMessage(value); } return this; } /** *
       * A list of entries that represent the Tracestate.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ public Builder addEntries( int index, io.opencensus.proto.trace.v1.Span.Tracestate.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(index, value); onChanged(); } else { entriesBuilder_.addMessage(index, value); } return this; } /** *
       * A list of entries that represent the Tracestate.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ public Builder addEntries( io.opencensus.proto.trace.v1.Span.Tracestate.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A list of entries that represent the Tracestate.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ public Builder addEntries( int index, io.opencensus.proto.trace.v1.Span.Tracestate.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A list of entries that represent the Tracestate.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); } return this; } /** *
       * A list of entries that represent the Tracestate.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ public Builder clearEntries() { if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entriesBuilder_.clear(); } return this; } /** *
       * A list of entries that represent the Tracestate.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.remove(index); onChanged(); } else { entriesBuilder_.remove(index); } return this; } /** *
       * 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.Entry.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** *
       * 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) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** *
       * A list of entries that represent the Tracestate.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ public java.util.List getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entries_); } } /** *
       * 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.Entry.Builder addEntriesBuilder() { return getEntriesFieldBuilder().addBuilder( io.opencensus.proto.trace.v1.Span.Tracestate.Entry.getDefaultInstance()); } /** *
       * 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.Entry.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder().addBuilder( index, io.opencensus.proto.trace.v1.Span.Tracestate.Entry.getDefaultInstance()); } /** *
       * 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
     * 
* * map<string, .opencensus.proto.trace.v1.AttributeValue> attribute_map = 1; */ int getAttributeMapCount(); /** *
     * 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; */ boolean containsAttributeMap( java.lang.String key); /** * Use {@link #getAttributeMapMap()} instead. */ @java.lang.Deprecated java.util.Map getAttributeMap(); /** *
     * 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; */ java.util.Map 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
     * 
* * map<string, .opencensus.proto.trace.v1.AttributeValue> attribute_map = 1; */ io.opencensus.proto.trace.v1.AttributeValue getAttributeMapOrDefault( java.lang.String key, io.opencensus.proto.trace.v1.AttributeValue defaultValue); /** *
     * 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; */ io.opencensus.proto.trace.v1.AttributeValue getAttributeMapOrThrow( java.lang.String key); /** *
     * 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; */ int getDroppedAttributesCount(); } /** *
   * 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
     * 
* * map<string, .opencensus.proto.trace.v1.AttributeValue> attribute_map = 1; */ public java.util.Map getAttributeMapMap() { return internalGetAttributeMap().getMap(); } /** *
     * 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 getAttributeMapOrDefault( java.lang.String key, io.opencensus.proto.trace.v1.AttributeValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttributeMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * 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.
     * 
* * int32 dropped_attributes_count = 2; */ public int getDroppedAttributesCount() { return droppedAttributesCount_; } 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 { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAttributeMap(), AttributeMapDefaultEntryHolder.defaultEntry, 1); if (droppedAttributesCount_ != 0) { output.writeInt32(2, droppedAttributesCount_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetAttributeMap().getMap().entrySet()) { com.google.protobuf.MapEntry attributeMap__ = AttributeMapDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, attributeMap__); } if (droppedAttributesCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, droppedAttributesCount_); } 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.Attributes)) { return super.equals(obj); } io.opencensus.proto.trace.v1.Span.Attributes other = (io.opencensus.proto.trace.v1.Span.Attributes) obj; if (!internalGetAttributeMap().equals( other.internalGetAttributeMap())) return false; if (getDroppedAttributesCount() != other.getDroppedAttributesCount()) 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 (!internalGetAttributeMap().getMap().isEmpty()) { hash = (37 * hash) + ATTRIBUTE_MAP_FIELD_NUMBER; hash = (53 * hash) + internalGetAttributeMap().hashCode(); } hash = (37 * hash) + DROPPED_ATTRIBUTES_COUNT_FIELD_NUMBER; hash = (53 * hash) + getDroppedAttributesCount(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.opencensus.proto.trace.v1.Span.Attributes parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.Span.Attributes 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.Attributes parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.Span.Attributes 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.Attributes parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.Span.Attributes 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.Attributes 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.Attributes 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.Attributes 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.Attributes 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.Attributes 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.Attributes 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.Attributes 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 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
       * 
* * map<string, .opencensus.proto.trace.v1.AttributeValue> attribute_map = 1; */ public java.util.Map getAttributeMapMap() { return internalGetAttributeMap().getMap(); } /** *
       * 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 getAttributeMapOrDefault( java.lang.String key, io.opencensus.proto.trace.v1.AttributeValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetAttributeMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * 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
       * 
* * map<string, .opencensus.proto.trace.v1.AttributeValue> attribute_map = 1; */ public Builder putAllAttributeMap( java.util.Map values) { internalGetMutableAttributeMap().getMutableMap() .putAll(values); return this; } 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.
       * 
* * 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.
       * 
* * int32 dropped_attributes_count = 2; */ public Builder setDroppedAttributesCount(int value) { droppedAttributesCount_ = value; onChanged(); return this; } /** *
       * 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 { /** *
     * The time the event occurred.
     * 
* * .google.protobuf.Timestamp time = 1; */ boolean hasTime(); /** *
     * The time the event occurred.
     * 
* * .google.protobuf.Timestamp time = 1; */ com.google.protobuf.Timestamp getTime(); /** *
     * The time the event occurred.
     * 
* * .google.protobuf.Timestamp time = 1; */ com.google.protobuf.TimestampOrBuilder getTimeOrBuilder(); /** *
     * A text annotation with a set of attributes.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; */ boolean hasAnnotation(); /** *
     * A text annotation with a set of attributes.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; */ io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation getAnnotation(); /** *
     * A text annotation with a set of attributes.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; */ io.opencensus.proto.trace.v1.Span.TimeEvent.AnnotationOrBuilder getAnnotationOrBuilder(); /** *
     * An event describing a message sent/received between Spans.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent message_event = 3; */ boolean hasMessageEvent(); /** *
     * An event describing a message sent/received between Spans.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent message_event = 3; */ io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent getMessageEvent(); /** *
     * An event describing a message sent/received between Spans.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent message_event = 3; */ io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEventOrBuilder getMessageEventOrBuilder(); public io.opencensus.proto.trace.v1.Span.TimeEvent.ValueCase getValueCase(); } /** *
   * A time-stamped annotation or message event in the Span.
   * 
* * Protobuf type {@code opencensus.proto.trace.v1.Span.TimeEvent} */ public static final class TimeEvent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opencensus.proto.trace.v1.Span.TimeEvent) TimeEventOrBuilder { private static final long serialVersionUID = 0L; // Use TimeEvent.newBuilder() to construct. private TimeEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TimeEvent() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TimeEvent(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TimeEvent( 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: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (time_ != null) { subBuilder = time_.toBuilder(); } time_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(time_); time_ = subBuilder.buildPartial(); } break; } case 18: { io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.Builder subBuilder = null; if (valueCase_ == 2) { subBuilder = ((io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation) value_).toBuilder(); } value_ = input.readMessage(io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 2; break; } case 26: { io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Builder subBuilder = null; if (valueCase_ == 3) { subBuilder = ((io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) value_).toBuilder(); } value_ = input.readMessage(io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) value_); value_ = subBuilder.buildPartial(); } valueCase_ = 3; 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_TimeEvent_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_TimeEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencensus.proto.trace.v1.Span.TimeEvent.class, io.opencensus.proto.trace.v1.Span.TimeEvent.Builder.class); } public interface AnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:opencensus.proto.trace.v1.Span.TimeEvent.Annotation) com.google.protobuf.MessageOrBuilder { /** *
       * A user-supplied message describing the event.
       * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; */ boolean hasDescription(); /** *
       * A user-supplied message describing the event.
       * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; */ io.opencensus.proto.trace.v1.TruncatableString getDescription(); /** *
       * A user-supplied message describing the event.
       * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; */ io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getDescriptionOrBuilder(); /** *
       * A set of attributes on the annotation.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; */ boolean hasAttributes(); /** *
       * A set of attributes on the annotation.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; */ io.opencensus.proto.trace.v1.Span.Attributes getAttributes(); /** *
       * A set of attributes on the annotation.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; */ io.opencensus.proto.trace.v1.Span.AttributesOrBuilder getAttributesOrBuilder(); } /** *
     * A text annotation with a set of attributes.
     * 
* * Protobuf type {@code opencensus.proto.trace.v1.Span.TimeEvent.Annotation} */ public static final class Annotation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opencensus.proto.trace.v1.Span.TimeEvent.Annotation) AnnotationOrBuilder { private static final long serialVersionUID = 0L; // Use Annotation.newBuilder() to construct. private Annotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Annotation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Annotation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Annotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.opencensus.proto.trace.v1.TruncatableString.Builder subBuilder = null; if (description_ != null) { subBuilder = description_.toBuilder(); } description_ = input.readMessage(io.opencensus.proto.trace.v1.TruncatableString.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(description_); description_ = subBuilder.buildPartial(); } break; } case 18: { 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_TimeEvent_Annotation_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_TimeEvent_Annotation_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.class, io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.Builder.class); } public static final int DESCRIPTION_FIELD_NUMBER = 1; private io.opencensus.proto.trace.v1.TruncatableString description_; /** *
       * A user-supplied message describing the event.
       * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; */ public boolean hasDescription() { return description_ != null; } /** *
       * A user-supplied message describing the event.
       * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; */ public io.opencensus.proto.trace.v1.TruncatableString getDescription() { return description_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : description_; } /** *
       * A user-supplied message describing the event.
       * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; */ public io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getDescriptionOrBuilder() { return getDescription(); } public static final int ATTRIBUTES_FIELD_NUMBER = 2; private io.opencensus.proto.trace.v1.Span.Attributes attributes_; /** *
       * A set of attributes on the annotation.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; */ public boolean hasAttributes() { return attributes_ != null; } /** *
       * A set of attributes on the annotation.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; */ public io.opencensus.proto.trace.v1.Span.Attributes getAttributes() { return attributes_ == null ? io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance() : attributes_; } /** *
       * A set of attributes on the annotation.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; */ public io.opencensus.proto.trace.v1.Span.AttributesOrBuilder getAttributesOrBuilder() { return getAttributes(); } 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 (description_ != null) { output.writeMessage(1, getDescription()); } if (attributes_ != null) { output.writeMessage(2, getAttributes()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (description_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDescription()); } if (attributes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAttributes()); } 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.TimeEvent.Annotation)) { return super.equals(obj); } io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation other = (io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation) obj; if (hasDescription() != other.hasDescription()) return false; if (hasDescription()) { if (!getDescription() .equals(other.getDescription())) return false; } if (hasAttributes() != other.hasAttributes()) return false; if (hasAttributes()) { if (!getAttributes() .equals(other.getAttributes())) 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 (hasDescription()) { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); } if (hasAttributes()) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + getAttributes().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation 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.TimeEvent.Annotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation 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.TimeEvent.Annotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation 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.TimeEvent.Annotation 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.TimeEvent.Annotation 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.TimeEvent.Annotation 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.TimeEvent.Annotation 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.TimeEvent.Annotation 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.TimeEvent.Annotation 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.TimeEvent.Annotation 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 text annotation with a set of attributes.
       * 
* * Protobuf type {@code opencensus.proto.trace.v1.Span.TimeEvent.Annotation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opencensus.proto.trace.v1.Span.TimeEvent.Annotation) io.opencensus.proto.trace.v1.Span.TimeEvent.AnnotationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_TimeEvent_Annotation_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_TimeEvent_Annotation_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.class, io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.Builder.class); } // Construct using io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (descriptionBuilder_ == null) { description_ = null; } else { description_ = null; descriptionBuilder_ = null; } 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_TimeEvent_Annotation_descriptor; } @java.lang.Override public io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation getDefaultInstanceForType() { return io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.getDefaultInstance(); } @java.lang.Override public io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation build() { io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation buildPartial() { io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation result = new io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation(this); if (descriptionBuilder_ == null) { result.description_ = description_; } else { result.description_ = descriptionBuilder_.build(); } 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.TimeEvent.Annotation) { return mergeFrom((io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation other) { if (other == io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.getDefaultInstance()) return this; if (other.hasDescription()) { mergeDescription(other.getDescription()); } 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.TimeEvent.Annotation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.opencensus.proto.trace.v1.TruncatableString description_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder> descriptionBuilder_; /** *
         * A user-supplied message describing the event.
         * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; */ public boolean hasDescription() { return descriptionBuilder_ != null || description_ != null; } /** *
         * A user-supplied message describing the event.
         * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; */ public io.opencensus.proto.trace.v1.TruncatableString getDescription() { if (descriptionBuilder_ == null) { return description_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : description_; } else { return descriptionBuilder_.getMessage(); } } /** *
         * A user-supplied message describing the event.
         * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; */ public Builder setDescription(io.opencensus.proto.trace.v1.TruncatableString value) { if (descriptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); } else { descriptionBuilder_.setMessage(value); } return this; } /** *
         * A user-supplied message describing the event.
         * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; */ public Builder setDescription( io.opencensus.proto.trace.v1.TruncatableString.Builder builderForValue) { if (descriptionBuilder_ == null) { description_ = builderForValue.build(); onChanged(); } else { descriptionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * A user-supplied message describing the event.
         * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; */ public Builder mergeDescription(io.opencensus.proto.trace.v1.TruncatableString value) { if (descriptionBuilder_ == null) { if (description_ != null) { description_ = io.opencensus.proto.trace.v1.TruncatableString.newBuilder(description_).mergeFrom(value).buildPartial(); } else { description_ = value; } onChanged(); } else { descriptionBuilder_.mergeFrom(value); } return this; } /** *
         * A user-supplied message describing the event.
         * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; */ public Builder clearDescription() { if (descriptionBuilder_ == null) { description_ = null; onChanged(); } else { description_ = null; descriptionBuilder_ = null; } return this; } /** *
         * A user-supplied message describing the event.
         * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; */ public io.opencensus.proto.trace.v1.TruncatableString.Builder getDescriptionBuilder() { onChanged(); return getDescriptionFieldBuilder().getBuilder(); } /** *
         * A user-supplied message describing the event.
         * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; */ public io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getDescriptionOrBuilder() { if (descriptionBuilder_ != null) { return descriptionBuilder_.getMessageOrBuilder(); } else { return description_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : description_; } } /** *
         * A user-supplied message describing the event.
         * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder> getDescriptionFieldBuilder() { if (descriptionBuilder_ == null) { descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder>( getDescription(), getParentForChildren(), isClean()); description_ = null; } return descriptionBuilder_; } private io.opencensus.proto.trace.v1.Span.Attributes attributes_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.Attributes, io.opencensus.proto.trace.v1.Span.Attributes.Builder, io.opencensus.proto.trace.v1.Span.AttributesOrBuilder> attributesBuilder_; /** *
         * A set of attributes on the annotation.
         * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; */ public boolean hasAttributes() { return attributesBuilder_ != null || attributes_ != null; } /** *
         * A set of attributes on the annotation.
         * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; */ public io.opencensus.proto.trace.v1.Span.Attributes getAttributes() { if (attributesBuilder_ == null) { return attributes_ == null ? io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance() : attributes_; } else { return attributesBuilder_.getMessage(); } } /** *
         * A set of attributes on the annotation.
         * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; */ public Builder setAttributes(io.opencensus.proto.trace.v1.Span.Attributes value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attributes_ = value; onChanged(); } else { attributesBuilder_.setMessage(value); } return this; } /** *
         * A set of attributes on the annotation.
         * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; */ public Builder setAttributes( io.opencensus.proto.trace.v1.Span.Attributes.Builder builderForValue) { if (attributesBuilder_ == null) { attributes_ = builderForValue.build(); onChanged(); } else { attributesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * A set of attributes on the annotation.
         * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; */ public Builder mergeAttributes(io.opencensus.proto.trace.v1.Span.Attributes value) { if (attributesBuilder_ == null) { if (attributes_ != null) { attributes_ = io.opencensus.proto.trace.v1.Span.Attributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); } else { attributes_ = value; } onChanged(); } else { attributesBuilder_.mergeFrom(value); } return this; } /** *
         * A set of attributes on the annotation.
         * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; */ public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = null; onChanged(); } else { attributes_ = null; attributesBuilder_ = null; } return this; } /** *
         * A set of attributes on the annotation.
         * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; */ public io.opencensus.proto.trace.v1.Span.Attributes.Builder getAttributesBuilder() { onChanged(); return getAttributesFieldBuilder().getBuilder(); } /** *
         * A set of attributes on the annotation.
         * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; */ public io.opencensus.proto.trace.v1.Span.AttributesOrBuilder getAttributesOrBuilder() { if (attributesBuilder_ != null) { return attributesBuilder_.getMessageOrBuilder(); } else { return attributes_ == null ? io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance() : attributes_; } } /** *
         * A set of attributes on the annotation.
         * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.Attributes, io.opencensus.proto.trace.v1.Span.Attributes.Builder, io.opencensus.proto.trace.v1.Span.AttributesOrBuilder> getAttributesFieldBuilder() { if (attributesBuilder_ == null) { attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.Attributes, io.opencensus.proto.trace.v1.Span.Attributes.Builder, io.opencensus.proto.trace.v1.Span.AttributesOrBuilder>( getAttributes(), getParentForChildren(), isClean()); attributes_ = null; } return attributesBuilder_; } @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.TimeEvent.Annotation) } // @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.Span.TimeEvent.Annotation) private static final io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation(); } public static io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Annotation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Annotation(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.TimeEvent.Annotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MessageEventOrBuilder extends // @@protoc_insertion_point(interface_extends:opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) com.google.protobuf.MessageOrBuilder { /** *
       * The type of MessageEvent. Indicates whether the message was sent or
       * received.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type type = 1; */ int getTypeValue(); /** *
       * The type of MessageEvent. Indicates whether the message was sent or
       * received.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type type = 1; */ io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type getType(); /** *
       * 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.
       * 
* * uint64 uncompressed_size = 3; */ long getUncompressedSize(); /** *
       * The number of compressed bytes sent or received. If zero, assumed to
       * be the same size as uncompressed.
       * 
* * uint64 compressed_size = 4; */ long getCompressedSize(); } /** *
     * An event describing a message sent/received between Spans.
     * 
* * Protobuf type {@code opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent} */ public static final class MessageEvent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) MessageEventOrBuilder { private static final long serialVersionUID = 0L; // Use MessageEvent.newBuilder() to construct. private MessageEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MessageEvent() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MessageEvent(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MessageEvent( 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 8: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 16: { id_ = input.readUInt64(); break; } case 24: { uncompressedSize_ = input.readUInt64(); break; } case 32: { compressedSize_ = input.readUInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_TimeEvent_MessageEvent_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_TimeEvent_MessageEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.class, io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Builder.class); } /** *
       * Indicates whether the message was sent or received.
       * 
* * Protobuf enum {@code opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** *
         * Unknown event type.
         * 
* * TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** *
         * Indicates a sent message.
         * 
* * SENT = 1; */ SENT(1), /** *
         * Indicates a received message.
         * 
* * RECEIVED = 2; */ RECEIVED(2), UNRECOGNIZED(-1), ; /** *
         * Unknown event type.
         * 
* * 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.
       * 
* * uint64 compressed_size = 4; */ public long getCompressedSize() { return compressedSize_; } 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 (type_ != io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, type_); } if (id_ != 0L) { output.writeUInt64(2, id_); } if (uncompressedSize_ != 0L) { output.writeUInt64(3, uncompressedSize_); } if (compressedSize_ != 0L) { output.writeUInt64(4, compressedSize_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (id_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, id_); } if (uncompressedSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, uncompressedSize_); } if (compressedSize_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, compressedSize_); } 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.TimeEvent.MessageEvent)) { return super.equals(obj); } io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent other = (io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) obj; if (type_ != other.type_) return false; if (getId() != other.getId()) return false; if (getUncompressedSize() != other.getUncompressedSize()) return false; if (getCompressedSize() != other.getCompressedSize()) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getId()); hash = (37 * hash) + UNCOMPRESSED_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUncompressedSize()); hash = (37 * hash) + COMPRESSED_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCompressedSize()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent 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.TimeEvent.MessageEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent 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.TimeEvent.MessageEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent 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.TimeEvent.MessageEvent 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.TimeEvent.MessageEvent 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.TimeEvent.MessageEvent 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.TimeEvent.MessageEvent 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.TimeEvent.MessageEvent 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.TimeEvent.MessageEvent 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.TimeEvent.MessageEvent 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; } /** *
       * An event describing a message sent/received between Spans.
       * 
* * Protobuf type {@code opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_TimeEvent_MessageEvent_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_TimeEvent_MessageEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.class, io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Builder.class); } // Construct using io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.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(); type_ = 0; id_ = 0L; uncompressedSize_ = 0L; compressedSize_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_TimeEvent_MessageEvent_descriptor; } @java.lang.Override public io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent getDefaultInstanceForType() { return io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.getDefaultInstance(); } @java.lang.Override public io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent build() { io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent buildPartial() { io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent result = new io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent(this); result.type_ = type_; result.id_ = id_; result.uncompressedSize_ = uncompressedSize_; result.compressedSize_ = compressedSize_; 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.TimeEvent.MessageEvent) { return mergeFrom((io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent other) { if (other == io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getId() != 0L) { setId(other.getId()); } if (other.getUncompressedSize() != 0L) { setUncompressedSize(other.getUncompressedSize()); } if (other.getCompressedSize() != 0L) { setCompressedSize(other.getCompressedSize()); } 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.TimeEvent.MessageEvent parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int type_ = 0; /** *
         * 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 Builder setTypeValue(int value) { type_ = value; 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 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.
         * 
* * uint64 id = 2; */ public Builder setId(long value) { id_ = value; onChanged(); return this; } /** *
         * 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.
         * 
* * uint64 uncompressed_size = 3; */ public Builder setUncompressedSize(long value) { uncompressedSize_ = value; onChanged(); return this; } /** *
         * The number of uncompressed bytes sent or received.
         * 
* * uint64 uncompressed_size = 3; */ public Builder clearUncompressedSize() { uncompressedSize_ = 0L; onChanged(); return this; } private long compressedSize_ ; /** *
         * The number of compressed bytes sent or received. If zero, assumed to
         * be the same size as uncompressed.
         * 
* * uint64 compressed_size = 4; */ public long getCompressedSize() { return compressedSize_; } /** *
         * The number of compressed bytes sent or received. If zero, assumed to
         * be the same size as uncompressed.
         * 
* * uint64 compressed_size = 4; */ public Builder setCompressedSize(long value) { compressedSize_ = value; onChanged(); return this; } /** *
         * The number of compressed bytes sent or received. If zero, assumed to
         * be the same size as uncompressed.
         * 
* * uint64 compressed_size = 4; */ public Builder clearCompressedSize() { compressedSize_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) } // @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) private static final io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent(); } public static io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MessageEvent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MessageEvent(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.TimeEvent.MessageEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int valueCase_ = 0; private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite { ANNOTATION(2), MESSAGE_EVENT(3), VALUE_NOT_SET(0); private final int value; private ValueCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ValueCase valueOf(int value) { return forNumber(value); } public static ValueCase forNumber(int value) { switch (value) { case 2: return ANNOTATION; case 3: return MESSAGE_EVENT; case 0: return VALUE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public static final int TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp time_; /** *
     * The time the event occurred.
     * 
* * .google.protobuf.Timestamp time = 1; */ public boolean hasTime() { return time_ != null; } /** *
     * The time the event occurred.
     * 
* * .google.protobuf.Timestamp time = 1; */ public com.google.protobuf.Timestamp getTime() { return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; } /** *
     * The time the event occurred.
     * 
* * .google.protobuf.Timestamp time = 1; */ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { return getTime(); } public static final int ANNOTATION_FIELD_NUMBER = 2; /** *
     * A text annotation with a set of attributes.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; */ public boolean hasAnnotation() { return valueCase_ == 2; } /** *
     * A text annotation with a set of attributes.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; */ public io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation getAnnotation() { if (valueCase_ == 2) { return (io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation) value_; } return io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.getDefaultInstance(); } /** *
     * A text annotation with a set of attributes.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; */ public io.opencensus.proto.trace.v1.Span.TimeEvent.AnnotationOrBuilder getAnnotationOrBuilder() { if (valueCase_ == 2) { return (io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation) value_; } return io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.getDefaultInstance(); } public static final int MESSAGE_EVENT_FIELD_NUMBER = 3; /** *
     * An event describing a message sent/received between Spans.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent message_event = 3; */ public boolean hasMessageEvent() { return valueCase_ == 3; } /** *
     * An event describing a message sent/received between Spans.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent message_event = 3; */ public io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent getMessageEvent() { if (valueCase_ == 3) { return (io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) value_; } return io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.getDefaultInstance(); } /** *
     * An event describing a message sent/received between Spans.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent message_event = 3; */ public io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEventOrBuilder getMessageEventOrBuilder() { if (valueCase_ == 3) { return (io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) value_; } return io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.getDefaultInstance(); } 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 (time_ != null) { output.writeMessage(1, getTime()); } if (valueCase_ == 2) { output.writeMessage(2, (io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation) value_); } if (valueCase_ == 3) { output.writeMessage(3, (io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) value_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (time_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTime()); } if (valueCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation) value_); } if (valueCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) 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.TimeEvent)) { return super.equals(obj); } io.opencensus.proto.trace.v1.Span.TimeEvent other = (io.opencensus.proto.trace.v1.Span.TimeEvent) obj; if (hasTime() != other.hasTime()) return false; if (hasTime()) { if (!getTime() .equals(other.getTime())) return false; } if (!getValueCase().equals(other.getValueCase())) return false; switch (valueCase_) { case 2: if (!getAnnotation() .equals(other.getAnnotation())) return false; break; case 3: if (!getMessageEvent() .equals(other.getMessageEvent())) return false; break; case 0: default: } 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 (hasTime()) { hash = (37 * hash) + TIME_FIELD_NUMBER; hash = (53 * hash) + getTime().hashCode(); } switch (valueCase_) { case 2: hash = (37 * hash) + ANNOTATION_FIELD_NUMBER; hash = (53 * hash) + getAnnotation().hashCode(); break; case 3: hash = (37 * hash) + MESSAGE_EVENT_FIELD_NUMBER; hash = (53 * hash) + getMessageEvent().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.opencensus.proto.trace.v1.Span.TimeEvent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.Span.TimeEvent 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.TimeEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.Span.TimeEvent 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.TimeEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.Span.TimeEvent 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.TimeEvent 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.TimeEvent 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.TimeEvent 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.TimeEvent 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.TimeEvent 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.TimeEvent 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.TimeEvent 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 time-stamped annotation or message event in the Span.
     * 
* * Protobuf type {@code opencensus.proto.trace.v1.Span.TimeEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opencensus.proto.trace.v1.Span.TimeEvent) io.opencensus.proto.trace.v1.Span.TimeEventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opencensus.proto.trace.v1.TraceProto.internal_static_opencensus_proto_trace_v1_Span_TimeEvent_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_TimeEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencensus.proto.trace.v1.Span.TimeEvent.class, io.opencensus.proto.trace.v1.Span.TimeEvent.Builder.class); } // Construct using io.opencensus.proto.trace.v1.Span.TimeEvent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (timeBuilder_ == null) { time_ = null; } else { time_ = null; timeBuilder_ = null; } valueCase_ = 0; value_ = 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_TimeEvent_descriptor; } @java.lang.Override public io.opencensus.proto.trace.v1.Span.TimeEvent getDefaultInstanceForType() { return io.opencensus.proto.trace.v1.Span.TimeEvent.getDefaultInstance(); } @java.lang.Override public io.opencensus.proto.trace.v1.Span.TimeEvent build() { io.opencensus.proto.trace.v1.Span.TimeEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opencensus.proto.trace.v1.Span.TimeEvent buildPartial() { io.opencensus.proto.trace.v1.Span.TimeEvent result = new io.opencensus.proto.trace.v1.Span.TimeEvent(this); if (timeBuilder_ == null) { result.time_ = time_; } else { result.time_ = timeBuilder_.build(); } if (valueCase_ == 2) { if (annotationBuilder_ == null) { result.value_ = value_; } else { result.value_ = annotationBuilder_.build(); } } if (valueCase_ == 3) { if (messageEventBuilder_ == null) { result.value_ = value_; } else { result.value_ = messageEventBuilder_.build(); } } result.valueCase_ = valueCase_; 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.TimeEvent) { return mergeFrom((io.opencensus.proto.trace.v1.Span.TimeEvent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opencensus.proto.trace.v1.Span.TimeEvent other) { if (other == io.opencensus.proto.trace.v1.Span.TimeEvent.getDefaultInstance()) return this; if (other.hasTime()) { mergeTime(other.getTime()); } switch (other.getValueCase()) { case ANNOTATION: { mergeAnnotation(other.getAnnotation()); break; } case MESSAGE_EVENT: { mergeMessageEvent(other.getMessageEvent()); break; } case VALUE_NOT_SET: { break; } } 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.TimeEvent parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.opencensus.proto.trace.v1.Span.TimeEvent) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private com.google.protobuf.Timestamp time_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timeBuilder_; /** *
       * The time the event occurred.
       * 
* * .google.protobuf.Timestamp time = 1; */ public boolean hasTime() { return timeBuilder_ != null || time_ != null; } /** *
       * The time the event occurred.
       * 
* * .google.protobuf.Timestamp time = 1; */ public com.google.protobuf.Timestamp getTime() { if (timeBuilder_ == null) { return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; } else { return timeBuilder_.getMessage(); } } /** *
       * The time the event occurred.
       * 
* * .google.protobuf.Timestamp time = 1; */ public Builder setTime(com.google.protobuf.Timestamp value) { if (timeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } time_ = value; onChanged(); } else { timeBuilder_.setMessage(value); } return this; } /** *
       * The time the event occurred.
       * 
* * .google.protobuf.Timestamp time = 1; */ public Builder setTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (timeBuilder_ == null) { time_ = builderForValue.build(); onChanged(); } else { timeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The time the event occurred.
       * 
* * .google.protobuf.Timestamp time = 1; */ public Builder mergeTime(com.google.protobuf.Timestamp value) { if (timeBuilder_ == null) { if (time_ != null) { time_ = com.google.protobuf.Timestamp.newBuilder(time_).mergeFrom(value).buildPartial(); } else { time_ = value; } onChanged(); } else { timeBuilder_.mergeFrom(value); } return this; } /** *
       * The time the event occurred.
       * 
* * .google.protobuf.Timestamp time = 1; */ public Builder clearTime() { if (timeBuilder_ == null) { time_ = null; onChanged(); } else { time_ = null; timeBuilder_ = null; } return this; } /** *
       * The time the event occurred.
       * 
* * .google.protobuf.Timestamp time = 1; */ public com.google.protobuf.Timestamp.Builder getTimeBuilder() { onChanged(); return getTimeFieldBuilder().getBuilder(); } /** *
       * The time the event occurred.
       * 
* * .google.protobuf.Timestamp time = 1; */ public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { if (timeBuilder_ != null) { return timeBuilder_.getMessageOrBuilder(); } else { return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; } } /** *
       * The time the event occurred.
       * 
* * .google.protobuf.Timestamp time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimeFieldBuilder() { if (timeBuilder_ == null) { timeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTime(), getParentForChildren(), isClean()); time_ = null; } return timeBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation, io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.Builder, io.opencensus.proto.trace.v1.Span.TimeEvent.AnnotationOrBuilder> annotationBuilder_; /** *
       * A text annotation with a set of attributes.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; */ public boolean hasAnnotation() { return valueCase_ == 2; } /** *
       * A text annotation with a set of attributes.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; */ public io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation getAnnotation() { if (annotationBuilder_ == null) { if (valueCase_ == 2) { return (io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation) value_; } return io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.getDefaultInstance(); } else { if (valueCase_ == 2) { return annotationBuilder_.getMessage(); } return io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.getDefaultInstance(); } } /** *
       * A text annotation with a set of attributes.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; */ public Builder setAnnotation(io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation value) { if (annotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { annotationBuilder_.setMessage(value); } valueCase_ = 2; return this; } /** *
       * A text annotation with a set of attributes.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; */ public Builder setAnnotation( io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.Builder builderForValue) { if (annotationBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { annotationBuilder_.setMessage(builderForValue.build()); } valueCase_ = 2; return this; } /** *
       * A text annotation with a set of attributes.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; */ public Builder mergeAnnotation(io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation value) { if (annotationBuilder_ == null) { if (valueCase_ == 2 && value_ != io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.getDefaultInstance()) { value_ = io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.newBuilder((io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 2) { annotationBuilder_.mergeFrom(value); } annotationBuilder_.setMessage(value); } valueCase_ = 2; return this; } /** *
       * A text annotation with a set of attributes.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; */ public Builder clearAnnotation() { if (annotationBuilder_ == null) { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 2) { valueCase_ = 0; value_ = null; } annotationBuilder_.clear(); } return this; } /** *
       * A text annotation with a set of attributes.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; */ public io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.Builder getAnnotationBuilder() { return getAnnotationFieldBuilder().getBuilder(); } /** *
       * A text annotation with a set of attributes.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; */ public io.opencensus.proto.trace.v1.Span.TimeEvent.AnnotationOrBuilder getAnnotationOrBuilder() { if ((valueCase_ == 2) && (annotationBuilder_ != null)) { return annotationBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 2) { return (io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation) value_; } return io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.getDefaultInstance(); } } /** *
       * A text annotation with a set of attributes.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation, io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.Builder, io.opencensus.proto.trace.v1.Span.TimeEvent.AnnotationOrBuilder> getAnnotationFieldBuilder() { if (annotationBuilder_ == null) { if (!(valueCase_ == 2)) { value_ = io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.getDefaultInstance(); } annotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation, io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation.Builder, io.opencensus.proto.trace.v1.Span.TimeEvent.AnnotationOrBuilder>( (io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 2; onChanged();; return annotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent, io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Builder, io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEventOrBuilder> messageEventBuilder_; /** *
       * An event describing a message sent/received between Spans.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent message_event = 3; */ public boolean hasMessageEvent() { return valueCase_ == 3; } /** *
       * An event describing a message sent/received between Spans.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent message_event = 3; */ public io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent getMessageEvent() { if (messageEventBuilder_ == null) { if (valueCase_ == 3) { return (io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) value_; } return io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.getDefaultInstance(); } else { if (valueCase_ == 3) { return messageEventBuilder_.getMessage(); } return io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.getDefaultInstance(); } } /** *
       * An event describing a message sent/received between Spans.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent message_event = 3; */ public Builder setMessageEvent(io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent value) { if (messageEventBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); } else { messageEventBuilder_.setMessage(value); } valueCase_ = 3; return this; } /** *
       * An event describing a message sent/received between Spans.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent message_event = 3; */ public Builder setMessageEvent( io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Builder builderForValue) { if (messageEventBuilder_ == null) { value_ = builderForValue.build(); onChanged(); } else { messageEventBuilder_.setMessage(builderForValue.build()); } valueCase_ = 3; return this; } /** *
       * An event describing a message sent/received between Spans.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent message_event = 3; */ public Builder mergeMessageEvent(io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent value) { if (messageEventBuilder_ == null) { if (valueCase_ == 3 && value_ != io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.getDefaultInstance()) { value_ = io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.newBuilder((io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) value_) .mergeFrom(value).buildPartial(); } else { value_ = value; } onChanged(); } else { if (valueCase_ == 3) { messageEventBuilder_.mergeFrom(value); } messageEventBuilder_.setMessage(value); } valueCase_ = 3; return this; } /** *
       * An event describing a message sent/received between Spans.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent message_event = 3; */ public Builder clearMessageEvent() { if (messageEventBuilder_ == null) { if (valueCase_ == 3) { valueCase_ = 0; value_ = null; onChanged(); } } else { if (valueCase_ == 3) { valueCase_ = 0; value_ = null; } messageEventBuilder_.clear(); } return this; } /** *
       * An event describing a message sent/received between Spans.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent message_event = 3; */ public io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Builder getMessageEventBuilder() { return getMessageEventFieldBuilder().getBuilder(); } /** *
       * An event describing a message sent/received between Spans.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent message_event = 3; */ public io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEventOrBuilder getMessageEventOrBuilder() { if ((valueCase_ == 3) && (messageEventBuilder_ != null)) { return messageEventBuilder_.getMessageOrBuilder(); } else { if (valueCase_ == 3) { return (io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) value_; } return io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.getDefaultInstance(); } } /** *
       * An event describing a message sent/received between Spans.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent message_event = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent, io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Builder, io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEventOrBuilder> getMessageEventFieldBuilder() { if (messageEventBuilder_ == null) { if (!(valueCase_ == 3)) { value_ = io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.getDefaultInstance(); } messageEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent, io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Builder, io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEventOrBuilder>( (io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent) value_, getParentForChildren(), isClean()); value_ = null; } valueCase_ = 3; onChanged();; return messageEventBuilder_; } @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.TimeEvent) } // @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.Span.TimeEvent) private static final io.opencensus.proto.trace.v1.Span.TimeEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opencensus.proto.trace.v1.Span.TimeEvent(); } public static io.opencensus.proto.trace.v1.Span.TimeEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TimeEvent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TimeEvent(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.TimeEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TimeEventsOrBuilder extends // @@protoc_insertion_point(interface_extends:opencensus.proto.trace.v1.Span.TimeEvents) com.google.protobuf.MessageOrBuilder { /** *
     * A collection of `TimeEvent`s.
     * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ java.util.List getTimeEventList(); /** *
     * A collection of `TimeEvent`s.
     * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ io.opencensus.proto.trace.v1.Span.TimeEvent getTimeEvent(int index); /** *
     * A collection of `TimeEvent`s.
     * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ int getTimeEventCount(); /** *
     * A collection of `TimeEvent`s.
     * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ java.util.List getTimeEventOrBuilderList(); /** *
     * A collection of `TimeEvent`s.
     * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ io.opencensus.proto.trace.v1.Span.TimeEventOrBuilder getTimeEventOrBuilder( int index); /** *
     * 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; */ int getDroppedAnnotationsCount(); /** *
     * 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; */ int getDroppedMessageEventsCount(); } /** *
   * 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_; /** *
     * A collection of `TimeEvent`s.
     * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public java.util.List getTimeEventList() { return timeEvent_; } /** *
     * A collection of `TimeEvent`s.
     * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public java.util.List getTimeEventOrBuilderList() { return timeEvent_; } /** *
     * A collection of `TimeEvent`s.
     * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public int getTimeEventCount() { return timeEvent_.size(); } /** *
     * A collection of `TimeEvent`s.
     * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public io.opencensus.proto.trace.v1.Span.TimeEvent getTimeEvent(int index) { return timeEvent_.get(index); } /** *
     * A collection of `TimeEvent`s.
     * 
* * 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.
     * 
* * Protobuf type {@code opencensus.proto.trace.v1.Span.TimeEvents} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opencensus.proto.trace.v1.Span.TimeEvents) io.opencensus.proto.trace.v1.Span.TimeEventsOrBuilder { 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); } // Construct using io.opencensus.proto.trace.v1.Span.TimeEvents.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTimeEventFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (timeEventBuilder_ == null) { timeEvent_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { timeEventBuilder_.clear(); } droppedAnnotationsCount_ = 0; droppedMessageEventsCount_ = 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_TimeEvents_descriptor; } @java.lang.Override public io.opencensus.proto.trace.v1.Span.TimeEvents getDefaultInstanceForType() { return io.opencensus.proto.trace.v1.Span.TimeEvents.getDefaultInstance(); } @java.lang.Override public io.opencensus.proto.trace.v1.Span.TimeEvents build() { io.opencensus.proto.trace.v1.Span.TimeEvents result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opencensus.proto.trace.v1.Span.TimeEvents buildPartial() { io.opencensus.proto.trace.v1.Span.TimeEvents result = new io.opencensus.proto.trace.v1.Span.TimeEvents(this); int from_bitField0_ = bitField0_; if (timeEventBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { timeEvent_ = java.util.Collections.unmodifiableList(timeEvent_); bitField0_ = (bitField0_ & ~0x00000001); } result.timeEvent_ = timeEvent_; } else { result.timeEvent_ = timeEventBuilder_.build(); } result.droppedAnnotationsCount_ = droppedAnnotationsCount_; result.droppedMessageEventsCount_ = droppedMessageEventsCount_; 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.TimeEvents) { return mergeFrom((io.opencensus.proto.trace.v1.Span.TimeEvents)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opencensus.proto.trace.v1.Span.TimeEvents other) { if (other == io.opencensus.proto.trace.v1.Span.TimeEvents.getDefaultInstance()) return this; if (timeEventBuilder_ == null) { if (!other.timeEvent_.isEmpty()) { if (timeEvent_.isEmpty()) { timeEvent_ = other.timeEvent_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTimeEventIsMutable(); timeEvent_.addAll(other.timeEvent_); } onChanged(); } } else { if (!other.timeEvent_.isEmpty()) { if (timeEventBuilder_.isEmpty()) { timeEventBuilder_.dispose(); timeEventBuilder_ = null; timeEvent_ = other.timeEvent_; bitField0_ = (bitField0_ & ~0x00000001); timeEventBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTimeEventFieldBuilder() : null; } else { timeEventBuilder_.addAllMessages(other.timeEvent_); } } } if (other.getDroppedAnnotationsCount() != 0) { setDroppedAnnotationsCount(other.getDroppedAnnotationsCount()); } if (other.getDroppedMessageEventsCount() != 0) { setDroppedMessageEventsCount(other.getDroppedMessageEventsCount()); } 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.TimeEvents parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.opencensus.proto.trace.v1.Span.TimeEvents) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List timeEvent_ = java.util.Collections.emptyList(); private void ensureTimeEventIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { timeEvent_ = new java.util.ArrayList(timeEvent_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opencensus.proto.trace.v1.Span.TimeEvent, io.opencensus.proto.trace.v1.Span.TimeEvent.Builder, io.opencensus.proto.trace.v1.Span.TimeEventOrBuilder> timeEventBuilder_; /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public java.util.List getTimeEventList() { if (timeEventBuilder_ == null) { return java.util.Collections.unmodifiableList(timeEvent_); } else { return timeEventBuilder_.getMessageList(); } } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public int getTimeEventCount() { if (timeEventBuilder_ == null) { return timeEvent_.size(); } else { return timeEventBuilder_.getCount(); } } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public io.opencensus.proto.trace.v1.Span.TimeEvent getTimeEvent(int index) { if (timeEventBuilder_ == null) { return timeEvent_.get(index); } else { return timeEventBuilder_.getMessage(index); } } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public Builder setTimeEvent( int index, io.opencensus.proto.trace.v1.Span.TimeEvent value) { if (timeEventBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTimeEventIsMutable(); timeEvent_.set(index, value); onChanged(); } else { timeEventBuilder_.setMessage(index, value); } return this; } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public Builder setTimeEvent( int index, io.opencensus.proto.trace.v1.Span.TimeEvent.Builder builderForValue) { if (timeEventBuilder_ == null) { ensureTimeEventIsMutable(); timeEvent_.set(index, builderForValue.build()); onChanged(); } else { timeEventBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public Builder addTimeEvent(io.opencensus.proto.trace.v1.Span.TimeEvent value) { if (timeEventBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTimeEventIsMutable(); timeEvent_.add(value); onChanged(); } else { timeEventBuilder_.addMessage(value); } return this; } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public Builder addTimeEvent( int index, io.opencensus.proto.trace.v1.Span.TimeEvent value) { if (timeEventBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTimeEventIsMutable(); timeEvent_.add(index, value); onChanged(); } else { timeEventBuilder_.addMessage(index, value); } return this; } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public Builder addTimeEvent( io.opencensus.proto.trace.v1.Span.TimeEvent.Builder builderForValue) { if (timeEventBuilder_ == null) { ensureTimeEventIsMutable(); timeEvent_.add(builderForValue.build()); onChanged(); } else { timeEventBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public Builder addTimeEvent( int index, io.opencensus.proto.trace.v1.Span.TimeEvent.Builder builderForValue) { if (timeEventBuilder_ == null) { ensureTimeEventIsMutable(); timeEvent_.add(index, builderForValue.build()); onChanged(); } else { timeEventBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public Builder addAllTimeEvent( java.lang.Iterable values) { if (timeEventBuilder_ == null) { ensureTimeEventIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, timeEvent_); onChanged(); } else { timeEventBuilder_.addAllMessages(values); } return this; } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public Builder clearTimeEvent() { if (timeEventBuilder_ == null) { timeEvent_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { timeEventBuilder_.clear(); } return this; } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public Builder removeTimeEvent(int index) { if (timeEventBuilder_ == null) { ensureTimeEventIsMutable(); timeEvent_.remove(index); onChanged(); } else { timeEventBuilder_.remove(index); } return this; } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public io.opencensus.proto.trace.v1.Span.TimeEvent.Builder getTimeEventBuilder( int index) { return getTimeEventFieldBuilder().getBuilder(index); } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public io.opencensus.proto.trace.v1.Span.TimeEventOrBuilder getTimeEventOrBuilder( int index) { if (timeEventBuilder_ == null) { return timeEvent_.get(index); } else { return timeEventBuilder_.getMessageOrBuilder(index); } } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public java.util.List getTimeEventOrBuilderList() { if (timeEventBuilder_ != null) { return timeEventBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(timeEvent_); } } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public io.opencensus.proto.trace.v1.Span.TimeEvent.Builder addTimeEventBuilder() { return getTimeEventFieldBuilder().addBuilder( io.opencensus.proto.trace.v1.Span.TimeEvent.getDefaultInstance()); } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public io.opencensus.proto.trace.v1.Span.TimeEvent.Builder addTimeEventBuilder( int index) { return getTimeEventFieldBuilder().addBuilder( index, io.opencensus.proto.trace.v1.Span.TimeEvent.getDefaultInstance()); } /** *
       * A collection of `TimeEvent`s.
       * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ public java.util.List getTimeEventBuilderList() { return getTimeEventFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opencensus.proto.trace.v1.Span.TimeEvent, io.opencensus.proto.trace.v1.Span.TimeEvent.Builder, io.opencensus.proto.trace.v1.Span.TimeEventOrBuilder> getTimeEventFieldBuilder() { if (timeEventBuilder_ == null) { timeEventBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opencensus.proto.trace.v1.Span.TimeEvent, io.opencensus.proto.trace.v1.Span.TimeEvent.Builder, io.opencensus.proto.trace.v1.Span.TimeEventOrBuilder>( timeEvent_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); timeEvent_ = null; } return timeEventBuilder_; } 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_; } /** *
       * 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 Builder setDroppedAnnotationsCount(int value) { droppedAnnotationsCount_ = value; onChanged(); return this; } /** *
       * 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 Builder clearDroppedAnnotationsCount() { droppedAnnotationsCount_ = 0; onChanged(); return this; } 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_; } /** *
       * 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 Builder setDroppedMessageEventsCount(int value) { droppedMessageEventsCount_ = value; onChanged(); return this; } /** *
       * 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 Builder clearDroppedMessageEventsCount() { droppedMessageEventsCount_ = 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.TimeEvents) } // @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.Span.TimeEvents) private static final io.opencensus.proto.trace.v1.Span.TimeEvents DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opencensus.proto.trace.v1.Span.TimeEvents(); } public static io.opencensus.proto.trace.v1.Span.TimeEvents getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TimeEvents parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TimeEvents(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.TimeEvents getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LinkOrBuilder extends // @@protoc_insertion_point(interface_extends:opencensus.proto.trace.v1.Span.Link) com.google.protobuf.MessageOrBuilder { /** *
     * A unique identifier of a trace that this linked span is part of. The ID is a 
     * 16-byte array.
     * 
* * bytes trace_id = 1; */ com.google.protobuf.ByteString getTraceId(); /** *
     * A unique identifier for the linked span. The ID is an 8-byte array.
     * 
* * bytes span_id = 2; */ com.google.protobuf.ByteString getSpanId(); /** *
     * The relationship of the current span relative to the linked span.
     * 
* * .opencensus.proto.trace.v1.Span.Link.Type type = 3; */ int getTypeValue(); /** *
     * The relationship of the current span relative to the linked span.
     * 
* * .opencensus.proto.trace.v1.Span.Link.Type type = 3; */ io.opencensus.proto.trace.v1.Span.Link.Type getType(); /** *
     * A set of attributes on the link.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; */ boolean hasAttributes(); /** *
     * A set of attributes on the link.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; */ io.opencensus.proto.trace.v1.Span.Attributes getAttributes(); /** *
     * A set of attributes on the link.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; */ io.opencensus.proto.trace.v1.Span.AttributesOrBuilder getAttributesOrBuilder(); } /** *
   * 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.
       * 
* * TYPE_UNSPECIFIED = 0; */ TYPE_UNSPECIFIED(0), /** *
       * The linked span is a child of the current span.
       * 
* * CHILD_LINKED_SPAN = 1; */ CHILD_LINKED_SPAN(1), /** *
       * The linked span is a parent of the current span.
       * 
* * PARENT_LINKED_SPAN = 2; */ PARENT_LINKED_SPAN(2), UNRECOGNIZED(-1), ; /** *
       * 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 set of attributes on the link.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; */ public boolean hasAttributes() { return attributes_ != null; } /** *
     * A set of attributes on the link.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; */ public io.opencensus.proto.trace.v1.Span.Attributes getAttributes() { return attributes_ == null ? io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance() : attributes_; } /** *
     * A set of attributes on the link.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; */ public io.opencensus.proto.trace.v1.Span.AttributesOrBuilder getAttributesOrBuilder() { return getAttributes(); } 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 (type_ != io.opencensus.proto.trace.v1.Span.Link.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, type_); } if (attributes_ != null) { output.writeMessage(4, getAttributes()); } 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 (type_ != io.opencensus.proto.trace.v1.Span.Link.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_); } if (attributes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getAttributes()); } 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.Link)) { return super.equals(obj); } io.opencensus.proto.trace.v1.Span.Link other = (io.opencensus.proto.trace.v1.Span.Link) obj; if (!getTraceId() .equals(other.getTraceId())) return false; if (!getSpanId() .equals(other.getSpanId())) return false; if (type_ != other.type_) return false; if (hasAttributes() != other.hasAttributes()) return false; if (hasAttributes()) { if (!getAttributes() .equals(other.getAttributes())) 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(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (hasAttributes()) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + getAttributes().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.opencensus.proto.trace.v1.Span.Link parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.Span.Link 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.Link parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.Span.Link 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.Link parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.trace.v1.Span.Link 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.Link 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.Link 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.Link 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.Link 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.Link 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.Link 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.Link 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 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.
       * 
* * bytes trace_id = 1; */ public com.google.protobuf.ByteString getTraceId() { return 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 Builder setTraceId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } traceId_ = value; onChanged(); return this; } /** *
       * 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 Builder clearTraceId() { traceId_ = getDefaultInstance().getTraceId(); onChanged(); return this; } private com.google.protobuf.ByteString spanId_ = com.google.protobuf.ByteString.EMPTY; /** *
       * 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_; } /** *
       * A unique identifier for the linked span. The ID is an 8-byte array.
       * 
* * 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 the linked span. The ID is an 8-byte array.
       * 
* * bytes span_id = 2; */ public Builder clearSpanId() { spanId_ = getDefaultInstance().getSpanId(); onChanged(); return this; } private int type_ = 0; /** *
       * 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 Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** *
       * 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; } /** *
       * The relationship of the current span relative to the linked span.
       * 
* * .opencensus.proto.trace.v1.Span.Link.Type type = 3; */ public Builder setType(io.opencensus.proto.trace.v1.Span.Link.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** *
       * The relationship of the current span relative to the linked span.
       * 
* * .opencensus.proto.trace.v1.Span.Link.Type type = 3; */ public Builder clearType() { type_ = 0; onChanged(); return this; } private io.opencensus.proto.trace.v1.Span.Attributes attributes_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.Attributes, io.opencensus.proto.trace.v1.Span.Attributes.Builder, io.opencensus.proto.trace.v1.Span.AttributesOrBuilder> attributesBuilder_; /** *
       * A set of attributes on the link.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; */ public boolean hasAttributes() { return attributesBuilder_ != null || attributes_ != null; } /** *
       * A set of attributes on the link.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; */ public io.opencensus.proto.trace.v1.Span.Attributes getAttributes() { if (attributesBuilder_ == null) { return attributes_ == null ? io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance() : attributes_; } else { return attributesBuilder_.getMessage(); } } /** *
       * A set of attributes on the link.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; */ public Builder setAttributes(io.opencensus.proto.trace.v1.Span.Attributes value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attributes_ = value; onChanged(); } else { attributesBuilder_.setMessage(value); } return this; } /** *
       * A set of attributes on the link.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; */ public Builder setAttributes( io.opencensus.proto.trace.v1.Span.Attributes.Builder builderForValue) { if (attributesBuilder_ == null) { attributes_ = builderForValue.build(); onChanged(); } else { attributesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * A set of attributes on the link.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; */ public Builder mergeAttributes(io.opencensus.proto.trace.v1.Span.Attributes value) { if (attributesBuilder_ == null) { if (attributes_ != null) { attributes_ = io.opencensus.proto.trace.v1.Span.Attributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); } else { attributes_ = value; } onChanged(); } else { attributesBuilder_.mergeFrom(value); } return this; } /** *
       * A set of attributes on the link.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; */ public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = null; onChanged(); } else { attributes_ = null; attributesBuilder_ = null; } return this; } /** *
       * A set of attributes on the link.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; */ public io.opencensus.proto.trace.v1.Span.Attributes.Builder getAttributesBuilder() { onChanged(); return getAttributesFieldBuilder().getBuilder(); } /** *
       * A set of attributes on the link.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; */ public io.opencensus.proto.trace.v1.Span.AttributesOrBuilder getAttributesOrBuilder() { if (attributesBuilder_ != null) { return attributesBuilder_.getMessageOrBuilder(); } else { return attributes_ == null ? io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance() : attributes_; } } /** *
       * A set of attributes on the link.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.Attributes, io.opencensus.proto.trace.v1.Span.Attributes.Builder, io.opencensus.proto.trace.v1.Span.AttributesOrBuilder> getAttributesFieldBuilder() { if (attributesBuilder_ == null) { attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.Attributes, io.opencensus.proto.trace.v1.Span.Attributes.Builder, io.opencensus.proto.trace.v1.Span.AttributesOrBuilder>( getAttributes(), getParentForChildren(), isClean()); attributes_ = null; } return attributesBuilder_; } @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.Link) } // @@protoc_insertion_point(class_scope:opencensus.proto.trace.v1.Span.Link) private static final io.opencensus.proto.trace.v1.Span.Link DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opencensus.proto.trace.v1.Span.Link(); } public static io.opencensus.proto.trace.v1.Span.Link getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Link parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Link(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.Link getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LinksOrBuilder extends // @@protoc_insertion_point(interface_extends:opencensus.proto.trace.v1.Span.Links) com.google.protobuf.MessageOrBuilder { /** *
     * A collection of links.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ java.util.List getLinkList(); /** *
     * A collection of links.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ io.opencensus.proto.trace.v1.Span.Link getLink(int index); /** *
     * A collection of links.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ int getLinkCount(); /** *
     * A collection of links.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ java.util.List getLinkOrBuilderList(); /** *
     * A collection of links.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ io.opencensus.proto.trace.v1.Span.LinkOrBuilder getLinkOrBuilder( int index); /** *
     * 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; */ int getDroppedLinksCount(); } /** *
   * 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 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; } /** *
       * A collection of links.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ public Builder addLink( io.opencensus.proto.trace.v1.Span.Link.Builder builderForValue) { if (linkBuilder_ == null) { ensureLinkIsMutable(); link_.add(builderForValue.build()); onChanged(); } else { linkBuilder_.addMessage(builderForValue.build()); } 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.Builder builderForValue) { if (linkBuilder_ == null) { ensureLinkIsMutable(); link_.add(index, builderForValue.build()); onChanged(); } else { linkBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A collection of links.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ public Builder addAllLink( java.lang.Iterable values) { if (linkBuilder_ == null) { ensureLinkIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, link_); onChanged(); } else { linkBuilder_.addAllMessages(values); } return this; } /** *
       * A collection of links.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ public Builder clearLink() { if (linkBuilder_ == null) { link_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { linkBuilder_.clear(); } return this; } /** *
       * A collection of links.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ public Builder removeLink(int index) { if (linkBuilder_ == null) { ensureLinkIsMutable(); link_.remove(index); onChanged(); } else { linkBuilder_.remove(index); } return this; } /** *
       * A collection of links.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ public io.opencensus.proto.trace.v1.Span.Link.Builder getLinkBuilder( int index) { return getLinkFieldBuilder().getBuilder(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) { if (linkBuilder_ == null) { return link_.get(index); } else { return linkBuilder_.getMessageOrBuilder(index); } } /** *
       * A collection of links.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ public java.util.List getLinkOrBuilderList() { if (linkBuilder_ != null) { return linkBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(link_); } } /** *
       * A collection of links.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ public io.opencensus.proto.trace.v1.Span.Link.Builder addLinkBuilder() { return getLinkFieldBuilder().addBuilder( io.opencensus.proto.trace.v1.Span.Link.getDefaultInstance()); } /** *
       * A collection of links.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ public io.opencensus.proto.trace.v1.Span.Link.Builder addLinkBuilder( int index) { return getLinkFieldBuilder().addBuilder( index, io.opencensus.proto.trace.v1.Span.Link.getDefaultInstance()); } /** *
       * A collection of links.
       * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ public java.util.List getLinkBuilderList() { return getLinkFieldBuilder().getBuilderList(); } 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> getLinkFieldBuilder() { if (linkBuilder_ == null) { linkBuilder_ = new 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>( link_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); link_ = null; } return linkBuilder_; } 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_; } /** *
       * 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 setDroppedLinksCount(int value) { droppedLinksCount_ = value; onChanged(); 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_; /** *
   * The Tracestate on the span.
   * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 15; */ public boolean hasTracestate() { return tracestate_ != null; } /** *
   * The Tracestate on the span.
   * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 15; */ public io.opencensus.proto.trace.v1.Span.Tracestate getTracestate() { return tracestate_ == null ? io.opencensus.proto.trace.v1.Span.Tracestate.getDefaultInstance() : tracestate_; } /** *
   * The Tracestate on the span.
   * 
* * .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.
   * 
* * .opencensus.proto.trace.v1.TruncatableString name = 4; */ public io.opencensus.proto.trace.v1.TruncatableString getName() { return name_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : 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 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.
   * 
* * .google.protobuf.Timestamp start_time = 5; */ public boolean hasStartTime() { return startTime_ != null; } /** *
   * 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.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : 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.
   * 
* * .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.
   * 
* * .google.protobuf.Timestamp end_time = 6; */ public boolean hasEndTime() { return endTime_ != null; } /** *
   * 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.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : 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.
   * 
* * .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_; /** *
   * A set of attributes on the span.
   * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 7; */ public boolean hasAttributes() { return attributes_ != null; } /** *
   * A set of attributes on the span.
   * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 7; */ public io.opencensus.proto.trace.v1.Span.Attributes getAttributes() { return attributes_ == null ? io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance() : attributes_; } /** *
   * A set of attributes on the span.
   * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 7; */ public io.opencensus.proto.trace.v1.Span.AttributesOrBuilder getAttributesOrBuilder() { return getAttributes(); } public static final int STACK_TRACE_FIELD_NUMBER = 8; private io.opencensus.proto.trace.v1.StackTrace stackTrace_; /** *
   * A stack trace captured at the start of the span.
   * 
* * .opencensus.proto.trace.v1.StackTrace stack_trace = 8; */ public boolean hasStackTrace() { return stackTrace_ != null; } /** *
   * A stack trace captured at the start of the span.
   * 
* * .opencensus.proto.trace.v1.StackTrace stack_trace = 8; */ public io.opencensus.proto.trace.v1.StackTrace getStackTrace() { return stackTrace_ == null ? io.opencensus.proto.trace.v1.StackTrace.getDefaultInstance() : stackTrace_; } /** *
   * A stack trace captured at the start of the span.
   * 
* * .opencensus.proto.trace.v1.StackTrace stack_trace = 8; */ public io.opencensus.proto.trace.v1.StackTraceOrBuilder getStackTraceOrBuilder() { return getStackTrace(); } public static final int TIME_EVENTS_FIELD_NUMBER = 9; private io.opencensus.proto.trace.v1.Span.TimeEvents timeEvents_; /** *
   * The included time events.
   * 
* * .opencensus.proto.trace.v1.Span.TimeEvents time_events = 9; */ public boolean hasTimeEvents() { return timeEvents_ != null; } /** *
   * The included time events.
   * 
* * .opencensus.proto.trace.v1.Span.TimeEvents time_events = 9; */ public io.opencensus.proto.trace.v1.Span.TimeEvents getTimeEvents() { return timeEvents_ == null ? io.opencensus.proto.trace.v1.Span.TimeEvents.getDefaultInstance() : timeEvents_; } /** *
   * The included time events.
   * 
* * .opencensus.proto.trace.v1.Span.TimeEvents time_events = 9; */ public io.opencensus.proto.trace.v1.Span.TimeEventsOrBuilder getTimeEventsOrBuilder() { return getTimeEvents(); } public static final int LINKS_FIELD_NUMBER = 10; private io.opencensus.proto.trace.v1.Span.Links links_; /** *
   * The included links.
   * 
* * .opencensus.proto.trace.v1.Span.Links links = 10; */ public boolean hasLinks() { return links_ != null; } /** *
   * The included links.
   * 
* * .opencensus.proto.trace.v1.Span.Links links = 10; */ public io.opencensus.proto.trace.v1.Span.Links getLinks() { return links_ == null ? io.opencensus.proto.trace.v1.Span.Links.getDefaultInstance() : links_; } /** *
   * The included links.
   * 
* * .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).
   * 
* * .opencensus.proto.trace.v1.Status status = 11; */ public io.opencensus.proto.trace.v1.Status getStatus() { return status_ == null ? io.opencensus.proto.trace.v1.Status.getDefaultInstance() : 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 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.
   * 
* * .opencensus.proto.resource.v1.Resource resource = 16; */ public boolean hasResource() { return resource_ != null; } /** *
   * 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.Resource getResource() { return resource_ == null ? io.opencensus.proto.resource.v1.Resource.getDefaultInstance() : 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.
   * 
* * .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.
   * 
* * .google.protobuf.BoolValue same_process_as_parent_span = 12; */ public boolean hasSameProcessAsParentSpan() { return sameProcessAsParentSpan_ != null; } /** *
   * 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.BoolValue getSameProcessAsParentSpan() { return sameProcessAsParentSpan_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : 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.
   * 
* * .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.
   * 
* * .google.protobuf.UInt32Value child_span_count = 13; */ public boolean hasChildSpanCount() { return childSpanCount_ != null; } /** *
   * 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.UInt32Value getChildSpanCount() { return childSpanCount_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : 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.
   * 
* * .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.
   * 
* * Protobuf type {@code opencensus.proto.trace.v1.Span} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opencensus.proto.trace.v1.Span) io.opencensus.proto.trace.v1.SpanOrBuilder { 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); } // Construct using io.opencensus.proto.trace.v1.Span.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; if (tracestateBuilder_ == null) { tracestate_ = null; } else { tracestate_ = null; tracestateBuilder_ = null; } parentSpanId_ = com.google.protobuf.ByteString.EMPTY; if (nameBuilder_ == null) { name_ = null; } else { name_ = null; nameBuilder_ = null; } kind_ = 0; if (startTimeBuilder_ == null) { startTime_ = null; } else { startTime_ = null; startTimeBuilder_ = null; } if (endTimeBuilder_ == null) { endTime_ = null; } else { endTime_ = null; endTimeBuilder_ = null; } if (attributesBuilder_ == null) { attributes_ = null; } else { attributes_ = null; attributesBuilder_ = null; } if (stackTraceBuilder_ == null) { stackTrace_ = null; } else { stackTrace_ = null; stackTraceBuilder_ = null; } if (timeEventsBuilder_ == null) { timeEvents_ = null; } else { timeEvents_ = null; timeEventsBuilder_ = null; } if (linksBuilder_ == null) { links_ = null; } else { links_ = null; linksBuilder_ = null; } if (statusBuilder_ == null) { status_ = null; } else { status_ = null; statusBuilder_ = null; } if (resourceBuilder_ == null) { resource_ = null; } else { resource_ = null; resourceBuilder_ = null; } if (sameProcessAsParentSpanBuilder_ == null) { sameProcessAsParentSpan_ = null; } else { sameProcessAsParentSpan_ = null; sameProcessAsParentSpanBuilder_ = null; } if (childSpanCountBuilder_ == null) { childSpanCount_ = null; } else { childSpanCount_ = null; childSpanCountBuilder_ = 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_descriptor; } @java.lang.Override public io.opencensus.proto.trace.v1.Span getDefaultInstanceForType() { return io.opencensus.proto.trace.v1.Span.getDefaultInstance(); } @java.lang.Override public io.opencensus.proto.trace.v1.Span build() { io.opencensus.proto.trace.v1.Span result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opencensus.proto.trace.v1.Span buildPartial() { io.opencensus.proto.trace.v1.Span result = new io.opencensus.proto.trace.v1.Span(this); result.traceId_ = traceId_; result.spanId_ = spanId_; if (tracestateBuilder_ == null) { result.tracestate_ = tracestate_; } else { result.tracestate_ = tracestateBuilder_.build(); } result.parentSpanId_ = parentSpanId_; if (nameBuilder_ == null) { result.name_ = name_; } else { result.name_ = nameBuilder_.build(); } result.kind_ = kind_; if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { result.startTime_ = startTimeBuilder_.build(); } if (endTimeBuilder_ == null) { result.endTime_ = endTime_; } else { result.endTime_ = endTimeBuilder_.build(); } if (attributesBuilder_ == null) { result.attributes_ = attributes_; } else { result.attributes_ = attributesBuilder_.build(); } if (stackTraceBuilder_ == null) { result.stackTrace_ = stackTrace_; } else { result.stackTrace_ = stackTraceBuilder_.build(); } if (timeEventsBuilder_ == null) { result.timeEvents_ = timeEvents_; } else { result.timeEvents_ = timeEventsBuilder_.build(); } if (linksBuilder_ == null) { result.links_ = links_; } else { result.links_ = linksBuilder_.build(); } if (statusBuilder_ == null) { result.status_ = status_; } else { result.status_ = statusBuilder_.build(); } if (resourceBuilder_ == null) { result.resource_ = resource_; } else { result.resource_ = resourceBuilder_.build(); } if (sameProcessAsParentSpanBuilder_ == null) { result.sameProcessAsParentSpan_ = sameProcessAsParentSpan_; } else { result.sameProcessAsParentSpan_ = sameProcessAsParentSpanBuilder_.build(); } if (childSpanCountBuilder_ == null) { result.childSpanCount_ = childSpanCount_; } else { result.childSpanCount_ = childSpanCountBuilder_.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) { return mergeFrom((io.opencensus.proto.trace.v1.Span)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opencensus.proto.trace.v1.Span other) { if (other == io.opencensus.proto.trace.v1.Span.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.hasTracestate()) { mergeTracestate(other.getTracestate()); } if (other.getParentSpanId() != com.google.protobuf.ByteString.EMPTY) { setParentSpanId(other.getParentSpanId()); } if (other.hasName()) { mergeName(other.getName()); } if (other.kind_ != 0) { setKindValue(other.getKindValue()); } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } if (other.hasAttributes()) { mergeAttributes(other.getAttributes()); } if (other.hasStackTrace()) { mergeStackTrace(other.getStackTrace()); } if (other.hasTimeEvents()) { mergeTimeEvents(other.getTimeEvents()); } if (other.hasLinks()) { mergeLinks(other.getLinks()); } if (other.hasStatus()) { mergeStatus(other.getStatus()); } if (other.hasResource()) { mergeResource(other.getResource()); } if (other.hasSameProcessAsParentSpan()) { mergeSameProcessAsParentSpan(other.getSameProcessAsParentSpan()); } if (other.hasChildSpanCount()) { mergeChildSpanCount(other.getChildSpanCount()); } 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 parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.opencensus.proto.trace.v1.Span) 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 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_; } /** *
     * 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.
     * 
* * bytes trace_id = 1; */ public Builder clearTraceId() { traceId_ = getDefaultInstance().getTraceId(); onChanged(); return this; } private com.google.protobuf.ByteString spanId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * 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_; } /** *
     * 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.
     * 
* * bytes span_id = 2; */ public Builder clearSpanId() { spanId_ = getDefaultInstance().getSpanId(); onChanged(); return this; } private io.opencensus.proto.trace.v1.Span.Tracestate tracestate_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.Tracestate, io.opencensus.proto.trace.v1.Span.Tracestate.Builder, io.opencensus.proto.trace.v1.Span.TracestateOrBuilder> tracestateBuilder_; /** *
     * The Tracestate on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 15; */ public boolean hasTracestate() { return tracestateBuilder_ != null || tracestate_ != null; } /** *
     * The Tracestate on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 15; */ public io.opencensus.proto.trace.v1.Span.Tracestate getTracestate() { if (tracestateBuilder_ == null) { return tracestate_ == null ? io.opencensus.proto.trace.v1.Span.Tracestate.getDefaultInstance() : tracestate_; } else { return tracestateBuilder_.getMessage(); } } /** *
     * The Tracestate on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 15; */ public Builder setTracestate(io.opencensus.proto.trace.v1.Span.Tracestate value) { if (tracestateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tracestate_ = value; onChanged(); } else { tracestateBuilder_.setMessage(value); } return this; } /** *
     * The Tracestate on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 15; */ public Builder setTracestate( io.opencensus.proto.trace.v1.Span.Tracestate.Builder builderForValue) { if (tracestateBuilder_ == null) { tracestate_ = builderForValue.build(); onChanged(); } else { tracestateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The Tracestate on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 15; */ public Builder mergeTracestate(io.opencensus.proto.trace.v1.Span.Tracestate value) { if (tracestateBuilder_ == null) { if (tracestate_ != null) { tracestate_ = io.opencensus.proto.trace.v1.Span.Tracestate.newBuilder(tracestate_).mergeFrom(value).buildPartial(); } else { tracestate_ = value; } onChanged(); } else { tracestateBuilder_.mergeFrom(value); } return this; } /** *
     * The Tracestate on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 15; */ public Builder clearTracestate() { if (tracestateBuilder_ == null) { tracestate_ = null; onChanged(); } else { tracestate_ = null; tracestateBuilder_ = null; } return this; } /** *
     * The Tracestate on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 15; */ public io.opencensus.proto.trace.v1.Span.Tracestate.Builder getTracestateBuilder() { onChanged(); return getTracestateFieldBuilder().getBuilder(); } /** *
     * The Tracestate on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 15; */ public io.opencensus.proto.trace.v1.Span.TracestateOrBuilder getTracestateOrBuilder() { if (tracestateBuilder_ != null) { return tracestateBuilder_.getMessageOrBuilder(); } else { return tracestate_ == null ? io.opencensus.proto.trace.v1.Span.Tracestate.getDefaultInstance() : tracestate_; } } /** *
     * The Tracestate on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 15; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.Tracestate, io.opencensus.proto.trace.v1.Span.Tracestate.Builder, io.opencensus.proto.trace.v1.Span.TracestateOrBuilder> getTracestateFieldBuilder() { if (tracestateBuilder_ == null) { tracestateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.Tracestate, io.opencensus.proto.trace.v1.Span.Tracestate.Builder, io.opencensus.proto.trace.v1.Span.TracestateOrBuilder>( getTracestate(), getParentForChildren(), isClean()); tracestate_ = null; } return tracestateBuilder_; } private com.google.protobuf.ByteString parentSpanId_ = com.google.protobuf.ByteString.EMPTY; /** *
     * 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_; } /** *
     * 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 Builder setParentSpanId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } parentSpanId_ = value; onChanged(); return this; } /** *
     * 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 Builder clearParentSpanId() { parentSpanId_ = getDefaultInstance().getParentSpanId(); onChanged(); return this; } private io.opencensus.proto.trace.v1.TruncatableString name_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder> nameBuilder_; /** *
     * 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 nameBuilder_ != null || 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.
     * 
* * .opencensus.proto.trace.v1.TruncatableString name = 4; */ public io.opencensus.proto.trace.v1.TruncatableString getName() { if (nameBuilder_ == null) { return name_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : name_; } else { return nameBuilder_.getMessage(); } } /** *
     * 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.
     * 
* * .opencensus.proto.trace.v1.TruncatableString name = 4; */ public Builder setName( io.opencensus.proto.trace.v1.TruncatableString.Builder builderForValue) { if (nameBuilder_ == null) { name_ = builderForValue.build(); onChanged(); } else { nameBuilder_.setMessage(builderForValue.build()); } 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.
     * 
* * .opencensus.proto.trace.v1.TruncatableString name = 4; */ public Builder mergeName(io.opencensus.proto.trace.v1.TruncatableString value) { if (nameBuilder_ == null) { if (name_ != null) { name_ = io.opencensus.proto.trace.v1.TruncatableString.newBuilder(name_).mergeFrom(value).buildPartial(); } else { name_ = value; } onChanged(); } else { nameBuilder_.mergeFrom(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.
     * 
* * .opencensus.proto.trace.v1.TruncatableString name = 4; */ public Builder clearName() { if (nameBuilder_ == null) { name_ = null; onChanged(); } else { name_ = null; nameBuilder_ = null; } 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.
     * 
* * .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.
     * 
* * .opencensus.proto.trace.v1.TruncatableString name = 4; */ public io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getNameOrBuilder() { if (nameBuilder_ != null) { return nameBuilder_.getMessageOrBuilder(); } else { return name_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : 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; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder> getNameFieldBuilder() { if (nameBuilder_ == null) { nameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.TruncatableString, io.opencensus.proto.trace.v1.TruncatableString.Builder, io.opencensus.proto.trace.v1.TruncatableStringOrBuilder>( getName(), getParentForChildren(), isClean()); name_ = null; } return nameBuilder_; } private int kind_ = 0; /** *
     * 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 Builder setKindValue(int value) { kind_ = value; 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.
     * 
* * .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.
     * 
* * .opencensus.proto.trace.v1.Span.SpanKind kind = 14; */ public Builder clearKind() { kind_ = 0; onChanged(); return this; } private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** *
     * 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 boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** *
     * 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.Timestamp getStartTime() { if (startTimeBuilder_ == null) { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** *
     * 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.
     * 
* * .google.protobuf.Timestamp start_time = 5; */ public Builder setStartTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } 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.
     * 
* * .google.protobuf.Timestamp start_time = 5; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } onChanged(); } else { startTimeBuilder_.mergeFrom(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.
     * 
* * .google.protobuf.Timestamp start_time = 5; */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { startTime_ = null; onChanged(); } else { startTime_ = null; startTimeBuilder_ = null; } 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.
     * 
* * .google.protobuf.Timestamp start_time = 5; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** *
     * 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() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : 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.
     * 
* * .google.protobuf.Timestamp start_time = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** *
     * 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 boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** *
     * 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.Timestamp getEndTime() { if (endTimeBuilder_ == null) { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } else { return endTimeBuilder_.getMessage(); } } /** *
     * 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.
     * 
* * .google.protobuf.Timestamp end_time = 6; */ public Builder setEndTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } 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.
     * 
* * .google.protobuf.Timestamp end_time = 6; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } onChanged(); } else { endTimeBuilder_.mergeFrom(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.
     * 
* * .google.protobuf.Timestamp end_time = 6; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { endTime_ = null; onChanged(); } else { endTime_ = null; endTimeBuilder_ = null; } 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.
     * 
* * .google.protobuf.Timestamp end_time = 6; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** *
     * 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() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : 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.
     * 
* * .google.protobuf.Timestamp end_time = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; } private io.opencensus.proto.trace.v1.Span.Attributes attributes_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.Attributes, io.opencensus.proto.trace.v1.Span.Attributes.Builder, io.opencensus.proto.trace.v1.Span.AttributesOrBuilder> attributesBuilder_; /** *
     * A set of attributes on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 7; */ public boolean hasAttributes() { return attributesBuilder_ != null || attributes_ != null; } /** *
     * A set of attributes on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 7; */ public io.opencensus.proto.trace.v1.Span.Attributes getAttributes() { if (attributesBuilder_ == null) { return attributes_ == null ? io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance() : attributes_; } else { return attributesBuilder_.getMessage(); } } /** *
     * A set of attributes on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 7; */ public Builder setAttributes(io.opencensus.proto.trace.v1.Span.Attributes value) { if (attributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } attributes_ = value; onChanged(); } else { attributesBuilder_.setMessage(value); } return this; } /** *
     * A set of attributes on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 7; */ public Builder setAttributes( io.opencensus.proto.trace.v1.Span.Attributes.Builder builderForValue) { if (attributesBuilder_ == null) { attributes_ = builderForValue.build(); onChanged(); } else { attributesBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * A set of attributes on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 7; */ public Builder mergeAttributes(io.opencensus.proto.trace.v1.Span.Attributes value) { if (attributesBuilder_ == null) { if (attributes_ != null) { attributes_ = io.opencensus.proto.trace.v1.Span.Attributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); } else { attributes_ = value; } onChanged(); } else { attributesBuilder_.mergeFrom(value); } return this; } /** *
     * A set of attributes on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 7; */ public Builder clearAttributes() { if (attributesBuilder_ == null) { attributes_ = null; onChanged(); } else { attributes_ = null; attributesBuilder_ = null; } return this; } /** *
     * A set of attributes on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 7; */ public io.opencensus.proto.trace.v1.Span.Attributes.Builder getAttributesBuilder() { onChanged(); return getAttributesFieldBuilder().getBuilder(); } /** *
     * A set of attributes on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 7; */ public io.opencensus.proto.trace.v1.Span.AttributesOrBuilder getAttributesOrBuilder() { if (attributesBuilder_ != null) { return attributesBuilder_.getMessageOrBuilder(); } else { return attributes_ == null ? io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance() : attributes_; } } /** *
     * A set of attributes on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.Attributes, io.opencensus.proto.trace.v1.Span.Attributes.Builder, io.opencensus.proto.trace.v1.Span.AttributesOrBuilder> getAttributesFieldBuilder() { if (attributesBuilder_ == null) { attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.Attributes, io.opencensus.proto.trace.v1.Span.Attributes.Builder, io.opencensus.proto.trace.v1.Span.AttributesOrBuilder>( getAttributes(), getParentForChildren(), isClean()); attributes_ = null; } return attributesBuilder_; } private io.opencensus.proto.trace.v1.StackTrace stackTrace_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.StackTrace, io.opencensus.proto.trace.v1.StackTrace.Builder, io.opencensus.proto.trace.v1.StackTraceOrBuilder> stackTraceBuilder_; /** *
     * A stack trace captured at the start of the span.
     * 
* * .opencensus.proto.trace.v1.StackTrace stack_trace = 8; */ public boolean hasStackTrace() { return stackTraceBuilder_ != null || stackTrace_ != null; } /** *
     * A stack trace captured at the start of the span.
     * 
* * .opencensus.proto.trace.v1.StackTrace stack_trace = 8; */ public io.opencensus.proto.trace.v1.StackTrace getStackTrace() { if (stackTraceBuilder_ == null) { return stackTrace_ == null ? io.opencensus.proto.trace.v1.StackTrace.getDefaultInstance() : stackTrace_; } else { return stackTraceBuilder_.getMessage(); } } /** *
     * A stack trace captured at the start of the span.
     * 
* * .opencensus.proto.trace.v1.StackTrace stack_trace = 8; */ public Builder setStackTrace(io.opencensus.proto.trace.v1.StackTrace value) { if (stackTraceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stackTrace_ = value; onChanged(); } else { stackTraceBuilder_.setMessage(value); } return this; } /** *
     * A stack trace captured at the start of the span.
     * 
* * .opencensus.proto.trace.v1.StackTrace stack_trace = 8; */ public Builder setStackTrace( io.opencensus.proto.trace.v1.StackTrace.Builder builderForValue) { if (stackTraceBuilder_ == null) { stackTrace_ = builderForValue.build(); onChanged(); } else { stackTraceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * A stack trace captured at the start of the span.
     * 
* * .opencensus.proto.trace.v1.StackTrace stack_trace = 8; */ public Builder mergeStackTrace(io.opencensus.proto.trace.v1.StackTrace value) { if (stackTraceBuilder_ == null) { if (stackTrace_ != null) { stackTrace_ = io.opencensus.proto.trace.v1.StackTrace.newBuilder(stackTrace_).mergeFrom(value).buildPartial(); } else { stackTrace_ = value; } onChanged(); } else { stackTraceBuilder_.mergeFrom(value); } return this; } /** *
     * A stack trace captured at the start of the span.
     * 
* * .opencensus.proto.trace.v1.StackTrace stack_trace = 8; */ public Builder clearStackTrace() { if (stackTraceBuilder_ == null) { stackTrace_ = null; onChanged(); } else { stackTrace_ = null; stackTraceBuilder_ = null; } return this; } /** *
     * A stack trace captured at the start of the span.
     * 
* * .opencensus.proto.trace.v1.StackTrace stack_trace = 8; */ public io.opencensus.proto.trace.v1.StackTrace.Builder getStackTraceBuilder() { onChanged(); return getStackTraceFieldBuilder().getBuilder(); } /** *
     * A stack trace captured at the start of the span.
     * 
* * .opencensus.proto.trace.v1.StackTrace stack_trace = 8; */ public io.opencensus.proto.trace.v1.StackTraceOrBuilder getStackTraceOrBuilder() { if (stackTraceBuilder_ != null) { return stackTraceBuilder_.getMessageOrBuilder(); } else { return stackTrace_ == null ? io.opencensus.proto.trace.v1.StackTrace.getDefaultInstance() : stackTrace_; } } /** *
     * A stack trace captured at the start of the span.
     * 
* * .opencensus.proto.trace.v1.StackTrace stack_trace = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.StackTrace, io.opencensus.proto.trace.v1.StackTrace.Builder, io.opencensus.proto.trace.v1.StackTraceOrBuilder> getStackTraceFieldBuilder() { if (stackTraceBuilder_ == null) { stackTraceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.StackTrace, io.opencensus.proto.trace.v1.StackTrace.Builder, io.opencensus.proto.trace.v1.StackTraceOrBuilder>( getStackTrace(), getParentForChildren(), isClean()); stackTrace_ = null; } return stackTraceBuilder_; } private io.opencensus.proto.trace.v1.Span.TimeEvents timeEvents_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.TimeEvents, io.opencensus.proto.trace.v1.Span.TimeEvents.Builder, io.opencensus.proto.trace.v1.Span.TimeEventsOrBuilder> timeEventsBuilder_; /** *
     * The included time events.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvents time_events = 9; */ public boolean hasTimeEvents() { return timeEventsBuilder_ != null || timeEvents_ != null; } /** *
     * The included time events.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvents time_events = 9; */ public io.opencensus.proto.trace.v1.Span.TimeEvents getTimeEvents() { if (timeEventsBuilder_ == null) { return timeEvents_ == null ? io.opencensus.proto.trace.v1.Span.TimeEvents.getDefaultInstance() : timeEvents_; } else { return timeEventsBuilder_.getMessage(); } } /** *
     * The included time events.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvents time_events = 9; */ public Builder setTimeEvents(io.opencensus.proto.trace.v1.Span.TimeEvents value) { if (timeEventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timeEvents_ = value; onChanged(); } else { timeEventsBuilder_.setMessage(value); } return this; } /** *
     * The included time events.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvents time_events = 9; */ public Builder setTimeEvents( io.opencensus.proto.trace.v1.Span.TimeEvents.Builder builderForValue) { if (timeEventsBuilder_ == null) { timeEvents_ = builderForValue.build(); onChanged(); } else { timeEventsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The included time events.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvents time_events = 9; */ public Builder mergeTimeEvents(io.opencensus.proto.trace.v1.Span.TimeEvents value) { if (timeEventsBuilder_ == null) { if (timeEvents_ != null) { timeEvents_ = io.opencensus.proto.trace.v1.Span.TimeEvents.newBuilder(timeEvents_).mergeFrom(value).buildPartial(); } else { timeEvents_ = value; } onChanged(); } else { timeEventsBuilder_.mergeFrom(value); } return this; } /** *
     * The included time events.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvents time_events = 9; */ public Builder clearTimeEvents() { if (timeEventsBuilder_ == null) { timeEvents_ = null; onChanged(); } else { timeEvents_ = null; timeEventsBuilder_ = null; } return this; } /** *
     * The included time events.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvents time_events = 9; */ public io.opencensus.proto.trace.v1.Span.TimeEvents.Builder getTimeEventsBuilder() { onChanged(); return getTimeEventsFieldBuilder().getBuilder(); } /** *
     * The included time events.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvents time_events = 9; */ public io.opencensus.proto.trace.v1.Span.TimeEventsOrBuilder getTimeEventsOrBuilder() { if (timeEventsBuilder_ != null) { return timeEventsBuilder_.getMessageOrBuilder(); } else { return timeEvents_ == null ? io.opencensus.proto.trace.v1.Span.TimeEvents.getDefaultInstance() : timeEvents_; } } /** *
     * The included time events.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvents time_events = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.TimeEvents, io.opencensus.proto.trace.v1.Span.TimeEvents.Builder, io.opencensus.proto.trace.v1.Span.TimeEventsOrBuilder> getTimeEventsFieldBuilder() { if (timeEventsBuilder_ == null) { timeEventsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.TimeEvents, io.opencensus.proto.trace.v1.Span.TimeEvents.Builder, io.opencensus.proto.trace.v1.Span.TimeEventsOrBuilder>( getTimeEvents(), getParentForChildren(), isClean()); timeEvents_ = null; } return timeEventsBuilder_; } private io.opencensus.proto.trace.v1.Span.Links links_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.Links, io.opencensus.proto.trace.v1.Span.Links.Builder, io.opencensus.proto.trace.v1.Span.LinksOrBuilder> linksBuilder_; /** *
     * The included links.
     * 
* * .opencensus.proto.trace.v1.Span.Links links = 10; */ public boolean hasLinks() { return linksBuilder_ != null || links_ != null; } /** *
     * The included links.
     * 
* * .opencensus.proto.trace.v1.Span.Links links = 10; */ public io.opencensus.proto.trace.v1.Span.Links getLinks() { if (linksBuilder_ == null) { return links_ == null ? io.opencensus.proto.trace.v1.Span.Links.getDefaultInstance() : links_; } else { return linksBuilder_.getMessage(); } } /** *
     * The included links.
     * 
* * .opencensus.proto.trace.v1.Span.Links links = 10; */ public Builder setLinks(io.opencensus.proto.trace.v1.Span.Links value) { if (linksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } links_ = value; onChanged(); } else { linksBuilder_.setMessage(value); } return this; } /** *
     * The included links.
     * 
* * .opencensus.proto.trace.v1.Span.Links links = 10; */ public Builder setLinks( io.opencensus.proto.trace.v1.Span.Links.Builder builderForValue) { if (linksBuilder_ == null) { links_ = builderForValue.build(); onChanged(); } else { linksBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The included links.
     * 
* * .opencensus.proto.trace.v1.Span.Links links = 10; */ public Builder mergeLinks(io.opencensus.proto.trace.v1.Span.Links value) { if (linksBuilder_ == null) { if (links_ != null) { links_ = io.opencensus.proto.trace.v1.Span.Links.newBuilder(links_).mergeFrom(value).buildPartial(); } else { links_ = value; } onChanged(); } else { linksBuilder_.mergeFrom(value); } return this; } /** *
     * The included links.
     * 
* * .opencensus.proto.trace.v1.Span.Links links = 10; */ public Builder clearLinks() { if (linksBuilder_ == null) { links_ = null; onChanged(); } else { links_ = null; linksBuilder_ = null; } return this; } /** *
     * The included links.
     * 
* * .opencensus.proto.trace.v1.Span.Links links = 10; */ public io.opencensus.proto.trace.v1.Span.Links.Builder getLinksBuilder() { onChanged(); return getLinksFieldBuilder().getBuilder(); } /** *
     * The included links.
     * 
* * .opencensus.proto.trace.v1.Span.Links links = 10; */ public io.opencensus.proto.trace.v1.Span.LinksOrBuilder getLinksOrBuilder() { if (linksBuilder_ != null) { return linksBuilder_.getMessageOrBuilder(); } else { return links_ == null ? io.opencensus.proto.trace.v1.Span.Links.getDefaultInstance() : links_; } } /** *
     * The included links.
     * 
* * .opencensus.proto.trace.v1.Span.Links links = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.Links, io.opencensus.proto.trace.v1.Span.Links.Builder, io.opencensus.proto.trace.v1.Span.LinksOrBuilder> getLinksFieldBuilder() { if (linksBuilder_ == null) { linksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Span.Links, io.opencensus.proto.trace.v1.Span.Links.Builder, io.opencensus.proto.trace.v1.Span.LinksOrBuilder>( getLinks(), getParentForChildren(), isClean()); links_ = null; } return linksBuilder_; } private io.opencensus.proto.trace.v1.Status status_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Status, io.opencensus.proto.trace.v1.Status.Builder, io.opencensus.proto.trace.v1.StatusOrBuilder> statusBuilder_; /** *
     * 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 statusBuilder_ != null || 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).
     * 
* * .opencensus.proto.trace.v1.Status status = 11; */ public io.opencensus.proto.trace.v1.Status getStatus() { if (statusBuilder_ == null) { return status_ == null ? io.opencensus.proto.trace.v1.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** *
     * 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).
     * 
* * .opencensus.proto.trace.v1.Status status = 11; */ public Builder setStatus( io.opencensus.proto.trace.v1.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } 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).
     * 
* * .opencensus.proto.trace.v1.Status status = 11; */ public Builder mergeStatus(io.opencensus.proto.trace.v1.Status value) { if (statusBuilder_ == null) { if (status_ != null) { status_ = io.opencensus.proto.trace.v1.Status.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } onChanged(); } else { statusBuilder_.mergeFrom(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).
     * 
* * .opencensus.proto.trace.v1.Status status = 11; */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { status_ = null; statusBuilder_ = null; } 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).
     * 
* * .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).
     * 
* * .opencensus.proto.trace.v1.Status status = 11; */ public io.opencensus.proto.trace.v1.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { return status_ == null ? io.opencensus.proto.trace.v1.Status.getDefaultInstance() : 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; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Status, io.opencensus.proto.trace.v1.Status.Builder, io.opencensus.proto.trace.v1.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.trace.v1.Status, io.opencensus.proto.trace.v1.Status.Builder, io.opencensus.proto.trace.v1.StatusOrBuilder>( getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } private io.opencensus.proto.resource.v1.Resource resource_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.resource.v1.Resource, io.opencensus.proto.resource.v1.Resource.Builder, io.opencensus.proto.resource.v1.ResourceOrBuilder> resourceBuilder_; /** *
     * 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 boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** *
     * 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.Resource getResource() { if (resourceBuilder_ == null) { return resource_ == null ? io.opencensus.proto.resource.v1.Resource.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** *
     * 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.
     * 
* * .opencensus.proto.resource.v1.Resource resource = 16; */ public Builder setResource( io.opencensus.proto.resource.v1.Resource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); } else { resourceBuilder_.setMessage(builderForValue.build()); } 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.
     * 
* * .opencensus.proto.resource.v1.Resource resource = 16; */ public Builder mergeResource(io.opencensus.proto.resource.v1.Resource value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = io.opencensus.proto.resource.v1.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } onChanged(); } else { resourceBuilder_.mergeFrom(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.
     * 
* * .opencensus.proto.resource.v1.Resource resource = 16; */ public Builder clearResource() { if (resourceBuilder_ == null) { resource_ = null; onChanged(); } else { resource_ = null; resourceBuilder_ = null; } 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.
     * 
* * .opencensus.proto.resource.v1.Resource resource = 16; */ public io.opencensus.proto.resource.v1.Resource.Builder getResourceBuilder() { onChanged(); return getResourceFieldBuilder().getBuilder(); } /** *
     * 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() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { return resource_ == null ? io.opencensus.proto.resource.v1.Resource.getDefaultInstance() : 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.
     * 
* * .opencensus.proto.resource.v1.Resource resource = 16; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.resource.v1.Resource, io.opencensus.proto.resource.v1.Resource.Builder, io.opencensus.proto.resource.v1.ResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.resource.v1.Resource, io.opencensus.proto.resource.v1.Resource.Builder, io.opencensus.proto.resource.v1.ResourceOrBuilder>( getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; } private com.google.protobuf.BoolValue sameProcessAsParentSpan_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> sameProcessAsParentSpanBuilder_; /** *
     * 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 boolean hasSameProcessAsParentSpan() { return sameProcessAsParentSpanBuilder_ != null || sameProcessAsParentSpan_ != null; } /** *
     * 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.BoolValue getSameProcessAsParentSpan() { if (sameProcessAsParentSpanBuilder_ == null) { return sameProcessAsParentSpan_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : sameProcessAsParentSpan_; } else { return sameProcessAsParentSpanBuilder_.getMessage(); } } /** *
     * 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.
     * 
* * .google.protobuf.BoolValue same_process_as_parent_span = 12; */ public Builder setSameProcessAsParentSpan( com.google.protobuf.BoolValue.Builder builderForValue) { if (sameProcessAsParentSpanBuilder_ == null) { sameProcessAsParentSpan_ = builderForValue.build(); onChanged(); } else { sameProcessAsParentSpanBuilder_.setMessage(builderForValue.build()); } 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.
     * 
* * .google.protobuf.BoolValue same_process_as_parent_span = 12; */ public Builder mergeSameProcessAsParentSpan(com.google.protobuf.BoolValue value) { if (sameProcessAsParentSpanBuilder_ == null) { if (sameProcessAsParentSpan_ != null) { sameProcessAsParentSpan_ = com.google.protobuf.BoolValue.newBuilder(sameProcessAsParentSpan_).mergeFrom(value).buildPartial(); } else { sameProcessAsParentSpan_ = value; } onChanged(); } else { sameProcessAsParentSpanBuilder_.mergeFrom(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.
     * 
* * .google.protobuf.BoolValue same_process_as_parent_span = 12; */ public Builder clearSameProcessAsParentSpan() { if (sameProcessAsParentSpanBuilder_ == null) { sameProcessAsParentSpan_ = null; onChanged(); } else { sameProcessAsParentSpan_ = null; sameProcessAsParentSpanBuilder_ = null; } 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.
     * 
* * .google.protobuf.BoolValue same_process_as_parent_span = 12; */ public com.google.protobuf.BoolValue.Builder getSameProcessAsParentSpanBuilder() { onChanged(); return getSameProcessAsParentSpanFieldBuilder().getBuilder(); } /** *
     * 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() { if (sameProcessAsParentSpanBuilder_ != null) { return sameProcessAsParentSpanBuilder_.getMessageOrBuilder(); } else { return sameProcessAsParentSpan_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : 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.
     * 
* * .google.protobuf.BoolValue same_process_as_parent_span = 12; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> getSameProcessAsParentSpanFieldBuilder() { if (sameProcessAsParentSpanBuilder_ == null) { sameProcessAsParentSpanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( getSameProcessAsParentSpan(), getParentForChildren(), isClean()); sameProcessAsParentSpan_ = null; } return sameProcessAsParentSpanBuilder_; } private com.google.protobuf.UInt32Value childSpanCount_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.UInt32Value, com.google.protobuf.UInt32Value.Builder, com.google.protobuf.UInt32ValueOrBuilder> childSpanCountBuilder_; /** *
     * 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 boolean hasChildSpanCount() { return childSpanCountBuilder_ != null || childSpanCount_ != null; } /** *
     * 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.UInt32Value getChildSpanCount() { if (childSpanCountBuilder_ == null) { return childSpanCount_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : childSpanCount_; } else { return childSpanCountBuilder_.getMessage(); } } /** *
     * 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.
     * 
* * .google.protobuf.UInt32Value child_span_count = 13; */ public Builder setChildSpanCount( com.google.protobuf.UInt32Value.Builder builderForValue) { if (childSpanCountBuilder_ == null) { childSpanCount_ = builderForValue.build(); onChanged(); } else { childSpanCountBuilder_.setMessage(builderForValue.build()); } 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.
     * 
* * .google.protobuf.UInt32Value child_span_count = 13; */ public Builder mergeChildSpanCount(com.google.protobuf.UInt32Value value) { if (childSpanCountBuilder_ == null) { if (childSpanCount_ != null) { childSpanCount_ = com.google.protobuf.UInt32Value.newBuilder(childSpanCount_).mergeFrom(value).buildPartial(); } else { childSpanCount_ = value; } onChanged(); } else { childSpanCountBuilder_.mergeFrom(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.
     * 
* * .google.protobuf.UInt32Value child_span_count = 13; */ public Builder clearChildSpanCount() { if (childSpanCountBuilder_ == null) { childSpanCount_ = null; onChanged(); } else { childSpanCount_ = null; childSpanCountBuilder_ = null; } 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.
     * 
* * .google.protobuf.UInt32Value child_span_count = 13; */ public com.google.protobuf.UInt32Value.Builder getChildSpanCountBuilder() { onChanged(); return getChildSpanCountFieldBuilder().getBuilder(); } /** *
     * 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() { if (childSpanCountBuilder_ != null) { return childSpanCountBuilder_.getMessageOrBuilder(); } else { return childSpanCount_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : 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.
     * 
* * .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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy