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

io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest Maven / Gradle / Ivy

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

package io.opencensus.proto.agent.trace.v1;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ExportTraceServiceRequest(
      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.opencensus.proto.agent.common.v1.Node.Builder subBuilder = null;
            if (node_ != null) {
              subBuilder = node_.toBuilder();
            }
            node_ = input.readMessage(io.opencensus.proto.agent.common.v1.Node.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(node_);
              node_ = 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;
          }
          case 26: {
            io.opencensus.proto.resource.v1.Resource.Builder subBuilder = null;
            if (resource_ != null) {
              subBuilder = resource_.toBuilder();
            }
            resource_ = input.readMessage(io.opencensus.proto.resource.v1.Resource.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(resource_);
              resource_ = subBuilder.buildPartial();
            }

            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      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.opencensus.proto.agent.trace.v1.TraceServiceProto.internal_static_opencensus_proto_agent_trace_v1_ExportTraceServiceRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.opencensus.proto.agent.trace.v1.TraceServiceProto.internal_static_opencensus_proto_agent_trace_v1_ExportTraceServiceRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest.class, io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest.Builder.class);
  }

  public static final int NODE_FIELD_NUMBER = 1;
  private io.opencensus.proto.agent.common.v1.Node node_;
  /**
   * 
   * This is required only in the first message on the stream or if the
   * previous sent ExportTraceServiceRequest message has a different Node (e.g.
   * when the same RPC is used to send Spans from multiple Applications).
   * 
* * .opencensus.proto.agent.common.v1.Node node = 1; */ public boolean hasNode() { return node_ != null; } /** *
   * This is required only in the first message on the stream or if the
   * previous sent ExportTraceServiceRequest message has a different Node (e.g.
   * when the same RPC is used to send Spans from multiple Applications).
   * 
* * .opencensus.proto.agent.common.v1.Node node = 1; */ public io.opencensus.proto.agent.common.v1.Node getNode() { return node_ == null ? io.opencensus.proto.agent.common.v1.Node.getDefaultInstance() : node_; } /** *
   * This is required only in the first message on the stream or if the
   * previous sent ExportTraceServiceRequest message has a different Node (e.g.
   * when the same RPC is used to send Spans from multiple Applications).
   * 
* * .opencensus.proto.agent.common.v1.Node node = 1; */ public io.opencensus.proto.agent.common.v1.NodeOrBuilder getNodeOrBuilder() { return getNode(); } public static final int SPANS_FIELD_NUMBER = 2; private java.util.List spans_; /** *
   * A list of Spans that belong to the last received Node.
   * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public java.util.List getSpansList() { return spans_; } /** *
   * A list of Spans that belong to the last received Node.
   * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public java.util.List getSpansOrBuilderList() { return spans_; } /** *
   * A list of Spans that belong to the last received Node.
   * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public int getSpansCount() { return spans_.size(); } /** *
   * A list of Spans that belong to the last received Node.
   * 
* * 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 Spans that belong to the last received Node.
   * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public io.opencensus.proto.trace.v1.SpanOrBuilder getSpansOrBuilder( int index) { return spans_.get(index); } public static final int RESOURCE_FIELD_NUMBER = 3; private io.opencensus.proto.resource.v1.Resource resource_; /** *
   * The resource for the spans in this message that do not have an explicit
   * resource set.
   * If unset, the most recently set resource in the RPC stream applies. It is
   * valid to never be set within a stream, e.g. when no resource info is known.
   * 
* * .opencensus.proto.resource.v1.Resource resource = 3; */ public boolean hasResource() { return resource_ != null; } /** *
   * The resource for the spans in this message that do not have an explicit
   * resource set.
   * If unset, the most recently set resource in the RPC stream applies. It is
   * valid to never be set within a stream, e.g. when no resource info is known.
   * 
* * .opencensus.proto.resource.v1.Resource resource = 3; */ public io.opencensus.proto.resource.v1.Resource getResource() { return resource_ == null ? io.opencensus.proto.resource.v1.Resource.getDefaultInstance() : resource_; } /** *
   * The resource for the spans in this message that do not have an explicit
   * resource set.
   * If unset, the most recently set resource in the RPC stream applies. It is
   * valid to never be set within a stream, e.g. when no resource info is known.
   * 
* * .opencensus.proto.resource.v1.Resource resource = 3; */ public io.opencensus.proto.resource.v1.ResourceOrBuilder getResourceOrBuilder() { return getResource(); } 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()); } for (int i = 0; i < spans_.size(); i++) { output.writeMessage(2, spans_.get(i)); } if (resource_ != null) { output.writeMessage(3, getResource()); } 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()); } for (int i = 0; i < spans_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, spans_.get(i)); } if (resource_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest)) { return super.equals(obj); } io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest other = (io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest) obj; if (hasNode() != other.hasNode()) return false; if (hasNode()) { if (!getNode() .equals(other.getNode())) return false; } if (!getSpansList() .equals(other.getSpansList())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { if (!getResource() .equals(other.getResource())) 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(); } if (getSpansCount() > 0) { hash = (37 * hash) + SPANS_FIELD_NUMBER; hash = (53 * hash) + getSpansList().hashCode(); } if (hasResource()) { hash = (37 * hash) + RESOURCE_FIELD_NUMBER; hash = (53 * hash) + getResource().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest 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.agent.trace.v1.ExportTraceServiceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest 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.agent.trace.v1.ExportTraceServiceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest 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.agent.trace.v1.ExportTraceServiceRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest 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.agent.trace.v1.ExportTraceServiceRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest 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.agent.trace.v1.ExportTraceServiceRequest 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.agent.trace.v1.ExportTraceServiceRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opencensus.proto.agent.trace.v1.ExportTraceServiceRequest) io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.opencensus.proto.agent.trace.v1.TraceServiceProto.internal_static_opencensus_proto_agent_trace_v1_ExportTraceServiceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.opencensus.proto.agent.trace.v1.TraceServiceProto.internal_static_opencensus_proto_agent_trace_v1_ExportTraceServiceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest.class, io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest.Builder.class); } // Construct using io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest.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 (nodeBuilder_ == null) { node_ = null; } else { node_ = null; nodeBuilder_ = null; } if (spansBuilder_ == null) { spans_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { spansBuilder_.clear(); } if (resourceBuilder_ == null) { resource_ = null; } else { resource_ = null; resourceBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.opencensus.proto.agent.trace.v1.TraceServiceProto.internal_static_opencensus_proto_agent_trace_v1_ExportTraceServiceRequest_descriptor; } @java.lang.Override public io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest getDefaultInstanceForType() { return io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest.getDefaultInstance(); } @java.lang.Override public io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest build() { io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest buildPartial() { io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest result = new io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest(this); int from_bitField0_ = bitField0_; if (nodeBuilder_ == null) { result.node_ = node_; } else { result.node_ = nodeBuilder_.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(); } if (resourceBuilder_ == null) { result.resource_ = resource_; } else { result.resource_ = resourceBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest) { return mergeFrom((io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest other) { if (other == io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest.getDefaultInstance()) return this; if (other.hasNode()) { mergeNode(other.getNode()); } 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_); } } } if (other.hasResource()) { mergeResource(other.getResource()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.opencensus.proto.agent.common.v1.Node node_; private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.agent.common.v1.Node, io.opencensus.proto.agent.common.v1.Node.Builder, io.opencensus.proto.agent.common.v1.NodeOrBuilder> nodeBuilder_; /** *
     * This is required only in the first message on the stream or if the
     * previous sent ExportTraceServiceRequest message has a different Node (e.g.
     * when the same RPC is used to send Spans from multiple Applications).
     * 
* * .opencensus.proto.agent.common.v1.Node node = 1; */ public boolean hasNode() { return nodeBuilder_ != null || node_ != null; } /** *
     * This is required only in the first message on the stream or if the
     * previous sent ExportTraceServiceRequest message has a different Node (e.g.
     * when the same RPC is used to send Spans from multiple Applications).
     * 
* * .opencensus.proto.agent.common.v1.Node node = 1; */ public io.opencensus.proto.agent.common.v1.Node getNode() { if (nodeBuilder_ == null) { return node_ == null ? io.opencensus.proto.agent.common.v1.Node.getDefaultInstance() : node_; } else { return nodeBuilder_.getMessage(); } } /** *
     * This is required only in the first message on the stream or if the
     * previous sent ExportTraceServiceRequest message has a different Node (e.g.
     * when the same RPC is used to send Spans from multiple Applications).
     * 
* * .opencensus.proto.agent.common.v1.Node node = 1; */ public Builder setNode(io.opencensus.proto.agent.common.v1.Node value) { if (nodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } node_ = value; onChanged(); } else { nodeBuilder_.setMessage(value); } return this; } /** *
     * This is required only in the first message on the stream or if the
     * previous sent ExportTraceServiceRequest message has a different Node (e.g.
     * when the same RPC is used to send Spans from multiple Applications).
     * 
* * .opencensus.proto.agent.common.v1.Node node = 1; */ public Builder setNode( io.opencensus.proto.agent.common.v1.Node.Builder builderForValue) { if (nodeBuilder_ == null) { node_ = builderForValue.build(); onChanged(); } else { nodeBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * This is required only in the first message on the stream or if the
     * previous sent ExportTraceServiceRequest message has a different Node (e.g.
     * when the same RPC is used to send Spans from multiple Applications).
     * 
* * .opencensus.proto.agent.common.v1.Node node = 1; */ public Builder mergeNode(io.opencensus.proto.agent.common.v1.Node value) { if (nodeBuilder_ == null) { if (node_ != null) { node_ = io.opencensus.proto.agent.common.v1.Node.newBuilder(node_).mergeFrom(value).buildPartial(); } else { node_ = value; } onChanged(); } else { nodeBuilder_.mergeFrom(value); } return this; } /** *
     * This is required only in the first message on the stream or if the
     * previous sent ExportTraceServiceRequest message has a different Node (e.g.
     * when the same RPC is used to send Spans from multiple Applications).
     * 
* * .opencensus.proto.agent.common.v1.Node node = 1; */ public Builder clearNode() { if (nodeBuilder_ == null) { node_ = null; onChanged(); } else { node_ = null; nodeBuilder_ = null; } return this; } /** *
     * This is required only in the first message on the stream or if the
     * previous sent ExportTraceServiceRequest message has a different Node (e.g.
     * when the same RPC is used to send Spans from multiple Applications).
     * 
* * .opencensus.proto.agent.common.v1.Node node = 1; */ public io.opencensus.proto.agent.common.v1.Node.Builder getNodeBuilder() { onChanged(); return getNodeFieldBuilder().getBuilder(); } /** *
     * This is required only in the first message on the stream or if the
     * previous sent ExportTraceServiceRequest message has a different Node (e.g.
     * when the same RPC is used to send Spans from multiple Applications).
     * 
* * .opencensus.proto.agent.common.v1.Node node = 1; */ public io.opencensus.proto.agent.common.v1.NodeOrBuilder getNodeOrBuilder() { if (nodeBuilder_ != null) { return nodeBuilder_.getMessageOrBuilder(); } else { return node_ == null ? io.opencensus.proto.agent.common.v1.Node.getDefaultInstance() : node_; } } /** *
     * This is required only in the first message on the stream or if the
     * previous sent ExportTraceServiceRequest message has a different Node (e.g.
     * when the same RPC is used to send Spans from multiple Applications).
     * 
* * .opencensus.proto.agent.common.v1.Node node = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.agent.common.v1.Node, io.opencensus.proto.agent.common.v1.Node.Builder, io.opencensus.proto.agent.common.v1.NodeOrBuilder> getNodeFieldBuilder() { if (nodeBuilder_ == null) { nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.opencensus.proto.agent.common.v1.Node, io.opencensus.proto.agent.common.v1.Node.Builder, io.opencensus.proto.agent.common.v1.NodeOrBuilder>( getNode(), getParentForChildren(), isClean()); node_ = null; } return nodeBuilder_; } 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 Spans that belong to the last received Node.
     * 
* * 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 Spans that belong to the last received Node.
     * 
* * repeated .opencensus.proto.trace.v1.Span spans = 2; */ public int getSpansCount() { if (spansBuilder_ == null) { return spans_.size(); } else { return spansBuilder_.getCount(); } } /** *
     * A list of Spans that belong to the last received Node.
     * 
* * 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 Spans that belong to the last received Node.
     * 
* * 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 Spans that belong to the last received Node.
     * 
* * 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 Spans that belong to the last received Node.
     * 
* * 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 Spans that belong to the last received Node.
     * 
* * 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 Spans that belong to the last received Node.
     * 
* * 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 Spans that belong to the last received Node.
     * 
* * 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 Spans that belong to the last received Node.
     * 
* * 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 Spans that belong to the last received Node.
     * 
* * 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 Spans that belong to the last received Node.
     * 
* * 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 Spans that belong to the last received Node.
     * 
* * 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 Spans that belong to the last received Node.
     * 
* * 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 Spans that belong to the last received Node.
     * 
* * 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 Spans that belong to the last received Node.
     * 
* * 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 Spans that belong to the last received Node.
     * 
* * 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 Spans that belong to the last received Node.
     * 
* * 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_; } 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_; /** *
     * The resource for the spans in this message that do not have an explicit
     * resource set.
     * If unset, the most recently set resource in the RPC stream applies. It is
     * valid to never be set within a stream, e.g. when no resource info is known.
     * 
* * .opencensus.proto.resource.v1.Resource resource = 3; */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** *
     * The resource for the spans in this message that do not have an explicit
     * resource set.
     * If unset, the most recently set resource in the RPC stream applies. It is
     * valid to never be set within a stream, e.g. when no resource info is known.
     * 
* * .opencensus.proto.resource.v1.Resource resource = 3; */ 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(); } } /** *
     * The resource for the spans in this message that do not have an explicit
     * resource set.
     * If unset, the most recently set resource in the RPC stream applies. It is
     * valid to never be set within a stream, e.g. when no resource info is known.
     * 
* * .opencensus.proto.resource.v1.Resource resource = 3; */ public Builder setResource(io.opencensus.proto.resource.v1.Resource value) { if (resourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resource_ = value; onChanged(); } else { resourceBuilder_.setMessage(value); } return this; } /** *
     * The resource for the spans in this message that do not have an explicit
     * resource set.
     * If unset, the most recently set resource in the RPC stream applies. It is
     * valid to never be set within a stream, e.g. when no resource info is known.
     * 
* * .opencensus.proto.resource.v1.Resource resource = 3; */ public Builder setResource( io.opencensus.proto.resource.v1.Resource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); } else { resourceBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The resource for the spans in this message that do not have an explicit
     * resource set.
     * If unset, the most recently set resource in the RPC stream applies. It is
     * valid to never be set within a stream, e.g. when no resource info is known.
     * 
* * .opencensus.proto.resource.v1.Resource resource = 3; */ public Builder mergeResource(io.opencensus.proto.resource.v1.Resource value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = io.opencensus.proto.resource.v1.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } onChanged(); } else { resourceBuilder_.mergeFrom(value); } return this; } /** *
     * The resource for the spans in this message that do not have an explicit
     * resource set.
     * If unset, the most recently set resource in the RPC stream applies. It is
     * valid to never be set within a stream, e.g. when no resource info is known.
     * 
* * .opencensus.proto.resource.v1.Resource resource = 3; */ public Builder clearResource() { if (resourceBuilder_ == null) { resource_ = null; onChanged(); } else { resource_ = null; resourceBuilder_ = null; } return this; } /** *
     * The resource for the spans in this message that do not have an explicit
     * resource set.
     * If unset, the most recently set resource in the RPC stream applies. It is
     * valid to never be set within a stream, e.g. when no resource info is known.
     * 
* * .opencensus.proto.resource.v1.Resource resource = 3; */ public io.opencensus.proto.resource.v1.Resource.Builder getResourceBuilder() { onChanged(); return getResourceFieldBuilder().getBuilder(); } /** *
     * The resource for the spans in this message that do not have an explicit
     * resource set.
     * If unset, the most recently set resource in the RPC stream applies. It is
     * valid to never be set within a stream, e.g. when no resource info is known.
     * 
* * .opencensus.proto.resource.v1.Resource resource = 3; */ 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_; } } /** *
     * The resource for the spans in this message that do not have an explicit
     * resource set.
     * If unset, the most recently set resource in the RPC stream applies. It is
     * valid to never be set within a stream, e.g. when no resource info is known.
     * 
* * .opencensus.proto.resource.v1.Resource resource = 3; */ 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_; } @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.agent.trace.v1.ExportTraceServiceRequest) } // @@protoc_insertion_point(class_scope:opencensus.proto.agent.trace.v1.ExportTraceServiceRequest) private static final io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest(); } public static io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExportTraceServiceRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExportTraceServiceRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.opencensus.proto.agent.trace.v1.ExportTraceServiceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy