Class BasicSli

  • All Implemented Interfaces:
    BasicSliOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class BasicSli
    extends com.google.protobuf.GeneratedMessageV3
    implements BasicSliOrBuilder
     An SLI measuring performance on a well-known service type. Performance will
     be computed on the basis of pre-defined metrics. The type of the
     `service_resource` determines the metrics to use and the
     `service_resource.labels` and `metric_labels` are used to construct a
     monitoring filter to filter that metric down to just the data relevant to
     this service.
     
    Protobuf type google.monitoring.v3.BasicSli
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  BasicSli.AvailabilityCriteria
      Future parameters for the availability SLI.
      static interface  BasicSli.AvailabilityCriteriaOrBuilder  
      static class  BasicSli.Builder
      An SLI measuring performance on a well-known service type.
      static class  BasicSli.LatencyCriteria
      Parameters for a latency threshold SLI.
      static interface  BasicSli.LatencyCriteriaOrBuilder  
      static class  BasicSli.SliCriteriaCase  
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      BasicSli.AvailabilityCriteria getAvailability()
      Good service is defined to be the count of requests made to this service that return successfully.
      BasicSli.AvailabilityCriteriaOrBuilder getAvailabilityOrBuilder()
      Good service is defined to be the count of requests made to this service that return successfully.
      static BasicSli getDefaultInstance()  
      BasicSli getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      BasicSli.LatencyCriteria getLatency()
      Good service is defined to be the count of requests made to this service that are fast enough with respect to `latency.threshold`.
      BasicSli.LatencyCriteriaOrBuilder getLatencyOrBuilder()
      Good service is defined to be the count of requests made to this service that are fast enough with respect to `latency.threshold`.
      String getLocation​(int index)
      OPTIONAL: The set of locations to which this SLI is relevant.
      com.google.protobuf.ByteString getLocationBytes​(int index)
      OPTIONAL: The set of locations to which this SLI is relevant.
      int getLocationCount()
      OPTIONAL: The set of locations to which this SLI is relevant.
      com.google.protobuf.ProtocolStringList getLocationList()
      OPTIONAL: The set of locations to which this SLI is relevant.
      String getMethod​(int index)
      OPTIONAL: The set of RPCs to which this SLI is relevant.
      com.google.protobuf.ByteString getMethodBytes​(int index)
      OPTIONAL: The set of RPCs to which this SLI is relevant.
      int getMethodCount()
      OPTIONAL: The set of RPCs to which this SLI is relevant.
      com.google.protobuf.ProtocolStringList getMethodList()
      OPTIONAL: The set of RPCs to which this SLI is relevant.
      com.google.protobuf.Parser<BasicSli> getParserForType()  
      int getSerializedSize()  
      BasicSli.SliCriteriaCase getSliCriteriaCase()  
      String getVersion​(int index)
      OPTIONAL: The set of API versions to which this SLI is relevant.
      com.google.protobuf.ByteString getVersionBytes​(int index)
      OPTIONAL: The set of API versions to which this SLI is relevant.
      int getVersionCount()
      OPTIONAL: The set of API versions to which this SLI is relevant.
      com.google.protobuf.ProtocolStringList getVersionList()
      OPTIONAL: The set of API versions to which this SLI is relevant.
      boolean hasAvailability()
      Good service is defined to be the count of requests made to this service that return successfully.
      int hashCode()  
      boolean hasLatency()
      Good service is defined to be the count of requests made to this service that are fast enough with respect to `latency.threshold`.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static BasicSli.Builder newBuilder()  
      static BasicSli.Builder newBuilder​(BasicSli prototype)  
      BasicSli.Builder newBuilderForType()  
      protected BasicSli.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static BasicSli parseDelimitedFrom​(InputStream input)  
      static BasicSli parseDelimitedFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static BasicSli parseFrom​(byte[] data)  
      static BasicSli parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static BasicSli parseFrom​(com.google.protobuf.ByteString data)  
      static BasicSli parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static BasicSli parseFrom​(com.google.protobuf.CodedInputStream input)  
      static BasicSli parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static BasicSli parseFrom​(InputStream input)  
      static BasicSli parseFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static BasicSli parseFrom​(ByteBuffer data)  
      static BasicSli parseFrom​(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<BasicSli> parser()  
      BasicSli.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getMethodList

        public com.google.protobuf.ProtocolStringList getMethodList()
         OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
         other methods will not be used to calculate performance for this SLI. If
         omitted, this SLI applies to all the Service's methods. For service types
         that don't support breaking down by method, setting this field will result
         in an error.
         
        repeated string method = 7;
        Specified by:
        getMethodList in interface BasicSliOrBuilder
        Returns:
        A list containing the method.
      • getMethodCount

        public int getMethodCount()
         OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
         other methods will not be used to calculate performance for this SLI. If
         omitted, this SLI applies to all the Service's methods. For service types
         that don't support breaking down by method, setting this field will result
         in an error.
         
        repeated string method = 7;
        Specified by:
        getMethodCount in interface BasicSliOrBuilder
        Returns:
        The count of method.
      • getMethod

        public String getMethod​(int index)
         OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
         other methods will not be used to calculate performance for this SLI. If
         omitted, this SLI applies to all the Service's methods. For service types
         that don't support breaking down by method, setting this field will result
         in an error.
         
        repeated string method = 7;
        Specified by:
        getMethod in interface BasicSliOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The method at the given index.
      • getMethodBytes

        public com.google.protobuf.ByteString getMethodBytes​(int index)
         OPTIONAL: The set of RPCs to which this SLI is relevant. Telemetry from
         other methods will not be used to calculate performance for this SLI. If
         omitted, this SLI applies to all the Service's methods. For service types
         that don't support breaking down by method, setting this field will result
         in an error.
         
        repeated string method = 7;
        Specified by:
        getMethodBytes in interface BasicSliOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the method at the given index.
      • getLocationList

        public com.google.protobuf.ProtocolStringList getLocationList()
         OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
         from other locations will not be used to calculate performance for this
         SLI. If omitted, this SLI applies to all locations in which the Service has
         activity. For service types that don't support breaking down by location,
         setting this field will result in an error.
         
        repeated string location = 8;
        Specified by:
        getLocationList in interface BasicSliOrBuilder
        Returns:
        A list containing the location.
      • getLocationCount

        public int getLocationCount()
         OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
         from other locations will not be used to calculate performance for this
         SLI. If omitted, this SLI applies to all locations in which the Service has
         activity. For service types that don't support breaking down by location,
         setting this field will result in an error.
         
        repeated string location = 8;
        Specified by:
        getLocationCount in interface BasicSliOrBuilder
        Returns:
        The count of location.
      • getLocation

        public String getLocation​(int index)
         OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
         from other locations will not be used to calculate performance for this
         SLI. If omitted, this SLI applies to all locations in which the Service has
         activity. For service types that don't support breaking down by location,
         setting this field will result in an error.
         
        repeated string location = 8;
        Specified by:
        getLocation in interface BasicSliOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The location at the given index.
      • getLocationBytes

        public com.google.protobuf.ByteString getLocationBytes​(int index)
         OPTIONAL: The set of locations to which this SLI is relevant. Telemetry
         from other locations will not be used to calculate performance for this
         SLI. If omitted, this SLI applies to all locations in which the Service has
         activity. For service types that don't support breaking down by location,
         setting this field will result in an error.
         
        repeated string location = 8;
        Specified by:
        getLocationBytes in interface BasicSliOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the location at the given index.
      • getVersionList

        public com.google.protobuf.ProtocolStringList getVersionList()
         OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
         from other API versions will not be used to calculate performance for this
         SLI. If omitted, this SLI applies to all API versions. For service types
         that don't support breaking down by version, setting this field will result
         in an error.
         
        repeated string version = 9;
        Specified by:
        getVersionList in interface BasicSliOrBuilder
        Returns:
        A list containing the version.
      • getVersionCount

        public int getVersionCount()
         OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
         from other API versions will not be used to calculate performance for this
         SLI. If omitted, this SLI applies to all API versions. For service types
         that don't support breaking down by version, setting this field will result
         in an error.
         
        repeated string version = 9;
        Specified by:
        getVersionCount in interface BasicSliOrBuilder
        Returns:
        The count of version.
      • getVersion

        public String getVersion​(int index)
         OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
         from other API versions will not be used to calculate performance for this
         SLI. If omitted, this SLI applies to all API versions. For service types
         that don't support breaking down by version, setting this field will result
         in an error.
         
        repeated string version = 9;
        Specified by:
        getVersion in interface BasicSliOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The version at the given index.
      • getVersionBytes

        public com.google.protobuf.ByteString getVersionBytes​(int index)
         OPTIONAL: The set of API versions to which this SLI is relevant. Telemetry
         from other API versions will not be used to calculate performance for this
         SLI. If omitted, this SLI applies to all API versions. For service types
         that don't support breaking down by version, setting this field will result
         in an error.
         
        repeated string version = 9;
        Specified by:
        getVersionBytes in interface BasicSliOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the version at the given index.
      • hasAvailability

        public boolean hasAvailability()
         Good service is defined to be the count of requests made to this service
         that return successfully.
         
        .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;
        Specified by:
        hasAvailability in interface BasicSliOrBuilder
        Returns:
        Whether the availability field is set.
      • getAvailability

        public BasicSli.AvailabilityCriteria getAvailability()
         Good service is defined to be the count of requests made to this service
         that return successfully.
         
        .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;
        Specified by:
        getAvailability in interface BasicSliOrBuilder
        Returns:
        The availability.
      • hasLatency

        public boolean hasLatency()
         Good service is defined to be the count of requests made to this service
         that are fast enough with respect to `latency.threshold`.
         
        .google.monitoring.v3.BasicSli.LatencyCriteria latency = 3;
        Specified by:
        hasLatency in interface BasicSliOrBuilder
        Returns:
        Whether the latency field is set.
      • getLatency

        public BasicSli.LatencyCriteria getLatency()
         Good service is defined to be the count of requests made to this service
         that are fast enough with respect to `latency.threshold`.
         
        .google.monitoring.v3.BasicSli.LatencyCriteria latency = 3;
        Specified by:
        getLatency in interface BasicSliOrBuilder
        Returns:
        The latency.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static BasicSli parseFrom​(ByteBuffer data)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static BasicSli parseFrom​(ByteBuffer data,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static BasicSli parseFrom​(com.google.protobuf.ByteString data)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static BasicSli parseFrom​(com.google.protobuf.ByteString data,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static BasicSli parseFrom​(byte[] data)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static BasicSli parseFrom​(byte[] data,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static BasicSli parseFrom​(com.google.protobuf.CodedInputStream input,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws IOException
        Throws:
        IOException
      • newBuilderForType

        public BasicSli.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public BasicSli.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected BasicSli.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static BasicSli getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<BasicSli> parser()
      • getParserForType

        public com.google.protobuf.Parser<BasicSli> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public BasicSli getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder