/** * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> * * <pre> * Only when component is a file. Can be empty for a file if this is an issue global to the file. * </pre> */ public Builder setTextRange(org.sonar.db.protobuf.DbCommons.TextRange value) { if (textRangeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } textRange_ = value; onChanged(); } else { textRangeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>optional string component_id = 1;</code> */ public Builder setComponentIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; componentId_ = value; onChanged(); return this; }
/** * <code>optional string msg = 3;</code> */ public Builder setMsgBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; msg_ = value; onChanged(); return this; }
/** * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> * * <pre> * Only when component is a file. Can be empty for a file if this is an issue global to the file. * </pre> */ public Builder mergeTextRange(org.sonar.db.protobuf.DbCommons.TextRange value) { if (textRangeBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && textRange_ != null && textRange_ != org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance()) { textRange_ = org.sonar.db.protobuf.DbCommons.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial(); } else { textRange_ = value; } onChanged(); } else { textRangeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> * * <pre> * Only when component is a file. Can be empty for a file if this is an issue global to the file. * </pre> */ public Builder setTextRange( org.sonar.db.protobuf.DbCommons.TextRange.Builder builderForValue) { if (textRangeBuilder_ == null) { textRange_ = builderForValue.build(); onChanged(); } else { textRangeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**
public Builder mergeFrom(org.sonar.db.protobuf.DbIssues.Location other) { if (other == org.sonar.db.protobuf.DbIssues.Location.getDefaultInstance()) return this; if (other.hasComponentId()) { bitField0_ |= 0x00000001; componentId_ = other.componentId_; onChanged(); } if (other.hasTextRange()) { mergeTextRange(other.getTextRange()); } if (other.hasMsg()) { bitField0_ |= 0x00000004; msg_ = other.msg_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> * * <pre> * Only when component is a file. Can be empty for a file if this is an issue global to the file. * </pre> */ public Builder clearTextRange() { if (textRangeBuilder_ == null) { textRange_ = null; onChanged(); } else { textRangeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /**
/** * <code>optional string msg = 3;</code> */ public Builder setMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; msg_ = value; onChanged(); return this; } /**
/** * <code>optional string component_id = 1;</code> */ public Builder setComponentId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; componentId_ = value; onChanged(); return this; } /**
/** * <code>optional string msg = 3;</code> */ public Builder clearMsg() { bitField0_ = (bitField0_ & ~0x00000004); msg_ = getDefaultInstance().getMsg(); onChanged(); return this; } /**
/** * <code>optional string component_id = 1;</code> */ public Builder clearComponentId() { bitField0_ = (bitField0_ & ~0x00000001); componentId_ = getDefaultInstance().getComponentId(); onChanged(); return this; } /**
/** * <code>optional .sonarqube.db.commons.TextRange text_range = 2;</code> * * <pre> * Only when component is a file. Can be empty for a file if this is an issue global to the file. * </pre> */ public org.sonar.db.protobuf.DbCommons.TextRange.Builder getTextRangeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTextRangeFieldBuilder().getBuilder(); } /**