<code>optional string timeline_label = 8;</code>
972093
public java.lang.String getTimelineLabel() {
    java.lang.Object ref = timelineLabel_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      timelineLabel_ = s;
      return s;
    }
  }
873958
public String getLabel(JComponent component) {
        String label = component2LabelMap.get(component);
        if (label != null) {
            return label;
        } else {
            return "";
        }
    }
1148259
private Label getLabel(String pane) {
        Label lbl = root.findByName(pane, Label.class);
        return lbl == null ? createLabel(pane) : lbl;
    }
1344628
@Procedure(mode = Mode.WRITE)
    @Description("apoc.index.addNodeByLabel(node,'Label',['prop1',...]) add node to an index for the given label")
    public void addNodeByLabel(@Name("label") String label, @Name("node") Node node, @Name("properties") List<String> propKeys) {
        indexEntityProperties(node, propKeys, getNodeIndex(label,FULL_TEXT));
    }
596513
public void label(String labelText, int index)
	{
		if (labelMap.containsKey(labelText)) throw new IllegalArgumentException(
			"Label \"" + labelText + "\" already exists.");

		if (labelMap.containsValue(index)) throw new IllegalArgumentException(
			"Index \"" + index + "\" already has a label.");

		labelMap.put(labelText, index);
	}
945883
protected String processLabel(String label, String name) {
    if (null != label) {
      if (Strings.isEmpty(label)) return null;
      else return getText(label);
    } else return getText(name);
  }
869278
@Override
	public String getLabel() {
		String l = label;
		if(l != null) return l;
		String p = path;
		if(p != null) {
			String filename = p.substring(p.lastIndexOf('/') + 1);
			if(filename.endsWith(DOT_EXTENSION)) filename = filename.substring(0, filename.length() - DOT_EXTENSION.length());
			if(filename.isEmpty()) throw new IllegalArgumentException("Invalid filename for diagram: " + p);
			return filename;
		}
		throw new IllegalStateException("Cannot get label, neither label nor path set");
	}
78800
public Instant getVersionDate(final Graph graph, final Node subject) {
        final String[] pathParts = subject.getURI().split("/");
        return MEMENTO_LABEL_FORMATTER.parse(pathParts[pathParts.length - 1], Instant::from);
    }
980016
public synchronized String nextLabel() {
        if (labels != null) {
            return labels.get(((Long) counter.getAndIncrement()).intValue());
        } else {
            maxCount = counter.getAndIncrement();
            return formatLabel(maxCount);
        }
    }
130741
static String generateUniqueLabel(String label, Set<String> existingLabels) {
    StringBuilder newLabel = new StringBuilder(label);
    while (existingLabels.contains(newLabel.toString())) {
      newLabel.append(POSTFIX);
    }
    return newLabel.toString();
  }
708335
private void labelIndicatorSetColorsToDefaultState(JLabel label) {
        if (label == null || settings == null) {
            return;
        }
        if (label == labelMonth || label == labelYear) {
            label.setBackground(settings.getColor(DateArea.BackgroundMonthAndYearMenuLabels));
            monthAndYearInnerPanel.setBackground(settings.getColor(DateArea.BackgroundMonthAndYearMenuLabels));
        }
        if (label == labelSetDateToToday) {
            label.setBackground(settings.getColor(DateArea.BackgroundTodayLabel));
        }
        if (label == labelClearDate) {
            label.setBackground(settings.getColor(DateArea.BackgroundClearLabel));
        }
        label.setBorder(new CompoundBorder(
            new EmptyBorder(1, 1, 1, 1), labelIndicatorEmptyBorder));
    }
126817
@Override
  protected String cleanUpLabel(String label) {
    if (label == null) {
      return "ROOT";
      // String constants are always interned
    } else if (leaveItAll == 1) {
      return tlp.categoryAndFunction(label);
    } else if (leaveItAll == 2) {
      return label;
    } else {
      boolean nptemp = NPTmpPattern.matcher(label).matches();
      boolean pptemp = PPTmpPattern.matcher(label).matches();
      boolean advptemp = ADVPTmpPattern.matcher(label).matches();
      boolean anytemp = TmpPattern.matcher(label).matches();
      boolean subj = NPSbjPattern.matcher(label).matches();
      boolean npadv = NPAdvPattern.matcher(label).matches();
      label = tlp.basicCategory(label);
      if (anytemp && temporalAnnotation == TEMPORAL_ANY_TMP_PERCOLATED) {
        label += "-TMP";
      } else if (pptemp && (temporalAnnotation == TEMPORAL_ALL_NP_AND_PP || temporalAnnotation == TEMPORAL_NP_AND_PP_WITH_NP_HEAD || temporalAnnotation == TEMPORAL_ALL_NP_EVEN_UNDER_PP || temporalAnnotation == TEMPORAL_ALL_NP_PP_ADVP || temporalAnnotation == TEMPORAL_9)) {
        label = label + "-TMP";
      } else if (advptemp && (temporalAnnotation == TEMPORAL_ALL_NP_PP_ADVP || temporalAnnotation == TEMPORAL_9)) {
        label = label + "-TMP";
      } else if (temporalAnnotation > 0 && nptemp) {
        label = label + "-TMP";
      }
      if (doAdverbialNP && npadv) {
        label = label + "-ADV";
      }
      if (doSGappedStuff && subj) {
        label = label + "-SBJ";
      }
      return label;
    }
  }
413434
private int[] convertLabelsToInds(String... label)
	{
		int[] ind = new int[label.length];
		for (int i = 0; i < label.length; i++)
		{
			if (hasLabel(label[i]))
			{
				ind[i] = indexOf(label[i]);
			}
			else ind[i] = lastIndex + 1;
		}
		return ind;
	}
230588
public Document createDocument(String[] tokenstring, String label) {
		this.lexicon.incrementDocCount();
		SimpleDocument doc = new SimpleDocument(tokenstring, this.lexicon, true);
		doc.setLabel(this.lexicon.getLabelIndex(label));
		return doc;
	}
586800
@Override
  public boolean hasNext() {
    for (int i = 0; i < _events.length; ++i)
      if (_events[i] != null && (!_events[i].isEmpty() || _events[i].next())) {
        assert (_events[i] == null)
          || ((_events[i]._eventIdx < TimeLine.MAX_EVENTS) && !_events[i].isEmpty());
        return true;
      } else {
        assert (_events[i] == null)
          || ((_events[i]._eventIdx < TimeLine.MAX_EVENTS) && !_events[i].isEmpty());
        _events[i] = null;
      }
    return false;
  }
673603
public final SequenceLabel createSequence(final String seqString,
      final String seqType) {
    final SequenceLabel name = new SequenceLabel();
    name.setValue(seqString);
    name.setType(seqType);
    return name;
  }
135406
public static void validateAttachmentLabel(String label)
      throws MonomerException {

    if (label.equalsIgnoreCase(Attachment.PAIR_ATTACHMENT)) {
      return;
    }
    char[] chars = label.toCharArray();

    if (!(String.valueOf(chars[0])).equals("R")) {
      throw new MonomerException("Invalid Attachment Label format");
    }
    for (int i = 1; i < chars.length; i++) {
      char c = chars[i];
      if (!(String.valueOf(c)).matches("[0-9]")) {
        throw new MonomerException("Invalid Attachment Label format");
      }
    }
  }