Class BasicSli.Builder (3.47.0)

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
Type Description
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
Name Description
values Iterable<String>

The location to add.

Returns
Type Description
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
Name Description
values Iterable<String>

The method to add.

Returns
Type Description
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
Name Description
values Iterable<String>

The version to add.

Returns
Type Description
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
Name Description
value String

The location to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the location to add.

Returns
Type Description
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
Name Description
value String

The method to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the method to add.

Returns
Type Description
BasicSli.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BasicSli.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The version to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the version to add.

Returns
Type Description
BasicSli.Builder

This builder for chaining.

build()

public BasicSli build()
Returns
Type Description
BasicSli

buildPartial()

public BasicSli buildPartial()
Returns
Type Description
BasicSli

clear()

public BasicSli.Builder clear()
Returns
Type Description
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
Type Description
BasicSli.Builder

clearField(Descriptors.FieldDescriptor field)

public BasicSli.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
BasicSli.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BasicSli.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BasicSli.Builder
Overrides

clearSliCriteria()

public BasicSli.Builder clearSliCriteria()
Returns
Type Description
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
Type Description
BasicSli.Builder

This builder for chaining.

clone()

public BasicSli.Builder clone()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
BasicSli.AvailabilityCriteriaOrBuilder

getDefaultInstanceForType()

public BasicSli getDefaultInstanceForType()
Returns
Type Description
BasicSli

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the method.

getSliCriteriaCase()

public BasicSli.SliCriteriaCase getSliCriteriaCase()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the latency field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value BasicSli.AvailabilityCriteria
Returns
Type Description
BasicSli.Builder

mergeFrom(BasicSli other)

public BasicSli.Builder mergeFrom(BasicSli other)
Parameter
Name Description
other BasicSli
Returns
Type Description
BasicSli.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BasicSli.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BasicSli.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BasicSli.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value BasicSli.LatencyCriteria
Returns
Type Description
BasicSli.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BasicSli.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value BasicSli.AvailabilityCriteria
Returns
Type Description
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
Name Description
builderForValue BasicSli.AvailabilityCriteria.Builder
Returns
Type Description
BasicSli.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BasicSli.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value BasicSli.LatencyCriteria
Returns
Type Description
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
Name Description
builderForValue BasicSli.LatencyCriteria.Builder
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The location to set.

Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The method to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BasicSli.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BasicSli.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The version to set.

Returns
Type Description
BasicSli.Builder

This builder for chaining.