Tabnine Logo
ProtobufSystemInfo$Attribute.getStringValuesList
Code IndexAdd Tabnine to your IDE (free)

How to use
getStringValuesList
method
in
org.sonar.process.systeminfo.protobuf.ProtobufSystemInfo$Attribute

Best Java code snippets using org.sonar.process.systeminfo.protobuf.ProtobufSystemInfo$Attribute.getStringValuesList (Showing top 2 results out of 315)

origin: SonarSource/sonarqube

private void writeAttribute(ProtobufSystemInfo.Attribute attribute, JsonWriter json) {
 switch (attribute.getValueCase()) {
  case BOOLEAN_VALUE:
   json.prop(attribute.getKey(), attribute.getBooleanValue());
   break;
  case LONG_VALUE:
   json.prop(attribute.getKey(), attribute.getLongValue());
   break;
  case DOUBLE_VALUE:
   json.prop(attribute.getKey(), attribute.getDoubleValue());
   break;
  case STRING_VALUE:
   json.prop(attribute.getKey(), attribute.getStringValue());
   break;
  case VALUE_NOT_SET:
   json.name(attribute.getKey()).beginArray().values(attribute.getStringValuesList()).endArray();
   break;
  default:
   throw new IllegalArgumentException("Unsupported type: " + attribute.getValueCase());
 }
}
origin: org.sonarsource.sonarqube/sonar-server

private void writeAttribute(ProtobufSystemInfo.Attribute attribute, JsonWriter json) {
 switch (attribute.getValueCase()) {
  case BOOLEAN_VALUE:
   json.prop(attribute.getKey(), attribute.getBooleanValue());
   break;
  case LONG_VALUE:
   json.prop(attribute.getKey(), attribute.getLongValue());
   break;
  case DOUBLE_VALUE:
   json.prop(attribute.getKey(), attribute.getDoubleValue());
   break;
  case STRING_VALUE:
   json.prop(attribute.getKey(), attribute.getStringValue());
   break;
  case VALUE_NOT_SET:
   json.name(attribute.getKey()).beginArray().values(attribute.getStringValuesList()).endArray();
   break;
  default:
   throw new IllegalArgumentException("Unsupported type: " + attribute.getValueCase());
 }
}
org.sonar.process.systeminfo.protobufProtobufSystemInfo$AttributegetStringValuesList

Popular methods of ProtobufSystemInfo$Attribute

  • getLongValue
  • getBooleanValue
  • getKey
  • getStringValue
  • getDoubleValue
  • getValueCase
  • newBuilder

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • JList (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now