Class SonarAnalyzer.MetricsInfo.Builder

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

public static final class SonarAnalyzer.MetricsInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SonarAnalyzer.MetricsInfo.Builder> implements SonarAnalyzer.MetricsInfoOrBuilder
 Metrics reporting
 
Protobuf type sonaranalyzer.MetricsInfo
  • Method Details

    • 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.Builder<SonarAnalyzer.MetricsInfo.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<SonarAnalyzer.MetricsInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SonarAnalyzer.MetricsInfo.Builder>
    • getDefaultInstanceForType

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

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<SonarAnalyzer.MetricsInfo.Builder>
    • setField

      public SonarAnalyzer.MetricsInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<SonarAnalyzer.MetricsInfo.Builder>
    • clearField

      public SonarAnalyzer.MetricsInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SonarAnalyzer.MetricsInfo.Builder>
    • clearOneof

      public SonarAnalyzer.MetricsInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SonarAnalyzer.MetricsInfo.Builder>
    • setRepeatedField

      public SonarAnalyzer.MetricsInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SonarAnalyzer.MetricsInfo.Builder>
    • addRepeatedField

      public SonarAnalyzer.MetricsInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SonarAnalyzer.MetricsInfo.Builder>
    • mergeFrom

      public SonarAnalyzer.MetricsInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SonarAnalyzer.MetricsInfo.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SonarAnalyzer.MetricsInfo.Builder>
    • mergeFrom

      public SonarAnalyzer.MetricsInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SonarAnalyzer.MetricsInfo.Builder>
      Throws:
      IOException
    • 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.
    • setFilePath

      public SonarAnalyzer.MetricsInfo.Builder setFilePath(String value)
      string file_path = 1;
      Parameters:
      value - The filePath to set.
      Returns:
      This builder for chaining.
    • clearFilePath

      public SonarAnalyzer.MetricsInfo.Builder clearFilePath()
      string file_path = 1;
      Returns:
      This builder for chaining.
    • setFilePathBytes

      public SonarAnalyzer.MetricsInfo.Builder setFilePathBytes(com.google.protobuf.ByteString value)
      string file_path = 1;
      Parameters:
      value - The bytes for filePath to set.
      Returns:
      This builder for chaining.
    • getClassCount

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

      public SonarAnalyzer.MetricsInfo.Builder setClassCount(int value)
      int32 class_count = 2;
      Parameters:
      value - The classCount to set.
      Returns:
      This builder for chaining.
    • clearClassCount

      public SonarAnalyzer.MetricsInfo.Builder clearClassCount()
      int32 class_count = 2;
      Returns:
      This builder for chaining.
    • getStatementCount

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

      public SonarAnalyzer.MetricsInfo.Builder setStatementCount(int value)
      int32 statement_count = 3;
      Parameters:
      value - The statementCount to set.
      Returns:
      This builder for chaining.
    • clearStatementCount

      public SonarAnalyzer.MetricsInfo.Builder clearStatementCount()
      int32 statement_count = 3;
      Returns:
      This builder for chaining.
    • getFunctionCount

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

      public SonarAnalyzer.MetricsInfo.Builder setFunctionCount(int value)
      int32 function_count = 4;
      Parameters:
      value - The functionCount to set.
      Returns:
      This builder for chaining.
    • clearFunctionCount

      public SonarAnalyzer.MetricsInfo.Builder clearFunctionCount()
      int32 function_count = 4;
      Returns:
      This builder for chaining.
    • getComplexity

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

      public SonarAnalyzer.MetricsInfo.Builder setComplexity(int value)
      int32 complexity = 7;
      Parameters:
      value - The complexity to set.
      Returns:
      This builder for chaining.
    • clearComplexity

      public SonarAnalyzer.MetricsInfo.Builder clearComplexity()
      int32 complexity = 7;
      Returns:
      This builder for chaining.
    • 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.
    • setNoSonarComment

      public SonarAnalyzer.MetricsInfo.Builder setNoSonarComment(int index, int value)
      repeated int32 no_sonar_comment = 12;
      Parameters:
      index - The index to set the value at.
      value - The noSonarComment to set.
      Returns:
      This builder for chaining.
    • addNoSonarComment

      public SonarAnalyzer.MetricsInfo.Builder addNoSonarComment(int value)
      repeated int32 no_sonar_comment = 12;
      Parameters:
      value - The noSonarComment to add.
      Returns:
      This builder for chaining.
    • addAllNoSonarComment

      public SonarAnalyzer.MetricsInfo.Builder addAllNoSonarComment(Iterable<? extends Integer> values)
      repeated int32 no_sonar_comment = 12;
      Parameters:
      values - The noSonarComment to add.
      Returns:
      This builder for chaining.
    • clearNoSonarComment

      public SonarAnalyzer.MetricsInfo.Builder clearNoSonarComment()
      repeated int32 no_sonar_comment = 12;
      Returns:
      This builder for chaining.
    • 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.
    • setNonBlankComment

      public SonarAnalyzer.MetricsInfo.Builder setNonBlankComment(int index, int value)
      repeated int32 non_blank_comment = 13;
      Parameters:
      index - The index to set the value at.
      value - The nonBlankComment to set.
      Returns:
      This builder for chaining.
    • addNonBlankComment

      public SonarAnalyzer.MetricsInfo.Builder addNonBlankComment(int value)
      repeated int32 non_blank_comment = 13;
      Parameters:
      value - The nonBlankComment to add.
      Returns:
      This builder for chaining.
    • addAllNonBlankComment

      public SonarAnalyzer.MetricsInfo.Builder addAllNonBlankComment(Iterable<? extends Integer> values)
      repeated int32 non_blank_comment = 13;
      Parameters:
      values - The nonBlankComment to add.
      Returns:
      This builder for chaining.
    • clearNonBlankComment

      public SonarAnalyzer.MetricsInfo.Builder clearNonBlankComment()
      repeated int32 non_blank_comment = 13;
      Returns:
      This builder for chaining.
    • 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.
    • setCodeLine

      public SonarAnalyzer.MetricsInfo.Builder setCodeLine(int index, int value)
      repeated int32 code_line = 14;
      Parameters:
      index - The index to set the value at.
      value - The codeLine to set.
      Returns:
      This builder for chaining.
    • addCodeLine

      public SonarAnalyzer.MetricsInfo.Builder addCodeLine(int value)
      repeated int32 code_line = 14;
      Parameters:
      value - The codeLine to add.
      Returns:
      This builder for chaining.
    • addAllCodeLine

      public SonarAnalyzer.MetricsInfo.Builder addAllCodeLine(Iterable<? extends Integer> values)
      repeated int32 code_line = 14;
      Parameters:
      values - The codeLine to add.
      Returns:
      This builder for chaining.
    • clearCodeLine

      public SonarAnalyzer.MetricsInfo.Builder clearCodeLine()
      repeated int32 code_line = 14;
      Returns:
      This builder for chaining.
    • getCognitiveComplexity

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

      public SonarAnalyzer.MetricsInfo.Builder setCognitiveComplexity(int value)
      int32 cognitive_complexity = 15;
      Parameters:
      value - The cognitiveComplexity to set.
      Returns:
      This builder for chaining.
    • clearCognitiveComplexity

      public SonarAnalyzer.MetricsInfo.Builder clearCognitiveComplexity()
      int32 cognitive_complexity = 15;
      Returns:
      This builder for chaining.
    • 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.
    • setExecutableLines

      public SonarAnalyzer.MetricsInfo.Builder setExecutableLines(int index, int value)
      repeated int32 executable_lines = 16;
      Parameters:
      index - The index to set the value at.
      value - The executableLines to set.
      Returns:
      This builder for chaining.
    • addExecutableLines

      public SonarAnalyzer.MetricsInfo.Builder addExecutableLines(int value)
      repeated int32 executable_lines = 16;
      Parameters:
      value - The executableLines to add.
      Returns:
      This builder for chaining.
    • addAllExecutableLines

      public SonarAnalyzer.MetricsInfo.Builder addAllExecutableLines(Iterable<? extends Integer> values)
      repeated int32 executable_lines = 16;
      Parameters:
      values - The executableLines to add.
      Returns:
      This builder for chaining.
    • clearExecutableLines

      public SonarAnalyzer.MetricsInfo.Builder clearExecutableLines()
      repeated int32 executable_lines = 16;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final SonarAnalyzer.MetricsInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SonarAnalyzer.MetricsInfo.Builder>
    • mergeUnknownFields

      public final SonarAnalyzer.MetricsInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SonarAnalyzer.MetricsInfo.Builder>