public static final class Service.BasicService extends GeneratedMessageV3 implements Service.BasicServiceOrBuilder
A well-known service type, defined by its service type and service labels.
Documentation and examples
here.
Protobuf type google.monitoring.v3.Service.BasicService
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
SERVICE_LABELS_FIELD_NUMBER
public static final int SERVICE_LABELS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SERVICE_TYPE_FIELD_NUMBER
public static final int SERVICE_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Service.BasicService getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Service.BasicService.Builder newBuilder()
newBuilder(Service.BasicService prototype)
public static Service.BasicService.Builder newBuilder(Service.BasicService prototype)
public static Service.BasicService parseDelimitedFrom(InputStream input)
public static Service.BasicService parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Service.BasicService parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Service.BasicService parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Service.BasicService parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Service.BasicService parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Service.BasicService parseFrom(CodedInputStream input)
public static Service.BasicService parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Service.BasicService parseFrom(InputStream input)
public static Service.BasicService parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Service.BasicService parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Service.BasicService parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Service.BasicService> parser()
Methods
containsServiceLabels(String key)
public 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.
map<string, string> service_labels = 2;
Parameter |
Name |
Description |
key |
String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Service.BasicService getDefaultInstanceForType()
getParserForType()
public Parser<Service.BasicService> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getServiceLabels() (deprecated)
public Map<String,String> getServiceLabels()
getServiceLabelsCount()
public int getServiceLabelsCount()
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.
map<string, string> service_labels = 2;
Returns |
Type |
Description |
int |
|
getServiceLabelsMap()
public 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.
map<string, string> service_labels = 2;
getServiceLabelsOrDefault(String key, String defaultValue)
public 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.
map<string, string> service_labels = 2;
Returns |
Type |
Description |
String |
|
getServiceLabelsOrThrow(String key)
public 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.
map<string, string> service_labels = 2;
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
getServiceType()
public String getServiceType()
The type of service that this basic service defines, e.g.
APP_ENGINE service type.
Documentation and valid values
here.
string service_type = 1;
Returns |
Type |
Description |
String |
The serviceType.
|
getServiceTypeBytes()
public ByteString getServiceTypeBytes()
The type of service that this basic service defines, e.g.
APP_ENGINE service type.
Documentation and valid values
here.
string service_type = 1;
Returns |
Type |
Description |
ByteString |
The bytes for serviceType.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Service.BasicService.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Service.BasicService.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Service.BasicService.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides