com.signalfx.metrics.protobuf.SignalFxProtocolBuffers Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: signal_fx_protocol_buffers.proto
package com.signalfx.metrics.protobuf;
public final class SignalFxProtocolBuffers {
private SignalFxProtocolBuffers() {}
public static void registerAllExtensions(
com.github.os72.protobuf351.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.github.os72.protobuf351.ExtensionRegistry registry) {
registerAllExtensions(
(com.github.os72.protobuf351.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code com.signalfx.metrics.protobuf.MetricType}
*/
public enum MetricType
implements com.github.os72.protobuf351.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;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static MetricType valueOf(int value) {
return forNumber(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.github.os72.protobuf351.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.github.os72.protobuf351.Internal.EnumLiteMap<
MetricType> internalValueMap =
new com.github.os72.protobuf351.Internal.EnumLiteMap() {
public MetricType findValueByNumber(int number) {
return MetricType.forNumber(number);
}
};
public final com.github.os72.protobuf351.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.github.os72.protobuf351.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.github.os72.protobuf351.Descriptors.EnumDescriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.getDescriptor().getEnumTypes().get(0);
}
private static final MetricType[] VALUES = values();
public static MetricType valueOf(
com.github.os72.protobuf351.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.github.os72.protobuf351.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;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EventCategory valueOf(int value) {
return forNumber(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.github.os72.protobuf351.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.github.os72.protobuf351.Internal.EnumLiteMap<
EventCategory> internalValueMap =
new com.github.os72.protobuf351.Internal.EnumLiteMap() {
public EventCategory findValueByNumber(int number) {
return EventCategory.forNumber(number);
}
};
public final com.github.os72.protobuf351.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.github.os72.protobuf351.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.github.os72.protobuf351.Descriptors.EnumDescriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.getDescriptor().getEnumTypes().get(1);
}
private static final EventCategory[] VALUES = values();
public static EventCategory valueOf(
com.github.os72.protobuf351.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.github.os72.protobuf351.MessageOrBuilder {
/**
* optional string strValue = 1;
*/
boolean hasStrValue();
/**
* optional string strValue = 1;
*/
java.lang.String getStrValue();
/**
* optional string strValue = 1;
*/
com.github.os72.protobuf351.ByteString
getStrValueBytes();
/**
* optional double doubleValue = 2;
*/
boolean hasDoubleValue();
/**
* optional double doubleValue = 2;
*/
double getDoubleValue();
/**
* optional int64 intValue = 3;
*/
boolean hasIntValue();
/**
* optional int64 intValue = 3;
*/
long getIntValue();
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.Datum}
*/
public static final class Datum extends
com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Datum() {
strValue_ = "";
doubleValue_ = 0D;
intValue_ = 0L;
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Datum(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.github.os72.protobuf351.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
strValue_ = bs;
break;
}
case 17: {
bitField0_ |= 0x00000002;
doubleValue_ = input.readDouble();
break;
}
case 24: {
bitField0_ |= 0x00000004;
intValue_ = input.readInt64();
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Datum_descriptor;
}
protected com.github.os72.protobuf351.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;
private volatile java.lang.Object strValue_;
/**
* optional string strValue = 1;
*/
public boolean hasStrValue() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string strValue = 1;
*/
public java.lang.String getStrValue() {
java.lang.Object ref = strValue_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
strValue_ = s;
}
return s;
}
}
/**
* optional string strValue = 1;
*/
public com.github.os72.protobuf351.ByteString
getStrValueBytes() {
java.lang.Object ref = strValue_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
strValue_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int DOUBLEVALUE_FIELD_NUMBER = 2;
private double doubleValue_;
/**
* optional double doubleValue = 2;
*/
public boolean hasDoubleValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional double doubleValue = 2;
*/
public double getDoubleValue() {
return doubleValue_;
}
public static final int INTVALUE_FIELD_NUMBER = 3;
private long intValue_;
/**
* optional int64 intValue = 3;
*/
public boolean hasIntValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int64 intValue = 3;
*/
public long getIntValue() {
return intValue_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, strValue_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeDouble(2, doubleValue_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, intValue_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, strValue_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeDoubleSize(2, doubleValue_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt64Size(3, intValue_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum) obj;
boolean result = true;
result = result && (hasStrValue() == other.hasStrValue());
if (hasStrValue()) {
result = result && getStrValue()
.equals(other.getStrValue());
}
result = result && (hasDoubleValue() == other.hasDoubleValue());
if (hasDoubleValue()) {
result = result && (
java.lang.Double.doubleToLongBits(getDoubleValue())
== java.lang.Double.doubleToLongBits(
other.getDoubleValue()));
}
result = result && (hasIntValue() == other.hasIntValue());
if (hasIntValue()) {
result = result && (getIntValue()
== other.getIntValue());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@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.github.os72.protobuf351.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDoubleValue()));
}
if (hasIntValue()) {
hash = (37 * hash) + INTVALUE_FIELD_NUMBER;
hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong(
getIntValue());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.Datum)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DatumOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Datum_descriptor;
}
protected com.github.os72.protobuf351.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
strValue_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
doubleValue_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
intValue_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Datum_descriptor;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.getDefaultInstance();
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.strValue_ = strValue_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.doubleValue_ = doubleValue_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.intValue_ = intValue_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.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()) {
bitField0_ |= 0x00000001;
strValue_ = other.strValue_;
onChanged();
}
if (other.hasDoubleValue()) {
setDoubleValue(other.getDoubleValue());
}
if (other.hasIntValue()) {
setIntValue(other.getIntValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object strValue_ = "";
/**
* optional string strValue = 1;
*/
public boolean hasStrValue() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string strValue = 1;
*/
public java.lang.String getStrValue() {
java.lang.Object ref = strValue_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.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;
*/
public com.github.os72.protobuf351.ByteString
getStrValueBytes() {
java.lang.Object ref = strValue_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
strValue_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* optional string strValue = 1;
*/
public Builder setStrValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
strValue_ = value;
onChanged();
return this;
}
/**
* optional string strValue = 1;
*/
public Builder clearStrValue() {
bitField0_ = (bitField0_ & ~0x00000001);
strValue_ = getDefaultInstance().getStrValue();
onChanged();
return this;
}
/**
* optional string strValue = 1;
*/
public Builder setStrValueBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
strValue_ = value;
onChanged();
return this;
}
private double doubleValue_ ;
/**
* optional double doubleValue = 2;
*/
public boolean hasDoubleValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional double doubleValue = 2;
*/
public double getDoubleValue() {
return doubleValue_;
}
/**
* optional double doubleValue = 2;
*/
public Builder setDoubleValue(double value) {
bitField0_ |= 0x00000002;
doubleValue_ = value;
onChanged();
return this;
}
/**
* optional double doubleValue = 2;
*/
public Builder clearDoubleValue() {
bitField0_ = (bitField0_ & ~0x00000002);
doubleValue_ = 0D;
onChanged();
return this;
}
private long intValue_ ;
/**
* optional int64 intValue = 3;
*/
public boolean hasIntValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int64 intValue = 3;
*/
public long getIntValue() {
return intValue_;
}
/**
* optional int64 intValue = 3;
*/
public Builder setIntValue(long value) {
bitField0_ |= 0x00000004;
intValue_ = value;
onChanged();
return this;
}
/**
* optional int64 intValue = 3;
*/
public Builder clearIntValue() {
bitField0_ = (bitField0_ & ~0x00000004);
intValue_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.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.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public Datum parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new Datum(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
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.github.os72.protobuf351.MessageOrBuilder {
/**
* optional string key = 1;
*/
boolean hasKey();
/**
* optional string key = 1;
*/
java.lang.String getKey();
/**
* optional string key = 1;
*/
com.github.os72.protobuf351.ByteString
getKeyBytes();
/**
* optional string value = 2;
*/
boolean hasValue();
/**
* optional string value = 2;
*/
java.lang.String getValue();
/**
* optional string value = 2;
*/
com.github.os72.protobuf351.ByteString
getValueBytes();
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.Dimension}
*/
public static final class Dimension extends
com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Dimension() {
key_ = "";
value_ = "";
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Dimension(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.github.os72.protobuf351.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
key_ = bs;
break;
}
case 18: {
com.github.os72.protobuf351.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
value_ = bs;
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Dimension_descriptor;
}
protected com.github.os72.protobuf351.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;
private volatile java.lang.Object key_;
/**
* optional string key = 1;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string key = 1;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
}
}
/**
* optional string key = 1;
*/
public com.github.os72.protobuf351.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private volatile java.lang.Object value_;
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
}
}
/**
* optional string value = 2;
*/
public com.github.os72.protobuf351.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, key_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 2, value_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, key_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(2, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension) obj;
boolean result = true;
result = result && (hasKey() == other.hasKey());
if (hasKey()) {
result = result && getKey()
.equals(other.getKey());
}
result = result && (hasValue() == other.hasValue());
if (hasValue()) {
result = result && getValue()
.equals(other.getValue());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.Dimension)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Dimension_descriptor;
}
protected com.github.os72.protobuf351.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
key_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Dimension_descriptor;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.getDefaultInstance();
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.key_ = key_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.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()) {
bitField0_ |= 0x00000001;
key_ = other.key_;
onChanged();
}
if (other.hasValue()) {
bitField0_ |= 0x00000002;
value_ = other.value_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
* optional string key = 1;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string key = 1;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.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;
*/
public com.github.os72.protobuf351.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* optional string key = 1;
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
/**
* optional string key = 1;
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000001);
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* optional string key = 1;
*/
public Builder setKeyBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
* optional string value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string value = 2;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.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;
*/
public com.github.os72.protobuf351.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* optional string value = 2;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder setValueBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.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.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public Dimension parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new Dimension(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
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.github.os72.protobuf351.MessageOrBuilder {
/**
* optional string source = 1;
*/
boolean hasSource();
/**
* optional string source = 1;
*/
java.lang.String getSource();
/**
* optional string source = 1;
*/
com.github.os72.protobuf351.ByteString
getSourceBytes();
/**
* optional string metric = 2;
*/
boolean hasMetric();
/**
* optional string metric = 2;
*/
java.lang.String getMetric();
/**
* optional string metric = 2;
*/
com.github.os72.protobuf351.ByteString
getMetricBytes();
/**
* optional int64 timestamp = 3;
*/
boolean hasTimestamp();
/**
* optional int64 timestamp = 3;
*/
long getTimestamp();
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
boolean hasValue();
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
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;
*/
boolean hasMetricType();
/**
* optional .com.signalfx.metrics.protobuf.MetricType metricType = 5;
*/
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.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataPoint() {
source_ = "";
metric_ = "";
timestamp_ = 0L;
metricType_ = 0;
dimensions_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DataPoint(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.github.os72.protobuf351.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
source_ = bs;
break;
}
case 18: {
com.github.os72.protobuf351.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
metric_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
timestamp_ = input.readInt64();
break;
}
case 34: {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = value_.toBuilder();
}
value_ = input.readMessage(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(value_);
value_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 40: {
int rawValue = input.readEnum();
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType value = com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(5, rawValue);
} else {
bitField0_ |= 0x00000010;
metricType_ = rawValue;
}
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
dimensions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
dimensions_.add(
input.readMessage(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
dimensions_ = java.util.Collections.unmodifiableList(dimensions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_DataPoint_descriptor;
}
protected com.github.os72.protobuf351.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;
private volatile java.lang.Object source_;
/**
* optional string source = 1;
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string source = 1;
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
source_ = s;
}
return s;
}
}
/**
* optional string source = 1;
*/
public com.github.os72.protobuf351.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int METRIC_FIELD_NUMBER = 2;
private volatile java.lang.Object metric_;
/**
* optional string metric = 2;
*/
public boolean hasMetric() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string metric = 2;
*/
public java.lang.String getMetric() {
java.lang.Object ref = metric_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
metric_ = s;
}
return s;
}
}
/**
* optional string metric = 2;
*/
public com.github.os72.protobuf351.ByteString
getMetricBytes() {
java.lang.Object ref = metric_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
metric_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int TIMESTAMP_FIELD_NUMBER = 3;
private long timestamp_;
/**
* optional int64 timestamp = 3;
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int64 timestamp = 3;
*/
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;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
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;
*/
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_;
/**
* optional .com.signalfx.metrics.protobuf.MetricType metricType = 5;
*/
public boolean hasMetricType() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .com.signalfx.metrics.protobuf.MetricType metricType = 5;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType getMetricType() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType result = com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType.valueOf(metricType_);
return result == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType.GAUGE : result;
}
public static final int DIMENSIONS_FIELD_NUMBER = 6;
private java.util.List dimensions_;
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public java.util.List getDimensionsList() {
return dimensions_;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder>
getDimensionsOrBuilderList() {
return dimensions_;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public int getDimensionsCount() {
return dimensions_.size();
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension getDimensions(int index) {
return dimensions_.get(index);
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 6;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder getDimensionsOrBuilder(
int index) {
return dimensions_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, source_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 2, metric_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, timestamp_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, getValue());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeEnum(5, metricType_);
}
for (int i = 0; i < dimensions_.size(); i++) {
output.writeMessage(6, dimensions_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, source_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(2, metric_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt64Size(3, timestamp_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(4, getValue());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeEnumSize(5, metricType_);
}
for (int i = 0; i < dimensions_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(6, dimensions_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint) obj;
boolean result = true;
result = result && (hasSource() == other.hasSource());
if (hasSource()) {
result = result && getSource()
.equals(other.getSource());
}
result = result && (hasMetric() == other.hasMetric());
if (hasMetric()) {
result = result && getMetric()
.equals(other.getMetric());
}
result = result && (hasTimestamp() == other.hasTimestamp());
if (hasTimestamp()) {
result = result && (getTimestamp()
== other.getTimestamp());
}
result = result && (hasValue() == other.hasValue());
if (hasValue()) {
result = result && getValue()
.equals(other.getValue());
}
result = result && (hasMetricType() == other.hasMetricType());
if (hasMetricType()) {
result = result && metricType_ == other.metricType_;
}
result = result && getDimensionsList()
.equals(other.getDimensionsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@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.github.os72.protobuf351.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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.DataPoint)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_DataPoint_descriptor;
}
protected com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValueFieldBuilder();
getDimensionsFieldBuilder();
}
}
public Builder clear() {
super.clear();
source_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
metric_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
if (valueBuilder_ == null) {
value_ = null;
} else {
valueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
metricType_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
if (dimensionsBuilder_ == null) {
dimensions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
dimensionsBuilder_.clear();
}
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_DataPoint_descriptor;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.getDefaultInstance();
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.source_ = source_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.metric_ = metric_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.timestamp_ = timestamp_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.metricType_ = metricType_;
if (dimensionsBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
dimensions_ = java.util.Collections.unmodifiableList(dimensions_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.dimensions_ = dimensions_;
} else {
result.dimensions_ = dimensionsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.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()) {
bitField0_ |= 0x00000001;
source_ = other.source_;
onChanged();
}
if (other.hasMetric()) {
bitField0_ |= 0x00000002;
metric_ = other.metric_;
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.github.os72.protobuf351.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDimensionsFieldBuilder() : null;
} else {
dimensionsBuilder_.addAllMessages(other.dimensions_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object source_ = "";
/**
* optional string source = 1;
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string source = 1;
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.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;
*/
public com.github.os72.protobuf351.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* optional string source = 1;
*/
public Builder setSource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
source_ = value;
onChanged();
return this;
}
/**
* optional string source = 1;
*/
public Builder clearSource() {
bitField0_ = (bitField0_ & ~0x00000001);
source_ = getDefaultInstance().getSource();
onChanged();
return this;
}
/**
* optional string source = 1;
*/
public Builder setSourceBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
source_ = value;
onChanged();
return this;
}
private java.lang.Object metric_ = "";
/**
* optional string metric = 2;
*/
public boolean hasMetric() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string metric = 2;
*/
public java.lang.String getMetric() {
java.lang.Object ref = metric_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.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;
*/
public com.github.os72.protobuf351.ByteString
getMetricBytes() {
java.lang.Object ref = metric_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
metric_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* optional string metric = 2;
*/
public Builder setMetric(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
metric_ = value;
onChanged();
return this;
}
/**
* optional string metric = 2;
*/
public Builder clearMetric() {
bitField0_ = (bitField0_ & ~0x00000002);
metric_ = getDefaultInstance().getMetric();
onChanged();
return this;
}
/**
* optional string metric = 2;
*/
public Builder setMetricBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
metric_ = value;
onChanged();
return this;
}
private long timestamp_ ;
/**
* optional int64 timestamp = 3;
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int64 timestamp = 3;
*/
public long getTimestamp() {
return timestamp_;
}
/**
* optional int64 timestamp = 3;
*/
public Builder setTimestamp(long value) {
bitField0_ |= 0x00000004;
timestamp_ = value;
onChanged();
return this;
}
/**
* optional int64 timestamp = 3;
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000004);
timestamp_ = 0L;
onChanged();
return this;
}
private com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum value_ = null;
private com.github.os72.protobuf351.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;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
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;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
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();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
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) == 0x00000008) &&
value_ != null &&
value_ != com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.getDefaultInstance()) {
value_ =
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = null;
onChanged();
} else {
valueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
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.github.os72.protobuf351.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.github.os72.protobuf351.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;
*/
public boolean hasMetricType() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .com.signalfx.metrics.protobuf.MetricType metricType = 5;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType getMetricType() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType result = com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType.valueOf(metricType_);
return result == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.MetricType.GAUGE : result;
}
/**
* optional .com.signalfx.metrics.protobuf.MetricType metricType = 5;
*/
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;
*/
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) == 0x00000020)) {
dimensions_ = new java.util.ArrayList(dimensions_);
bitField0_ |= 0x00000020;
}
}
private com.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder>(
dimensions_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
isClean());
dimensions_ = null;
}
return dimensionsBuilder_;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.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.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public DataPoint parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new DataPoint(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
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.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataPointUploadMessage() {
datapoints_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DataPointUploadMessage(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
datapoints_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
datapoints_.add(
input.readMessage(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
datapoints_ = java.util.Collections.unmodifiableList(datapoints_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_DataPointUploadMessage_descriptor;
}
protected com.github.os72.protobuf351.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;
private java.util.List datapoints_;
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public java.util.List getDatapointsList() {
return datapoints_;
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointOrBuilder>
getDatapointsOrBuilderList() {
return datapoints_;
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public int getDatapointsCount() {
return datapoints_.size();
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint getDatapoints(int index) {
return datapoints_.get(index);
}
/**
* repeated .com.signalfx.metrics.protobuf.DataPoint datapoints = 1;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointOrBuilder getDatapointsOrBuilder(
int index) {
return datapoints_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < datapoints_.size(); i++) {
output.writeMessage(1, datapoints_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < datapoints_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(1, datapoints_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage) obj;
boolean result = true;
result = result && getDatapointsList()
.equals(other.getDatapointsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.DataPointUploadMessage)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessageOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_DataPointUploadMessage_descriptor;
}
protected com.github.os72.protobuf351.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDatapointsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (datapointsBuilder_ == null) {
datapoints_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
datapointsBuilder_.clear();
}
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_DataPointUploadMessage_descriptor;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage.getDefaultInstance();
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage(this);
int from_bitField0_ = bitField0_;
if (datapointsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
datapoints_ = java.util.Collections.unmodifiableList(datapoints_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.datapoints_ = datapoints_;
} else {
result.datapoints_ = datapointsBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDatapointsFieldBuilder() : null;
} else {
datapointsBuilder_.addAllMessages(other.datapoints_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointUploadMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List datapoints_ =
java.util.Collections.emptyList();
private void ensureDatapointsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
datapoints_ = new java.util.ArrayList(datapoints_);
bitField0_ |= 0x00000001;
}
}
private com.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPoint.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DataPointOrBuilder>(
datapoints_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
datapoints_ = null;
}
return datapointsBuilder_;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.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.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public DataPointUploadMessage parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new DataPointUploadMessage(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
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.github.os72.protobuf351.MessageOrBuilder {
/**
* optional int64 timestamp = 3;
*/
boolean hasTimestamp();
/**
* optional int64 timestamp = 3;
*/
long getTimestamp();
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
boolean hasValue();
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
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.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PointValue() {
timestamp_ = 0L;
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PointValue(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 24: {
bitField0_ |= 0x00000001;
timestamp_ = input.readInt64();
break;
}
case 34: {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = value_.toBuilder();
}
value_ = input.readMessage(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(value_);
value_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_PointValue_descriptor;
}
protected com.github.os72.protobuf351.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_;
/**
* optional int64 timestamp = 3;
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int64 timestamp = 3;
*/
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;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
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;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DatumOrBuilder getValueOrBuilder() {
return value_ == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.getDefaultInstance() : value_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(3, timestamp_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(4, getValue());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt64Size(3, timestamp_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(4, getValue());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue) obj;
boolean result = true;
result = result && (hasTimestamp() == other.hasTimestamp());
if (hasTimestamp()) {
result = result && (getTimestamp()
== other.getTimestamp());
}
result = result && (hasValue() == other.hasValue());
if (hasValue()) {
result = result && getValue()
.equals(other.getValue());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@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.github.os72.protobuf351.Internal.hashLong(
getTimestamp());
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.PointValue)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValueOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_PointValue_descriptor;
}
protected com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValueFieldBuilder();
}
}
public Builder clear() {
super.clear();
timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
if (valueBuilder_ == null) {
value_ = null;
} else {
valueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_PointValue_descriptor;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue.getDefaultInstance();
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.timestamp_ = timestamp_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.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.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PointValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long timestamp_ ;
/**
* optional int64 timestamp = 3;
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional int64 timestamp = 3;
*/
public long getTimestamp() {
return timestamp_;
}
/**
* optional int64 timestamp = 3;
*/
public Builder setTimestamp(long value) {
bitField0_ |= 0x00000001;
timestamp_ = value;
onChanged();
return this;
}
/**
* optional int64 timestamp = 3;
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000001);
timestamp_ = 0L;
onChanged();
return this;
}
private com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum value_ = null;
private com.github.os72.protobuf351.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;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
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;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
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();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
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) == 0x00000002) &&
value_ != null &&
value_ != com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.getDefaultInstance()) {
value_ =
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Datum.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.Datum value = 4;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = null;
onChanged();
} else {
valueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
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.github.os72.protobuf351.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.github.os72.protobuf351.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_;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.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.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public PointValue parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new PointValue(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
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.github.os72.protobuf351.MessageOrBuilder {
/**
* optional string key = 1;
*/
boolean hasKey();
/**
* optional string key = 1;
*/
java.lang.String getKey();
/**
* optional string key = 1;
*/
com.github.os72.protobuf351.ByteString
getKeyBytes();
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
*/
boolean hasValue();
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
*/
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.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Property() {
key_ = "";
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Property(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.github.os72.protobuf351.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
key_ = bs;
break;
}
case 18: {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = value_.toBuilder();
}
value_ = input.readMessage(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(value_);
value_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Property_descriptor;
}
protected com.github.os72.protobuf351.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;
private volatile java.lang.Object key_;
/**
* optional string key = 1;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string key = 1;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
}
}
/**
* optional string key = 1;
*/
public com.github.os72.protobuf351.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.github.os72.protobuf351.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;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
*/
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;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValueOrBuilder getValueOrBuilder() {
return value_ == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.getDefaultInstance() : value_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, key_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, getValue());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, key_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(2, getValue());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property) obj;
boolean result = true;
result = result && (hasKey() == other.hasKey());
if (hasKey()) {
result = result && getKey()
.equals(other.getKey());
}
result = result && (hasValue() == other.hasValue());
if (hasValue()) {
result = result && getValue()
.equals(other.getValue());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.Property)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Property_descriptor;
}
protected com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValueFieldBuilder();
}
}
public Builder clear() {
super.clear();
key_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (valueBuilder_ == null) {
value_ = null;
} else {
valueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Property_descriptor;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.getDefaultInstance();
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.key_ = key_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.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()) {
bitField0_ |= 0x00000001;
key_ = other.key_;
onChanged();
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
* optional string key = 1;
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string key = 1;
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.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;
*/
public com.github.os72.protobuf351.ByteString
getKeyBytes() {
java.lang.Object ref = key_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
key_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* optional string key = 1;
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
/**
* optional string key = 1;
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000001);
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* optional string key = 1;
*/
public Builder setKeyBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
private com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue value_ = null;
private com.github.os72.protobuf351.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;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
*/
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;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
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();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
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) == 0x00000002) &&
value_ != null &&
value_ != com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.getDefaultInstance()) {
value_ =
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .com.signalfx.metrics.protobuf.PropertyValue value = 2;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = null;
onChanged();
} else {
valueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
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.github.os72.protobuf351.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.github.os72.protobuf351.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_;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.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.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public Property parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new Property(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
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.github.os72.protobuf351.MessageOrBuilder {
/**
* optional string strValue = 1;
*/
boolean hasStrValue();
/**
* optional string strValue = 1;
*/
java.lang.String getStrValue();
/**
* optional string strValue = 1;
*/
com.github.os72.protobuf351.ByteString
getStrValueBytes();
/**
* optional double doubleValue = 2;
*/
boolean hasDoubleValue();
/**
* optional double doubleValue = 2;
*/
double getDoubleValue();
/**
* optional int64 intValue = 3;
*/
boolean hasIntValue();
/**
* optional int64 intValue = 3;
*/
long getIntValue();
/**
* optional bool boolValue = 4;
*/
boolean hasBoolValue();
/**
* optional bool boolValue = 4;
*/
boolean getBoolValue();
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.PropertyValue}
*/
public static final class PropertyValue extends
com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PropertyValue() {
strValue_ = "";
doubleValue_ = 0D;
intValue_ = 0L;
boolValue_ = false;
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PropertyValue(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.github.os72.protobuf351.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
strValue_ = bs;
break;
}
case 17: {
bitField0_ |= 0x00000002;
doubleValue_ = input.readDouble();
break;
}
case 24: {
bitField0_ |= 0x00000004;
intValue_ = input.readInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
boolValue_ = input.readBool();
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_PropertyValue_descriptor;
}
protected com.github.os72.protobuf351.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;
private volatile java.lang.Object strValue_;
/**
* optional string strValue = 1;
*/
public boolean hasStrValue() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string strValue = 1;
*/
public java.lang.String getStrValue() {
java.lang.Object ref = strValue_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
strValue_ = s;
}
return s;
}
}
/**
* optional string strValue = 1;
*/
public com.github.os72.protobuf351.ByteString
getStrValueBytes() {
java.lang.Object ref = strValue_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
strValue_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int DOUBLEVALUE_FIELD_NUMBER = 2;
private double doubleValue_;
/**
* optional double doubleValue = 2;
*/
public boolean hasDoubleValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional double doubleValue = 2;
*/
public double getDoubleValue() {
return doubleValue_;
}
public static final int INTVALUE_FIELD_NUMBER = 3;
private long intValue_;
/**
* optional int64 intValue = 3;
*/
public boolean hasIntValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int64 intValue = 3;
*/
public long getIntValue() {
return intValue_;
}
public static final int BOOLVALUE_FIELD_NUMBER = 4;
private boolean boolValue_;
/**
* optional bool boolValue = 4;
*/
public boolean hasBoolValue() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bool boolValue = 4;
*/
public boolean getBoolValue() {
return boolValue_;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.github.os72.protobuf351.GeneratedMessageV3.writeString(output, 1, strValue_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeDouble(2, doubleValue_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(3, intValue_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, boolValue_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, strValue_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeDoubleSize(2, doubleValue_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt64Size(3, intValue_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeBoolSize(4, boolValue_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue) obj;
boolean result = true;
result = result && (hasStrValue() == other.hasStrValue());
if (hasStrValue()) {
result = result && getStrValue()
.equals(other.getStrValue());
}
result = result && (hasDoubleValue() == other.hasDoubleValue());
if (hasDoubleValue()) {
result = result && (
java.lang.Double.doubleToLongBits(getDoubleValue())
== java.lang.Double.doubleToLongBits(
other.getDoubleValue()));
}
result = result && (hasIntValue() == other.hasIntValue());
if (hasIntValue()) {
result = result && (getIntValue()
== other.getIntValue());
}
result = result && (hasBoolValue() == other.hasBoolValue());
if (hasBoolValue()) {
result = result && (getBoolValue()
== other.getBoolValue());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@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.github.os72.protobuf351.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDoubleValue()));
}
if (hasIntValue()) {
hash = (37 * hash) + INTVALUE_FIELD_NUMBER;
hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashLong(
getIntValue());
}
if (hasBoolValue()) {
hash = (37 * hash) + BOOLVALUE_FIELD_NUMBER;
hash = (53 * hash) + com.github.os72.protobuf351.Internal.hashBoolean(
getBoolValue());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.PropertyValue)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValueOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_PropertyValue_descriptor;
}
protected com.github.os72.protobuf351.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
strValue_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
doubleValue_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
intValue_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
boolValue_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_PropertyValue_descriptor;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue.getDefaultInstance();
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.strValue_ = strValue_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.doubleValue_ = doubleValue_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.intValue_ = intValue_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.boolValue_ = boolValue_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.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()) {
bitField0_ |= 0x00000001;
strValue_ = other.strValue_;
onChanged();
}
if (other.hasDoubleValue()) {
setDoubleValue(other.getDoubleValue());
}
if (other.hasIntValue()) {
setIntValue(other.getIntValue());
}
if (other.hasBoolValue()) {
setBoolValue(other.getBoolValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object strValue_ = "";
/**
* optional string strValue = 1;
*/
public boolean hasStrValue() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string strValue = 1;
*/
public java.lang.String getStrValue() {
java.lang.Object ref = strValue_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.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;
*/
public com.github.os72.protobuf351.ByteString
getStrValueBytes() {
java.lang.Object ref = strValue_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
strValue_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* optional string strValue = 1;
*/
public Builder setStrValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
strValue_ = value;
onChanged();
return this;
}
/**
* optional string strValue = 1;
*/
public Builder clearStrValue() {
bitField0_ = (bitField0_ & ~0x00000001);
strValue_ = getDefaultInstance().getStrValue();
onChanged();
return this;
}
/**
* optional string strValue = 1;
*/
public Builder setStrValueBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
strValue_ = value;
onChanged();
return this;
}
private double doubleValue_ ;
/**
* optional double doubleValue = 2;
*/
public boolean hasDoubleValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional double doubleValue = 2;
*/
public double getDoubleValue() {
return doubleValue_;
}
/**
* optional double doubleValue = 2;
*/
public Builder setDoubleValue(double value) {
bitField0_ |= 0x00000002;
doubleValue_ = value;
onChanged();
return this;
}
/**
* optional double doubleValue = 2;
*/
public Builder clearDoubleValue() {
bitField0_ = (bitField0_ & ~0x00000002);
doubleValue_ = 0D;
onChanged();
return this;
}
private long intValue_ ;
/**
* optional int64 intValue = 3;
*/
public boolean hasIntValue() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int64 intValue = 3;
*/
public long getIntValue() {
return intValue_;
}
/**
* optional int64 intValue = 3;
*/
public Builder setIntValue(long value) {
bitField0_ |= 0x00000004;
intValue_ = value;
onChanged();
return this;
}
/**
* optional int64 intValue = 3;
*/
public Builder clearIntValue() {
bitField0_ = (bitField0_ & ~0x00000004);
intValue_ = 0L;
onChanged();
return this;
}
private boolean boolValue_ ;
/**
* optional bool boolValue = 4;
*/
public boolean hasBoolValue() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bool boolValue = 4;
*/
public boolean getBoolValue() {
return boolValue_;
}
/**
* optional bool boolValue = 4;
*/
public Builder setBoolValue(boolean value) {
bitField0_ |= 0x00000008;
boolValue_ = value;
onChanged();
return this;
}
/**
* optional bool boolValue = 4;
*/
public Builder clearBoolValue() {
bitField0_ = (bitField0_ & ~0x00000008);
boolValue_ = false;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.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.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public PropertyValue parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new PropertyValue(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
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.github.os72.protobuf351.MessageOrBuilder {
/**
* required string eventType = 1;
*/
boolean hasEventType();
/**
* required string eventType = 1;
*/
java.lang.String getEventType();
/**
* required string eventType = 1;
*/
com.github.os72.protobuf351.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;
*/
boolean hasCategory();
/**
* optional .com.signalfx.metrics.protobuf.EventCategory category = 4;
*/
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory getCategory();
/**
* optional int64 timestamp = 5;
*/
boolean hasTimestamp();
/**
* optional int64 timestamp = 5;
*/
long getTimestamp();
}
/**
* Protobuf type {@code com.signalfx.metrics.protobuf.Event}
*/
public static final class Event extends
com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Event() {
eventType_ = "";
dimensions_ = java.util.Collections.emptyList();
properties_ = java.util.Collections.emptyList();
category_ = 1000000;
timestamp_ = 0L;
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Event(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
com.github.os72.protobuf351.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
eventType_ = bs;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
dimensions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
dimensions_.add(
input.readMessage(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.PARSER, extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
properties_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
properties_.add(
input.readMessage(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.PARSER, extensionRegistry));
break;
}
case 32: {
int rawValue = input.readEnum();
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory value = com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(4, rawValue);
} else {
bitField0_ |= 0x00000002;
category_ = rawValue;
}
break;
}
case 40: {
bitField0_ |= 0x00000004;
timestamp_ = input.readInt64();
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
dimensions_ = java.util.Collections.unmodifiableList(dimensions_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
properties_ = java.util.Collections.unmodifiableList(properties_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Event_descriptor;
}
protected com.github.os72.protobuf351.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;
private volatile java.lang.Object eventType_;
/**
* required string eventType = 1;
*/
public boolean hasEventType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string eventType = 1;
*/
public java.lang.String getEventType() {
java.lang.Object ref = eventType_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
eventType_ = s;
}
return s;
}
}
/**
* required string eventType = 1;
*/
public com.github.os72.protobuf351.ByteString
getEventTypeBytes() {
java.lang.Object ref = eventType_;
if (ref instanceof java.lang.String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventType_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
public static final int DIMENSIONS_FIELD_NUMBER = 2;
private java.util.List dimensions_;
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public java.util.List getDimensionsList() {
return dimensions_;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder>
getDimensionsOrBuilderList() {
return dimensions_;
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public int getDimensionsCount() {
return dimensions_.size();
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension getDimensions(int index) {
return dimensions_.get(index);
}
/**
* repeated .com.signalfx.metrics.protobuf.Dimension dimensions = 2;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder getDimensionsOrBuilder(
int index) {
return dimensions_.get(index);
}
public static final int PROPERTIES_FIELD_NUMBER = 3;
private java.util.List properties_;
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public java.util.List getPropertiesList() {
return properties_;
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyOrBuilder>
getPropertiesOrBuilderList() {
return properties_;
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public int getPropertiesCount() {
return properties_.size();
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property getProperties(int index) {
return properties_.get(index);
}
/**
* repeated .com.signalfx.metrics.protobuf.Property properties = 3;
*/
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_;
/**
* optional .com.signalfx.metrics.protobuf.EventCategory category = 4;
*/
public boolean hasCategory() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .com.signalfx.metrics.protobuf.EventCategory category = 4;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory getCategory() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory result = com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory.valueOf(category_);
return result == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory.USER_DEFINED : result;
}
public static final int TIMESTAMP_FIELD_NUMBER = 5;
private long timestamp_;
/**
* optional int64 timestamp = 5;
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional int64 timestamp = 5;
*/
public long getTimestamp() {
return timestamp_;
}
private byte memoizedIsInitialized = -1;
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;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
com.github.os72.protobuf351.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) == 0x00000002)) {
output.writeEnum(4, category_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt64(5, timestamp_);
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.github.os72.protobuf351.GeneratedMessageV3.computeStringSize(1, eventType_);
}
for (int i = 0; i < dimensions_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(2, dimensions_.get(i));
}
for (int i = 0; i < properties_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(3, properties_.get(i));
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeEnumSize(4, category_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeInt64Size(5, timestamp_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event) obj;
boolean result = true;
result = result && (hasEventType() == other.hasEventType());
if (hasEventType()) {
result = result && getEventType()
.equals(other.getEventType());
}
result = result && getDimensionsList()
.equals(other.getDimensionsList());
result = result && getPropertiesList()
.equals(other.getPropertiesList());
result = result && (hasCategory() == other.hasCategory());
if (hasCategory()) {
result = result && category_ == other.category_;
}
result = result && (hasTimestamp() == other.hasTimestamp());
if (hasTimestamp()) {
result = result && (getTimestamp()
== other.getTimestamp());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@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.github.os72.protobuf351.Internal.hashLong(
getTimestamp());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.Event)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Event_descriptor;
}
protected com.github.os72.protobuf351.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDimensionsFieldBuilder();
getPropertiesFieldBuilder();
}
}
public Builder clear() {
super.clear();
eventType_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (dimensionsBuilder_ == null) {
dimensions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
dimensionsBuilder_.clear();
}
if (propertiesBuilder_ == null) {
properties_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
propertiesBuilder_.clear();
}
category_ = 1000000;
bitField0_ = (bitField0_ & ~0x00000008);
timestamp_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_Event_descriptor;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.getDefaultInstance();
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.eventType_ = eventType_;
if (dimensionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
dimensions_ = java.util.Collections.unmodifiableList(dimensions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.dimensions_ = dimensions_;
} else {
result.dimensions_ = dimensionsBuilder_.build();
}
if (propertiesBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
properties_ = java.util.Collections.unmodifiableList(properties_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.properties_ = properties_;
} else {
result.properties_ = propertiesBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000002;
}
result.category_ = category_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000004;
}
result.timestamp_ = timestamp_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.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()) {
bitField0_ |= 0x00000001;
eventType_ = other.eventType_;
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.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPropertiesFieldBuilder() : null;
} else {
propertiesBuilder_.addAllMessages(other.properties_);
}
}
}
if (other.hasCategory()) {
setCategory(other.getCategory());
}
if (other.hasTimestamp()) {
setTimestamp(other.getTimestamp());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
if (!hasEventType()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object eventType_ = "";
/**
* required string eventType = 1;
*/
public boolean hasEventType() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string eventType = 1;
*/
public java.lang.String getEventType() {
java.lang.Object ref = eventType_;
if (!(ref instanceof java.lang.String)) {
com.github.os72.protobuf351.ByteString bs =
(com.github.os72.protobuf351.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;
*/
public com.github.os72.protobuf351.ByteString
getEventTypeBytes() {
java.lang.Object ref = eventType_;
if (ref instanceof String) {
com.github.os72.protobuf351.ByteString b =
com.github.os72.protobuf351.ByteString.copyFromUtf8(
(java.lang.String) ref);
eventType_ = b;
return b;
} else {
return (com.github.os72.protobuf351.ByteString) ref;
}
}
/**
* required string eventType = 1;
*/
public Builder setEventType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
eventType_ = value;
onChanged();
return this;
}
/**
* required string eventType = 1;
*/
public Builder clearEventType() {
bitField0_ = (bitField0_ & ~0x00000001);
eventType_ = getDefaultInstance().getEventType();
onChanged();
return this;
}
/**
* required string eventType = 1;
*/
public Builder setEventTypeBytes(
com.github.os72.protobuf351.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
eventType_ = value;
onChanged();
return this;
}
private java.util.List dimensions_ =
java.util.Collections.emptyList();
private void ensureDimensionsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
dimensions_ = new java.util.ArrayList(dimensions_);
bitField0_ |= 0x00000002;
}
}
private com.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Dimension.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.DimensionOrBuilder>(
dimensions_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
dimensions_ = null;
}
return dimensionsBuilder_;
}
private java.util.List properties_ =
java.util.Collections.emptyList();
private void ensurePropertiesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
properties_ = new java.util.ArrayList(properties_);
bitField0_ |= 0x00000004;
}
}
private com.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Property.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.PropertyOrBuilder>(
properties_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
properties_ = null;
}
return propertiesBuilder_;
}
private int category_ = 1000000;
/**
* optional .com.signalfx.metrics.protobuf.EventCategory category = 4;
*/
public boolean hasCategory() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .com.signalfx.metrics.protobuf.EventCategory category = 4;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory getCategory() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory result = com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory.valueOf(category_);
return result == null ? com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventCategory.USER_DEFINED : result;
}
/**
* optional .com.signalfx.metrics.protobuf.EventCategory category = 4;
*/
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;
*/
public Builder clearCategory() {
bitField0_ = (bitField0_ & ~0x00000008);
category_ = 1000000;
onChanged();
return this;
}
private long timestamp_ ;
/**
* optional int64 timestamp = 5;
*/
public boolean hasTimestamp() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional int64 timestamp = 5;
*/
public long getTimestamp() {
return timestamp_;
}
/**
* optional int64 timestamp = 5;
*/
public Builder setTimestamp(long value) {
bitField0_ |= 0x00000010;
timestamp_ = value;
onChanged();
return this;
}
/**
* optional int64 timestamp = 5;
*/
public Builder clearTimestamp() {
bitField0_ = (bitField0_ & ~0x00000010);
timestamp_ = 0L;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.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.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public Event parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new Event(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
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.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EventUploadMessage() {
events_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.github.os72.protobuf351.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EventUploadMessage(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.github.os72.protobuf351.UnknownFieldSet.Builder unknownFields =
com.github.os72.protobuf351.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
events_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
events_.add(
input.readMessage(com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.github.os72.protobuf351.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
events_ = java.util.Collections.unmodifiableList(events_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_EventUploadMessage_descriptor;
}
protected com.github.os72.protobuf351.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;
private java.util.List events_;
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public java.util.List getEventsList() {
return events_;
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public java.util.List extends com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventOrBuilder>
getEventsOrBuilderList() {
return events_;
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public int getEventsCount() {
return events_.size();
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event getEvents(int index) {
return events_.get(index);
}
/**
* repeated .com.signalfx.metrics.protobuf.Event events = 1;
*/
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventOrBuilder getEventsOrBuilder(
int index) {
return events_.get(index);
}
private byte memoizedIsInitialized = -1;
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;
}
public void writeTo(com.github.os72.protobuf351.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < events_.size(); i++) {
output.writeMessage(1, events_.get(i));
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < events_.size(); i++) {
size += com.github.os72.protobuf351.CodedOutputStream
.computeMessageSize(1, events_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage)) {
return super.equals(obj);
}
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage other = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage) obj;
boolean result = true;
result = result && getEventsList()
.equals(other.getEventsList());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@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) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(
java.nio.ByteBuffer data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(
java.nio.ByteBuffer data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(
com.github.os72.protobuf351.ByteString data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(
com.github.os72.protobuf351.ByteString data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(byte[] data)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(
byte[] data,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseDelimitedFrom(
java.io.InputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(
com.github.os72.protobuf351.CodedInputStream input)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parseFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.github.os72.protobuf351.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
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);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.signalfx.metrics.protobuf.EventUploadMessage)
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessageOrBuilder {
public static final com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptor() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_EventUploadMessage_descriptor;
}
protected com.github.os72.protobuf351.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() {
maybeForceBuilderInitialization();
}
private Builder(
com.github.os72.protobuf351.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.github.os72.protobuf351.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getEventsFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (eventsBuilder_ == null) {
events_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
eventsBuilder_.clear();
}
return this;
}
public com.github.os72.protobuf351.Descriptors.Descriptor
getDescriptorForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.internal_static_com_signalfx_metrics_protobuf_EventUploadMessage_descriptor;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage getDefaultInstanceForType() {
return com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage.getDefaultInstance();
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage build() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage buildPartial() {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage result = new com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage(this);
int from_bitField0_ = bitField0_;
if (eventsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
events_ = java.util.Collections.unmodifiableList(events_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.events_ = events_;
} else {
result.events_ = eventsBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.github.os72.protobuf351.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.github.os72.protobuf351.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.github.os72.protobuf351.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.github.os72.protobuf351.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEventsFieldBuilder() : null;
} else {
eventsBuilder_.addAllMessages(other.events_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getEventsCount(); i++) {
if (!getEvents(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.github.os72.protobuf351.InvalidProtocolBufferException e) {
parsedMessage = (com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List events_ =
java.util.Collections.emptyList();
private void ensureEventsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
events_ = new java.util.ArrayList(events_);
bitField0_ |= 0x00000001;
}
}
private com.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.RepeatedFieldBuilderV3<
com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.Event.Builder, com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventOrBuilder>(
events_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
events_ = null;
}
return eventsBuilder_;
}
public final Builder setUnknownFields(
final com.github.os72.protobuf351.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
public final Builder mergeUnknownFields(
final com.github.os72.protobuf351.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.github.os72.protobuf351.Parser
PARSER = new com.github.os72.protobuf351.AbstractParser() {
public EventUploadMessage parsePartialFrom(
com.github.os72.protobuf351.CodedInputStream input,
com.github.os72.protobuf351.ExtensionRegistryLite extensionRegistry)
throws com.github.os72.protobuf351.InvalidProtocolBufferException {
return new EventUploadMessage(input, extensionRegistry);
}
};
public static com.github.os72.protobuf351.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.github.os72.protobuf351.Parser getParserForType() {
return PARSER;
}
public com.signalfx.metrics.protobuf.SignalFxProtocolBuffers.EventUploadMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.github.os72.protobuf351.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_Datum_descriptor;
private static final
com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_Datum_fieldAccessorTable;
private static final com.github.os72.protobuf351.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_Dimension_descriptor;
private static final
com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_Dimension_fieldAccessorTable;
private static final com.github.os72.protobuf351.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_DataPoint_descriptor;
private static final
com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_DataPoint_fieldAccessorTable;
private static final com.github.os72.protobuf351.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_DataPointUploadMessage_descriptor;
private static final
com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_DataPointUploadMessage_fieldAccessorTable;
private static final com.github.os72.protobuf351.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_PointValue_descriptor;
private static final
com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_PointValue_fieldAccessorTable;
private static final com.github.os72.protobuf351.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_Property_descriptor;
private static final
com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_Property_fieldAccessorTable;
private static final com.github.os72.protobuf351.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_PropertyValue_descriptor;
private static final
com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_PropertyValue_fieldAccessorTable;
private static final com.github.os72.protobuf351.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_Event_descriptor;
private static final
com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_Event_fieldAccessorTable;
private static final com.github.os72.protobuf351.Descriptors.Descriptor
internal_static_com_signalfx_metrics_protobuf_EventUploadMessage_descriptor;
private static final
com.github.os72.protobuf351.GeneratedMessageV3.FieldAccessorTable
internal_static_com_signalfx_metrics_protobuf_EventUploadMessage_fieldAccessorTable;
public static com.github.os72.protobuf351.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.github.os72.protobuf351.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"
};
com.github.os72.protobuf351.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.github.os72.protobuf351.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.github.os72.protobuf351.ExtensionRegistry assignDescriptors(
com.github.os72.protobuf351.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.github.os72.protobuf351.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.github.os72.protobuf351.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_com_signalfx_metrics_protobuf_Datum_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_signalfx_metrics_protobuf_Datum_fieldAccessorTable = new
com.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.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.github.os72.protobuf351.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