@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
@java.lang.Override public com.google.devtools.clouderrorreporting.v1beta1.ErrorEvent buildPartial() { com.google.devtools.clouderrorreporting.v1beta1.ErrorEvent result = new com.google.devtools.clouderrorreporting.v1beta1.ErrorEvent(this); if (eventTimeBuilder_ == null) { result.eventTime_ = eventTime_; } else { result.eventTime_ = eventTimeBuilder_.build(); } if (serviceContextBuilder_ == null) { result.serviceContext_ = serviceContext_; } else { result.serviceContext_ = serviceContextBuilder_.build(); } result.message_ = message_; if (contextBuilder_ == null) { result.context_ = context_; } else { result.context_ = contextBuilder_.build(); } onBuilt(); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.devtools.clouderrorreporting.v1beta1.ErrorEvent)) { return super.equals(obj); } com.google.devtools.clouderrorreporting.v1beta1.ErrorEvent other = (com.google.devtools.clouderrorreporting.v1beta1.ErrorEvent) obj; boolean result = true; result = result && (hasEventTime() == other.hasEventTime()); if (hasEventTime()) { result = result && getEventTime().equals(other.getEventTime()); } result = result && (hasServiceContext() == other.hasServiceContext()); if (hasServiceContext()) { result = result && getServiceContext().equals(other.getServiceContext()); } result = result && getMessage().equals(other.getMessage()); result = result && (hasContext() == other.hasContext()); if (hasContext()) { result = result && getContext().equals(other.getContext()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (eventTime_ != null) { output.writeMessage(1, getEventTime()); } if (serviceContext_ != null) { output.writeMessage(2, getServiceContext()); } if (!getMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); } if (context_ != null) { output.writeMessage(5, getContext()); } unknownFields.writeTo(output); }
/** * * * <pre> * The stack trace that was reported or logged by the service. * </pre> * * <code>string message = 3;</code> */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /**
@java.lang.Override public com.google.devtools.clouderrorreporting.v1beta1.ErrorEvent getDefaultInstanceForType() { return com.google.devtools.clouderrorreporting.v1beta1.ErrorEvent.getDefaultInstance(); }
/** * * * <pre> * Data about the context in which the error occurred. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;</code> */ public com.google.devtools.clouderrorreporting.v1beta1.ErrorContextOrBuilder getContextOrBuilder() { return getContext(); }
/** * * * <pre> * The `ServiceContext` for which this error was reported. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;</code> */ public com.google.devtools.clouderrorreporting.v1beta1.ServiceContextOrBuilder getServiceContextOrBuilder() { return getServiceContext(); }
/** * * * <pre> * 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. * </pre> * * <code>.google.protobuf.Timestamp event_time = 1;</code> */ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { return getEventTime(); }
result = result && (hasRepresentative() == other.hasRepresentative()); if (hasRepresentative()) { result = result && getRepresentative().equals(other.getRepresentative());
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (eventTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEventTime()); } if (serviceContext_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getServiceContext()); } if (!getMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (context_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getContext()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
/** * * * <pre> * An arbitrary event that is chosen as representative for the whole group. * The representative event is intended to be used as a quick preview for * the whole group. Events in the group are usually sufficiently similar * to each other such that showing an arbitrary representative provides * insight into the characteristics of the group as a whole. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.ErrorEvent representative = 9;</code> */ public com.google.devtools.clouderrorreporting.v1beta1.ErrorEvent getRepresentative() { return representative_ == null ? com.google.devtools.clouderrorreporting.v1beta1.ErrorEvent.getDefaultInstance() : representative_; } /**
/** * * * <pre> * The stack trace that was reported or logged by the service. * </pre> * * <code>string message = 3;</code> */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /**
/** * * * <pre> * Data about the context in which the error occurred. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5;</code> */ public com.google.devtools.clouderrorreporting.v1beta1.ErrorContextOrBuilder getContextOrBuilder() { return getContext(); }
/** * * * <pre> * The `ServiceContext` for which this error was reported. * </pre> * * <code>.google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2;</code> */ public com.google.devtools.clouderrorreporting.v1beta1.ServiceContextOrBuilder getServiceContextOrBuilder() { return getServiceContext(); }
/** * * * <pre> * 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. * </pre> * * <code>.google.protobuf.Timestamp event_time = 1;</code> */ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { return getEventTime(); }
result = result && (hasRepresentative() == other.hasRepresentative()); if (hasRepresentative()) { result = result && getRepresentative().equals(other.getRepresentative());
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasEventTime()) { hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; hash = (53 * hash) + getEventTime().hashCode(); } if (hasServiceContext()) { hash = (37 * hash) + SERVICE_CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getServiceContext().hashCode(); } hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); if (hasContext()) { hash = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (eventTime_ != null) { output.writeMessage(1, getEventTime()); } if (serviceContext_ != null) { output.writeMessage(2, getServiceContext()); } if (!getMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); } if (context_ != null) { output.writeMessage(5, getContext()); } unknownFields.writeTo(output); }
if (representative_ != null) { representative_ = com.google.devtools.clouderrorreporting.v1beta1.ErrorEvent.newBuilder(representative_) .mergeFrom(value) .buildPartial();