Class ErrorEvent.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
- com.google.devtools.clouderrorreporting.v1beta1.ErrorEvent.Builder
-
- All Implemented Interfaces:
ErrorEventOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ErrorEvent
public static final class ErrorEvent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder> implements ErrorEventOrBuilder
An error event which is returned by the Error Reporting system.
Protobuf typegoogle.devtools.clouderrorreporting.v1beta1.ErrorEvent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorEvent.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ErrorEvent
build()
ErrorEvent
buildPartial()
ErrorEvent.Builder
clear()
ErrorEvent.Builder
clearContext()
Data about the context in which the error occurred.ErrorEvent.Builder
clearEventTime()
Time when the event occurred as provided in the error report.ErrorEvent.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ErrorEvent.Builder
clearMessage()
The stack trace that was reported or logged by the service.ErrorEvent.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ErrorEvent.Builder
clearServiceContext()
The `ServiceContext` for which this error was reported.ErrorEvent.Builder
clone()
ErrorContext
getContext()
Data about the context in which the error occurred.ErrorContext.Builder
getContextBuilder()
Data about the context in which the error occurred.ErrorContextOrBuilder
getContextOrBuilder()
Data about the context in which the error occurred.ErrorEvent
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Timestamp
getEventTime()
Time when the event occurred as provided in the error report.com.google.protobuf.Timestamp.Builder
getEventTimeBuilder()
Time when the event occurred as provided in the error report.com.google.protobuf.TimestampOrBuilder
getEventTimeOrBuilder()
Time when the event occurred as provided in the error report.String
getMessage()
The stack trace that was reported or logged by the service.com.google.protobuf.ByteString
getMessageBytes()
The stack trace that was reported or logged by the service.ServiceContext
getServiceContext()
The `ServiceContext` for which this error was reported.ServiceContext.Builder
getServiceContextBuilder()
The `ServiceContext` for which this error was reported.ServiceContextOrBuilder
getServiceContextOrBuilder()
The `ServiceContext` for which this error was reported.boolean
hasContext()
Data about the context in which the error occurred.boolean
hasEventTime()
Time when the event occurred as provided in the error report.boolean
hasServiceContext()
The `ServiceContext` for which this error was reported.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ErrorEvent.Builder
mergeContext(ErrorContext value)
Data about the context in which the error occurred.ErrorEvent.Builder
mergeEventTime(com.google.protobuf.Timestamp value)
Time when the event occurred as provided in the error report.ErrorEvent.Builder
mergeFrom(ErrorEvent other)
ErrorEvent.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ErrorEvent.Builder
mergeFrom(com.google.protobuf.Message other)
ErrorEvent.Builder
mergeServiceContext(ServiceContext value)
The `ServiceContext` for which this error was reported.ErrorEvent.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ErrorEvent.Builder
setContext(ErrorContext value)
Data about the context in which the error occurred.ErrorEvent.Builder
setContext(ErrorContext.Builder builderForValue)
Data about the context in which the error occurred.ErrorEvent.Builder
setEventTime(com.google.protobuf.Timestamp value)
Time when the event occurred as provided in the error report.ErrorEvent.Builder
setEventTime(com.google.protobuf.Timestamp.Builder builderForValue)
Time when the event occurred as provided in the error report.ErrorEvent.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ErrorEvent.Builder
setMessage(String value)
The stack trace that was reported or logged by the service.ErrorEvent.Builder
setMessageBytes(com.google.protobuf.ByteString value)
The stack trace that was reported or logged by the service.ErrorEvent.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ErrorEvent.Builder
setServiceContext(ServiceContext value)
The `ServiceContext` for which this error was reported.ErrorEvent.Builder
setServiceContext(ServiceContext.Builder builderForValue)
The `ServiceContext` for which this error was reported.ErrorEvent.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
clear
public ErrorEvent.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
getDefaultInstanceForType
public ErrorEvent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ErrorEvent build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ErrorEvent buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ErrorEvent.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
setField
public ErrorEvent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
clearField
public ErrorEvent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
clearOneof
public ErrorEvent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
setRepeatedField
public ErrorEvent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
addRepeatedField
public ErrorEvent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
mergeFrom
public ErrorEvent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ErrorEvent.Builder>
-
mergeFrom
public ErrorEvent.Builder mergeFrom(ErrorEvent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
mergeFrom
public ErrorEvent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ErrorEvent.Builder>
- Throws:
IOException
-
hasEventTime
public boolean hasEventTime()
Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.
.google.protobuf.Timestamp event_time = 1;
- Specified by:
hasEventTime
in interfaceErrorEventOrBuilder
- Returns:
- Whether the eventTime field is set.
-
getEventTime
public com.google.protobuf.Timestamp getEventTime()
Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.
.google.protobuf.Timestamp event_time = 1;
- Specified by:
getEventTime
in interfaceErrorEventOrBuilder
- Returns:
- The eventTime.
-
setEventTime
public ErrorEvent.Builder setEventTime(com.google.protobuf.Timestamp value)
Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.
.google.protobuf.Timestamp event_time = 1;
-
setEventTime
public ErrorEvent.Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue)
Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.
.google.protobuf.Timestamp event_time = 1;
-
mergeEventTime
public ErrorEvent.Builder mergeEventTime(com.google.protobuf.Timestamp value)
Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.
.google.protobuf.Timestamp event_time = 1;
-
clearEventTime
public ErrorEvent.Builder clearEventTime()
Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.
.google.protobuf.Timestamp event_time = 1;
-
getEventTimeBuilder
public com.google.protobuf.Timestamp.Builder getEventTimeBuilder()
Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.
.google.protobuf.Timestamp event_time = 1;
-
getEventTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder()
Time when the event occurred as provided in the error report. If the report did not contain a timestamp, the time the error was received by the Error Reporting system is used.
.google.protobuf.Timestamp event_time = 1;
- Specified by:
getEventTimeOrBuilder
in interfaceErrorEventOrBuilder
-
hasServiceContext
public boolean hasServiceContext()
The `ServiceContext` for which this error was reported.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
- Specified by:
hasServiceContext
in interfaceErrorEventOrBuilder
- Returns:
- Whether the serviceContext field is set.
-
getServiceContext
public ServiceContext getServiceContext()
The `ServiceContext` for which this error was reported.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
- Specified by:
getServiceContext
in interfaceErrorEventOrBuilder
- Returns:
- The serviceContext.
-
setServiceContext
public ErrorEvent.Builder setServiceContext(ServiceContext value)
The `ServiceContext` for which this error was reported.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
-
setServiceContext
public ErrorEvent.Builder setServiceContext(ServiceContext.Builder builderForValue)
The `ServiceContext` for which this error was reported.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
-
mergeServiceContext
public ErrorEvent.Builder mergeServiceContext(ServiceContext value)
The `ServiceContext` for which this error was reported.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
-
clearServiceContext
public ErrorEvent.Builder clearServiceContext()
The `ServiceContext` for which this error was reported.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
-
getServiceContextBuilder
public ServiceContext.Builder getServiceContextBuilder()
The `ServiceContext` for which this error was reported.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
-
getServiceContextOrBuilder
public ServiceContextOrBuilder getServiceContextOrBuilder()
The `ServiceContext` for which this error was reported.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;
- Specified by:
getServiceContextOrBuilder
in interfaceErrorEventOrBuilder
-
getMessage
public String getMessage()
The stack trace that was reported or logged by the service.
string message = 3;
- Specified by:
getMessage
in interfaceErrorEventOrBuilder
- Returns:
- The message.
-
getMessageBytes
public com.google.protobuf.ByteString getMessageBytes()
The stack trace that was reported or logged by the service.
string message = 3;
- Specified by:
getMessageBytes
in interfaceErrorEventOrBuilder
- Returns:
- The bytes for message.
-
setMessage
public ErrorEvent.Builder setMessage(String value)
The stack trace that was reported or logged by the service.
string message = 3;
- Parameters:
value
- The message to set.- Returns:
- This builder for chaining.
-
clearMessage
public ErrorEvent.Builder clearMessage()
The stack trace that was reported or logged by the service.
string message = 3;
- Returns:
- This builder for chaining.
-
setMessageBytes
public ErrorEvent.Builder setMessageBytes(com.google.protobuf.ByteString value)
The stack trace that was reported or logged by the service.
string message = 3;
- Parameters:
value
- The bytes for message to set.- Returns:
- This builder for chaining.
-
hasContext
public boolean hasContext()
Data about the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
- Specified by:
hasContext
in interfaceErrorEventOrBuilder
- Returns:
- Whether the context field is set.
-
getContext
public ErrorContext getContext()
Data about the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
- Specified by:
getContext
in interfaceErrorEventOrBuilder
- Returns:
- The context.
-
setContext
public ErrorEvent.Builder setContext(ErrorContext value)
Data about the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
-
setContext
public ErrorEvent.Builder setContext(ErrorContext.Builder builderForValue)
Data about the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
-
mergeContext
public ErrorEvent.Builder mergeContext(ErrorContext value)
Data about the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
-
clearContext
public ErrorEvent.Builder clearContext()
Data about the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
-
getContextBuilder
public ErrorContext.Builder getContextBuilder()
Data about the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
-
getContextOrBuilder
public ErrorContextOrBuilder getContextOrBuilder()
Data about the context in which the error occurred.
.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;
- Specified by:
getContextOrBuilder
in interfaceErrorEventOrBuilder
-
setUnknownFields
public final ErrorEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
mergeUnknownFields
public final ErrorEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
-