Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   // Generated by the protocol buffer compiler.  DO NOT EDIT!
   // source: EssemReport.proto
   
   package org.attribyte.essem;
   
   public final class ReportProtos {
     private ReportProtos() {}
     public static void registerAllExtensions(
         com.google.protobuf.ExtensionRegistry registry) {
    }
    public interface EssemReportOrBuilder
        extends com.google.protobuf.MessageOrBuilder {
      
      // repeated .org.attribyte.essem.EssemReport.Meter meter = 1;
          getMeterList();
      int getMeterCount();
          getMeterOrBuilderList();
          int index);
      
      // repeated .org.attribyte.essem.EssemReport.Timer timer = 2;
          getTimerList();
      int getTimerCount();
          getTimerOrBuilderList();
          int index);
      
      // repeated .org.attribyte.essem.EssemReport.Counter counter = 3;
          getCounterList();
      int getCounterCount();
          getCounterOrBuilderList();
          int index);
      
      // repeated .org.attribyte.essem.EssemReport.Histogram histogram = 4;
          getHistogramList();
      int getHistogramCount();
          getHistogramOrBuilderList();
          int index);
      
      // repeated .org.attribyte.essem.EssemReport.Gauge gauge = 5;
          getGaugeList();
      int getGaugeCount();
          getGaugeOrBuilderList();
          int index);
      
      // optional uint64 timestamp = 6;
      boolean hasTimestamp();
      long getTimestamp();
      
      // optional .org.attribyte.essem.EssemReport.TimeUnit rateUnit = 7;
      boolean hasRateUnit();
      
      // optional .org.attribyte.essem.EssemReport.TimeUnit durationUnit = 8;
      boolean hasDurationUnit();
      
      // optional string application = 9;
      boolean hasApplication();
      String getApplication();
      
      // optional string host = 10;
      boolean hasHost();
      String getHost();
      
      // optional string instance = 11;
      boolean hasInstance();
      String getInstance();
    }
    public static final class EssemReport extends
        implements EssemReportOrBuilder {
      // Use EssemReport.newBuilder() to construct.
      private EssemReport(Builder builder) {
        super(builder);
      }
      private EssemReport(boolean noInit) {}
      
      private static final EssemReport defaultInstance;
      public static EssemReport getDefaultInstance() {
        return ;
     }
     
       return ;
     }
     
     public static final com.google.protobuf.Descriptors.Descriptor
         getDescriptor() {
     }
     
         internalGetFieldAccessorTable() {
     }
     
     public enum TimeUnit
         implements com.google.protobuf.ProtocolMessageEnum {
       NANOS(0, 1),
       MICROS(1, 2),
       MILLIS(2, 3),
       SECONDS(3, 4),
       MINUTES(4, 5),
       HOURS(5, 6),
       DAYS(6, 7),
       ;
       
       public static final int NANOS_VALUE = 1;
       public static final int MICROS_VALUE = 2;
       public static final int MILLIS_VALUE = 3;
       public static final int SECONDS_VALUE = 4;
       public static final int MINUTES_VALUE = 5;
       public static final int HOURS_VALUE = 6;
       public static final int DAYS_VALUE = 7;
       
       
       public final int getNumber() { return ; }
       
       public static TimeUnit valueOf(int value) {
         switch (value) {
           case 1: return ;
           case 2: return ;
           case 3: return ;
           case 4: return ;
           case 5: return ;
           case 6: return ;
           case 7: return ;
           defaultreturn null;
         }
       }
       
       public static com.google.protobuf.Internal.EnumLiteMap<TimeUnit>
           internalGetValueMap() {
         return ;
       }
       private static com.google.protobuf.Internal.EnumLiteMap<TimeUnit>
           internalValueMap =
             new com.google.protobuf.Internal.EnumLiteMap<TimeUnit>() {
               public TimeUnit findValueByNumber(int number) {
                 return TimeUnit.valueOf(number);
               }
             };
       
           getValueDescriptor() {
         return getDescriptor().getValues().get();
       }
       public final com.google.protobuf.Descriptors.EnumDescriptor
           getDescriptorForType() {
         return getDescriptor();
       }
       public static final com.google.protobuf.Descriptors.EnumDescriptor
           getDescriptor() {
         return org.attribyte.essem.ReportProtos.EssemReport.getDescriptor().getEnumTypes().get(0);
       }
       
       private static final TimeUnit[] VALUES = {
         
       };
       
       public static TimeUnit valueOf(
           com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
           throw new java.lang.IllegalArgumentException(
             "EnumValueDescriptor is not for this type.");
         }
         return [desc.getIndex()];
       }
       
       private final int index;
       private final int value;
       
       private TimeUnit(int indexint value) {
         this. = index;
         this. = value;
       }
       
       // @@protoc_insertion_point(enum_scope:org.attribyte.essem.EssemReport.TimeUnit)
     }
     
     public interface GaugeOrBuilder
         extends com.google.protobuf.MessageOrBuilder {
       
       // optional string name = 1;
       boolean hasName();
       String getName();
       
       // optional double value = 2;
       boolean hasValue();
       double getValue();
       
       // optional string comment = 3;
       boolean hasComment();
       String getComment();
     }
     public static final class Gauge extends
         implements GaugeOrBuilder {
       // Use Gauge.newBuilder() to construct.
       private Gauge(Builder builder) {
         super(builder);
       }
       private Gauge(boolean noInit) {}
       
       private static final Gauge defaultInstance;
       public static Gauge getDefaultInstance() {
         return ;
       }
       
       public Gauge getDefaultInstanceForType() {
         return ;
       }
       
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
       }
       
           internalGetFieldAccessorTable() {
       }
       
       private int bitField0_;
       // optional string name = 1;
       public static final int NAME_FIELD_NUMBER = 1;
       private java.lang.Object name_;
       public boolean hasName() {
         return (( & 0x00000001) == 0x00000001);
       }
       public String getName() {
         java.lang.Object ref = ;
         if (ref instanceof String) {
           return (Stringref;
         } else {
           com.google.protobuf.ByteString bs = 
               (com.google.protobuf.ByteStringref;
           String s = bs.toStringUtf8();
           if (com.google.protobuf.Internal.isValidUtf8(bs)) {
              = s;
           }
           return s;
         }
       }
       private com.google.protobuf.ByteString getNameBytes() {
         java.lang.Object ref = ;
         if (ref instanceof String) {
           com.google.protobuf.ByteString b = 
               com.google.protobuf.ByteString.copyFromUtf8((Stringref);
            = b;
           return b;
         } else {
           return (com.google.protobuf.ByteStringref;
         }
       }
       
       // optional double value = 2;
       public static final int VALUE_FIELD_NUMBER = 2;
       private double value_;
       public boolean hasValue() {
         return (( & 0x00000002) == 0x00000002);
       }
       public double getValue() {
         return ;
       }
       
       // optional string comment = 3;
       public static final int COMMENT_FIELD_NUMBER = 3;
       private java.lang.Object comment_;
       public boolean hasComment() {
         return (( & 0x00000004) == 0x00000004);
       }
       public String getComment() {
         java.lang.Object ref = ;
         if (ref instanceof String) {
           return (Stringref;
         } else {
           com.google.protobuf.ByteString bs = 
               (com.google.protobuf.ByteStringref;
           String s = bs.toStringUtf8();
           if (com.google.protobuf.Internal.isValidUtf8(bs)) {
              = s;
           }
           return s;
         }
       }
       private com.google.protobuf.ByteString getCommentBytes() {
         java.lang.Object ref = ;
         if (ref instanceof String) {
           com.google.protobuf.ByteString b = 
               com.google.protobuf.ByteString.copyFromUtf8((Stringref);
            = b;
           return b;
         } else {
           return (com.google.protobuf.ByteStringref;
         }
       }
       
       private void initFields() {
          = "";
          = 0D;
          = "";
       }
       private byte memoizedIsInitialized = -1;
       public final boolean isInitialized() {
         byte isInitialized = ;
         if (isInitialized != -1) return isInitialized == 1;
         
          = 1;
         return true;
       }
       
       public void writeTo(com.google.protobuf.CodedOutputStream output)
                           throws java.io.IOException {
         getSerializedSize();
         if ((( & 0x00000001) == 0x00000001)) {
           output.writeBytes(1, getNameBytes());
         }
         if ((( & 0x00000002) == 0x00000002)) {
           output.writeDouble(2, );
         }
         if ((( & 0x00000004) == 0x00000004)) {
           output.writeBytes(3, getCommentBytes());
         }
         getUnknownFields().writeTo(output);
       }
       
       private int memoizedSerializedSize = -1;
       public int getSerializedSize() {
         int size = ;
         if (size != -1) return size;
       
         size = 0;
         if ((( & 0x00000001) == 0x00000001)) {
           size += com.google.protobuf.CodedOutputStream
             .computeBytesSize(1, getNameBytes());
         }
         if ((( & 0x00000002) == 0x00000002)) {
           size += com.google.protobuf.CodedOutputStream
             .computeDoubleSize(2, );
         }
         if ((( & 0x00000004) == 0x00000004)) {
           size += com.google.protobuf.CodedOutputStream
             .computeBytesSize(3, getCommentBytes());
         }
         size += getUnknownFields().getSerializedSize();
          = size;
         return size;
       }
       
       private static final long serialVersionUID = 0L;
       @java.lang.Override
       protected java.lang.Object writeReplace()
           throws java.io.ObjectStreamException {
         return super.writeReplace();
       }
       
       public static org.attribyte.essem.ReportProtos.EssemReport.Gauge parseFrom(
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return newBuilder().mergeFrom(data).buildParsed();
       }
       public static org.attribyte.essem.ReportProtos.EssemReport.Gauge parseFrom(
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return newBuilder().mergeFrom(dataextensionRegistry)
                  .buildParsed();
       }
       public static org.attribyte.essem.ReportProtos.EssemReport.Gauge parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return newBuilder().mergeFrom(data).buildParsed();
       }
       public static org.attribyte.essem.ReportProtos.EssemReport.Gauge parseFrom(
           byte[] data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return newBuilder().mergeFrom(dataextensionRegistry)
                  .buildParsed();
       }
           throws java.io.IOException {
         return newBuilder().mergeFrom(input).buildParsed();
       }
       public static org.attribyte.essem.ReportProtos.EssemReport.Gauge parseFrom(
           java.io.InputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
         return newBuilder().mergeFrom(inputextensionRegistry)
                  .buildParsed();
       }
           throws java.io.IOException {
         Builder builder = newBuilder();
         if (builder.mergeDelimitedFrom(input)) {
           return builder.buildParsed();
         } else {
           return null;
         }
       }
           java.io.InputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
         Builder builder = newBuilder();
         if (builder.mergeDelimitedFrom(inputextensionRegistry)) {
           return builder.buildParsed();
         } else {
           return null;
         }
       }
       public static org.attribyte.essem.ReportProtos.EssemReport.Gauge parseFrom(
           com.google.protobuf.CodedInputStream input)
           throws java.io.IOException {
         return newBuilder().mergeFrom(input).buildParsed();
       }
       public static org.attribyte.essem.ReportProtos.EssemReport.Gauge parseFrom(
           com.google.protobuf.CodedInputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
         return newBuilder().mergeFrom(inputextensionRegistry)
                  .buildParsed();
       }
       
       public static Builder newBuilder() { return Builder.create(); }
       public Builder newBuilderForType() { return newBuilder(); }
       public static Builder newBuilder(org.attribyte.essem.ReportProtos.EssemReport.Gauge prototype) {
         return newBuilder().mergeFrom(prototype);
       }
       public Builder toBuilder() { return newBuilder(this); }
       
       @java.lang.Override
       protected Builder newBuilderForType(
           com.google.protobuf.GeneratedMessage.BuilderParent parent) {
         Builder builder = new Builder(parent);
         return builder;
       }
       public static final class Builder extends
          implements org.attribyte.essem.ReportProtos.EssemReport.GaugeOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor
             getDescriptor() {
         }
         
             internalGetFieldAccessorTable() {
         }
         
         // Construct using org.attribyte.essem.ReportProtos.EssemReport.Gauge.newBuilder()
         private Builder() {
           maybeForceBuilderInitialization();
         }
         
         private Builder(BuilderParent parent) {
           super(parent);
           maybeForceBuilderInitialization();
         }
         private void maybeForceBuilderInitialization() {
           }
         }
         private static Builder create() {
           return new Builder();
         }
         
         public Builder clear() {
           super.clear();
            = "";
            = ( & ~0x00000001);
            = 0D;
            = ( & ~0x00000002);
            = "";
            = ( & ~0x00000004);
           return this;
         }
         
         public Builder clone() {
           return create().mergeFrom(buildPartial());
         }
         
         public com.google.protobuf.Descriptors.Descriptor
             getDescriptorForType() {
           return org.attribyte.essem.ReportProtos.EssemReport.Gauge.getDescriptor();
         }
         
           return org.attribyte.essem.ReportProtos.EssemReport.Gauge.getDefaultInstance();
         }
         
         public org.attribyte.essem.ReportProtos.EssemReport.Gauge build() {
           org.attribyte.essem.ReportProtos.EssemReport.Gauge result = buildPartial();
           if (!result.isInitialized()) {
             throw newUninitializedMessageException(result);
           }
           return result;
         }
         
             throws com.google.protobuf.InvalidProtocolBufferException {
           org.attribyte.essem.ReportProtos.EssemReport.Gauge result = buildPartial();
           if (!result.isInitialized()) {
             throw newUninitializedMessageException(
               result).asInvalidProtocolBufferException();
           }
           return result;
         }
         
           int from_bitField0_ = ;
           int to_bitField0_ = 0;
           if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
             to_bitField0_ |= 0x00000001;
           }
           result.name_ = ;
           if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
             to_bitField0_ |= 0x00000002;
           }
           result.value_ = ;
           if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
             to_bitField0_ |= 0x00000004;
           }
           result.comment_ = ;
           result.bitField0_ = to_bitField0_;
           onBuilt();
           return result;
         }
         
         public Builder mergeFrom(com.google.protobuf.Message other) {
           if (other instanceof org.attribyte.essem.ReportProtos.EssemReport.Gauge) {
             return mergeFrom((org.attribyte.essem.ReportProtos.EssemReport.Gauge)other);
           } else {
             super.mergeFrom(other);
             return this;
           }
         }
         
         public Builder mergeFrom(org.attribyte.essem.ReportProtos.EssemReport.Gauge other) {
           if (other == org.attribyte.essem.ReportProtos.EssemReport.Gauge.getDefaultInstance()) return this;
           if (other.hasName()) {
             setName(other.getName());
           }
           if (other.hasValue()) {
             setValue(other.getValue());
           }
           if (other.hasComment()) {
             setComment(other.getComment());
           }
           this.mergeUnknownFields(other.getUnknownFields());
           return this;
         }
         
         public final boolean isInitialized() {
           return true;
         }
         
         public Builder mergeFrom(
             com.google.protobuf.CodedInputStream input,
             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
             throws java.io.IOException {
           com.google.protobuf.UnknownFieldSet.Builder unknownFields =
             com.google.protobuf.UnknownFieldSet.newBuilder(
               this.getUnknownFields());
           while (true) {
             int tag = input.readTag();
             switch (tag) {
               case 0:
                 this.setUnknownFields(unknownFields.build());
                 onChanged();
                 return this;
               default: {
                 if (!parseUnknownField(inputunknownFields,
                                        extensionRegistrytag)) {
                   this.setUnknownFields(unknownFields.build());
                   onChanged();
                   return this;
                 }
                 break;
               }
               case 10: {
                  |= 0x00000001;
                  = input.readBytes();
                 break;
               }
               case 17: {
                  |= 0x00000002;
                  = input.readDouble();
                 break;
               }
               case 26: {
                  |= 0x00000004;
                  = input.readBytes();
                 break;
               }
             }
           }
         }
         
         private int bitField0_;
         
         // optional string name = 1;
         private java.lang.Object name_ = "";
         public boolean hasName() {
           return (( & 0x00000001) == 0x00000001);
         }
         public String getName() {
           java.lang.Object ref = ;
           if (!(ref instanceof String)) {
             String s = ((com.google.protobuf.ByteStringref).toStringUtf8();
              = s;
             return s;
           } else {
             return (Stringref;
           }
         }
         public Builder setName(String value) {
           if (value == null) {
     throw new NullPointerException();
   }
    |= 0x00000001;
            = value;
           onChanged();
           return this;
         }
         public Builder clearName() {
            = ( & ~0x00000001);
            = getDefaultInstance().getName();
           onChanged();
           return this;
         }
         void setName(com.google.protobuf.ByteString value) {
            |= 0x00000001;
            = value;
           onChanged();
         }
         
         // optional double value = 2;
         private double value_ ;
         public boolean hasValue() {
           return (( & 0x00000002) == 0x00000002);
         }
         public double getValue() {
           return ;
         }
         public Builder setValue(double value) {
            |= 0x00000002;
            = value;
           onChanged();
           return this;
         }
         public Builder clearValue() {
            = ( & ~0x00000002);
            = 0D;
           onChanged();
           return this;
         }
         
         // optional string comment = 3;
         private java.lang.Object comment_ = "";
         public boolean hasComment() {
           return (( & 0x00000004) == 0x00000004);
         }
         public String getComment() {
           java.lang.Object ref = ;
           if (!(ref instanceof String)) {
             String s = ((com.google.protobuf.ByteStringref).toStringUtf8();
              = s;
             return s;
           } else {
             return (Stringref;
           }
         }
         public Builder setComment(String value) {
           if (value == null) {
     throw new NullPointerException();
   }
    |= 0x00000004;
            = value;
           onChanged();
           return this;
         }
         public Builder clearComment() {
            = ( & ~0x00000004);
            = getDefaultInstance().getComment();
           onChanged();
           return this;
         }
         void setComment(com.google.protobuf.ByteString value) {
            |= 0x00000004;
            = value;
           onChanged();
         }
         
         // @@protoc_insertion_point(builder_scope:org.attribyte.essem.EssemReport.Gauge)
       }
       
       static {
          = new Gauge(true);
         .initFields();
       }
       
       // @@protoc_insertion_point(class_scope:org.attribyte.essem.EssemReport.Gauge)
     }
     
     public interface CounterOrBuilder
         extends com.google.protobuf.MessageOrBuilder {
       
       // optional string name = 1;
       boolean hasName();
       String getName();
       
       // optional uint64 count = 2;
       boolean hasCount();
       long getCount();
     }
     public static final class Counter extends
         implements CounterOrBuilder {
       // Use Counter.newBuilder() to construct.
       private Counter(Builder builder) {
         super(builder);
       }
       private Counter(boolean noInit) {}
       
       private static final Counter defaultInstance;
       public static Counter getDefaultInstance() {
         return ;
       }
       
       public Counter getDefaultInstanceForType() {
         return ;
       }
       
       public static final com.google.protobuf.Descriptors.Descriptor
           getDescriptor() {
       }
       
           internalGetFieldAccessorTable() {
       }
       
       private int bitField0_;
       // optional string name = 1;
       public static final int NAME_FIELD_NUMBER = 1;
       private java.lang.Object name_;
       public boolean hasName() {
         return (( & 0x00000001) == 0x00000001);
       }
       public String getName() {
         java.lang.Object ref = ;
         if (ref instanceof String) {
           return (Stringref;
         } else {
           com.google.protobuf.ByteString bs = 
               (com.google.protobuf.ByteStringref;
           String s = bs.toStringUtf8();
           if (com.google.protobuf.Internal.isValidUtf8(bs)) {
              = s;
           }
           return s;
         }
       }
       private com.google.protobuf.ByteString getNameBytes() {
         java.lang.Object ref = ;
         if (ref instanceof String) {
           com.google.protobuf.ByteString b = 
               com.google.protobuf.ByteString.copyFromUtf8((Stringref);
            = b;
           return b;
         } else {
           return (com.google.protobuf.ByteStringref;
         }
       }
       
       // optional uint64 count = 2;
       public static final int COUNT_FIELD_NUMBER = 2;
       private long count_;
       public boolean hasCount() {
         return (( & 0x00000002) == 0x00000002);
       }
       public long getCount() {
         return ;
       }
       
       private void initFields() {
          = "";
          = 0L;
       }
       private byte memoizedIsInitialized = -1;
       public final boolean isInitialized() {
         byte isInitialized = ;
         if (isInitialized != -1) return isInitialized == 1;
         
          = 1;
         return true;
       }
       
       public void writeTo(com.google.protobuf.CodedOutputStream output)
                           throws java.io.IOException {
         getSerializedSize();
         if ((( & 0x00000001) == 0x00000001)) {
           output.writeBytes(1, getNameBytes());
         }
         if ((( & 0x00000002) == 0x00000002)) {
           output.writeUInt64(2, );
         }
         getUnknownFields().writeTo(output);
       }
       
       private int memoizedSerializedSize = -1;
       public int getSerializedSize() {
         int size = ;
         if (size != -1) return size;
       
         size = 0;
         if ((( & 0x00000001) == 0x00000001)) {
           size += com.google.protobuf.CodedOutputStream
             .computeBytesSize(1, getNameBytes());
         }
         if ((( & 0x00000002) == 0x00000002)) {
           size += com.google.protobuf.CodedOutputStream
             .computeUInt64Size(2, );
         }
         size += getUnknownFields().getSerializedSize();
          = size;
         return size;
       }
       
       private static final long serialVersionUID = 0L;
       @java.lang.Override
       protected java.lang.Object writeReplace()
           throws java.io.ObjectStreamException {
         return super.writeReplace();
       }
       
           com.google.protobuf.ByteString data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return newBuilder().mergeFrom(data).buildParsed();
       }
           com.google.protobuf.ByteString data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return newBuilder().mergeFrom(dataextensionRegistry)
                  .buildParsed();
       }
       public static org.attribyte.essem.ReportProtos.EssemReport.Counter parseFrom(byte[] data)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return newBuilder().mergeFrom(data).buildParsed();
       }
           byte[] data,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws com.google.protobuf.InvalidProtocolBufferException {
         return newBuilder().mergeFrom(dataextensionRegistry)
                  .buildParsed();
       }
           throws java.io.IOException {
         return newBuilder().mergeFrom(input).buildParsed();
       }
           java.io.InputStream input,
           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           throws java.io.IOException {
         return newBuilder().mergeFrom(inputextensionRegistry)
                  .buildParsed();
       }