public static final class Service.BasicService.Builder extends com.google.protobuf.GeneratedMessage.Builder<Service.BasicService.Builder> implements Service.BasicServiceOrBuilder
A well-known service type, defined by its service type and service labels. Documentation and examples [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).Protobuf type
google.monitoring.v3.Service.BasicService| Modifier and Type | Method and Description |
|---|---|
Service.BasicService |
build() |
Service.BasicService |
buildPartial() |
Service.BasicService.Builder |
clear() |
Service.BasicService.Builder |
clearServiceLabels() |
Service.BasicService.Builder |
clearServiceType()
The type of service that this basic service defines, e.g.
|
boolean |
containsServiceLabels(String key)
Labels that specify the resource that emits the monitoring data which
is used for SLO reporting of this `Service`.
|
Service.BasicService |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getMutableServiceLabels()
Deprecated.
|
Map<String,String> |
getServiceLabels()
Deprecated.
|
int |
getServiceLabelsCount()
Labels that specify the resource that emits the monitoring data which
is used for SLO reporting of this `Service`.
|
Map<String,String> |
getServiceLabelsMap()
Labels that specify the resource that emits the monitoring data which
is used for SLO reporting of this `Service`.
|
String |
getServiceLabelsOrDefault(String key,
String defaultValue)
Labels that specify the resource that emits the monitoring data which
is used for SLO reporting of this `Service`.
|
String |
getServiceLabelsOrThrow(String key)
Labels that specify the resource that emits the monitoring data which
is used for SLO reporting of this `Service`.
|
String |
getServiceType()
The type of service that this basic service defines, e.g.
|
com.google.protobuf.ByteString |
getServiceTypeBytes()
The type of service that this basic service defines, e.g.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
Service.BasicService.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Service.BasicService.Builder |
mergeFrom(com.google.protobuf.Message other) |
Service.BasicService.Builder |
mergeFrom(Service.BasicService other) |
Service.BasicService.Builder |
putAllServiceLabels(Map<String,String> values)
Labels that specify the resource that emits the monitoring data which
is used for SLO reporting of this `Service`.
|
Service.BasicService.Builder |
putServiceLabels(String key,
String value)
Labels that specify the resource that emits the monitoring data which
is used for SLO reporting of this `Service`.
|
Service.BasicService.Builder |
removeServiceLabels(String key)
Labels that specify the resource that emits the monitoring data which
is used for SLO reporting of this `Service`.
|
Service.BasicService.Builder |
setServiceType(String value)
The type of service that this basic service defines, e.g.
|
Service.BasicService.Builder |
setServiceTypeBytes(com.google.protobuf.ByteString value)
The type of service that this basic service defines, e.g.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Service.BasicService.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Service.BasicService.Builder>protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Service.BasicService.Builder>public Service.BasicService.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Service.BasicService.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Service.BasicService.Builder>public Service.BasicService getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Service.BasicService build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Service.BasicService buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Service.BasicService.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Service.BasicService.Builder>public Service.BasicService.Builder mergeFrom(Service.BasicService other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Service.BasicService.Builder>public Service.BasicService.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Service.BasicService.Builder>IOExceptionpublic String getServiceType()
The type of service that this basic service defines, e.g. APP_ENGINE service type. Documentation and valid values [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
string service_type = 1;getServiceType in interface Service.BasicServiceOrBuilderpublic com.google.protobuf.ByteString getServiceTypeBytes()
The type of service that this basic service defines, e.g. APP_ENGINE service type. Documentation and valid values [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
string service_type = 1;getServiceTypeBytes in interface Service.BasicServiceOrBuilderpublic Service.BasicService.Builder setServiceType(String value)
The type of service that this basic service defines, e.g. APP_ENGINE service type. Documentation and valid values [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
string service_type = 1;value - The serviceType to set.public Service.BasicService.Builder clearServiceType()
The type of service that this basic service defines, e.g. APP_ENGINE service type. Documentation and valid values [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
string service_type = 1;public Service.BasicService.Builder setServiceTypeBytes(com.google.protobuf.ByteString value)
The type of service that this basic service defines, e.g. APP_ENGINE service type. Documentation and valid values [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
string service_type = 1;value - The bytes for serviceType to set.public int getServiceLabelsCount()
Service.BasicServiceOrBuilderLabels that specify the resource that emits the monitoring data which is used for SLO reporting of this `Service`. Documentation and valid values for given service types [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
map<string, string> service_labels = 2;getServiceLabelsCount in interface Service.BasicServiceOrBuilderpublic boolean containsServiceLabels(String key)
Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this `Service`. Documentation and valid values for given service types [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
map<string, string> service_labels = 2;containsServiceLabels in interface Service.BasicServiceOrBuilder@Deprecated public Map<String,String> getServiceLabels()
getServiceLabelsMap() instead.getServiceLabels in interface Service.BasicServiceOrBuilderpublic Map<String,String> getServiceLabelsMap()
Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this `Service`. Documentation and valid values for given service types [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
map<string, string> service_labels = 2;getServiceLabelsMap in interface Service.BasicServiceOrBuilderpublic String getServiceLabelsOrDefault(String key, String defaultValue)
Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this `Service`. Documentation and valid values for given service types [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
map<string, string> service_labels = 2;getServiceLabelsOrDefault in interface Service.BasicServiceOrBuilderpublic String getServiceLabelsOrThrow(String key)
Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this `Service`. Documentation and valid values for given service types [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
map<string, string> service_labels = 2;getServiceLabelsOrThrow in interface Service.BasicServiceOrBuilderpublic Service.BasicService.Builder clearServiceLabels()
public Service.BasicService.Builder removeServiceLabels(String key)
Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this `Service`. Documentation and valid values for given service types [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
map<string, string> service_labels = 2;@Deprecated public Map<String,String> getMutableServiceLabels()
public Service.BasicService.Builder putServiceLabels(String key, String value)
Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this `Service`. Documentation and valid values for given service types [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
map<string, string> service_labels = 2;public Service.BasicService.Builder putAllServiceLabels(Map<String,String> values)
Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this `Service`. Documentation and valid values for given service types [here](https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
map<string, string> service_labels = 2;Copyright © 2026 Google LLC. All rights reserved.