Class BasicSli.Builder

public static final class BasicSli.Builder extends 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

Implements

BasicSliOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllLocation(Iterable<String> values)

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;

Parameter
NameDescription
valuesIterable<String>

The location to add.

Returns
TypeDescription
BasicSli.Builder

This builder for chaining.

addAllMethod(Iterable<String> values)

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;

Parameter
NameDescription
valuesIterable<String>

The method to add.

Returns
TypeDescription
BasicSli.Builder

This builder for chaining.

addAllVersion(Iterable<String> values)

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;

Parameter
NameDescription
valuesIterable<String>

The version to add.

Returns
TypeDescription
BasicSli.Builder

This builder for chaining.

addLocation(String value)

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;

Parameter
NameDescription
valueString

The location to add.

Returns
TypeDescription
BasicSli.Builder

This builder for chaining.

addLocationBytes(ByteString value)

public BasicSli.Builder addLocationBytes(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;

Parameter
NameDescription
valueByteString

The bytes of the location to add.

Returns
TypeDescription
BasicSli.Builder

This builder for chaining.

addMethod(String value)

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;

Parameter
NameDescription
valueString

The method to add.

Returns
TypeDescription
BasicSli.Builder

This builder for chaining.

addMethodBytes(ByteString value)

public BasicSli.Builder addMethodBytes(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;

Parameter
NameDescription
valueByteString

The bytes of the method to add.

Returns
TypeDescription
BasicSli.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BasicSli.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BasicSli.Builder
Overrides

addVersion(String value)

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;

Parameter
NameDescription
valueString

The version to add.

Returns
TypeDescription
BasicSli.Builder

This builder for chaining.

addVersionBytes(ByteString value)

public BasicSli.Builder addVersionBytes(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;

Parameter
NameDescription
valueByteString

The bytes of the version to add.

Returns
TypeDescription
BasicSli.Builder

This builder for chaining.

build()

public BasicSli build()
Returns
TypeDescription
BasicSli

buildPartial()

public BasicSli buildPartial()
Returns
TypeDescription
BasicSli

clear()

public BasicSli.Builder clear()
Returns
TypeDescription
BasicSli.Builder
Overrides

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;

Returns
TypeDescription
BasicSli.Builder

clearField(Descriptors.FieldDescriptor field)

public BasicSli.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BasicSli.Builder
Overrides

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;

Returns
TypeDescription
BasicSli.Builder

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
TypeDescription
BasicSli.Builder

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
TypeDescription
BasicSli.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BasicSli.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BasicSli.Builder
Overrides

clearSliCriteria()

public BasicSli.Builder clearSliCriteria()
Returns
TypeDescription
BasicSli.Builder

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
TypeDescription
BasicSli.Builder

This builder for chaining.

clone()

public BasicSli.Builder clone()
Returns
TypeDescription
BasicSli.Builder
Overrides

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;

Returns
TypeDescription
BasicSli.AvailabilityCriteria

The availability.

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;

Returns
TypeDescription
BasicSli.AvailabilityCriteria.Builder

getAvailabilityOrBuilder()

public BasicSli.AvailabilityCriteriaOrBuilder getAvailabilityOrBuilder()

Good service is defined to be the count of requests made to this service that return successfully.

.google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2;

Returns
TypeDescription
BasicSli.AvailabilityCriteriaOrBuilder

getDefaultInstanceForType()

public BasicSli getDefaultInstanceForType()
Returns
TypeDescription
BasicSli

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
BasicSli.LatencyCriteria

The latency.

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;

Returns
TypeDescription
BasicSli.LatencyCriteria.Builder

getLatencyOrBuilder()

public 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.

.google.monitoring.v3.BasicSli.LatencyCriteria latency = 3;

Returns
TypeDescription
BasicSli.LatencyCriteriaOrBuilder

getLocation(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The location at the given index.

getLocationBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the location at the given index.

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;

Returns
TypeDescription
int

The count of location.

getLocationList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the location.

getMethod(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The method at the given index.

getMethodBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the method at the given index.

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;

Returns
TypeDescription
int

The count of method.

getMethodList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the method.

getSliCriteriaCase()

public BasicSli.SliCriteriaCase getSliCriteriaCase()
Returns
TypeDescription
BasicSli.SliCriteriaCase

getVersion(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The version at the given index.

getVersionBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the version at the given index.

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;

Returns
TypeDescription
int

The count of version.

getVersionList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the version.

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;

Returns
TypeDescription
boolean

Whether the availability field is set.

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;

Returns
TypeDescription
boolean

Whether the latency field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAvailability(BasicSli.AvailabilityCriteria value)

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;

Parameter
NameDescription
valueBasicSli.AvailabilityCriteria
Returns
TypeDescription
BasicSli.Builder

mergeFrom(BasicSli other)

public BasicSli.Builder mergeFrom(BasicSli other)
Parameter
NameDescription
otherBasicSli
Returns
TypeDescription
BasicSli.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BasicSli.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BasicSli.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BasicSli.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BasicSli.Builder
Overrides

mergeLatency(BasicSli.LatencyCriteria value)

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;

Parameter
NameDescription
valueBasicSli.LatencyCriteria
Returns
TypeDescription
BasicSli.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BasicSli.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BasicSli.Builder
Overrides

setAvailability(BasicSli.AvailabilityCriteria value)

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;

Parameter
NameDescription
valueBasicSli.AvailabilityCriteria
Returns
TypeDescription
BasicSli.Builder

setAvailability(BasicSli.AvailabilityCriteria.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueBasicSli.AvailabilityCriteria.Builder
Returns
TypeDescription
BasicSli.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BasicSli.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BasicSli.Builder
Overrides

setLatency(BasicSli.LatencyCriteria value)

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;

Parameter
NameDescription
valueBasicSli.LatencyCriteria
Returns
TypeDescription
BasicSli.Builder

setLatency(BasicSli.LatencyCriteria.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueBasicSli.LatencyCriteria.Builder
Returns
TypeDescription
BasicSli.Builder

setLocation(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The location to set.

Returns
TypeDescription
BasicSli.Builder

This builder for chaining.

setMethod(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The method to set.

Returns
TypeDescription
BasicSli.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BasicSli.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BasicSli.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BasicSli.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BasicSli.Builder
Overrides

setVersion(int index, String value)

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
NameDescription
indexint

The index to set the value at.

valueString

The version to set.

Returns
TypeDescription
BasicSli.Builder

This builder for chaining.