Package com.google.monitoring.v3
Class BasicSli.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BasicSli.Builder>
com.google.monitoring.v3.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.GeneratedMessage.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 Summary
Modifier and TypeMethodDescriptionaddAllLocation(Iterable<String> values) OPTIONAL: The set of locations to which this SLI is relevant.addAllMethod(Iterable<String> values) OPTIONAL: The set of RPCs to which this SLI is relevant.addAllVersion(Iterable<String> values) OPTIONAL: The set of API versions to which this SLI is relevant.addLocation(String value) OPTIONAL: The set of locations to which this SLI is relevant.addLocationBytes(com.google.protobuf.ByteString value) OPTIONAL: The set of locations to which this SLI is relevant.OPTIONAL: The set of RPCs to which this SLI is relevant.addMethodBytes(com.google.protobuf.ByteString value) OPTIONAL: The set of RPCs to which this SLI is relevant.addVersion(String value) OPTIONAL: The set of API versions to which this SLI is relevant.addVersionBytes(com.google.protobuf.ByteString value) OPTIONAL: The set of API versions to which this SLI is relevant.build()clear()Good service is defined to be the count of requests made to this service that return successfully.Good service is defined to be the count of requests made to this service that are fast enough with respect to `latency.threshold`.OPTIONAL: The set of locations to which this SLI is relevant.OPTIONAL: The set of RPCs to which this SLI is relevant.OPTIONAL: The set of API versions to which this SLI is relevant.Good service is defined to be the count of requests made to this service that return successfully.Good service is defined to be the count of requests made to this service that return successfully.Good service is defined to be the count of requests made to this service that return successfully.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorGood service is defined to be the count of requests made to this service that are fast enough with respect to `latency.threshold`.Good service is defined to be the count of requests made to this service that are fast enough with respect to `latency.threshold`.Good service is defined to be the count of requests made to this service that are fast enough with respect to `latency.threshold`.getLocation(int index) OPTIONAL: The set of locations to which this SLI is relevant.com.google.protobuf.ByteStringgetLocationBytes(int index) OPTIONAL: The set of locations to which this SLI is relevant.intOPTIONAL: The set of locations to which this SLI is relevant.com.google.protobuf.ProtocolStringListOPTIONAL: The set of locations to which this SLI is relevant.getMethod(int index) OPTIONAL: The set of RPCs to which this SLI is relevant.com.google.protobuf.ByteStringgetMethodBytes(int index) OPTIONAL: The set of RPCs to which this SLI is relevant.intOPTIONAL: The set of RPCs to which this SLI is relevant.com.google.protobuf.ProtocolStringListOPTIONAL: The set of RPCs to which this SLI is relevant.getVersion(int index) OPTIONAL: The set of API versions to which this SLI is relevant.com.google.protobuf.ByteStringgetVersionBytes(int index) OPTIONAL: The set of API versions to which this SLI is relevant.intOPTIONAL: The set of API versions to which this SLI is relevant.com.google.protobuf.ProtocolStringListOPTIONAL: The set of API versions to which this SLI is relevant.booleanGood service is defined to be the count of requests made to this service that return successfully.booleanGood 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.GeneratedMessage.FieldAccessorTablefinal booleanGood service is defined to be the count of requests made to this service that return successfully.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Good service is defined to be the count of requests made to this service that are fast enough with respect to `latency.threshold`.Good service is defined to be the count of requests made to this service that return successfully.setAvailability(BasicSli.AvailabilityCriteria.Builder builderForValue) Good service is defined to be the count of requests made to this service that return successfully.Good service is defined to be the count of requests made to this service that are fast enough with respect to `latency.threshold`.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`.setLocation(int index, String value) OPTIONAL: The set of locations to which this SLI is relevant.OPTIONAL: The set of RPCs to which this SLI is relevant.setVersion(int index, String value) OPTIONAL: The set of API versions to which this SLI is relevant.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<BasicSli.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<BasicSli.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<BasicSli.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BasicSli.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<BasicSli.Builder>
-
mergeFrom
public BasicSli.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BasicSli.Builder>- Throws:
IOException
-
getSliCriteriaCase
- Specified by:
getSliCriteriaCasein interfaceBasicSliOrBuilder
-
clearSliCriteria
-
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:
getMethodListin interfaceBasicSliOrBuilder- 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:
getMethodCountin interfaceBasicSliOrBuilder- Returns:
- The count of method.
-
getMethod
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:
getMethodin interfaceBasicSliOrBuilder- 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:
getMethodBytesin interfaceBasicSliOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the method at the given index.
-
setMethod
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
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
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
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
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:
getLocationListin interfaceBasicSliOrBuilder- 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:
getLocationCountin interfaceBasicSliOrBuilder- Returns:
- The count of location.
-
getLocation
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:
getLocationin interfaceBasicSliOrBuilder- 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:
getLocationBytesin interfaceBasicSliOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the location at the given index.
-
setLocation
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
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
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
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
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:
getVersionListin interfaceBasicSliOrBuilder- 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:
getVersionCountin interfaceBasicSliOrBuilder- Returns:
- The count of version.
-
getVersion
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:
getVersionin interfaceBasicSliOrBuilder- 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:
getVersionBytesin interfaceBasicSliOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the version at the given index.
-
setVersion
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
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
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
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
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:
hasAvailabilityin interfaceBasicSliOrBuilder- Returns:
- Whether the availability field is set.
-
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:
getAvailabilityin interfaceBasicSliOrBuilder- Returns:
- The availability.
-
setAvailability
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
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
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
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
Good service is defined to be the count of requests made to this service that return successfully.
.google.monitoring.v3.BasicSli.AvailabilityCriteria availability = 2; -
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;- Specified by:
getAvailabilityOrBuilderin interfaceBasicSliOrBuilder
-
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:
hasLatencyin interfaceBasicSliOrBuilder- Returns:
- Whether the latency field is set.
-
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:
getLatencyin interfaceBasicSliOrBuilder- Returns:
- The latency.
-
setLatency
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
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
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
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
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; -
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;- Specified by:
getLatencyOrBuilderin interfaceBasicSliOrBuilder
-