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

datadog.agentpayload.AgentPayload Maven / Gradle / Ivy

There is a newer version: 4.36
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: github.com/DataDog/agent-payload/proto/metrics/agent_payload.proto

package datadog.agentpayload;

public final class AgentPayload {
  private AgentPayload() {}

  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}

  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
  }

  public interface CommonMetadataOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:datadog.agentpayload.CommonMetadata)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string agent_version = 1;
     *
     * @return The agentVersion.
     */
    java.lang.String getAgentVersion();
    /**
     * string agent_version = 1;
     *
     * @return The bytes for agentVersion.
     */
    com.google.protobuf.ByteString getAgentVersionBytes();

    /**
     * string timezone = 2;
     *
     * @return The timezone.
     */
    java.lang.String getTimezone();
    /**
     * string timezone = 2;
     *
     * @return The bytes for timezone.
     */
    com.google.protobuf.ByteString getTimezoneBytes();

    /**
     * double current_epoch = 3;
     *
     * @return The currentEpoch.
     */
    double getCurrentEpoch();

    /**
     * string internal_ip = 4;
     *
     * @return The internalIp.
     */
    java.lang.String getInternalIp();
    /**
     * string internal_ip = 4;
     *
     * @return The bytes for internalIp.
     */
    com.google.protobuf.ByteString getInternalIpBytes();

    /**
     * string public_ip = 5;
     *
     * @return The publicIp.
     */
    java.lang.String getPublicIp();
    /**
     * string public_ip = 5;
     *
     * @return The bytes for publicIp.
     */
    com.google.protobuf.ByteString getPublicIpBytes();

    /**
     * string api_key = 6;
     *
     * @return The apiKey.
     */
    java.lang.String getApiKey();
    /**
     * string api_key = 6;
     *
     * @return The bytes for apiKey.
     */
    com.google.protobuf.ByteString getApiKeyBytes();
  }
  /** Protobuf type {@code datadog.agentpayload.CommonMetadata} */
  public static final class CommonMetadata extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:datadog.agentpayload.CommonMetadata)
      CommonMetadataOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use CommonMetadata.newBuilder() to construct.
    private CommonMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }

    private CommonMetadata() {
      agentVersion_ = "";
      timezone_ = "";
      internalIp_ = "";
      publicIp_ = "";
      apiKey_ = "";
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return datadog.agentpayload.AgentPayload
          .internal_static_datadog_agentpayload_CommonMetadata_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return datadog.agentpayload.AgentPayload
          .internal_static_datadog_agentpayload_CommonMetadata_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              datadog.agentpayload.AgentPayload.CommonMetadata.class,
              datadog.agentpayload.AgentPayload.CommonMetadata.Builder.class);
    }

    public static final int AGENT_VERSION_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private volatile java.lang.Object agentVersion_ = "";
    /**
     * string agent_version = 1;
     *
     * @return The agentVersion.
     */
    @java.lang.Override
    public java.lang.String getAgentVersion() {
      java.lang.Object ref = agentVersion_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        agentVersion_ = s;
        return s;
      }
    }
    /**
     * string agent_version = 1;
     *
     * @return The bytes for agentVersion.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getAgentVersionBytes() {
      java.lang.Object ref = agentVersion_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        agentVersion_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int TIMEZONE_FIELD_NUMBER = 2;

    @SuppressWarnings("serial")
    private volatile java.lang.Object timezone_ = "";
    /**
     * string timezone = 2;
     *
     * @return The timezone.
     */
    @java.lang.Override
    public java.lang.String getTimezone() {
      java.lang.Object ref = timezone_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        timezone_ = s;
        return s;
      }
    }
    /**
     * string timezone = 2;
     *
     * @return The bytes for timezone.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getTimezoneBytes() {
      java.lang.Object ref = timezone_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        timezone_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int CURRENT_EPOCH_FIELD_NUMBER = 3;
    private double currentEpoch_ = 0D;
    /**
     * double current_epoch = 3;
     *
     * @return The currentEpoch.
     */
    @java.lang.Override
    public double getCurrentEpoch() {
      return currentEpoch_;
    }

    public static final int INTERNAL_IP_FIELD_NUMBER = 4;

    @SuppressWarnings("serial")
    private volatile java.lang.Object internalIp_ = "";
    /**
     * string internal_ip = 4;
     *
     * @return The internalIp.
     */
    @java.lang.Override
    public java.lang.String getInternalIp() {
      java.lang.Object ref = internalIp_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        internalIp_ = s;
        return s;
      }
    }
    /**
     * string internal_ip = 4;
     *
     * @return The bytes for internalIp.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getInternalIpBytes() {
      java.lang.Object ref = internalIp_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        internalIp_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int PUBLIC_IP_FIELD_NUMBER = 5;

    @SuppressWarnings("serial")
    private volatile java.lang.Object publicIp_ = "";
    /**
     * string public_ip = 5;
     *
     * @return The publicIp.
     */
    @java.lang.Override
    public java.lang.String getPublicIp() {
      java.lang.Object ref = publicIp_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        publicIp_ = s;
        return s;
      }
    }
    /**
     * string public_ip = 5;
     *
     * @return The bytes for publicIp.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getPublicIpBytes() {
      java.lang.Object ref = publicIp_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        publicIp_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int API_KEY_FIELD_NUMBER = 6;

    @SuppressWarnings("serial")
    private volatile java.lang.Object apiKey_ = "";
    /**
     * string api_key = 6;
     *
     * @return The apiKey.
     */
    @java.lang.Override
    public java.lang.String getApiKey() {
      java.lang.Object ref = apiKey_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        apiKey_ = s;
        return s;
      }
    }
    /**
     * string api_key = 6;
     *
     * @return The bytes for apiKey.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString getApiKeyBytes() {
      java.lang.Object ref = apiKey_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        apiKey_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentVersion_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agentVersion_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timezone_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, timezone_);
      }
      if (java.lang.Double.doubleToRawLongBits(currentEpoch_) != 0) {
        output.writeDouble(3, currentEpoch_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalIp_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, internalIp_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIp_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, publicIp_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKey_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, apiKey_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentVersion_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, agentVersion_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timezone_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, timezone_);
      }
      if (java.lang.Double.doubleToRawLongBits(currentEpoch_) != 0) {
        size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, currentEpoch_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(internalIp_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, internalIp_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publicIp_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, publicIp_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKey_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, apiKey_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof datadog.agentpayload.AgentPayload.CommonMetadata)) {
        return super.equals(obj);
      }
      datadog.agentpayload.AgentPayload.CommonMetadata other =
          (datadog.agentpayload.AgentPayload.CommonMetadata) obj;

      if (!getAgentVersion().equals(other.getAgentVersion())) return false;
      if (!getTimezone().equals(other.getTimezone())) return false;
      if (java.lang.Double.doubleToLongBits(getCurrentEpoch())
          != java.lang.Double.doubleToLongBits(other.getCurrentEpoch())) return false;
      if (!getInternalIp().equals(other.getInternalIp())) return false;
      if (!getPublicIp().equals(other.getPublicIp())) return false;
      if (!getApiKey().equals(other.getApiKey())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + AGENT_VERSION_FIELD_NUMBER;
      hash = (53 * hash) + getAgentVersion().hashCode();
      hash = (37 * hash) + TIMEZONE_FIELD_NUMBER;
      hash = (53 * hash) + getTimezone().hashCode();
      hash = (37 * hash) + CURRENT_EPOCH_FIELD_NUMBER;
      hash =
          (53 * hash)
              + com.google.protobuf.Internal.hashLong(
                  java.lang.Double.doubleToLongBits(getCurrentEpoch()));
      hash = (37 * hash) + INTERNAL_IP_FIELD_NUMBER;
      hash = (53 * hash) + getInternalIp().hashCode();
      hash = (37 * hash) + PUBLIC_IP_FIELD_NUMBER;
      hash = (53 * hash) + getPublicIp().hashCode();
      hash = (37 * hash) + API_KEY_FIELD_NUMBER;
      hash = (53 * hash) + getApiKey().hashCode();
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static datadog.agentpayload.AgentPayload.CommonMetadata parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static datadog.agentpayload.AgentPayload.CommonMetadata parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static datadog.agentpayload.AgentPayload.CommonMetadata parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static datadog.agentpayload.AgentPayload.CommonMetadata parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static datadog.agentpayload.AgentPayload.CommonMetadata parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static datadog.agentpayload.AgentPayload.CommonMetadata parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static datadog.agentpayload.AgentPayload.CommonMetadata parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static datadog.agentpayload.AgentPayload.CommonMetadata 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 datadog.agentpayload.AgentPayload.CommonMetadata parseDelimitedFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static datadog.agentpayload.AgentPayload.CommonMetadata 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 datadog.agentpayload.AgentPayload.CommonMetadata parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static datadog.agentpayload.AgentPayload.CommonMetadata 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(datadog.agentpayload.AgentPayload.CommonMetadata 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 datadog.agentpayload.CommonMetadata} */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder
        implements
        // @@protoc_insertion_point(builder_implements:datadog.agentpayload.CommonMetadata)
        datadog.agentpayload.AgentPayload.CommonMetadataOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return datadog.agentpayload.AgentPayload
            .internal_static_datadog_agentpayload_CommonMetadata_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return datadog.agentpayload.AgentPayload
            .internal_static_datadog_agentpayload_CommonMetadata_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                datadog.agentpayload.AgentPayload.CommonMetadata.class,
                datadog.agentpayload.AgentPayload.CommonMetadata.Builder.class);
      }

      // Construct using datadog.agentpayload.AgentPayload.CommonMetadata.newBuilder()
      private Builder() {}

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        agentVersion_ = "";
        timezone_ = "";
        currentEpoch_ = 0D;
        internalIp_ = "";
        publicIp_ = "";
        apiKey_ = "";
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return datadog.agentpayload.AgentPayload
            .internal_static_datadog_agentpayload_CommonMetadata_descriptor;
      }

      @java.lang.Override
      public datadog.agentpayload.AgentPayload.CommonMetadata getDefaultInstanceForType() {
        return datadog.agentpayload.AgentPayload.CommonMetadata.getDefaultInstance();
      }

      @java.lang.Override
      public datadog.agentpayload.AgentPayload.CommonMetadata build() {
        datadog.agentpayload.AgentPayload.CommonMetadata result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public datadog.agentpayload.AgentPayload.CommonMetadata buildPartial() {
        datadog.agentpayload.AgentPayload.CommonMetadata result =
            new datadog.agentpayload.AgentPayload.CommonMetadata(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(datadog.agentpayload.AgentPayload.CommonMetadata result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.agentVersion_ = agentVersion_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.timezone_ = timezone_;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          result.currentEpoch_ = currentEpoch_;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          result.internalIp_ = internalIp_;
        }
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.publicIp_ = publicIp_;
        }
        if (((from_bitField0_ & 0x00000020) != 0)) {
          result.apiKey_ = apiKey_;
        }
      }

      @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 datadog.agentpayload.AgentPayload.CommonMetadata) {
          return mergeFrom((datadog.agentpayload.AgentPayload.CommonMetadata) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(datadog.agentpayload.AgentPayload.CommonMetadata other) {
        if (other == datadog.agentpayload.AgentPayload.CommonMetadata.getDefaultInstance())
          return this;
        if (!other.getAgentVersion().isEmpty()) {
          agentVersion_ = other.agentVersion_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        if (!other.getTimezone().isEmpty()) {
          timezone_ = other.timezone_;
          bitField0_ |= 0x00000002;
          onChanged();
        }
        if (other.getCurrentEpoch() != 0D) {
          setCurrentEpoch(other.getCurrentEpoch());
        }
        if (!other.getInternalIp().isEmpty()) {
          internalIp_ = other.internalIp_;
          bitField0_ |= 0x00000008;
          onChanged();
        }
        if (!other.getPublicIp().isEmpty()) {
          publicIp_ = other.publicIp_;
          bitField0_ |= 0x00000010;
          onChanged();
        }
        if (!other.getApiKey().isEmpty()) {
          apiKey_ = other.apiKey_;
          bitField0_ |= 0x00000020;
          onChanged();
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10:
                {
                  agentVersion_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 10
              case 18:
                {
                  timezone_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
              case 25:
                {
                  currentEpoch_ = input.readDouble();
                  bitField0_ |= 0x00000004;
                  break;
                } // case 25
              case 34:
                {
                  internalIp_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000008;
                  break;
                } // case 34
              case 42:
                {
                  publicIp_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000010;
                  break;
                } // case 42
              case 50:
                {
                  apiKey_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000020;
                  break;
                } // case 50
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private java.lang.Object agentVersion_ = "";
      /**
       * string agent_version = 1;
       *
       * @return The agentVersion.
       */
      public java.lang.String getAgentVersion() {
        java.lang.Object ref = agentVersion_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          agentVersion_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string agent_version = 1;
       *
       * @return The bytes for agentVersion.
       */
      public com.google.protobuf.ByteString getAgentVersionBytes() {
        java.lang.Object ref = agentVersion_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          agentVersion_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string agent_version = 1;
       *
       * @param value The agentVersion to set.
       * @return This builder for chaining.
       */
      public Builder setAgentVersion(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        agentVersion_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * string agent_version = 1;
       *
       * @return This builder for chaining.
       */
      public Builder clearAgentVersion() {
        agentVersion_ = getDefaultInstance().getAgentVersion();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * string agent_version = 1;
       *
       * @param value The bytes for agentVersion to set.
       * @return This builder for chaining.
       */
      public Builder setAgentVersionBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        agentVersion_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private java.lang.Object timezone_ = "";
      /**
       * string timezone = 2;
       *
       * @return The timezone.
       */
      public java.lang.String getTimezone() {
        java.lang.Object ref = timezone_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          timezone_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string timezone = 2;
       *
       * @return The bytes for timezone.
       */
      public com.google.protobuf.ByteString getTimezoneBytes() {
        java.lang.Object ref = timezone_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          timezone_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string timezone = 2;
       *
       * @param value The timezone to set.
       * @return This builder for chaining.
       */
      public Builder setTimezone(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        timezone_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       * string timezone = 2;
       *
       * @return This builder for chaining.
       */
      public Builder clearTimezone() {
        timezone_ = getDefaultInstance().getTimezone();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }
      /**
       * string timezone = 2;
       *
       * @param value The bytes for timezone to set.
       * @return This builder for chaining.
       */
      public Builder setTimezoneBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        timezone_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

      private double currentEpoch_;
      /**
       * double current_epoch = 3;
       *
       * @return The currentEpoch.
       */
      @java.lang.Override
      public double getCurrentEpoch() {
        return currentEpoch_;
      }
      /**
       * double current_epoch = 3;
       *
       * @param value The currentEpoch to set.
       * @return This builder for chaining.
       */
      public Builder setCurrentEpoch(double value) {

        currentEpoch_ = value;
        bitField0_ |= 0x00000004;
        onChanged();
        return this;
      }
      /**
       * double current_epoch = 3;
       *
       * @return This builder for chaining.
       */
      public Builder clearCurrentEpoch() {
        bitField0_ = (bitField0_ & ~0x00000004);
        currentEpoch_ = 0D;
        onChanged();
        return this;
      }

      private java.lang.Object internalIp_ = "";
      /**
       * string internal_ip = 4;
       *
       * @return The internalIp.
       */
      public java.lang.String getInternalIp() {
        java.lang.Object ref = internalIp_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          internalIp_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string internal_ip = 4;
       *
       * @return The bytes for internalIp.
       */
      public com.google.protobuf.ByteString getInternalIpBytes() {
        java.lang.Object ref = internalIp_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          internalIp_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string internal_ip = 4;
       *
       * @param value The internalIp to set.
       * @return This builder for chaining.
       */
      public Builder setInternalIp(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        internalIp_ = value;
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }
      /**
       * string internal_ip = 4;
       *
       * @return This builder for chaining.
       */
      public Builder clearInternalIp() {
        internalIp_ = getDefaultInstance().getInternalIp();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
        return this;
      }
      /**
       * string internal_ip = 4;
       *
       * @param value The bytes for internalIp to set.
       * @return This builder for chaining.
       */
      public Builder setInternalIpBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        internalIp_ = value;
        bitField0_ |= 0x00000008;
        onChanged();
        return this;
      }

      private java.lang.Object publicIp_ = "";
      /**
       * string public_ip = 5;
       *
       * @return The publicIp.
       */
      public java.lang.String getPublicIp() {
        java.lang.Object ref = publicIp_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          publicIp_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string public_ip = 5;
       *
       * @return The bytes for publicIp.
       */
      public com.google.protobuf.ByteString getPublicIpBytes() {
        java.lang.Object ref = publicIp_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          publicIp_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string public_ip = 5;
       *
       * @param value The publicIp to set.
       * @return This builder for chaining.
       */
      public Builder setPublicIp(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        publicIp_ = value;
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }
      /**
       * string public_ip = 5;
       *
       * @return This builder for chaining.
       */
      public Builder clearPublicIp() {
        publicIp_ = getDefaultInstance().getPublicIp();
        bitField0_ = (bitField0_ & ~0x00000010);
        onChanged();
        return this;
      }
      /**
       * string public_ip = 5;
       *
       * @param value The bytes for publicIp to set.
       * @return This builder for chaining.
       */
      public Builder setPublicIpBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        publicIp_ = value;
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }

      private java.lang.Object apiKey_ = "";
      /**
       * string api_key = 6;
       *
       * @return The apiKey.
       */
      public java.lang.String getApiKey() {
        java.lang.Object ref = apiKey_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          apiKey_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string api_key = 6;
       *
       * @return The bytes for apiKey.
       */
      public com.google.protobuf.ByteString getApiKeyBytes() {
        java.lang.Object ref = apiKey_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          apiKey_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string api_key = 6;
       *
       * @param value The apiKey to set.
       * @return This builder for chaining.
       */
      public Builder setApiKey(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        apiKey_ = value;
        bitField0_ |= 0x00000020;
        onChanged();
        return this;
      }
      /**
       * string api_key = 6;
       *
       * @return This builder for chaining.
       */
      public Builder clearApiKey() {
        apiKey_ = getDefaultInstance().getApiKey();
        bitField0_ = (bitField0_ & ~0x00000020);
        onChanged();
        return this;
      }
      /**
       * string api_key = 6;
       *
       * @param value The bytes for apiKey to set.
       * @return This builder for chaining.
       */
      public Builder setApiKeyBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        apiKey_ = value;
        bitField0_ |= 0x00000020;
        onChanged();
        return this;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }

      // @@protoc_insertion_point(builder_scope:datadog.agentpayload.CommonMetadata)
    }

    // @@protoc_insertion_point(class_scope:datadog.agentpayload.CommonMetadata)
    private static final datadog.agentpayload.AgentPayload.CommonMetadata DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new datadog.agentpayload.AgentPayload.CommonMetadata();
    }

    public static datadog.agentpayload.AgentPayload.CommonMetadata getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
          @java.lang.Override
          public CommonMetadata parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException()
                  .setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public datadog.agentpayload.AgentPayload.CommonMetadata getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface MetricPayloadOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:datadog.agentpayload.MetricPayload)
      com.google.protobuf.MessageOrBuilder {

    /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */
    java.util.List getSeriesList();
    /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */
    datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries getSeries(int index);
    /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */
    int getSeriesCount();
    /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */
    java.util.List
        getSeriesOrBuilderList();
    /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */
    datadog.agentpayload.AgentPayload.MetricPayload.MetricSeriesOrBuilder getSeriesOrBuilder(
        int index);
  }
  /** Protobuf type {@code datadog.agentpayload.MetricPayload} */
  public static final class MetricPayload extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:datadog.agentpayload.MetricPayload)
      MetricPayloadOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use MetricPayload.newBuilder() to construct.
    private MetricPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }

    private MetricPayload() {
      series_ = java.util.Collections.emptyList();
    }

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

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return datadog.agentpayload.AgentPayload
          .internal_static_datadog_agentpayload_MetricPayload_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return datadog.agentpayload.AgentPayload
          .internal_static_datadog_agentpayload_MetricPayload_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              datadog.agentpayload.AgentPayload.MetricPayload.class,
              datadog.agentpayload.AgentPayload.MetricPayload.Builder.class);
    }

    /** Protobuf enum {@code datadog.agentpayload.MetricPayload.MetricType} */
    public enum MetricType implements com.google.protobuf.ProtocolMessageEnum {
      /** UNSPECIFIED = 0; */
      UNSPECIFIED(0),
      /** COUNT = 1; */
      COUNT(1),
      /** RATE = 2; */
      RATE(2),
      /** GAUGE = 3; */
      GAUGE(3),
      UNRECOGNIZED(-1),
      ;

      /** UNSPECIFIED = 0; */
      public static final int UNSPECIFIED_VALUE = 0;
      /** COUNT = 1; */
      public static final int COUNT_VALUE = 1;
      /** RATE = 2; */
      public static final int RATE_VALUE = 2;
      /** GAUGE = 3; */
      public static final int GAUGE_VALUE = 3;

      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static MetricType valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static MetricType forNumber(int value) {
        switch (value) {
          case 0:
            return UNSPECIFIED;
          case 1:
            return COUNT;
          case 2:
            return RATE;
          case 3:
            return GAUGE;
          default:
            return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
        return internalValueMap;
      }

      private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public MetricType findValueByNumber(int number) {
              return MetricType.forNumber(number);
            }
          };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalStateException(
              "Can't get the descriptor of an unrecognized enum value.");
        }
        return getDescriptor().getValues().get(ordinal());
      }

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
        return getDescriptor();
      }

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
        return datadog.agentpayload.AgentPayload.MetricPayload.getDescriptor()
            .getEnumTypes()
            .get(0);
      }

      private static final MetricType[] VALUES = values();

      public static MetricType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private MetricType(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:datadog.agentpayload.MetricPayload.MetricType)
    }

    public interface MetricPointOrBuilder
        extends
        // @@protoc_insertion_point(interface_extends:datadog.agentpayload.MetricPayload.MetricPoint)
        com.google.protobuf.MessageOrBuilder {

      /**
       *
       *
       * 
       * metric value
       * 
* * double value = 1; * * @return The value. */ double getValue(); /** * * *
       * timestamp for this value in seconds since the UNIX epoch
       * 
* * int64 timestamp = 2; * * @return The timestamp. */ long getTimestamp(); } /** Protobuf type {@code datadog.agentpayload.MetricPayload.MetricPoint} */ public static final class MetricPoint extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:datadog.agentpayload.MetricPayload.MetricPoint) MetricPointOrBuilder { private static final long serialVersionUID = 0L; // Use MetricPoint.newBuilder() to construct. private MetricPoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MetricPoint() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MetricPoint(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_MetricPoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_MetricPoint_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.class, datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private double value_ = 0D; /** * * *
       * metric value
       * 
* * double value = 1; * * @return The value. */ @java.lang.Override public double getValue() { return value_; } public static final int TIMESTAMP_FIELD_NUMBER = 2; private long timestamp_ = 0L; /** * * *
       * timestamp for this value in seconds since the UNIX epoch
       * 
* * int64 timestamp = 2; * * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } 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 (java.lang.Double.doubleToRawLongBits(value_) != 0) { output.writeDouble(1, value_); } if (timestamp_ != 0L) { output.writeInt64(2, timestamp_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Double.doubleToRawLongBits(value_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, value_); } if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, timestamp_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint)) { return super.equals(obj); } datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint other = (datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint) obj; if (java.lang.Double.doubleToLongBits(getValue()) != java.lang.Double.doubleToLongBits(other.getValue())) return false; if (getTimestamp() != other.getTimestamp()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getValue())); hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimestamp()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint 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 datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint 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 datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint 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( datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint 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 datadog.agentpayload.MetricPayload.MetricPoint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:datadog.agentpayload.MetricPayload.MetricPoint) datadog.agentpayload.AgentPayload.MetricPayload.MetricPointOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_MetricPoint_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_MetricPoint_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.class, datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.Builder.class); } // Construct using datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; value_ = 0D; timestamp_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_MetricPoint_descriptor; } @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint getDefaultInstanceForType() { return datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.getDefaultInstance(); } @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint build() { datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint buildPartial() { datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint result = new datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.value_ = value_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.timestamp_ = timestamp_; } } @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 datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint) { return mergeFrom((datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint other) { if (other == datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.getDefaultInstance()) return this; if (other.getValue() != 0D) { setValue(other.getValue()); } if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 9: { value_ = input.readDouble(); bitField0_ |= 0x00000001; break; } // case 9 case 16: { timestamp_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private double value_; /** * * *
         * metric value
         * 
* * double value = 1; * * @return The value. */ @java.lang.Override public double getValue() { return value_; } /** * * *
         * metric value
         * 
* * double value = 1; * * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(double value) { value_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * metric value
         * 
* * double value = 1; * * @return This builder for chaining. */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000001); value_ = 0D; onChanged(); return this; } private long timestamp_; /** * * *
         * timestamp for this value in seconds since the UNIX epoch
         * 
* * int64 timestamp = 2; * * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } /** * * *
         * timestamp for this value in seconds since the UNIX epoch
         * 
* * int64 timestamp = 2; * * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { timestamp_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * timestamp for this value in seconds since the UNIX epoch
         * 
* * int64 timestamp = 2; * * @return This builder for chaining. */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000002); timestamp_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:datadog.agentpayload.MetricPayload.MetricPoint) } // @@protoc_insertion_point(class_scope:datadog.agentpayload.MetricPayload.MetricPoint) private static final datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint(); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MetricPoint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:datadog.agentpayload.MetricPayload.Resource) com.google.protobuf.MessageOrBuilder { /** * string type = 1; * * @return The type. */ java.lang.String getType(); /** * string type = 1; * * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); /** * string name = 2; * * @return The name. */ java.lang.String getName(); /** * string name = 2; * * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } /** Protobuf type {@code datadog.agentpayload.MetricPayload.Resource} */ public static final class Resource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:datadog.agentpayload.MetricPayload.Resource) ResourceOrBuilder { private static final long serialVersionUID = 0L; // Use Resource.newBuilder() to construct. private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Resource() { type_ = ""; name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Resource(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.MetricPayload.Resource.class, datadog.agentpayload.AgentPayload.MetricPayload.Resource.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** * string type = 1; * * @return The type. */ @java.lang.Override public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** * string type = 1; * * @return The bytes for type. */ @java.lang.Override public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * string name = 2; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * string name = 2; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof datadog.agentpayload.AgentPayload.MetricPayload.Resource)) { return super.equals(obj); } datadog.agentpayload.AgentPayload.MetricPayload.Resource other = (datadog.agentpayload.AgentPayload.MetricPayload.Resource) obj; if (!getType().equals(other.getType())) return false; if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static datadog.agentpayload.AgentPayload.MetricPayload.Resource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.MetricPayload.Resource parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.MetricPayload.Resource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.MetricPayload.Resource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.MetricPayload.Resource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.MetricPayload.Resource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.MetricPayload.Resource parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.MetricPayload.Resource 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 datadog.agentpayload.AgentPayload.MetricPayload.Resource parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.MetricPayload.Resource 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 datadog.agentpayload.AgentPayload.MetricPayload.Resource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.MetricPayload.Resource 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( datadog.agentpayload.AgentPayload.MetricPayload.Resource 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 datadog.agentpayload.MetricPayload.Resource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:datadog.agentpayload.MetricPayload.Resource) datadog.agentpayload.AgentPayload.MetricPayload.ResourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_Resource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_Resource_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.MetricPayload.Resource.class, datadog.agentpayload.AgentPayload.MetricPayload.Resource.Builder.class); } // Construct using datadog.agentpayload.AgentPayload.MetricPayload.Resource.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; type_ = ""; name_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_Resource_descriptor; } @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.Resource getDefaultInstanceForType() { return datadog.agentpayload.AgentPayload.MetricPayload.Resource.getDefaultInstance(); } @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.Resource build() { datadog.agentpayload.AgentPayload.MetricPayload.Resource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.Resource buildPartial() { datadog.agentpayload.AgentPayload.MetricPayload.Resource result = new datadog.agentpayload.AgentPayload.MetricPayload.Resource(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( datadog.agentpayload.AgentPayload.MetricPayload.Resource result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.name_ = name_; } } @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 datadog.agentpayload.AgentPayload.MetricPayload.Resource) { return mergeFrom((datadog.agentpayload.AgentPayload.MetricPayload.Resource) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(datadog.agentpayload.AgentPayload.MetricPayload.Resource other) { if (other == datadog.agentpayload.AgentPayload.MetricPayload.Resource.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { type_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object type_ = ""; /** * string type = 1; * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** * string type = 1; * * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string type = 1; * * @param value The type to set. * @return This builder for chaining. */ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string type = 1; * * @return This builder for chaining. */ public Builder clearType() { type_ = getDefaultInstance().getType(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string type = 1; * * @param value The bytes for type to set. * @return This builder for chaining. */ public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object name_ = ""; /** * string name = 2; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 2; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 2; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string name = 2; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string name = 2; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:datadog.agentpayload.MetricPayload.Resource) } // @@protoc_insertion_point(class_scope:datadog.agentpayload.MetricPayload.Resource) private static final datadog.agentpayload.AgentPayload.MetricPayload.Resource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new datadog.agentpayload.AgentPayload.MetricPayload.Resource(); } public static datadog.agentpayload.AgentPayload.MetricPayload.Resource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Resource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.Resource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MetricSeriesOrBuilder extends // @@protoc_insertion_point(interface_extends:datadog.agentpayload.MetricPayload.MetricSeries) com.google.protobuf.MessageOrBuilder { /** * * *
       * Resources this series applies to; include at least
       * { type="host", name=<hostname> }
       * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ java.util.List getResourcesList(); /** * * *
       * Resources this series applies to; include at least
       * { type="host", name=<hostname> }
       * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ datadog.agentpayload.AgentPayload.MetricPayload.Resource getResources(int index); /** * * *
       * Resources this series applies to; include at least
       * { type="host", name=<hostname> }
       * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ int getResourcesCount(); /** * * *
       * Resources this series applies to; include at least
       * { type="host", name=<hostname> }
       * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ java.util.List getResourcesOrBuilderList(); /** * * *
       * Resources this series applies to; include at least
       * { type="host", name=<hostname> }
       * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ datadog.agentpayload.AgentPayload.MetricPayload.ResourceOrBuilder getResourcesOrBuilder( int index); /** * * *
       * metric name
       * 
* * string metric = 2; * * @return The metric. */ java.lang.String getMetric(); /** * * *
       * metric name
       * 
* * string metric = 2; * * @return The bytes for metric. */ com.google.protobuf.ByteString getMetricBytes(); /** * * *
       * tags for this metric
       * 
* * repeated string tags = 3; * * @return A list containing the tags. */ java.util.List getTagsList(); /** * * *
       * tags for this metric
       * 
* * repeated string tags = 3; * * @return The count of tags. */ int getTagsCount(); /** * * *
       * tags for this metric
       * 
* * repeated string tags = 3; * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** * * *
       * tags for this metric
       * 
* * repeated string tags = 3; * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); /** * * *
       * data points for this metric
       * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ java.util.List getPointsList(); /** * * *
       * data points for this metric
       * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint getPoints(int index); /** * * *
       * data points for this metric
       * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ int getPointsCount(); /** * * *
       * data points for this metric
       * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ java.util.List getPointsOrBuilderList(); /** * * *
       * data points for this metric
       * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ datadog.agentpayload.AgentPayload.MetricPayload.MetricPointOrBuilder getPointsOrBuilder( int index); /** * * *
       * type of metric
       * 
* * .datadog.agentpayload.MetricPayload.MetricType type = 5; * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * * *
       * type of metric
       * 
* * .datadog.agentpayload.MetricPayload.MetricType type = 5; * * @return The type. */ datadog.agentpayload.AgentPayload.MetricPayload.MetricType getType(); /** * * *
       * metric unit name
       * 
* * string unit = 6; * * @return The unit. */ java.lang.String getUnit(); /** * * *
       * metric unit name
       * 
* * string unit = 6; * * @return The bytes for unit. */ com.google.protobuf.ByteString getUnitBytes(); /** * * *
       * source of this metric (check name, etc.)
       * 
* * string source_type_name = 7; * * @return The sourceTypeName. */ java.lang.String getSourceTypeName(); /** * * *
       * source of this metric (check name, etc.)
       * 
* * string source_type_name = 7; * * @return The bytes for sourceTypeName. */ com.google.protobuf.ByteString getSourceTypeNameBytes(); /** * * *
       * interval, in seconds, between samples of this metric
       * 
* * int64 interval = 8; * * @return The interval. */ long getInterval(); } /** Protobuf type {@code datadog.agentpayload.MetricPayload.MetricSeries} */ public static final class MetricSeries extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:datadog.agentpayload.MetricPayload.MetricSeries) MetricSeriesOrBuilder { private static final long serialVersionUID = 0L; // Use MetricSeries.newBuilder() to construct. private MetricSeries(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MetricSeries() { resources_ = java.util.Collections.emptyList(); metric_ = ""; tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); points_ = java.util.Collections.emptyList(); type_ = 0; unit_ = ""; sourceTypeName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MetricSeries(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_MetricSeries_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_MetricSeries_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.class, datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List resources_; /** * * *
       * Resources this series applies to; include at least
       * { type="host", name=<hostname> }
       * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ @java.lang.Override public java.util.List getResourcesList() { return resources_; } /** * * *
       * Resources this series applies to; include at least
       * { type="host", name=<hostname> }
       * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ @java.lang.Override public java.util.List< ? extends datadog.agentpayload.AgentPayload.MetricPayload.ResourceOrBuilder> getResourcesOrBuilderList() { return resources_; } /** * * *
       * Resources this series applies to; include at least
       * { type="host", name=<hostname> }
       * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ @java.lang.Override public int getResourcesCount() { return resources_.size(); } /** * * *
       * Resources this series applies to; include at least
       * { type="host", name=<hostname> }
       * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.Resource getResources(int index) { return resources_.get(index); } /** * * *
       * Resources this series applies to; include at least
       * { type="host", name=<hostname> }
       * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.ResourceOrBuilder getResourcesOrBuilder(int index) { return resources_.get(index); } public static final int METRIC_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object metric_ = ""; /** * * *
       * metric name
       * 
* * string metric = 2; * * @return The metric. */ @java.lang.Override public java.lang.String getMetric() { java.lang.Object ref = metric_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metric_ = s; return s; } } /** * * *
       * metric name
       * 
* * string metric = 2; * * @return The bytes for metric. */ @java.lang.Override public com.google.protobuf.ByteString getMetricBytes() { java.lang.Object ref = metric_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metric_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TAGS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
       * tags for this metric
       * 
* * repeated string tags = 3; * * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** * * *
       * tags for this metric
       * 
* * repeated string tags = 3; * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** * * *
       * tags for this metric
       * 
* * repeated string tags = 3; * * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** * * *
       * tags for this metric
       * 
* * repeated string tags = 3; * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int POINTS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List points_; /** * * *
       * data points for this metric
       * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ @java.lang.Override public java.util.List getPointsList() { return points_; } /** * * *
       * data points for this metric
       * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ @java.lang.Override public java.util.List< ? extends datadog.agentpayload.AgentPayload.MetricPayload.MetricPointOrBuilder> getPointsOrBuilderList() { return points_; } /** * * *
       * data points for this metric
       * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ @java.lang.Override public int getPointsCount() { return points_.size(); } /** * * *
       * data points for this metric
       * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint getPoints(int index) { return points_.get(index); } /** * * *
       * data points for this metric
       * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.MetricPointOrBuilder getPointsOrBuilder(int index) { return points_.get(index); } public static final int TYPE_FIELD_NUMBER = 5; private int type_ = 0; /** * * *
       * type of metric
       * 
* * .datadog.agentpayload.MetricPayload.MetricType type = 5; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
       * type of metric
       * 
* * .datadog.agentpayload.MetricPayload.MetricType type = 5; * * @return The type. */ @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.MetricType getType() { datadog.agentpayload.AgentPayload.MetricPayload.MetricType result = datadog.agentpayload.AgentPayload.MetricPayload.MetricType.forNumber(type_); return result == null ? datadog.agentpayload.AgentPayload.MetricPayload.MetricType.UNRECOGNIZED : result; } public static final int UNIT_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object unit_ = ""; /** * * *
       * metric unit name
       * 
* * string unit = 6; * * @return The unit. */ @java.lang.Override public java.lang.String getUnit() { java.lang.Object ref = unit_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; } } /** * * *
       * metric unit name
       * 
* * string unit = 6; * * @return The bytes for unit. */ @java.lang.Override public com.google.protobuf.ByteString getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); unit_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SOURCE_TYPE_NAME_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object sourceTypeName_ = ""; /** * * *
       * source of this metric (check name, etc.)
       * 
* * string source_type_name = 7; * * @return The sourceTypeName. */ @java.lang.Override public java.lang.String getSourceTypeName() { java.lang.Object ref = sourceTypeName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceTypeName_ = s; return s; } } /** * * *
       * source of this metric (check name, etc.)
       * 
* * string source_type_name = 7; * * @return The bytes for sourceTypeName. */ @java.lang.Override public com.google.protobuf.ByteString getSourceTypeNameBytes() { java.lang.Object ref = sourceTypeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceTypeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INTERVAL_FIELD_NUMBER = 8; private long interval_ = 0L; /** * * *
       * interval, in seconds, between samples of this metric
       * 
* * int64 interval = 8; * * @return The interval. */ @java.lang.Override public long getInterval() { return interval_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metric_); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i)); } for (int i = 0; i < points_.size(); i++) { output.writeMessage(4, points_.get(i)); } if (type_ != datadog.agentpayload.AgentPayload.MetricPayload.MetricType.UNSPECIFIED.getNumber()) { output.writeEnum(5, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, unit_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceTypeName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, sourceTypeName_); } if (interval_ != 0L) { output.writeInt64(8, interval_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < resources_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metric_); } { int dataSize = 0; for (int i = 0; i < tags_.size(); i++) { dataSize += computeStringSizeNoTag(tags_.getRaw(i)); } size += dataSize; size += 1 * getTagsList().size(); } for (int i = 0; i < points_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, points_.get(i)); } if (type_ != datadog.agentpayload.AgentPayload.MetricPayload.MetricType.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, type_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, unit_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceTypeName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, sourceTypeName_); } if (interval_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, interval_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries)) { return super.equals(obj); } datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries other = (datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries) obj; if (!getResourcesList().equals(other.getResourcesList())) return false; if (!getMetric().equals(other.getMetric())) return false; if (!getTagsList().equals(other.getTagsList())) return false; if (!getPointsList().equals(other.getPointsList())) return false; if (type_ != other.type_) return false; if (!getUnit().equals(other.getUnit())) return false; if (!getSourceTypeName().equals(other.getSourceTypeName())) return false; if (getInterval() != other.getInterval()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getResourcesCount() > 0) { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResourcesList().hashCode(); } hash = (37 * hash) + METRIC_FIELD_NUMBER; hash = (53 * hash) + getMetric().hashCode(); if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } if (getPointsCount() > 0) { hash = (37 * hash) + POINTS_FIELD_NUMBER; hash = (53 * hash) + getPointsList().hashCode(); } hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + UNIT_FIELD_NUMBER; hash = (53 * hash) + getUnit().hashCode(); hash = (37 * hash) + SOURCE_TYPE_NAME_FIELD_NUMBER; hash = (53 * hash) + getSourceTypeName().hashCode(); hash = (37 * hash) + INTERVAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInterval()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries 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 datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries 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 datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries 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( datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries 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 datadog.agentpayload.MetricPayload.MetricSeries} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:datadog.agentpayload.MetricPayload.MetricSeries) datadog.agentpayload.AgentPayload.MetricPayload.MetricSeriesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_MetricSeries_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_MetricSeries_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.class, datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.Builder.class); } // Construct using datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); } else { resources_ = null; resourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); metric_ = ""; tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (pointsBuilder_ == null) { points_ = java.util.Collections.emptyList(); } else { points_ = null; pointsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); type_ = 0; unit_ = ""; sourceTypeName_ = ""; interval_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_MetricSeries_descriptor; } @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries getDefaultInstanceForType() { return datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.getDefaultInstance(); } @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries build() { datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries buildPartial() { datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries result = new datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries result) { if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); bitField0_ = (bitField0_ & ~0x00000001); } result.resources_ = resources_; } else { result.resources_ = resourcesBuilder_.build(); } if (pointsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { points_ = java.util.Collections.unmodifiableList(points_); bitField0_ = (bitField0_ & ~0x00000008); } result.points_ = points_; } else { result.points_ = pointsBuilder_.build(); } } private void buildPartial0( datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.metric_ = metric_; } if (((from_bitField0_ & 0x00000004) != 0)) { tags_.makeImmutable(); result.tags_ = tags_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.unit_ = unit_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.sourceTypeName_ = sourceTypeName_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.interval_ = interval_; } } @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 datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries) { return mergeFrom((datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries other) { if (other == datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.getDefaultInstance()) return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); } onChanged(); } } else { if (!other.resources_.isEmpty()) { if (resourcesBuilder_.isEmpty()) { resourcesBuilder_.dispose(); resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); resourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } } } if (!other.getMetric().isEmpty()) { metric_ = other.metric_; bitField0_ |= 0x00000002; onChanged(); } if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ |= 0x00000004; } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } if (pointsBuilder_ == null) { if (!other.points_.isEmpty()) { if (points_.isEmpty()) { points_ = other.points_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePointsIsMutable(); points_.addAll(other.points_); } onChanged(); } } else { if (!other.points_.isEmpty()) { if (pointsBuilder_.isEmpty()) { pointsBuilder_.dispose(); pointsBuilder_ = null; points_ = other.points_; bitField0_ = (bitField0_ & ~0x00000008); pointsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPointsFieldBuilder() : null; } else { pointsBuilder_.addAllMessages(other.points_); } } } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getUnit().isEmpty()) { unit_ = other.unit_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getSourceTypeName().isEmpty()) { sourceTypeName_ = other.sourceTypeName_; bitField0_ |= 0x00000040; onChanged(); } if (other.getInterval() != 0L) { setInterval(other.getInterval()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { datadog.agentpayload.AgentPayload.MetricPayload.Resource m = input.readMessage( datadog.agentpayload.AgentPayload.MetricPayload.Resource.parser(), extensionRegistry); if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(m); } else { resourcesBuilder_.addMessage(m); } break; } // case 10 case 18: { metric_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureTagsIsMutable(); tags_.add(s); break; } // case 26 case 34: { datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint m = input.readMessage( datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.parser(), extensionRegistry); if (pointsBuilder_ == null) { ensurePointsIsMutable(); points_.add(m); } else { pointsBuilder_.addMessage(m); } break; } // case 34 case 40: { type_ = input.readEnum(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { unit_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { sourceTypeName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 64: { interval_ = input.readInt64(); bitField0_ |= 0x00000080; break; } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List resources_ = java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList( resources_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.MetricPayload.Resource, datadog.agentpayload.AgentPayload.MetricPayload.Resource.Builder, datadog.agentpayload.AgentPayload.MetricPayload.ResourceOrBuilder> resourcesBuilder_; /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public java.util.List getResourcesList() { if (resourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(resources_); } else { return resourcesBuilder_.getMessageList(); } } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public int getResourcesCount() { if (resourcesBuilder_ == null) { return resources_.size(); } else { return resourcesBuilder_.getCount(); } } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public datadog.agentpayload.AgentPayload.MetricPayload.Resource getResources(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessage(index); } } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public Builder setResources( int index, datadog.agentpayload.AgentPayload.MetricPayload.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.set(index, value); onChanged(); } else { resourcesBuilder_.setMessage(index, value); } return this; } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public Builder setResources( int index, datadog.agentpayload.AgentPayload.MetricPayload.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.set(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public Builder addResources( datadog.agentpayload.AgentPayload.MetricPayload.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(value); onChanged(); } else { resourcesBuilder_.addMessage(value); } return this; } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public Builder addResources( int index, datadog.agentpayload.AgentPayload.MetricPayload.Resource value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureResourcesIsMutable(); resources_.add(index, value); onChanged(); } else { resourcesBuilder_.addMessage(index, value); } return this; } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public Builder addResources( datadog.agentpayload.AgentPayload.MetricPayload.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public Builder addResources( int index, datadog.agentpayload.AgentPayload.MetricPayload.Resource.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(index, builderForValue.build()); onChanged(); } else { resourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); } return this; } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public Builder clearResources() { if (resourcesBuilder_ == null) { resources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { resourcesBuilder_.clear(); } return this; } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public Builder removeResources(int index) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.remove(index); onChanged(); } else { resourcesBuilder_.remove(index); } return this; } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public datadog.agentpayload.AgentPayload.MetricPayload.Resource.Builder getResourcesBuilder( int index) { return getResourcesFieldBuilder().getBuilder(index); } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public datadog.agentpayload.AgentPayload.MetricPayload.ResourceOrBuilder getResourcesOrBuilder(int index) { if (resourcesBuilder_ == null) { return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public java.util.List< ? extends datadog.agentpayload.AgentPayload.MetricPayload.ResourceOrBuilder> getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(resources_); } } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public datadog.agentpayload.AgentPayload.MetricPayload.Resource.Builder addResourcesBuilder() { return getResourcesFieldBuilder() .addBuilder( datadog.agentpayload.AgentPayload.MetricPayload.Resource.getDefaultInstance()); } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public datadog.agentpayload.AgentPayload.MetricPayload.Resource.Builder addResourcesBuilder( int index) { return getResourcesFieldBuilder() .addBuilder( index, datadog.agentpayload.AgentPayload.MetricPayload.Resource.getDefaultInstance()); } /** * * *
         * Resources this series applies to; include at least
         * { type="host", name=<hostname> }
         * 
* * repeated .datadog.agentpayload.MetricPayload.Resource resources = 1; */ public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.MetricPayload.Resource, datadog.agentpayload.AgentPayload.MetricPayload.Resource.Builder, datadog.agentpayload.AgentPayload.MetricPayload.ResourceOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.MetricPayload.Resource, datadog.agentpayload.AgentPayload.MetricPayload.Resource.Builder, datadog.agentpayload.AgentPayload.MetricPayload.ResourceOrBuilder>( resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; } private java.lang.Object metric_ = ""; /** * * *
         * metric name
         * 
* * string metric = 2; * * @return The metric. */ public java.lang.String getMetric() { java.lang.Object ref = metric_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metric_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * metric name
         * 
* * string metric = 2; * * @return The bytes for metric. */ public com.google.protobuf.ByteString getMetricBytes() { java.lang.Object ref = metric_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metric_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * metric name
         * 
* * string metric = 2; * * @param value The metric to set. * @return This builder for chaining. */ public Builder setMetric(java.lang.String value) { if (value == null) { throw new NullPointerException(); } metric_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * metric name
         * 
* * string metric = 2; * * @return This builder for chaining. */ public Builder clearMetric() { metric_ = getDefaultInstance().getMetric(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
         * metric name
         * 
* * string metric = 2; * * @param value The bytes for metric to set. * @return This builder for chaining. */ public Builder setMetricBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); metric_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTagsIsMutable() { if (!tags_.isModifiable()) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); } bitField0_ |= 0x00000004; } /** * * *
         * tags for this metric
         * 
* * repeated string tags = 3; * * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { tags_.makeImmutable(); return tags_; } /** * * *
         * tags for this metric
         * 
* * repeated string tags = 3; * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** * * *
         * tags for this metric
         * 
* * repeated string tags = 3; * * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** * * *
         * tags for this metric
         * 
* * repeated string tags = 3; * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** * * *
         * tags for this metric
         * 
* * repeated string tags = 3; * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ public Builder setTags(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
         * tags for this metric
         * 
* * repeated string tags = 3; * * @param value The tags to add. * @return This builder for chaining. */ public Builder addTags(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
         * tags for this metric
         * 
* * repeated string tags = 3; * * @param values The tags to add. * @return This builder for chaining. */ public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
         * tags for this metric
         * 
* * repeated string tags = 3; * * @return This builder for chaining. */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); ; onChanged(); return this; } /** * * *
         * tags for this metric
         * 
* * repeated string tags = 3; * * @param value The bytes of the tags to add. * @return This builder for chaining. */ public Builder addTagsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } private java.util.List points_ = java.util.Collections.emptyList(); private void ensurePointsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { points_ = new java.util.ArrayList< datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint>(points_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint, datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.Builder, datadog.agentpayload.AgentPayload.MetricPayload.MetricPointOrBuilder> pointsBuilder_; /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public java.util.List getPointsList() { if (pointsBuilder_ == null) { return java.util.Collections.unmodifiableList(points_); } else { return pointsBuilder_.getMessageList(); } } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public int getPointsCount() { if (pointsBuilder_ == null) { return points_.size(); } else { return pointsBuilder_.getCount(); } } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint getPoints(int index) { if (pointsBuilder_ == null) { return points_.get(index); } else { return pointsBuilder_.getMessage(index); } } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public Builder setPoints( int index, datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint value) { if (pointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePointsIsMutable(); points_.set(index, value); onChanged(); } else { pointsBuilder_.setMessage(index, value); } return this; } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public Builder setPoints( int index, datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.Builder builderForValue) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); points_.set(index, builderForValue.build()); onChanged(); } else { pointsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public Builder addPoints( datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint value) { if (pointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePointsIsMutable(); points_.add(value); onChanged(); } else { pointsBuilder_.addMessage(value); } return this; } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public Builder addPoints( int index, datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint value) { if (pointsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePointsIsMutable(); points_.add(index, value); onChanged(); } else { pointsBuilder_.addMessage(index, value); } return this; } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public Builder addPoints( datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.Builder builderForValue) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); points_.add(builderForValue.build()); onChanged(); } else { pointsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public Builder addPoints( int index, datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.Builder builderForValue) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); points_.add(index, builderForValue.build()); onChanged(); } else { pointsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public Builder addAllPoints( java.lang.Iterable< ? extends datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint> values) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, points_); onChanged(); } else { pointsBuilder_.addAllMessages(values); } return this; } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public Builder clearPoints() { if (pointsBuilder_ == null) { points_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { pointsBuilder_.clear(); } return this; } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public Builder removePoints(int index) { if (pointsBuilder_ == null) { ensurePointsIsMutable(); points_.remove(index); onChanged(); } else { pointsBuilder_.remove(index); } return this; } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.Builder getPointsBuilder( int index) { return getPointsFieldBuilder().getBuilder(index); } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public datadog.agentpayload.AgentPayload.MetricPayload.MetricPointOrBuilder getPointsOrBuilder(int index) { if (pointsBuilder_ == null) { return points_.get(index); } else { return pointsBuilder_.getMessageOrBuilder(index); } } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public java.util.List< ? extends datadog.agentpayload.AgentPayload.MetricPayload.MetricPointOrBuilder> getPointsOrBuilderList() { if (pointsBuilder_ != null) { return pointsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(points_); } } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.Builder addPointsBuilder() { return getPointsFieldBuilder() .addBuilder( datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.getDefaultInstance()); } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.Builder addPointsBuilder( int index) { return getPointsFieldBuilder() .addBuilder( index, datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.getDefaultInstance()); } /** * * *
         * data points for this metric
         * 
* * repeated .datadog.agentpayload.MetricPayload.MetricPoint points = 4; */ public java.util.List getPointsBuilderList() { return getPointsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint, datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.Builder, datadog.agentpayload.AgentPayload.MetricPayload.MetricPointOrBuilder> getPointsFieldBuilder() { if (pointsBuilder_ == null) { pointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint, datadog.agentpayload.AgentPayload.MetricPayload.MetricPoint.Builder, datadog.agentpayload.AgentPayload.MetricPayload.MetricPointOrBuilder>( points_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); points_ = null; } return pointsBuilder_; } private int type_ = 0; /** * * *
         * type of metric
         * 
* * .datadog.agentpayload.MetricPayload.MetricType type = 5; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
         * type of metric
         * 
* * .datadog.agentpayload.MetricPayload.MetricType type = 5; * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
         * type of metric
         * 
* * .datadog.agentpayload.MetricPayload.MetricType type = 5; * * @return The type. */ @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.MetricType getType() { datadog.agentpayload.AgentPayload.MetricPayload.MetricType result = datadog.agentpayload.AgentPayload.MetricPayload.MetricType.forNumber(type_); return result == null ? datadog.agentpayload.AgentPayload.MetricPayload.MetricType.UNRECOGNIZED : result; } /** * * *
         * type of metric
         * 
* * .datadog.agentpayload.MetricPayload.MetricType type = 5; * * @param value The type to set. * @return This builder for chaining. */ public Builder setType(datadog.agentpayload.AgentPayload.MetricPayload.MetricType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; type_ = value.getNumber(); onChanged(); return this; } /** * * *
         * type of metric
         * 
* * .datadog.agentpayload.MetricPayload.MetricType type = 5; * * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000010); type_ = 0; onChanged(); return this; } private java.lang.Object unit_ = ""; /** * * *
         * metric unit name
         * 
* * string unit = 6; * * @return The unit. */ public java.lang.String getUnit() { java.lang.Object ref = unit_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); unit_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * metric unit name
         * 
* * string unit = 6; * * @return The bytes for unit. */ public com.google.protobuf.ByteString getUnitBytes() { java.lang.Object ref = unit_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); unit_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * metric unit name
         * 
* * string unit = 6; * * @param value The unit to set. * @return This builder for chaining. */ public Builder setUnit(java.lang.String value) { if (value == null) { throw new NullPointerException(); } unit_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
         * metric unit name
         * 
* * string unit = 6; * * @return This builder for chaining. */ public Builder clearUnit() { unit_ = getDefaultInstance().getUnit(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
         * metric unit name
         * 
* * string unit = 6; * * @param value The bytes for unit to set. * @return This builder for chaining. */ public Builder setUnitBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); unit_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object sourceTypeName_ = ""; /** * * *
         * source of this metric (check name, etc.)
         * 
* * string source_type_name = 7; * * @return The sourceTypeName. */ public java.lang.String getSourceTypeName() { java.lang.Object ref = sourceTypeName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceTypeName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
         * source of this metric (check name, etc.)
         * 
* * string source_type_name = 7; * * @return The bytes for sourceTypeName. */ public com.google.protobuf.ByteString getSourceTypeNameBytes() { java.lang.Object ref = sourceTypeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceTypeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
         * source of this metric (check name, etc.)
         * 
* * string source_type_name = 7; * * @param value The sourceTypeName to set. * @return This builder for chaining. */ public Builder setSourceTypeName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } sourceTypeName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
         * source of this metric (check name, etc.)
         * 
* * string source_type_name = 7; * * @return This builder for chaining. */ public Builder clearSourceTypeName() { sourceTypeName_ = getDefaultInstance().getSourceTypeName(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
         * source of this metric (check name, etc.)
         * 
* * string source_type_name = 7; * * @param value The bytes for sourceTypeName to set. * @return This builder for chaining. */ public Builder setSourceTypeNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceTypeName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private long interval_; /** * * *
         * interval, in seconds, between samples of this metric
         * 
* * int64 interval = 8; * * @return The interval. */ @java.lang.Override public long getInterval() { return interval_; } /** * * *
         * interval, in seconds, between samples of this metric
         * 
* * int64 interval = 8; * * @param value The interval to set. * @return This builder for chaining. */ public Builder setInterval(long value) { interval_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
         * interval, in seconds, between samples of this metric
         * 
* * int64 interval = 8; * * @return This builder for chaining. */ public Builder clearInterval() { bitField0_ = (bitField0_ & ~0x00000080); interval_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:datadog.agentpayload.MetricPayload.MetricSeries) } // @@protoc_insertion_point(class_scope:datadog.agentpayload.MetricPayload.MetricSeries) private static final datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries(); } public static datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MetricSeries parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int SERIES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List series_; /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ @java.lang.Override public java.util.List getSeriesList() { return series_; } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ @java.lang.Override public java.util.List< ? extends datadog.agentpayload.AgentPayload.MetricPayload.MetricSeriesOrBuilder> getSeriesOrBuilderList() { return series_; } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ @java.lang.Override public int getSeriesCount() { return series_.size(); } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries getSeries(int index) { return series_.get(index); } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload.MetricSeriesOrBuilder getSeriesOrBuilder( int index) { return series_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < series_.size(); i++) { output.writeMessage(1, series_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < series_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, series_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof datadog.agentpayload.AgentPayload.MetricPayload)) { return super.equals(obj); } datadog.agentpayload.AgentPayload.MetricPayload other = (datadog.agentpayload.AgentPayload.MetricPayload) obj; if (!getSeriesList().equals(other.getSeriesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getSeriesCount() > 0) { hash = (37 * hash) + SERIES_FIELD_NUMBER; hash = (53 * hash) + getSeriesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static datadog.agentpayload.AgentPayload.MetricPayload parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.MetricPayload parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.MetricPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.MetricPayload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.MetricPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.MetricPayload parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.MetricPayload parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.MetricPayload 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 datadog.agentpayload.AgentPayload.MetricPayload parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.MetricPayload 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 datadog.agentpayload.AgentPayload.MetricPayload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.MetricPayload 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(datadog.agentpayload.AgentPayload.MetricPayload 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 datadog.agentpayload.MetricPayload} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:datadog.agentpayload.MetricPayload) datadog.agentpayload.AgentPayload.MetricPayloadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.MetricPayload.class, datadog.agentpayload.AgentPayload.MetricPayload.Builder.class); } // Construct using datadog.agentpayload.AgentPayload.MetricPayload.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (seriesBuilder_ == null) { series_ = java.util.Collections.emptyList(); } else { series_ = null; seriesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_MetricPayload_descriptor; } @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload getDefaultInstanceForType() { return datadog.agentpayload.AgentPayload.MetricPayload.getDefaultInstance(); } @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload build() { datadog.agentpayload.AgentPayload.MetricPayload result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload buildPartial() { datadog.agentpayload.AgentPayload.MetricPayload result = new datadog.agentpayload.AgentPayload.MetricPayload(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( datadog.agentpayload.AgentPayload.MetricPayload result) { if (seriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { series_ = java.util.Collections.unmodifiableList(series_); bitField0_ = (bitField0_ & ~0x00000001); } result.series_ = series_; } else { result.series_ = seriesBuilder_.build(); } } private void buildPartial0(datadog.agentpayload.AgentPayload.MetricPayload result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof datadog.agentpayload.AgentPayload.MetricPayload) { return mergeFrom((datadog.agentpayload.AgentPayload.MetricPayload) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(datadog.agentpayload.AgentPayload.MetricPayload other) { if (other == datadog.agentpayload.AgentPayload.MetricPayload.getDefaultInstance()) return this; if (seriesBuilder_ == null) { if (!other.series_.isEmpty()) { if (series_.isEmpty()) { series_ = other.series_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSeriesIsMutable(); series_.addAll(other.series_); } onChanged(); } } else { if (!other.series_.isEmpty()) { if (seriesBuilder_.isEmpty()) { seriesBuilder_.dispose(); seriesBuilder_ = null; series_ = other.series_; bitField0_ = (bitField0_ & ~0x00000001); seriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSeriesFieldBuilder() : null; } else { seriesBuilder_.addAllMessages(other.series_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries m = input.readMessage( datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.parser(), extensionRegistry); if (seriesBuilder_ == null) { ensureSeriesIsMutable(); series_.add(m); } else { seriesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List series_ = java.util.Collections.emptyList(); private void ensureSeriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { series_ = new java.util.ArrayList( series_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries, datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.Builder, datadog.agentpayload.AgentPayload.MetricPayload.MetricSeriesOrBuilder> seriesBuilder_; /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public java.util.List getSeriesList() { if (seriesBuilder_ == null) { return java.util.Collections.unmodifiableList(series_); } else { return seriesBuilder_.getMessageList(); } } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public int getSeriesCount() { if (seriesBuilder_ == null) { return series_.size(); } else { return seriesBuilder_.getCount(); } } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries getSeries(int index) { if (seriesBuilder_ == null) { return series_.get(index); } else { return seriesBuilder_.getMessage(index); } } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public Builder setSeries( int index, datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries value) { if (seriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSeriesIsMutable(); series_.set(index, value); onChanged(); } else { seriesBuilder_.setMessage(index, value); } return this; } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public Builder setSeries( int index, datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.Builder builderForValue) { if (seriesBuilder_ == null) { ensureSeriesIsMutable(); series_.set(index, builderForValue.build()); onChanged(); } else { seriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public Builder addSeries(datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries value) { if (seriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSeriesIsMutable(); series_.add(value); onChanged(); } else { seriesBuilder_.addMessage(value); } return this; } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public Builder addSeries( int index, datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries value) { if (seriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSeriesIsMutable(); series_.add(index, value); onChanged(); } else { seriesBuilder_.addMessage(index, value); } return this; } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public Builder addSeries( datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.Builder builderForValue) { if (seriesBuilder_ == null) { ensureSeriesIsMutable(); series_.add(builderForValue.build()); onChanged(); } else { seriesBuilder_.addMessage(builderForValue.build()); } return this; } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public Builder addSeries( int index, datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.Builder builderForValue) { if (seriesBuilder_ == null) { ensureSeriesIsMutable(); series_.add(index, builderForValue.build()); onChanged(); } else { seriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public Builder addAllSeries( java.lang.Iterable values) { if (seriesBuilder_ == null) { ensureSeriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, series_); onChanged(); } else { seriesBuilder_.addAllMessages(values); } return this; } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public Builder clearSeries() { if (seriesBuilder_ == null) { series_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { seriesBuilder_.clear(); } return this; } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public Builder removeSeries(int index) { if (seriesBuilder_ == null) { ensureSeriesIsMutable(); series_.remove(index); onChanged(); } else { seriesBuilder_.remove(index); } return this; } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.Builder getSeriesBuilder( int index) { return getSeriesFieldBuilder().getBuilder(index); } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public datadog.agentpayload.AgentPayload.MetricPayload.MetricSeriesOrBuilder getSeriesOrBuilder(int index) { if (seriesBuilder_ == null) { return series_.get(index); } else { return seriesBuilder_.getMessageOrBuilder(index); } } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public java.util.List< ? extends datadog.agentpayload.AgentPayload.MetricPayload.MetricSeriesOrBuilder> getSeriesOrBuilderList() { if (seriesBuilder_ != null) { return seriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(series_); } } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.Builder addSeriesBuilder() { return getSeriesFieldBuilder() .addBuilder( datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.getDefaultInstance()); } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.Builder addSeriesBuilder( int index) { return getSeriesFieldBuilder() .addBuilder( index, datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.getDefaultInstance()); } /** repeated .datadog.agentpayload.MetricPayload.MetricSeries series = 1; */ public java.util.List getSeriesBuilderList() { return getSeriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries, datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.Builder, datadog.agentpayload.AgentPayload.MetricPayload.MetricSeriesOrBuilder> getSeriesFieldBuilder() { if (seriesBuilder_ == null) { seriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries, datadog.agentpayload.AgentPayload.MetricPayload.MetricSeries.Builder, datadog.agentpayload.AgentPayload.MetricPayload.MetricSeriesOrBuilder>( series_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); series_ = null; } return seriesBuilder_; } @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:datadog.agentpayload.MetricPayload) } // @@protoc_insertion_point(class_scope:datadog.agentpayload.MetricPayload) private static final datadog.agentpayload.AgentPayload.MetricPayload DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new datadog.agentpayload.AgentPayload.MetricPayload(); } public static datadog.agentpayload.AgentPayload.MetricPayload getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MetricPayload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public datadog.agentpayload.AgentPayload.MetricPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EventsPayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:datadog.agentpayload.EventsPayload) com.google.protobuf.MessageOrBuilder { /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ java.util.List getEventsList(); /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ datadog.agentpayload.AgentPayload.EventsPayload.Event getEvents(int index); /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ int getEventsCount(); /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ java.util.List getEventsOrBuilderList(); /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ datadog.agentpayload.AgentPayload.EventsPayload.EventOrBuilder getEventsOrBuilder(int index); /** * .datadog.agentpayload.CommonMetadata metadata = 2; * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** * .datadog.agentpayload.CommonMetadata metadata = 2; * * @return The metadata. */ datadog.agentpayload.AgentPayload.CommonMetadata getMetadata(); /** .datadog.agentpayload.CommonMetadata metadata = 2; */ datadog.agentpayload.AgentPayload.CommonMetadataOrBuilder getMetadataOrBuilder(); } /** Protobuf type {@code datadog.agentpayload.EventsPayload} */ public static final class EventsPayload extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:datadog.agentpayload.EventsPayload) EventsPayloadOrBuilder { private static final long serialVersionUID = 0L; // Use EventsPayload.newBuilder() to construct. private EventsPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EventsPayload() { events_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EventsPayload(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_EventsPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_EventsPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.EventsPayload.class, datadog.agentpayload.AgentPayload.EventsPayload.Builder.class); } public interface EventOrBuilder extends // @@protoc_insertion_point(interface_extends:datadog.agentpayload.EventsPayload.Event) com.google.protobuf.MessageOrBuilder { /** * string title = 1; * * @return The title. */ java.lang.String getTitle(); /** * string title = 1; * * @return The bytes for title. */ com.google.protobuf.ByteString getTitleBytes(); /** * string text = 2; * * @return The text. */ java.lang.String getText(); /** * string text = 2; * * @return The bytes for text. */ com.google.protobuf.ByteString getTextBytes(); /** * int64 ts = 3; * * @return The ts. */ long getTs(); /** * string priority = 4; * * @return The priority. */ java.lang.String getPriority(); /** * string priority = 4; * * @return The bytes for priority. */ com.google.protobuf.ByteString getPriorityBytes(); /** * string host = 5; * * @return The host. */ java.lang.String getHost(); /** * string host = 5; * * @return The bytes for host. */ com.google.protobuf.ByteString getHostBytes(); /** * repeated string tags = 6; * * @return A list containing the tags. */ java.util.List getTagsList(); /** * repeated string tags = 6; * * @return The count of tags. */ int getTagsCount(); /** * repeated string tags = 6; * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** * repeated string tags = 6; * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); /** * string alert_type = 7; * * @return The alertType. */ java.lang.String getAlertType(); /** * string alert_type = 7; * * @return The bytes for alertType. */ com.google.protobuf.ByteString getAlertTypeBytes(); /** * string aggregation_key = 8; * * @return The aggregationKey. */ java.lang.String getAggregationKey(); /** * string aggregation_key = 8; * * @return The bytes for aggregationKey. */ com.google.protobuf.ByteString getAggregationKeyBytes(); /** * string source_type_name = 9; * * @return The sourceTypeName. */ java.lang.String getSourceTypeName(); /** * string source_type_name = 9; * * @return The bytes for sourceTypeName. */ com.google.protobuf.ByteString getSourceTypeNameBytes(); } /** Protobuf type {@code datadog.agentpayload.EventsPayload.Event} */ public static final class Event extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:datadog.agentpayload.EventsPayload.Event) EventOrBuilder { private static final long serialVersionUID = 0L; // Use Event.newBuilder() to construct. private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Event() { title_ = ""; text_ = ""; priority_ = ""; host_ = ""; tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); alertType_ = ""; aggregationKey_ = ""; sourceTypeName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Event(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_EventsPayload_Event_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_EventsPayload_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.EventsPayload.Event.class, datadog.agentpayload.AgentPayload.EventsPayload.Event.Builder.class); } public static final int TITLE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object title_ = ""; /** * string title = 1; * * @return The title. */ @java.lang.Override public java.lang.String getTitle() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } } /** * string title = 1; * * @return The bytes for title. */ @java.lang.Override public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEXT_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object text_ = ""; /** * string text = 2; * * @return The text. */ @java.lang.Override public java.lang.String getText() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } } /** * string text = 2; * * @return The bytes for text. */ @java.lang.Override public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TS_FIELD_NUMBER = 3; private long ts_ = 0L; /** * int64 ts = 3; * * @return The ts. */ @java.lang.Override public long getTs() { return ts_; } public static final int PRIORITY_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object priority_ = ""; /** * string priority = 4; * * @return The priority. */ @java.lang.Override public java.lang.String getPriority() { java.lang.Object ref = priority_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); priority_ = s; return s; } } /** * string priority = 4; * * @return The bytes for priority. */ @java.lang.Override public com.google.protobuf.ByteString getPriorityBytes() { java.lang.Object ref = priority_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); priority_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOST_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object host_ = ""; /** * string host = 5; * * @return The host. */ @java.lang.Override public java.lang.String getHost() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** * string host = 5; * * @return The bytes for host. */ @java.lang.Override public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TAGS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string tags = 6; * * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** * repeated string tags = 6; * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** * repeated string tags = 6; * * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** * repeated string tags = 6; * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int ALERT_TYPE_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object alertType_ = ""; /** * string alert_type = 7; * * @return The alertType. */ @java.lang.Override public java.lang.String getAlertType() { java.lang.Object ref = alertType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alertType_ = s; return s; } } /** * string alert_type = 7; * * @return The bytes for alertType. */ @java.lang.Override public com.google.protobuf.ByteString getAlertTypeBytes() { java.lang.Object ref = alertType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); alertType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AGGREGATION_KEY_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object aggregationKey_ = ""; /** * string aggregation_key = 8; * * @return The aggregationKey. */ @java.lang.Override public java.lang.String getAggregationKey() { java.lang.Object ref = aggregationKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); aggregationKey_ = s; return s; } } /** * string aggregation_key = 8; * * @return The bytes for aggregationKey. */ @java.lang.Override public com.google.protobuf.ByteString getAggregationKeyBytes() { java.lang.Object ref = aggregationKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); aggregationKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SOURCE_TYPE_NAME_FIELD_NUMBER = 9; @SuppressWarnings("serial") private volatile java.lang.Object sourceTypeName_ = ""; /** * string source_type_name = 9; * * @return The sourceTypeName. */ @java.lang.Override public java.lang.String getSourceTypeName() { java.lang.Object ref = sourceTypeName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceTypeName_ = s; return s; } } /** * string source_type_name = 9; * * @return The bytes for sourceTypeName. */ @java.lang.Override public com.google.protobuf.ByteString getSourceTypeNameBytes() { java.lang.Object ref = sourceTypeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceTypeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, title_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, text_); } if (ts_ != 0L) { output.writeInt64(3, ts_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priority_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, priority_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, host_); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tags_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alertType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, alertType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(aggregationKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, aggregationKey_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceTypeName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, sourceTypeName_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, title_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_); } if (ts_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, ts_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priority_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, priority_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, host_); } { int dataSize = 0; for (int i = 0; i < tags_.size(); i++) { dataSize += computeStringSizeNoTag(tags_.getRaw(i)); } size += dataSize; size += 1 * getTagsList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alertType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, alertType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(aggregationKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, aggregationKey_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceTypeName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, sourceTypeName_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof datadog.agentpayload.AgentPayload.EventsPayload.Event)) { return super.equals(obj); } datadog.agentpayload.AgentPayload.EventsPayload.Event other = (datadog.agentpayload.AgentPayload.EventsPayload.Event) obj; if (!getTitle().equals(other.getTitle())) return false; if (!getText().equals(other.getText())) return false; if (getTs() != other.getTs()) return false; if (!getPriority().equals(other.getPriority())) return false; if (!getHost().equals(other.getHost())) return false; if (!getTagsList().equals(other.getTagsList())) return false; if (!getAlertType().equals(other.getAlertType())) return false; if (!getAggregationKey().equals(other.getAggregationKey())) return false; if (!getSourceTypeName().equals(other.getSourceTypeName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); hash = (37 * hash) + TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTs()); hash = (37 * hash) + PRIORITY_FIELD_NUMBER; hash = (53 * hash) + getPriority().hashCode(); hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } hash = (37 * hash) + ALERT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getAlertType().hashCode(); hash = (37 * hash) + AGGREGATION_KEY_FIELD_NUMBER; hash = (53 * hash) + getAggregationKey().hashCode(); hash = (37 * hash) + SOURCE_TYPE_NAME_FIELD_NUMBER; hash = (53 * hash) + getSourceTypeName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static datadog.agentpayload.AgentPayload.EventsPayload.Event parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.EventsPayload.Event parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.EventsPayload.Event parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.EventsPayload.Event parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.EventsPayload.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.EventsPayload.Event parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.EventsPayload.Event parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.EventsPayload.Event 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 datadog.agentpayload.AgentPayload.EventsPayload.Event parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.EventsPayload.Event 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 datadog.agentpayload.AgentPayload.EventsPayload.Event parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.EventsPayload.Event 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( datadog.agentpayload.AgentPayload.EventsPayload.Event 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 datadog.agentpayload.EventsPayload.Event} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:datadog.agentpayload.EventsPayload.Event) datadog.agentpayload.AgentPayload.EventsPayload.EventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_EventsPayload_Event_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_EventsPayload_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.EventsPayload.Event.class, datadog.agentpayload.AgentPayload.EventsPayload.Event.Builder.class); } // Construct using datadog.agentpayload.AgentPayload.EventsPayload.Event.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; title_ = ""; text_ = ""; ts_ = 0L; priority_ = ""; host_ = ""; tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); alertType_ = ""; aggregationKey_ = ""; sourceTypeName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_EventsPayload_Event_descriptor; } @java.lang.Override public datadog.agentpayload.AgentPayload.EventsPayload.Event getDefaultInstanceForType() { return datadog.agentpayload.AgentPayload.EventsPayload.Event.getDefaultInstance(); } @java.lang.Override public datadog.agentpayload.AgentPayload.EventsPayload.Event build() { datadog.agentpayload.AgentPayload.EventsPayload.Event result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public datadog.agentpayload.AgentPayload.EventsPayload.Event buildPartial() { datadog.agentpayload.AgentPayload.EventsPayload.Event result = new datadog.agentpayload.AgentPayload.EventsPayload.Event(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(datadog.agentpayload.AgentPayload.EventsPayload.Event result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.title_ = title_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.text_ = text_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.ts_ = ts_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.priority_ = priority_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.host_ = host_; } if (((from_bitField0_ & 0x00000020) != 0)) { tags_.makeImmutable(); result.tags_ = tags_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.alertType_ = alertType_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.aggregationKey_ = aggregationKey_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.sourceTypeName_ = sourceTypeName_; } } @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 datadog.agentpayload.AgentPayload.EventsPayload.Event) { return mergeFrom((datadog.agentpayload.AgentPayload.EventsPayload.Event) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(datadog.agentpayload.AgentPayload.EventsPayload.Event other) { if (other == datadog.agentpayload.AgentPayload.EventsPayload.Event.getDefaultInstance()) return this; if (!other.getTitle().isEmpty()) { title_ = other.title_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getText().isEmpty()) { text_ = other.text_; bitField0_ |= 0x00000002; onChanged(); } if (other.getTs() != 0L) { setTs(other.getTs()); } if (!other.getPriority().isEmpty()) { priority_ = other.priority_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getHost().isEmpty()) { host_ = other.host_; bitField0_ |= 0x00000010; onChanged(); } if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ |= 0x00000020; } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } if (!other.getAlertType().isEmpty()) { alertType_ = other.alertType_; bitField0_ |= 0x00000040; onChanged(); } if (!other.getAggregationKey().isEmpty()) { aggregationKey_ = other.aggregationKey_; bitField0_ |= 0x00000080; onChanged(); } if (!other.getSourceTypeName().isEmpty()) { sourceTypeName_ = other.sourceTypeName_; bitField0_ |= 0x00000100; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { title_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { text_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { ts_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { priority_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { host_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { java.lang.String s = input.readStringRequireUtf8(); ensureTagsIsMutable(); tags_.add(s); break; } // case 50 case 58: { alertType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { aggregationKey_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 74: { sourceTypeName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000100; break; } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object title_ = ""; /** * string title = 1; * * @return The title. */ public java.lang.String getTitle() { java.lang.Object ref = title_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); title_ = s; return s; } else { return (java.lang.String) ref; } } /** * string title = 1; * * @return The bytes for title. */ public com.google.protobuf.ByteString getTitleBytes() { java.lang.Object ref = title_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string title = 1; * * @param value The title to set. * @return This builder for chaining. */ public Builder setTitle(java.lang.String value) { if (value == null) { throw new NullPointerException(); } title_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string title = 1; * * @return This builder for chaining. */ public Builder clearTitle() { title_ = getDefaultInstance().getTitle(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string title = 1; * * @param value The bytes for title to set. * @return This builder for chaining. */ public Builder setTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); title_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object text_ = ""; /** * string text = 2; * * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); text_ = s; return s; } else { return (java.lang.String) ref; } } /** * string text = 2; * * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string text = 2; * * @param value The text to set. * @return This builder for chaining. */ public Builder setText(java.lang.String value) { if (value == null) { throw new NullPointerException(); } text_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string text = 2; * * @return This builder for chaining. */ public Builder clearText() { text_ = getDefaultInstance().getText(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string text = 2; * * @param value The bytes for text to set. * @return This builder for chaining. */ public Builder setTextBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); text_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private long ts_; /** * int64 ts = 3; * * @return The ts. */ @java.lang.Override public long getTs() { return ts_; } /** * int64 ts = 3; * * @param value The ts to set. * @return This builder for chaining. */ public Builder setTs(long value) { ts_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 ts = 3; * * @return This builder for chaining. */ public Builder clearTs() { bitField0_ = (bitField0_ & ~0x00000004); ts_ = 0L; onChanged(); return this; } private java.lang.Object priority_ = ""; /** * string priority = 4; * * @return The priority. */ public java.lang.String getPriority() { java.lang.Object ref = priority_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); priority_ = s; return s; } else { return (java.lang.String) ref; } } /** * string priority = 4; * * @return The bytes for priority. */ public com.google.protobuf.ByteString getPriorityBytes() { java.lang.Object ref = priority_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); priority_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string priority = 4; * * @param value The priority to set. * @return This builder for chaining. */ public Builder setPriority(java.lang.String value) { if (value == null) { throw new NullPointerException(); } priority_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string priority = 4; * * @return This builder for chaining. */ public Builder clearPriority() { priority_ = getDefaultInstance().getPriority(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * string priority = 4; * * @param value The bytes for priority to set. * @return This builder for chaining. */ public Builder setPriorityBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); priority_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object host_ = ""; /** * string host = 5; * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } else { return (java.lang.String) ref; } } /** * string host = 5; * * @return The bytes for host. */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string host = 5; * * @param value The host to set. * @return This builder for chaining. */ public Builder setHost(java.lang.String value) { if (value == null) { throw new NullPointerException(); } host_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * string host = 5; * * @return This builder for chaining. */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * string host = 5; * * @param value The bytes for host to set. * @return This builder for chaining. */ public Builder setHostBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); host_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTagsIsMutable() { if (!tags_.isModifiable()) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); } bitField0_ |= 0x00000020; } /** * repeated string tags = 6; * * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { tags_.makeImmutable(); return tags_; } /** * repeated string tags = 6; * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** * repeated string tags = 6; * * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** * repeated string tags = 6; * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** * repeated string tags = 6; * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ public Builder setTags(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated string tags = 6; * * @param value The tags to add. * @return This builder for chaining. */ public Builder addTags(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated string tags = 6; * * @param values The tags to add. * @return This builder for chaining. */ public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); bitField0_ |= 0x00000020; onChanged(); return this; } /** * repeated string tags = 6; * * @return This builder for chaining. */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); ; onChanged(); return this; } /** * repeated string tags = 6; * * @param value The bytes of the tags to add. * @return This builder for chaining. */ public Builder addTagsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object alertType_ = ""; /** * string alert_type = 7; * * @return The alertType. */ public java.lang.String getAlertType() { java.lang.Object ref = alertType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); alertType_ = s; return s; } else { return (java.lang.String) ref; } } /** * string alert_type = 7; * * @return The bytes for alertType. */ public com.google.protobuf.ByteString getAlertTypeBytes() { java.lang.Object ref = alertType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); alertType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string alert_type = 7; * * @param value The alertType to set. * @return This builder for chaining. */ public Builder setAlertType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } alertType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * string alert_type = 7; * * @return This builder for chaining. */ public Builder clearAlertType() { alertType_ = getDefaultInstance().getAlertType(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * string alert_type = 7; * * @param value The bytes for alertType to set. * @return This builder for chaining. */ public Builder setAlertTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); alertType_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object aggregationKey_ = ""; /** * string aggregation_key = 8; * * @return The aggregationKey. */ public java.lang.String getAggregationKey() { java.lang.Object ref = aggregationKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); aggregationKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * string aggregation_key = 8; * * @return The bytes for aggregationKey. */ public com.google.protobuf.ByteString getAggregationKeyBytes() { java.lang.Object ref = aggregationKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); aggregationKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string aggregation_key = 8; * * @param value The aggregationKey to set. * @return This builder for chaining. */ public Builder setAggregationKey(java.lang.String value) { if (value == null) { throw new NullPointerException(); } aggregationKey_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * string aggregation_key = 8; * * @return This builder for chaining. */ public Builder clearAggregationKey() { aggregationKey_ = getDefaultInstance().getAggregationKey(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * string aggregation_key = 8; * * @param value The bytes for aggregationKey to set. * @return This builder for chaining. */ public Builder setAggregationKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); aggregationKey_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private java.lang.Object sourceTypeName_ = ""; /** * string source_type_name = 9; * * @return The sourceTypeName. */ public java.lang.String getSourceTypeName() { java.lang.Object ref = sourceTypeName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceTypeName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string source_type_name = 9; * * @return The bytes for sourceTypeName. */ public com.google.protobuf.ByteString getSourceTypeNameBytes() { java.lang.Object ref = sourceTypeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceTypeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string source_type_name = 9; * * @param value The sourceTypeName to set. * @return This builder for chaining. */ public Builder setSourceTypeName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } sourceTypeName_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** * string source_type_name = 9; * * @return This builder for chaining. */ public Builder clearSourceTypeName() { sourceTypeName_ = getDefaultInstance().getSourceTypeName(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } /** * string source_type_name = 9; * * @param value The bytes for sourceTypeName to set. * @return This builder for chaining. */ public Builder setSourceTypeNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceTypeName_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:datadog.agentpayload.EventsPayload.Event) } // @@protoc_insertion_point(class_scope:datadog.agentpayload.EventsPayload.Event) private static final datadog.agentpayload.AgentPayload.EventsPayload.Event DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new datadog.agentpayload.AgentPayload.EventsPayload.Event(); } public static datadog.agentpayload.AgentPayload.EventsPayload.Event getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Event parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public datadog.agentpayload.AgentPayload.EventsPayload.Event getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int EVENTS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List events_; /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ @java.lang.Override public java.util.List getEventsList() { return events_; } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ @java.lang.Override public java.util.List getEventsOrBuilderList() { return events_; } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ @java.lang.Override public int getEventsCount() { return events_.size(); } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ @java.lang.Override public datadog.agentpayload.AgentPayload.EventsPayload.Event getEvents(int index) { return events_.get(index); } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ @java.lang.Override public datadog.agentpayload.AgentPayload.EventsPayload.EventOrBuilder getEventsOrBuilder( int index) { return events_.get(index); } public static final int METADATA_FIELD_NUMBER = 2; private datadog.agentpayload.AgentPayload.CommonMetadata metadata_; /** * .datadog.agentpayload.CommonMetadata metadata = 2; * * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { return ((bitField0_ & 0x00000001) != 0); } /** * .datadog.agentpayload.CommonMetadata metadata = 2; * * @return The metadata. */ @java.lang.Override public datadog.agentpayload.AgentPayload.CommonMetadata getMetadata() { return metadata_ == null ? datadog.agentpayload.AgentPayload.CommonMetadata.getDefaultInstance() : metadata_; } /** .datadog.agentpayload.CommonMetadata metadata = 2; */ @java.lang.Override public datadog.agentpayload.AgentPayload.CommonMetadataOrBuilder getMetadataOrBuilder() { return metadata_ == null ? datadog.agentpayload.AgentPayload.CommonMetadata.getDefaultInstance() : metadata_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < events_.size(); i++) { output.writeMessage(1, events_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getMetadata()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < events_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, events_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof datadog.agentpayload.AgentPayload.EventsPayload)) { return super.equals(obj); } datadog.agentpayload.AgentPayload.EventsPayload other = (datadog.agentpayload.AgentPayload.EventsPayload) obj; if (!getEventsList().equals(other.getEventsList())) return false; if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { if (!getMetadata().equals(other.getMetadata())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getEventsCount() > 0) { hash = (37 * hash) + EVENTS_FIELD_NUMBER; hash = (53 * hash) + getEventsList().hashCode(); } if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static datadog.agentpayload.AgentPayload.EventsPayload parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.EventsPayload parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.EventsPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.EventsPayload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.EventsPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.EventsPayload parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.EventsPayload parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.EventsPayload 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 datadog.agentpayload.AgentPayload.EventsPayload parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.EventsPayload 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 datadog.agentpayload.AgentPayload.EventsPayload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.EventsPayload 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(datadog.agentpayload.AgentPayload.EventsPayload 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 datadog.agentpayload.EventsPayload} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:datadog.agentpayload.EventsPayload) datadog.agentpayload.AgentPayload.EventsPayloadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_EventsPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_EventsPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.EventsPayload.class, datadog.agentpayload.AgentPayload.EventsPayload.Builder.class); } // Construct using datadog.agentpayload.AgentPayload.EventsPayload.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getEventsFieldBuilder(); getMetadataFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); } else { events_ = null; eventsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_EventsPayload_descriptor; } @java.lang.Override public datadog.agentpayload.AgentPayload.EventsPayload getDefaultInstanceForType() { return datadog.agentpayload.AgentPayload.EventsPayload.getDefaultInstance(); } @java.lang.Override public datadog.agentpayload.AgentPayload.EventsPayload build() { datadog.agentpayload.AgentPayload.EventsPayload result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public datadog.agentpayload.AgentPayload.EventsPayload buildPartial() { datadog.agentpayload.AgentPayload.EventsPayload result = new datadog.agentpayload.AgentPayload.EventsPayload(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( datadog.agentpayload.AgentPayload.EventsPayload result) { if (eventsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); bitField0_ = (bitField0_ & ~0x00000001); } result.events_ = events_; } else { result.events_ = eventsBuilder_.build(); } } private void buildPartial0(datadog.agentpayload.AgentPayload.EventsPayload result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof datadog.agentpayload.AgentPayload.EventsPayload) { return mergeFrom((datadog.agentpayload.AgentPayload.EventsPayload) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(datadog.agentpayload.AgentPayload.EventsPayload other) { if (other == datadog.agentpayload.AgentPayload.EventsPayload.getDefaultInstance()) return this; if (eventsBuilder_ == null) { if (!other.events_.isEmpty()) { if (events_.isEmpty()) { events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEventsIsMutable(); events_.addAll(other.events_); } onChanged(); } } else { if (!other.events_.isEmpty()) { if (eventsBuilder_.isEmpty()) { eventsBuilder_.dispose(); eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); eventsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventsFieldBuilder() : null; } else { eventsBuilder_.addAllMessages(other.events_); } } } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { datadog.agentpayload.AgentPayload.EventsPayload.Event m = input.readMessage( datadog.agentpayload.AgentPayload.EventsPayload.Event.parser(), extensionRegistry); if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(m); } else { eventsBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List events_ = java.util.Collections.emptyList(); private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { events_ = new java.util.ArrayList( events_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.EventsPayload.Event, datadog.agentpayload.AgentPayload.EventsPayload.Event.Builder, datadog.agentpayload.AgentPayload.EventsPayload.EventOrBuilder> eventsBuilder_; /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public java.util.List getEventsList() { if (eventsBuilder_ == null) { return java.util.Collections.unmodifiableList(events_); } else { return eventsBuilder_.getMessageList(); } } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public int getEventsCount() { if (eventsBuilder_ == null) { return events_.size(); } else { return eventsBuilder_.getCount(); } } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public datadog.agentpayload.AgentPayload.EventsPayload.Event getEvents(int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessage(index); } } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public Builder setEvents( int index, datadog.agentpayload.AgentPayload.EventsPayload.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.set(index, value); onChanged(); } else { eventsBuilder_.setMessage(index, value); } return this; } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public Builder setEvents( int index, datadog.agentpayload.AgentPayload.EventsPayload.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.set(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public Builder addEvents(datadog.agentpayload.AgentPayload.EventsPayload.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(value); onChanged(); } else { eventsBuilder_.addMessage(value); } return this; } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public Builder addEvents( int index, datadog.agentpayload.AgentPayload.EventsPayload.Event value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventsIsMutable(); events_.add(index, value); onChanged(); } else { eventsBuilder_.addMessage(index, value); } return this; } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public Builder addEvents( datadog.agentpayload.AgentPayload.EventsPayload.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(builderForValue.build()); } return this; } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public Builder addEvents( int index, datadog.agentpayload.AgentPayload.EventsPayload.Event.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(index, builderForValue.build()); onChanged(); } else { eventsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public Builder addAllEvents( java.lang.Iterable values) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); onChanged(); } else { eventsBuilder_.addAllMessages(values); } return this; } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public Builder clearEvents() { if (eventsBuilder_ == null) { events_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { eventsBuilder_.clear(); } return this; } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public Builder removeEvents(int index) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.remove(index); onChanged(); } else { eventsBuilder_.remove(index); } return this; } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public datadog.agentpayload.AgentPayload.EventsPayload.Event.Builder getEventsBuilder( int index) { return getEventsFieldBuilder().getBuilder(index); } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public datadog.agentpayload.AgentPayload.EventsPayload.EventOrBuilder getEventsOrBuilder( int index) { if (eventsBuilder_ == null) { return events_.get(index); } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public java.util.List< ? extends datadog.agentpayload.AgentPayload.EventsPayload.EventOrBuilder> getEventsOrBuilderList() { if (eventsBuilder_ != null) { return eventsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(events_); } } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public datadog.agentpayload.AgentPayload.EventsPayload.Event.Builder addEventsBuilder() { return getEventsFieldBuilder() .addBuilder(datadog.agentpayload.AgentPayload.EventsPayload.Event.getDefaultInstance()); } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public datadog.agentpayload.AgentPayload.EventsPayload.Event.Builder addEventsBuilder( int index) { return getEventsFieldBuilder() .addBuilder( index, datadog.agentpayload.AgentPayload.EventsPayload.Event.getDefaultInstance()); } /** repeated .datadog.agentpayload.EventsPayload.Event events = 1; */ public java.util.List getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.EventsPayload.Event, datadog.agentpayload.AgentPayload.EventsPayload.Event.Builder, datadog.agentpayload.AgentPayload.EventsPayload.EventOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.EventsPayload.Event, datadog.agentpayload.AgentPayload.EventsPayload.Event.Builder, datadog.agentpayload.AgentPayload.EventsPayload.EventOrBuilder>( events_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); events_ = null; } return eventsBuilder_; } private datadog.agentpayload.AgentPayload.CommonMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< datadog.agentpayload.AgentPayload.CommonMetadata, datadog.agentpayload.AgentPayload.CommonMetadata.Builder, datadog.agentpayload.AgentPayload.CommonMetadataOrBuilder> metadataBuilder_; /** * .datadog.agentpayload.CommonMetadata metadata = 2; * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** * .datadog.agentpayload.CommonMetadata metadata = 2; * * @return The metadata. */ public datadog.agentpayload.AgentPayload.CommonMetadata getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? datadog.agentpayload.AgentPayload.CommonMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** .datadog.agentpayload.CommonMetadata metadata = 2; */ public Builder setMetadata(datadog.agentpayload.AgentPayload.CommonMetadata value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** .datadog.agentpayload.CommonMetadata metadata = 2; */ public Builder setMetadata( datadog.agentpayload.AgentPayload.CommonMetadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** .datadog.agentpayload.CommonMetadata metadata = 2; */ public Builder mergeMetadata(datadog.agentpayload.AgentPayload.CommonMetadata value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && metadata_ != null && metadata_ != datadog.agentpayload.AgentPayload.CommonMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } } else { metadataBuilder_.mergeFrom(value); } if (metadata_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** .datadog.agentpayload.CommonMetadata metadata = 2; */ public Builder clearMetadata() { bitField0_ = (bitField0_ & ~0x00000002); metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); metadataBuilder_ = null; } onChanged(); return this; } /** .datadog.agentpayload.CommonMetadata metadata = 2; */ public datadog.agentpayload.AgentPayload.CommonMetadata.Builder getMetadataBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** .datadog.agentpayload.CommonMetadata metadata = 2; */ public datadog.agentpayload.AgentPayload.CommonMetadataOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? datadog.agentpayload.AgentPayload.CommonMetadata.getDefaultInstance() : metadata_; } } /** .datadog.agentpayload.CommonMetadata metadata = 2; */ private com.google.protobuf.SingleFieldBuilderV3< datadog.agentpayload.AgentPayload.CommonMetadata, datadog.agentpayload.AgentPayload.CommonMetadata.Builder, datadog.agentpayload.AgentPayload.CommonMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< datadog.agentpayload.AgentPayload.CommonMetadata, datadog.agentpayload.AgentPayload.CommonMetadata.Builder, datadog.agentpayload.AgentPayload.CommonMetadataOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } @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:datadog.agentpayload.EventsPayload) } // @@protoc_insertion_point(class_scope:datadog.agentpayload.EventsPayload) private static final datadog.agentpayload.AgentPayload.EventsPayload DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new datadog.agentpayload.AgentPayload.EventsPayload(); } public static datadog.agentpayload.AgentPayload.EventsPayload getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EventsPayload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public datadog.agentpayload.AgentPayload.EventsPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SketchPayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:datadog.agentpayload.SketchPayload) com.google.protobuf.MessageOrBuilder { /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ java.util.List getSketchesList(); /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ datadog.agentpayload.AgentPayload.SketchPayload.Sketch getSketches(int index); /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ int getSketchesCount(); /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ java.util.List getSketchesOrBuilderList(); /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ datadog.agentpayload.AgentPayload.SketchPayload.SketchOrBuilder getSketchesOrBuilder(int index); /** * .datadog.agentpayload.CommonMetadata metadata = 2 [(.gogoproto.nullable) = false]; * * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** * .datadog.agentpayload.CommonMetadata metadata = 2 [(.gogoproto.nullable) = false]; * * * @return The metadata. */ datadog.agentpayload.AgentPayload.CommonMetadata getMetadata(); /** * .datadog.agentpayload.CommonMetadata metadata = 2 [(.gogoproto.nullable) = false]; * */ datadog.agentpayload.AgentPayload.CommonMetadataOrBuilder getMetadataOrBuilder(); } /** Protobuf type {@code datadog.agentpayload.SketchPayload} */ public static final class SketchPayload extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:datadog.agentpayload.SketchPayload) SketchPayloadOrBuilder { private static final long serialVersionUID = 0L; // Use SketchPayload.newBuilder() to construct. private SketchPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SketchPayload() { sketches_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SketchPayload(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.SketchPayload.class, datadog.agentpayload.AgentPayload.SketchPayload.Builder.class); } public interface SketchOrBuilder extends // @@protoc_insertion_point(interface_extends:datadog.agentpayload.SketchPayload.Sketch) com.google.protobuf.MessageOrBuilder { /** * string metric = 1; * * @return The metric. */ java.lang.String getMetric(); /** * string metric = 1; * * @return The bytes for metric. */ com.google.protobuf.ByteString getMetricBytes(); /** * string host = 2; * * @return The host. */ java.lang.String getHost(); /** * string host = 2; * * @return The bytes for host. */ com.google.protobuf.ByteString getHostBytes(); /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ java.util.List getDistributionsList(); /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution getDistributions( int index); /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ int getDistributionsCount(); /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ java.util.List< ? extends datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DistributionOrBuilder> getDistributionsOrBuilderList(); /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DistributionOrBuilder getDistributionsOrBuilder(int index); /** * repeated string tags = 4; * * @return A list containing the tags. */ java.util.List getTagsList(); /** * repeated string tags = 4; * * @return The count of tags. */ int getTagsCount(); /** * repeated string tags = 4; * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** * repeated string tags = 4; * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ com.google.protobuf.ByteString getTagsBytes(int index); /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ java.util.List getDogsketchesList(); /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch getDogsketches(int index); /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ int getDogsketchesCount(); /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ java.util.List< ? extends datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DogsketchOrBuilder> getDogsketchesOrBuilderList(); /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DogsketchOrBuilder getDogsketchesOrBuilder(int index); } /** Protobuf type {@code datadog.agentpayload.SketchPayload.Sketch} */ public static final class Sketch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:datadog.agentpayload.SketchPayload.Sketch) SketchOrBuilder { private static final long serialVersionUID = 0L; // Use Sketch.newBuilder() to construct. private Sketch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Sketch() { metric_ = ""; host_ = ""; distributions_ = java.util.Collections.emptyList(); tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); dogsketches_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Sketch(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_Sketch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_Sketch_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.class, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Builder.class); } public interface DistributionOrBuilder extends // @@protoc_insertion_point(interface_extends:datadog.agentpayload.SketchPayload.Sketch.Distribution) com.google.protobuf.MessageOrBuilder { /** * int64 ts = 1; * * @return The ts. */ long getTs(); /** * int64 cnt = 2; * * @return The cnt. */ long getCnt(); /** * double min = 3; * * @return The min. */ double getMin(); /** * double max = 4; * * @return The max. */ double getMax(); /** * double avg = 5; * * @return The avg. */ double getAvg(); /** * double sum = 6; * * @return The sum. */ double getSum(); /** * repeated double v = 7; * * @return A list containing the v. */ java.util.List getVList(); /** * repeated double v = 7; * * @return The count of v. */ int getVCount(); /** * repeated double v = 7; * * @param index The index of the element to return. * @return The v at the given index. */ double getV(int index); /** * repeated uint32 g = 8; * * @return A list containing the g. */ java.util.List getGList(); /** * repeated uint32 g = 8; * * @return The count of g. */ int getGCount(); /** * repeated uint32 g = 8; * * @param index The index of the element to return. * @return The g at the given index. */ int getG(int index); /** * repeated uint32 delta = 9; * * @return A list containing the delta. */ java.util.List getDeltaList(); /** * repeated uint32 delta = 9; * * @return The count of delta. */ int getDeltaCount(); /** * repeated uint32 delta = 9; * * @param index The index of the element to return. * @return The delta at the given index. */ int getDelta(int index); /** * repeated double buf = 10; * * @return A list containing the buf. */ java.util.List getBufList(); /** * repeated double buf = 10; * * @return The count of buf. */ int getBufCount(); /** * repeated double buf = 10; * * @param index The index of the element to return. * @return The buf at the given index. */ double getBuf(int index); } /** Protobuf type {@code datadog.agentpayload.SketchPayload.Sketch.Distribution} */ public static final class Distribution extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:datadog.agentpayload.SketchPayload.Sketch.Distribution) DistributionOrBuilder { private static final long serialVersionUID = 0L; // Use Distribution.newBuilder() to construct. private Distribution(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Distribution() { v_ = emptyDoubleList(); g_ = emptyIntList(); delta_ = emptyIntList(); buf_ = emptyDoubleList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Distribution(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_Sketch_Distribution_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_Sketch_Distribution_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution.class, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution.Builder .class); } public static final int TS_FIELD_NUMBER = 1; private long ts_ = 0L; /** * int64 ts = 1; * * @return The ts. */ @java.lang.Override public long getTs() { return ts_; } public static final int CNT_FIELD_NUMBER = 2; private long cnt_ = 0L; /** * int64 cnt = 2; * * @return The cnt. */ @java.lang.Override public long getCnt() { return cnt_; } public static final int MIN_FIELD_NUMBER = 3; private double min_ = 0D; /** * double min = 3; * * @return The min. */ @java.lang.Override public double getMin() { return min_; } public static final int MAX_FIELD_NUMBER = 4; private double max_ = 0D; /** * double max = 4; * * @return The max. */ @java.lang.Override public double getMax() { return max_; } public static final int AVG_FIELD_NUMBER = 5; private double avg_ = 0D; /** * double avg = 5; * * @return The avg. */ @java.lang.Override public double getAvg() { return avg_; } public static final int SUM_FIELD_NUMBER = 6; private double sum_ = 0D; /** * double sum = 6; * * @return The sum. */ @java.lang.Override public double getSum() { return sum_; } public static final int V_FIELD_NUMBER = 7; @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList v_ = emptyDoubleList(); /** * repeated double v = 7; * * @return A list containing the v. */ @java.lang.Override public java.util.List getVList() { return v_; } /** * repeated double v = 7; * * @return The count of v. */ public int getVCount() { return v_.size(); } /** * repeated double v = 7; * * @param index The index of the element to return. * @return The v at the given index. */ public double getV(int index) { return v_.getDouble(index); } private int vMemoizedSerializedSize = -1; public static final int G_FIELD_NUMBER = 8; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList g_ = emptyIntList(); /** * repeated uint32 g = 8; * * @return A list containing the g. */ @java.lang.Override public java.util.List getGList() { return g_; } /** * repeated uint32 g = 8; * * @return The count of g. */ public int getGCount() { return g_.size(); } /** * repeated uint32 g = 8; * * @param index The index of the element to return. * @return The g at the given index. */ public int getG(int index) { return g_.getInt(index); } private int gMemoizedSerializedSize = -1; public static final int DELTA_FIELD_NUMBER = 9; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList delta_ = emptyIntList(); /** * repeated uint32 delta = 9; * * @return A list containing the delta. */ @java.lang.Override public java.util.List getDeltaList() { return delta_; } /** * repeated uint32 delta = 9; * * @return The count of delta. */ public int getDeltaCount() { return delta_.size(); } /** * repeated uint32 delta = 9; * * @param index The index of the element to return. * @return The delta at the given index. */ public int getDelta(int index) { return delta_.getInt(index); } private int deltaMemoizedSerializedSize = -1; public static final int BUF_FIELD_NUMBER = 10; @SuppressWarnings("serial") private com.google.protobuf.Internal.DoubleList buf_ = emptyDoubleList(); /** * repeated double buf = 10; * * @return A list containing the buf. */ @java.lang.Override public java.util.List getBufList() { return buf_; } /** * repeated double buf = 10; * * @return The count of buf. */ public int getBufCount() { return buf_.size(); } /** * repeated double buf = 10; * * @param index The index of the element to return. * @return The buf at the given index. */ public double getBuf(int index) { return buf_.getDouble(index); } private int bufMemoizedSerializedSize = -1; 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 { getSerializedSize(); if (ts_ != 0L) { output.writeInt64(1, ts_); } if (cnt_ != 0L) { output.writeInt64(2, cnt_); } if (java.lang.Double.doubleToRawLongBits(min_) != 0) { output.writeDouble(3, min_); } if (java.lang.Double.doubleToRawLongBits(max_) != 0) { output.writeDouble(4, max_); } if (java.lang.Double.doubleToRawLongBits(avg_) != 0) { output.writeDouble(5, avg_); } if (java.lang.Double.doubleToRawLongBits(sum_) != 0) { output.writeDouble(6, sum_); } if (getVList().size() > 0) { output.writeUInt32NoTag(58); output.writeUInt32NoTag(vMemoizedSerializedSize); } for (int i = 0; i < v_.size(); i++) { output.writeDoubleNoTag(v_.getDouble(i)); } if (getGList().size() > 0) { output.writeUInt32NoTag(66); output.writeUInt32NoTag(gMemoizedSerializedSize); } for (int i = 0; i < g_.size(); i++) { output.writeUInt32NoTag(g_.getInt(i)); } if (getDeltaList().size() > 0) { output.writeUInt32NoTag(74); output.writeUInt32NoTag(deltaMemoizedSerializedSize); } for (int i = 0; i < delta_.size(); i++) { output.writeUInt32NoTag(delta_.getInt(i)); } if (getBufList().size() > 0) { output.writeUInt32NoTag(82); output.writeUInt32NoTag(bufMemoizedSerializedSize); } for (int i = 0; i < buf_.size(); i++) { output.writeDoubleNoTag(buf_.getDouble(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ts_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, ts_); } if (cnt_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, cnt_); } if (java.lang.Double.doubleToRawLongBits(min_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, min_); } if (java.lang.Double.doubleToRawLongBits(max_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, max_); } if (java.lang.Double.doubleToRawLongBits(avg_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, avg_); } if (java.lang.Double.doubleToRawLongBits(sum_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, sum_); } { int dataSize = 0; dataSize = 8 * getVList().size(); size += dataSize; if (!getVList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } vMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < g_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(g_.getInt(i)); } size += dataSize; if (!getGList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } gMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < delta_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(delta_.getInt(i)); } size += dataSize; if (!getDeltaList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } deltaMemoizedSerializedSize = dataSize; } { int dataSize = 0; dataSize = 8 * getBufList().size(); size += dataSize; if (!getBufList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } bufMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution)) { return super.equals(obj); } datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution other = (datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution) obj; if (getTs() != other.getTs()) return false; if (getCnt() != other.getCnt()) return false; if (java.lang.Double.doubleToLongBits(getMin()) != java.lang.Double.doubleToLongBits(other.getMin())) return false; if (java.lang.Double.doubleToLongBits(getMax()) != java.lang.Double.doubleToLongBits(other.getMax())) return false; if (java.lang.Double.doubleToLongBits(getAvg()) != java.lang.Double.doubleToLongBits(other.getAvg())) return false; if (java.lang.Double.doubleToLongBits(getSum()) != java.lang.Double.doubleToLongBits(other.getSum())) return false; if (!getVList().equals(other.getVList())) return false; if (!getGList().equals(other.getGList())) return false; if (!getDeltaList().equals(other.getDeltaList())) return false; if (!getBufList().equals(other.getBufList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTs()); hash = (37 * hash) + CNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCnt()); hash = (37 * hash) + MIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMin())); hash = (37 * hash) + MAX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMax())); hash = (37 * hash) + AVG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getAvg())); hash = (37 * hash) + SUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSum())); if (getVCount() > 0) { hash = (37 * hash) + V_FIELD_NUMBER; hash = (53 * hash) + getVList().hashCode(); } if (getGCount() > 0) { hash = (37 * hash) + G_FIELD_NUMBER; hash = (53 * hash) + getGList().hashCode(); } if (getDeltaCount() > 0) { hash = (37 * hash) + DELTA_FIELD_NUMBER; hash = (53 * hash) + getDeltaList().hashCode(); } if (getBufCount() > 0) { hash = (37 * hash) + BUF_FIELD_NUMBER; hash = (53 * hash) + getBufList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution 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 datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution 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 datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution 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( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution 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 datadog.agentpayload.SketchPayload.Sketch.Distribution} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:datadog.agentpayload.SketchPayload.Sketch.Distribution) datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DistributionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_Sketch_Distribution_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_Sketch_Distribution_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution.class, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution.Builder .class); } // Construct using // datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ts_ = 0L; cnt_ = 0L; min_ = 0D; max_ = 0D; avg_ = 0D; sum_ = 0D; v_ = emptyDoubleList(); g_ = emptyIntList(); delta_ = emptyIntList(); buf_ = emptyDoubleList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_Sketch_Distribution_descriptor; } @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution getDefaultInstanceForType() { return datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution .getDefaultInstance(); } @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution build() { datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution buildPartial() { datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution result = new datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ts_ = ts_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.cnt_ = cnt_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.min_ = min_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.max_ = max_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.avg_ = avg_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.sum_ = sum_; } if (((from_bitField0_ & 0x00000040) != 0)) { v_.makeImmutable(); result.v_ = v_; } if (((from_bitField0_ & 0x00000080) != 0)) { g_.makeImmutable(); result.g_ = g_; } if (((from_bitField0_ & 0x00000100) != 0)) { delta_.makeImmutable(); result.delta_ = delta_; } if (((from_bitField0_ & 0x00000200) != 0)) { buf_.makeImmutable(); result.buf_ = buf_; } } @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 datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution) { return mergeFrom( (datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution other) { if (other == datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution .getDefaultInstance()) return this; if (other.getTs() != 0L) { setTs(other.getTs()); } if (other.getCnt() != 0L) { setCnt(other.getCnt()); } if (other.getMin() != 0D) { setMin(other.getMin()); } if (other.getMax() != 0D) { setMax(other.getMax()); } if (other.getAvg() != 0D) { setAvg(other.getAvg()); } if (other.getSum() != 0D) { setSum(other.getSum()); } if (!other.v_.isEmpty()) { if (v_.isEmpty()) { v_ = other.v_; v_.makeImmutable(); bitField0_ |= 0x00000040; } else { ensureVIsMutable(); v_.addAll(other.v_); } onChanged(); } if (!other.g_.isEmpty()) { if (g_.isEmpty()) { g_ = other.g_; g_.makeImmutable(); bitField0_ |= 0x00000080; } else { ensureGIsMutable(); g_.addAll(other.g_); } onChanged(); } if (!other.delta_.isEmpty()) { if (delta_.isEmpty()) { delta_ = other.delta_; delta_.makeImmutable(); bitField0_ |= 0x00000100; } else { ensureDeltaIsMutable(); delta_.addAll(other.delta_); } onChanged(); } if (!other.buf_.isEmpty()) { if (buf_.isEmpty()) { buf_ = other.buf_; buf_.makeImmutable(); bitField0_ |= 0x00000200; } else { ensureBufIsMutable(); buf_.addAll(other.buf_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { ts_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { cnt_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 25: { min_ = input.readDouble(); bitField0_ |= 0x00000004; break; } // case 25 case 33: { max_ = input.readDouble(); bitField0_ |= 0x00000008; break; } // case 33 case 41: { avg_ = input.readDouble(); bitField0_ |= 0x00000010; break; } // case 41 case 49: { sum_ = input.readDouble(); bitField0_ |= 0x00000020; break; } // case 49 case 57: { double v = input.readDouble(); ensureVIsMutable(); v_.addDouble(v); break; } // case 57 case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureVIsMutable(alloc / 8); while (input.getBytesUntilLimit() > 0) { v_.addDouble(input.readDouble()); } input.popLimit(limit); break; } // case 58 case 64: { int v = input.readUInt32(); ensureGIsMutable(); g_.addInt(v); break; } // case 64 case 66: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureGIsMutable(); while (input.getBytesUntilLimit() > 0) { g_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 66 case 72: { int v = input.readUInt32(); ensureDeltaIsMutable(); delta_.addInt(v); break; } // case 72 case 74: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureDeltaIsMutable(); while (input.getBytesUntilLimit() > 0) { delta_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 74 case 81: { double v = input.readDouble(); ensureBufIsMutable(); buf_.addDouble(v); break; } // case 81 case 82: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureBufIsMutable(alloc / 8); while (input.getBytesUntilLimit() > 0) { buf_.addDouble(input.readDouble()); } input.popLimit(limit); break; } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long ts_; /** * int64 ts = 1; * * @return The ts. */ @java.lang.Override public long getTs() { return ts_; } /** * int64 ts = 1; * * @param value The ts to set. * @return This builder for chaining. */ public Builder setTs(long value) { ts_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 ts = 1; * * @return This builder for chaining. */ public Builder clearTs() { bitField0_ = (bitField0_ & ~0x00000001); ts_ = 0L; onChanged(); return this; } private long cnt_; /** * int64 cnt = 2; * * @return The cnt. */ @java.lang.Override public long getCnt() { return cnt_; } /** * int64 cnt = 2; * * @param value The cnt to set. * @return This builder for chaining. */ public Builder setCnt(long value) { cnt_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 cnt = 2; * * @return This builder for chaining. */ public Builder clearCnt() { bitField0_ = (bitField0_ & ~0x00000002); cnt_ = 0L; onChanged(); return this; } private double min_; /** * double min = 3; * * @return The min. */ @java.lang.Override public double getMin() { return min_; } /** * double min = 3; * * @param value The min to set. * @return This builder for chaining. */ public Builder setMin(double value) { min_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * double min = 3; * * @return This builder for chaining. */ public Builder clearMin() { bitField0_ = (bitField0_ & ~0x00000004); min_ = 0D; onChanged(); return this; } private double max_; /** * double max = 4; * * @return The max. */ @java.lang.Override public double getMax() { return max_; } /** * double max = 4; * * @param value The max to set. * @return This builder for chaining. */ public Builder setMax(double value) { max_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * double max = 4; * * @return This builder for chaining. */ public Builder clearMax() { bitField0_ = (bitField0_ & ~0x00000008); max_ = 0D; onChanged(); return this; } private double avg_; /** * double avg = 5; * * @return The avg. */ @java.lang.Override public double getAvg() { return avg_; } /** * double avg = 5; * * @param value The avg to set. * @return This builder for chaining. */ public Builder setAvg(double value) { avg_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * double avg = 5; * * @return This builder for chaining. */ public Builder clearAvg() { bitField0_ = (bitField0_ & ~0x00000010); avg_ = 0D; onChanged(); return this; } private double sum_; /** * double sum = 6; * * @return The sum. */ @java.lang.Override public double getSum() { return sum_; } /** * double sum = 6; * * @param value The sum to set. * @return This builder for chaining. */ public Builder setSum(double value) { sum_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * double sum = 6; * * @return This builder for chaining. */ public Builder clearSum() { bitField0_ = (bitField0_ & ~0x00000020); sum_ = 0D; onChanged(); return this; } private com.google.protobuf.Internal.DoubleList v_ = emptyDoubleList(); private void ensureVIsMutable() { if (!v_.isModifiable()) { v_ = makeMutableCopy(v_); } bitField0_ |= 0x00000040; } private void ensureVIsMutable(int capacity) { if (!v_.isModifiable()) { v_ = makeMutableCopy(v_, capacity); } bitField0_ |= 0x00000040; } /** * repeated double v = 7; * * @return A list containing the v. */ public java.util.List getVList() { v_.makeImmutable(); return v_; } /** * repeated double v = 7; * * @return The count of v. */ public int getVCount() { return v_.size(); } /** * repeated double v = 7; * * @param index The index of the element to return. * @return The v at the given index. */ public double getV(int index) { return v_.getDouble(index); } /** * repeated double v = 7; * * @param index The index to set the value at. * @param value The v to set. * @return This builder for chaining. */ public Builder setV(int index, double value) { ensureVIsMutable(); v_.setDouble(index, value); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated double v = 7; * * @param value The v to add. * @return This builder for chaining. */ public Builder addV(double value) { ensureVIsMutable(); v_.addDouble(value); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated double v = 7; * * @param values The v to add. * @return This builder for chaining. */ public Builder addAllV(java.lang.Iterable values) { ensureVIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, v_); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated double v = 7; * * @return This builder for chaining. */ public Builder clearV() { v_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } private com.google.protobuf.Internal.IntList g_ = emptyIntList(); private void ensureGIsMutable() { if (!g_.isModifiable()) { g_ = makeMutableCopy(g_); } bitField0_ |= 0x00000080; } /** * repeated uint32 g = 8; * * @return A list containing the g. */ public java.util.List getGList() { g_.makeImmutable(); return g_; } /** * repeated uint32 g = 8; * * @return The count of g. */ public int getGCount() { return g_.size(); } /** * repeated uint32 g = 8; * * @param index The index of the element to return. * @return The g at the given index. */ public int getG(int index) { return g_.getInt(index); } /** * repeated uint32 g = 8; * * @param index The index to set the value at. * @param value The g to set. * @return This builder for chaining. */ public Builder setG(int index, int value) { ensureGIsMutable(); g_.setInt(index, value); bitField0_ |= 0x00000080; onChanged(); return this; } /** * repeated uint32 g = 8; * * @param value The g to add. * @return This builder for chaining. */ public Builder addG(int value) { ensureGIsMutable(); g_.addInt(value); bitField0_ |= 0x00000080; onChanged(); return this; } /** * repeated uint32 g = 8; * * @param values The g to add. * @return This builder for chaining. */ public Builder addAllG(java.lang.Iterable values) { ensureGIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, g_); bitField0_ |= 0x00000080; onChanged(); return this; } /** * repeated uint32 g = 8; * * @return This builder for chaining. */ public Builder clearG() { g_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } private com.google.protobuf.Internal.IntList delta_ = emptyIntList(); private void ensureDeltaIsMutable() { if (!delta_.isModifiable()) { delta_ = makeMutableCopy(delta_); } bitField0_ |= 0x00000100; } /** * repeated uint32 delta = 9; * * @return A list containing the delta. */ public java.util.List getDeltaList() { delta_.makeImmutable(); return delta_; } /** * repeated uint32 delta = 9; * * @return The count of delta. */ public int getDeltaCount() { return delta_.size(); } /** * repeated uint32 delta = 9; * * @param index The index of the element to return. * @return The delta at the given index. */ public int getDelta(int index) { return delta_.getInt(index); } /** * repeated uint32 delta = 9; * * @param index The index to set the value at. * @param value The delta to set. * @return This builder for chaining. */ public Builder setDelta(int index, int value) { ensureDeltaIsMutable(); delta_.setInt(index, value); bitField0_ |= 0x00000100; onChanged(); return this; } /** * repeated uint32 delta = 9; * * @param value The delta to add. * @return This builder for chaining. */ public Builder addDelta(int value) { ensureDeltaIsMutable(); delta_.addInt(value); bitField0_ |= 0x00000100; onChanged(); return this; } /** * repeated uint32 delta = 9; * * @param values The delta to add. * @return This builder for chaining. */ public Builder addAllDelta(java.lang.Iterable values) { ensureDeltaIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, delta_); bitField0_ |= 0x00000100; onChanged(); return this; } /** * repeated uint32 delta = 9; * * @return This builder for chaining. */ public Builder clearDelta() { delta_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } private com.google.protobuf.Internal.DoubleList buf_ = emptyDoubleList(); private void ensureBufIsMutable() { if (!buf_.isModifiable()) { buf_ = makeMutableCopy(buf_); } bitField0_ |= 0x00000200; } private void ensureBufIsMutable(int capacity) { if (!buf_.isModifiable()) { buf_ = makeMutableCopy(buf_, capacity); } bitField0_ |= 0x00000200; } /** * repeated double buf = 10; * * @return A list containing the buf. */ public java.util.List getBufList() { buf_.makeImmutable(); return buf_; } /** * repeated double buf = 10; * * @return The count of buf. */ public int getBufCount() { return buf_.size(); } /** * repeated double buf = 10; * * @param index The index of the element to return. * @return The buf at the given index. */ public double getBuf(int index) { return buf_.getDouble(index); } /** * repeated double buf = 10; * * @param index The index to set the value at. * @param value The buf to set. * @return This builder for chaining. */ public Builder setBuf(int index, double value) { ensureBufIsMutable(); buf_.setDouble(index, value); bitField0_ |= 0x00000200; onChanged(); return this; } /** * repeated double buf = 10; * * @param value The buf to add. * @return This builder for chaining. */ public Builder addBuf(double value) { ensureBufIsMutable(); buf_.addDouble(value); bitField0_ |= 0x00000200; onChanged(); return this; } /** * repeated double buf = 10; * * @param values The buf to add. * @return This builder for chaining. */ public Builder addAllBuf(java.lang.Iterable values) { ensureBufIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, buf_); bitField0_ |= 0x00000200; onChanged(); return this; } /** * repeated double buf = 10; * * @return This builder for chaining. */ public Builder clearBuf() { buf_ = emptyDoubleList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:datadog.agentpayload.SketchPayload.Sketch.Distribution) } // @@protoc_insertion_point(class_scope:datadog.agentpayload.SketchPayload.Sketch.Distribution) private static final datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution(); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Distribution parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DogsketchOrBuilder extends // @@protoc_insertion_point(interface_extends:datadog.agentpayload.SketchPayload.Sketch.Dogsketch) com.google.protobuf.MessageOrBuilder { /** * int64 ts = 1; * * @return The ts. */ long getTs(); /** * int64 cnt = 2; * * @return The cnt. */ long getCnt(); /** * double min = 3; * * @return The min. */ double getMin(); /** * double max = 4; * * @return The max. */ double getMax(); /** * double avg = 5; * * @return The avg. */ double getAvg(); /** * double sum = 6; * * @return The sum. */ double getSum(); /** * repeated sint32 k = 7; * * @return A list containing the k. */ java.util.List getKList(); /** * repeated sint32 k = 7; * * @return The count of k. */ int getKCount(); /** * repeated sint32 k = 7; * * @param index The index of the element to return. * @return The k at the given index. */ int getK(int index); /** * repeated uint32 n = 8; * * @return A list containing the n. */ java.util.List getNList(); /** * repeated uint32 n = 8; * * @return The count of n. */ int getNCount(); /** * repeated uint32 n = 8; * * @param index The index of the element to return. * @return The n at the given index. */ int getN(int index); } /** Protobuf type {@code datadog.agentpayload.SketchPayload.Sketch.Dogsketch} */ public static final class Dogsketch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:datadog.agentpayload.SketchPayload.Sketch.Dogsketch) DogsketchOrBuilder { private static final long serialVersionUID = 0L; // Use Dogsketch.newBuilder() to construct. private Dogsketch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Dogsketch() { k_ = emptyIntList(); n_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Dogsketch(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_Sketch_Dogsketch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_Sketch_Dogsketch_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch.class, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch.Builder.class); } public static final int TS_FIELD_NUMBER = 1; private long ts_ = 0L; /** * int64 ts = 1; * * @return The ts. */ @java.lang.Override public long getTs() { return ts_; } public static final int CNT_FIELD_NUMBER = 2; private long cnt_ = 0L; /** * int64 cnt = 2; * * @return The cnt. */ @java.lang.Override public long getCnt() { return cnt_; } public static final int MIN_FIELD_NUMBER = 3; private double min_ = 0D; /** * double min = 3; * * @return The min. */ @java.lang.Override public double getMin() { return min_; } public static final int MAX_FIELD_NUMBER = 4; private double max_ = 0D; /** * double max = 4; * * @return The max. */ @java.lang.Override public double getMax() { return max_; } public static final int AVG_FIELD_NUMBER = 5; private double avg_ = 0D; /** * double avg = 5; * * @return The avg. */ @java.lang.Override public double getAvg() { return avg_; } public static final int SUM_FIELD_NUMBER = 6; private double sum_ = 0D; /** * double sum = 6; * * @return The sum. */ @java.lang.Override public double getSum() { return sum_; } public static final int K_FIELD_NUMBER = 7; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList k_ = emptyIntList(); /** * repeated sint32 k = 7; * * @return A list containing the k. */ @java.lang.Override public java.util.List getKList() { return k_; } /** * repeated sint32 k = 7; * * @return The count of k. */ public int getKCount() { return k_.size(); } /** * repeated sint32 k = 7; * * @param index The index of the element to return. * @return The k at the given index. */ public int getK(int index) { return k_.getInt(index); } private int kMemoizedSerializedSize = -1; public static final int N_FIELD_NUMBER = 8; @SuppressWarnings("serial") private com.google.protobuf.Internal.IntList n_ = emptyIntList(); /** * repeated uint32 n = 8; * * @return A list containing the n. */ @java.lang.Override public java.util.List getNList() { return n_; } /** * repeated uint32 n = 8; * * @return The count of n. */ public int getNCount() { return n_.size(); } /** * repeated uint32 n = 8; * * @param index The index of the element to return. * @return The n at the given index. */ public int getN(int index) { return n_.getInt(index); } private int nMemoizedSerializedSize = -1; 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 { getSerializedSize(); if (ts_ != 0L) { output.writeInt64(1, ts_); } if (cnt_ != 0L) { output.writeInt64(2, cnt_); } if (java.lang.Double.doubleToRawLongBits(min_) != 0) { output.writeDouble(3, min_); } if (java.lang.Double.doubleToRawLongBits(max_) != 0) { output.writeDouble(4, max_); } if (java.lang.Double.doubleToRawLongBits(avg_) != 0) { output.writeDouble(5, avg_); } if (java.lang.Double.doubleToRawLongBits(sum_) != 0) { output.writeDouble(6, sum_); } if (getKList().size() > 0) { output.writeUInt32NoTag(58); output.writeUInt32NoTag(kMemoizedSerializedSize); } for (int i = 0; i < k_.size(); i++) { output.writeSInt32NoTag(k_.getInt(i)); } if (getNList().size() > 0) { output.writeUInt32NoTag(66); output.writeUInt32NoTag(nMemoizedSerializedSize); } for (int i = 0; i < n_.size(); i++) { output.writeUInt32NoTag(n_.getInt(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ts_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, ts_); } if (cnt_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, cnt_); } if (java.lang.Double.doubleToRawLongBits(min_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, min_); } if (java.lang.Double.doubleToRawLongBits(max_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, max_); } if (java.lang.Double.doubleToRawLongBits(avg_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, avg_); } if (java.lang.Double.doubleToRawLongBits(sum_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, sum_); } { int dataSize = 0; for (int i = 0; i < k_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream.computeSInt32SizeNoTag(k_.getInt(i)); } size += dataSize; if (!getKList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } kMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < n_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(n_.getInt(i)); } size += dataSize; if (!getNList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } nMemoizedSerializedSize = dataSize; } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch)) { return super.equals(obj); } datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch other = (datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch) obj; if (getTs() != other.getTs()) return false; if (getCnt() != other.getCnt()) return false; if (java.lang.Double.doubleToLongBits(getMin()) != java.lang.Double.doubleToLongBits(other.getMin())) return false; if (java.lang.Double.doubleToLongBits(getMax()) != java.lang.Double.doubleToLongBits(other.getMax())) return false; if (java.lang.Double.doubleToLongBits(getAvg()) != java.lang.Double.doubleToLongBits(other.getAvg())) return false; if (java.lang.Double.doubleToLongBits(getSum()) != java.lang.Double.doubleToLongBits(other.getSum())) return false; if (!getKList().equals(other.getKList())) return false; if (!getNList().equals(other.getNList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTs()); hash = (37 * hash) + CNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCnt()); hash = (37 * hash) + MIN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMin())); hash = (37 * hash) + MAX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMax())); hash = (37 * hash) + AVG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getAvg())); hash = (37 * hash) + SUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSum())); if (getKCount() > 0) { hash = (37 * hash) + K_FIELD_NUMBER; hash = (53 * hash) + getKList().hashCode(); } if (getNCount() > 0) { hash = (37 * hash) + N_FIELD_NUMBER; hash = (53 * hash) + getNList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch 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 datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch 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 datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch 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( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch 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 datadog.agentpayload.SketchPayload.Sketch.Dogsketch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:datadog.agentpayload.SketchPayload.Sketch.Dogsketch) datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DogsketchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_Sketch_Dogsketch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_Sketch_Dogsketch_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch.class, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch.Builder.class); } // Construct using // datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; ts_ = 0L; cnt_ = 0L; min_ = 0D; max_ = 0D; avg_ = 0D; sum_ = 0D; k_ = emptyIntList(); n_ = emptyIntList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_Sketch_Dogsketch_descriptor; } @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch getDefaultInstanceForType() { return datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch .getDefaultInstance(); } @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch build() { datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch buildPartial() { datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch result = new datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.ts_ = ts_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.cnt_ = cnt_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.min_ = min_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.max_ = max_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.avg_ = avg_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.sum_ = sum_; } if (((from_bitField0_ & 0x00000040) != 0)) { k_.makeImmutable(); result.k_ = k_; } if (((from_bitField0_ & 0x00000080) != 0)) { n_.makeImmutable(); result.n_ = n_; } } @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 datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch) { return mergeFrom( (datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch other) { if (other == datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch .getDefaultInstance()) return this; if (other.getTs() != 0L) { setTs(other.getTs()); } if (other.getCnt() != 0L) { setCnt(other.getCnt()); } if (other.getMin() != 0D) { setMin(other.getMin()); } if (other.getMax() != 0D) { setMax(other.getMax()); } if (other.getAvg() != 0D) { setAvg(other.getAvg()); } if (other.getSum() != 0D) { setSum(other.getSum()); } if (!other.k_.isEmpty()) { if (k_.isEmpty()) { k_ = other.k_; k_.makeImmutable(); bitField0_ |= 0x00000040; } else { ensureKIsMutable(); k_.addAll(other.k_); } onChanged(); } if (!other.n_.isEmpty()) { if (n_.isEmpty()) { n_ = other.n_; n_.makeImmutable(); bitField0_ |= 0x00000080; } else { ensureNIsMutable(); n_.addAll(other.n_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { ts_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { cnt_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 25: { min_ = input.readDouble(); bitField0_ |= 0x00000004; break; } // case 25 case 33: { max_ = input.readDouble(); bitField0_ |= 0x00000008; break; } // case 33 case 41: { avg_ = input.readDouble(); bitField0_ |= 0x00000010; break; } // case 41 case 49: { sum_ = input.readDouble(); bitField0_ |= 0x00000020; break; } // case 49 case 56: { int v = input.readSInt32(); ensureKIsMutable(); k_.addInt(v); break; } // case 56 case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureKIsMutable(); while (input.getBytesUntilLimit() > 0) { k_.addInt(input.readSInt32()); } input.popLimit(limit); break; } // case 58 case 64: { int v = input.readUInt32(); ensureNIsMutable(); n_.addInt(v); break; } // case 64 case 66: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureNIsMutable(); while (input.getBytesUntilLimit() > 0) { n_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long ts_; /** * int64 ts = 1; * * @return The ts. */ @java.lang.Override public long getTs() { return ts_; } /** * int64 ts = 1; * * @param value The ts to set. * @return This builder for chaining. */ public Builder setTs(long value) { ts_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 ts = 1; * * @return This builder for chaining. */ public Builder clearTs() { bitField0_ = (bitField0_ & ~0x00000001); ts_ = 0L; onChanged(); return this; } private long cnt_; /** * int64 cnt = 2; * * @return The cnt. */ @java.lang.Override public long getCnt() { return cnt_; } /** * int64 cnt = 2; * * @param value The cnt to set. * @return This builder for chaining. */ public Builder setCnt(long value) { cnt_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 cnt = 2; * * @return This builder for chaining. */ public Builder clearCnt() { bitField0_ = (bitField0_ & ~0x00000002); cnt_ = 0L; onChanged(); return this; } private double min_; /** * double min = 3; * * @return The min. */ @java.lang.Override public double getMin() { return min_; } /** * double min = 3; * * @param value The min to set. * @return This builder for chaining. */ public Builder setMin(double value) { min_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * double min = 3; * * @return This builder for chaining. */ public Builder clearMin() { bitField0_ = (bitField0_ & ~0x00000004); min_ = 0D; onChanged(); return this; } private double max_; /** * double max = 4; * * @return The max. */ @java.lang.Override public double getMax() { return max_; } /** * double max = 4; * * @param value The max to set. * @return This builder for chaining. */ public Builder setMax(double value) { max_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * double max = 4; * * @return This builder for chaining. */ public Builder clearMax() { bitField0_ = (bitField0_ & ~0x00000008); max_ = 0D; onChanged(); return this; } private double avg_; /** * double avg = 5; * * @return The avg. */ @java.lang.Override public double getAvg() { return avg_; } /** * double avg = 5; * * @param value The avg to set. * @return This builder for chaining. */ public Builder setAvg(double value) { avg_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * double avg = 5; * * @return This builder for chaining. */ public Builder clearAvg() { bitField0_ = (bitField0_ & ~0x00000010); avg_ = 0D; onChanged(); return this; } private double sum_; /** * double sum = 6; * * @return The sum. */ @java.lang.Override public double getSum() { return sum_; } /** * double sum = 6; * * @param value The sum to set. * @return This builder for chaining. */ public Builder setSum(double value) { sum_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * double sum = 6; * * @return This builder for chaining. */ public Builder clearSum() { bitField0_ = (bitField0_ & ~0x00000020); sum_ = 0D; onChanged(); return this; } private com.google.protobuf.Internal.IntList k_ = emptyIntList(); private void ensureKIsMutable() { if (!k_.isModifiable()) { k_ = makeMutableCopy(k_); } bitField0_ |= 0x00000040; } /** * repeated sint32 k = 7; * * @return A list containing the k. */ public java.util.List getKList() { k_.makeImmutable(); return k_; } /** * repeated sint32 k = 7; * * @return The count of k. */ public int getKCount() { return k_.size(); } /** * repeated sint32 k = 7; * * @param index The index of the element to return. * @return The k at the given index. */ public int getK(int index) { return k_.getInt(index); } /** * repeated sint32 k = 7; * * @param index The index to set the value at. * @param value The k to set. * @return This builder for chaining. */ public Builder setK(int index, int value) { ensureKIsMutable(); k_.setInt(index, value); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated sint32 k = 7; * * @param value The k to add. * @return This builder for chaining. */ public Builder addK(int value) { ensureKIsMutable(); k_.addInt(value); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated sint32 k = 7; * * @param values The k to add. * @return This builder for chaining. */ public Builder addAllK(java.lang.Iterable values) { ensureKIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, k_); bitField0_ |= 0x00000040; onChanged(); return this; } /** * repeated sint32 k = 7; * * @return This builder for chaining. */ public Builder clearK() { k_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } private com.google.protobuf.Internal.IntList n_ = emptyIntList(); private void ensureNIsMutable() { if (!n_.isModifiable()) { n_ = makeMutableCopy(n_); } bitField0_ |= 0x00000080; } /** * repeated uint32 n = 8; * * @return A list containing the n. */ public java.util.List getNList() { n_.makeImmutable(); return n_; } /** * repeated uint32 n = 8; * * @return The count of n. */ public int getNCount() { return n_.size(); } /** * repeated uint32 n = 8; * * @param index The index of the element to return. * @return The n at the given index. */ public int getN(int index) { return n_.getInt(index); } /** * repeated uint32 n = 8; * * @param index The index to set the value at. * @param value The n to set. * @return This builder for chaining. */ public Builder setN(int index, int value) { ensureNIsMutable(); n_.setInt(index, value); bitField0_ |= 0x00000080; onChanged(); return this; } /** * repeated uint32 n = 8; * * @param value The n to add. * @return This builder for chaining. */ public Builder addN(int value) { ensureNIsMutable(); n_.addInt(value); bitField0_ |= 0x00000080; onChanged(); return this; } /** * repeated uint32 n = 8; * * @param values The n to add. * @return This builder for chaining. */ public Builder addAllN(java.lang.Iterable values) { ensureNIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, n_); bitField0_ |= 0x00000080; onChanged(); return this; } /** * repeated uint32 n = 8; * * @return This builder for chaining. */ public Builder clearN() { n_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:datadog.agentpayload.SketchPayload.Sketch.Dogsketch) } // @@protoc_insertion_point(class_scope:datadog.agentpayload.SketchPayload.Sketch.Dogsketch) private static final datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch(); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Dogsketch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int METRIC_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object metric_ = ""; /** * string metric = 1; * * @return The metric. */ @java.lang.Override public java.lang.String getMetric() { java.lang.Object ref = metric_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metric_ = s; return s; } } /** * string metric = 1; * * @return The bytes for metric. */ @java.lang.Override public com.google.protobuf.ByteString getMetricBytes() { java.lang.Object ref = metric_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metric_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOST_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object host_ = ""; /** * string host = 2; * * @return The host. */ @java.lang.Override public java.lang.String getHost() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** * string host = 2; * * @return The bytes for host. */ @java.lang.Override public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISTRIBUTIONS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List distributions_; /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ @java.lang.Override public java.util.List getDistributionsList() { return distributions_; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ @java.lang.Override public java.util.List< ? extends datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DistributionOrBuilder> getDistributionsOrBuilderList() { return distributions_; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ @java.lang.Override public int getDistributionsCount() { return distributions_.size(); } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution getDistributions( int index) { return distributions_.get(index); } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DistributionOrBuilder getDistributionsOrBuilder(int index) { return distributions_.get(index); } public static final int TAGS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string tags = 4; * * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** * repeated string tags = 4; * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** * repeated string tags = 4; * * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** * repeated string tags = 4; * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int DOGSKETCHES_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List dogsketches_; /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ @java.lang.Override public java.util.List getDogsketchesList() { return dogsketches_; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ @java.lang.Override public java.util.List< ? extends datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DogsketchOrBuilder> getDogsketchesOrBuilderList() { return dogsketches_; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ @java.lang.Override public int getDogsketchesCount() { return dogsketches_.size(); } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch getDogsketches( int index) { return dogsketches_.get(index); } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DogsketchOrBuilder getDogsketchesOrBuilder(int index) { return dogsketches_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metric_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, host_); } for (int i = 0; i < distributions_.size(); i++) { output.writeMessage(3, distributions_.get(i)); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); } for (int i = 0; i < dogsketches_.size(); i++) { output.writeMessage(7, dogsketches_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metric_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metric_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, host_); } for (int i = 0; i < distributions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, distributions_.get(i)); } { int dataSize = 0; for (int i = 0; i < tags_.size(); i++) { dataSize += computeStringSizeNoTag(tags_.getRaw(i)); } size += dataSize; size += 1 * getTagsList().size(); } for (int i = 0; i < dogsketches_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, dogsketches_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof datadog.agentpayload.AgentPayload.SketchPayload.Sketch)) { return super.equals(obj); } datadog.agentpayload.AgentPayload.SketchPayload.Sketch other = (datadog.agentpayload.AgentPayload.SketchPayload.Sketch) obj; if (!getMetric().equals(other.getMetric())) return false; if (!getHost().equals(other.getHost())) return false; if (!getDistributionsList().equals(other.getDistributionsList())) return false; if (!getTagsList().equals(other.getTagsList())) return false; if (!getDogsketchesList().equals(other.getDogsketchesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + METRIC_FIELD_NUMBER; hash = (53 * hash) + getMetric().hashCode(); hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); if (getDistributionsCount() > 0) { hash = (37 * hash) + DISTRIBUTIONS_FIELD_NUMBER; hash = (53 * hash) + getDistributionsList().hashCode(); } if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } if (getDogsketchesCount() > 0) { hash = (37 * hash) + DOGSKETCHES_FIELD_NUMBER; hash = (53 * hash) + getDogsketchesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch 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 datadog.agentpayload.AgentPayload.SketchPayload.Sketch parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch 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 datadog.agentpayload.AgentPayload.SketchPayload.Sketch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch 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( datadog.agentpayload.AgentPayload.SketchPayload.Sketch 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 datadog.agentpayload.SketchPayload.Sketch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:datadog.agentpayload.SketchPayload.Sketch) datadog.agentpayload.AgentPayload.SketchPayload.SketchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_Sketch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_Sketch_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.class, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Builder.class); } // Construct using datadog.agentpayload.AgentPayload.SketchPayload.Sketch.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; metric_ = ""; host_ = ""; if (distributionsBuilder_ == null) { distributions_ = java.util.Collections.emptyList(); } else { distributions_ = null; distributionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (dogsketchesBuilder_ == null) { dogsketches_ = java.util.Collections.emptyList(); } else { dogsketches_ = null; dogsketchesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_Sketch_descriptor; } @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch getDefaultInstanceForType() { return datadog.agentpayload.AgentPayload.SketchPayload.Sketch.getDefaultInstance(); } @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch build() { datadog.agentpayload.AgentPayload.SketchPayload.Sketch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch buildPartial() { datadog.agentpayload.AgentPayload.SketchPayload.Sketch result = new datadog.agentpayload.AgentPayload.SketchPayload.Sketch(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( datadog.agentpayload.AgentPayload.SketchPayload.Sketch result) { if (distributionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { distributions_ = java.util.Collections.unmodifiableList(distributions_); bitField0_ = (bitField0_ & ~0x00000004); } result.distributions_ = distributions_; } else { result.distributions_ = distributionsBuilder_.build(); } if (dogsketchesBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { dogsketches_ = java.util.Collections.unmodifiableList(dogsketches_); bitField0_ = (bitField0_ & ~0x00000010); } result.dogsketches_ = dogsketches_; } else { result.dogsketches_ = dogsketchesBuilder_.build(); } } private void buildPartial0(datadog.agentpayload.AgentPayload.SketchPayload.Sketch result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.metric_ = metric_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.host_ = host_; } if (((from_bitField0_ & 0x00000008) != 0)) { tags_.makeImmutable(); result.tags_ = tags_; } } @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 datadog.agentpayload.AgentPayload.SketchPayload.Sketch) { return mergeFrom((datadog.agentpayload.AgentPayload.SketchPayload.Sketch) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(datadog.agentpayload.AgentPayload.SketchPayload.Sketch other) { if (other == datadog.agentpayload.AgentPayload.SketchPayload.Sketch.getDefaultInstance()) return this; if (!other.getMetric().isEmpty()) { metric_ = other.metric_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getHost().isEmpty()) { host_ = other.host_; bitField0_ |= 0x00000002; onChanged(); } if (distributionsBuilder_ == null) { if (!other.distributions_.isEmpty()) { if (distributions_.isEmpty()) { distributions_ = other.distributions_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDistributionsIsMutable(); distributions_.addAll(other.distributions_); } onChanged(); } } else { if (!other.distributions_.isEmpty()) { if (distributionsBuilder_.isEmpty()) { distributionsBuilder_.dispose(); distributionsBuilder_ = null; distributions_ = other.distributions_; bitField0_ = (bitField0_ & ~0x00000004); distributionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDistributionsFieldBuilder() : null; } else { distributionsBuilder_.addAllMessages(other.distributions_); } } } if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ |= 0x00000008; } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } if (dogsketchesBuilder_ == null) { if (!other.dogsketches_.isEmpty()) { if (dogsketches_.isEmpty()) { dogsketches_ = other.dogsketches_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureDogsketchesIsMutable(); dogsketches_.addAll(other.dogsketches_); } onChanged(); } } else { if (!other.dogsketches_.isEmpty()) { if (dogsketchesBuilder_.isEmpty()) { dogsketchesBuilder_.dispose(); dogsketchesBuilder_ = null; dogsketches_ = other.dogsketches_; bitField0_ = (bitField0_ & ~0x00000010); dogsketchesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDogsketchesFieldBuilder() : null; } else { dogsketchesBuilder_.addAllMessages(other.dogsketches_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { metric_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { host_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution m = input.readMessage( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution .parser(), extensionRegistry); if (distributionsBuilder_ == null) { ensureDistributionsIsMutable(); distributions_.add(m); } else { distributionsBuilder_.addMessage(m); } break; } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureTagsIsMutable(); tags_.add(s); break; } // case 34 case 58: { datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch m = input.readMessage( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch .parser(), extensionRegistry); if (dogsketchesBuilder_ == null) { ensureDogsketchesIsMutable(); dogsketches_.add(m); } else { dogsketchesBuilder_.addMessage(m); } break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object metric_ = ""; /** * string metric = 1; * * @return The metric. */ public java.lang.String getMetric() { java.lang.Object ref = metric_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metric_ = s; return s; } else { return (java.lang.String) ref; } } /** * string metric = 1; * * @return The bytes for metric. */ public com.google.protobuf.ByteString getMetricBytes() { java.lang.Object ref = metric_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metric_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string metric = 1; * * @param value The metric to set. * @return This builder for chaining. */ public Builder setMetric(java.lang.String value) { if (value == null) { throw new NullPointerException(); } metric_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * string metric = 1; * * @return This builder for chaining. */ public Builder clearMetric() { metric_ = getDefaultInstance().getMetric(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * string metric = 1; * * @param value The bytes for metric to set. * @return This builder for chaining. */ public Builder setMetricBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); metric_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object host_ = ""; /** * string host = 2; * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } else { return (java.lang.String) ref; } } /** * string host = 2; * * @return The bytes for host. */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string host = 2; * * @param value The host to set. * @return This builder for chaining. */ public Builder setHost(java.lang.String value) { if (value == null) { throw new NullPointerException(); } host_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string host = 2; * * @return This builder for chaining. */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string host = 2; * * @param value The bytes for host to set. * @return This builder for chaining. */ public Builder setHostBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); host_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List distributions_ = java.util.Collections.emptyList(); private void ensureDistributionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { distributions_ = new java.util.ArrayList< datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution>( distributions_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution.Builder, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DistributionOrBuilder> distributionsBuilder_; /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public java.util.List getDistributionsList() { if (distributionsBuilder_ == null) { return java.util.Collections.unmodifiableList(distributions_); } else { return distributionsBuilder_.getMessageList(); } } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public int getDistributionsCount() { if (distributionsBuilder_ == null) { return distributions_.size(); } else { return distributionsBuilder_.getCount(); } } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution getDistributions( int index) { if (distributionsBuilder_ == null) { return distributions_.get(index); } else { return distributionsBuilder_.getMessage(index); } } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public Builder setDistributions( int index, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution value) { if (distributionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDistributionsIsMutable(); distributions_.set(index, value); onChanged(); } else { distributionsBuilder_.setMessage(index, value); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public Builder setDistributions( int index, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution.Builder builderForValue) { if (distributionsBuilder_ == null) { ensureDistributionsIsMutable(); distributions_.set(index, builderForValue.build()); onChanged(); } else { distributionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public Builder addDistributions( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution value) { if (distributionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDistributionsIsMutable(); distributions_.add(value); onChanged(); } else { distributionsBuilder_.addMessage(value); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public Builder addDistributions( int index, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution value) { if (distributionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDistributionsIsMutable(); distributions_.add(index, value); onChanged(); } else { distributionsBuilder_.addMessage(index, value); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public Builder addDistributions( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution.Builder builderForValue) { if (distributionsBuilder_ == null) { ensureDistributionsIsMutable(); distributions_.add(builderForValue.build()); onChanged(); } else { distributionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public Builder addDistributions( int index, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution.Builder builderForValue) { if (distributionsBuilder_ == null) { ensureDistributionsIsMutable(); distributions_.add(index, builderForValue.build()); onChanged(); } else { distributionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public Builder addAllDistributions( java.lang.Iterable< ? extends datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution> values) { if (distributionsBuilder_ == null) { ensureDistributionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, distributions_); onChanged(); } else { distributionsBuilder_.addAllMessages(values); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public Builder clearDistributions() { if (distributionsBuilder_ == null) { distributions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { distributionsBuilder_.clear(); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public Builder removeDistributions(int index) { if (distributionsBuilder_ == null) { ensureDistributionsIsMutable(); distributions_.remove(index); onChanged(); } else { distributionsBuilder_.remove(index); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution.Builder getDistributionsBuilder(int index) { return getDistributionsFieldBuilder().getBuilder(index); } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DistributionOrBuilder getDistributionsOrBuilder(int index) { if (distributionsBuilder_ == null) { return distributions_.get(index); } else { return distributionsBuilder_.getMessageOrBuilder(index); } } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public java.util.List< ? extends datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DistributionOrBuilder> getDistributionsOrBuilderList() { if (distributionsBuilder_ != null) { return distributionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(distributions_); } } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution.Builder addDistributionsBuilder() { return getDistributionsFieldBuilder() .addBuilder( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution .getDefaultInstance()); } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution.Builder addDistributionsBuilder(int index) { return getDistributionsFieldBuilder() .addBuilder( index, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution .getDefaultInstance()); } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Distribution distributions = 3 [(.gogoproto.nullable) = false]; * */ public java.util.List< datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution.Builder> getDistributionsBuilderList() { return getDistributionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution.Builder, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DistributionOrBuilder> getDistributionsFieldBuilder() { if (distributionsBuilder_ == null) { distributionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Distribution.Builder, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DistributionOrBuilder>( distributions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); distributions_ = null; } return distributionsBuilder_; } private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTagsIsMutable() { if (!tags_.isModifiable()) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); } bitField0_ |= 0x00000008; } /** * repeated string tags = 4; * * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { tags_.makeImmutable(); return tags_; } /** * repeated string tags = 4; * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** * repeated string tags = 4; * * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** * repeated string tags = 4; * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** * repeated string tags = 4; * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ public Builder setTags(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string tags = 4; * * @param value The tags to add. * @return This builder for chaining. */ public Builder addTags(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string tags = 4; * * @param values The tags to add. * @return This builder for chaining. */ public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string tags = 4; * * @return This builder for chaining. */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); ; onChanged(); return this; } /** * repeated string tags = 4; * * @param value The bytes of the tags to add. * @return This builder for chaining. */ public Builder addTagsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } private java.util.List dogsketches_ = java.util.Collections.emptyList(); private void ensureDogsketchesIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { dogsketches_ = new java.util.ArrayList< datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch>(dogsketches_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch.Builder, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DogsketchOrBuilder> dogsketchesBuilder_; /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public java.util.List getDogsketchesList() { if (dogsketchesBuilder_ == null) { return java.util.Collections.unmodifiableList(dogsketches_); } else { return dogsketchesBuilder_.getMessageList(); } } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public int getDogsketchesCount() { if (dogsketchesBuilder_ == null) { return dogsketches_.size(); } else { return dogsketchesBuilder_.getCount(); } } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch getDogsketches( int index) { if (dogsketchesBuilder_ == null) { return dogsketches_.get(index); } else { return dogsketchesBuilder_.getMessage(index); } } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public Builder setDogsketches( int index, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch value) { if (dogsketchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDogsketchesIsMutable(); dogsketches_.set(index, value); onChanged(); } else { dogsketchesBuilder_.setMessage(index, value); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public Builder setDogsketches( int index, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch.Builder builderForValue) { if (dogsketchesBuilder_ == null) { ensureDogsketchesIsMutable(); dogsketches_.set(index, builderForValue.build()); onChanged(); } else { dogsketchesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public Builder addDogsketches( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch value) { if (dogsketchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDogsketchesIsMutable(); dogsketches_.add(value); onChanged(); } else { dogsketchesBuilder_.addMessage(value); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public Builder addDogsketches( int index, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch value) { if (dogsketchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDogsketchesIsMutable(); dogsketches_.add(index, value); onChanged(); } else { dogsketchesBuilder_.addMessage(index, value); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public Builder addDogsketches( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch.Builder builderForValue) { if (dogsketchesBuilder_ == null) { ensureDogsketchesIsMutable(); dogsketches_.add(builderForValue.build()); onChanged(); } else { dogsketchesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public Builder addDogsketches( int index, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch.Builder builderForValue) { if (dogsketchesBuilder_ == null) { ensureDogsketchesIsMutable(); dogsketches_.add(index, builderForValue.build()); onChanged(); } else { dogsketchesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public Builder addAllDogsketches( java.lang.Iterable< ? extends datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch> values) { if (dogsketchesBuilder_ == null) { ensureDogsketchesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dogsketches_); onChanged(); } else { dogsketchesBuilder_.addAllMessages(values); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public Builder clearDogsketches() { if (dogsketchesBuilder_ == null) { dogsketches_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { dogsketchesBuilder_.clear(); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public Builder removeDogsketches(int index) { if (dogsketchesBuilder_ == null) { ensureDogsketchesIsMutable(); dogsketches_.remove(index); onChanged(); } else { dogsketchesBuilder_.remove(index); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch.Builder getDogsketchesBuilder(int index) { return getDogsketchesFieldBuilder().getBuilder(index); } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DogsketchOrBuilder getDogsketchesOrBuilder(int index) { if (dogsketchesBuilder_ == null) { return dogsketches_.get(index); } else { return dogsketchesBuilder_.getMessageOrBuilder(index); } } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public java.util.List< ? extends datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DogsketchOrBuilder> getDogsketchesOrBuilderList() { if (dogsketchesBuilder_ != null) { return dogsketchesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dogsketches_); } } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch.Builder addDogsketchesBuilder() { return getDogsketchesFieldBuilder() .addBuilder( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch .getDefaultInstance()); } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch.Builder addDogsketchesBuilder(int index) { return getDogsketchesFieldBuilder() .addBuilder( index, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch .getDefaultInstance()); } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch.Dogsketch dogsketches = 7 [(.gogoproto.nullable) = false]; * */ public java.util.List< datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch.Builder> getDogsketchesBuilderList() { return getDogsketchesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch.Builder, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DogsketchOrBuilder> getDogsketchesFieldBuilder() { if (dogsketchesBuilder_ == null) { dogsketchesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Dogsketch.Builder, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.DogsketchOrBuilder>( dogsketches_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); dogsketches_ = null; } return dogsketchesBuilder_; } @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:datadog.agentpayload.SketchPayload.Sketch) } // @@protoc_insertion_point(class_scope:datadog.agentpayload.SketchPayload.Sketch) private static final datadog.agentpayload.AgentPayload.SketchPayload.Sketch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new datadog.agentpayload.AgentPayload.SketchPayload.Sketch(); } public static datadog.agentpayload.AgentPayload.SketchPayload.Sketch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Sketch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int SKETCHES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List sketches_; /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ @java.lang.Override public java.util.List getSketchesList() { return sketches_; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ @java.lang.Override public java.util.List getSketchesOrBuilderList() { return sketches_; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ @java.lang.Override public int getSketchesCount() { return sketches_.size(); } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.Sketch getSketches(int index) { return sketches_.get(index); } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload.SketchOrBuilder getSketchesOrBuilder( int index) { return sketches_.get(index); } public static final int METADATA_FIELD_NUMBER = 2; private datadog.agentpayload.AgentPayload.CommonMetadata metadata_; /** * .datadog.agentpayload.CommonMetadata metadata = 2 [(.gogoproto.nullable) = false]; * * * @return Whether the metadata field is set. */ @java.lang.Override public boolean hasMetadata() { return ((bitField0_ & 0x00000001) != 0); } /** * .datadog.agentpayload.CommonMetadata metadata = 2 [(.gogoproto.nullable) = false]; * * * @return The metadata. */ @java.lang.Override public datadog.agentpayload.AgentPayload.CommonMetadata getMetadata() { return metadata_ == null ? datadog.agentpayload.AgentPayload.CommonMetadata.getDefaultInstance() : metadata_; } /** * .datadog.agentpayload.CommonMetadata metadata = 2 [(.gogoproto.nullable) = false]; * */ @java.lang.Override public datadog.agentpayload.AgentPayload.CommonMetadataOrBuilder getMetadataOrBuilder() { return metadata_ == null ? datadog.agentpayload.AgentPayload.CommonMetadata.getDefaultInstance() : metadata_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < sketches_.size(); i++) { output.writeMessage(1, sketches_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getMetadata()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < sketches_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sketches_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetadata()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof datadog.agentpayload.AgentPayload.SketchPayload)) { return super.equals(obj); } datadog.agentpayload.AgentPayload.SketchPayload other = (datadog.agentpayload.AgentPayload.SketchPayload) obj; if (!getSketchesList().equals(other.getSketchesList())) return false; if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { if (!getMetadata().equals(other.getMetadata())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getSketchesCount() > 0) { hash = (37 * hash) + SKETCHES_FIELD_NUMBER; hash = (53 * hash) + getSketchesList().hashCode(); } if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static datadog.agentpayload.AgentPayload.SketchPayload parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.SketchPayload parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.SketchPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.SketchPayload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.SketchPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static datadog.agentpayload.AgentPayload.SketchPayload parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static datadog.agentpayload.AgentPayload.SketchPayload parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.SketchPayload 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 datadog.agentpayload.AgentPayload.SketchPayload parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.SketchPayload 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 datadog.agentpayload.AgentPayload.SketchPayload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static datadog.agentpayload.AgentPayload.SketchPayload 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(datadog.agentpayload.AgentPayload.SketchPayload 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 datadog.agentpayload.SketchPayload} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:datadog.agentpayload.SketchPayload) datadog.agentpayload.AgentPayload.SketchPayloadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( datadog.agentpayload.AgentPayload.SketchPayload.class, datadog.agentpayload.AgentPayload.SketchPayload.Builder.class); } // Construct using datadog.agentpayload.AgentPayload.SketchPayload.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSketchesFieldBuilder(); getMetadataFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (sketchesBuilder_ == null) { sketches_ = java.util.Collections.emptyList(); } else { sketches_ = null; sketchesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return datadog.agentpayload.AgentPayload .internal_static_datadog_agentpayload_SketchPayload_descriptor; } @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload getDefaultInstanceForType() { return datadog.agentpayload.AgentPayload.SketchPayload.getDefaultInstance(); } @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload build() { datadog.agentpayload.AgentPayload.SketchPayload result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload buildPartial() { datadog.agentpayload.AgentPayload.SketchPayload result = new datadog.agentpayload.AgentPayload.SketchPayload(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( datadog.agentpayload.AgentPayload.SketchPayload result) { if (sketchesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { sketches_ = java.util.Collections.unmodifiableList(sketches_); bitField0_ = (bitField0_ & ~0x00000001); } result.sketches_ = sketches_; } else { result.sketches_ = sketchesBuilder_.build(); } } private void buildPartial0(datadog.agentpayload.AgentPayload.SketchPayload result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof datadog.agentpayload.AgentPayload.SketchPayload) { return mergeFrom((datadog.agentpayload.AgentPayload.SketchPayload) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(datadog.agentpayload.AgentPayload.SketchPayload other) { if (other == datadog.agentpayload.AgentPayload.SketchPayload.getDefaultInstance()) return this; if (sketchesBuilder_ == null) { if (!other.sketches_.isEmpty()) { if (sketches_.isEmpty()) { sketches_ = other.sketches_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSketchesIsMutable(); sketches_.addAll(other.sketches_); } onChanged(); } } else { if (!other.sketches_.isEmpty()) { if (sketchesBuilder_.isEmpty()) { sketchesBuilder_.dispose(); sketchesBuilder_ = null; sketches_ = other.sketches_; bitField0_ = (bitField0_ & ~0x00000001); sketchesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSketchesFieldBuilder() : null; } else { sketchesBuilder_.addAllMessages(other.sketches_); } } } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { datadog.agentpayload.AgentPayload.SketchPayload.Sketch m = input.readMessage( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.parser(), extensionRegistry); if (sketchesBuilder_ == null) { ensureSketchesIsMutable(); sketches_.add(m); } else { sketchesBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List sketches_ = java.util.Collections.emptyList(); private void ensureSketchesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { sketches_ = new java.util.ArrayList( sketches_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.SketchPayload.Sketch, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Builder, datadog.agentpayload.AgentPayload.SketchPayload.SketchOrBuilder> sketchesBuilder_; /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public java.util.List getSketchesList() { if (sketchesBuilder_ == null) { return java.util.Collections.unmodifiableList(sketches_); } else { return sketchesBuilder_.getMessageList(); } } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public int getSketchesCount() { if (sketchesBuilder_ == null) { return sketches_.size(); } else { return sketchesBuilder_.getCount(); } } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.SketchPayload.Sketch getSketches(int index) { if (sketchesBuilder_ == null) { return sketches_.get(index); } else { return sketchesBuilder_.getMessage(index); } } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public Builder setSketches( int index, datadog.agentpayload.AgentPayload.SketchPayload.Sketch value) { if (sketchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSketchesIsMutable(); sketches_.set(index, value); onChanged(); } else { sketchesBuilder_.setMessage(index, value); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public Builder setSketches( int index, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Builder builderForValue) { if (sketchesBuilder_ == null) { ensureSketchesIsMutable(); sketches_.set(index, builderForValue.build()); onChanged(); } else { sketchesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public Builder addSketches(datadog.agentpayload.AgentPayload.SketchPayload.Sketch value) { if (sketchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSketchesIsMutable(); sketches_.add(value); onChanged(); } else { sketchesBuilder_.addMessage(value); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public Builder addSketches( int index, datadog.agentpayload.AgentPayload.SketchPayload.Sketch value) { if (sketchesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSketchesIsMutable(); sketches_.add(index, value); onChanged(); } else { sketchesBuilder_.addMessage(index, value); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public Builder addSketches( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Builder builderForValue) { if (sketchesBuilder_ == null) { ensureSketchesIsMutable(); sketches_.add(builderForValue.build()); onChanged(); } else { sketchesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public Builder addSketches( int index, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Builder builderForValue) { if (sketchesBuilder_ == null) { ensureSketchesIsMutable(); sketches_.add(index, builderForValue.build()); onChanged(); } else { sketchesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public Builder addAllSketches( java.lang.Iterable values) { if (sketchesBuilder_ == null) { ensureSketchesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sketches_); onChanged(); } else { sketchesBuilder_.addAllMessages(values); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public Builder clearSketches() { if (sketchesBuilder_ == null) { sketches_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { sketchesBuilder_.clear(); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public Builder removeSketches(int index) { if (sketchesBuilder_ == null) { ensureSketchesIsMutable(); sketches_.remove(index); onChanged(); } else { sketchesBuilder_.remove(index); } return this; } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Builder getSketchesBuilder( int index) { return getSketchesFieldBuilder().getBuilder(index); } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.SketchPayload.SketchOrBuilder getSketchesOrBuilder( int index) { if (sketchesBuilder_ == null) { return sketches_.get(index); } else { return sketchesBuilder_.getMessageOrBuilder(index); } } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public java.util.List< ? extends datadog.agentpayload.AgentPayload.SketchPayload.SketchOrBuilder> getSketchesOrBuilderList() { if (sketchesBuilder_ != null) { return sketchesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(sketches_); } } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Builder addSketchesBuilder() { return getSketchesFieldBuilder() .addBuilder( datadog.agentpayload.AgentPayload.SketchPayload.Sketch.getDefaultInstance()); } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Builder addSketchesBuilder( int index) { return getSketchesFieldBuilder() .addBuilder( index, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.getDefaultInstance()); } /** * * repeated .datadog.agentpayload.SketchPayload.Sketch sketches = 1 [(.gogoproto.nullable) = false]; * */ public java.util.List getSketchesBuilderList() { return getSketchesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.SketchPayload.Sketch, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Builder, datadog.agentpayload.AgentPayload.SketchPayload.SketchOrBuilder> getSketchesFieldBuilder() { if (sketchesBuilder_ == null) { sketchesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< datadog.agentpayload.AgentPayload.SketchPayload.Sketch, datadog.agentpayload.AgentPayload.SketchPayload.Sketch.Builder, datadog.agentpayload.AgentPayload.SketchPayload.SketchOrBuilder>( sketches_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); sketches_ = null; } return sketchesBuilder_; } private datadog.agentpayload.AgentPayload.CommonMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< datadog.agentpayload.AgentPayload.CommonMetadata, datadog.agentpayload.AgentPayload.CommonMetadata.Builder, datadog.agentpayload.AgentPayload.CommonMetadataOrBuilder> metadataBuilder_; /** * .datadog.agentpayload.CommonMetadata metadata = 2 [(.gogoproto.nullable) = false]; * * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** * .datadog.agentpayload.CommonMetadata metadata = 2 [(.gogoproto.nullable) = false]; * * * @return The metadata. */ public datadog.agentpayload.AgentPayload.CommonMetadata getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? datadog.agentpayload.AgentPayload.CommonMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** * .datadog.agentpayload.CommonMetadata metadata = 2 [(.gogoproto.nullable) = false]; * */ public Builder setMetadata(datadog.agentpayload.AgentPayload.CommonMetadata value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; } else { metadataBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .datadog.agentpayload.CommonMetadata metadata = 2 [(.gogoproto.nullable) = false]; * */ public Builder setMetadata( datadog.agentpayload.AgentPayload.CommonMetadata.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); } else { metadataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .datadog.agentpayload.CommonMetadata metadata = 2 [(.gogoproto.nullable) = false]; * */ public Builder mergeMetadata(datadog.agentpayload.AgentPayload.CommonMetadata value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && metadata_ != null && metadata_ != datadog.agentpayload.AgentPayload.CommonMetadata.getDefaultInstance()) { getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } } else { metadataBuilder_.mergeFrom(value); } if (metadata_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .datadog.agentpayload.CommonMetadata metadata = 2 [(.gogoproto.nullable) = false]; * */ public Builder clearMetadata() { bitField0_ = (bitField0_ & ~0x00000002); metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); metadataBuilder_ = null; } onChanged(); return this; } /** * .datadog.agentpayload.CommonMetadata metadata = 2 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.CommonMetadata.Builder getMetadataBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** * .datadog.agentpayload.CommonMetadata metadata = 2 [(.gogoproto.nullable) = false]; * */ public datadog.agentpayload.AgentPayload.CommonMetadataOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? datadog.agentpayload.AgentPayload.CommonMetadata.getDefaultInstance() : metadata_; } } /** * .datadog.agentpayload.CommonMetadata metadata = 2 [(.gogoproto.nullable) = false]; * */ private com.google.protobuf.SingleFieldBuilderV3< datadog.agentpayload.AgentPayload.CommonMetadata, datadog.agentpayload.AgentPayload.CommonMetadata.Builder, datadog.agentpayload.AgentPayload.CommonMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< datadog.agentpayload.AgentPayload.CommonMetadata, datadog.agentpayload.AgentPayload.CommonMetadata.Builder, datadog.agentpayload.AgentPayload.CommonMetadataOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } @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:datadog.agentpayload.SketchPayload) } // @@protoc_insertion_point(class_scope:datadog.agentpayload.SketchPayload) private static final datadog.agentpayload.AgentPayload.SketchPayload DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new datadog.agentpayload.AgentPayload.SketchPayload(); } public static datadog.agentpayload.AgentPayload.SketchPayload getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SketchPayload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public datadog.agentpayload.AgentPayload.SketchPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_datadog_agentpayload_CommonMetadata_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datadog_agentpayload_CommonMetadata_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datadog_agentpayload_MetricPayload_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datadog_agentpayload_MetricPayload_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datadog_agentpayload_MetricPayload_MetricPoint_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datadog_agentpayload_MetricPayload_MetricPoint_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datadog_agentpayload_MetricPayload_Resource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datadog_agentpayload_MetricPayload_Resource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datadog_agentpayload_MetricPayload_MetricSeries_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datadog_agentpayload_MetricPayload_MetricSeries_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datadog_agentpayload_EventsPayload_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datadog_agentpayload_EventsPayload_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datadog_agentpayload_EventsPayload_Event_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datadog_agentpayload_EventsPayload_Event_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datadog_agentpayload_SketchPayload_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datadog_agentpayload_SketchPayload_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datadog_agentpayload_SketchPayload_Sketch_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datadog_agentpayload_SketchPayload_Sketch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datadog_agentpayload_SketchPayload_Sketch_Distribution_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datadog_agentpayload_SketchPayload_Sketch_Distribution_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datadog_agentpayload_SketchPayload_Sketch_Dogsketch_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datadog_agentpayload_SketchPayload_Sketch_Dogsketch_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\nBgithub.com/DataDog/agent-payload/proto" + "/metrics/agent_payload.proto\022\024datadog.ag" + "entpayload\032-github.com/gogo/protobuf/gog" + "oproto/gogo.proto\"\211\001\n\016CommonMetadata\022\025\n\r" + "agent_version\030\001 \001(\t\022\020\n\010timezone\030\002 \001(\t\022\025\n" + "\rcurrent_epoch\030\003 \001(\001\022\023\n\013internal_ip\030\004 \001(" + "\t\022\021\n\tpublic_ip\030\005 \001(\t\022\017\n\007api_key\030\006 \001(\t\"\230\004" + "\n\rMetricPayload\022@\n\006series\030\001 \003(\01320.datado" + "g.agentpayload.MetricPayload.MetricSerie" + "s\032/\n\013MetricPoint\022\r\n\005value\030\001 \001(\001\022\021\n\ttimes" + "tamp\030\002 \001(\003\032&\n\010Resource\022\014\n\004type\030\001 \001(\t\022\014\n\004" + "name\030\002 \001(\t\032\254\002\n\014MetricSeries\022?\n\tresources" + "\030\001 \003(\0132,.datadog.agentpayload.MetricPayl" + "oad.Resource\022\016\n\006metric\030\002 \001(\t\022\014\n\004tags\030\003 \003" + "(\t\022?\n\006points\030\004 \003(\0132/.datadog.agentpayloa" + "d.MetricPayload.MetricPoint\022<\n\004type\030\005 \001(" + "\0162..datadog.agentpayload.MetricPayload.M" + "etricType\022\014\n\004unit\030\006 \001(\t\022\030\n\020source_type_n" + "ame\030\007 \001(\t\022\020\n\010interval\030\010 \001(\003J\004\010\t\020\n\"=\n\nMet" + "ricType\022\017\n\013UNSPECIFIED\020\000\022\t\n\005COUNT\020\001\022\010\n\004R" + "ATE\020\002\022\t\n\005GAUGE\020\003\"\252\002\n\rEventsPayload\0229\n\006ev" + "ents\030\001 \003(\0132).datadog.agentpayload.Events" + "Payload.Event\0226\n\010metadata\030\002 \001(\0132$.datado" + "g.agentpayload.CommonMetadata\032\245\001\n\005Event\022" + "\r\n\005title\030\001 \001(\t\022\014\n\004text\030\002 \001(\t\022\n\n\002ts\030\003 \001(\003" + "\022\020\n\010priority\030\004 \001(\t\022\014\n\004host\030\005 \001(\t\022\014\n\004tags" + "\030\006 \003(\t\022\022\n\nalert_type\030\007 \001(\t\022\027\n\017aggregatio" + "n_key\030\010 \001(\t\022\030\n\020source_type_name\030\t \001(\t\"\233\005" + "\n\rSketchPayload\022B\n\010sketches\030\001 \003(\0132*.data" + "dog.agentpayload.SketchPayload.SketchB\004\310" + "\336\037\000\022<\n\010metadata\030\002 \001(\0132$.datadog.agentpay" + "load.CommonMetadataB\004\310\336\037\000\032\207\004\n\006Sketch\022\016\n\006" + "metric\030\001 \001(\t\022\014\n\004host\030\002 \001(\t\022T\n\rdistributi" + "ons\030\003 \003(\01327.datadog.agentpayload.SketchP" + "ayload.Sketch.DistributionB\004\310\336\037\000\022\014\n\004tags" + "\030\004 \003(\t\022O\n\013dogsketches\030\007 \003(\01324.datadog.ag" + "entpayload.SketchPayload.Sketch.Dogsketc" + "hB\004\310\336\037\000\032\215\001\n\014Distribution\022\n\n\002ts\030\001 \001(\003\022\013\n\003" + "cnt\030\002 \001(\003\022\013\n\003min\030\003 \001(\001\022\013\n\003max\030\004 \001(\001\022\013\n\003a" + "vg\030\005 \001(\001\022\013\n\003sum\030\006 \001(\001\022\t\n\001v\030\007 \003(\001\022\t\n\001g\030\010 " + "\003(\r\022\r\n\005delta\030\t \003(\r\022\013\n\003buf\030\n \003(\001\032n\n\tDogsk" + "etch\022\n\n\002ts\030\001 \001(\003\022\013\n\003cnt\030\002 \001(\003\022\013\n\003min\030\003 \001" + "(\001\022\013\n\003max\030\004 \001(\001\022\013\n\003avg\030\005 \001(\001\022\013\n\003sum\030\006 \001(" + "\001\022\t\n\001k\030\007 \003(\021\022\t\n\001n\030\010 \003(\rJ\004\010\005\020\006J\004\010\006\020\007R\016dis" + "tributionsKR\016distributionsCB+Z)github.co" + "m/DataDog/agent-payload/v5/gogenb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.GoGoProtos.getDescriptor(), }); internal_static_datadog_agentpayload_CommonMetadata_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_datadog_agentpayload_CommonMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datadog_agentpayload_CommonMetadata_descriptor, new java.lang.String[] { "AgentVersion", "Timezone", "CurrentEpoch", "InternalIp", "PublicIp", "ApiKey", }); internal_static_datadog_agentpayload_MetricPayload_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_datadog_agentpayload_MetricPayload_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datadog_agentpayload_MetricPayload_descriptor, new java.lang.String[] { "Series", }); internal_static_datadog_agentpayload_MetricPayload_MetricPoint_descriptor = internal_static_datadog_agentpayload_MetricPayload_descriptor.getNestedTypes().get(0); internal_static_datadog_agentpayload_MetricPayload_MetricPoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datadog_agentpayload_MetricPayload_MetricPoint_descriptor, new java.lang.String[] { "Value", "Timestamp", }); internal_static_datadog_agentpayload_MetricPayload_Resource_descriptor = internal_static_datadog_agentpayload_MetricPayload_descriptor.getNestedTypes().get(1); internal_static_datadog_agentpayload_MetricPayload_Resource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datadog_agentpayload_MetricPayload_Resource_descriptor, new java.lang.String[] { "Type", "Name", }); internal_static_datadog_agentpayload_MetricPayload_MetricSeries_descriptor = internal_static_datadog_agentpayload_MetricPayload_descriptor.getNestedTypes().get(2); internal_static_datadog_agentpayload_MetricPayload_MetricSeries_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datadog_agentpayload_MetricPayload_MetricSeries_descriptor, new java.lang.String[] { "Resources", "Metric", "Tags", "Points", "Type", "Unit", "SourceTypeName", "Interval", }); internal_static_datadog_agentpayload_EventsPayload_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_datadog_agentpayload_EventsPayload_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datadog_agentpayload_EventsPayload_descriptor, new java.lang.String[] { "Events", "Metadata", }); internal_static_datadog_agentpayload_EventsPayload_Event_descriptor = internal_static_datadog_agentpayload_EventsPayload_descriptor.getNestedTypes().get(0); internal_static_datadog_agentpayload_EventsPayload_Event_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datadog_agentpayload_EventsPayload_Event_descriptor, new java.lang.String[] { "Title", "Text", "Ts", "Priority", "Host", "Tags", "AlertType", "AggregationKey", "SourceTypeName", }); internal_static_datadog_agentpayload_SketchPayload_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_datadog_agentpayload_SketchPayload_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datadog_agentpayload_SketchPayload_descriptor, new java.lang.String[] { "Sketches", "Metadata", }); internal_static_datadog_agentpayload_SketchPayload_Sketch_descriptor = internal_static_datadog_agentpayload_SketchPayload_descriptor.getNestedTypes().get(0); internal_static_datadog_agentpayload_SketchPayload_Sketch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datadog_agentpayload_SketchPayload_Sketch_descriptor, new java.lang.String[] { "Metric", "Host", "Distributions", "Tags", "Dogsketches", }); internal_static_datadog_agentpayload_SketchPayload_Sketch_Distribution_descriptor = internal_static_datadog_agentpayload_SketchPayload_Sketch_descriptor .getNestedTypes() .get(0); internal_static_datadog_agentpayload_SketchPayload_Sketch_Distribution_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datadog_agentpayload_SketchPayload_Sketch_Distribution_descriptor, new java.lang.String[] { "Ts", "Cnt", "Min", "Max", "Avg", "Sum", "V", "G", "Delta", "Buf", }); internal_static_datadog_agentpayload_SketchPayload_Sketch_Dogsketch_descriptor = internal_static_datadog_agentpayload_SketchPayload_Sketch_descriptor .getNestedTypes() .get(1); internal_static_datadog_agentpayload_SketchPayload_Sketch_Dogsketch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datadog_agentpayload_SketchPayload_Sketch_Dogsketch_descriptor, new java.lang.String[] { "Ts", "Cnt", "Min", "Max", "Avg", "Sum", "K", "N", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.nullable); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.protobuf.GoGoProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy