public final class ServiceContext
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Error Reporting API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
ServiceContext() |
Modifier and Type | Method and Description |
---|---|
ServiceContext |
clone() |
java.lang.String |
getResourceType()
Type of the MonitoredResource.
|
java.lang.String |
getService()
An identifier of the service, such as the name of the executable, job, or Google App Engine
service name.
|
java.lang.String |
getVersion()
Represents the source code version that the developer provided, which could represent a version
label or a Git SHA-1 hash, for example.
|
ServiceContext |
set(java.lang.String fieldName,
java.lang.Object value) |
ServiceContext |
setResourceType(java.lang.String resourceType)
Type of the MonitoredResource.
|
ServiceContext |
setService(java.lang.String service)
An identifier of the service, such as the name of the executable, job, or Google App Engine
service name.
|
ServiceContext |
setVersion(java.lang.String version)
Represents the source code version that the developer provided, which could represent a version
label or a Git SHA-1 hash, for example.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getResourceType()
null
for nonepublic ServiceContext setResourceType(java.lang.String resourceType)
resourceType
- resourceType or null
for nonepublic java.lang.String getService()
null
for nonepublic ServiceContext setService(java.lang.String service)
service
- service or null
for nonepublic java.lang.String getVersion()
null
for nonepublic ServiceContext setVersion(java.lang.String version)
version
- version or null
for nonepublic ServiceContext set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ServiceContext clone()
clone
in class com.google.api.client.json.GenericJson