Class BasicSli.Builder

  • All Implemented Interfaces:
    BasicSliOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    BasicSli

    public static final class BasicSli.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<BasicSli.Builder>
    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
    • Method Detail

      • 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.Builder<BasicSli.Builder>
      • clear

        public BasicSli.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.GeneratedMessageV3.Builder<BasicSli.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.GeneratedMessageV3.Builder<BasicSli.Builder>
      • getDefaultInstanceForType

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

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

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

        public BasicSli.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<BasicSli.Builder>
      • setField

        public BasicSli.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<BasicSli.Builder>
      • clearField

        public BasicSli.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<BasicSli.Builder>
      • clearOneof

        public BasicSli.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BasicSli.Builder>
      • setRepeatedField

        public BasicSli.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 int index,
                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BasicSli.Builder>
      • addRepeatedField

        public BasicSli.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BasicSli.Builder>
      • mergeFrom

        public BasicSli.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<BasicSli.Builder>
      • isInitialized

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

        public BasicSli.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<BasicSli.Builder>
        Throws:
        IOException
      • 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.
      • setMethod

        public BasicSli.Builder setMethod​(int index,
                                          String value)
         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;
        Parameters:
        index - The index to set the value at.
        value - The method to set.
        Returns:
        This builder for chaining.
      • addMethod

        public BasicSli.Builder addMethod​(String value)
         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;
        Parameters:
        value - The method to add.
        Returns:
        This builder for chaining.
      • addAllMethod

        public BasicSli.Builder addAllMethod​(Iterable<String> values)
         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;
        Parameters:
        values - The method to add.
        Returns:
        This builder for chaining.
      • clearMethod

        public BasicSli.Builder clearMethod()
         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;
        Returns:
        This builder for chaining.
      • addMethodBytes

        public BasicSli.Builder addMethodBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes of the method to add.
        Returns:
        This builder for chaining.
      • 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.
      • setLocation

        public BasicSli.Builder setLocation​(int index,
                                            String value)
         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;
        Parameters:
        index - The index to set the value at.
        value - The location to set.
        Returns:
        This builder for chaining.
      • addLocation

        public BasicSli.Builder addLocation​(String value)
         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;
        Parameters:
        value - The location to add.
        Returns:
        This builder for chaining.
      • addAllLocation

        public BasicSli.Builder addAllLocation​(Iterable<String> values)
         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;
        Parameters:
        values - The location to add.
        Returns:
        This builder for chaining.
      • clearLocation

        public BasicSli.Builder clearLocation()
         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;
        Returns:
        This builder for chaining.
      • addLocationBytes

        public BasicSli.Builder addLocationBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes of the location to add.
        Returns:
        This builder for chaining.
      • 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.
      • setVersion

        public BasicSli.Builder setVersion​(int index,
                                           String value)
         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;
        Parameters:
        index - The index to set the value at.
        value - The version to set.
        Returns:
        This builder for chaining.
      • addVersion

        public BasicSli.Builder addVersion​(String value)
         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;
        Parameters:
        value - The version to add.
        Returns:
        This builder for chaining.
      • addAllVersion

        public BasicSli.Builder addAllVersion​(Iterable<String> values)
         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;
        Parameters:
        values - The version to add.
        Returns:
        This builder for chaining.
      • clearVersion

        public BasicSli.Builder clearVersion()
         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;
        Returns:
        This builder for chaining.
      • addVersionBytes

        public BasicSli.Builder addVersionBytes​(com.google.protobuf.ByteString value)
         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;
        Parameters:
        value - The bytes of the version to add.
        Returns:
        This builder for chaining.
      • 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.
      • setAvailability

        public BasicSli.Builder setAvailability​(BasicSli.AvailabilityCriteria value)
         Good service is defined to be the count of requests made to this service
         that return successfully.
         
        .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;
      • setAvailability

        public BasicSli.Builder setAvailability​(BasicSli.AvailabilityCriteria.Builder builderForValue)
         Good service is defined to be the count of requests made to this service
         that return successfully.
         
        .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;
      • mergeAvailability

        public BasicSli.Builder mergeAvailability​(BasicSli.AvailabilityCriteria value)
         Good service is defined to be the count of requests made to this service
         that return successfully.
         
        .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;
      • clearAvailability

        public BasicSli.Builder clearAvailability()
         Good service is defined to be the count of requests made to this service
         that return successfully.
         
        .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;
      • getAvailabilityBuilder

        public BasicSli.AvailabilityCriteria.Builder getAvailabilityBuilder()
         Good service is defined to be the count of requests made to this service
         that return successfully.
         
        .google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;
      • 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.
      • setLatency

        public BasicSli.Builder setLatency​(BasicSli.LatencyCriteria value)
         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;
      • setLatency

        public BasicSli.Builder setLatency​(BasicSli.LatencyCriteria.Builder builderForValue)
         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;
      • mergeLatency

        public BasicSli.Builder mergeLatency​(BasicSli.LatencyCriteria value)
         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;
      • clearLatency

        public BasicSli.Builder clearLatency()
         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;
      • getLatencyBuilder

        public BasicSli.LatencyCriteria.Builder getLatencyBuilder()
         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;
      • setUnknownFields

        public final BasicSli.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BasicSli.Builder>
      • mergeUnknownFields

        public final BasicSli.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BasicSli.Builder>