/** * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> */ public org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() { if (textRangeBuilder_ != null) { return textRangeBuilder_.getMessageOrBuilder(); } else { return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; } } /**
/** * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> */ public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() { if (textRangeBuilder_ == null) { return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; } else { return textRangeBuilder_.getMessage(); } } /**
/** * <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 getTextRange() { if (textRangeBuilder_ == null) { return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; } else { return textRangeBuilder_.getMessage(); } } /**
/** * <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 = 1;</code> */ public Builder mergeTextRange(org.sonar.db.protobuf.DbCommons.TextRange value) { if (textRangeBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && 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_ |= 0x00000001; return this; } /**
public Builder mergeFrom(org.sonar.db.protobuf.DbCommons.TextRange other) { if (other == org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance()) return this; if (other.hasStartLine()) { setStartLine(other.getStartLine()); } if (other.hasEndLine()) { setEndLine(other.getEndLine()); } if (other.hasStartOffset()) { setStartOffset(other.getStartOffset()); } if (other.hasEndOffset()) { setEndOffset(other.getEndOffset()); } 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 org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() { if (textRangeBuilder_ != null) { return textRangeBuilder_.getMessageOrBuilder(); } else { return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; } } /**
/** * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> */ public org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() { return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; }
public org.sonar.db.protobuf.DbCommons.TextRange getDefaultInstanceForType() { return org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance(); }
/** * <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 getTextRange() { return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; } /**
/** * <code>optional .sonarqube.db.commons.TextRange text_range = 1;</code> */ public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() { return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; } /**
/** * <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.TextRangeOrBuilder getTextRangeOrBuilder() { return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; }