- 0.176.0-beta (latest)
- 0.175.0-beta
- 0.174.0-beta
- 0.173.0-beta
- 0.172.0-beta
- 0.170.0-beta
- 0.169.0-beta
- 0.168.0-beta
- 0.167.0-beta
- 0.166.0-beta
- 0.165.0-beta
- 0.164.0-beta
- 0.163.0-beta
- 0.162.0-beta
- 0.161.0-beta
- 0.160.0-beta
- 0.158.0-beta
- 0.157.0-beta
- 0.156.0-beta
- 0.155.0-beta
- 0.154.0-beta
- 0.153.0-beta
- 0.152.0-beta
- 0.151.0-beta
- 0.150.0-beta
- 0.149.0-beta
- 0.148.0-beta
- 0.145.0-beta
- 0.144.0-beta
- 0.143.0-beta
- 0.142.0-beta
- 0.141.0-beta
- 0.140.0-beta
- 0.139.0-beta
- 0.138.0-beta
- 0.137.0-beta
- 0.136.0-beta
- 0.135.0-beta
- 0.134.0-beta
- 0.133.0-beta
- 0.132.0-beta
- 0.130.0-beta
- 0.129.0-beta
- 0.128.0-beta
- 0.127.0-beta
- 0.126.0-beta
- 0.125.0-beta
- 0.124.15-beta
- 0.123.4-beta
- 0.122.23-beta
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ServiceContext.BuilderImplements
ServiceContextOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ServiceContext.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ServiceContext.Builder |
build()
public ServiceContext build()
Type | Description |
ServiceContext |
buildPartial()
public ServiceContext buildPartial()
Type | Description |
ServiceContext |
clear()
public ServiceContext.Builder clear()
Type | Description |
ServiceContext.Builder |
clearField(Descriptors.FieldDescriptor field)
public ServiceContext.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ServiceContext.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ServiceContext.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ServiceContext.Builder |
clearResourceType()
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;
Type | Description |
ServiceContext.Builder | This builder for chaining. |
clearService()
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;
Type | Description |
ServiceContext.Builder | This builder for chaining. |
clearVersion()
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. For App Engine standard environment, the version is set to the version of the app.
string version = 3;
Type | Description |
ServiceContext.Builder | This builder for chaining. |
clone()
public ServiceContext.Builder clone()
Type | Description |
ServiceContext.Builder |
getDefaultInstanceForType()
public ServiceContext getDefaultInstanceForType()
Type | Description |
ServiceContext |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getResourceType()
public 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;
Type | Description |
String | The resourceType. |
getResourceTypeBytes()
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;
Type | Description |
ByteString | The bytes for resourceType. |
getService()
public 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;
Type | Description |
String | The service. |
getServiceBytes()
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;
Type | Description |
ByteString | The bytes for service. |
getVersion()
public 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. For App Engine standard environment, the version is set to the version of the app.
string version = 3;
Type | Description |
String | The version. |
getVersionBytes()
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. For App Engine standard environment, the version is set to the version of the app.
string version = 3;
Type | Description |
ByteString | The bytes for version. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ServiceContext other)
public ServiceContext.Builder mergeFrom(ServiceContext other)
Name | Description |
other | ServiceContext |
Type | Description |
ServiceContext.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ServiceContext.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ServiceContext.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ServiceContext.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ServiceContext.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ServiceContext.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ServiceContext.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ServiceContext.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ServiceContext.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ServiceContext.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ServiceContext.Builder |
setResourceType(String value)
public ServiceContext.Builder setResourceType(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;
Name | Description |
value | String The resourceType to set. |
Type | Description |
ServiceContext.Builder | This builder for chaining. |
setResourceTypeBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for resourceType to set. |
Type | Description |
ServiceContext.Builder | This builder for chaining. |
setService(String value)
public ServiceContext.Builder setService(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;
Name | Description |
value | String The service to set. |
Type | Description |
ServiceContext.Builder | This builder for chaining. |
setServiceBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for service to set. |
Type | Description |
ServiceContext.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ServiceContext.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ServiceContext.Builder |
setVersion(String value)
public ServiceContext.Builder setVersion(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. For App Engine standard environment, the version is set to the version of the app.
string version = 3;
Name | Description |
value | String The version to set. |
Type | Description |
ServiceContext.Builder | This builder for chaining. |
setVersionBytes(ByteString value)
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. For App Engine standard environment, the version is set to the version of the app.
string version = 3;
Name | Description |
value | ByteString The bytes for version to set. |
Type | Description |
ServiceContext.Builder | This builder for chaining. |