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

org.glowroot.wire.api.model.GaugeValueOuterClass Maven / Gradle / Ivy

There is a newer version: 0.9.28
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: GaugeValue.proto

package org.glowroot.wire.api.model;

public final class GaugeValueOuterClass {
  private GaugeValueOuterClass() {}
  public static void registerAllExtensions(
      org.glowroot.agent.shaded.google.protobuf.ExtensionRegistry registry) {
  }
  public interface GaugeValueOrBuilder extends
      // @@protoc_insertion_point(interface_extends:org_glowroot_wire_api_model.GaugeValue)
      org.glowroot.agent.shaded.google.protobuf.MessageOrBuilder {

    /**
     * optional string gauge_name = 1;
     */
    java.lang.String getGaugeName();
    /**
     * optional string gauge_name = 1;
     */
    org.glowroot.agent.shaded.google.protobuf.ByteString
        getGaugeNameBytes();

    /**
     * optional int64 capture_time = 2;
     */
    long getCaptureTime();

    /**
     * optional double value = 3;
     *
     * 
     * for counter gauges, the value is the delta of the counter over the past interval_nanos
     * 
*/ double getValue(); /** * optional int64 interval_nanos = 4; * *
     * interval_nanos is only used for counter gauges
     * 
*/ long getIntervalNanos(); } /** * Protobuf type {@code org_glowroot_wire_api_model.GaugeValue} */ public static final class GaugeValue extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:org_glowroot_wire_api_model.GaugeValue) GaugeValueOrBuilder { // Use GaugeValue.newBuilder() to construct. private GaugeValue(org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private GaugeValue() { gaugeName_ = ""; captureTime_ = 0L; value_ = 0D; intervalNanos_ = 0L; } @java.lang.Override public final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet getUnknownFields() { return org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private GaugeValue( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { String s = input.readStringRequireUtf8(); gaugeName_ = s; break; } case 16: { captureTime_ = input.readInt64(); break; } case 25: { value_ = input.readDouble(); break; } case 32: { intervalNanos_ = input.readInt64(); break; } } } } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { makeExtensionsImmutable(); } } public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.GaugeValueOuterClass.internal_static_org_glowroot_wire_api_model_GaugeValue_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.GaugeValueOuterClass.internal_static_org_glowroot_wire_api_model_GaugeValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue.class, org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue.Builder.class); } public static final int GAUGE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object gaugeName_; /** * optional string gauge_name = 1; */ public java.lang.String getGaugeName() { java.lang.Object ref = gaugeName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gaugeName_ = s; return s; } } /** * optional string gauge_name = 1; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getGaugeNameBytes() { java.lang.Object ref = gaugeName_; if (ref instanceof java.lang.String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gaugeName_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } public static final int CAPTURE_TIME_FIELD_NUMBER = 2; private long captureTime_; /** * optional int64 capture_time = 2; */ public long getCaptureTime() { return captureTime_; } public static final int VALUE_FIELD_NUMBER = 3; private double value_; /** * optional double value = 3; * *
     * for counter gauges, the value is the delta of the counter over the past interval_nanos
     * 
*/ public double getValue() { return value_; } public static final int INTERVAL_NANOS_FIELD_NUMBER = 4; private long intervalNanos_; /** * optional int64 interval_nanos = 4; * *
     * interval_nanos is only used for counter gauges
     * 
*/ public long getIntervalNanos() { return intervalNanos_; } 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(org.glowroot.agent.shaded.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getGaugeNameBytes().isEmpty()) { org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.writeString(output, 1, gaugeName_); } if (captureTime_ != 0L) { output.writeInt64(2, captureTime_); } if (value_ != 0D) { output.writeDouble(3, value_); } if (intervalNanos_ != 0L) { output.writeInt64(4, intervalNanos_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getGaugeNameBytes().isEmpty()) { size += org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.computeStringSize(1, gaugeName_); } if (captureTime_ != 0L) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt64Size(2, captureTime_); } if (value_ != 0D) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeDoubleSize(3, value_); } if (intervalNanos_ != 0L) { size += org.glowroot.agent.shaded.google.protobuf.CodedOutputStream .computeInt64Size(4, intervalNanos_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue parseFrom( org.glowroot.agent.shaded.google.protobuf.ByteString data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue parseFrom(byte[] data) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue parseFrom( byte[] data, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue parseFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue parseDelimitedFrom( java.io.InputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue parseFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue 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( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code org_glowroot_wire_api_model.GaugeValue} */ public static final class Builder extends org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:org_glowroot_wire_api_model.GaugeValue) org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValueOrBuilder { public static final org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.glowroot.wire.api.model.GaugeValueOuterClass.internal_static_org_glowroot_wire_api_model_GaugeValue_descriptor; } protected org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.glowroot.wire.api.model.GaugeValueOuterClass.internal_static_org_glowroot_wire_api_model_GaugeValue_fieldAccessorTable .ensureFieldAccessorsInitialized( org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue.class, org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue.Builder.class); } // Construct using org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); gaugeName_ = ""; captureTime_ = 0L; value_ = 0D; intervalNanos_ = 0L; return this; } public org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.glowroot.wire.api.model.GaugeValueOuterClass.internal_static_org_glowroot_wire_api_model_GaugeValue_descriptor; } public org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue getDefaultInstanceForType() { return org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue.getDefaultInstance(); } public org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue build() { org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue buildPartial() { org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue result = new org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue(this); result.gaugeName_ = gaugeName_; result.captureTime_ = captureTime_; result.value_ = value_; result.intervalNanos_ = intervalNanos_; onBuilt(); return result; } public Builder mergeFrom(org.glowroot.agent.shaded.google.protobuf.Message other) { if (other instanceof org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue) { return mergeFrom((org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue other) { if (other == org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue.getDefaultInstance()) return this; if (!other.getGaugeName().isEmpty()) { gaugeName_ = other.gaugeName_; onChanged(); } if (other.getCaptureTime() != 0L) { setCaptureTime(other.getCaptureTime()); } if (other.getValue() != 0D) { setValue(other.getValue()); } if (other.getIntervalNanos() != 0L) { setIntervalNanos(other.getIntervalNanos()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object gaugeName_ = ""; /** * optional string gauge_name = 1; */ public java.lang.String getGaugeName() { java.lang.Object ref = gaugeName_; if (!(ref instanceof java.lang.String)) { org.glowroot.agent.shaded.google.protobuf.ByteString bs = (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gaugeName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string gauge_name = 1; */ public org.glowroot.agent.shaded.google.protobuf.ByteString getGaugeNameBytes() { java.lang.Object ref = gaugeName_; if (ref instanceof String) { org.glowroot.agent.shaded.google.protobuf.ByteString b = org.glowroot.agent.shaded.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gaugeName_ = b; return b; } else { return (org.glowroot.agent.shaded.google.protobuf.ByteString) ref; } } /** * optional string gauge_name = 1; */ public Builder setGaugeName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } gaugeName_ = value; onChanged(); return this; } /** * optional string gauge_name = 1; */ public Builder clearGaugeName() { gaugeName_ = getDefaultInstance().getGaugeName(); onChanged(); return this; } /** * optional string gauge_name = 1; */ public Builder setGaugeNameBytes( org.glowroot.agent.shaded.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); gaugeName_ = value; onChanged(); return this; } private long captureTime_ ; /** * optional int64 capture_time = 2; */ public long getCaptureTime() { return captureTime_; } /** * optional int64 capture_time = 2; */ public Builder setCaptureTime(long value) { captureTime_ = value; onChanged(); return this; } /** * optional int64 capture_time = 2; */ public Builder clearCaptureTime() { captureTime_ = 0L; onChanged(); return this; } private double value_ ; /** * optional double value = 3; * *
       * for counter gauges, the value is the delta of the counter over the past interval_nanos
       * 
*/ public double getValue() { return value_; } /** * optional double value = 3; * *
       * for counter gauges, the value is the delta of the counter over the past interval_nanos
       * 
*/ public Builder setValue(double value) { value_ = value; onChanged(); return this; } /** * optional double value = 3; * *
       * for counter gauges, the value is the delta of the counter over the past interval_nanos
       * 
*/ public Builder clearValue() { value_ = 0D; onChanged(); return this; } private long intervalNanos_ ; /** * optional int64 interval_nanos = 4; * *
       * interval_nanos is only used for counter gauges
       * 
*/ public long getIntervalNanos() { return intervalNanos_; } /** * optional int64 interval_nanos = 4; * *
       * interval_nanos is only used for counter gauges
       * 
*/ public Builder setIntervalNanos(long value) { intervalNanos_ = value; onChanged(); return this; } /** * optional int64 interval_nanos = 4; * *
       * interval_nanos is only used for counter gauges
       * 
*/ public Builder clearIntervalNanos() { intervalNanos_ = 0L; onChanged(); return this; } public final Builder setUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final org.glowroot.agent.shaded.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:org_glowroot_wire_api_model.GaugeValue) } // @@protoc_insertion_point(class_scope:org_glowroot_wire_api_model.GaugeValue) private static final org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue(); } public static org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final org.glowroot.agent.shaded.google.protobuf.Parser PARSER = new org.glowroot.agent.shaded.google.protobuf.AbstractParser() { public GaugeValue parsePartialFrom( org.glowroot.agent.shaded.google.protobuf.CodedInputStream input, org.glowroot.agent.shaded.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException { try { return new GaugeValue(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) { throw (org.glowroot.agent.shaded.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static org.glowroot.agent.shaded.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public org.glowroot.agent.shaded.google.protobuf.Parser getParserForType() { return PARSER; } public org.glowroot.wire.api.model.GaugeValueOuterClass.GaugeValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static org.glowroot.agent.shaded.google.protobuf.Descriptors.Descriptor internal_static_org_glowroot_wire_api_model_GaugeValue_descriptor; private static org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_org_glowroot_wire_api_model_GaugeValue_fieldAccessorTable; public static org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\020GaugeValue.proto\022\033org_glowroot_wire_ap" + "i_model\"]\n\nGaugeValue\022\022\n\ngauge_name\030\001 \001(" + "\t\022\024\n\014capture_time\030\002 \001(\003\022\r\n\005value\030\003 \001(\001\022\026" + "\n\016interval_nanos\030\004 \001(\003B\035\n\033org.glowroot.w" + "ire.api.modelb\006proto3" }; org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { public org.glowroot.agent.shaded.google.protobuf.ExtensionRegistry assignDescriptors( org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; return null; } }; org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new org.glowroot.agent.shaded.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); internal_static_org_glowroot_wire_api_model_GaugeValue_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_org_glowroot_wire_api_model_GaugeValue_fieldAccessorTable = new org.glowroot.agent.shaded.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_org_glowroot_wire_api_model_GaugeValue_descriptor, new java.lang.String[] { "GaugeName", "CaptureTime", "Value", "IntervalNanos", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy