Class TimeSeriesRatio.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TimeSeriesRatio.Builder>
com.google.monitoring.v3.TimeSeriesRatio.Builder
All Implemented Interfaces:
TimeSeriesRatioOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TimeSeriesRatio

public static final class TimeSeriesRatio.Builder extends com.google.protobuf.GeneratedMessage.Builder<TimeSeriesRatio.Builder> implements TimeSeriesRatioOrBuilder
 A `TimeSeriesRatio` specifies two `TimeSeries` to use for computing the
 `good_service / total_service` ratio. The specified `TimeSeries` must have
 `ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind =
 DELTA` or `MetricKind = CUMULATIVE`. The `TimeSeriesRatio` must specify
 exactly two of good, bad, and total, and the relationship `good_service +
 bad_service = total_service` will be assumed.
 
Protobuf type google.monitoring.v3.TimeSeriesRatio
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality.
    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying good service provided.
    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying total demanded service.
    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality.
    com.google.protobuf.ByteString
    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying good service provided.
    com.google.protobuf.ByteString
    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying good service provided.
    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying total demanded service.
    com.google.protobuf.ByteString
    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying total demanded service.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality.
    setBadServiceFilterBytes(com.google.protobuf.ByteString value)
    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality.
    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying good service provided.
    setGoodServiceFilterBytes(com.google.protobuf.ByteString value)
    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying good service provided.
    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying total demanded service.
    setTotalServiceFilterBytes(com.google.protobuf.ByteString value)
    A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` quantifying total demanded service.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TimeSeriesRatio.Builder>
    • clear

      public TimeSeriesRatio.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TimeSeriesRatio.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TimeSeriesRatio.Builder>
    • getDefaultInstanceForType

      public TimeSeriesRatio getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TimeSeriesRatio build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TimeSeriesRatio buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TimeSeriesRatio.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TimeSeriesRatio.Builder>
    • mergeFrom

      public TimeSeriesRatio.Builder mergeFrom(TimeSeriesRatio other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TimeSeriesRatio.Builder>
    • mergeFrom

      public TimeSeriesRatio.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TimeSeriesRatio.Builder>
      Throws:
      IOException
    • getGoodServiceFilter

      public String getGoodServiceFilter()
       A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
       specifying a `TimeSeries` quantifying good service provided. Must have
       `ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind =
       DELTA` or `MetricKind = CUMULATIVE`.
       
      string good_service_filter = 4;
      Specified by:
      getGoodServiceFilter in interface TimeSeriesRatioOrBuilder
      Returns:
      The goodServiceFilter.
    • getGoodServiceFilterBytes

      public com.google.protobuf.ByteString getGoodServiceFilterBytes()
       A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
       specifying a `TimeSeries` quantifying good service provided. Must have
       `ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind =
       DELTA` or `MetricKind = CUMULATIVE`.
       
      string good_service_filter = 4;
      Specified by:
      getGoodServiceFilterBytes in interface TimeSeriesRatioOrBuilder
      Returns:
      The bytes for goodServiceFilter.
    • setGoodServiceFilter

      public TimeSeriesRatio.Builder setGoodServiceFilter(String value)
       A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
       specifying a `TimeSeries` quantifying good service provided. Must have
       `ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind =
       DELTA` or `MetricKind = CUMULATIVE`.
       
      string good_service_filter = 4;
      Parameters:
      value - The goodServiceFilter to set.
      Returns:
      This builder for chaining.
    • clearGoodServiceFilter

      public TimeSeriesRatio.Builder clearGoodServiceFilter()
       A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
       specifying a `TimeSeries` quantifying good service provided. Must have
       `ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind =
       DELTA` or `MetricKind = CUMULATIVE`.
       
      string good_service_filter = 4;
      Returns:
      This builder for chaining.
    • setGoodServiceFilterBytes

      public TimeSeriesRatio.Builder setGoodServiceFilterBytes(com.google.protobuf.ByteString value)
       A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
       specifying a `TimeSeries` quantifying good service provided. Must have
       `ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind =
       DELTA` or `MetricKind = CUMULATIVE`.
       
      string good_service_filter = 4;
      Parameters:
      value - The bytes for goodServiceFilter to set.
      Returns:
      This builder for chaining.
    • getBadServiceFilter

      public String getBadServiceFilter()
       A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
       specifying a `TimeSeries` quantifying bad service, either demanded service
       that was not provided or demanded service that was of inadequate quality.
       Must have `ValueType = DOUBLE` or `ValueType = INT64` and must have
       `MetricKind = DELTA` or `MetricKind = CUMULATIVE`.
       
      string bad_service_filter = 5;
      Specified by:
      getBadServiceFilter in interface TimeSeriesRatioOrBuilder
      Returns:
      The badServiceFilter.
    • getBadServiceFilterBytes

      public com.google.protobuf.ByteString getBadServiceFilterBytes()
       A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
       specifying a `TimeSeries` quantifying bad service, either demanded service
       that was not provided or demanded service that was of inadequate quality.
       Must have `ValueType = DOUBLE` or `ValueType = INT64` and must have
       `MetricKind = DELTA` or `MetricKind = CUMULATIVE`.
       
      string bad_service_filter = 5;
      Specified by:
      getBadServiceFilterBytes in interface TimeSeriesRatioOrBuilder
      Returns:
      The bytes for badServiceFilter.
    • setBadServiceFilter

      public TimeSeriesRatio.Builder setBadServiceFilter(String value)
       A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
       specifying a `TimeSeries` quantifying bad service, either demanded service
       that was not provided or demanded service that was of inadequate quality.
       Must have `ValueType = DOUBLE` or `ValueType = INT64` and must have
       `MetricKind = DELTA` or `MetricKind = CUMULATIVE`.
       
      string bad_service_filter = 5;
      Parameters:
      value - The badServiceFilter to set.
      Returns:
      This builder for chaining.
    • clearBadServiceFilter

      public TimeSeriesRatio.Builder clearBadServiceFilter()
       A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
       specifying a `TimeSeries` quantifying bad service, either demanded service
       that was not provided or demanded service that was of inadequate quality.
       Must have `ValueType = DOUBLE` or `ValueType = INT64` and must have
       `MetricKind = DELTA` or `MetricKind = CUMULATIVE`.
       
      string bad_service_filter = 5;
      Returns:
      This builder for chaining.
    • setBadServiceFilterBytes

      public TimeSeriesRatio.Builder setBadServiceFilterBytes(com.google.protobuf.ByteString value)
       A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
       specifying a `TimeSeries` quantifying bad service, either demanded service
       that was not provided or demanded service that was of inadequate quality.
       Must have `ValueType = DOUBLE` or `ValueType = INT64` and must have
       `MetricKind = DELTA` or `MetricKind = CUMULATIVE`.
       
      string bad_service_filter = 5;
      Parameters:
      value - The bytes for badServiceFilter to set.
      Returns:
      This builder for chaining.
    • getTotalServiceFilter

      public String getTotalServiceFilter()
       A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
       specifying a `TimeSeries` quantifying total demanded service. Must have
       `ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind =
       DELTA` or `MetricKind = CUMULATIVE`.
       
      string total_service_filter = 6;
      Specified by:
      getTotalServiceFilter in interface TimeSeriesRatioOrBuilder
      Returns:
      The totalServiceFilter.
    • getTotalServiceFilterBytes

      public com.google.protobuf.ByteString getTotalServiceFilterBytes()
       A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
       specifying a `TimeSeries` quantifying total demanded service. Must have
       `ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind =
       DELTA` or `MetricKind = CUMULATIVE`.
       
      string total_service_filter = 6;
      Specified by:
      getTotalServiceFilterBytes in interface TimeSeriesRatioOrBuilder
      Returns:
      The bytes for totalServiceFilter.
    • setTotalServiceFilter

      public TimeSeriesRatio.Builder setTotalServiceFilter(String value)
       A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
       specifying a `TimeSeries` quantifying total demanded service. Must have
       `ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind =
       DELTA` or `MetricKind = CUMULATIVE`.
       
      string total_service_filter = 6;
      Parameters:
      value - The totalServiceFilter to set.
      Returns:
      This builder for chaining.
    • clearTotalServiceFilter

      public TimeSeriesRatio.Builder clearTotalServiceFilter()
       A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
       specifying a `TimeSeries` quantifying total demanded service. Must have
       `ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind =
       DELTA` or `MetricKind = CUMULATIVE`.
       
      string total_service_filter = 6;
      Returns:
      This builder for chaining.
    • setTotalServiceFilterBytes

      public TimeSeriesRatio.Builder setTotalServiceFilterBytes(com.google.protobuf.ByteString value)
       A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
       specifying a `TimeSeries` quantifying total demanded service. Must have
       `ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind =
       DELTA` or `MetricKind = CUMULATIVE`.
       
      string total_service_filter = 6;
      Parameters:
      value - The bytes for totalServiceFilter to set.
      Returns:
      This builder for chaining.