public static String getFirstLabel ( final LabelOrBuilder label ) throws NotAvailableException { for ( Label . MapFieldEntry entry : label . getEntryList ( ) ) { for ( String value : entry . getValueList ( ) ) { return value ; } } throw new NotAvailableException ( "Label" ) ; }
Get the first label found in the label type . This is independent of the language of the label .