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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ServiceContext.Builder>
public ServiceContext.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ServiceContext.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ServiceContext.Builder>
public ServiceContext getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ServiceContext build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ServiceContext buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ServiceContext.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ServiceContext.Builder>
public ServiceContext.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ServiceContext.Builder>
public ServiceContext.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ServiceContext.Builder>
public ServiceContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ServiceContext.Builder>
public ServiceContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ServiceContext.Builder>
public ServiceContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ServiceContext.Builder>
public ServiceContext.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ServiceContext.Builder>
public ServiceContext.Builder mergeFrom(ServiceContext other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ServiceContext.Builder>
public ServiceContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ServiceContext.Builder>
java.io.IOException
public 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 ServiceContextOrBuilder
public 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 ServiceContextOrBuilder
public 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 ServiceContextOrBuilder
public 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 ServiceContextOrBuilder
public 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 ServiceContextOrBuilder
public 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 ServiceContextOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ServiceContext.Builder>
public final ServiceContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ServiceContext.Builder>