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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ErrorEventbuild()ErrorEventbuildPartial()ErrorEvent.Builderclear()ErrorEvent.BuilderclearContext()Data about the context in which the error occurred.ErrorEvent.BuilderclearEventTime()Time when the event occurred as provided in the error report.ErrorEvent.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ErrorEvent.BuilderclearMessage()The stack trace that was reported or logged by the service.ErrorEvent.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ErrorEvent.BuilderclearServiceContext()The `ServiceContext` for which this error was reported.ErrorEvent.Builderclone()ErrorContextgetContext()Data about the context in which the error occurred.ErrorContext.BuildergetContextBuilder()Data about the context in which the error occurred.ErrorContextOrBuildergetContextOrBuilder()Data about the context in which the error occurred.ErrorEventgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.TimestampgetEventTime()Time when the event occurred as provided in the error report.com.google.protobuf.Timestamp.BuildergetEventTimeBuilder()Time when the event occurred as provided in the error report.com.google.protobuf.TimestampOrBuildergetEventTimeOrBuilder()Time when the event occurred as provided in the error report.StringgetMessage()The stack trace that was reported or logged by the service.com.google.protobuf.ByteStringgetMessageBytes()The stack trace that was reported or logged by the service.ServiceContextgetServiceContext()The `ServiceContext` for which this error was reported.ServiceContext.BuildergetServiceContextBuilder()The `ServiceContext` for which this error was reported.ServiceContextOrBuildergetServiceContextOrBuilder()The `ServiceContext` for which this error was reported.booleanhasContext()Data about the context in which the error occurred.booleanhasEventTime()Time when the event occurred as provided in the error report.booleanhasServiceContext()The `ServiceContext` for which this error was reported.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ErrorEvent.BuildermergeContext(ErrorContext value)Data about the context in which the error occurred.ErrorEvent.BuildermergeEventTime(com.google.protobuf.Timestamp value)Time when the event occurred as provided in the error report.ErrorEvent.BuildermergeFrom(ErrorEvent other)ErrorEvent.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ErrorEvent.BuildermergeFrom(com.google.protobuf.Message other)ErrorEvent.BuildermergeServiceContext(ServiceContext value)The `ServiceContext` for which this error was reported.ErrorEvent.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ErrorEvent.BuildersetContext(ErrorContext value)Data about the context in which the error occurred.ErrorEvent.BuildersetContext(ErrorContext.Builder builderForValue)Data about the context in which the error occurred.ErrorEvent.BuildersetEventTime(com.google.protobuf.Timestamp value)Time when the event occurred as provided in the error report.ErrorEvent.BuildersetEventTime(com.google.protobuf.Timestamp.Builder builderForValue)Time when the event occurred as provided in the error report.ErrorEvent.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ErrorEvent.BuildersetMessage(String value)The stack trace that was reported or logged by the service.ErrorEvent.BuildersetMessageBytes(com.google.protobuf.ByteString value)The stack trace that was reported or logged by the service.ErrorEvent.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ErrorEvent.BuildersetServiceContext(ServiceContext value)The `ServiceContext` for which this error was reported.ErrorEvent.BuildersetServiceContext(ServiceContext.Builder builderForValue)The `ServiceContext` for which this error was reported.ErrorEvent.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
clear
public ErrorEvent.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
getDefaultInstanceForType
public ErrorEvent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ErrorEvent build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ErrorEvent buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ErrorEvent.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
setField
public ErrorEvent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
clearField
public ErrorEvent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
clearOneof
public ErrorEvent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
setRepeatedField
public ErrorEvent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
addRepeatedField
public ErrorEvent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
mergeFrom
public ErrorEvent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ErrorEvent.Builder>
-
mergeFrom
public ErrorEvent.Builder mergeFrom(ErrorEvent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasEventTimein 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:
getEventTimein 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:
getEventTimeOrBuilderin interfaceErrorEventOrBuilder
-
hasServiceContext
public boolean hasServiceContext()
The `ServiceContext` for which this error was reported.
.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;- Specified by:
hasServiceContextin 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:
getServiceContextin 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:
getServiceContextOrBuilderin interfaceErrorEventOrBuilder
-
getMessage
public String getMessage()
The stack trace that was reported or logged by the service.
string message = 3;- Specified by:
getMessagein 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:
getMessageBytesin 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:
hasContextin 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:
getContextin 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:
getContextOrBuilderin interfaceErrorEventOrBuilder
-
setUnknownFields
public final ErrorEvent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
mergeUnknownFields
public final ErrorEvent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ErrorEvent.Builder>
-
-