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.47
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: opencensus/proto/trace/v1/trace.proto

// Protobuf Java Version: 3.25.1
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(); } 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; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static SpanKind valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire 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() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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(); } 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; * @return The key. */ 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; * @return The bytes for key. */ 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; * @return The value. */ 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; * @return The bytes for value. */ 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(); } 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; @SuppressWarnings("serial") 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; * @return The key. */ @java.lang.Override 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; * @return The bytes for key. */ @java.lang.Override 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; @SuppressWarnings("serial") 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; * @return The value. */ @java.lang.Override 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; * @return The bytes for value. */ @java.lang.Override 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.opencensus.proto.trace.v1.Span.Tracestate.Entry result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.key_ = key_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = value_; } } @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_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getValue().isEmpty()) { value_ = other.value_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { key_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { value_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; * @return The key. */ 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; * @return The bytes for key. */ 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; * @param value The key to set. * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } key_ = value; bitField0_ |= 0x00000001; 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; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); bitField0_ = (bitField0_ & ~0x00000001); 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; * @param value The bytes for key to set. * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); key_ = value; bitField0_ |= 0x00000001; 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; * @return The value. */ 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; * @return The bytes for value. */ 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; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000002; 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; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); bitField0_ = (bitField0_ & ~0x00000002); 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; * @param value The bytes for value to set. * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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; @SuppressWarnings("serial") private java.util.List entries_; /** *
     * A list of entries that represent the Tracestate.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ @java.lang.Override 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; */ @java.lang.Override 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; */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** *
     * A list of entries that represent the Tracestate.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Tracestate.Entry entries = 1; */ @java.lang.Override 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; */ @java.lang.Override 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)); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); } else { entries_ = null; entriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.opencensus.proto.trace.v1.Span.Tracestate result) { if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000001); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.build(); } } private void buildPartial0(io.opencensus.proto.trace.v1.Span.Tracestate result) { int from_bitField0_ = bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.opencensus.proto.trace.v1.Span.Tracestate.Entry m = input.readMessage( io.opencensus.proto.trace.v1.Span.Tracestate.Entry.parser(), extensionRegistry); if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(m); } else { entriesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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; */ /* nullable */ io.opencensus.proto.trace.v1.AttributeValue getAttributeMapOrDefault( java.lang.String key, /* nullable */ 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; * @return The droppedAttributesCount. */ 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(); } 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.MapFieldReflectionAccessor internalGetMapFieldReflection( 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()); } @SuppressWarnings("serial") 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; */ @java.lang.Override public boolean containsAttributeMap( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributeMap().getMap().containsKey(key); } /** * Use {@link #getAttributeMapMap()} instead. */ @java.lang.Override @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; */ @java.lang.Override 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; */ @java.lang.Override public /* nullable */ io.opencensus.proto.trace.v1.AttributeValue getAttributeMapOrDefault( java.lang.String key, /* nullable */ io.opencensus.proto.trace.v1.AttributeValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } 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; */ @java.lang.Override public io.opencensus.proto.trace.v1.AttributeValue getAttributeMapOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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_ = 0; /** *
     * 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; * @return The droppedAttributesCount. */ @java.lang.Override 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_); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 1: return internalGetAttributeMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( 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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.opencensus.proto.trace.v1.Span.Attributes result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.attributeMap_ = internalGetAttributeMap().build(AttributeMapDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000002) != 0)) { result.droppedAttributesCount_ = droppedAttributesCount_; } } @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()); bitField0_ |= 0x00000001; if (other.getDroppedAttributesCount() != 0) { setDroppedAttributesCount(other.getDroppedAttributesCount()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.MapEntry attributeMap__ = input.readMessage( AttributeMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAttributeMap().ensureBuilderMap().put( attributeMap__.getKey(), attributeMap__.getValue()); bitField0_ |= 0x00000001; break; } // case 10 case 16: { droppedAttributesCount_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private static final class AttributeMapConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public io.opencensus.proto.trace.v1.AttributeValue build(io.opencensus.proto.trace.v1.AttributeValueOrBuilder val) { if (val instanceof io.opencensus.proto.trace.v1.AttributeValue) { return (io.opencensus.proto.trace.v1.AttributeValue) val; } return ((io.opencensus.proto.trace.v1.AttributeValue.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return AttributeMapDefaultEntryHolder.defaultEntry; } }; private static final AttributeMapConverter attributeMapConverter = new AttributeMapConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, io.opencensus.proto.trace.v1.AttributeValueOrBuilder, io.opencensus.proto.trace.v1.AttributeValue, io.opencensus.proto.trace.v1.AttributeValue.Builder> attributeMap_; private com.google.protobuf.MapFieldBuilder internalGetAttributeMap() { if (attributeMap_ == null) { return new com.google.protobuf.MapFieldBuilder<>(attributeMapConverter); } return attributeMap_; } private com.google.protobuf.MapFieldBuilder internalGetMutableAttributeMap() { if (attributeMap_ == null) { attributeMap_ = new com.google.protobuf.MapFieldBuilder<>(attributeMapConverter); } bitField0_ |= 0x00000001; onChanged(); return attributeMap_; } public int getAttributeMapCount() { return internalGetAttributeMap().ensureBuilderMap().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; */ @java.lang.Override public boolean containsAttributeMap( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAttributeMap().ensureBuilderMap().containsKey(key); } /** * Use {@link #getAttributeMapMap()} instead. */ @java.lang.Override @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; */ @java.lang.Override public java.util.Map getAttributeMapMap() { return internalGetAttributeMap().getImmutableMap(); } /** *
       * 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.lang.Override public /* nullable */ io.opencensus.proto.trace.v1.AttributeValue getAttributeMapOrDefault( java.lang.String key, /* nullable */ io.opencensus.proto.trace.v1.AttributeValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableAttributeMap().ensureBuilderMap(); return map.containsKey(key) ? attributeMapConverter.build(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; */ @java.lang.Override public io.opencensus.proto.trace.v1.AttributeValue getAttributeMapOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableAttributeMap().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return attributeMapConverter.build(map.get(key)); } public Builder clearAttributeMap() { bitField0_ = (bitField0_ & ~0x00000001); internalGetMutableAttributeMap().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 NullPointerException("map key"); } internalGetMutableAttributeMap().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAttributeMap() { bitField0_ |= 0x00000001; return internalGetMutableAttributeMap().ensureMessageMap(); } /** *
       * 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 NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAttributeMap().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000001; 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) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableAttributeMap().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000001; 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 io.opencensus.proto.trace.v1.AttributeValue.Builder putAttributeMapBuilderIfAbsent( java.lang.String key) { java.util.Map builderMap = internalGetMutableAttributeMap().ensureBuilderMap(); io.opencensus.proto.trace.v1.AttributeValueOrBuilder entry = builderMap.get(key); if (entry == null) { entry = io.opencensus.proto.trace.v1.AttributeValue.newBuilder(); builderMap.put(key, entry); } if (entry instanceof io.opencensus.proto.trace.v1.AttributeValue) { entry = ((io.opencensus.proto.trace.v1.AttributeValue) entry).toBuilder(); builderMap.put(key, entry); } return (io.opencensus.proto.trace.v1.AttributeValue.Builder) entry; } 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; * @return The droppedAttributesCount. */ @java.lang.Override 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; * @param value The droppedAttributesCount to set. * @return This builder for chaining. */ public Builder setDroppedAttributesCount(int value) { droppedAttributesCount_ = value; bitField0_ |= 0x00000002; 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; * @return This builder for chaining. */ public Builder clearDroppedAttributesCount() { bitField0_ = (bitField0_ & ~0x00000002); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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; * @return Whether the time field is set. */ boolean hasTime(); /** *
     * The time the event occurred.
     * 
* * .google.protobuf.Timestamp time = 1; * @return The time. */ 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; * @return Whether the annotation field is set. */ boolean hasAnnotation(); /** *
     * A text annotation with a set of attributes.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; * @return The annotation. */ 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; * @return Whether the messageEvent field is set. */ boolean hasMessageEvent(); /** *
     * An event describing a message sent/received between Spans.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent message_event = 3; * @return The messageEvent. */ 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(); 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(); } 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; * @return Whether the description field is set. */ boolean hasDescription(); /** *
       * A user-supplied message describing the event.
       * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; * @return The description. */ 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; * @return Whether the attributes field is set. */ boolean hasAttributes(); /** *
       * A set of attributes on the annotation.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; * @return The attributes. */ 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(); } 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); } private int bitField0_; 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; * @return Whether the description field is set. */ @java.lang.Override public boolean hasDescription() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * A user-supplied message describing the event.
       * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; * @return The description. */ @java.lang.Override 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; */ @java.lang.Override public io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getDescriptionOrBuilder() { return description_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : description_; } 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; * @return Whether the attributes field is set. */ @java.lang.Override public boolean hasAttributes() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * A set of attributes on the annotation.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; * @return The attributes. */ @java.lang.Override 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; */ @java.lang.Override public io.opencensus.proto.trace.v1.Span.AttributesOrBuilder getAttributesOrBuilder() { return attributes_ == null ? io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance() : attributes_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getDescription()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getAttributes()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDescription()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getAttributes()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getDescriptionFieldBuilder(); getAttributesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; description_ = null; if (descriptionBuilder_ != null) { descriptionBuilder_.dispose(); descriptionBuilder_ = null; } attributes_ = null; if (attributesBuilder_ != null) { attributesBuilder_.dispose(); 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 (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.opencensus.proto.trace.v1.Span.TimeEvent.Annotation result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.description_ = descriptionBuilder_ == null ? description_ : descriptionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.attributes_ = attributesBuilder_ == null ? attributes_ : attributesBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getDescriptionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getAttributesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; * @return Whether the description field is set. */ public boolean hasDescription() { return ((bitField0_ & 0x00000001) != 0); } /** *
         * A user-supplied message describing the event.
         * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; * @return The description. */ 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; } else { descriptionBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { descriptionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); 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 (((bitField0_ & 0x00000001) != 0) && description_ != null && description_ != io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance()) { getDescriptionBuilder().mergeFrom(value); } else { description_ = value; } } else { descriptionBuilder_.mergeFrom(value); } if (description_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
         * A user-supplied message describing the event.
         * 
* * .opencensus.proto.trace.v1.TruncatableString description = 1; */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000001); description_ = null; if (descriptionBuilder_ != null) { descriptionBuilder_.dispose(); descriptionBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000001; 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; * @return Whether the attributes field is set. */ public boolean hasAttributes() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * A set of attributes on the annotation.
         * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; * @return The attributes. */ 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; } else { attributesBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); 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(); } else { attributesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); 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 (((bitField0_ & 0x00000002) != 0) && attributes_ != null && attributes_ != io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance()) { getAttributesBuilder().mergeFrom(value); } else { attributes_ = value; } } else { attributesBuilder_.mergeFrom(value); } if (attributes_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * A set of attributes on the annotation.
         * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 2; */ public Builder clearAttributes() { bitField0_ = (bitField0_ & ~0x00000002); attributes_ = null; if (attributesBuilder_ != null) { attributesBuilder_.dispose(); attributesBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000002; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** *
       * The type of MessageEvent. Indicates whether the message was sent or
       * received.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type type = 1; * @return The type. */ 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; * @return The id. */ long getId(); /** *
       * The number of uncompressed bytes sent or received.
       * 
* * uint64 uncompressed_size = 3; * @return The uncompressedSize. */ long getUncompressedSize(); /** *
       * The number of compressed bytes sent or received. If zero, assumed to
       * be the same size as uncompressed.
       * 
* * uint64 compressed_size = 4; * @return The compressedSize. */ 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(); } 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; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire 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() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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_ = 0; /** *
       * The type of MessageEvent. Indicates whether the message was sent or
       * received.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override 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; * @return The type. */ @java.lang.Override public io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type getType() { io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type result = io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type.forNumber(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_ = 0L; /** *
       * 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; * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int UNCOMPRESSED_SIZE_FIELD_NUMBER = 3; private long uncompressedSize_ = 0L; /** *
       * The number of uncompressed bytes sent or received.
       * 
* * uint64 uncompressed_size = 3; * @return The uncompressedSize. */ @java.lang.Override public long getUncompressedSize() { return uncompressedSize_; } public static final int COMPRESSED_SIZE_FIELD_NUMBER = 4; private long compressedSize_ = 0L; /** *
       * The number of compressed bytes sent or received. If zero, assumed to
       * be the same size as uncompressed.
       * 
* * uint64 compressed_size = 4; * @return The compressedSize. */ @java.lang.Override 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_); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.uncompressedSize_ = uncompressedSize_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.compressedSize_ = compressedSize_; } } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { type_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { id_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { uncompressedSize_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { compressedSize_ = input.readUInt64(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; * @return The enum numeric value on the wire for type. */ @java.lang.Override 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; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000001; 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; * @return The type. */ @java.lang.Override public io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type getType() { io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type result = io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type.forNumber(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; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(io.opencensus.proto.trace.v1.Span.TimeEvent.MessageEvent.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; 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; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); 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; * @return The id. */ @java.lang.Override 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; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { id_ = value; bitField0_ |= 0x00000002; 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; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000002); id_ = 0L; onChanged(); return this; } private long uncompressedSize_ ; /** *
         * The number of uncompressed bytes sent or received.
         * 
* * uint64 uncompressed_size = 3; * @return The uncompressedSize. */ @java.lang.Override public long getUncompressedSize() { return uncompressedSize_; } /** *
         * The number of uncompressed bytes sent or received.
         * 
* * uint64 uncompressed_size = 3; * @param value The uncompressedSize to set. * @return This builder for chaining. */ public Builder setUncompressedSize(long value) { uncompressedSize_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
         * The number of uncompressed bytes sent or received.
         * 
* * uint64 uncompressed_size = 3; * @return This builder for chaining. */ public Builder clearUncompressedSize() { bitField0_ = (bitField0_ & ~0x00000004); 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; * @return The compressedSize. */ @java.lang.Override 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; * @param value The compressedSize to set. * @return This builder for chaining. */ public Builder setCompressedSize(long value) { compressedSize_ = value; bitField0_ |= 0x00000008; 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; * @return This builder for chaining. */ public Builder clearCompressedSize() { bitField0_ = (bitField0_ & ~0x00000008); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 bitField0_; private int valueCase_ = 0; @SuppressWarnings("serial") private java.lang.Object value_; public enum ValueCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ANNOTATION(2), MESSAGE_EVENT(3), VALUE_NOT_SET(0); private final int value; private ValueCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @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; * @return Whether the time field is set. */ @java.lang.Override public boolean hasTime() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The time the event occurred.
     * 
* * .google.protobuf.Timestamp time = 1; * @return The time. */ @java.lang.Override 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; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder() { return time_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : time_; } 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; * @return Whether the annotation field is set. */ @java.lang.Override public boolean hasAnnotation() { return valueCase_ == 2; } /** *
     * A text annotation with a set of attributes.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; * @return The annotation. */ @java.lang.Override 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; */ @java.lang.Override 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; * @return Whether the messageEvent field is set. */ @java.lang.Override 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; * @return The messageEvent. */ @java.lang.Override 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; */ @java.lang.Override 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 (((bitField0_ & 0x00000001) != 0)) { 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_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { 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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; time_ = null; if (timeBuilder_ != null) { timeBuilder_.dispose(); timeBuilder_ = null; } if (annotationBuilder_ != null) { annotationBuilder_.clear(); } if (messageEventBuilder_ != null) { messageEventBuilder_.clear(); } 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(io.opencensus.proto.trace.v1.Span.TimeEvent result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.time_ = timeBuilder_ == null ? time_ : timeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(io.opencensus.proto.trace.v1.Span.TimeEvent result) { result.valueCase_ = valueCase_; result.value_ = this.value_; if (valueCase_ == 2 && annotationBuilder_ != null) { result.value_ = annotationBuilder_.build(); } if (valueCase_ == 3 && messageEventBuilder_ != null) { result.value_ = messageEventBuilder_.build(); } } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getAnnotationFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 2; break; } // case 18 case 26: { input.readMessage( getMessageEventFieldBuilder().getBuilder(), extensionRegistry); valueCase_ = 3; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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 int bitField0_; 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; * @return Whether the time field is set. */ public boolean hasTime() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * The time the event occurred.
       * 
* * .google.protobuf.Timestamp time = 1; * @return The time. */ 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; } else { timeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); 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(); } else { timeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * The time the event occurred.
       * 
* * .google.protobuf.Timestamp time = 1; */ public Builder mergeTime(com.google.protobuf.Timestamp value) { if (timeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && time_ != null && time_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getTimeBuilder().mergeFrom(value); } else { time_ = value; } } else { timeBuilder_.mergeFrom(value); } if (time_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
       * The time the event occurred.
       * 
* * .google.protobuf.Timestamp time = 1; */ public Builder clearTime() { bitField0_ = (bitField0_ & ~0x00000001); time_ = null; if (timeBuilder_ != null) { timeBuilder_.dispose(); timeBuilder_ = null; } onChanged(); return this; } /** *
       * The time the event occurred.
       * 
* * .google.protobuf.Timestamp time = 1; */ public com.google.protobuf.Timestamp.Builder getTimeBuilder() { bitField0_ |= 0x00000001; 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; * @return Whether the annotation field is set. */ @java.lang.Override public boolean hasAnnotation() { return valueCase_ == 2; } /** *
       * A text annotation with a set of attributes.
       * 
* * .opencensus.proto.trace.v1.Span.TimeEvent.Annotation annotation = 2; * @return The annotation. */ @java.lang.Override 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); } 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 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; */ @java.lang.Override 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; * @return Whether the messageEvent field is set. */ @java.lang.Override 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; * @return The messageEvent. */ @java.lang.Override 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); } 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 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; */ @java.lang.Override 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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; * @return The droppedAnnotationsCount. */ 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; * @return The droppedMessageEventsCount. */ 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(); } 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; @SuppressWarnings("serial") private java.util.List timeEvent_; /** *
     * A collection of `TimeEvent`s.
     * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ @java.lang.Override public java.util.List getTimeEventList() { return timeEvent_; } /** *
     * A collection of `TimeEvent`s.
     * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ @java.lang.Override public java.util.List getTimeEventOrBuilderList() { return timeEvent_; } /** *
     * A collection of `TimeEvent`s.
     * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ @java.lang.Override public int getTimeEventCount() { return timeEvent_.size(); } /** *
     * A collection of `TimeEvent`s.
     * 
* * repeated .opencensus.proto.trace.v1.Span.TimeEvent time_event = 1; */ @java.lang.Override 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; */ @java.lang.Override 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_ = 0; /** *
     * 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; * @return The droppedAnnotationsCount. */ @java.lang.Override public int getDroppedAnnotationsCount() { return droppedAnnotationsCount_; } public static final int DROPPED_MESSAGE_EVENTS_COUNT_FIELD_NUMBER = 3; private int droppedMessageEventsCount_ = 0; /** *
     * 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; * @return The droppedMessageEventsCount. */ @java.lang.Override 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_); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (timeEventBuilder_ == null) { timeEvent_ = java.util.Collections.emptyList(); } else { timeEvent_ = null; timeEventBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.opencensus.proto.trace.v1.Span.TimeEvents result) { if (timeEventBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { timeEvent_ = java.util.Collections.unmodifiableList(timeEvent_); bitField0_ = (bitField0_ & ~0x00000001); } result.timeEvent_ = timeEvent_; } else { result.timeEvent_ = timeEventBuilder_.build(); } } private void buildPartial0(io.opencensus.proto.trace.v1.Span.TimeEvents result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.droppedAnnotationsCount_ = droppedAnnotationsCount_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.droppedMessageEventsCount_ = droppedMessageEventsCount_; } } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.opencensus.proto.trace.v1.Span.TimeEvent m = input.readMessage( io.opencensus.proto.trace.v1.Span.TimeEvent.parser(), extensionRegistry); if (timeEventBuilder_ == null) { ensureTimeEventIsMutable(); timeEvent_.add(m); } else { timeEventBuilder_.addMessage(m); } break; } // case 10 case 16: { droppedAnnotationsCount_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { droppedMessageEventsCount_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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; * @return The droppedAnnotationsCount. */ @java.lang.Override 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; * @param value The droppedAnnotationsCount to set. * @return This builder for chaining. */ public Builder setDroppedAnnotationsCount(int value) { droppedAnnotationsCount_ = value; bitField0_ |= 0x00000002; 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; * @return This builder for chaining. */ public Builder clearDroppedAnnotationsCount() { bitField0_ = (bitField0_ & ~0x00000002); 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; * @return The droppedMessageEventsCount. */ @java.lang.Override 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; * @param value The droppedMessageEventsCount to set. * @return This builder for chaining. */ public Builder setDroppedMessageEventsCount(int value) { droppedMessageEventsCount_ = value; bitField0_ |= 0x00000004; 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; * @return This builder for chaining. */ public Builder clearDroppedMessageEventsCount() { bitField0_ = (bitField0_ & ~0x00000004); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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; * @return The traceId. */ com.google.protobuf.ByteString getTraceId(); /** *
     * A unique identifier for the linked span. The ID is an 8-byte array.
     * 
* * bytes span_id = 2; * @return The spanId. */ 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; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** *
     * The relationship of the current span relative to the linked span.
     * 
* * .opencensus.proto.trace.v1.Span.Link.Type type = 3; * @return The type. */ io.opencensus.proto.trace.v1.Span.Link.Type getType(); /** *
     * A set of attributes on the link.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; * @return Whether the attributes field is set. */ boolean hasAttributes(); /** *
     * A set of attributes on the link.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; * @return The attributes. */ 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(); /** *
     * The Tracestate associated with the link.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 5; * @return Whether the tracestate field is set. */ boolean hasTracestate(); /** *
     * The Tracestate associated with the link.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 5; * @return The tracestate. */ io.opencensus.proto.trace.v1.Span.Tracestate getTracestate(); /** *
     * The Tracestate associated with the link.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 5; */ io.opencensus.proto.trace.v1.Span.TracestateOrBuilder getTracestateOrBuilder(); } /** *
   * 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(); } 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; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Type valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire 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() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } 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) } private int bitField0_; public static final int TRACE_ID_FIELD_NUMBER = 1; 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; * @return The traceId. */ @java.lang.Override public com.google.protobuf.ByteString getTraceId() { return traceId_; } public static final int SPAN_ID_FIELD_NUMBER = 2; 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; * @return The spanId. */ @java.lang.Override public com.google.protobuf.ByteString getSpanId() { return spanId_; } public static final int TYPE_FIELD_NUMBER = 3; private int type_ = 0; /** *
     * The relationship of the current span relative to the linked span.
     * 
* * .opencensus.proto.trace.v1.Span.Link.Type type = 3; * @return The enum numeric value on the wire for type. */ @java.lang.Override 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; * @return The type. */ @java.lang.Override public io.opencensus.proto.trace.v1.Span.Link.Type getType() { io.opencensus.proto.trace.v1.Span.Link.Type result = io.opencensus.proto.trace.v1.Span.Link.Type.forNumber(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; * @return Whether the attributes field is set. */ @java.lang.Override public boolean hasAttributes() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * A set of attributes on the link.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; * @return The attributes. */ @java.lang.Override 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; */ @java.lang.Override public io.opencensus.proto.trace.v1.Span.AttributesOrBuilder getAttributesOrBuilder() { return attributes_ == null ? io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance() : attributes_; } public static final int TRACESTATE_FIELD_NUMBER = 5; private io.opencensus.proto.trace.v1.Span.Tracestate tracestate_; /** *
     * The Tracestate associated with the link.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 5; * @return Whether the tracestate field is set. */ @java.lang.Override public boolean hasTracestate() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The Tracestate associated with the link.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 5; * @return The tracestate. */ @java.lang.Override public io.opencensus.proto.trace.v1.Span.Tracestate getTracestate() { return tracestate_ == null ? io.opencensus.proto.trace.v1.Span.Tracestate.getDefaultInstance() : tracestate_; } /** *
     * The Tracestate associated with the link.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 5; */ @java.lang.Override public io.opencensus.proto.trace.v1.Span.TracestateOrBuilder getTracestateOrBuilder() { return tracestate_ == null ? io.opencensus.proto.trace.v1.Span.Tracestate.getDefaultInstance() : tracestate_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getAttributes()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(5, getTracestate()); } getUnknownFields().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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getAttributes()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getTracestate()); } size += getUnknownFields().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 (hasTracestate() != other.hasTracestate()) return false; if (hasTracestate()) { if (!getTracestate() .equals(other.getTracestate())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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(); } if (hasTracestate()) { hash = (37 * hash) + TRACESTATE_FIELD_NUMBER; hash = (53 * hash) + getTracestate().hashCode(); } hash = (29 * hash) + getUnknownFields().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) { getAttributesFieldBuilder(); getTracestateFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; traceId_ = com.google.protobuf.ByteString.EMPTY; spanId_ = com.google.protobuf.ByteString.EMPTY; type_ = 0; attributes_ = null; if (attributesBuilder_ != null) { attributesBuilder_.dispose(); attributesBuilder_ = null; } tracestate_ = null; if (tracestateBuilder_ != null) { tracestateBuilder_.dispose(); tracestateBuilder_ = 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.opencensus.proto.trace.v1.Span.Link result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.traceId_ = traceId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.spanId_ = spanId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.type_ = type_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.attributes_ = attributesBuilder_ == null ? attributes_ : attributesBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.tracestate_ = tracestateBuilder_ == null ? tracestate_ : tracestateBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @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()); } if (other.hasTracestate()) { mergeTracestate(other.getTracestate()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { traceId_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { spanId_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { type_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage( getAttributesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getTracestateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; * @return The traceId. */ @java.lang.Override 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; * @param value The traceId to set. * @return This builder for chaining. */ public Builder setTraceId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } traceId_ = value; bitField0_ |= 0x00000001; 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; * @return This builder for chaining. */ public Builder clearTraceId() { bitField0_ = (bitField0_ & ~0x00000001); 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; * @return The spanId. */ @java.lang.Override 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; * @param value The spanId to set. * @return This builder for chaining. */ public Builder setSpanId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } spanId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * A unique identifier for the linked span. The ID is an 8-byte array.
       * 
* * bytes span_id = 2; * @return This builder for chaining. */ public Builder clearSpanId() { bitField0_ = (bitField0_ & ~0x00000002); 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; * @return The enum numeric value on the wire for type. */ @java.lang.Override 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; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * The relationship of the current span relative to the linked span.
       * 
* * .opencensus.proto.trace.v1.Span.Link.Type type = 3; * @return The type. */ @java.lang.Override public io.opencensus.proto.trace.v1.Span.Link.Type getType() { io.opencensus.proto.trace.v1.Span.Link.Type result = io.opencensus.proto.trace.v1.Span.Link.Type.forNumber(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; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(io.opencensus.proto.trace.v1.Span.Link.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; 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; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); 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; * @return Whether the attributes field is set. */ public boolean hasAttributes() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * A set of attributes on the link.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; * @return The attributes. */ 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; } else { attributesBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); 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(); } else { attributesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); 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 (((bitField0_ & 0x00000008) != 0) && attributes_ != null && attributes_ != io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance()) { getAttributesBuilder().mergeFrom(value); } else { attributes_ = value; } } else { attributesBuilder_.mergeFrom(value); } if (attributes_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
       * A set of attributes on the link.
       * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 4; */ public Builder clearAttributes() { bitField0_ = (bitField0_ & ~0x00000008); attributes_ = null; if (attributesBuilder_ != null) { attributesBuilder_.dispose(); attributesBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000008; 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_; } 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 associated with the link.
       * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 5; * @return Whether the tracestate field is set. */ public boolean hasTracestate() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * The Tracestate associated with the link.
       * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 5; * @return The tracestate. */ 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 associated with the link.
       * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 5; */ public Builder setTracestate(io.opencensus.proto.trace.v1.Span.Tracestate value) { if (tracestateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tracestate_ = value; } else { tracestateBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The Tracestate associated with the link.
       * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 5; */ public Builder setTracestate( io.opencensus.proto.trace.v1.Span.Tracestate.Builder builderForValue) { if (tracestateBuilder_ == null) { tracestate_ = builderForValue.build(); } else { tracestateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * The Tracestate associated with the link.
       * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 5; */ public Builder mergeTracestate(io.opencensus.proto.trace.v1.Span.Tracestate value) { if (tracestateBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && tracestate_ != null && tracestate_ != io.opencensus.proto.trace.v1.Span.Tracestate.getDefaultInstance()) { getTracestateBuilder().mergeFrom(value); } else { tracestate_ = value; } } else { tracestateBuilder_.mergeFrom(value); } if (tracestate_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** *
       * The Tracestate associated with the link.
       * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 5; */ public Builder clearTracestate() { bitField0_ = (bitField0_ & ~0x00000010); tracestate_ = null; if (tracestateBuilder_ != null) { tracestateBuilder_.dispose(); tracestateBuilder_ = null; } onChanged(); return this; } /** *
       * The Tracestate associated with the link.
       * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 5; */ public io.opencensus.proto.trace.v1.Span.Tracestate.Builder getTracestateBuilder() { bitField0_ |= 0x00000010; onChanged(); return getTracestateFieldBuilder().getBuilder(); } /** *
       * The Tracestate associated with the link.
       * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 5; */ 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 associated with the link.
       * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 5; */ 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_; } @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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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; * @return The droppedLinksCount. */ 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(); } 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; @SuppressWarnings("serial") private java.util.List link_; /** *
     * A collection of links.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ @java.lang.Override public java.util.List getLinkList() { return link_; } /** *
     * A collection of links.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ @java.lang.Override public java.util.List getLinkOrBuilderList() { return link_; } /** *
     * A collection of links.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ @java.lang.Override public int getLinkCount() { return link_.size(); } /** *
     * A collection of links.
     * 
* * repeated .opencensus.proto.trace.v1.Span.Link link = 1; */ @java.lang.Override 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; */ @java.lang.Override 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_ = 0; /** *
     * 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; * @return The droppedLinksCount. */ @java.lang.Override 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_); } getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (linkBuilder_ == null) { link_ = java.util.Collections.emptyList(); } else { link_ = null; linkBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); 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); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(io.opencensus.proto.trace.v1.Span.Links result) { if (linkBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { link_ = java.util.Collections.unmodifiableList(link_); bitField0_ = (bitField0_ & ~0x00000001); } result.link_ = link_; } else { result.link_ = linkBuilder_.build(); } } private void buildPartial0(io.opencensus.proto.trace.v1.Span.Links result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.droppedLinksCount_ = droppedLinksCount_; } } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.opencensus.proto.trace.v1.Span.Link m = input.readMessage( io.opencensus.proto.trace.v1.Span.Link.parser(), extensionRegistry); if (linkBuilder_ == null) { ensureLinkIsMutable(); link_.add(m); } else { linkBuilder_.addMessage(m); } break; } // case 10 case 16: { droppedLinksCount_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally 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; * @return The droppedLinksCount. */ @java.lang.Override 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; * @param value The droppedLinksCount to set. * @return This builder for chaining. */ public Builder setDroppedLinksCount(int value) { droppedLinksCount_ = value; bitField0_ |= 0x00000002; 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; * @return This builder for chaining. */ public Builder clearDroppedLinksCount() { bitField0_ = (bitField0_ & ~0x00000002); 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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; } } private int bitField0_; public static final int TRACE_ID_FIELD_NUMBER = 1; 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; * @return The traceId. */ @java.lang.Override public com.google.protobuf.ByteString getTraceId() { return traceId_; } public static final int SPAN_ID_FIELD_NUMBER = 2; 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; * @return The spanId. */ @java.lang.Override 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; * @return Whether the tracestate field is set. */ @java.lang.Override public boolean hasTracestate() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The Tracestate on the span.
   * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 15; * @return The tracestate. */ @java.lang.Override 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; */ @java.lang.Override public io.opencensus.proto.trace.v1.Span.TracestateOrBuilder getTracestateOrBuilder() { return tracestate_ == null ? io.opencensus.proto.trace.v1.Span.Tracestate.getDefaultInstance() : tracestate_; } public static final int PARENT_SPAN_ID_FIELD_NUMBER = 3; 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; * @return The parentSpanId. */ @java.lang.Override 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; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * 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; * @return The name. */ @java.lang.Override 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; */ @java.lang.Override public io.opencensus.proto.trace.v1.TruncatableStringOrBuilder getNameOrBuilder() { return name_ == null ? io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance() : name_; } public static final int KIND_FIELD_NUMBER = 14; 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; * @return The enum numeric value on the wire for kind. */ @java.lang.Override 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; * @return The kind. */ @java.lang.Override public io.opencensus.proto.trace.v1.Span.SpanKind getKind() { io.opencensus.proto.trace.v1.Span.SpanKind result = io.opencensus.proto.trace.v1.Span.SpanKind.forNumber(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; * @return Whether the startTime field is set. */ @java.lang.Override public boolean hasStartTime() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * 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; * @return The startTime. */ @java.lang.Override 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; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } 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; * @return Whether the endTime field is set. */ @java.lang.Override public boolean hasEndTime() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * 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; * @return The endTime. */ @java.lang.Override 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; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } 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; * @return Whether the attributes field is set. */ @java.lang.Override public boolean hasAttributes() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * A set of attributes on the span.
   * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 7; * @return The attributes. */ @java.lang.Override 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; */ @java.lang.Override public io.opencensus.proto.trace.v1.Span.AttributesOrBuilder getAttributesOrBuilder() { return attributes_ == null ? io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance() : attributes_; } 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; * @return Whether the stackTrace field is set. */ @java.lang.Override public boolean hasStackTrace() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * A stack trace captured at the start of the span.
   * 
* * .opencensus.proto.trace.v1.StackTrace stack_trace = 8; * @return The stackTrace. */ @java.lang.Override 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; */ @java.lang.Override public io.opencensus.proto.trace.v1.StackTraceOrBuilder getStackTraceOrBuilder() { return stackTrace_ == null ? io.opencensus.proto.trace.v1.StackTrace.getDefaultInstance() : stackTrace_; } 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; * @return Whether the timeEvents field is set. */ @java.lang.Override public boolean hasTimeEvents() { return ((bitField0_ & 0x00000040) != 0); } /** *
   * The included time events.
   * 
* * .opencensus.proto.trace.v1.Span.TimeEvents time_events = 9; * @return The timeEvents. */ @java.lang.Override 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; */ @java.lang.Override public io.opencensus.proto.trace.v1.Span.TimeEventsOrBuilder getTimeEventsOrBuilder() { return timeEvents_ == null ? io.opencensus.proto.trace.v1.Span.TimeEvents.getDefaultInstance() : timeEvents_; } 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; * @return Whether the links field is set. */ @java.lang.Override public boolean hasLinks() { return ((bitField0_ & 0x00000080) != 0); } /** *
   * The included links.
   * 
* * .opencensus.proto.trace.v1.Span.Links links = 10; * @return The links. */ @java.lang.Override 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; */ @java.lang.Override public io.opencensus.proto.trace.v1.Span.LinksOrBuilder getLinksOrBuilder() { return links_ == null ? io.opencensus.proto.trace.v1.Span.Links.getDefaultInstance() : links_; } 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; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return ((bitField0_ & 0x00000100) != 0); } /** *
   * An optional final status for this span. Semantically when Status
   * wasn't set it is means span ended without errors and assume
   * Status.Ok (code = 0).
   * 
* * .opencensus.proto.trace.v1.Status status = 11; * @return The status. */ @java.lang.Override 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; */ @java.lang.Override public io.opencensus.proto.trace.v1.StatusOrBuilder getStatusOrBuilder() { return status_ == null ? io.opencensus.proto.trace.v1.Status.getDefaultInstance() : status_; } 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; * @return Whether the resource field is set. */ @java.lang.Override public boolean hasResource() { return ((bitField0_ & 0x00000200) != 0); } /** *
   * An optional resource that is associated with this span. If not set, this span 
   * should be part of a batch that does include the resource information, unless resource 
   * information is unknown.
   * 
* * .opencensus.proto.resource.v1.Resource resource = 16; * @return The resource. */ @java.lang.Override 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; */ @java.lang.Override public io.opencensus.proto.resource.v1.ResourceOrBuilder getResourceOrBuilder() { return resource_ == null ? io.opencensus.proto.resource.v1.Resource.getDefaultInstance() : resource_; } 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; * @return Whether the sameProcessAsParentSpan field is set. */ @java.lang.Override public boolean hasSameProcessAsParentSpan() { return ((bitField0_ & 0x00000400) != 0); } /** *
   * 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; * @return The sameProcessAsParentSpan. */ @java.lang.Override 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; */ @java.lang.Override public com.google.protobuf.BoolValueOrBuilder getSameProcessAsParentSpanOrBuilder() { return sameProcessAsParentSpan_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : sameProcessAsParentSpan_; } 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; * @return Whether the childSpanCount field is set. */ @java.lang.Override public boolean hasChildSpanCount() { return ((bitField0_ & 0x00000800) != 0); } /** *
   * 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; * @return The childSpanCount. */ @java.lang.Override 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; */ @java.lang.Override public com.google.protobuf.UInt32ValueOrBuilder getChildSpanCountOrBuilder() { return childSpanCount_ == null ? com.google.protobuf.UInt32Value.getDefaultInstance() : childSpanCount_; } 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 (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getName()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getStartTime()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(6, getEndTime()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(7, getAttributes()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(8, getStackTrace()); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(9, getTimeEvents()); } if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(10, getLinks()); } if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(11, getStatus()); } if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(12, getSameProcessAsParentSpan()); } if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(13, getChildSpanCount()); } if (kind_ != io.opencensus.proto.trace.v1.Span.SpanKind.SPAN_KIND_UNSPECIFIED.getNumber()) { output.writeEnum(14, kind_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(15, getTracestate()); } if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(16, getResource()); } getUnknownFields().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 (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getName()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getStartTime()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getEndTime()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getAttributes()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getStackTrace()); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getTimeEvents()); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getLinks()); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getStatus()); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getSameProcessAsParentSpan()); } if (((bitField0_ & 0x00000800) != 0)) { 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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getTracestate()); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, getResource()); } size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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) { getTracestateFieldBuilder(); getNameFieldBuilder(); getStartTimeFieldBuilder(); getEndTimeFieldBuilder(); getAttributesFieldBuilder(); getStackTraceFieldBuilder(); getTimeEventsFieldBuilder(); getLinksFieldBuilder(); getStatusFieldBuilder(); getResourceFieldBuilder(); getSameProcessAsParentSpanFieldBuilder(); getChildSpanCountFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; traceId_ = com.google.protobuf.ByteString.EMPTY; spanId_ = com.google.protobuf.ByteString.EMPTY; tracestate_ = null; if (tracestateBuilder_ != null) { tracestateBuilder_.dispose(); tracestateBuilder_ = null; } parentSpanId_ = com.google.protobuf.ByteString.EMPTY; name_ = null; if (nameBuilder_ != null) { nameBuilder_.dispose(); nameBuilder_ = null; } kind_ = 0; startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); endTimeBuilder_ = null; } attributes_ = null; if (attributesBuilder_ != null) { attributesBuilder_.dispose(); attributesBuilder_ = null; } stackTrace_ = null; if (stackTraceBuilder_ != null) { stackTraceBuilder_.dispose(); stackTraceBuilder_ = null; } timeEvents_ = null; if (timeEventsBuilder_ != null) { timeEventsBuilder_.dispose(); timeEventsBuilder_ = null; } links_ = null; if (linksBuilder_ != null) { linksBuilder_.dispose(); linksBuilder_ = null; } status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } resource_ = null; if (resourceBuilder_ != null) { resourceBuilder_.dispose(); resourceBuilder_ = null; } sameProcessAsParentSpan_ = null; if (sameProcessAsParentSpanBuilder_ != null) { sameProcessAsParentSpanBuilder_.dispose(); sameProcessAsParentSpanBuilder_ = null; } childSpanCount_ = null; if (childSpanCountBuilder_ != null) { childSpanCountBuilder_.dispose(); 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); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(io.opencensus.proto.trace.v1.Span result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.traceId_ = traceId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.spanId_ = spanId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.tracestate_ = tracestateBuilder_ == null ? tracestate_ : tracestateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.parentSpanId_ = parentSpanId_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.name_ = nameBuilder_ == null ? name_ : nameBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000020) != 0)) { result.kind_ = kind_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000080) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000100) != 0)) { result.attributes_ = attributesBuilder_ == null ? attributes_ : attributesBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000200) != 0)) { result.stackTrace_ = stackTraceBuilder_ == null ? stackTrace_ : stackTraceBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000400) != 0)) { result.timeEvents_ = timeEventsBuilder_ == null ? timeEvents_ : timeEventsBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000800) != 0)) { result.links_ = linksBuilder_ == null ? links_ : linksBuilder_.build(); to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00001000) != 0)) { result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00002000) != 0)) { result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00004000) != 0)) { result.sameProcessAsParentSpan_ = sameProcessAsParentSpanBuilder_ == null ? sameProcessAsParentSpan_ : sameProcessAsParentSpanBuilder_.build(); to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00008000) != 0)) { result.childSpanCount_ = childSpanCountBuilder_ == null ? childSpanCount_ : childSpanCountBuilder_.build(); to_bitField0_ |= 0x00000800; } result.bitField0_ |= to_bitField0_; } @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.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { traceId_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { spanId_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { parentSpanId_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage( getNameFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 34 case 42: { input.readMessage( getStartTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 42 case 50: { input.readMessage( getEndTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 50 case 58: { input.readMessage( getAttributesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 58 case 66: { input.readMessage( getStackTraceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000200; break; } // case 66 case 74: { input.readMessage( getTimeEventsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 74 case 82: { input.readMessage( getLinksFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000800; break; } // case 82 case 90: { input.readMessage( getStatusFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00001000; break; } // case 90 case 98: { input.readMessage( getSameProcessAsParentSpanFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00004000; break; } // case 98 case 106: { input.readMessage( getChildSpanCountFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00008000; break; } // case 106 case 112: { kind_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 112 case 122: { input.readMessage( getTracestateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 122 case 130: { input.readMessage( getResourceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00002000; break; } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; 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; * @return The traceId. */ @java.lang.Override 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; * @param value The traceId to set. * @return This builder for chaining. */ public Builder setTraceId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } traceId_ = value; bitField0_ |= 0x00000001; 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; * @return This builder for chaining. */ public Builder clearTraceId() { bitField0_ = (bitField0_ & ~0x00000001); 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; * @return The spanId. */ @java.lang.Override 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; * @param value The spanId to set. * @return This builder for chaining. */ public Builder setSpanId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } spanId_ = value; bitField0_ |= 0x00000002; 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; * @return This builder for chaining. */ public Builder clearSpanId() { bitField0_ = (bitField0_ & ~0x00000002); 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; * @return Whether the tracestate field is set. */ public boolean hasTracestate() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * The Tracestate on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 15; * @return The tracestate. */ 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; } else { tracestateBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); 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(); } else { tracestateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); 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 (((bitField0_ & 0x00000004) != 0) && tracestate_ != null && tracestate_ != io.opencensus.proto.trace.v1.Span.Tracestate.getDefaultInstance()) { getTracestateBuilder().mergeFrom(value); } else { tracestate_ = value; } } else { tracestateBuilder_.mergeFrom(value); } if (tracestate_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * The Tracestate on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Tracestate tracestate = 15; */ public Builder clearTracestate() { bitField0_ = (bitField0_ & ~0x00000004); tracestate_ = null; if (tracestateBuilder_ != null) { tracestateBuilder_.dispose(); tracestateBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000004; 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; * @return The parentSpanId. */ @java.lang.Override 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; * @param value The parentSpanId to set. * @return This builder for chaining. */ public Builder setParentSpanId(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } parentSpanId_ = value; bitField0_ |= 0x00000008; 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; * @return This builder for chaining. */ public Builder clearParentSpanId() { bitField0_ = (bitField0_ & ~0x00000008); 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; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * 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; * @return The name. */ 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; } else { nameBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); 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(); } else { nameBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); 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 (((bitField0_ & 0x00000010) != 0) && name_ != null && name_ != io.opencensus.proto.trace.v1.TruncatableString.getDefaultInstance()) { getNameBuilder().mergeFrom(value); } else { name_ = value; } } else { nameBuilder_.mergeFrom(value); } if (name_ != null) { bitField0_ |= 0x00000010; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000010); name_ = null; if (nameBuilder_ != null) { nameBuilder_.dispose(); nameBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000010; 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; * @return The enum numeric value on the wire for kind. */ @java.lang.Override 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; * @param value The enum numeric value on the wire for kind to set. * @return This builder for chaining. */ public Builder setKindValue(int value) { kind_ = value; bitField0_ |= 0x00000020; 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; * @return The kind. */ @java.lang.Override public io.opencensus.proto.trace.v1.Span.SpanKind getKind() { io.opencensus.proto.trace.v1.Span.SpanKind result = io.opencensus.proto.trace.v1.Span.SpanKind.forNumber(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; * @param value The kind to set. * @return This builder for chaining. */ public Builder setKind(io.opencensus.proto.trace.v1.Span.SpanKind value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; 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; * @return This builder for chaining. */ public Builder clearKind() { bitField0_ = (bitField0_ & ~0x00000020); 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; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * 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; * @return The startTime. */ 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; } else { startTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); 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(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); 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 (((bitField0_ & 0x00000040) != 0) && startTime_ != null && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } } else { startTimeBuilder_.mergeFrom(value); } if (startTime_ != null) { bitField0_ |= 0x00000040; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000040); startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); startTimeBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000040; 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; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * 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; * @return The endTime. */ 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; } else { endTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); 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(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); 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 (((bitField0_ & 0x00000080) != 0) && endTime_ != null && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } } else { endTimeBuilder_.mergeFrom(value); } if (endTime_ != null) { bitField0_ |= 0x00000080; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00000080); endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); endTimeBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000080; 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; * @return Whether the attributes field is set. */ public boolean hasAttributes() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * A set of attributes on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 7; * @return The attributes. */ 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; } else { attributesBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); 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(); } else { attributesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); 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 (((bitField0_ & 0x00000100) != 0) && attributes_ != null && attributes_ != io.opencensus.proto.trace.v1.Span.Attributes.getDefaultInstance()) { getAttributesBuilder().mergeFrom(value); } else { attributes_ = value; } } else { attributesBuilder_.mergeFrom(value); } if (attributes_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** *
     * A set of attributes on the span.
     * 
* * .opencensus.proto.trace.v1.Span.Attributes attributes = 7; */ public Builder clearAttributes() { bitField0_ = (bitField0_ & ~0x00000100); attributes_ = null; if (attributesBuilder_ != null) { attributesBuilder_.dispose(); attributesBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000100; 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; * @return Whether the stackTrace field is set. */ public boolean hasStackTrace() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * A stack trace captured at the start of the span.
     * 
* * .opencensus.proto.trace.v1.StackTrace stack_trace = 8; * @return The stackTrace. */ 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; } else { stackTraceBuilder_.setMessage(value); } bitField0_ |= 0x00000200; onChanged(); 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(); } else { stackTraceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; onChanged(); 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 (((bitField0_ & 0x00000200) != 0) && stackTrace_ != null && stackTrace_ != io.opencensus.proto.trace.v1.StackTrace.getDefaultInstance()) { getStackTraceBuilder().mergeFrom(value); } else { stackTrace_ = value; } } else { stackTraceBuilder_.mergeFrom(value); } if (stackTrace_ != null) { bitField0_ |= 0x00000200; onChanged(); } return this; } /** *
     * A stack trace captured at the start of the span.
     * 
* * .opencensus.proto.trace.v1.StackTrace stack_trace = 8; */ public Builder clearStackTrace() { bitField0_ = (bitField0_ & ~0x00000200); stackTrace_ = null; if (stackTraceBuilder_ != null) { stackTraceBuilder_.dispose(); stackTraceBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000200; 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; * @return Whether the timeEvents field is set. */ public boolean hasTimeEvents() { return ((bitField0_ & 0x00000400) != 0); } /** *
     * The included time events.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvents time_events = 9; * @return The timeEvents. */ 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; } else { timeEventsBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); 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(); } else { timeEventsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); 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 (((bitField0_ & 0x00000400) != 0) && timeEvents_ != null && timeEvents_ != io.opencensus.proto.trace.v1.Span.TimeEvents.getDefaultInstance()) { getTimeEventsBuilder().mergeFrom(value); } else { timeEvents_ = value; } } else { timeEventsBuilder_.mergeFrom(value); } if (timeEvents_ != null) { bitField0_ |= 0x00000400; onChanged(); } return this; } /** *
     * The included time events.
     * 
* * .opencensus.proto.trace.v1.Span.TimeEvents time_events = 9; */ public Builder clearTimeEvents() { bitField0_ = (bitField0_ & ~0x00000400); timeEvents_ = null; if (timeEventsBuilder_ != null) { timeEventsBuilder_.dispose(); timeEventsBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00000400; 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; * @return Whether the links field is set. */ public boolean hasLinks() { return ((bitField0_ & 0x00000800) != 0); } /** *
     * The included links.
     * 
* * .opencensus.proto.trace.v1.Span.Links links = 10; * @return The links. */ 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; } else { linksBuilder_.setMessage(value); } bitField0_ |= 0x00000800; onChanged(); 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(); } else { linksBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; onChanged(); 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 (((bitField0_ & 0x00000800) != 0) && links_ != null && links_ != io.opencensus.proto.trace.v1.Span.Links.getDefaultInstance()) { getLinksBuilder().mergeFrom(value); } else { links_ = value; } } else { linksBuilder_.mergeFrom(value); } if (links_ != null) { bitField0_ |= 0x00000800; onChanged(); } return this; } /** *
     * The included links.
     * 
* * .opencensus.proto.trace.v1.Span.Links links = 10; */ public Builder clearLinks() { bitField0_ = (bitField0_ & ~0x00000800); links_ = null; if (linksBuilder_ != null) { linksBuilder_.dispose(); linksBuilder_ = null; } onChanged(); return this; } /** *
     * The included links.
     * 
* * .opencensus.proto.trace.v1.Span.Links links = 10; */ public io.opencensus.proto.trace.v1.Span.Links.Builder getLinksBuilder() { bitField0_ |= 0x00000800; 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; * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00001000) != 0); } /** *
     * An optional final status for this span. Semantically when Status
     * wasn't set it is means span ended without errors and assume
     * Status.Ok (code = 0).
     * 
* * .opencensus.proto.trace.v1.Status status = 11; * @return The status. */ 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; } else { statusBuilder_.setMessage(value); } bitField0_ |= 0x00001000; onChanged(); 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(); } else { statusBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00001000; onChanged(); 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 (((bitField0_ & 0x00001000) != 0) && status_ != null && status_ != io.opencensus.proto.trace.v1.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; } } else { statusBuilder_.mergeFrom(value); } if (status_ != null) { bitField0_ |= 0x00001000; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00001000); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); statusBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00001000; 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; * @return Whether the resource field is set. */ public boolean hasResource() { return ((bitField0_ & 0x00002000) != 0); } /** *
     * An optional resource that is associated with this span. If not set, this span 
     * should be part of a batch that does include the resource information, unless resource 
     * information is unknown.
     * 
* * .opencensus.proto.resource.v1.Resource resource = 16; * @return The resource. */ 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; } else { resourceBuilder_.setMessage(value); } bitField0_ |= 0x00002000; onChanged(); 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(); } else { resourceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; onChanged(); 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 (((bitField0_ & 0x00002000) != 0) && resource_ != null && resource_ != io.opencensus.proto.resource.v1.Resource.getDefaultInstance()) { getResourceBuilder().mergeFrom(value); } else { resource_ = value; } } else { resourceBuilder_.mergeFrom(value); } if (resource_ != null) { bitField0_ |= 0x00002000; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00002000); resource_ = null; if (resourceBuilder_ != null) { resourceBuilder_.dispose(); resourceBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00002000; 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; * @return Whether the sameProcessAsParentSpan field is set. */ public boolean hasSameProcessAsParentSpan() { return ((bitField0_ & 0x00004000) != 0); } /** *
     * 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; * @return The sameProcessAsParentSpan. */ 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; } else { sameProcessAsParentSpanBuilder_.setMessage(value); } bitField0_ |= 0x00004000; onChanged(); 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(); } else { sameProcessAsParentSpanBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00004000; onChanged(); 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 (((bitField0_ & 0x00004000) != 0) && sameProcessAsParentSpan_ != null && sameProcessAsParentSpan_ != com.google.protobuf.BoolValue.getDefaultInstance()) { getSameProcessAsParentSpanBuilder().mergeFrom(value); } else { sameProcessAsParentSpan_ = value; } } else { sameProcessAsParentSpanBuilder_.mergeFrom(value); } if (sameProcessAsParentSpan_ != null) { bitField0_ |= 0x00004000; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00004000); sameProcessAsParentSpan_ = null; if (sameProcessAsParentSpanBuilder_ != null) { sameProcessAsParentSpanBuilder_.dispose(); sameProcessAsParentSpanBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00004000; 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; * @return Whether the childSpanCount field is set. */ public boolean hasChildSpanCount() { return ((bitField0_ & 0x00008000) != 0); } /** *
     * 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; * @return The childSpanCount. */ 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; } else { childSpanCountBuilder_.setMessage(value); } bitField0_ |= 0x00008000; onChanged(); 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(); } else { childSpanCountBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; onChanged(); 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 (((bitField0_ & 0x00008000) != 0) && childSpanCount_ != null && childSpanCount_ != com.google.protobuf.UInt32Value.getDefaultInstance()) { getChildSpanCountBuilder().mergeFrom(value); } else { childSpanCount_ = value; } } else { childSpanCountBuilder_.mergeFrom(value); } if (childSpanCount_ != null) { bitField0_ |= 0x00008000; onChanged(); } 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() { bitField0_ = (bitField0_ & ~0x00008000); childSpanCount_ = null; if (childSpanCountBuilder_ != null) { childSpanCountBuilder_.dispose(); childSpanCountBuilder_ = null; } onChanged(); 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() { bitField0_ |= 0x00008000; 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 { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; 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 - 2025 Weber Informatics LLC | Privacy Policy