public Builder mergeFrom(org.sonar.db.protobuf.DbFileSources.Test other) { if (other == org.sonar.db.protobuf.DbFileSources.Test.getDefaultInstance()) return this; if (other.hasUuid()) { bitField0_ |= 0x00000001; uuid_ = other.uuid_; onChanged(); if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); if (other.hasStatus()) { setStatus(other.getStatus()); if (other.hasExecutionTimeMs()) { setExecutionTimeMs(other.getExecutionTimeMs()); if (other.hasStacktrace()) { bitField0_ |= 0x00000010; stacktrace_ = other.stacktrace_; onChanged(); if (other.hasMsg()) { bitField0_ |= 0x00000020; msg_ = other.msg_;
writer.prop(FIELD_PROJECT_UUID, projectUuid); writer.prop(FIELD_FILE_UUID, fileUuid); writer.prop(FIELD_TEST_UUID, test.getUuid()); writer.prop(FIELD_NAME, test.getName()); writer.prop(FIELD_STATUS, test.hasStatus() ? test.getStatus().toString() : null); writer.prop(FIELD_DURATION_IN_MS, test.hasExecutionTimeMs() ? test.getExecutionTimeMs() : null); writer.prop(FIELD_MESSAGE, test.hasMsg() ? test.getMsg() : null); writer.prop(FIELD_STACKTRACE, test.hasStacktrace() ? test.getStacktrace() : null); writer.prop(FIELD_UPDATED_AT, EsUtils.formatDateTime(updatedAt)); writer.name(FIELD_COVERED_FILES); writer.beginArray(); for (DbFileSources.Test.CoveredFile coveredFile : test.getCoveredFileList()) { writer.beginObject(); writer.prop(FIELD_COVERED_FILE_UUID, coveredFile.getFileUuid()); UpdateRequest updateRequest = new UpdateRequest(INDEX_TYPE_TEST.getIndex(), INDEX_TYPE_TEST.getType(), test.getUuid()) .routing(projectUuid) .doc(jsonDoc, XContentType.JSON)
/** * <code>optional string name = 2;</code> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <code>optional string uuid = 1;</code> */ public Builder clearUuid() { bitField0_ = (bitField0_ & ~0x00000001); uuid_ = getDefaultInstance().getUuid(); onChanged(); return this; } /**
/** * <code>optional string msg = 6;</code> */ public Builder clearMsg() { bitField0_ = (bitField0_ & ~0x00000020); msg_ = getDefaultInstance().getMsg(); onChanged(); return this; } /**
/** * <code>optional string stacktrace = 5;</code> */ public Builder clearStacktrace() { bitField0_ = (bitField0_ & ~0x00000010); stacktrace_ = getDefaultInstance().getStacktrace(); onChanged(); return this; } /**