public final class ServiceContext extends GeneratedMessageV3 implements ServiceContextOrBuilder
Describes a running service that sends errors. Its version changes over time and multiple versions can run in parallel.Protobuf type
google.devtools.clouderrorreporting.v1beta1.ServiceContext| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceContext.Builder
Describes a running service that sends errors.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
RESOURCE_TYPE_FIELD_NUMBER |
static int |
SERVICE_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
static ServiceContext |
getDefaultInstance() |
ServiceContext |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Parser<ServiceContext> |
getParserForType() |
java.lang.String |
getResourceType()
Type of the MonitoredResource.
|
ByteString |
getResourceTypeBytes()
Type of the MonitoredResource.
|
int |
getSerializedSize() |
java.lang.String |
getService()
An identifier of the service, such as the name of the
executable, job, or Google App Engine service name.
|
ByteString |
getServiceBytes()
An identifier of the service, such as the name of the
executable, job, or Google App Engine service name.
|
UnknownFieldSet |
getUnknownFields() |
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.
|
ByteString |
getVersionBytes()
Represents the source code version that the developer provided,
which could represent a version label or a Git SHA-1 hash, for example.
|
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ServiceContext.Builder |
newBuilder() |
static ServiceContext.Builder |
newBuilder(ServiceContext prototype) |
ServiceContext.Builder |
newBuilderForType() |
protected ServiceContext.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static ServiceContext |
parseDelimitedFrom(java.io.InputStream input) |
static ServiceContext |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static ServiceContext |
parseFrom(byte[] data) |
static ServiceContext |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static ServiceContext |
parseFrom(java.nio.ByteBuffer data) |
static ServiceContext |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static ServiceContext |
parseFrom(ByteString data) |
static ServiceContext |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static ServiceContext |
parseFrom(CodedInputStream input) |
static ServiceContext |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static ServiceContext |
parseFrom(java.io.InputStream input) |
static ServiceContext |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<ServiceContext> |
parser() |
ServiceContext.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int SERVICE_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
public static final int RESOURCE_TYPE_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.String getService()
An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to `version`, which can be changed whenever new code is deployed. Contains the service name for error reports extracted from Google App Engine logs or `default` if the App Engine default service is used.
string service = 2;getService in interface ServiceContextOrBuilderpublic ByteString getServiceBytes()
An identifier of the service, such as the name of the executable, job, or Google App Engine service name. This field is expected to have a low number of values that are relatively stable over time, as opposed to `version`, which can be changed whenever new code is deployed. Contains the service name for error reports extracted from Google App Engine logs or `default` if the App Engine default service is used.
string service = 2;getServiceBytes in interface ServiceContextOrBuilderpublic 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.
string version = 3;getVersion in interface ServiceContextOrBuilderpublic ByteString getVersionBytes()
Represents the source code version that the developer provided, which could represent a version label or a Git SHA-1 hash, for example.
string version = 3;getVersionBytes in interface ServiceContextOrBuilderpublic java.lang.String getResourceType()
Type of the MonitoredResource. List of possible values: https://cloud.google.com/monitoring/api/resources Value is set automatically for incoming errors and must not be set when reporting errors.
string resource_type = 4;getResourceType in interface ServiceContextOrBuilderpublic ByteString getResourceTypeBytes()
Type of the MonitoredResource. List of possible values: https://cloud.google.com/monitoring/api/resources Value is set automatically for incoming errors and must not be set when reporting errors.
string resource_type = 4;getResourceTypeBytes in interface ServiceContextOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static ServiceContext parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ServiceContext parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ServiceContext parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ServiceContext parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ServiceContext parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ServiceContext parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ServiceContext parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ServiceContext parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ServiceContext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ServiceContext parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ServiceContext parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ServiceContext parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic ServiceContext.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static ServiceContext.Builder newBuilder()
public static ServiceContext.Builder newBuilder(ServiceContext prototype)
public ServiceContext.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected ServiceContext.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static ServiceContext getDefaultInstance()
public static Parser<ServiceContext> parser()
public Parser<ServiceContext> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public ServiceContext getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder