private void initDiagnostics() { if (this.diagnostics != null) { return; } GetDiagnosticsResponseProtoOrBuilder p = viaProto ? proto : builder; List<String> list = p.getDiagnosticsList(); this.diagnostics = new ArrayList<String>(); for (String c : list) { this.diagnostics.add(c); } }