public static final class ServiceContext.Builder extends com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
ServiceContext |
build() |
ServiceContext |
buildPartial() |
ServiceContext.Builder |
clear() |
ServiceContext.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ServiceContext.Builder |
clearOneof(com.google.protobuf.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 com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getResourceType()
Type of the MonitoredResource.
|
com.google.protobuf.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.
|
com.google.protobuf.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.
|
com.google.protobuf.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ServiceContext.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ServiceContext.Builder |
mergeFrom(com.google.protobuf.Message other) |
ServiceContext.Builder |
mergeFrom(ServiceContext other) |
ServiceContext.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ServiceContext.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
ServiceContext.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
ServiceContext.Builder |
setResourceType(java.lang.String value)
Type of the MonitoredResource.
|
ServiceContext.Builder |
setResourceTypeBytes(com.google.protobuf.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(com.google.protobuf.ByteString value)
An identifier of the service, such as the name of the
executable, job, or Google App Engine service name.
|
ServiceContext.Builder |
setUnknownFields(com.google.protobuf.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(com.google.protobuf.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, parseUnknownFieldfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.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.GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ServiceContext build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ServiceContext buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ServiceContext.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ServiceContext.Builder>public ServiceContext.Builder mergeFrom(ServiceContext other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>public ServiceContext.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.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 com.google.protobuf.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(com.google.protobuf.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 com.google.protobuf.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(com.google.protobuf.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 com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>public final ServiceContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ServiceContext.Builder>