- 0.173.0-beta (latest)
- 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 ReportedErrorEvent.Builder extends GeneratedMessageV3.Builder<ReportedErrorEvent.Builder> implements ReportedErrorEventOrBuilder
An error event which is reported to the Error Reporting system.
Protobuf type google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ReportedErrorEvent.BuilderImplements
ReportedErrorEventOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ReportedErrorEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ReportedErrorEvent.Builder |
build()
public ReportedErrorEvent build()
Type | Description |
ReportedErrorEvent |
buildPartial()
public ReportedErrorEvent buildPartial()
Type | Description |
ReportedErrorEvent |
clear()
public ReportedErrorEvent.Builder clear()
Type | Description |
ReportedErrorEvent.Builder |
clearContext()
public ReportedErrorEvent.Builder clearContext()
Optional. A description of the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ReportedErrorEvent.Builder |
clearEventTime()
public ReportedErrorEvent.Builder clearEventTime()
Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.
.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ReportedErrorEvent.Builder |
clearField(Descriptors.FieldDescriptor field)
public ReportedErrorEvent.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ReportedErrorEvent.Builder |
clearMessage()
public ReportedErrorEvent.Builder clearMessage()
Required. The error message.
If no context.reportLocation
is provided, the message must contain a
header (typically consisting of the exception type name and an error
message) and an exception stack trace in one of the supported programming
languages and formats.
Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.
Supported stack trace formats are:
- Java: Must be the return value of
Throwable.printStackTrace()
. - Python: Must be the return value of
traceback.format_exc()
. - JavaScript: Must be the value of
error.stack
as returned by V8. - Ruby: Must contain frames returned by
Exception.backtrace
. - C#: Must be the return value of
Exception.ToString()
. - PHP: Must start with
PHP (Notice|Parse error|Fatal error|Warning)
and contain the result of(string)$exception
. - Go: Must be the return value of
runtime.Stack()
.
string message = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ReportedErrorEvent.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ReportedErrorEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ReportedErrorEvent.Builder |
clearServiceContext()
public ReportedErrorEvent.Builder clearServiceContext()
Required. The service context in which this error has occurred.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ReportedErrorEvent.Builder |
clone()
public ReportedErrorEvent.Builder clone()
Type | Description |
ReportedErrorEvent.Builder |
getContext()
public ErrorContext getContext()
Optional. A description of the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ErrorContext | The context. |
getContextBuilder()
public ErrorContext.Builder getContextBuilder()
Optional. A description of the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ErrorContext.Builder |
getContextOrBuilder()
public ErrorContextOrBuilder getContextOrBuilder()
Optional. A description of the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ErrorContextOrBuilder |
getDefaultInstanceForType()
public ReportedErrorEvent getDefaultInstanceForType()
Type | Description |
ReportedErrorEvent |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEventTime()
public Timestamp getEventTime()
Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.
.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Timestamp | The eventTime. |
getEventTimeBuilder()
public Timestamp.Builder getEventTimeBuilder()
Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.
.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Builder |
getEventTimeOrBuilder()
public TimestampOrBuilder getEventTimeOrBuilder()
Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.
.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
TimestampOrBuilder |
getMessage()
public String getMessage()
Required. The error message.
If no context.reportLocation
is provided, the message must contain a
header (typically consisting of the exception type name and an error
message) and an exception stack trace in one of the supported programming
languages and formats.
Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.
Supported stack trace formats are:
- Java: Must be the return value of
Throwable.printStackTrace()
. - Python: Must be the return value of
traceback.format_exc()
. - JavaScript: Must be the value of
error.stack
as returned by V8. - Ruby: Must contain frames returned by
Exception.backtrace
. - C#: Must be the return value of
Exception.ToString()
. - PHP: Must start with
PHP (Notice|Parse error|Fatal error|Warning)
and contain the result of(string)$exception
. - Go: Must be the return value of
runtime.Stack()
.
string message = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The message. |
getMessageBytes()
public ByteString getMessageBytes()
Required. The error message.
If no context.reportLocation
is provided, the message must contain a
header (typically consisting of the exception type name and an error
message) and an exception stack trace in one of the supported programming
languages and formats.
Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.
Supported stack trace formats are:
- Java: Must be the return value of
Throwable.printStackTrace()
. - Python: Must be the return value of
traceback.format_exc()
. - JavaScript: Must be the value of
error.stack
as returned by V8. - Ruby: Must contain frames returned by
Exception.backtrace
. - C#: Must be the return value of
Exception.ToString()
. - PHP: Must start with
PHP (Notice|Parse error|Fatal error|Warning)
and contain the result of(string)$exception
. - Go: Must be the return value of
runtime.Stack()
.
string message = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for message. |
getServiceContext()
public ServiceContext getServiceContext()
Required. The service context in which this error has occurred.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ServiceContext | The serviceContext. |
getServiceContextBuilder()
public ServiceContext.Builder getServiceContextBuilder()
Required. The service context in which this error has occurred.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ServiceContext.Builder |
getServiceContextOrBuilder()
public ServiceContextOrBuilder getServiceContextOrBuilder()
Required. The service context in which this error has occurred.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ServiceContextOrBuilder |
hasContext()
public boolean hasContext()
Optional. A description of the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
boolean | Whether the context field is set. |
hasEventTime()
public boolean hasEventTime()
Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.
.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
boolean | Whether the eventTime field is set. |
hasServiceContext()
public boolean hasServiceContext()
Required. The service context in which this error has occurred.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
boolean | Whether the serviceContext field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeContext(ErrorContext value)
public ReportedErrorEvent.Builder mergeContext(ErrorContext value)
Optional. A description of the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ErrorContext |
Type | Description |
ReportedErrorEvent.Builder |
mergeEventTime(Timestamp value)
public ReportedErrorEvent.Builder mergeEventTime(Timestamp value)
Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.
.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | Timestamp |
Type | Description |
ReportedErrorEvent.Builder |
mergeFrom(ReportedErrorEvent other)
public ReportedErrorEvent.Builder mergeFrom(ReportedErrorEvent other)
Name | Description |
other | ReportedErrorEvent |
Type | Description |
ReportedErrorEvent.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ReportedErrorEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ReportedErrorEvent.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ReportedErrorEvent.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ReportedErrorEvent.Builder |
mergeServiceContext(ServiceContext value)
public ReportedErrorEvent.Builder mergeServiceContext(ServiceContext value)
Required. The service context in which this error has occurred.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ServiceContext |
Type | Description |
ReportedErrorEvent.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ReportedErrorEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ReportedErrorEvent.Builder |
setContext(ErrorContext value)
public ReportedErrorEvent.Builder setContext(ErrorContext value)
Optional. A description of the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ErrorContext |
Type | Description |
ReportedErrorEvent.Builder |
setContext(ErrorContext.Builder builderForValue)
public ReportedErrorEvent.Builder setContext(ErrorContext.Builder builderForValue)
Optional. A description of the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
builderForValue | ErrorContext.Builder |
Type | Description |
ReportedErrorEvent.Builder |
setEventTime(Timestamp value)
public ReportedErrorEvent.Builder setEventTime(Timestamp value)
Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.
.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | Timestamp |
Type | Description |
ReportedErrorEvent.Builder |
setEventTime(Timestamp.Builder builderForValue)
public ReportedErrorEvent.Builder setEventTime(Timestamp.Builder builderForValue)
Optional. Time when the event occurred. If not provided, the time when the event was received by the Error Reporting system will be used.
.google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
builderForValue | Builder |
Type | Description |
ReportedErrorEvent.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ReportedErrorEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ReportedErrorEvent.Builder |
setMessage(String value)
public ReportedErrorEvent.Builder setMessage(String value)
Required. The error message.
If no context.reportLocation
is provided, the message must contain a
header (typically consisting of the exception type name and an error
message) and an exception stack trace in one of the supported programming
languages and formats.
Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.
Supported stack trace formats are:
- Java: Must be the return value of
Throwable.printStackTrace()
. - Python: Must be the return value of
traceback.format_exc()
. - JavaScript: Must be the value of
error.stack
as returned by V8. - Ruby: Must contain frames returned by
Exception.backtrace
. - C#: Must be the return value of
Exception.ToString()
. - PHP: Must start with
PHP (Notice|Parse error|Fatal error|Warning)
and contain the result of(string)$exception
. - Go: Must be the return value of
runtime.Stack()
.
string message = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | String The message to set. |
Type | Description |
ReportedErrorEvent.Builder | This builder for chaining. |
setMessageBytes(ByteString value)
public ReportedErrorEvent.Builder setMessageBytes(ByteString value)
Required. The error message.
If no context.reportLocation
is provided, the message must contain a
header (typically consisting of the exception type name and an error
message) and an exception stack trace in one of the supported programming
languages and formats.
Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go.
Supported stack trace formats are:
- Java: Must be the return value of
Throwable.printStackTrace()
. - Python: Must be the return value of
traceback.format_exc()
. - JavaScript: Must be the value of
error.stack
as returned by V8. - Ruby: Must contain frames returned by
Exception.backtrace
. - C#: Must be the return value of
Exception.ToString()
. - PHP: Must start with
PHP (Notice|Parse error|Fatal error|Warning)
and contain the result of(string)$exception
. - Go: Must be the return value of
runtime.Stack()
.
string message = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ByteString The bytes for message to set. |
Type | Description |
ReportedErrorEvent.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ReportedErrorEvent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ReportedErrorEvent.Builder |
setServiceContext(ServiceContext value)
public ReportedErrorEvent.Builder setServiceContext(ServiceContext value)
Required. The service context in which this error has occurred.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ServiceContext |
Type | Description |
ReportedErrorEvent.Builder |
setServiceContext(ServiceContext.Builder builderForValue)
public ReportedErrorEvent.Builder setServiceContext(ServiceContext.Builder builderForValue)
Required. The service context in which this error has occurred.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
builderForValue | ServiceContext.Builder |
Type | Description |
ReportedErrorEvent.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ReportedErrorEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ReportedErrorEvent.Builder |