Package org.sonarsource.dotnet.protobuf
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 reportingProtobuf type
sonaranalyzer.MetricsInfo- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMetrics reportingNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanintint32 class_count = 2;intgetCodeLine(int index) repeated int32 code_line = 14;intrepeated int32 code_line = 14;repeated int32 code_line = 14;intint32 cognitive_complexity = 15;intint32 complexity = 7;static SonarAnalyzer.MetricsInfostatic final com.google.protobuf.Descriptors.DescriptorintgetExecutableLines(int index) repeated int32 executable_lines = 16;intrepeated int32 executable_lines = 16;repeated int32 executable_lines = 16;string file_path = 1;com.google.protobuf.ByteStringstring file_path = 1;intint32 function_count = 4;intgetNonBlankComment(int index) repeated int32 non_blank_comment = 13;intrepeated int32 non_blank_comment = 13;repeated int32 non_blank_comment = 13;intgetNoSonarComment(int index) repeated int32 no_sonar_comment = 12;intrepeated int32 no_sonar_comment = 12;repeated int32 no_sonar_comment = 12;com.google.protobuf.Parser<SonarAnalyzer.MetricsInfo>intintint32 statement_count = 3;inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(SonarAnalyzer.MetricsInfo prototype) protected SonarAnalyzer.MetricsInfo.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static SonarAnalyzer.MetricsInfoparseDelimitedFrom(InputStream input) static SonarAnalyzer.MetricsInfoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SonarAnalyzer.MetricsInfoparseFrom(byte[] data) static SonarAnalyzer.MetricsInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SonarAnalyzer.MetricsInfoparseFrom(com.google.protobuf.ByteString data) static SonarAnalyzer.MetricsInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SonarAnalyzer.MetricsInfoparseFrom(com.google.protobuf.CodedInputStream input) static SonarAnalyzer.MetricsInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SonarAnalyzer.MetricsInfoparseFrom(InputStream input) static SonarAnalyzer.MetricsInfoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SonarAnalyzer.MetricsInfoparseFrom(ByteBuffer data) static SonarAnalyzer.MetricsInfoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SonarAnalyzer.MetricsInfo>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getFilePath
string file_path = 1;- Specified by:
getFilePathin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Returns:
- The filePath.
-
getFilePathBytes
public com.google.protobuf.ByteString getFilePathBytes()string file_path = 1;- Specified by:
getFilePathBytesin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Returns:
- The bytes for filePath.
-
getClassCount
public int getClassCount()int32 class_count = 2;- Specified by:
getClassCountin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Returns:
- The classCount.
-
getStatementCount
public int getStatementCount()int32 statement_count = 3;- Specified by:
getStatementCountin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Returns:
- The statementCount.
-
getFunctionCount
public int getFunctionCount()int32 function_count = 4;- Specified by:
getFunctionCountin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Returns:
- The functionCount.
-
getComplexity
public int getComplexity()int32 complexity = 7;- Specified by:
getComplexityin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Returns:
- The complexity.
-
getNoSonarCommentList
repeated int32 no_sonar_comment = 12;- Specified by:
getNoSonarCommentListin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Returns:
- A list containing the noSonarComment.
-
getNoSonarCommentCount
public int getNoSonarCommentCount()repeated int32 no_sonar_comment = 12;- Specified by:
getNoSonarCommentCountin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Returns:
- The count of noSonarComment.
-
getNoSonarComment
public int getNoSonarComment(int index) repeated int32 no_sonar_comment = 12;- Specified by:
getNoSonarCommentin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The noSonarComment at the given index.
-
getNonBlankCommentList
repeated int32 non_blank_comment = 13;- Specified by:
getNonBlankCommentListin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Returns:
- A list containing the nonBlankComment.
-
getNonBlankCommentCount
public int getNonBlankCommentCount()repeated int32 non_blank_comment = 13;- Specified by:
getNonBlankCommentCountin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Returns:
- The count of nonBlankComment.
-
getNonBlankComment
public int getNonBlankComment(int index) repeated int32 non_blank_comment = 13;- Specified by:
getNonBlankCommentin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The nonBlankComment at the given index.
-
getCodeLineList
repeated int32 code_line = 14;- Specified by:
getCodeLineListin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Returns:
- A list containing the codeLine.
-
getCodeLineCount
public int getCodeLineCount()repeated int32 code_line = 14;- Specified by:
getCodeLineCountin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Returns:
- The count of codeLine.
-
getCodeLine
public int getCodeLine(int index) repeated int32 code_line = 14;- Specified by:
getCodeLinein interfaceSonarAnalyzer.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:
getCognitiveComplexityin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Returns:
- The cognitiveComplexity.
-
getExecutableLinesList
repeated int32 executable_lines = 16;- Specified by:
getExecutableLinesListin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Returns:
- A list containing the executableLines.
-
getExecutableLinesCount
public int getExecutableLinesCount()repeated int32 executable_lines = 16;- Specified by:
getExecutableLinesCountin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Returns:
- The count of executableLines.
-
getExecutableLines
public int getExecutableLines(int index) repeated int32 executable_lines = 16;- Specified by:
getExecutableLinesin interfaceSonarAnalyzer.MetricsInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The executableLines at the given index.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static SonarAnalyzer.MetricsInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SonarAnalyzer.MetricsInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-