Class SonarAnalyzer.MetricsInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.sonarsource.dotnet.protobuf.SonarAnalyzer.MetricsInfo
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, SonarAnalyzer.MetricsInfoOrBuilder
Enclosing class:
SonarAnalyzer

public static final class SonarAnalyzer.MetricsInfo extends com.google.protobuf.GeneratedMessageV3 implements SonarAnalyzer.MetricsInfoOrBuilder
 Metrics reporting
 
Protobuf type sonaranalyzer.MetricsInfo
See Also:
  • Field Details

    • FILE_PATH_FIELD_NUMBER

      public static final int FILE_PATH_FIELD_NUMBER
      See Also:
    • CLASS_COUNT_FIELD_NUMBER

      public static final int CLASS_COUNT_FIELD_NUMBER
      See Also:
    • STATEMENT_COUNT_FIELD_NUMBER

      public static final int STATEMENT_COUNT_FIELD_NUMBER
      See Also:
    • FUNCTION_COUNT_FIELD_NUMBER

      public static final int FUNCTION_COUNT_FIELD_NUMBER
      See Also:
    • COMPLEXITY_FIELD_NUMBER

      public static final int COMPLEXITY_FIELD_NUMBER
      See Also:
    • NO_SONAR_COMMENT_FIELD_NUMBER

      public static final int NO_SONAR_COMMENT_FIELD_NUMBER
      See Also:
    • NON_BLANK_COMMENT_FIELD_NUMBER

      public static final int NON_BLANK_COMMENT_FIELD_NUMBER
      See Also:
    • CODE_LINE_FIELD_NUMBER

      public static final int CODE_LINE_FIELD_NUMBER
      See Also:
    • COGNITIVE_COMPLEXITY_FIELD_NUMBER

      public static final int COGNITIVE_COMPLEXITY_FIELD_NUMBER
      See Also:
    • EXECUTABLE_LINES_FIELD_NUMBER

      public static final int EXECUTABLE_LINES_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getFilePath

      public String getFilePath()
      string file_path = 1;
      Specified by:
      getFilePath in interface SonarAnalyzer.MetricsInfoOrBuilder
      Returns:
      The filePath.
    • getFilePathBytes

      public com.google.protobuf.ByteString getFilePathBytes()
      string file_path = 1;
      Specified by:
      getFilePathBytes in interface SonarAnalyzer.MetricsInfoOrBuilder
      Returns:
      The bytes for filePath.
    • getClassCount

      public int getClassCount()
      int32 class_count = 2;
      Specified by:
      getClassCount in interface SonarAnalyzer.MetricsInfoOrBuilder
      Returns:
      The classCount.
    • getStatementCount

      public int getStatementCount()
      int32 statement_count = 3;
      Specified by:
      getStatementCount in interface SonarAnalyzer.MetricsInfoOrBuilder
      Returns:
      The statementCount.
    • getFunctionCount

      public int getFunctionCount()
      int32 function_count = 4;
      Specified by:
      getFunctionCount in interface SonarAnalyzer.MetricsInfoOrBuilder
      Returns:
      The functionCount.
    • getComplexity

      public int getComplexity()
      int32 complexity = 7;
      Specified by:
      getComplexity in interface SonarAnalyzer.MetricsInfoOrBuilder
      Returns:
      The complexity.
    • getNoSonarCommentList

      public List<Integer> getNoSonarCommentList()
      repeated int32 no_sonar_comment = 12;
      Specified by:
      getNoSonarCommentList in interface SonarAnalyzer.MetricsInfoOrBuilder
      Returns:
      A list containing the noSonarComment.
    • getNoSonarCommentCount

      public int getNoSonarCommentCount()
      repeated int32 no_sonar_comment = 12;
      Specified by:
      getNoSonarCommentCount in interface SonarAnalyzer.MetricsInfoOrBuilder
      Returns:
      The count of noSonarComment.
    • getNoSonarComment

      public int getNoSonarComment(int index)
      repeated int32 no_sonar_comment = 12;
      Specified by:
      getNoSonarComment in interface SonarAnalyzer.MetricsInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The noSonarComment at the given index.
    • getNonBlankCommentList

      public List<Integer> getNonBlankCommentList()
      repeated int32 non_blank_comment = 13;
      Specified by:
      getNonBlankCommentList in interface SonarAnalyzer.MetricsInfoOrBuilder
      Returns:
      A list containing the nonBlankComment.
    • getNonBlankCommentCount

      public int getNonBlankCommentCount()
      repeated int32 non_blank_comment = 13;
      Specified by:
      getNonBlankCommentCount in interface SonarAnalyzer.MetricsInfoOrBuilder
      Returns:
      The count of nonBlankComment.
    • getNonBlankComment

      public int getNonBlankComment(int index)
      repeated int32 non_blank_comment = 13;
      Specified by:
      getNonBlankComment in interface SonarAnalyzer.MetricsInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The nonBlankComment at the given index.
    • getCodeLineList

      public List<Integer> getCodeLineList()
      repeated int32 code_line = 14;
      Specified by:
      getCodeLineList in interface SonarAnalyzer.MetricsInfoOrBuilder
      Returns:
      A list containing the codeLine.
    • getCodeLineCount

      public int getCodeLineCount()
      repeated int32 code_line = 14;
      Specified by:
      getCodeLineCount in interface SonarAnalyzer.MetricsInfoOrBuilder
      Returns:
      The count of codeLine.
    • getCodeLine

      public int getCodeLine(int index)
      repeated int32 code_line = 14;
      Specified by:
      getCodeLine in interface SonarAnalyzer.MetricsInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The codeLine at the given index.
    • getCognitiveComplexity

      public int getCognitiveComplexity()
      int32 cognitive_complexity = 15;
      Specified by:
      getCognitiveComplexity in interface SonarAnalyzer.MetricsInfoOrBuilder
      Returns:
      The cognitiveComplexity.
    • getExecutableLinesList

      public List<Integer> getExecutableLinesList()
      repeated int32 executable_lines = 16;
      Specified by:
      getExecutableLinesList in interface SonarAnalyzer.MetricsInfoOrBuilder
      Returns:
      A list containing the executableLines.
    • getExecutableLinesCount

      public int getExecutableLinesCount()
      repeated int32 executable_lines = 16;
      Specified by:
      getExecutableLinesCount in interface SonarAnalyzer.MetricsInfoOrBuilder
      Returns:
      The count of executableLines.
    • getExecutableLines

      public int getExecutableLines(int index)
      repeated int32 executable_lines = 16;
      Specified by:
      getExecutableLines in interface SonarAnalyzer.MetricsInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The executableLines at the given index.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static SonarAnalyzer.MetricsInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SonarAnalyzer.MetricsInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SonarAnalyzer.MetricsInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SonarAnalyzer.MetricsInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SonarAnalyzer.MetricsInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SonarAnalyzer.MetricsInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static SonarAnalyzer.MetricsInfo parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SonarAnalyzer.MetricsInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SonarAnalyzer.MetricsInfo parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static SonarAnalyzer.MetricsInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SonarAnalyzer.MetricsInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static SonarAnalyzer.MetricsInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public SonarAnalyzer.MetricsInfo.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static SonarAnalyzer.MetricsInfo.Builder newBuilder()
    • newBuilder

      public static SonarAnalyzer.MetricsInfo.Builder newBuilder(SonarAnalyzer.MetricsInfo prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected SonarAnalyzer.MetricsInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static SonarAnalyzer.MetricsInfo getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<SonarAnalyzer.MetricsInfo> parser()
    • getParserForType

      public com.google.protobuf.Parser<SonarAnalyzer.MetricsInfo> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public SonarAnalyzer.MetricsInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder