public static final class ServiceContext.Builder extends GeneratedMessageV3.Builder<ServiceContext.Builder> 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 | Method and Description |
|---|---|
ServiceContext.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
ServiceContext |
build() |
ServiceContext |
buildPartial() |
ServiceContext.Builder |
clear() |
ServiceContext.Builder |
clearField(Descriptors.FieldDescriptor field) |
ServiceContext.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
ServiceContext.Builder |
clearResourceType()
Type of the MonitoredResource.
|
ServiceContext.Builder |
clearService()
An identifier of the service, such as the name of the
executable, job, or Google App Engine service name.
|
ServiceContext.Builder |
clearVersion()
Represents the source code version that the developer provided,
which could represent a version label or a Git SHA-1 hash, for example.
|
ServiceContext.Builder |
clone() |
ServiceContext |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getResourceType()
Type of the MonitoredResource.
|
ByteString |
getResourceTypeBytes()
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.
|
ByteString |
getServiceBytes()
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ServiceContext.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
ServiceContext.Builder |
mergeFrom(Message other) |
ServiceContext.Builder |
mergeFrom(ServiceContext other) |
ServiceContext.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
ServiceContext.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
ServiceContext.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
ServiceContext.Builder |
setResourceType(java.lang.String value)
Type of the MonitoredResource.
|
ServiceContext.Builder |
setResourceTypeBytes(ByteString value)
Type of the MonitoredResource.
|
ServiceContext.Builder |
setService(java.lang.String value)
An identifier of the service, such as the name of the
executable, job, or Google App Engine service name.
|
ServiceContext.Builder |
setServiceBytes(ByteString value)
An identifier of the service, such as the name of the
executable, job, or Google App Engine service name.
|
ServiceContext.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
ServiceContext.Builder |
setVersion(java.lang.String value)
Represents the source code version that the developer provided,
which could represent a version label or a Git SHA-1 hash, for example.
|
ServiceContext.Builder |
setVersionBytes(ByteString value)
Represents the source code version that the developer provided,
which could represent a version label or a Git SHA-1 hash, for example.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<ServiceContext.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic ServiceContext build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic ServiceContext buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic ServiceContext.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<ServiceContext.Builder>public ServiceContext.Builder mergeFrom(ServiceContext other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<ServiceContext.Builder>java.io.IOExceptionpublic 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 ServiceContext.Builder setService(java.lang.String value)
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;public ServiceContext.Builder clearService()
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;public ServiceContext.Builder setServiceBytes(ByteString value)
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;public 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 ServiceContext.Builder setVersion(java.lang.String value)
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;public ServiceContext.Builder clearVersion()
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;public ServiceContext.Builder setVersionBytes(ByteString value)
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;public 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 ServiceContext.Builder setResourceType(java.lang.String value)
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;public ServiceContext.Builder clearResourceType()
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;public ServiceContext.Builder setResourceTypeBytes(ByteString value)
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;public final ServiceContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<ServiceContext.Builder>public final ServiceContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<ServiceContext.Builder>