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

io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage Maven / Gradle / Ivy

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

package io.envoyproxy.envoy.service.trace.v3alpha;

/**
 * Protobuf type {@code envoy.service.trace.v3alpha.StreamTracesMessage}
 */
public  final class StreamTracesMessage extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:envoy.service.trace.v3alpha.StreamTracesMessage)
    StreamTracesMessageOrBuilder {
private static final long serialVersionUID = 0L;
  // Use StreamTracesMessage.newBuilder() to construct.
  private StreamTracesMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private StreamTracesMessage() {
    spans_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new StreamTracesMessage();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private StreamTracesMessage(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.Builder subBuilder = null;
            if (identifier_ != null) {
              subBuilder = identifier_.toBuilder();
            }
            identifier_ = input.readMessage(io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(identifier_);
              identifier_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              spans_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            spans_.add(
                input.readMessage(io.opencensus.proto.trace.v1.Span.parser(), extensionRegistry));
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        spans_ = java.util.Collections.unmodifiableList(spans_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.envoyproxy.envoy.service.trace.v3alpha.TraceServiceProto.internal_static_envoy_service_trace_v3alpha_StreamTracesMessage_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.envoyproxy.envoy.service.trace.v3alpha.TraceServiceProto.internal_static_envoy_service_trace_v3alpha_StreamTracesMessage_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.class, io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Builder.class);
  }

  public interface IdentifierOrBuilder extends
      // @@protoc_insertion_point(interface_extends:envoy.service.trace.v3alpha.StreamTracesMessage.Identifier)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * The node sending the access log messages over the stream.
     * 
* * .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... } */ boolean hasNode(); /** *
     * The node sending the access log messages over the stream.
     * 
* * .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.api.v3alpha.core.Node getNode(); /** *
     * The node sending the access log messages over the stream.
     * 
* * .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.api.v3alpha.core.NodeOrBuilder getNodeOrBuilder(); } /** * Protobuf type {@code envoy.service.trace.v3alpha.StreamTracesMessage.Identifier} */ public static final class Identifier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.trace.v3alpha.StreamTracesMessage.Identifier) IdentifierOrBuilder { private static final long serialVersionUID = 0L; // Use Identifier.newBuilder() to construct. private Identifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Identifier() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Identifier(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Identifier( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.envoyproxy.envoy.api.v3alpha.core.Node.Builder subBuilder = null; if (node_ != null) { subBuilder = node_.toBuilder(); } node_ = input.readMessage(io.envoyproxy.envoy.api.v3alpha.core.Node.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(node_); node_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.trace.v3alpha.TraceServiceProto.internal_static_envoy_service_trace_v3alpha_StreamTracesMessage_Identifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.trace.v3alpha.TraceServiceProto.internal_static_envoy_service_trace_v3alpha_StreamTracesMessage_Identifier_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.class, io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.Builder.class); } public static final int NODE_FIELD_NUMBER = 1; private io.envoyproxy.envoy.api.v3alpha.core.Node node_; /** *
     * The node sending the access log messages over the stream.
     * 
* * .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... } */ public boolean hasNode() { return node_ != null; } /** *
     * The node sending the access log messages over the stream.
     * 
* * .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v3alpha.core.Node getNode() { return node_ == null ? io.envoyproxy.envoy.api.v3alpha.core.Node.getDefaultInstance() : node_; } /** *
     * The node sending the access log messages over the stream.
     * 
* * .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v3alpha.core.NodeOrBuilder getNodeOrBuilder() { return getNode(); } 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 (node_ != null) { output.writeMessage(1, getNode()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (node_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getNode()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier)) { return super.equals(obj); } io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier other = (io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier) obj; if (hasNode() != other.hasNode()) return false; if (hasNode()) { if (!getNode() .equals(other.getNode())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasNode()) { hash = (37 * hash) + NODE_FIELD_NUMBER; hash = (53 * hash) + getNode().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier 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.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier 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.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier 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.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier 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 envoy.service.trace.v3alpha.StreamTracesMessage.Identifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.trace.v3alpha.StreamTracesMessage.Identifier) io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.IdentifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.trace.v3alpha.TraceServiceProto.internal_static_envoy_service_trace_v3alpha_StreamTracesMessage_Identifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.trace.v3alpha.TraceServiceProto.internal_static_envoy_service_trace_v3alpha_StreamTracesMessage_Identifier_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.class, io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.Builder.class); } // Construct using io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (nodeBuilder_ == null) { node_ = null; } else { node_ = null; nodeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.trace.v3alpha.TraceServiceProto.internal_static_envoy_service_trace_v3alpha_StreamTracesMessage_Identifier_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier getDefaultInstanceForType() { return io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier build() { io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier buildPartial() { io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier result = new io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier(this); if (nodeBuilder_ == null) { result.node_ = node_; } else { result.node_ = nodeBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier) { return mergeFrom((io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier other) { if (other == io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.getDefaultInstance()) return this; if (other.hasNode()) { mergeNode(other.getNode()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.envoyproxy.envoy.api.v3alpha.core.Node node_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.core.Node, io.envoyproxy.envoy.api.v3alpha.core.Node.Builder, io.envoyproxy.envoy.api.v3alpha.core.NodeOrBuilder> nodeBuilder_; /** *
       * The node sending the access log messages over the stream.
       * 
* * .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... } */ public boolean hasNode() { return nodeBuilder_ != null || node_ != null; } /** *
       * The node sending the access log messages over the stream.
       * 
* * .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v3alpha.core.Node getNode() { if (nodeBuilder_ == null) { return node_ == null ? io.envoyproxy.envoy.api.v3alpha.core.Node.getDefaultInstance() : node_; } else { return nodeBuilder_.getMessage(); } } /** *
       * The node sending the access log messages over the stream.
       * 
* * .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... } */ public Builder setNode(io.envoyproxy.envoy.api.v3alpha.core.Node value) { if (nodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } node_ = value; onChanged(); } else { nodeBuilder_.setMessage(value); } return this; } /** *
       * The node sending the access log messages over the stream.
       * 
* * .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... } */ public Builder setNode( io.envoyproxy.envoy.api.v3alpha.core.Node.Builder builderForValue) { if (nodeBuilder_ == null) { node_ = builderForValue.build(); onChanged(); } else { nodeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * The node sending the access log messages over the stream.
       * 
* * .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... } */ public Builder mergeNode(io.envoyproxy.envoy.api.v3alpha.core.Node value) { if (nodeBuilder_ == null) { if (node_ != null) { node_ = io.envoyproxy.envoy.api.v3alpha.core.Node.newBuilder(node_).mergeFrom(value).buildPartial(); } else { node_ = value; } onChanged(); } else { nodeBuilder_.mergeFrom(value); } return this; } /** *
       * The node sending the access log messages over the stream.
       * 
* * .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... } */ public Builder clearNode() { if (nodeBuilder_ == null) { node_ = null; onChanged(); } else { node_ = null; nodeBuilder_ = null; } return this; } /** *
       * The node sending the access log messages over the stream.
       * 
* * .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v3alpha.core.Node.Builder getNodeBuilder() { onChanged(); return getNodeFieldBuilder().getBuilder(); } /** *
       * The node sending the access log messages over the stream.
       * 
* * .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.api.v3alpha.core.NodeOrBuilder getNodeOrBuilder() { if (nodeBuilder_ != null) { return nodeBuilder_.getMessageOrBuilder(); } else { return node_ == null ? io.envoyproxy.envoy.api.v3alpha.core.Node.getDefaultInstance() : node_; } } /** *
       * The node sending the access log messages over the stream.
       * 
* * .envoy.api.v3alpha.core.Node node = 1 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.core.Node, io.envoyproxy.envoy.api.v3alpha.core.Node.Builder, io.envoyproxy.envoy.api.v3alpha.core.NodeOrBuilder> getNodeFieldBuilder() { if (nodeBuilder_ == null) { nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.api.v3alpha.core.Node, io.envoyproxy.envoy.api.v3alpha.core.Node.Builder, io.envoyproxy.envoy.api.v3alpha.core.NodeOrBuilder>( getNode(), getParentForChildren(), isClean()); node_ = null; } return nodeBuilder_; } @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:envoy.service.trace.v3alpha.StreamTracesMessage.Identifier) } // @@protoc_insertion_point(class_scope:envoy.service.trace.v3alpha.StreamTracesMessage.Identifier) private static final io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier(); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Identifier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Identifier(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int IDENTIFIER_FIELD_NUMBER = 1; private io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier identifier_; /** *
   * Identifier data effectively is a structured metadata.
   * As a performance optimization this will only be sent in the first message
   * on the stream.
   * 
* * .envoy.service.trace.v3alpha.StreamTracesMessage.Identifier identifier = 1; */ public boolean hasIdentifier() { return identifier_ != null; } /** *
   * Identifier data effectively is a structured metadata.
   * As a performance optimization this will only be sent in the first message
   * on the stream.
   * 
* * .envoy.service.trace.v3alpha.StreamTracesMessage.Identifier identifier = 1; */ public io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier getIdentifier() { return identifier_ == null ? io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.getDefaultInstance() : identifier_; } /** *
   * Identifier data effectively is a structured metadata.
   * As a performance optimization this will only be sent in the first message
   * on the stream.
   * 
* * .envoy.service.trace.v3alpha.StreamTracesMessage.Identifier identifier = 1; */ public io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.IdentifierOrBuilder getIdentifierOrBuilder() { return getIdentifier(); } public static final int SPANS_FIELD_NUMBER = 2; private java.util.List spans_; /** *
   * A list of Span entries
   * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public java.util.List getSpansList() { return spans_; } /** *
   * A list of Span entries
   * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public java.util.List getSpansOrBuilderList() { return spans_; } /** *
   * A list of Span entries
   * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public int getSpansCount() { return spans_.size(); } /** *
   * A list of Span entries
   * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public io.opencensus.proto.trace.v1.Span getSpans(int index) { return spans_.get(index); } /** *
   * A list of Span entries
   * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public io.opencensus.proto.trace.v1.SpanOrBuilder getSpansOrBuilder( int index) { return spans_.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 { if (identifier_ != null) { output.writeMessage(1, getIdentifier()); } for (int i = 0; i < spans_.size(); i++) { output.writeMessage(2, spans_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (identifier_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getIdentifier()); } for (int i = 0; i < spans_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, spans_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage)) { return super.equals(obj); } io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage other = (io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage) obj; if (hasIdentifier() != other.hasIdentifier()) return false; if (hasIdentifier()) { if (!getIdentifier() .equals(other.getIdentifier())) return false; } if (!getSpansList() .equals(other.getSpansList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasIdentifier()) { hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getIdentifier().hashCode(); } if (getSpansCount() > 0) { hash = (37 * hash) + SPANS_FIELD_NUMBER; hash = (53 * hash) + getSpansList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage 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.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage 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.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage 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.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage 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 envoy.service.trace.v3alpha.StreamTracesMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.trace.v3alpha.StreamTracesMessage) io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.trace.v3alpha.TraceServiceProto.internal_static_envoy_service_trace_v3alpha_StreamTracesMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.service.trace.v3alpha.TraceServiceProto.internal_static_envoy_service_trace_v3alpha_StreamTracesMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.class, io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Builder.class); } // Construct using io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSpansFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (identifierBuilder_ == null) { identifier_ = null; } else { identifier_ = null; identifierBuilder_ = null; } if (spansBuilder_ == null) { spans_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { spansBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.service.trace.v3alpha.TraceServiceProto.internal_static_envoy_service_trace_v3alpha_StreamTracesMessage_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage getDefaultInstanceForType() { return io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage build() { io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage buildPartial() { io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage result = new io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage(this); int from_bitField0_ = bitField0_; if (identifierBuilder_ == null) { result.identifier_ = identifier_; } else { result.identifier_ = identifierBuilder_.build(); } if (spansBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { spans_ = java.util.Collections.unmodifiableList(spans_); bitField0_ = (bitField0_ & ~0x00000001); } result.spans_ = spans_; } else { result.spans_ = spansBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage) { return mergeFrom((io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage other) { if (other == io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.getDefaultInstance()) return this; if (other.hasIdentifier()) { mergeIdentifier(other.getIdentifier()); } if (spansBuilder_ == null) { if (!other.spans_.isEmpty()) { if (spans_.isEmpty()) { spans_ = other.spans_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSpansIsMutable(); spans_.addAll(other.spans_); } onChanged(); } } else { if (!other.spans_.isEmpty()) { if (spansBuilder_.isEmpty()) { spansBuilder_.dispose(); spansBuilder_ = null; spans_ = other.spans_; bitField0_ = (bitField0_ & ~0x00000001); spansBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpansFieldBuilder() : null; } else { spansBuilder_.addAllMessages(other.spans_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier identifier_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier, io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.Builder, io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.IdentifierOrBuilder> identifierBuilder_; /** *
     * Identifier data effectively is a structured metadata.
     * As a performance optimization this will only be sent in the first message
     * on the stream.
     * 
* * .envoy.service.trace.v3alpha.StreamTracesMessage.Identifier identifier = 1; */ public boolean hasIdentifier() { return identifierBuilder_ != null || identifier_ != null; } /** *
     * Identifier data effectively is a structured metadata.
     * As a performance optimization this will only be sent in the first message
     * on the stream.
     * 
* * .envoy.service.trace.v3alpha.StreamTracesMessage.Identifier identifier = 1; */ public io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier getIdentifier() { if (identifierBuilder_ == null) { return identifier_ == null ? io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.getDefaultInstance() : identifier_; } else { return identifierBuilder_.getMessage(); } } /** *
     * Identifier data effectively is a structured metadata.
     * As a performance optimization this will only be sent in the first message
     * on the stream.
     * 
* * .envoy.service.trace.v3alpha.StreamTracesMessage.Identifier identifier = 1; */ public Builder setIdentifier(io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier value) { if (identifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); } identifier_ = value; onChanged(); } else { identifierBuilder_.setMessage(value); } return this; } /** *
     * Identifier data effectively is a structured metadata.
     * As a performance optimization this will only be sent in the first message
     * on the stream.
     * 
* * .envoy.service.trace.v3alpha.StreamTracesMessage.Identifier identifier = 1; */ public Builder setIdentifier( io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.Builder builderForValue) { if (identifierBuilder_ == null) { identifier_ = builderForValue.build(); onChanged(); } else { identifierBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Identifier data effectively is a structured metadata.
     * As a performance optimization this will only be sent in the first message
     * on the stream.
     * 
* * .envoy.service.trace.v3alpha.StreamTracesMessage.Identifier identifier = 1; */ public Builder mergeIdentifier(io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier value) { if (identifierBuilder_ == null) { if (identifier_ != null) { identifier_ = io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.newBuilder(identifier_).mergeFrom(value).buildPartial(); } else { identifier_ = value; } onChanged(); } else { identifierBuilder_.mergeFrom(value); } return this; } /** *
     * Identifier data effectively is a structured metadata.
     * As a performance optimization this will only be sent in the first message
     * on the stream.
     * 
* * .envoy.service.trace.v3alpha.StreamTracesMessage.Identifier identifier = 1; */ public Builder clearIdentifier() { if (identifierBuilder_ == null) { identifier_ = null; onChanged(); } else { identifier_ = null; identifierBuilder_ = null; } return this; } /** *
     * Identifier data effectively is a structured metadata.
     * As a performance optimization this will only be sent in the first message
     * on the stream.
     * 
* * .envoy.service.trace.v3alpha.StreamTracesMessage.Identifier identifier = 1; */ public io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.Builder getIdentifierBuilder() { onChanged(); return getIdentifierFieldBuilder().getBuilder(); } /** *
     * Identifier data effectively is a structured metadata.
     * As a performance optimization this will only be sent in the first message
     * on the stream.
     * 
* * .envoy.service.trace.v3alpha.StreamTracesMessage.Identifier identifier = 1; */ public io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.IdentifierOrBuilder getIdentifierOrBuilder() { if (identifierBuilder_ != null) { return identifierBuilder_.getMessageOrBuilder(); } else { return identifier_ == null ? io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.getDefaultInstance() : identifier_; } } /** *
     * Identifier data effectively is a structured metadata.
     * As a performance optimization this will only be sent in the first message
     * on the stream.
     * 
* * .envoy.service.trace.v3alpha.StreamTracesMessage.Identifier identifier = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier, io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.Builder, io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.IdentifierOrBuilder> getIdentifierFieldBuilder() { if (identifierBuilder_ == null) { identifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier, io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.Identifier.Builder, io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage.IdentifierOrBuilder>( getIdentifier(), getParentForChildren(), isClean()); identifier_ = null; } return identifierBuilder_; } private java.util.List spans_ = java.util.Collections.emptyList(); private void ensureSpansIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { spans_ = new java.util.ArrayList(spans_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opencensus.proto.trace.v1.Span, io.opencensus.proto.trace.v1.Span.Builder, io.opencensus.proto.trace.v1.SpanOrBuilder> spansBuilder_; /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public java.util.List getSpansList() { if (spansBuilder_ == null) { return java.util.Collections.unmodifiableList(spans_); } else { return spansBuilder_.getMessageList(); } } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public int getSpansCount() { if (spansBuilder_ == null) { return spans_.size(); } else { return spansBuilder_.getCount(); } } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public io.opencensus.proto.trace.v1.Span getSpans(int index) { if (spansBuilder_ == null) { return spans_.get(index); } else { return spansBuilder_.getMessage(index); } } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public Builder setSpans( int index, io.opencensus.proto.trace.v1.Span value) { if (spansBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpansIsMutable(); spans_.set(index, value); onChanged(); } else { spansBuilder_.setMessage(index, value); } return this; } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public Builder setSpans( int index, io.opencensus.proto.trace.v1.Span.Builder builderForValue) { if (spansBuilder_ == null) { ensureSpansIsMutable(); spans_.set(index, builderForValue.build()); onChanged(); } else { spansBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public Builder addSpans(io.opencensus.proto.trace.v1.Span value) { if (spansBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpansIsMutable(); spans_.add(value); onChanged(); } else { spansBuilder_.addMessage(value); } return this; } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public Builder addSpans( int index, io.opencensus.proto.trace.v1.Span value) { if (spansBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpansIsMutable(); spans_.add(index, value); onChanged(); } else { spansBuilder_.addMessage(index, value); } return this; } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public Builder addSpans( io.opencensus.proto.trace.v1.Span.Builder builderForValue) { if (spansBuilder_ == null) { ensureSpansIsMutable(); spans_.add(builderForValue.build()); onChanged(); } else { spansBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public Builder addSpans( int index, io.opencensus.proto.trace.v1.Span.Builder builderForValue) { if (spansBuilder_ == null) { ensureSpansIsMutable(); spans_.add(index, builderForValue.build()); onChanged(); } else { spansBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public Builder addAllSpans( java.lang.Iterable values) { if (spansBuilder_ == null) { ensureSpansIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, spans_); onChanged(); } else { spansBuilder_.addAllMessages(values); } return this; } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public Builder clearSpans() { if (spansBuilder_ == null) { spans_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { spansBuilder_.clear(); } return this; } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public Builder removeSpans(int index) { if (spansBuilder_ == null) { ensureSpansIsMutable(); spans_.remove(index); onChanged(); } else { spansBuilder_.remove(index); } return this; } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public io.opencensus.proto.trace.v1.Span.Builder getSpansBuilder( int index) { return getSpansFieldBuilder().getBuilder(index); } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public io.opencensus.proto.trace.v1.SpanOrBuilder getSpansOrBuilder( int index) { if (spansBuilder_ == null) { return spans_.get(index); } else { return spansBuilder_.getMessageOrBuilder(index); } } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public java.util.List getSpansOrBuilderList() { if (spansBuilder_ != null) { return spansBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(spans_); } } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public io.opencensus.proto.trace.v1.Span.Builder addSpansBuilder() { return getSpansFieldBuilder().addBuilder( io.opencensus.proto.trace.v1.Span.getDefaultInstance()); } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public io.opencensus.proto.trace.v1.Span.Builder addSpansBuilder( int index) { return getSpansFieldBuilder().addBuilder( index, io.opencensus.proto.trace.v1.Span.getDefaultInstance()); } /** *
     * A list of Span entries
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public java.util.List getSpansBuilderList() { return getSpansFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opencensus.proto.trace.v1.Span, io.opencensus.proto.trace.v1.Span.Builder, io.opencensus.proto.trace.v1.SpanOrBuilder> getSpansFieldBuilder() { if (spansBuilder_ == null) { spansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opencensus.proto.trace.v1.Span, io.opencensus.proto.trace.v1.Span.Builder, io.opencensus.proto.trace.v1.SpanOrBuilder>( spans_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); spans_ = null; } return spansBuilder_; } @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:envoy.service.trace.v3alpha.StreamTracesMessage) } // @@protoc_insertion_point(class_scope:envoy.service.trace.v3alpha.StreamTracesMessage) private static final io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage(); } public static io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StreamTracesMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StreamTracesMessage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.envoyproxy.envoy.service.trace.v3alpha.StreamTracesMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy