com.signalfx.metrics.protobuf.SignalFxProtocolBuffers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signalfx-java Show documentation
Show all versions of signalfx-java Show documentation
Bare minimum core library needed to sending metrics to SignalFx from Java clients
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: signal_fx_protocol_buffers.proto
// Protobuf Java Version: 3.25.5
package com.signalfx.metrics.protobuf;
public final class SignalFxProtocolBuffers {
private SignalFxProtocolBuffers() {}
public static void registerAllExtensions(
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.signalfx.shaded.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.signalfx.shaded.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code com.signalfx.metrics.protobuf.MetricType}
*/
public enum MetricType
implements com.signalfx.shaded.google.protobuf.ProtocolMessageEnum {
/**
*
**
* Numerical: Periodic, instantaneous measurement of some state.
*
*
* GAUGE = 0;
*/
GAUGE(0),
/**
*
**
* Numerical: Count of occurrences. Generally non-negative integers.
*
*
* COUNTER = 1;
*/
COUNTER(1),
/**
*
**
* String: Used for non-continuous quantities (that is, measurements where there is a fixed
* set of meaningful values). This is essentially a special case of gauge.
*
*
* ENUM = 2;
*/
ENUM(2),
/**
*
**
* Tracks a value that increases over time, where only the difference is important.
*
*
* CUMULATIVE_COUNTER = 3;
*/
CUMULATIVE_COUNTER(3),
;
/**
*
**
* Numerical: Periodic, instantaneous measurement of some state.
*
*
* GAUGE = 0;
*/
public static final int GAUGE_VALUE = 0;
/**
*
**
* Numerical: Count of occurrences. Generally non-negative integers.
*
*
* COUNTER = 1;
*/
public static final int COUNTER_VALUE = 1;
/**
*
**
* String: Used for non-continuous quantities (that is, measurements where there is a fixed
* set of meaningful values). This is essentially a special case of gauge.
*
*
* ENUM = 2;
*/
public static final int ENUM_VALUE = 2;
/**
*
**
* Tracks a value that increases over time, where only the difference is important.
*
*
* CUMULATIVE_COUNTER = 3;
*/
public static final int CUMULATIVE_COUNTER_VALUE = 3;
public final int getNumber() {
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 GAUGE;
case 1: return COUNTER;
case 2: return ENUM;
case 3: return CUMULATIVE_COUNTER;
default: return null;
}
}
public static com.signalfx.shaded.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.signalfx.shaded.google.protobuf.Internal.EnumLiteMap<
MetricType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public MetricType findValueByNumber(int number) {
return MetricType.forNumber(number);
}
};
public final com.signalfx.shaded.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.signalfx.shaded.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.signalfx.shaded.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.getDescriptor().getEnumTypes().get(0);
}
private static final MetricType[] VALUES = values();
public static MetricType valueOf(
com.signalfx.shaded.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private MetricType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.signalfx.metrics.protobuf.MetricType)
}
/**
*
**
* Different categories of events supported
*
*
* Protobuf enum {@code com.signalfx.metrics.protobuf.EventCategory}
*/
public enum EventCategory
implements com.signalfx.shaded.google.protobuf.ProtocolMessageEnum {
/**
*
**
* Created by user via UI or API, e.g. a deployment event
*
*
* USER_DEFINED = 1000000;
*/
USER_DEFINED(1000000),
/**
*
**
* Output by anomaly detectors
*
*
* ALERT = 100000;
*/
ALERT(100000),
/**
*
**
* Audit trail events
*
*
* AUDIT = 200000;
*/
AUDIT(200000),
/**
*
**
* Generated by analytics server
*
*
* JOB = 300000;
*/
JOB(300000),
/**
*
**
* @deprecated
* Event originated within collectd (deprecated in favor of AGENT)
*
*
* COLLECTD = 400000;
*/
COLLECTD(400000),
/**
*
**
* Service discovery event
*
*
* SERVICE_DISCOVERY = 500000;
*/
SERVICE_DISCOVERY(500000),
/**
*
**
* Created by exception appenders to denote exceptional events
*
*
* EXCEPTION = 700000;
*/
EXCEPTION(700000),
/**
*
**
* Event originated from an agent
*
*
* AGENT = 2000000;
*/
AGENT(2000000),
;
/**
*
**
* Created by user via UI or API, e.g. a deployment event
*
*
* USER_DEFINED = 1000000;
*/
public static final int USER_DEFINED_VALUE = 1000000;
/**
*
**
* Output by anomaly detectors
*
*
* ALERT = 100000;
*/
public static final int ALERT_VALUE = 100000;
/**
*
**
* Audit trail events
*
*
* AUDIT = 200000;
*/
public static final int AUDIT_VALUE = 200000;
/**
*
**
* Generated by analytics server
*
*
* JOB = 300000;
*/
public static final int JOB_VALUE = 300000;
/**
*
**
* @deprecated
* Event originated within collectd (deprecated in favor of AGENT)
*
*
* COLLECTD = 400000;
*/
public static final int COLLECTD_VALUE = 400000;
/**
*
**
* Service discovery event
*
*
* SERVICE_DISCOVERY = 500000;
*/
public static final int SERVICE_DISCOVERY_VALUE = 500000;
/**
*
**
* Created by exception appenders to denote exceptional events
*
*
* EXCEPTION = 700000;
*/
public static final int EXCEPTION_VALUE = 700000;
/**
*
**
* Event originated from an agent
*
*
* AGENT = 2000000;
*/
public static final int AGENT_VALUE = 2000000;
public final int getNumber() {
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 EventCategory 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 EventCategory forNumber(int value) {
switch (value) {
case 1000000: return USER_DEFINED;
case 100000: return ALERT;
case 200000: return AUDIT;
case 300000: return JOB;
case 400000: return COLLECTD;
case 500000: return SERVICE_DISCOVERY;
case 700000: return EXCEPTION;
case 2000000: return AGENT;
default: return null;
}
}
public static com.signalfx.shaded.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.signalfx.shaded.google.protobuf.Internal.EnumLiteMap<
EventCategory> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public EventCategory findValueByNumber(int number) {
return EventCategory.forNumber(number);
}
};
public final com.signalfx.shaded.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.signalfx.shaded.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.signalfx.shaded.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.getDescriptor().getEnumTypes().get(1);
}
private static final EventCategory[] VALUES = values();
public static EventCategory valueOf(
com.signalfx.shaded.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private EventCategory(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.signalfx.metrics.protobuf.EventCategory)
}
public interface DatumOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.signalfx.metrics.protobuf.Datum)
com.google.protobuf.MessageOrBuilder {
/**
* optional string strValue = 1;
* @return Whether the strValue field is set.
*/
boolean hasStrValue();
/**
* optional string strValue = 1;
* @return The strValue.
*/
java.lang.String getStrValue();
/**
* optional string strValue = 1;
* @return The bytes for strValue.
*/
com.signalfx.shaded.google.protobuf.ByteString
getStrValueBytes();
/**
* optional double doubleValue = 2;
* @return Whether the doubleValue field is set.
*/
boolean hasDoubleValue();
/**
* optional double doubleValue = 2;
* @return The doubleValue.
*/
double getDoubleValue();
/**
* optional int64 intValue = 3;
* @return Whether the intValue field is set.
*/
boolean hasIntValue();
/**
* optional int64 intValue = 3;
* @return The intValue.
*/
long getIntValue();
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.Datum}
*/
public static final class Datum extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.signalfx.metrics.protobuf.Datum)
DatumOrBuilder {
private static final long serialVersionUID = 0L;
// Use Datum.newBuilder() to construct.
private Datum(com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Datum() {
strValue_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Datum();
}
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Datum_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Datum_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.Builder.class);
}
private int bitField0_;
public static final int STRVALUE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object strValue_ = "";
/**
* optional string strValue = 1;
* @return Whether the strValue field is set.
*/
@java.lang.Override
public boolean hasStrValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string strValue = 1;
* @return The strValue.
*/
@java.lang.Override
public java.lang.String getStrValue() {
java.lang.Object ref = strValue_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.signalfx.shaded.google.protobuf.ByteString bs =
(com.signalfx.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
strValue_ = s;
}
return s;
}
}
/**
* optional string strValue = 1;
* @return The bytes for strValue.
*/
@java.lang.Override
public com.signalfx.shaded.google.protobuf.ByteString
getStrValueBytes() {
java.lang.Object ref = strValue_;
if (ref instanceof java.lang.String) {
com.signalfx.shaded.google.protobuf.ByteString b =
com.signalfx.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
strValue_ = b;
return b;
} else {
return (com.signalfx.shaded.google.protobuf.ByteString) ref;
}
}
public static final int DOUBLEVALUE_FIELD_NUMBER = 2;
private double doubleValue_ = 0D;
/**
* optional double doubleValue = 2;
* @return Whether the doubleValue field is set.
*/
@java.lang.Override
public boolean hasDoubleValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double doubleValue = 2;
* @return The doubleValue.
*/
@java.lang.Override
public double getDoubleValue() {
return doubleValue_;
}
public static final int INTVALUE_FIELD_NUMBER = 3;
private long intValue_ = 0L;
/**
* optional int64 intValue = 3;
* @return Whether the intValue field is set.
*/
@java.lang.Override
public boolean hasIntValue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 intValue = 3;
* @return The intValue.
*/
@java.lang.Override
public long getIntValue() {
return intValue_;
}
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.signalfx.shaded.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.writeString(output, 1, strValue_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(2, doubleValue_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, intValue_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.signalfx.shaded.google.protobuf.GeneratedMessageV3.computeStringSize(1, strValue_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeDoubleSize(2, doubleValue_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeInt64Size(3, intValue_);
}
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 com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum) obj;
if (hasStrValue() != other.hasStrValue()) return false;
if (hasStrValue()) {
if (!getStrValue()
.equals(other.getStrValue())) return false;
}
if (hasDoubleValue() != other.hasDoubleValue()) return false;
if (hasDoubleValue()) {
if (java.lang.Double.doubleToLongBits(getDoubleValue())
!= java.lang.Double.doubleToLongBits(
other.getDoubleValue())) return false;
}
if (hasIntValue() != other.hasIntValue()) return false;
if (hasIntValue()) {
if (getIntValue()
!= other.getIntValue()) 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 (hasStrValue()) {
hash = (37 * hash) + STRVALUE_FIELD_NUMBER;
hash = (53 * hash) + getStrValue().hashCode();
}
if (hasDoubleValue()) {
hash = (37 * hash) + DOUBLEVALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDoubleValue()));
}
if (hasIntValue()) {
hash = (37 * hash) + INTVALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getIntValue());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(
java.nio.ByteBuffer data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(
java.nio.ByteBuffer data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(byte[] data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(
byte[] data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseDelimitedFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.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(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum 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.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.Datum}
*/
public static final class Builder extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.Datum)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DatumOrBuilder {
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Datum_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Datum_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.Builder.class);
}
// Construct using com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.newBuilder()
private Builder() {
}
private Builder(
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
strValue_ = "";
doubleValue_ = 0D;
intValue_ = 0L;
return this;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Datum_descriptor;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.getDefaultInstance();
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.strValue_ = strValue_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.doubleValue_ = doubleValue_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.intValue_ = intValue_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.signalfx.shaded.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.signalfx.shaded.google.protobuf.Message other) {
if (other instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum) {
return mergeFrom((com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum other) {
if (other == com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.getDefaultInstance()) return this;
if (other.hasStrValue()) {
strValue_ = other.strValue_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasDoubleValue()) {
setDoubleValue(other.getDoubleValue());
}
if (other.hasIntValue()) {
setIntValue(other.getIntValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.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: {
strValue_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 17: {
doubleValue_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
case 24: {
intValue_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object strValue_ = "";
/**
* optional string strValue = 1;
* @return Whether the strValue field is set.
*/
public boolean hasStrValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string strValue = 1;
* @return The strValue.
*/
public java.lang.String getStrValue() {
java.lang.Object ref = strValue_;
if (!(ref instanceof java.lang.String)) {
com.signalfx.shaded.google.protobuf.ByteString bs =
(com.signalfx.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
strValue_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string strValue = 1;
* @return The bytes for strValue.
*/
public com.signalfx.shaded.google.protobuf.ByteString
getStrValueBytes() {
java.lang.Object ref = strValue_;
if (ref instanceof String) {
com.signalfx.shaded.google.protobuf.ByteString b =
com.signalfx.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
strValue_ = b;
return b;
} else {
return (com.signalfx.shaded.google.protobuf.ByteString) ref;
}
}
/**
* optional string strValue = 1;
* @param value The strValue to set.
* @return This builder for chaining.
*/
public Builder setStrValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
strValue_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string strValue = 1;
* @return This builder for chaining.
*/
public Builder clearStrValue() {
strValue_ = getDefaultInstance().getStrValue();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string strValue = 1;
* @param value The bytes for strValue to set.
* @return This builder for chaining.
*/
public Builder setStrValueBytes(
com.signalfx.shaded.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
strValue_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private double doubleValue_ ;
/**
* optional double doubleValue = 2;
* @return Whether the doubleValue field is set.
*/
@java.lang.Override
public boolean hasDoubleValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double doubleValue = 2;
* @return The doubleValue.
*/
@java.lang.Override
public double getDoubleValue() {
return doubleValue_;
}
/**
* optional double doubleValue = 2;
* @param value The doubleValue to set.
* @return This builder for chaining.
*/
public Builder setDoubleValue(double value) {
doubleValue_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional double doubleValue = 2;
* @return This builder for chaining.
*/
public Builder clearDoubleValue() {
bitField0_ = (bitField0_ & ~0x00000002);
doubleValue_ = 0D;
onChanged();
return this;
}
private long intValue_ ;
/**
* optional int64 intValue = 3;
* @return Whether the intValue field is set.
*/
@java.lang.Override
public boolean hasIntValue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 intValue = 3;
* @return The intValue.
*/
@java.lang.Override
public long getIntValue() {
return intValue_;
}
/**
* optional int64 intValue = 3;
* @param value The intValue to set.
* @return This builder for chaining.
*/
public Builder setIntValue(long value) {
intValue_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional int64 intValue = 3;
* @return This builder for chaining.
*/
public Builder clearIntValue() {
bitField0_ = (bitField0_ & ~0x00000004);
intValue_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.signalfx.metrics.protobuf.Datum)
}
// @@protoc_insertion_point(class_scope:com.signalfx.metrics.protobuf.Datum)
private static final com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum();
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.signalfx.shaded.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Datum parsePartialFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.signalfx.shaded.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.signalfx.shaded.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DimensionOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.signalfx.metrics.protobuf.Dimension)
com.google.protobuf.MessageOrBuilder {
/**
* optional string key = 1;
* @return Whether the key field is set.
*/
boolean hasKey();
/**
* optional string key = 1;
* @return The key.
*/
java.lang.String getKey();
/**
* optional string key = 1;
* @return The bytes for key.
*/
com.signalfx.shaded.google.protobuf.ByteString
getKeyBytes();
/**
* optional string value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* optional string value = 2;
* @return The value.
*/
java.lang.String getValue();
/**
* optional string value = 2;
* @return The bytes for value.
*/
com.signalfx.shaded.google.protobuf.ByteString
getValueBytes();
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.Dimension}
*/
public static final class Dimension extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.signalfx.metrics.protobuf.Dimension)
DimensionOrBuilder {
private static final long serialVersionUID = 0L;
// Use Dimension.newBuilder() to construct.
private Dimension(com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Dimension() {
key_ = "";
value_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Dimension();
}
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Dimension_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Dimension_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder.class);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object key_ = "";
/**
* optional string key = 1;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string key = 1;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.signalfx.shaded.google.protobuf.ByteString bs =
(com.signalfx.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
}
}
/**
* optional string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
public com.signalfx.shaded.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.signalfx.shaded.google.protobuf.ByteString b =
com.signalfx.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.signalfx.shaded.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object value_ = "";
/**
* optional string value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string value = 2;
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.signalfx.shaded.google.protobuf.ByteString bs =
(com.signalfx.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
}
}
/**
* optional string value = 2;
* @return The bytes for value.
*/
@java.lang.Override
public com.signalfx.shaded.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.signalfx.shaded.google.protobuf.ByteString b =
com.signalfx.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.signalfx.shaded.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.signalfx.shaded.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.signalfx.shaded.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.signalfx.shaded.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(
java.nio.ByteBuffer data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(
java.nio.ByteBuffer data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(byte[] data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(
byte[] data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseDelimitedFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.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(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension 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.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.Dimension}
*/
public static final class Builder extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.Dimension)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder {
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Dimension_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Dimension_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder.class);
}
// Construct using com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.newBuilder()
private Builder() {
}
private Builder(
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
key_ = "";
value_ = "";
return this;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Dimension_descriptor;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.getDefaultInstance();
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.key_ = key_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = value_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.signalfx.shaded.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.signalfx.shaded.google.protobuf.Message other) {
if (other instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension) {
return mergeFrom((com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension other) {
if (other == com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.getDefaultInstance()) return this;
if (other.hasKey()) {
key_ = other.key_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasValue()) {
value_ = other.value_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
key_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
value_ = input.readBytes();
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.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
* optional string key = 1;
* @return Whether the key field is set.
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string key = 1;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.signalfx.shaded.google.protobuf.ByteString bs =
(com.signalfx.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string key = 1;
* @return The bytes for key.
*/
public com.signalfx.shaded.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.signalfx.shaded.google.protobuf.ByteString b =
com.signalfx.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.signalfx.shaded.google.protobuf.ByteString) ref;
}
}
/**
* optional string key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
key_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.signalfx.shaded.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
key_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
* optional string value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string value = 2;
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.signalfx.shaded.google.protobuf.ByteString bs =
(com.signalfx.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string value = 2;
* @return The bytes for value.
*/
public com.signalfx.shaded.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.signalfx.shaded.google.protobuf.ByteString b =
com.signalfx.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.signalfx.shaded.google.protobuf.ByteString) ref;
}
}
/**
* optional string value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
value_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string value = 2;
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.signalfx.shaded.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
value_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.signalfx.metrics.protobuf.Dimension)
}
// @@protoc_insertion_point(class_scope:com.signalfx.metrics.protobuf.Dimension)
private static final com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension();
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.signalfx.shaded.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Dimension parsePartialFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.signalfx.shaded.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.signalfx.shaded.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataPointOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.signalfx.metrics.protobuf.DataPoint)
com.google.protobuf.MessageOrBuilder {
/**
* optional string source = 1;
* @return Whether the source field is set.
*/
boolean hasSource();
/**
* optional string source = 1;
* @return The source.
*/
java.lang.String getSource();
/**
* optional string source = 1;
* @return The bytes for source.
*/
com.signalfx.shaded.google.protobuf.ByteString
getSourceBytes();
/**
* optional string metric = 2;
* @return Whether the metric field is set.
*/
boolean hasMetric();
/**
* optional string metric = 2;
* @return The metric.
*/
java.lang.String getMetric();
/**
* optional string metric = 2;
* @return The bytes for metric.
*/
com.signalfx.shaded.google.protobuf.ByteString
getMetricBytes();
/**
* optional int64 timestamp = 3;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
* optional int64 timestamp = 3;
* @return The timestamp.
*/
long getTimestamp();
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
* @return The value.
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum getValue();
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DatumOrBuilder getValueOrBuilder();
/**
* optional .com.signalfx.metrics.protobuf.MetricType metricType = 5;
* @return Whether the metricType field is set.
*/
boolean hasMetricType();
/**
* optional .com.signalfx.metrics.protobuf.MetricType metricType = 5;
* @return The metricType.
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType getMetricType();
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
java.util.List
getDimensionsList();
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension getDimensions(int index);
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
int getDimensionsCount();
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder>
getDimensionsOrBuilderList();
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder getDimensionsOrBuilder(
int index);
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.DataPoint}
*/
public static final class DataPoint extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.signalfx.metrics.protobuf.DataPoint)
DataPointOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataPoint.newBuilder() to construct.
private DataPoint(com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataPoint() {
source_ = "";
metric_ = "";
metricType_ = 0;
dimensions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DataPoint();
}
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_DataPoint_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_DataPoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.Builder.class);
}
private int bitField0_;
public static final int SOURCE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object source_ = "";
/**
* optional string source = 1;
* @return Whether the source field is set.
*/
@java.lang.Override
public boolean hasSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string source = 1;
* @return The source.
*/
@java.lang.Override
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.signalfx.shaded.google.protobuf.ByteString bs =
(com.signalfx.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
source_ = s;
}
return s;
}
}
/**
* optional string source = 1;
* @return The bytes for source.
*/
@java.lang.Override
public com.signalfx.shaded.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof java.lang.String) {
com.signalfx.shaded.google.protobuf.ByteString b =
com.signalfx.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.signalfx.shaded.google.protobuf.ByteString) ref;
}
}
public static final int METRIC_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object metric_ = "";
/**
* optional string metric = 2;
* @return Whether the metric field is set.
*/
@java.lang.Override
public boolean hasMetric() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional 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.signalfx.shaded.google.protobuf.ByteString bs =
(com.signalfx.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
metric_ = s;
}
return s;
}
}
/**
* optional string metric = 2;
* @return The bytes for metric.
*/
@java.lang.Override
public com.signalfx.shaded.google.protobuf.ByteString
getMetricBytes() {
java.lang.Object ref = metric_;
if (ref instanceof java.lang.String) {
com.signalfx.shaded.google.protobuf.ByteString b =
com.signalfx.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
metric_ = b;
return b;
} else {
return (com.signalfx.shaded.google.protobuf.ByteString) ref;
}
}
public static final int TIMESTAMP_FIELD_NUMBER = 3;
private long timestamp_ = 0L;
/**
* optional int64 timestamp = 3;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 timestamp = 3;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
public static final int VALUE_FIELD_NUMBER = 4;
private com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum value_;
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
* @return The value.
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum getValue() {
return value_ == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.getDefaultInstance() : value_;
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DatumOrBuilder getValueOrBuilder() {
return value_ == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.getDefaultInstance() : value_;
}
public static final int METRICTYPE_FIELD_NUMBER = 5;
private int metricType_ = 0;
/**
* optional .com.signalfx.metrics.protobuf.MetricType metricType = 5;
* @return Whether the metricType field is set.
*/
@java.lang.Override public boolean hasMetricType() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .com.signalfx.metrics.protobuf.MetricType metricType = 5;
* @return The metricType.
*/
@java.lang.Override public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType getMetricType() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType result = com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType.forNumber(metricType_);
return result == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType.GAUGE : result;
}
public static final int DIMENSIONS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private java.util.List dimensions_;
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
@java.lang.Override
public java.util.List getDimensionsList() {
return dimensions_;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
@java.lang.Override
public java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder>
getDimensionsOrBuilderList() {
return dimensions_;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
@java.lang.Override
public int getDimensionsCount() {
return dimensions_.size();
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension getDimensions(int index) {
return dimensions_.get(index);
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder getDimensionsOrBuilder(
int index) {
return dimensions_.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.signalfx.shaded.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.writeString(output, 2, metric_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, timestamp_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getValue());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeEnum(5, metricType_);
}
for (int i = 0; i < dimensions_.size(); i++) {
output.writeMessage(6, dimensions_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.signalfx.shaded.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.signalfx.shaded.google.protobuf.GeneratedMessageV3.computeStringSize(2, metric_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeInt64Size(3, timestamp_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeMessageSize(4, getValue());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeEnumSize(5, metricType_);
}
for (int i = 0; i < dimensions_.size(); i++) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeMessageSize(6, dimensions_.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 com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint) obj;
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (!getSource()
.equals(other.getSource())) return false;
}
if (hasMetric() != other.hasMetric()) return false;
if (hasMetric()) {
if (!getMetric()
.equals(other.getMetric())) return false;
}
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (getTimestamp()
!= other.getTimestamp()) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (hasMetricType() != other.hasMetricType()) return false;
if (hasMetricType()) {
if (metricType_ != other.metricType_) return false;
}
if (!getDimensionsList()
.equals(other.getDimensionsList())) 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 (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
}
if (hasMetric()) {
hash = (37 * hash) + METRIC_FIELD_NUMBER;
hash = (53 * hash) + getMetric().hashCode();
}
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
if (hasMetricType()) {
hash = (37 * hash) + METRICTYPE_FIELD_NUMBER;
hash = (53 * hash) + metricType_;
}
if (getDimensionsCount() > 0) {
hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER;
hash = (53 * hash) + getDimensionsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(
java.nio.ByteBuffer data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(
java.nio.ByteBuffer data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(byte[] data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(
byte[] data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseDelimitedFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.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(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint 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.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.DataPoint}
*/
public static final class Builder extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.DataPoint)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointOrBuilder {
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_DataPoint_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_DataPoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.Builder.class);
}
// Construct using com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.signalfx.shaded.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValueFieldBuilder();
getDimensionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
source_ = "";
metric_ = "";
timestamp_ = 0L;
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
metricType_ = 0;
if (dimensionsBuilder_ == null) {
dimensions_ = java.util.Collections.emptyList();
} else {
dimensions_ = null;
dimensionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_DataPoint_descriptor;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.getDefaultInstance();
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint result) {
if (dimensionsBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
dimensions_ = java.util.Collections.unmodifiableList(dimensions_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.dimensions_ = dimensions_;
} else {
result.dimensions_ = dimensionsBuilder_.build();
}
}
private void buildPartial0(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.source_ = source_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.metric_ = metric_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.timestamp_ = timestamp_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.value_ = valueBuilder_ == null
? value_
: valueBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.metricType_ = metricType_;
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.signalfx.shaded.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.signalfx.shaded.google.protobuf.Message other) {
if (other instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint) {
return mergeFrom((com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint other) {
if (other == com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.getDefaultInstance()) return this;
if (other.hasSource()) {
source_ = other.source_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasMetric()) {
metric_ = other.metric_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
if (other.hasMetricType()) {
setMetricType(other.getMetricType());
}
if (dimensionsBuilder_ == null) {
if (!other.dimensions_.isEmpty()) {
if (dimensions_.isEmpty()) {
dimensions_ = other.dimensions_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureDimensionsIsMutable();
dimensions_.addAll(other.dimensions_);
}
onChanged();
}
} else {
if (!other.dimensions_.isEmpty()) {
if (dimensionsBuilder_.isEmpty()) {
dimensionsBuilder_.dispose();
dimensionsBuilder_ = null;
dimensions_ = other.dimensions_;
bitField0_ = (bitField0_ & ~0x00000020);
dimensionsBuilder_ =
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDimensionsFieldBuilder() : null;
} else {
dimensionsBuilder_.addAllMessages(other.dimensions_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.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: {
source_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
metric_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
timestamp_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34: {
input.readMessage(
getValueFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
int tmpRaw = input.readEnum();
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType tmpValue =
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(5, tmpRaw);
} else {
metricType_ = tmpRaw;
bitField0_ |= 0x00000010;
}
break;
} // case 40
case 50: {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension m =
input.readMessage(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.PARSER,
extensionRegistry);
if (dimensionsBuilder_ == null) {
ensureDimensionsIsMutable();
dimensions_.add(m);
} else {
dimensionsBuilder_.addMessage(m);
}
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object source_ = "";
/**
* optional string source = 1;
* @return Whether the source field is set.
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string source = 1;
* @return The source.
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (!(ref instanceof java.lang.String)) {
com.signalfx.shaded.google.protobuf.ByteString bs =
(com.signalfx.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
source_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string source = 1;
* @return The bytes for source.
*/
public com.signalfx.shaded.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof String) {
com.signalfx.shaded.google.protobuf.ByteString b =
com.signalfx.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.signalfx.shaded.google.protobuf.ByteString) ref;
}
}
/**
* optional string source = 1;
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
source_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string source = 1;
* @return This builder for chaining.
*/
public Builder clearSource() {
source_ = getDefaultInstance().getSource();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string source = 1;
* @param value The bytes for source to set.
* @return This builder for chaining.
*/
public Builder setSourceBytes(
com.signalfx.shaded.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
source_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object metric_ = "";
/**
* optional string metric = 2;
* @return Whether the metric field is set.
*/
public boolean hasMetric() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string metric = 2;
* @return The metric.
*/
public java.lang.String getMetric() {
java.lang.Object ref = metric_;
if (!(ref instanceof java.lang.String)) {
com.signalfx.shaded.google.protobuf.ByteString bs =
(com.signalfx.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
metric_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string metric = 2;
* @return The bytes for metric.
*/
public com.signalfx.shaded.google.protobuf.ByteString
getMetricBytes() {
java.lang.Object ref = metric_;
if (ref instanceof String) {
com.signalfx.shaded.google.protobuf.ByteString b =
com.signalfx.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
metric_ = b;
return b;
} else {
return (com.signalfx.shaded.google.protobuf.ByteString) ref;
}
}
/**
* optional 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;
}
/**
* optional string metric = 2;
* @return This builder for chaining.
*/
public Builder clearMetric() {
metric_ = getDefaultInstance().getMetric();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string metric = 2;
* @param value The bytes for metric to set.
* @return This builder for chaining.
*/
public Builder setMetricBytes(
com.signalfx.shaded.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
metric_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private long timestamp_ ;
/**
* optional int64 timestamp = 3;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 timestamp = 3;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
/**
* optional int64 timestamp = 3;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional int64 timestamp = 3;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000004);
timestamp_ = 0L;
onChanged();
return this;
}
private com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum value_;
private com.signalfx.shaded.google.protobuf.SingleFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DatumOrBuilder> valueBuilder_;
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
* @return The value.
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum getValue() {
if (valueBuilder_ == null) {
return value_ == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
public Builder setValue(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
public Builder setValue(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
public Builder mergeValue(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
value_ != null &&
value_ != com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.getDefaultInstance()) {
getValueBuilder().mergeFrom(value);
} else {
value_ = value;
}
} else {
valueBuilder_.mergeFrom(value);
}
if (value_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000008);
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.Builder getValueBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DatumOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.getDefaultInstance() : value_;
}
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
private com.signalfx.shaded.google.protobuf.SingleFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DatumOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DatumOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
private int metricType_ = 0;
/**
* optional .com.signalfx.metrics.protobuf.MetricType metricType = 5;
* @return Whether the metricType field is set.
*/
@java.lang.Override public boolean hasMetricType() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .com.signalfx.metrics.protobuf.MetricType metricType = 5;
* @return The metricType.
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType getMetricType() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType result = com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType.forNumber(metricType_);
return result == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType.GAUGE : result;
}
/**
* optional .com.signalfx.metrics.protobuf.MetricType metricType = 5;
* @param value The metricType to set.
* @return This builder for chaining.
*/
public Builder setMetricType(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
metricType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.MetricType metricType = 5;
* @return This builder for chaining.
*/
public Builder clearMetricType() {
bitField0_ = (bitField0_ & ~0x00000010);
metricType_ = 0;
onChanged();
return this;
}
private java.util.List dimensions_ =
java.util.Collections.emptyList();
private void ensureDimensionsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
dimensions_ = new java.util.ArrayList(dimensions_);
bitField0_ |= 0x00000020;
}
}
private com.signalfx.shaded.google.protobuf.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder> dimensionsBuilder_;
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public java.util.List getDimensionsList() {
if (dimensionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(dimensions_);
} else {
return dimensionsBuilder_.getMessageList();
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public int getDimensionsCount() {
if (dimensionsBuilder_ == null) {
return dimensions_.size();
} else {
return dimensionsBuilder_.getCount();
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension getDimensions(int index) {
if (dimensionsBuilder_ == null) {
return dimensions_.get(index);
} else {
return dimensionsBuilder_.getMessage(index);
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public Builder setDimensions(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension value) {
if (dimensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDimensionsIsMutable();
dimensions_.set(index, value);
onChanged();
} else {
dimensionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public Builder setDimensions(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder builderForValue) {
if (dimensionsBuilder_ == null) {
ensureDimensionsIsMutable();
dimensions_.set(index, builderForValue.build());
onChanged();
} else {
dimensionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public Builder addDimensions(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension value) {
if (dimensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDimensionsIsMutable();
dimensions_.add(value);
onChanged();
} else {
dimensionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public Builder addDimensions(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension value) {
if (dimensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDimensionsIsMutable();
dimensions_.add(index, value);
onChanged();
} else {
dimensionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public Builder addDimensions(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder builderForValue) {
if (dimensionsBuilder_ == null) {
ensureDimensionsIsMutable();
dimensions_.add(builderForValue.build());
onChanged();
} else {
dimensionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public Builder addDimensions(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder builderForValue) {
if (dimensionsBuilder_ == null) {
ensureDimensionsIsMutable();
dimensions_.add(index, builderForValue.build());
onChanged();
} else {
dimensionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public Builder addAllDimensions(
java.lang.Iterable extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension> values) {
if (dimensionsBuilder_ == null) {
ensureDimensionsIsMutable();
com.signalfx.shaded.google.protobuf.AbstractMessageLite.Builder.addAll(
values, dimensions_);
onChanged();
} else {
dimensionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public Builder clearDimensions() {
if (dimensionsBuilder_ == null) {
dimensions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
dimensionsBuilder_.clear();
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public Builder removeDimensions(int index) {
if (dimensionsBuilder_ == null) {
ensureDimensionsIsMutable();
dimensions_.remove(index);
onChanged();
} else {
dimensionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder getDimensionsBuilder(
int index) {
return getDimensionsFieldBuilder().getBuilder(index);
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder getDimensionsOrBuilder(
int index) {
if (dimensionsBuilder_ == null) {
return dimensions_.get(index); } else {
return dimensionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder>
getDimensionsOrBuilderList() {
if (dimensionsBuilder_ != null) {
return dimensionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dimensions_);
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder addDimensionsBuilder() {
return getDimensionsFieldBuilder().addBuilder(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.getDefaultInstance());
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder addDimensionsBuilder(
int index) {
return getDimensionsFieldBuilder().addBuilder(
index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.getDefaultInstance());
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public java.util.List
getDimensionsBuilderList() {
return getDimensionsFieldBuilder().getBuilderList();
}
private com.signalfx.shaded.google.protobuf.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder>
getDimensionsFieldBuilder() {
if (dimensionsBuilder_ == null) {
dimensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder>(
dimensions_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
dimensions_ = null;
}
return dimensionsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.signalfx.metrics.protobuf.DataPoint)
}
// @@protoc_insertion_point(class_scope:com.signalfx.metrics.protobuf.DataPoint)
private static final com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint();
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.signalfx.shaded.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataPoint parsePartialFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.signalfx.shaded.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.signalfx.shaded.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataPointUploadMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.signalfx.metrics.protobuf.DataPointUploadMessage)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
java.util.List
getDatapointsList();
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint getDatapoints(int index);
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
int getDatapointsCount();
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointOrBuilder>
getDatapointsOrBuilderList();
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointOrBuilder getDatapointsOrBuilder(
int index);
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.DataPointUploadMessage}
*/
public static final class DataPointUploadMessage extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.signalfx.metrics.protobuf.DataPointUploadMessage)
DataPointUploadMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataPointUploadMessage.newBuilder() to construct.
private DataPointUploadMessage(com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataPointUploadMessage() {
datapoints_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DataPointUploadMessage();
}
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_DataPointUploadMessage_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_DataPointUploadMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage.Builder.class);
}
public static final int DATAPOINTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List datapoints_;
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
@java.lang.Override
public java.util.List getDatapointsList() {
return datapoints_;
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
@java.lang.Override
public java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointOrBuilder>
getDatapointsOrBuilderList() {
return datapoints_;
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
@java.lang.Override
public int getDatapointsCount() {
return datapoints_.size();
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint getDatapoints(int index) {
return datapoints_.get(index);
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointOrBuilder getDatapointsOrBuilder(
int index) {
return datapoints_.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.signalfx.shaded.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < datapoints_.size(); i++) {
output.writeMessage(1, datapoints_.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 < datapoints_.size(); i++) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeMessageSize(1, datapoints_.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 com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage) obj;
if (!getDatapointsList()
.equals(other.getDatapointsList())) 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 (getDatapointsCount() > 0) {
hash = (37 * hash) + DATAPOINTS_FIELD_NUMBER;
hash = (53 * hash) + getDatapointsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(
java.nio.ByteBuffer data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(
java.nio.ByteBuffer data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(byte[] data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(
byte[] data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseDelimitedFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.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(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage 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.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.DataPointUploadMessage}
*/
public static final class Builder extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.DataPointUploadMessage)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessageOrBuilder {
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_DataPointUploadMessage_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_DataPointUploadMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage.Builder.class);
}
// Construct using com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage.newBuilder()
private Builder() {
}
private Builder(
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (datapointsBuilder_ == null) {
datapoints_ = java.util.Collections.emptyList();
} else {
datapoints_ = null;
datapointsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_DataPointUploadMessage_descriptor;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage.getDefaultInstance();
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage result) {
if (datapointsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
datapoints_ = java.util.Collections.unmodifiableList(datapoints_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.datapoints_ = datapoints_;
} else {
result.datapoints_ = datapointsBuilder_.build();
}
}
private void buildPartial0(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.signalfx.shaded.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.signalfx.shaded.google.protobuf.Message other) {
if (other instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage) {
return mergeFrom((com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage other) {
if (other == com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage.getDefaultInstance()) return this;
if (datapointsBuilder_ == null) {
if (!other.datapoints_.isEmpty()) {
if (datapoints_.isEmpty()) {
datapoints_ = other.datapoints_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDatapointsIsMutable();
datapoints_.addAll(other.datapoints_);
}
onChanged();
}
} else {
if (!other.datapoints_.isEmpty()) {
if (datapointsBuilder_.isEmpty()) {
datapointsBuilder_.dispose();
datapointsBuilder_ = null;
datapoints_ = other.datapoints_;
bitField0_ = (bitField0_ & ~0x00000001);
datapointsBuilder_ =
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDatapointsFieldBuilder() : null;
} else {
datapointsBuilder_.addAllMessages(other.datapoints_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint m =
input.readMessage(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.PARSER,
extensionRegistry);
if (datapointsBuilder_ == null) {
ensureDatapointsIsMutable();
datapoints_.add(m);
} else {
datapointsBuilder_.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.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List datapoints_ =
java.util.Collections.emptyList();
private void ensureDatapointsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
datapoints_ = new java.util.ArrayList(datapoints_);
bitField0_ |= 0x00000001;
}
}
private com.signalfx.shaded.google.protobuf.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointOrBuilder> datapointsBuilder_;
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public java.util.List getDatapointsList() {
if (datapointsBuilder_ == null) {
return java.util.Collections.unmodifiableList(datapoints_);
} else {
return datapointsBuilder_.getMessageList();
}
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public int getDatapointsCount() {
if (datapointsBuilder_ == null) {
return datapoints_.size();
} else {
return datapointsBuilder_.getCount();
}
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint getDatapoints(int index) {
if (datapointsBuilder_ == null) {
return datapoints_.get(index);
} else {
return datapointsBuilder_.getMessage(index);
}
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public Builder setDatapoints(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint value) {
if (datapointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDatapointsIsMutable();
datapoints_.set(index, value);
onChanged();
} else {
datapointsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public Builder setDatapoints(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.Builder builderForValue) {
if (datapointsBuilder_ == null) {
ensureDatapointsIsMutable();
datapoints_.set(index, builderForValue.build());
onChanged();
} else {
datapointsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public Builder addDatapoints(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint value) {
if (datapointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDatapointsIsMutable();
datapoints_.add(value);
onChanged();
} else {
datapointsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public Builder addDatapoints(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint value) {
if (datapointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDatapointsIsMutable();
datapoints_.add(index, value);
onChanged();
} else {
datapointsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public Builder addDatapoints(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.Builder builderForValue) {
if (datapointsBuilder_ == null) {
ensureDatapointsIsMutable();
datapoints_.add(builderForValue.build());
onChanged();
} else {
datapointsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public Builder addDatapoints(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.Builder builderForValue) {
if (datapointsBuilder_ == null) {
ensureDatapointsIsMutable();
datapoints_.add(index, builderForValue.build());
onChanged();
} else {
datapointsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public Builder addAllDatapoints(
java.lang.Iterable extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint> values) {
if (datapointsBuilder_ == null) {
ensureDatapointsIsMutable();
com.signalfx.shaded.google.protobuf.AbstractMessageLite.Builder.addAll(
values, datapoints_);
onChanged();
} else {
datapointsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public Builder clearDatapoints() {
if (datapointsBuilder_ == null) {
datapoints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
datapointsBuilder_.clear();
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public Builder removeDatapoints(int index) {
if (datapointsBuilder_ == null) {
ensureDatapointsIsMutable();
datapoints_.remove(index);
onChanged();
} else {
datapointsBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.Builder getDatapointsBuilder(
int index) {
return getDatapointsFieldBuilder().getBuilder(index);
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointOrBuilder getDatapointsOrBuilder(
int index) {
if (datapointsBuilder_ == null) {
return datapoints_.get(index); } else {
return datapointsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointOrBuilder>
getDatapointsOrBuilderList() {
if (datapointsBuilder_ != null) {
return datapointsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(datapoints_);
}
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.Builder addDatapointsBuilder() {
return getDatapointsFieldBuilder().addBuilder(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.getDefaultInstance());
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.Builder addDatapointsBuilder(
int index) {
return getDatapointsFieldBuilder().addBuilder(
index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.getDefaultInstance());
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public java.util.List
getDatapointsBuilderList() {
return getDatapointsFieldBuilder().getBuilderList();
}
private com.signalfx.shaded.google.protobuf.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointOrBuilder>
getDatapointsFieldBuilder() {
if (datapointsBuilder_ == null) {
datapointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointOrBuilder>(
datapoints_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
datapoints_ = null;
}
return datapointsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.signalfx.metrics.protobuf.DataPointUploadMessage)
}
// @@protoc_insertion_point(class_scope:com.signalfx.metrics.protobuf.DataPointUploadMessage)
private static final com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage();
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.signalfx.shaded.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataPointUploadMessage parsePartialFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.signalfx.shaded.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.signalfx.shaded.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PointValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.signalfx.metrics.protobuf.PointValue)
com.google.protobuf.MessageOrBuilder {
/**
* optional int64 timestamp = 3;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
* optional int64 timestamp = 3;
* @return The timestamp.
*/
long getTimestamp();
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
* @return The value.
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum getValue();
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DatumOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.PointValue}
*/
public static final class PointValue extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.signalfx.metrics.protobuf.PointValue)
PointValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use PointValue.newBuilder() to construct.
private PointValue(com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PointValue() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PointValue();
}
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_PointValue_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_PointValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue.Builder.class);
}
private int bitField0_;
public static final int TIMESTAMP_FIELD_NUMBER = 3;
private long timestamp_ = 0L;
/**
* optional int64 timestamp = 3;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 timestamp = 3;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
public static final int VALUE_FIELD_NUMBER = 4;
private com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum value_;
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
* @return The value.
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum getValue() {
return value_ == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.getDefaultInstance() : value_;
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DatumOrBuilder getValueOrBuilder() {
return value_ == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.getDefaultInstance() : value_;
}
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.signalfx.shaded.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(3, timestamp_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getValue());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeInt64Size(3, timestamp_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeMessageSize(4, getValue());
}
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 com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue) obj;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (getTimestamp()
!= other.getTimestamp()) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(
java.nio.ByteBuffer data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(
java.nio.ByteBuffer data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(byte[] data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(
byte[] data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseDelimitedFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.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(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue 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.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.PointValue}
*/
public static final class Builder extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.PointValue)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValueOrBuilder {
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_PointValue_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_PointValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue.Builder.class);
}
// Construct using com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.signalfx.shaded.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
timestamp_ = 0L;
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_PointValue_descriptor;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue.getDefaultInstance();
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.timestamp_ = timestamp_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = valueBuilder_ == null
? value_
: valueBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.signalfx.shaded.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.signalfx.shaded.google.protobuf.Message other) {
if (other instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue) {
return mergeFrom((com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue other) {
if (other == com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue.getDefaultInstance()) return this;
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.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 24: {
timestamp_ = input.readInt64();
bitField0_ |= 0x00000001;
break;
} // case 24
case 34: {
input.readMessage(
getValueFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long timestamp_ ;
/**
* optional int64 timestamp = 3;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 timestamp = 3;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
/**
* optional int64 timestamp = 3;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional int64 timestamp = 3;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000001);
timestamp_ = 0L;
onChanged();
return this;
}
private com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum value_;
private com.signalfx.shaded.google.protobuf.SingleFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DatumOrBuilder> valueBuilder_;
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
* @return The value.
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum getValue() {
if (valueBuilder_ == null) {
return value_ == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
public Builder setValue(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
public Builder setValue(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
public Builder mergeValue(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
value_ != null &&
value_ != com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.getDefaultInstance()) {
getValueBuilder().mergeFrom(value);
} else {
value_ = value;
}
} else {
valueBuilder_.mergeFrom(value);
}
if (value_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.Builder getValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DatumOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.getDefaultInstance() : value_;
}
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
private com.signalfx.shaded.google.protobuf.SingleFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DatumOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DatumOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.signalfx.metrics.protobuf.PointValue)
}
// @@protoc_insertion_point(class_scope:com.signalfx.metrics.protobuf.PointValue)
private static final com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue();
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.signalfx.shaded.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PointValue parsePartialFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.signalfx.shaded.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.signalfx.shaded.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PropertyOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.signalfx.metrics.protobuf.Property)
com.google.protobuf.MessageOrBuilder {
/**
* optional string key = 1;
* @return Whether the key field is set.
*/
boolean hasKey();
/**
* optional string key = 1;
* @return The key.
*/
java.lang.String getKey();
/**
* optional string key = 1;
* @return The bytes for key.
*/
com.signalfx.shaded.google.protobuf.ByteString
getKeyBytes();
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
* @return The value.
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue getValue();
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValueOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.Property}
*/
public static final class Property extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.signalfx.metrics.protobuf.Property)
PropertyOrBuilder {
private static final long serialVersionUID = 0L;
// Use Property.newBuilder() to construct.
private Property(com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Property() {
key_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Property();
}
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Property_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Property_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.Builder.class);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object key_ = "";
/**
* optional string key = 1;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string key = 1;
* @return The key.
*/
@java.lang.Override
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.signalfx.shaded.google.protobuf.ByteString bs =
(com.signalfx.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
}
}
/**
* optional string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
public com.signalfx.shaded.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.signalfx.shaded.google.protobuf.ByteString b =
com.signalfx.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.signalfx.shaded.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue value_;
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
* @return The value.
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue getValue() {
return value_ == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.getDefaultInstance() : value_;
}
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValueOrBuilder getValueOrBuilder() {
return value_ == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.getDefaultInstance() : value_;
}
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.signalfx.shaded.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getValue());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.signalfx.shaded.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeMessageSize(2, getValue());
}
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 com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(
java.nio.ByteBuffer data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(
java.nio.ByteBuffer data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(byte[] data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(
byte[] data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseDelimitedFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.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(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property 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.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.Property}
*/
public static final class Builder extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.Property)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyOrBuilder {
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Property_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Property_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.Builder.class);
}
// Construct using com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.signalfx.shaded.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValueFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
key_ = "";
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Property_descriptor;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.getDefaultInstance();
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.key_ = key_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.value_ = valueBuilder_ == null
? value_
: valueBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.signalfx.shaded.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.signalfx.shaded.google.protobuf.Message other) {
if (other instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property) {
return mergeFrom((com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property other) {
if (other == com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.getDefaultInstance()) return this;
if (other.hasKey()) {
key_ = other.key_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
key_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getValueFieldBuilder().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.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
* optional string key = 1;
* @return Whether the key field is set.
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string key = 1;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.signalfx.shaded.google.protobuf.ByteString bs =
(com.signalfx.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string key = 1;
* @return The bytes for key.
*/
public com.signalfx.shaded.google.protobuf.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.signalfx.shaded.google.protobuf.ByteString b =
com.signalfx.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.signalfx.shaded.google.protobuf.ByteString) ref;
}
}
/**
* optional string key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
key_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.signalfx.shaded.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
key_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue value_;
private com.signalfx.shaded.google.protobuf.SingleFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValueOrBuilder> valueBuilder_;
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
* @return The value.
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue getValue() {
if (valueBuilder_ == null) {
return value_ == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
*/
public Builder setValue(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
*/
public Builder setValue(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
*/
public Builder mergeValue(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
value_ != null &&
value_ != com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.getDefaultInstance()) {
getValueBuilder().mergeFrom(value);
} else {
value_ = value;
}
} else {
valueBuilder_.mergeFrom(value);
}
if (value_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.Builder getValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.getDefaultInstance() : value_;
}
}
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
*/
private com.signalfx.shaded.google.protobuf.SingleFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValueOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.signalfx.metrics.protobuf.Property)
}
// @@protoc_insertion_point(class_scope:com.signalfx.metrics.protobuf.Property)
private static final com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property();
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.signalfx.shaded.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Property parsePartialFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.signalfx.shaded.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.signalfx.shaded.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PropertyValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.signalfx.metrics.protobuf.PropertyValue)
com.google.protobuf.MessageOrBuilder {
/**
* optional string strValue = 1;
* @return Whether the strValue field is set.
*/
boolean hasStrValue();
/**
* optional string strValue = 1;
* @return The strValue.
*/
java.lang.String getStrValue();
/**
* optional string strValue = 1;
* @return The bytes for strValue.
*/
com.signalfx.shaded.google.protobuf.ByteString
getStrValueBytes();
/**
* optional double doubleValue = 2;
* @return Whether the doubleValue field is set.
*/
boolean hasDoubleValue();
/**
* optional double doubleValue = 2;
* @return The doubleValue.
*/
double getDoubleValue();
/**
* optional int64 intValue = 3;
* @return Whether the intValue field is set.
*/
boolean hasIntValue();
/**
* optional int64 intValue = 3;
* @return The intValue.
*/
long getIntValue();
/**
* optional bool boolValue = 4;
* @return Whether the boolValue field is set.
*/
boolean hasBoolValue();
/**
* optional bool boolValue = 4;
* @return The boolValue.
*/
boolean getBoolValue();
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.PropertyValue}
*/
public static final class PropertyValue extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.signalfx.metrics.protobuf.PropertyValue)
PropertyValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use PropertyValue.newBuilder() to construct.
private PropertyValue(com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PropertyValue() {
strValue_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PropertyValue();
}
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_PropertyValue_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_PropertyValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.Builder.class);
}
private int bitField0_;
public static final int STRVALUE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object strValue_ = "";
/**
* optional string strValue = 1;
* @return Whether the strValue field is set.
*/
@java.lang.Override
public boolean hasStrValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string strValue = 1;
* @return The strValue.
*/
@java.lang.Override
public java.lang.String getStrValue() {
java.lang.Object ref = strValue_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.signalfx.shaded.google.protobuf.ByteString bs =
(com.signalfx.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
strValue_ = s;
}
return s;
}
}
/**
* optional string strValue = 1;
* @return The bytes for strValue.
*/
@java.lang.Override
public com.signalfx.shaded.google.protobuf.ByteString
getStrValueBytes() {
java.lang.Object ref = strValue_;
if (ref instanceof java.lang.String) {
com.signalfx.shaded.google.protobuf.ByteString b =
com.signalfx.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
strValue_ = b;
return b;
} else {
return (com.signalfx.shaded.google.protobuf.ByteString) ref;
}
}
public static final int DOUBLEVALUE_FIELD_NUMBER = 2;
private double doubleValue_ = 0D;
/**
* optional double doubleValue = 2;
* @return Whether the doubleValue field is set.
*/
@java.lang.Override
public boolean hasDoubleValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double doubleValue = 2;
* @return The doubleValue.
*/
@java.lang.Override
public double getDoubleValue() {
return doubleValue_;
}
public static final int INTVALUE_FIELD_NUMBER = 3;
private long intValue_ = 0L;
/**
* optional int64 intValue = 3;
* @return Whether the intValue field is set.
*/
@java.lang.Override
public boolean hasIntValue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 intValue = 3;
* @return The intValue.
*/
@java.lang.Override
public long getIntValue() {
return intValue_;
}
public static final int BOOLVALUE_FIELD_NUMBER = 4;
private boolean boolValue_ = false;
/**
* optional bool boolValue = 4;
* @return Whether the boolValue field is set.
*/
@java.lang.Override
public boolean hasBoolValue() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool boolValue = 4;
* @return The boolValue.
*/
@java.lang.Override
public boolean getBoolValue() {
return boolValue_;
}
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.signalfx.shaded.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.writeString(output, 1, strValue_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(2, doubleValue_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, intValue_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(4, boolValue_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.signalfx.shaded.google.protobuf.GeneratedMessageV3.computeStringSize(1, strValue_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeDoubleSize(2, doubleValue_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeInt64Size(3, intValue_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeBoolSize(4, boolValue_);
}
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 com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue) obj;
if (hasStrValue() != other.hasStrValue()) return false;
if (hasStrValue()) {
if (!getStrValue()
.equals(other.getStrValue())) return false;
}
if (hasDoubleValue() != other.hasDoubleValue()) return false;
if (hasDoubleValue()) {
if (java.lang.Double.doubleToLongBits(getDoubleValue())
!= java.lang.Double.doubleToLongBits(
other.getDoubleValue())) return false;
}
if (hasIntValue() != other.hasIntValue()) return false;
if (hasIntValue()) {
if (getIntValue()
!= other.getIntValue()) return false;
}
if (hasBoolValue() != other.hasBoolValue()) return false;
if (hasBoolValue()) {
if (getBoolValue()
!= other.getBoolValue()) 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 (hasStrValue()) {
hash = (37 * hash) + STRVALUE_FIELD_NUMBER;
hash = (53 * hash) + getStrValue().hashCode();
}
if (hasDoubleValue()) {
hash = (37 * hash) + DOUBLEVALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDoubleValue()));
}
if (hasIntValue()) {
hash = (37 * hash) + INTVALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getIntValue());
}
if (hasBoolValue()) {
hash = (37 * hash) + BOOLVALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBoolValue());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(
java.nio.ByteBuffer data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(
java.nio.ByteBuffer data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(byte[] data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(
byte[] data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseDelimitedFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.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(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue 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.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.PropertyValue}
*/
public static final class Builder extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.PropertyValue)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValueOrBuilder {
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_PropertyValue_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_PropertyValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.Builder.class);
}
// Construct using com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.newBuilder()
private Builder() {
}
private Builder(
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
strValue_ = "";
doubleValue_ = 0D;
intValue_ = 0L;
boolValue_ = false;
return this;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_PropertyValue_descriptor;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.getDefaultInstance();
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.strValue_ = strValue_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.doubleValue_ = doubleValue_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.intValue_ = intValue_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.boolValue_ = boolValue_;
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.signalfx.shaded.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.signalfx.shaded.google.protobuf.Message other) {
if (other instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue) {
return mergeFrom((com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue other) {
if (other == com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.getDefaultInstance()) return this;
if (other.hasStrValue()) {
strValue_ = other.strValue_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasDoubleValue()) {
setDoubleValue(other.getDoubleValue());
}
if (other.hasIntValue()) {
setIntValue(other.getIntValue());
}
if (other.hasBoolValue()) {
setBoolValue(other.getBoolValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.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: {
strValue_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 17: {
doubleValue_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
case 24: {
intValue_ = input.readInt64();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
boolValue_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object strValue_ = "";
/**
* optional string strValue = 1;
* @return Whether the strValue field is set.
*/
public boolean hasStrValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string strValue = 1;
* @return The strValue.
*/
public java.lang.String getStrValue() {
java.lang.Object ref = strValue_;
if (!(ref instanceof java.lang.String)) {
com.signalfx.shaded.google.protobuf.ByteString bs =
(com.signalfx.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
strValue_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string strValue = 1;
* @return The bytes for strValue.
*/
public com.signalfx.shaded.google.protobuf.ByteString
getStrValueBytes() {
java.lang.Object ref = strValue_;
if (ref instanceof String) {
com.signalfx.shaded.google.protobuf.ByteString b =
com.signalfx.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
strValue_ = b;
return b;
} else {
return (com.signalfx.shaded.google.protobuf.ByteString) ref;
}
}
/**
* optional string strValue = 1;
* @param value The strValue to set.
* @return This builder for chaining.
*/
public Builder setStrValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
strValue_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string strValue = 1;
* @return This builder for chaining.
*/
public Builder clearStrValue() {
strValue_ = getDefaultInstance().getStrValue();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string strValue = 1;
* @param value The bytes for strValue to set.
* @return This builder for chaining.
*/
public Builder setStrValueBytes(
com.signalfx.shaded.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
strValue_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private double doubleValue_ ;
/**
* optional double doubleValue = 2;
* @return Whether the doubleValue field is set.
*/
@java.lang.Override
public boolean hasDoubleValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double doubleValue = 2;
* @return The doubleValue.
*/
@java.lang.Override
public double getDoubleValue() {
return doubleValue_;
}
/**
* optional double doubleValue = 2;
* @param value The doubleValue to set.
* @return This builder for chaining.
*/
public Builder setDoubleValue(double value) {
doubleValue_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional double doubleValue = 2;
* @return This builder for chaining.
*/
public Builder clearDoubleValue() {
bitField0_ = (bitField0_ & ~0x00000002);
doubleValue_ = 0D;
onChanged();
return this;
}
private long intValue_ ;
/**
* optional int64 intValue = 3;
* @return Whether the intValue field is set.
*/
@java.lang.Override
public boolean hasIntValue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 intValue = 3;
* @return The intValue.
*/
@java.lang.Override
public long getIntValue() {
return intValue_;
}
/**
* optional int64 intValue = 3;
* @param value The intValue to set.
* @return This builder for chaining.
*/
public Builder setIntValue(long value) {
intValue_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional int64 intValue = 3;
* @return This builder for chaining.
*/
public Builder clearIntValue() {
bitField0_ = (bitField0_ & ~0x00000004);
intValue_ = 0L;
onChanged();
return this;
}
private boolean boolValue_ ;
/**
* optional bool boolValue = 4;
* @return Whether the boolValue field is set.
*/
@java.lang.Override
public boolean hasBoolValue() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool boolValue = 4;
* @return The boolValue.
*/
@java.lang.Override
public boolean getBoolValue() {
return boolValue_;
}
/**
* optional bool boolValue = 4;
* @param value The boolValue to set.
* @return This builder for chaining.
*/
public Builder setBoolValue(boolean value) {
boolValue_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional bool boolValue = 4;
* @return This builder for chaining.
*/
public Builder clearBoolValue() {
bitField0_ = (bitField0_ & ~0x00000008);
boolValue_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.signalfx.metrics.protobuf.PropertyValue)
}
// @@protoc_insertion_point(class_scope:com.signalfx.metrics.protobuf.PropertyValue)
private static final com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue();
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.signalfx.shaded.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PropertyValue parsePartialFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.signalfx.shaded.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.signalfx.shaded.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EventOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.signalfx.metrics.protobuf.Event)
com.google.protobuf.MessageOrBuilder {
/**
* required string eventType = 1;
* @return Whether the eventType field is set.
*/
boolean hasEventType();
/**
* required string eventType = 1;
* @return The eventType.
*/
java.lang.String getEventType();
/**
* required string eventType = 1;
* @return The bytes for eventType.
*/
com.signalfx.shaded.google.protobuf.ByteString
getEventTypeBytes();
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
java.util.List
getDimensionsList();
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension getDimensions(int index);
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
int getDimensionsCount();
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder>
getDimensionsOrBuilderList();
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder getDimensionsOrBuilder(
int index);
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
java.util.List
getPropertiesList();
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property getProperties(int index);
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
int getPropertiesCount();
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyOrBuilder>
getPropertiesOrBuilderList();
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyOrBuilder getPropertiesOrBuilder(
int index);
/**
* optional .com.signalfx.metrics.protobuf.EventCategory category = 4;
* @return Whether the category field is set.
*/
boolean hasCategory();
/**
* optional .com.signalfx.metrics.protobuf.EventCategory category = 4;
* @return The category.
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory getCategory();
/**
* optional int64 timestamp = 5;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
* optional int64 timestamp = 5;
* @return The timestamp.
*/
long getTimestamp();
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.Event}
*/
public static final class Event extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.signalfx.metrics.protobuf.Event)
EventOrBuilder {
private static final long serialVersionUID = 0L;
// Use Event.newBuilder() to construct.
private Event(com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Event() {
eventType_ = "";
dimensions_ = java.util.Collections.emptyList();
properties_ = java.util.Collections.emptyList();
category_ = 1000000;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Event();
}
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Event_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Event_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.Builder.class);
}
private int bitField0_;
public static final int EVENTTYPE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object eventType_ = "";
/**
* required string eventType = 1;
* @return Whether the eventType field is set.
*/
@java.lang.Override
public boolean hasEventType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string eventType = 1;
* @return The eventType.
*/
@java.lang.Override
public java.lang.String getEventType() {
java.lang.Object ref = eventType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.signalfx.shaded.google.protobuf.ByteString bs =
(com.signalfx.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
eventType_ = s;
}
return s;
}
}
/**
* required string eventType = 1;
* @return The bytes for eventType.
*/
@java.lang.Override
public com.signalfx.shaded.google.protobuf.ByteString
getEventTypeBytes() {
java.lang.Object ref = eventType_;
if (ref instanceof java.lang.String) {
com.signalfx.shaded.google.protobuf.ByteString b =
com.signalfx.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventType_ = b;
return b;
} else {
return (com.signalfx.shaded.google.protobuf.ByteString) ref;
}
}
public static final int DIMENSIONS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private java.util.List dimensions_;
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
@java.lang.Override
public java.util.List getDimensionsList() {
return dimensions_;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
@java.lang.Override
public java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder>
getDimensionsOrBuilderList() {
return dimensions_;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
@java.lang.Override
public int getDimensionsCount() {
return dimensions_.size();
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension getDimensions(int index) {
return dimensions_.get(index);
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder getDimensionsOrBuilder(
int index) {
return dimensions_.get(index);
}
public static final int PROPERTIES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List properties_;
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
@java.lang.Override
public java.util.List getPropertiesList() {
return properties_;
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
@java.lang.Override
public java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyOrBuilder>
getPropertiesOrBuilderList() {
return properties_;
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
@java.lang.Override
public int getPropertiesCount() {
return properties_.size();
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property getProperties(int index) {
return properties_.get(index);
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyOrBuilder getPropertiesOrBuilder(
int index) {
return properties_.get(index);
}
public static final int CATEGORY_FIELD_NUMBER = 4;
private int category_ = 1000000;
/**
* optional .com.signalfx.metrics.protobuf.EventCategory category = 4;
* @return Whether the category field is set.
*/
@java.lang.Override public boolean hasCategory() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .com.signalfx.metrics.protobuf.EventCategory category = 4;
* @return The category.
*/
@java.lang.Override public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory getCategory() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory result = com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory.forNumber(category_);
return result == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory.USER_DEFINED : result;
}
public static final int TIMESTAMP_FIELD_NUMBER = 5;
private long timestamp_ = 0L;
/**
* optional int64 timestamp = 5;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 timestamp = 5;
* @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;
if (!hasEventType()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.signalfx.shaded.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventType_);
}
for (int i = 0; i < dimensions_.size(); i++) {
output.writeMessage(2, dimensions_.get(i));
}
for (int i = 0; i < properties_.size(); i++) {
output.writeMessage(3, properties_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeEnum(4, category_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(5, timestamp_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.signalfx.shaded.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventType_);
}
for (int i = 0; i < dimensions_.size(); i++) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeMessageSize(2, dimensions_.get(i));
}
for (int i = 0; i < properties_.size(); i++) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeMessageSize(3, properties_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeEnumSize(4, category_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeInt64Size(5, 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 com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event) obj;
if (hasEventType() != other.hasEventType()) return false;
if (hasEventType()) {
if (!getEventType()
.equals(other.getEventType())) return false;
}
if (!getDimensionsList()
.equals(other.getDimensionsList())) return false;
if (!getPropertiesList()
.equals(other.getPropertiesList())) return false;
if (hasCategory() != other.hasCategory()) return false;
if (hasCategory()) {
if (category_ != other.category_) return false;
}
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
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();
if (hasEventType()) {
hash = (37 * hash) + EVENTTYPE_FIELD_NUMBER;
hash = (53 * hash) + getEventType().hashCode();
}
if (getDimensionsCount() > 0) {
hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER;
hash = (53 * hash) + getDimensionsList().hashCode();
}
if (getPropertiesCount() > 0) {
hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + getPropertiesList().hashCode();
}
if (hasCategory()) {
hash = (37 * hash) + CATEGORY_FIELD_NUMBER;
hash = (53 * hash) + category_;
}
if (hasTimestamp()) {
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 com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(
java.nio.ByteBuffer data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(
java.nio.ByteBuffer data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(byte[] data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(
byte[] data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseDelimitedFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.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(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.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.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.Event}
*/
public static final class Builder extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.Event)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventOrBuilder {
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Event_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Event_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.Builder.class);
}
// Construct using com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.newBuilder()
private Builder() {
}
private Builder(
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
eventType_ = "";
if (dimensionsBuilder_ == null) {
dimensions_ = java.util.Collections.emptyList();
} else {
dimensions_ = null;
dimensionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (propertiesBuilder_ == null) {
properties_ = java.util.Collections.emptyList();
} else {
properties_ = null;
propertiesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
category_ = 1000000;
timestamp_ = 0L;
return this;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Event_descriptor;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.getDefaultInstance();
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event result) {
if (dimensionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
dimensions_ = java.util.Collections.unmodifiableList(dimensions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.dimensions_ = dimensions_;
} else {
result.dimensions_ = dimensionsBuilder_.build();
}
if (propertiesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
properties_ = java.util.Collections.unmodifiableList(properties_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.properties_ = properties_;
} else {
result.properties_ = propertiesBuilder_.build();
}
}
private void buildPartial0(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.eventType_ = eventType_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.category_ = category_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.timestamp_ = timestamp_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.signalfx.shaded.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.signalfx.shaded.google.protobuf.Message other) {
if (other instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event) {
return mergeFrom((com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event other) {
if (other == com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.getDefaultInstance()) return this;
if (other.hasEventType()) {
eventType_ = other.eventType_;
bitField0_ |= 0x00000001;
onChanged();
}
if (dimensionsBuilder_ == null) {
if (!other.dimensions_.isEmpty()) {
if (dimensions_.isEmpty()) {
dimensions_ = other.dimensions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureDimensionsIsMutable();
dimensions_.addAll(other.dimensions_);
}
onChanged();
}
} else {
if (!other.dimensions_.isEmpty()) {
if (dimensionsBuilder_.isEmpty()) {
dimensionsBuilder_.dispose();
dimensionsBuilder_ = null;
dimensions_ = other.dimensions_;
bitField0_ = (bitField0_ & ~0x00000002);
dimensionsBuilder_ =
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDimensionsFieldBuilder() : null;
} else {
dimensionsBuilder_.addAllMessages(other.dimensions_);
}
}
}
if (propertiesBuilder_ == null) {
if (!other.properties_.isEmpty()) {
if (properties_.isEmpty()) {
properties_ = other.properties_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensurePropertiesIsMutable();
properties_.addAll(other.properties_);
}
onChanged();
}
} else {
if (!other.properties_.isEmpty()) {
if (propertiesBuilder_.isEmpty()) {
propertiesBuilder_.dispose();
propertiesBuilder_ = null;
properties_ = other.properties_;
bitField0_ = (bitField0_ & ~0x00000004);
propertiesBuilder_ =
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPropertiesFieldBuilder() : null;
} else {
propertiesBuilder_.addAllMessages(other.properties_);
}
}
}
if (other.hasCategory()) {
setCategory(other.getCategory());
}
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasEventType()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.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: {
eventType_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension m =
input.readMessage(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.PARSER,
extensionRegistry);
if (dimensionsBuilder_ == null) {
ensureDimensionsIsMutable();
dimensions_.add(m);
} else {
dimensionsBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property m =
input.readMessage(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.PARSER,
extensionRegistry);
if (propertiesBuilder_ == null) {
ensurePropertiesIsMutable();
properties_.add(m);
} else {
propertiesBuilder_.addMessage(m);
}
break;
} // case 26
case 32: {
int tmpRaw = input.readEnum();
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory tmpValue =
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(4, tmpRaw);
} else {
category_ = tmpRaw;
bitField0_ |= 0x00000008;
}
break;
} // case 32
case 40: {
timestamp_ = input.readInt64();
bitField0_ |= 0x00000010;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object eventType_ = "";
/**
* required string eventType = 1;
* @return Whether the eventType field is set.
*/
public boolean hasEventType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string eventType = 1;
* @return The eventType.
*/
public java.lang.String getEventType() {
java.lang.Object ref = eventType_;
if (!(ref instanceof java.lang.String)) {
com.signalfx.shaded.google.protobuf.ByteString bs =
(com.signalfx.shaded.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
eventType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string eventType = 1;
* @return The bytes for eventType.
*/
public com.signalfx.shaded.google.protobuf.ByteString
getEventTypeBytes() {
java.lang.Object ref = eventType_;
if (ref instanceof String) {
com.signalfx.shaded.google.protobuf.ByteString b =
com.signalfx.shaded.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventType_ = b;
return b;
} else {
return (com.signalfx.shaded.google.protobuf.ByteString) ref;
}
}
/**
* required string eventType = 1;
* @param value The eventType to set.
* @return This builder for chaining.
*/
public Builder setEventType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
eventType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required string eventType = 1;
* @return This builder for chaining.
*/
public Builder clearEventType() {
eventType_ = getDefaultInstance().getEventType();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* required string eventType = 1;
* @param value The bytes for eventType to set.
* @return This builder for chaining.
*/
public Builder setEventTypeBytes(
com.signalfx.shaded.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
eventType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.util.List dimensions_ =
java.util.Collections.emptyList();
private void ensureDimensionsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
dimensions_ = new java.util.ArrayList(dimensions_);
bitField0_ |= 0x00000002;
}
}
private com.signalfx.shaded.google.protobuf.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder> dimensionsBuilder_;
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public java.util.List getDimensionsList() {
if (dimensionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(dimensions_);
} else {
return dimensionsBuilder_.getMessageList();
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public int getDimensionsCount() {
if (dimensionsBuilder_ == null) {
return dimensions_.size();
} else {
return dimensionsBuilder_.getCount();
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension getDimensions(int index) {
if (dimensionsBuilder_ == null) {
return dimensions_.get(index);
} else {
return dimensionsBuilder_.getMessage(index);
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public Builder setDimensions(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension value) {
if (dimensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDimensionsIsMutable();
dimensions_.set(index, value);
onChanged();
} else {
dimensionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public Builder setDimensions(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder builderForValue) {
if (dimensionsBuilder_ == null) {
ensureDimensionsIsMutable();
dimensions_.set(index, builderForValue.build());
onChanged();
} else {
dimensionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public Builder addDimensions(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension value) {
if (dimensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDimensionsIsMutable();
dimensions_.add(value);
onChanged();
} else {
dimensionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public Builder addDimensions(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension value) {
if (dimensionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDimensionsIsMutable();
dimensions_.add(index, value);
onChanged();
} else {
dimensionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public Builder addDimensions(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder builderForValue) {
if (dimensionsBuilder_ == null) {
ensureDimensionsIsMutable();
dimensions_.add(builderForValue.build());
onChanged();
} else {
dimensionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public Builder addDimensions(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder builderForValue) {
if (dimensionsBuilder_ == null) {
ensureDimensionsIsMutable();
dimensions_.add(index, builderForValue.build());
onChanged();
} else {
dimensionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public Builder addAllDimensions(
java.lang.Iterable extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension> values) {
if (dimensionsBuilder_ == null) {
ensureDimensionsIsMutable();
com.signalfx.shaded.google.protobuf.AbstractMessageLite.Builder.addAll(
values, dimensions_);
onChanged();
} else {
dimensionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public Builder clearDimensions() {
if (dimensionsBuilder_ == null) {
dimensions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
dimensionsBuilder_.clear();
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public Builder removeDimensions(int index) {
if (dimensionsBuilder_ == null) {
ensureDimensionsIsMutable();
dimensions_.remove(index);
onChanged();
} else {
dimensionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder getDimensionsBuilder(
int index) {
return getDimensionsFieldBuilder().getBuilder(index);
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder getDimensionsOrBuilder(
int index) {
if (dimensionsBuilder_ == null) {
return dimensions_.get(index); } else {
return dimensionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder>
getDimensionsOrBuilderList() {
if (dimensionsBuilder_ != null) {
return dimensionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(dimensions_);
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder addDimensionsBuilder() {
return getDimensionsFieldBuilder().addBuilder(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.getDefaultInstance());
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder addDimensionsBuilder(
int index) {
return getDimensionsFieldBuilder().addBuilder(
index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.getDefaultInstance());
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public java.util.List
getDimensionsBuilderList() {
return getDimensionsFieldBuilder().getBuilderList();
}
private com.signalfx.shaded.google.protobuf.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder>
getDimensionsFieldBuilder() {
if (dimensionsBuilder_ == null) {
dimensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder>(
dimensions_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
dimensions_ = null;
}
return dimensionsBuilder_;
}
private java.util.List properties_ =
java.util.Collections.emptyList();
private void ensurePropertiesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
properties_ = new java.util.ArrayList(properties_);
bitField0_ |= 0x00000004;
}
}
private com.signalfx.shaded.google.protobuf.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyOrBuilder> propertiesBuilder_;
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public java.util.List getPropertiesList() {
if (propertiesBuilder_ == null) {
return java.util.Collections.unmodifiableList(properties_);
} else {
return propertiesBuilder_.getMessageList();
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public int getPropertiesCount() {
if (propertiesBuilder_ == null) {
return properties_.size();
} else {
return propertiesBuilder_.getCount();
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property getProperties(int index) {
if (propertiesBuilder_ == null) {
return properties_.get(index);
} else {
return propertiesBuilder_.getMessage(index);
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public Builder setProperties(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property value) {
if (propertiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertiesIsMutable();
properties_.set(index, value);
onChanged();
} else {
propertiesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public Builder setProperties(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.Builder builderForValue) {
if (propertiesBuilder_ == null) {
ensurePropertiesIsMutable();
properties_.set(index, builderForValue.build());
onChanged();
} else {
propertiesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public Builder addProperties(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property value) {
if (propertiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertiesIsMutable();
properties_.add(value);
onChanged();
} else {
propertiesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public Builder addProperties(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property value) {
if (propertiesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePropertiesIsMutable();
properties_.add(index, value);
onChanged();
} else {
propertiesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public Builder addProperties(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.Builder builderForValue) {
if (propertiesBuilder_ == null) {
ensurePropertiesIsMutable();
properties_.add(builderForValue.build());
onChanged();
} else {
propertiesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public Builder addProperties(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.Builder builderForValue) {
if (propertiesBuilder_ == null) {
ensurePropertiesIsMutable();
properties_.add(index, builderForValue.build());
onChanged();
} else {
propertiesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public Builder addAllProperties(
java.lang.Iterable extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property> values) {
if (propertiesBuilder_ == null) {
ensurePropertiesIsMutable();
com.signalfx.shaded.google.protobuf.AbstractMessageLite.Builder.addAll(
values, properties_);
onChanged();
} else {
propertiesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public Builder clearProperties() {
if (propertiesBuilder_ == null) {
properties_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
propertiesBuilder_.clear();
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public Builder removeProperties(int index) {
if (propertiesBuilder_ == null) {
ensurePropertiesIsMutable();
properties_.remove(index);
onChanged();
} else {
propertiesBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.Builder getPropertiesBuilder(
int index) {
return getPropertiesFieldBuilder().getBuilder(index);
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyOrBuilder getPropertiesOrBuilder(
int index) {
if (propertiesBuilder_ == null) {
return properties_.get(index); } else {
return propertiesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyOrBuilder>
getPropertiesOrBuilderList() {
if (propertiesBuilder_ != null) {
return propertiesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(properties_);
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.Builder addPropertiesBuilder() {
return getPropertiesFieldBuilder().addBuilder(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.getDefaultInstance());
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.Builder addPropertiesBuilder(
int index) {
return getPropertiesFieldBuilder().addBuilder(
index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.getDefaultInstance());
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public java.util.List
getPropertiesBuilderList() {
return getPropertiesFieldBuilder().getBuilderList();
}
private com.signalfx.shaded.google.protobuf.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyOrBuilder>
getPropertiesFieldBuilder() {
if (propertiesBuilder_ == null) {
propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyOrBuilder>(
properties_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
properties_ = null;
}
return propertiesBuilder_;
}
private int category_ = 1000000;
/**
* optional .com.signalfx.metrics.protobuf.EventCategory category = 4;
* @return Whether the category field is set.
*/
@java.lang.Override public boolean hasCategory() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .com.signalfx.metrics.protobuf.EventCategory category = 4;
* @return The category.
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory getCategory() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory result = com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory.forNumber(category_);
return result == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory.USER_DEFINED : result;
}
/**
* optional .com.signalfx.metrics.protobuf.EventCategory category = 4;
* @param value The category to set.
* @return This builder for chaining.
*/
public Builder setCategory(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
category_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.EventCategory category = 4;
* @return This builder for chaining.
*/
public Builder clearCategory() {
bitField0_ = (bitField0_ & ~0x00000008);
category_ = 1000000;
onChanged();
return this;
}
private long timestamp_ ;
/**
* optional int64 timestamp = 5;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int64 timestamp = 5;
* @return The timestamp.
*/
@java.lang.Override
public long getTimestamp() {
return timestamp_;
}
/**
* optional int64 timestamp = 5;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional int64 timestamp = 5;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000010);
timestamp_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.signalfx.metrics.protobuf.Event)
}
// @@protoc_insertion_point(class_scope:com.signalfx.metrics.protobuf.Event)
private static final com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event();
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.signalfx.shaded.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Event parsePartialFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.signalfx.shaded.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.signalfx.shaded.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EventUploadMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.signalfx.metrics.protobuf.EventUploadMessage)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
java.util.List
getEventsList();
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event getEvents(int index);
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
int getEventsCount();
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventOrBuilder>
getEventsOrBuilderList();
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventOrBuilder getEventsOrBuilder(
int index);
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.EventUploadMessage}
*/
public static final class EventUploadMessage extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.signalfx.metrics.protobuf.EventUploadMessage)
EventUploadMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use EventUploadMessage.newBuilder() to construct.
private EventUploadMessage(com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EventUploadMessage() {
events_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EventUploadMessage();
}
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_EventUploadMessage_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_EventUploadMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage.Builder.class);
}
public static final int EVENTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List events_;
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
@java.lang.Override
public java.util.List getEventsList() {
return events_;
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
@java.lang.Override
public java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
@java.lang.Override
public int getEventsCount() {
return events_.size();
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event getEvents(int index) {
return events_.get(index);
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventOrBuilder getEventsOrBuilder(
int index) {
return events_.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;
for (int i = 0; i < getEventsCount(); i++) {
if (!getEvents(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.signalfx.shaded.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < events_.size(); i++) {
output.writeMessage(1, events_.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 < events_.size(); i++) {
size += com.signalfx.shaded.google.protobuf.CodedOutputStream
.computeMessageSize(1, events_.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 com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage) obj;
if (!getEventsList()
.equals(other.getEventsList())) 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();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(
java.nio.ByteBuffer data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(
java.nio.ByteBuffer data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(
com.signalfx.shaded.google.protobuf.ByteString data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(byte[] data)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(
byte[] data,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseDelimitedFrom(
java.io.InputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.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(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage 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.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.EventUploadMessage}
*/
public static final class Builder extends
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.EventUploadMessage)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessageOrBuilder {
public static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_EventUploadMessage_descriptor;
}
@java.lang.Override
protected com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_EventUploadMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage.class, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage.Builder.class);
}
// Construct using com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage.newBuilder()
private Builder() {
}
private Builder(
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@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);
return this;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_EventUploadMessage_descriptor;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage.getDefaultInstance();
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage 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(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage result) {
int from_bitField0_ = bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.signalfx.shaded.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.signalfx.shaded.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.signalfx.shaded.google.protobuf.Message other) {
if (other instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage) {
return mergeFrom((com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage other) {
if (other == com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage.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.signalfx.shaded.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEventsFieldBuilder() : null;
} else {
eventsBuilder_.addAllMessages(other.events_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getEventsCount(); i++) {
if (!getEvents(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event m =
input.readMessage(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.PARSER,
extensionRegistry);
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(m);
} else {
eventsBuilder_.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.signalfx.shaded.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.signalfx.shaded.google.protobuf.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventOrBuilder> eventsBuilder_;
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public java.util.List getEventsList() {
if (eventsBuilder_ == null) {
return java.util.Collections.unmodifiableList(events_);
} else {
return eventsBuilder_.getMessageList();
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public int getEventsCount() {
if (eventsBuilder_ == null) {
return events_.size();
} else {
return eventsBuilder_.getCount();
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event getEvents(int index) {
if (eventsBuilder_ == null) {
return events_.get(index);
} else {
return eventsBuilder_.getMessage(index);
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public Builder setEvents(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.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 .com.signalfx.metrics.protobuf.Event events = 1;
*/
public Builder setEvents(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.set(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public Builder addEvents(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event value) {
if (eventsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEventsIsMutable();
events_.add(value);
onChanged();
} else {
eventsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public Builder addEvents(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.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 .com.signalfx.metrics.protobuf.Event events = 1;
*/
public Builder addEvents(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public Builder addEvents(
int index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.Builder builderForValue) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.add(index, builderForValue.build());
onChanged();
} else {
eventsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public Builder addAllEvents(
java.lang.Iterable extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event> values) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
com.signalfx.shaded.google.protobuf.AbstractMessageLite.Builder.addAll(
values, events_);
onChanged();
} else {
eventsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public Builder clearEvents() {
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
eventsBuilder_.clear();
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public Builder removeEvents(int index) {
if (eventsBuilder_ == null) {
ensureEventsIsMutable();
events_.remove(index);
onChanged();
} else {
eventsBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.Builder getEventsBuilder(
int index) {
return getEventsFieldBuilder().getBuilder(index);
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventOrBuilder getEventsOrBuilder(
int index) {
if (eventsBuilder_ == null) {
return events_.get(index); } else {
return eventsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventOrBuilder>
getEventsOrBuilderList() {
if (eventsBuilder_ != null) {
return eventsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(events_);
}
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.Builder addEventsBuilder() {
return getEventsFieldBuilder().addBuilder(
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.getDefaultInstance());
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.Builder addEventsBuilder(
int index) {
return getEventsFieldBuilder().addBuilder(
index, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.getDefaultInstance());
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public java.util.List
getEventsBuilderList() {
return getEventsFieldBuilder().getBuilderList();
}
private com.signalfx.shaded.google.protobuf.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventOrBuilder>
getEventsFieldBuilder() {
if (eventsBuilder_ == null) {
eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventOrBuilder>(
events_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
events_ = null;
}
return eventsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.signalfx.shaded.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:com.signalfx.metrics.protobuf.EventUploadMessage)
}
// @@protoc_insertion_point(class_scope:com.signalfx.metrics.protobuf.EventUploadMessage)
private static final com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage();
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.signalfx.shaded.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EventUploadMessage parsePartialFrom(
com.signalfx.shaded.google.protobuf.CodedInputStream input,
com.signalfx.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.signalfx.shaded.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.signalfx.shaded.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.signalfx.shaded.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.signalfx.shaded.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_Datum_descriptor;
private static final
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_Datum_fieldAccessorTable;
private static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_Dimension_descriptor;
private static final
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_Dimension_fieldAccessorTable;
private static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_DataPoint_descriptor;
private static final
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_DataPoint_fieldAccessorTable;
private static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_DataPointUploadMessage_descriptor;
private static final
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_DataPointUploadMessage_fieldAccessorTable;
private static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_PointValue_descriptor;
private static final
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_PointValue_fieldAccessorTable;
private static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_Property_descriptor;
private static final
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_Property_fieldAccessorTable;
private static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_PropertyValue_descriptor;
private static final
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_PropertyValue_fieldAccessorTable;
private static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_Event_descriptor;
private static final
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_Event_fieldAccessorTable;
private static final com.signalfx.shaded.google.protobuf.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_EventUploadMessage_descriptor;
private static final
com.signalfx.shaded.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_EventUploadMessage_fieldAccessorTable;
public static com.signalfx.shaded.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.signalfx.shaded.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n signal_fx_protocol_buffers.proto\022\035com." +
"signalfx.metrics.protobuf\"@\n\005Datum\022\020\n\010st" +
"rValue\030\001 \001(\t\022\023\n\013doubleValue\030\002 \001(\001\022\020\n\010int" +
"Value\030\003 \001(\003\"\'\n\tDimension\022\013\n\003key\030\001 \001(\t\022\r\n" +
"\005value\030\002 \001(\t\"\360\001\n\tDataPoint\022\016\n\006source\030\001 \001" +
"(\t\022\016\n\006metric\030\002 \001(\t\022\021\n\ttimestamp\030\003 \001(\003\0223\n" +
"\005value\030\004 \001(\0132$.com.signalfx.metrics.prot" +
"obuf.Datum\022=\n\nmetricType\030\005 \001(\0162).com.sig" +
"nalfx.metrics.protobuf.MetricType\022<\n\ndim" +
"ensions\030\006 \003(\0132(.com.signalfx.metrics.pro" +
"tobuf.Dimension\"V\n\026DataPointUploadMessag" +
"e\022<\n\ndatapoints\030\001 \003(\0132(.com.signalfx.met" +
"rics.protobuf.DataPoint\"T\n\nPointValue\022\021\n" +
"\ttimestamp\030\003 \001(\003\0223\n\005value\030\004 \001(\0132$.com.si" +
"gnalfx.metrics.protobuf.Datum\"T\n\010Propert" +
"y\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.com.sign" +
"alfx.metrics.protobuf.PropertyValue\"[\n\rP" +
"ropertyValue\022\020\n\010strValue\030\001 \001(\t\022\023\n\013double" +
"Value\030\002 \001(\001\022\020\n\010intValue\030\003 \001(\003\022\021\n\tboolVal" +
"ue\030\004 \001(\010\"\350\001\n\005Event\022\021\n\teventType\030\001 \002(\t\022<\n" +
"\ndimensions\030\002 \003(\0132(.com.signalfx.metrics" +
".protobuf.Dimension\022;\n\nproperties\030\003 \003(\0132" +
"\'.com.signalfx.metrics.protobuf.Property" +
"\022>\n\010category\030\004 \001(\0162,.com.signalfx.metric" +
"s.protobuf.EventCategory\022\021\n\ttimestamp\030\005 " +
"\001(\003\"J\n\022EventUploadMessage\0224\n\006events\030\001 \003(" +
"\0132$.com.signalfx.metrics.protobuf.Event*" +
"F\n\nMetricType\022\t\n\005GAUGE\020\000\022\013\n\007COUNTER\020\001\022\010\n" +
"\004ENUM\020\002\022\026\n\022CUMULATIVE_COUNTER\020\003*\217\001\n\rEven" +
"tCategory\022\022\n\014USER_DEFINED\020\300\204=\022\013\n\005ALERT\020\240" +
"\215\006\022\013\n\005AUDIT\020\300\232\014\022\t\n\003JOB\020\340\247\022\022\016\n\010COLLECTD\020\200" +
"\265\030\022\027\n\021SERVICE_DISCOVERY\020\240\302\036\022\017\n\tEXCEPTION" +
"\020\340\334*\022\013\n\005AGENT\020\200\211z"
};
descriptor = com.signalfx.shaded.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_com_signalfx_metrics_protobuf_Datum_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_signalfx_metrics_protobuf_Datum_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_signalfx_metrics_protobuf_Datum_descriptor,
new java.lang.String[] { "StrValue", "DoubleValue", "IntValue", });
internal_static_com_signalfx_metrics_protobuf_Dimension_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_com_signalfx_metrics_protobuf_Dimension_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_signalfx_metrics_protobuf_Dimension_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_com_signalfx_metrics_protobuf_DataPoint_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_com_signalfx_metrics_protobuf_DataPoint_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_signalfx_metrics_protobuf_DataPoint_descriptor,
new java.lang.String[] { "Source", "Metric", "Timestamp", "Value", "MetricType", "Dimensions", });
internal_static_com_signalfx_metrics_protobuf_DataPointUploadMessage_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_com_signalfx_metrics_protobuf_DataPointUploadMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_signalfx_metrics_protobuf_DataPointUploadMessage_descriptor,
new java.lang.String[] { "Datapoints", });
internal_static_com_signalfx_metrics_protobuf_PointValue_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_com_signalfx_metrics_protobuf_PointValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_signalfx_metrics_protobuf_PointValue_descriptor,
new java.lang.String[] { "Timestamp", "Value", });
internal_static_com_signalfx_metrics_protobuf_Property_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_com_signalfx_metrics_protobuf_Property_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_signalfx_metrics_protobuf_Property_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_com_signalfx_metrics_protobuf_PropertyValue_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_com_signalfx_metrics_protobuf_PropertyValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_signalfx_metrics_protobuf_PropertyValue_descriptor,
new java.lang.String[] { "StrValue", "DoubleValue", "IntValue", "BoolValue", });
internal_static_com_signalfx_metrics_protobuf_Event_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_com_signalfx_metrics_protobuf_Event_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_signalfx_metrics_protobuf_Event_descriptor,
new java.lang.String[] { "EventType", "Dimensions", "Properties", "Category", "Timestamp", });
internal_static_com_signalfx_metrics_protobuf_EventUploadMessage_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_com_signalfx_metrics_protobuf_EventUploadMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_com_signalfx_metrics_protobuf_EventUploadMessage_descriptor,
new java.lang.String[] { "Events", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy