diff --git a/compile_protobuf.sh b/compile_protobuf.sh deleted file mode 100755 index 9e862debefe..00000000000 --- a/compile_protobuf.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash - -# Compiles all the Protocol Buffers files (*.proto) to Java source code. -# Local installation of protobuf compiler is NOT needed. - -# Available versions listed at http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.os72%22%20AND%20a%3A%22protoc-jar%22 -PROTOBUF_VERSION="3.0.0-a3" - -mvn org.apache.maven.plugins:maven-dependency-plugin::copy -Dartifact=com.github.os72:protoc-jar:$PROTOBUF_VERSION -DoutputDirectory=target - -# Usage: compile_protobuf -function compile_protobuf { - INPUT="$1/src/$2/protobuf" - OUTPUT="$1/src/$2/gen-java" - - if [ -d $INPUT ] - then - echo "Compiling [$INPUT] to [$OUTPUT]..." - rm -rf $OUTPUT - mkdir -p $OUTPUT - java -jar target/protoc-jar-$PROTOBUF_VERSION.jar --proto_path=$INPUT --java_out=$OUTPUT $INPUT/*.proto - fi -} - -compile_protobuf "sonar-batch-protocol" "main" -compile_protobuf "sonar-core" "test" -compile_protobuf "sonar-db" "main" -compile_protobuf "sonar-ws" "main" - - - diff --git a/pom.xml b/pom.xml index 7f9a0fbf8e7..de59e81549c 100644 --- a/pom.xml +++ b/pom.xml @@ -65,6 +65,10 @@ 1.7.12 8.0.18 1.7.2 + + 3.0.0-beta-1 + ${settings.localRepository}/com/google/protobuf/protoc/${protobuf.version}/protoc-${protobuf.version}-${os.detected.classifier}.exe + UTF-8 3.2 1.7 @@ -88,6 +92,11 @@ wagon-webdav 1.0-beta-2 + + kr.motd.maven + os-maven-plugin + 1.4.1.Final + @@ -1100,7 +1109,7 @@ com.google.protobuf protobuf-java - 3.0.0-beta-1 + ${protobuf.version} net.jpountz.lz4 @@ -1347,6 +1356,141 @@ + + protobuf-compile + + + src/main/protobuf + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + protobuf-compile + generate-sources + + run + + + + + + + + + + + + + + + + + + + + + com.google.protobuf + protoc + ${protobuf.version} + ${os.detected.classifier} + exe + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + protobuf-compile + generate-sources + + add-source + + + + ${project.build.directory}/generated-sources/protobuf + + + + + + + + + + protobuf-test-compile + + + src/test/protobuf + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + protobuf-test-compile + generate-sources + + run + + + + + + + + + + + + + + + + + + + + + com.google.protobuf + protoc + ${protobuf.version} + ${os.detected.classifier} + exe + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + protobuf-test-compile + generate-test-sources + + add-test-source + + + + ${project.build.directory}/generated-test-sources/protobuf + + + + + + + + + m2e diff --git a/sonar-batch-protocol/pom.xml b/sonar-batch-protocol/pom.xml index abb0b437e04..ef276512cd4 100644 --- a/sonar-batch-protocol/pom.xml +++ b/sonar-batch-protocol/pom.xml @@ -12,10 +12,6 @@ Classes used for communication between batch and server - - src/main/gen-java/**/* - - net.jpountz.lz4 @@ -58,24 +54,6 @@ - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - src/main/gen-java - - - - - org.apache.maven.plugins maven-surefire-plugin @@ -85,4 +63,5 @@ + diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/Constants.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/Constants.java deleted file mode 100644 index 7eb449e1eaa..00000000000 --- a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/Constants.java +++ /dev/null @@ -1,824 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: constants.proto - -package org.sonar.batch.protocol; - -public final class Constants { - private Constants() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - /** - * Protobuf enum {@code Severity} - */ - public enum Severity - implements com.google.protobuf.ProtocolMessageEnum { - /** - * INFO = 0; - */ - INFO(0, 0), - /** - * MINOR = 1; - */ - MINOR(1, 1), - /** - * MAJOR = 2; - */ - MAJOR(2, 2), - /** - * CRITICAL = 3; - */ - CRITICAL(3, 3), - /** - * BLOCKER = 4; - */ - BLOCKER(4, 4), - ; - - /** - * INFO = 0; - */ - public static final int INFO_VALUE = 0; - /** - * MINOR = 1; - */ - public static final int MINOR_VALUE = 1; - /** - * MAJOR = 2; - */ - public static final int MAJOR_VALUE = 2; - /** - * CRITICAL = 3; - */ - public static final int CRITICAL_VALUE = 3; - /** - * BLOCKER = 4; - */ - public static final int BLOCKER_VALUE = 4; - - - public final int getNumber() { - return value; - } - - public static Severity valueOf(int value) { - switch (value) { - case 0: return INFO; - case 1: return MINOR; - case 2: return MAJOR; - case 3: return CRITICAL; - case 4: return BLOCKER; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Severity findValueByNumber(int number) { - return Severity.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.sonar.batch.protocol.Constants.getDescriptor().getEnumTypes().get(0); - } - - private static final Severity[] VALUES = values(); - - public static Severity valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private Severity(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:Severity) - } - - /** - * Protobuf enum {@code ComponentType} - */ - public enum ComponentType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * PROJECT = 0; - */ - PROJECT(0, 0), - /** - * MODULE = 1; - */ - MODULE(1, 1), - /** - * DIRECTORY = 2; - */ - DIRECTORY(2, 2), - /** - * FILE = 3; - */ - FILE(3, 3), - ; - - /** - * PROJECT = 0; - */ - public static final int PROJECT_VALUE = 0; - /** - * MODULE = 1; - */ - public static final int MODULE_VALUE = 1; - /** - * DIRECTORY = 2; - */ - public static final int DIRECTORY_VALUE = 2; - /** - * FILE = 3; - */ - public static final int FILE_VALUE = 3; - - - public final int getNumber() { - return value; - } - - public static ComponentType valueOf(int value) { - switch (value) { - case 0: return PROJECT; - case 1: return MODULE; - case 2: return DIRECTORY; - case 3: return FILE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ComponentType findValueByNumber(int number) { - return ComponentType.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.sonar.batch.protocol.Constants.getDescriptor().getEnumTypes().get(1); - } - - private static final ComponentType[] VALUES = values(); - - public static ComponentType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private ComponentType(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ComponentType) - } - - /** - * Protobuf enum {@code MeasureValueType} - */ - public enum MeasureValueType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * INT = 0; - */ - INT(0, 0), - /** - * LONG = 1; - */ - LONG(1, 1), - /** - * DOUBLE = 2; - */ - DOUBLE(2, 2), - /** - * BOOLEAN = 3; - */ - BOOLEAN(3, 3), - /** - * STRING = 4; - */ - STRING(4, 4), - ; - - /** - * INT = 0; - */ - public static final int INT_VALUE = 0; - /** - * LONG = 1; - */ - public static final int LONG_VALUE = 1; - /** - * DOUBLE = 2; - */ - public static final int DOUBLE_VALUE = 2; - /** - * BOOLEAN = 3; - */ - public static final int BOOLEAN_VALUE = 3; - /** - * STRING = 4; - */ - public static final int STRING_VALUE = 4; - - - public final int getNumber() { - return value; - } - - public static MeasureValueType valueOf(int value) { - switch (value) { - case 0: return INT; - case 1: return LONG; - case 2: return DOUBLE; - case 3: return BOOLEAN; - case 4: return STRING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MeasureValueType findValueByNumber(int number) { - return MeasureValueType.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.sonar.batch.protocol.Constants.getDescriptor().getEnumTypes().get(2); - } - - private static final MeasureValueType[] VALUES = values(); - - public static MeasureValueType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private MeasureValueType(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:MeasureValueType) - } - - /** - * Protobuf enum {@code EventCategory} - * - *
-   * temporary enum during development of computation stack
-   * 
- */ - public enum EventCategory - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ALERT = 0; - */ - ALERT(0, 0), - /** - * PROFILE = 1; - */ - PROFILE(1, 1), - ; - - /** - * ALERT = 0; - */ - public static final int ALERT_VALUE = 0; - /** - * PROFILE = 1; - */ - public static final int PROFILE_VALUE = 1; - - - public final int getNumber() { - return value; - } - - public static EventCategory valueOf(int value) { - switch (value) { - case 0: return ALERT; - case 1: return PROFILE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public EventCategory findValueByNumber(int number) { - return EventCategory.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.sonar.batch.protocol.Constants.getDescriptor().getEnumTypes().get(3); - } - - private static final EventCategory[] VALUES = values(); - - public static EventCategory valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private EventCategory(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:EventCategory) - } - - /** - * Protobuf enum {@code ComponentLinkType} - */ - public enum ComponentLinkType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * HOME = 0; - */ - HOME(0, 0), - /** - * SCM = 1; - */ - SCM(1, 1), - /** - * SCM_DEV = 2; - */ - SCM_DEV(2, 2), - /** - * ISSUE = 3; - */ - ISSUE(3, 3), - /** - * CI = 4; - */ - CI(4, 4), - ; - - /** - * HOME = 0; - */ - public static final int HOME_VALUE = 0; - /** - * SCM = 1; - */ - public static final int SCM_VALUE = 1; - /** - * SCM_DEV = 2; - */ - public static final int SCM_DEV_VALUE = 2; - /** - * ISSUE = 3; - */ - public static final int ISSUE_VALUE = 3; - /** - * CI = 4; - */ - public static final int CI_VALUE = 4; - - - public final int getNumber() { - return value; - } - - public static ComponentLinkType valueOf(int value) { - switch (value) { - case 0: return HOME; - case 1: return SCM; - case 2: return SCM_DEV; - case 3: return ISSUE; - case 4: return CI; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ComponentLinkType findValueByNumber(int number) { - return ComponentLinkType.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.sonar.batch.protocol.Constants.getDescriptor().getEnumTypes().get(4); - } - - private static final ComponentLinkType[] VALUES = values(); - - public static ComponentLinkType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private ComponentLinkType(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:ComponentLinkType) - } - - /** - * Protobuf enum {@code HighlightingType} - */ - public enum HighlightingType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ANNOTATION = 0; - */ - ANNOTATION(0, 0), - /** - * CONSTANT = 1; - */ - CONSTANT(1, 1), - /** - * COMMENT = 2; - */ - COMMENT(2, 2), - /** - * CPP_DOC = 3; - */ - CPP_DOC(3, 3), - /** - * STRUCTURED_COMMENT = 4; - */ - STRUCTURED_COMMENT(4, 4), - /** - * KEYWORD = 5; - */ - KEYWORD(5, 5), - /** - * HIGHLIGHTING_STRING = 6; - */ - HIGHLIGHTING_STRING(6, 6), - /** - * KEYWORD_LIGHT = 7; - */ - KEYWORD_LIGHT(7, 7), - /** - * PREPROCESS_DIRECTIVE = 8; - */ - PREPROCESS_DIRECTIVE(8, 8), - ; - - /** - * ANNOTATION = 0; - */ - public static final int ANNOTATION_VALUE = 0; - /** - * CONSTANT = 1; - */ - public static final int CONSTANT_VALUE = 1; - /** - * COMMENT = 2; - */ - public static final int COMMENT_VALUE = 2; - /** - * CPP_DOC = 3; - */ - public static final int CPP_DOC_VALUE = 3; - /** - * STRUCTURED_COMMENT = 4; - */ - public static final int STRUCTURED_COMMENT_VALUE = 4; - /** - * KEYWORD = 5; - */ - public static final int KEYWORD_VALUE = 5; - /** - * HIGHLIGHTING_STRING = 6; - */ - public static final int HIGHLIGHTING_STRING_VALUE = 6; - /** - * KEYWORD_LIGHT = 7; - */ - public static final int KEYWORD_LIGHT_VALUE = 7; - /** - * PREPROCESS_DIRECTIVE = 8; - */ - public static final int PREPROCESS_DIRECTIVE_VALUE = 8; - - - public final int getNumber() { - return value; - } - - public static HighlightingType valueOf(int value) { - switch (value) { - case 0: return ANNOTATION; - case 1: return CONSTANT; - case 2: return COMMENT; - case 3: return CPP_DOC; - case 4: return STRUCTURED_COMMENT; - case 5: return KEYWORD; - case 6: return HIGHLIGHTING_STRING; - case 7: return KEYWORD_LIGHT; - case 8: return PREPROCESS_DIRECTIVE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HighlightingType findValueByNumber(int number) { - return HighlightingType.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.sonar.batch.protocol.Constants.getDescriptor().getEnumTypes().get(5); - } - - private static final HighlightingType[] VALUES = values(); - - public static HighlightingType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private HighlightingType(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:HighlightingType) - } - - /** - * Protobuf enum {@code TestStatus} - */ - public enum TestStatus - implements com.google.protobuf.ProtocolMessageEnum { - /** - * OK = 1; - */ - OK(0, 1), - /** - * FAILURE = 2; - */ - FAILURE(1, 2), - /** - * ERROR = 3; - */ - ERROR(2, 3), - /** - * SKIPPED = 4; - */ - SKIPPED(3, 4), - ; - - /** - * OK = 1; - */ - public static final int OK_VALUE = 1; - /** - * FAILURE = 2; - */ - public static final int FAILURE_VALUE = 2; - /** - * ERROR = 3; - */ - public static final int ERROR_VALUE = 3; - /** - * SKIPPED = 4; - */ - public static final int SKIPPED_VALUE = 4; - - - public final int getNumber() { - return value; - } - - public static TestStatus valueOf(int value) { - switch (value) { - case 1: return OK; - case 2: return FAILURE; - case 3: return ERROR; - case 4: return SKIPPED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TestStatus findValueByNumber(int number) { - return TestStatus.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.sonar.batch.protocol.Constants.getDescriptor().getEnumTypes().get(6); - } - - private static final TestStatus[] VALUES = values(); - - public static TestStatus valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private TestStatus(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:TestStatus) - } - - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017constants.proto*E\n\010Severity\022\010\n\004INFO\020\000\022" + - "\t\n\005MINOR\020\001\022\t\n\005MAJOR\020\002\022\014\n\010CRITICAL\020\003\022\013\n\007B" + - "LOCKER\020\004*A\n\rComponentType\022\013\n\007PROJECT\020\000\022\n" + - "\n\006MODULE\020\001\022\r\n\tDIRECTORY\020\002\022\010\n\004FILE\020\003*J\n\020M" + - "easureValueType\022\007\n\003INT\020\000\022\010\n\004LONG\020\001\022\n\n\006DO" + - "UBLE\020\002\022\013\n\007BOOLEAN\020\003\022\n\n\006STRING\020\004*\'\n\rEvent" + - "Category\022\t\n\005ALERT\020\000\022\013\n\007PROFILE\020\001*F\n\021Comp" + - "onentLinkType\022\010\n\004HOME\020\000\022\007\n\003SCM\020\001\022\013\n\007SCM_" + - "DEV\020\002\022\t\n\005ISSUE\020\003\022\006\n\002CI\020\004*\265\001\n\020Highlightin" + - "gType\022\016\n\nANNOTATION\020\000\022\014\n\010CONSTANT\020\001\022\013\n\007C", - "OMMENT\020\002\022\013\n\007CPP_DOC\020\003\022\026\n\022STRUCTURED_COMM" + - "ENT\020\004\022\013\n\007KEYWORD\020\005\022\027\n\023HIGHLIGHTING_STRIN" + - "G\020\006\022\021\n\rKEYWORD_LIGHT\020\007\022\030\n\024PREPROCESS_DIR" + - "ECTIVE\020\010*9\n\nTestStatus\022\006\n\002OK\020\001\022\013\n\007FAILUR" + - "E\020\002\022\t\n\005ERROR\020\003\022\013\n\007SKIPPED\020\004B\034\n\030org.sonar" + - ".batch.protocolH\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/input/BatchInput.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/input/BatchInput.java deleted file mode 100644 index 87d2250eb70..00000000000 --- a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/input/BatchInput.java +++ /dev/null @@ -1,2907 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: batch_input.proto - -package org.sonar.batch.protocol.input; - -public final class BatchInput { - private BatchInput() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface ServerIssueOrBuilder extends - // @@protoc_insertion_point(interface_extends:ServerIssue) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string key = 1; - */ - boolean hasKey(); - /** - * optional string key = 1; - */ - java.lang.String getKey(); - /** - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string module_key = 2; - */ - boolean hasModuleKey(); - /** - * optional string module_key = 2; - */ - java.lang.String getModuleKey(); - /** - * optional string module_key = 2; - */ - com.google.protobuf.ByteString - getModuleKeyBytes(); - - /** - * optional string path = 3; - */ - boolean hasPath(); - /** - * optional string path = 3; - */ - java.lang.String getPath(); - /** - * optional string path = 3; - */ - com.google.protobuf.ByteString - getPathBytes(); - - /** - * optional string rule_repository = 4; - */ - boolean hasRuleRepository(); - /** - * optional string rule_repository = 4; - */ - java.lang.String getRuleRepository(); - /** - * optional string rule_repository = 4; - */ - com.google.protobuf.ByteString - getRuleRepositoryBytes(); - - /** - * optional string rule_key = 5; - */ - boolean hasRuleKey(); - /** - * optional string rule_key = 5; - */ - java.lang.String getRuleKey(); - /** - * optional string rule_key = 5; - */ - com.google.protobuf.ByteString - getRuleKeyBytes(); - - /** - * optional int32 line = 6; - */ - boolean hasLine(); - /** - * optional int32 line = 6; - */ - int getLine(); - - /** - * optional string msg = 7; - */ - boolean hasMsg(); - /** - * optional string msg = 7; - */ - java.lang.String getMsg(); - /** - * optional string msg = 7; - */ - com.google.protobuf.ByteString - getMsgBytes(); - - /** - * optional .Severity severity = 8; - */ - boolean hasSeverity(); - /** - * optional .Severity severity = 8; - */ - org.sonar.batch.protocol.Constants.Severity getSeverity(); - - /** - * optional bool manual_severity = 9; - */ - boolean hasManualSeverity(); - /** - * optional bool manual_severity = 9; - */ - boolean getManualSeverity(); - - /** - * optional string resolution = 10; - */ - boolean hasResolution(); - /** - * optional string resolution = 10; - */ - java.lang.String getResolution(); - /** - * optional string resolution = 10; - */ - com.google.protobuf.ByteString - getResolutionBytes(); - - /** - * optional string status = 11; - */ - boolean hasStatus(); - /** - * optional string status = 11; - */ - java.lang.String getStatus(); - /** - * optional string status = 11; - */ - com.google.protobuf.ByteString - getStatusBytes(); - - /** - * optional string checksum = 12; - */ - boolean hasChecksum(); - /** - * optional string checksum = 12; - */ - java.lang.String getChecksum(); - /** - * optional string checksum = 12; - */ - com.google.protobuf.ByteString - getChecksumBytes(); - - /** - * optional string assignee_login = 13; - */ - boolean hasAssigneeLogin(); - /** - * optional string assignee_login = 13; - */ - java.lang.String getAssigneeLogin(); - /** - * optional string assignee_login = 13; - */ - com.google.protobuf.ByteString - getAssigneeLoginBytes(); - - /** - * optional int64 creation_date = 14; - */ - boolean hasCreationDate(); - /** - * optional int64 creation_date = 14; - */ - long getCreationDate(); - } - /** - * Protobuf type {@code ServerIssue} - */ - public static final class ServerIssue extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:ServerIssue) - ServerIssueOrBuilder { - // Use ServerIssue.newBuilder() to construct. - private ServerIssue(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ServerIssue() { - key_ = ""; - moduleKey_ = ""; - path_ = ""; - ruleRepository_ = ""; - ruleKey_ = ""; - line_ = 0; - msg_ = ""; - severity_ = 0; - manualSeverity_ = false; - resolution_ = ""; - status_ = ""; - checksum_ = ""; - assigneeLogin_ = ""; - creationDate_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ServerIssue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - moduleKey_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - path_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - ruleRepository_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - ruleKey_ = bs; - break; - } - case 48: { - bitField0_ |= 0x00000020; - line_ = input.readInt32(); - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - msg_ = bs; - break; - } - case 64: { - int rawValue = input.readEnum(); - org.sonar.batch.protocol.Constants.Severity value = org.sonar.batch.protocol.Constants.Severity.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(8, rawValue); - } else { - bitField0_ |= 0x00000080; - severity_ = rawValue; - } - break; - } - case 72: { - bitField0_ |= 0x00000100; - manualSeverity_ = input.readBool(); - break; - } - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000200; - resolution_ = bs; - break; - } - case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000400; - status_ = bs; - break; - } - case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000800; - checksum_ = bs; - break; - } - case 106: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00001000; - assigneeLogin_ = bs; - break; - } - case 112: { - bitField0_ |= 0x00002000; - creationDate_ = input.readInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.input.BatchInput.ServerIssue.class, org.sonar.batch.protocol.input.BatchInput.ServerIssue.Builder.class); - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MODULE_KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object moduleKey_; - /** - * optional string module_key = 2; - */ - public boolean hasModuleKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string module_key = 2; - */ - public java.lang.String getModuleKey() { - java.lang.Object ref = moduleKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - moduleKey_ = s; - } - return s; - } - } - /** - * optional string module_key = 2; - */ - public com.google.protobuf.ByteString - getModuleKeyBytes() { - java.lang.Object ref = moduleKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - moduleKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATH_FIELD_NUMBER = 3; - private volatile java.lang.Object path_; - /** - * optional string path = 3; - */ - public boolean hasPath() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string path = 3; - */ - public java.lang.String getPath() { - java.lang.Object ref = path_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - path_ = s; - } - return s; - } - } - /** - * optional string path = 3; - */ - public com.google.protobuf.ByteString - getPathBytes() { - java.lang.Object ref = path_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - path_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RULE_REPOSITORY_FIELD_NUMBER = 4; - private volatile java.lang.Object ruleRepository_; - /** - * optional string rule_repository = 4; - */ - public boolean hasRuleRepository() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string rule_repository = 4; - */ - public java.lang.String getRuleRepository() { - java.lang.Object ref = ruleRepository_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleRepository_ = s; - } - return s; - } - } - /** - * optional string rule_repository = 4; - */ - public com.google.protobuf.ByteString - getRuleRepositoryBytes() { - java.lang.Object ref = ruleRepository_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ruleRepository_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RULE_KEY_FIELD_NUMBER = 5; - private volatile java.lang.Object ruleKey_; - /** - * optional string rule_key = 5; - */ - public boolean hasRuleKey() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string rule_key = 5; - */ - public java.lang.String getRuleKey() { - java.lang.Object ref = ruleKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleKey_ = s; - } - return s; - } - } - /** - * optional string rule_key = 5; - */ - public com.google.protobuf.ByteString - getRuleKeyBytes() { - java.lang.Object ref = ruleKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ruleKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LINE_FIELD_NUMBER = 6; - private int line_; - /** - * optional int32 line = 6; - */ - public boolean hasLine() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional int32 line = 6; - */ - public int getLine() { - return line_; - } - - public static final int MSG_FIELD_NUMBER = 7; - private volatile java.lang.Object msg_; - /** - * optional string msg = 7; - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string msg = 7; - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } - } - /** - * optional string msg = 7; - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SEVERITY_FIELD_NUMBER = 8; - private int severity_; - /** - * optional .Severity severity = 8; - */ - public boolean hasSeverity() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional .Severity severity = 8; - */ - public org.sonar.batch.protocol.Constants.Severity getSeverity() { - org.sonar.batch.protocol.Constants.Severity result = org.sonar.batch.protocol.Constants.Severity.valueOf(severity_); - return result == null ? org.sonar.batch.protocol.Constants.Severity.INFO : result; - } - - public static final int MANUAL_SEVERITY_FIELD_NUMBER = 9; - private boolean manualSeverity_; - /** - * optional bool manual_severity = 9; - */ - public boolean hasManualSeverity() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional bool manual_severity = 9; - */ - public boolean getManualSeverity() { - return manualSeverity_; - } - - public static final int RESOLUTION_FIELD_NUMBER = 10; - private volatile java.lang.Object resolution_; - /** - * optional string resolution = 10; - */ - public boolean hasResolution() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional string resolution = 10; - */ - public java.lang.String getResolution() { - java.lang.Object ref = resolution_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - resolution_ = s; - } - return s; - } - } - /** - * optional string resolution = 10; - */ - public com.google.protobuf.ByteString - getResolutionBytes() { - java.lang.Object ref = resolution_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resolution_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 11; - private volatile java.lang.Object status_; - /** - * optional string status = 11; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional string status = 11; - */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - status_ = s; - } - return s; - } - } - /** - * optional string status = 11; - */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHECKSUM_FIELD_NUMBER = 12; - private volatile java.lang.Object checksum_; - /** - * optional string checksum = 12; - */ - public boolean hasChecksum() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional string checksum = 12; - */ - public java.lang.String getChecksum() { - java.lang.Object ref = checksum_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - checksum_ = s; - } - return s; - } - } - /** - * optional string checksum = 12; - */ - public com.google.protobuf.ByteString - getChecksumBytes() { - java.lang.Object ref = checksum_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - checksum_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ASSIGNEE_LOGIN_FIELD_NUMBER = 13; - private volatile java.lang.Object assigneeLogin_; - /** - * optional string assignee_login = 13; - */ - public boolean hasAssigneeLogin() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * optional string assignee_login = 13; - */ - public java.lang.String getAssigneeLogin() { - java.lang.Object ref = assigneeLogin_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - assigneeLogin_ = s; - } - return s; - } - } - /** - * optional string assignee_login = 13; - */ - public com.google.protobuf.ByteString - getAssigneeLoginBytes() { - java.lang.Object ref = assigneeLogin_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assigneeLogin_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATION_DATE_FIELD_NUMBER = 14; - private long creationDate_; - /** - * optional int64 creation_date = 14; - */ - public boolean hasCreationDate() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - /** - * optional int64 creation_date = 14; - */ - public long getCreationDate() { - return creationDate_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getModuleKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getPathBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getRuleRepositoryBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getRuleKeyBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeInt32(6, line_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getMsgBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeEnum(8, severity_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBool(9, manualSeverity_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(10, getResolutionBytes()); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(11, getStatusBytes()); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBytes(12, getChecksumBytes()); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeBytes(13, getAssigneeLoginBytes()); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeInt64(14, creationDate_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getModuleKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getPathBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getRuleRepositoryBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getRuleKeyBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, line_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getMsgBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, severity_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, manualSeverity_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getResolutionBytes()); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getStatusBytes()); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getChecksumBytes()); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(13, getAssigneeLoginBytes()); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(14, creationDate_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.input.BatchInput.ServerIssue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ServerIssue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:ServerIssue) - org.sonar.batch.protocol.input.BatchInput.ServerIssueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.input.BatchInput.ServerIssue.class, org.sonar.batch.protocol.input.BatchInput.ServerIssue.Builder.class); - } - - // Construct using org.sonar.batch.protocol.input.BatchInput.ServerIssue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - moduleKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - path_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - ruleRepository_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - ruleKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - line_ = 0; - bitField0_ = (bitField0_ & ~0x00000020); - msg_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); - severity_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); - manualSeverity_ = false; - bitField0_ = (bitField0_ & ~0x00000100); - resolution_ = ""; - bitField0_ = (bitField0_ & ~0x00000200); - status_ = ""; - bitField0_ = (bitField0_ & ~0x00000400); - checksum_ = ""; - bitField0_ = (bitField0_ & ~0x00000800); - assigneeLogin_ = ""; - bitField0_ = (bitField0_ & ~0x00001000); - creationDate_ = 0L; - bitField0_ = (bitField0_ & ~0x00002000); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.input.BatchInput.internal_static_ServerIssue_descriptor; - } - - public org.sonar.batch.protocol.input.BatchInput.ServerIssue getDefaultInstanceForType() { - return org.sonar.batch.protocol.input.BatchInput.ServerIssue.getDefaultInstance(); - } - - public org.sonar.batch.protocol.input.BatchInput.ServerIssue build() { - org.sonar.batch.protocol.input.BatchInput.ServerIssue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.input.BatchInput.ServerIssue buildPartial() { - org.sonar.batch.protocol.input.BatchInput.ServerIssue result = new org.sonar.batch.protocol.input.BatchInput.ServerIssue(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.moduleKey_ = moduleKey_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.path_ = path_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.ruleRepository_ = ruleRepository_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.ruleKey_ = ruleKey_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.line_ = line_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.msg_ = msg_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.severity_ = severity_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.manualSeverity_ = manualSeverity_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - result.resolution_ = resolution_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } - result.status_ = status_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000800; - } - result.checksum_ = checksum_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00001000; - } - result.assigneeLogin_ = assigneeLogin_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { - to_bitField0_ |= 0x00002000; - } - result.creationDate_ = creationDate_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.input.BatchInput.ServerIssue) { - return mergeFrom((org.sonar.batch.protocol.input.BatchInput.ServerIssue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.input.BatchInput.ServerIssue other) { - if (other == org.sonar.batch.protocol.input.BatchInput.ServerIssue.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasModuleKey()) { - bitField0_ |= 0x00000002; - moduleKey_ = other.moduleKey_; - onChanged(); - } - if (other.hasPath()) { - bitField0_ |= 0x00000004; - path_ = other.path_; - onChanged(); - } - if (other.hasRuleRepository()) { - bitField0_ |= 0x00000008; - ruleRepository_ = other.ruleRepository_; - onChanged(); - } - if (other.hasRuleKey()) { - bitField0_ |= 0x00000010; - ruleKey_ = other.ruleKey_; - onChanged(); - } - if (other.hasLine()) { - setLine(other.getLine()); - } - if (other.hasMsg()) { - bitField0_ |= 0x00000040; - msg_ = other.msg_; - onChanged(); - } - if (other.hasSeverity()) { - setSeverity(other.getSeverity()); - } - if (other.hasManualSeverity()) { - setManualSeverity(other.getManualSeverity()); - } - if (other.hasResolution()) { - bitField0_ |= 0x00000200; - resolution_ = other.resolution_; - onChanged(); - } - if (other.hasStatus()) { - bitField0_ |= 0x00000400; - status_ = other.status_; - onChanged(); - } - if (other.hasChecksum()) { - bitField0_ |= 0x00000800; - checksum_ = other.checksum_; - onChanged(); - } - if (other.hasAssigneeLogin()) { - bitField0_ |= 0x00001000; - assigneeLogin_ = other.assigneeLogin_; - onChanged(); - } - if (other.hasCreationDate()) { - setCreationDate(other.getCreationDate()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.input.BatchInput.ServerIssue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.input.BatchInput.ServerIssue) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object moduleKey_ = ""; - /** - * optional string module_key = 2; - */ - public boolean hasModuleKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string module_key = 2; - */ - public java.lang.String getModuleKey() { - java.lang.Object ref = moduleKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - moduleKey_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string module_key = 2; - */ - public com.google.protobuf.ByteString - getModuleKeyBytes() { - java.lang.Object ref = moduleKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - moduleKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string module_key = 2; - */ - public Builder setModuleKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - moduleKey_ = value; - onChanged(); - return this; - } - /** - * optional string module_key = 2; - */ - public Builder clearModuleKey() { - bitField0_ = (bitField0_ & ~0x00000002); - moduleKey_ = getDefaultInstance().getModuleKey(); - onChanged(); - return this; - } - /** - * optional string module_key = 2; - */ - public Builder setModuleKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - moduleKey_ = value; - onChanged(); - return this; - } - - private java.lang.Object path_ = ""; - /** - * optional string path = 3; - */ - public boolean hasPath() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string path = 3; - */ - public java.lang.String getPath() { - java.lang.Object ref = path_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - path_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string path = 3; - */ - public com.google.protobuf.ByteString - getPathBytes() { - java.lang.Object ref = path_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - path_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string path = 3; - */ - public Builder setPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - path_ = value; - onChanged(); - return this; - } - /** - * optional string path = 3; - */ - public Builder clearPath() { - bitField0_ = (bitField0_ & ~0x00000004); - path_ = getDefaultInstance().getPath(); - onChanged(); - return this; - } - /** - * optional string path = 3; - */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - path_ = value; - onChanged(); - return this; - } - - private java.lang.Object ruleRepository_ = ""; - /** - * optional string rule_repository = 4; - */ - public boolean hasRuleRepository() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string rule_repository = 4; - */ - public java.lang.String getRuleRepository() { - java.lang.Object ref = ruleRepository_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleRepository_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string rule_repository = 4; - */ - public com.google.protobuf.ByteString - getRuleRepositoryBytes() { - java.lang.Object ref = ruleRepository_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ruleRepository_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string rule_repository = 4; - */ - public Builder setRuleRepository( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - ruleRepository_ = value; - onChanged(); - return this; - } - /** - * optional string rule_repository = 4; - */ - public Builder clearRuleRepository() { - bitField0_ = (bitField0_ & ~0x00000008); - ruleRepository_ = getDefaultInstance().getRuleRepository(); - onChanged(); - return this; - } - /** - * optional string rule_repository = 4; - */ - public Builder setRuleRepositoryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - ruleRepository_ = value; - onChanged(); - return this; - } - - private java.lang.Object ruleKey_ = ""; - /** - * optional string rule_key = 5; - */ - public boolean hasRuleKey() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string rule_key = 5; - */ - public java.lang.String getRuleKey() { - java.lang.Object ref = ruleKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleKey_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string rule_key = 5; - */ - public com.google.protobuf.ByteString - getRuleKeyBytes() { - java.lang.Object ref = ruleKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ruleKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string rule_key = 5; - */ - public Builder setRuleKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - ruleKey_ = value; - onChanged(); - return this; - } - /** - * optional string rule_key = 5; - */ - public Builder clearRuleKey() { - bitField0_ = (bitField0_ & ~0x00000010); - ruleKey_ = getDefaultInstance().getRuleKey(); - onChanged(); - return this; - } - /** - * optional string rule_key = 5; - */ - public Builder setRuleKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - ruleKey_ = value; - onChanged(); - return this; - } - - private int line_ ; - /** - * optional int32 line = 6; - */ - public boolean hasLine() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional int32 line = 6; - */ - public int getLine() { - return line_; - } - /** - * optional int32 line = 6; - */ - public Builder setLine(int value) { - bitField0_ |= 0x00000020; - line_ = value; - onChanged(); - return this; - } - /** - * optional int32 line = 6; - */ - public Builder clearLine() { - bitField0_ = (bitField0_ & ~0x00000020); - line_ = 0; - onChanged(); - return this; - } - - private java.lang.Object msg_ = ""; - /** - * optional string msg = 7; - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string msg = 7; - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string msg = 7; - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string msg = 7; - */ - public Builder setMsg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - msg_ = value; - onChanged(); - return this; - } - /** - * optional string msg = 7; - */ - public Builder clearMsg() { - bitField0_ = (bitField0_ & ~0x00000040); - msg_ = getDefaultInstance().getMsg(); - onChanged(); - return this; - } - /** - * optional string msg = 7; - */ - public Builder setMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - msg_ = value; - onChanged(); - return this; - } - - private int severity_ = 0; - /** - * optional .Severity severity = 8; - */ - public boolean hasSeverity() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional .Severity severity = 8; - */ - public org.sonar.batch.protocol.Constants.Severity getSeverity() { - org.sonar.batch.protocol.Constants.Severity result = org.sonar.batch.protocol.Constants.Severity.valueOf(severity_); - return result == null ? org.sonar.batch.protocol.Constants.Severity.INFO : result; - } - /** - * optional .Severity severity = 8; - */ - public Builder setSeverity(org.sonar.batch.protocol.Constants.Severity value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - severity_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .Severity severity = 8; - */ - public Builder clearSeverity() { - bitField0_ = (bitField0_ & ~0x00000080); - severity_ = 0; - onChanged(); - return this; - } - - private boolean manualSeverity_ ; - /** - * optional bool manual_severity = 9; - */ - public boolean hasManualSeverity() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional bool manual_severity = 9; - */ - public boolean getManualSeverity() { - return manualSeverity_; - } - /** - * optional bool manual_severity = 9; - */ - public Builder setManualSeverity(boolean value) { - bitField0_ |= 0x00000100; - manualSeverity_ = value; - onChanged(); - return this; - } - /** - * optional bool manual_severity = 9; - */ - public Builder clearManualSeverity() { - bitField0_ = (bitField0_ & ~0x00000100); - manualSeverity_ = false; - onChanged(); - return this; - } - - private java.lang.Object resolution_ = ""; - /** - * optional string resolution = 10; - */ - public boolean hasResolution() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional string resolution = 10; - */ - public java.lang.String getResolution() { - java.lang.Object ref = resolution_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - resolution_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string resolution = 10; - */ - public com.google.protobuf.ByteString - getResolutionBytes() { - java.lang.Object ref = resolution_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resolution_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string resolution = 10; - */ - public Builder setResolution( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - resolution_ = value; - onChanged(); - return this; - } - /** - * optional string resolution = 10; - */ - public Builder clearResolution() { - bitField0_ = (bitField0_ & ~0x00000200); - resolution_ = getDefaultInstance().getResolution(); - onChanged(); - return this; - } - /** - * optional string resolution = 10; - */ - public Builder setResolutionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - resolution_ = value; - onChanged(); - return this; - } - - private java.lang.Object status_ = ""; - /** - * optional string status = 11; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional string status = 11; - */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - status_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string status = 11; - */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string status = 11; - */ - public Builder setStatus( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - status_ = value; - onChanged(); - return this; - } - /** - * optional string status = 11; - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000400); - status_ = getDefaultInstance().getStatus(); - onChanged(); - return this; - } - /** - * optional string status = 11; - */ - public Builder setStatusBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - status_ = value; - onChanged(); - return this; - } - - private java.lang.Object checksum_ = ""; - /** - * optional string checksum = 12; - */ - public boolean hasChecksum() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional string checksum = 12; - */ - public java.lang.String getChecksum() { - java.lang.Object ref = checksum_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - checksum_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string checksum = 12; - */ - public com.google.protobuf.ByteString - getChecksumBytes() { - java.lang.Object ref = checksum_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - checksum_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string checksum = 12; - */ - public Builder setChecksum( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - checksum_ = value; - onChanged(); - return this; - } - /** - * optional string checksum = 12; - */ - public Builder clearChecksum() { - bitField0_ = (bitField0_ & ~0x00000800); - checksum_ = getDefaultInstance().getChecksum(); - onChanged(); - return this; - } - /** - * optional string checksum = 12; - */ - public Builder setChecksumBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - checksum_ = value; - onChanged(); - return this; - } - - private java.lang.Object assigneeLogin_ = ""; - /** - * optional string assignee_login = 13; - */ - public boolean hasAssigneeLogin() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * optional string assignee_login = 13; - */ - public java.lang.String getAssigneeLogin() { - java.lang.Object ref = assigneeLogin_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - assigneeLogin_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string assignee_login = 13; - */ - public com.google.protobuf.ByteString - getAssigneeLoginBytes() { - java.lang.Object ref = assigneeLogin_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assigneeLogin_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string assignee_login = 13; - */ - public Builder setAssigneeLogin( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; - assigneeLogin_ = value; - onChanged(); - return this; - } - /** - * optional string assignee_login = 13; - */ - public Builder clearAssigneeLogin() { - bitField0_ = (bitField0_ & ~0x00001000); - assigneeLogin_ = getDefaultInstance().getAssigneeLogin(); - onChanged(); - return this; - } - /** - * optional string assignee_login = 13; - */ - public Builder setAssigneeLoginBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; - assigneeLogin_ = value; - onChanged(); - return this; - } - - private long creationDate_ ; - /** - * optional int64 creation_date = 14; - */ - public boolean hasCreationDate() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - /** - * optional int64 creation_date = 14; - */ - public long getCreationDate() { - return creationDate_; - } - /** - * optional int64 creation_date = 14; - */ - public Builder setCreationDate(long value) { - bitField0_ |= 0x00002000; - creationDate_ = value; - onChanged(); - return this; - } - /** - * optional int64 creation_date = 14; - */ - public Builder clearCreationDate() { - bitField0_ = (bitField0_ & ~0x00002000); - creationDate_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:ServerIssue) - } - - // @@protoc_insertion_point(class_scope:ServerIssue) - private static final org.sonar.batch.protocol.input.BatchInput.ServerIssue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.input.BatchInput.ServerIssue(); - } - - public static org.sonar.batch.protocol.input.BatchInput.ServerIssue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ServerIssue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ServerIssue(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.input.BatchInput.ServerIssue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UserOrBuilder extends - // @@protoc_insertion_point(interface_extends:User) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string login = 1; - */ - boolean hasLogin(); - /** - * optional string login = 1; - */ - java.lang.String getLogin(); - /** - * optional string login = 1; - */ - com.google.protobuf.ByteString - getLoginBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - * Protobuf type {@code User} - */ - public static final class User extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:User) - UserOrBuilder { - // Use User.newBuilder() to construct. - private User(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private User() { - login_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private User( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - login_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.input.BatchInput.internal_static_User_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.input.BatchInput.internal_static_User_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.input.BatchInput.User.class, org.sonar.batch.protocol.input.BatchInput.User.Builder.class); - } - - private int bitField0_; - public static final int LOGIN_FIELD_NUMBER = 1; - private volatile java.lang.Object login_; - /** - * optional string login = 1; - */ - public boolean hasLogin() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string login = 1; - */ - public java.lang.String getLogin() { - java.lang.Object ref = login_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - login_ = s; - } - return s; - } - } - /** - * optional string login = 1; - */ - public com.google.protobuf.ByteString - getLoginBytes() { - java.lang.Object ref = login_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - login_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getLoginBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getLoginBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.input.BatchInput.User parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.input.BatchInput.User parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.input.BatchInput.User parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.input.BatchInput.User parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.input.BatchInput.User parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.input.BatchInput.User parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.input.BatchInput.User parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.input.BatchInput.User parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.input.BatchInput.User parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.input.BatchInput.User parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.input.BatchInput.User prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code User} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:User) - org.sonar.batch.protocol.input.BatchInput.UserOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.input.BatchInput.internal_static_User_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.input.BatchInput.internal_static_User_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.input.BatchInput.User.class, org.sonar.batch.protocol.input.BatchInput.User.Builder.class); - } - - // Construct using org.sonar.batch.protocol.input.BatchInput.User.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - login_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.input.BatchInput.internal_static_User_descriptor; - } - - public org.sonar.batch.protocol.input.BatchInput.User getDefaultInstanceForType() { - return org.sonar.batch.protocol.input.BatchInput.User.getDefaultInstance(); - } - - public org.sonar.batch.protocol.input.BatchInput.User build() { - org.sonar.batch.protocol.input.BatchInput.User result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.input.BatchInput.User buildPartial() { - org.sonar.batch.protocol.input.BatchInput.User result = new org.sonar.batch.protocol.input.BatchInput.User(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.login_ = login_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.input.BatchInput.User) { - return mergeFrom((org.sonar.batch.protocol.input.BatchInput.User)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.input.BatchInput.User other) { - if (other == org.sonar.batch.protocol.input.BatchInput.User.getDefaultInstance()) return this; - if (other.hasLogin()) { - bitField0_ |= 0x00000001; - login_ = other.login_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.input.BatchInput.User parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.input.BatchInput.User) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object login_ = ""; - /** - * optional string login = 1; - */ - public boolean hasLogin() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string login = 1; - */ - public java.lang.String getLogin() { - java.lang.Object ref = login_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - login_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string login = 1; - */ - public com.google.protobuf.ByteString - getLoginBytes() { - java.lang.Object ref = login_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - login_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string login = 1; - */ - public Builder setLogin( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - login_ = value; - onChanged(); - return this; - } - /** - * optional string login = 1; - */ - public Builder clearLogin() { - bitField0_ = (bitField0_ & ~0x00000001); - login_ = getDefaultInstance().getLogin(); - onChanged(); - return this; - } - /** - * optional string login = 1; - */ - public Builder setLoginBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - login_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:User) - } - - // @@protoc_insertion_point(class_scope:User) - private static final org.sonar.batch.protocol.input.BatchInput.User DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.input.BatchInput.User(); - } - - public static org.sonar.batch.protocol.input.BatchInput.User getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public User parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new User(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.input.BatchInput.User getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_ServerIssue_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_ServerIssue_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_User_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_User_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\021batch_input.proto\032\017constants.proto\"\235\002\n" + - "\013ServerIssue\022\013\n\003key\030\001 \001(\t\022\022\n\nmodule_key\030" + - "\002 \001(\t\022\014\n\004path\030\003 \001(\t\022\027\n\017rule_repository\030\004" + - " \001(\t\022\020\n\010rule_key\030\005 \001(\t\022\014\n\004line\030\006 \001(\005\022\013\n\003" + - "msg\030\007 \001(\t\022\033\n\010severity\030\010 \001(\0162\t.Severity\022\027" + - "\n\017manual_severity\030\t \001(\010\022\022\n\nresolution\030\n " + - "\001(\t\022\016\n\006status\030\013 \001(\t\022\020\n\010checksum\030\014 \001(\t\022\026\n" + - "\016assignee_login\030\r \001(\t\022\025\n\rcreation_date\030\016" + - " \001(\003\"#\n\004User\022\r\n\005login\030\001 \001(\t\022\014\n\004name\030\002 \001(" + - "\tB\"\n\036org.sonar.batch.protocol.inputH\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.sonar.batch.protocol.Constants.getDescriptor(), - }, assigner); - internal_static_ServerIssue_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_ServerIssue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_ServerIssue_descriptor, - new java.lang.String[] { "Key", "ModuleKey", "Path", "RuleRepository", "RuleKey", "Line", "Msg", "Severity", "ManualSeverity", "Resolution", "Status", "Checksum", "AssigneeLogin", "CreationDate", }); - internal_static_User_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_User_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_User_descriptor, - new java.lang.String[] { "Login", "Name", }); - org.sonar.batch.protocol.Constants.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java b/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java deleted file mode 100644 index deaa30b4aa8..00000000000 --- a/sonar-batch-protocol/src/main/gen-java/org/sonar/batch/protocol/output/BatchReport.java +++ /dev/null @@ -1,18993 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: batch_report.proto - -package org.sonar.batch.protocol.output; - -public final class BatchReport { - private BatchReport() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface MetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:Metadata) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int64 analysis_date = 1; - */ - boolean hasAnalysisDate(); - /** - * optional int64 analysis_date = 1; - */ - long getAnalysisDate(); - - /** - * optional string project_key = 2; - * - *
-     * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
-     * 
- */ - boolean hasProjectKey(); - /** - * optional string project_key = 2; - * - *
-     * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
-     * 
- */ - java.lang.String getProjectKey(); - /** - * optional string project_key = 2; - * - *
-     * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
-     * 
- */ - com.google.protobuf.ByteString - getProjectKeyBytes(); - - /** - * optional string branch = 3; - */ - boolean hasBranch(); - /** - * optional string branch = 3; - */ - java.lang.String getBranch(); - /** - * optional string branch = 3; - */ - com.google.protobuf.ByteString - getBranchBytes(); - - /** - * optional int32 root_component_ref = 4; - */ - boolean hasRootComponentRef(); - /** - * optional int32 root_component_ref = 4; - */ - int getRootComponentRef(); - } - /** - * Protobuf type {@code Metadata} - */ - public static final class Metadata extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Metadata) - MetadataOrBuilder { - // Use Metadata.newBuilder() to construct. - private Metadata(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Metadata() { - analysisDate_ = 0L; - projectKey_ = ""; - branch_ = ""; - rootComponentRef_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Metadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - analysisDate_ = input.readInt64(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - projectKey_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - branch_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - rootComponentRef_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Metadata.class, org.sonar.batch.protocol.output.BatchReport.Metadata.Builder.class); - } - - private int bitField0_; - public static final int ANALYSIS_DATE_FIELD_NUMBER = 1; - private long analysisDate_; - /** - * optional int64 analysis_date = 1; - */ - public boolean hasAnalysisDate() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int64 analysis_date = 1; - */ - public long getAnalysisDate() { - return analysisDate_; - } - - public static final int PROJECT_KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object projectKey_; - /** - * optional string project_key = 2; - * - *
-     * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
-     * 
- */ - public boolean hasProjectKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string project_key = 2; - * - *
-     * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
-     * 
- */ - public java.lang.String getProjectKey() { - java.lang.Object ref = projectKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - projectKey_ = s; - } - return s; - } - } - /** - * optional string project_key = 2; - * - *
-     * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
-     * 
- */ - public com.google.protobuf.ByteString - getProjectKeyBytes() { - java.lang.Object ref = projectKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BRANCH_FIELD_NUMBER = 3; - private volatile java.lang.Object branch_; - /** - * optional string branch = 3; - */ - public boolean hasBranch() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string branch = 3; - */ - public java.lang.String getBranch() { - java.lang.Object ref = branch_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - branch_ = s; - } - return s; - } - } - /** - * optional string branch = 3; - */ - public com.google.protobuf.ByteString - getBranchBytes() { - java.lang.Object ref = branch_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - branch_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROOT_COMPONENT_REF_FIELD_NUMBER = 4; - private int rootComponentRef_; - /** - * optional int32 root_component_ref = 4; - */ - public boolean hasRootComponentRef() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 root_component_ref = 4; - */ - public int getRootComponentRef() { - return rootComponentRef_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, analysisDate_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getProjectKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getBranchBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt32(4, rootComponentRef_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, analysisDate_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getProjectKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getBranchBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, rootComponentRef_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Metadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Metadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Metadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Metadata) - org.sonar.batch.protocol.output.BatchReport.MetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Metadata.class, org.sonar.batch.protocol.output.BatchReport.Metadata.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.Metadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - analysisDate_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - projectKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - branch_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - rootComponentRef_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Metadata_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.Metadata getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.Metadata.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.Metadata build() { - org.sonar.batch.protocol.output.BatchReport.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.Metadata buildPartial() { - org.sonar.batch.protocol.output.BatchReport.Metadata result = new org.sonar.batch.protocol.output.BatchReport.Metadata(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.analysisDate_ = analysisDate_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.projectKey_ = projectKey_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.branch_ = branch_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.rootComponentRef_ = rootComponentRef_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.Metadata) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Metadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Metadata other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Metadata.getDefaultInstance()) return this; - if (other.hasAnalysisDate()) { - setAnalysisDate(other.getAnalysisDate()); - } - if (other.hasProjectKey()) { - bitField0_ |= 0x00000002; - projectKey_ = other.projectKey_; - onChanged(); - } - if (other.hasBranch()) { - bitField0_ |= 0x00000004; - branch_ = other.branch_; - onChanged(); - } - if (other.hasRootComponentRef()) { - setRootComponentRef(other.getRootComponentRef()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.Metadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Metadata) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long analysisDate_ ; - /** - * optional int64 analysis_date = 1; - */ - public boolean hasAnalysisDate() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int64 analysis_date = 1; - */ - public long getAnalysisDate() { - return analysisDate_; - } - /** - * optional int64 analysis_date = 1; - */ - public Builder setAnalysisDate(long value) { - bitField0_ |= 0x00000001; - analysisDate_ = value; - onChanged(); - return this; - } - /** - * optional int64 analysis_date = 1; - */ - public Builder clearAnalysisDate() { - bitField0_ = (bitField0_ & ~0x00000001); - analysisDate_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object projectKey_ = ""; - /** - * optional string project_key = 2; - * - *
-       * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
-       * 
- */ - public boolean hasProjectKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string project_key = 2; - * - *
-       * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
-       * 
- */ - public java.lang.String getProjectKey() { - java.lang.Object ref = projectKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - projectKey_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string project_key = 2; - * - *
-       * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
-       * 
- */ - public com.google.protobuf.ByteString - getProjectKeyBytes() { - java.lang.Object ref = projectKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string project_key = 2; - * - *
-       * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
-       * 
- */ - public Builder setProjectKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - projectKey_ = value; - onChanged(); - return this; - } - /** - * optional string project_key = 2; - * - *
-       * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
-       * 
- */ - public Builder clearProjectKey() { - bitField0_ = (bitField0_ & ~0x00000002); - projectKey_ = getDefaultInstance().getProjectKey(); - onChanged(); - return this; - } - /** - * optional string project_key = 2; - * - *
-       * TODO should we keep this project_key here or not ? Because it's a duplication of Component.key
-       * 
- */ - public Builder setProjectKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - projectKey_ = value; - onChanged(); - return this; - } - - private java.lang.Object branch_ = ""; - /** - * optional string branch = 3; - */ - public boolean hasBranch() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string branch = 3; - */ - public java.lang.String getBranch() { - java.lang.Object ref = branch_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - branch_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string branch = 3; - */ - public com.google.protobuf.ByteString - getBranchBytes() { - java.lang.Object ref = branch_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - branch_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string branch = 3; - */ - public Builder setBranch( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - branch_ = value; - onChanged(); - return this; - } - /** - * optional string branch = 3; - */ - public Builder clearBranch() { - bitField0_ = (bitField0_ & ~0x00000004); - branch_ = getDefaultInstance().getBranch(); - onChanged(); - return this; - } - /** - * optional string branch = 3; - */ - public Builder setBranchBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - branch_ = value; - onChanged(); - return this; - } - - private int rootComponentRef_ ; - /** - * optional int32 root_component_ref = 4; - */ - public boolean hasRootComponentRef() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 root_component_ref = 4; - */ - public int getRootComponentRef() { - return rootComponentRef_; - } - /** - * optional int32 root_component_ref = 4; - */ - public Builder setRootComponentRef(int value) { - bitField0_ |= 0x00000008; - rootComponentRef_ = value; - onChanged(); - return this; - } - /** - * optional int32 root_component_ref = 4; - */ - public Builder clearRootComponentRef() { - bitField0_ = (bitField0_ & ~0x00000008); - rootComponentRef_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:Metadata) - } - - // @@protoc_insertion_point(class_scope:Metadata) - private static final org.sonar.batch.protocol.output.BatchReport.Metadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.Metadata(); - } - - public static org.sonar.batch.protocol.output.BatchReport.Metadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Metadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Metadata(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.Metadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ActiveRuleOrBuilder extends - // @@protoc_insertion_point(interface_extends:ActiveRule) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string rule_repository = 1; - */ - boolean hasRuleRepository(); - /** - * optional string rule_repository = 1; - */ - java.lang.String getRuleRepository(); - /** - * optional string rule_repository = 1; - */ - com.google.protobuf.ByteString - getRuleRepositoryBytes(); - - /** - * optional string rule_key = 2; - */ - boolean hasRuleKey(); - /** - * optional string rule_key = 2; - */ - java.lang.String getRuleKey(); - /** - * optional string rule_key = 2; - */ - com.google.protobuf.ByteString - getRuleKeyBytes(); - - /** - * optional .Severity severity = 3; - */ - boolean hasSeverity(); - /** - * optional .Severity severity = 3; - */ - org.sonar.batch.protocol.Constants.Severity getSeverity(); - - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - java.util.List - getParamList(); - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam getParam(int index); - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - int getParamCount(); - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - java.util.List - getParamOrBuilderList(); - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParamOrBuilder getParamOrBuilder( - int index); - } - /** - * Protobuf type {@code ActiveRule} - */ - public static final class ActiveRule extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:ActiveRule) - ActiveRuleOrBuilder { - // Use ActiveRule.newBuilder() to construct. - private ActiveRule(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ActiveRule() { - ruleRepository_ = ""; - ruleKey_ = ""; - severity_ = 0; - param_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ActiveRule( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - ruleRepository_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - ruleKey_ = bs; - break; - } - case 24: { - int rawValue = input.readEnum(); - org.sonar.batch.protocol.Constants.Severity value = org.sonar.batch.protocol.Constants.Severity.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - severity_ = rawValue; - } - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - param_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - param_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - param_ = java.util.Collections.unmodifiableList(param_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ActiveRule_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ActiveRule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.ActiveRule.class, org.sonar.batch.protocol.output.BatchReport.ActiveRule.Builder.class); - } - - public interface ActiveRuleParamOrBuilder extends - // @@protoc_insertion_point(interface_extends:ActiveRule.ActiveRuleParam) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string key = 1; - */ - boolean hasKey(); - /** - * optional string key = 1; - */ - java.lang.String getKey(); - /** - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string value = 2; - */ - boolean hasValue(); - /** - * optional string value = 2; - */ - java.lang.String getValue(); - /** - * optional string value = 2; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - * Protobuf type {@code ActiveRule.ActiveRuleParam} - * - *
-     * TODO replace by map
-     * 
- */ - public static final class ActiveRuleParam extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:ActiveRule.ActiveRuleParam) - ActiveRuleParamOrBuilder { - // Use ActiveRuleParam.newBuilder() to construct. - private ActiveRuleParam(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ActiveRuleParam() { - key_ = ""; - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ActiveRuleParam( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - value_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ActiveRule_ActiveRuleParam_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ActiveRule_ActiveRuleParam_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.class, org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.Builder.class); - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - * optional string value = 2; - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - value_ = s; - } - return s; - } - } - /** - * optional string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getValueBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getValueBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ActiveRule.ActiveRuleParam} - * - *
-       * TODO replace by map
-       * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:ActiveRule.ActiveRuleParam) - org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ActiveRule_ActiveRuleParam_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ActiveRule_ActiveRuleParam_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.class, org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - value_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ActiveRule_ActiveRuleParam_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam build() { - org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam buildPartial() { - org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam result = new org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.value_ = value_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam other) { - if (other == org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasValue()) { - bitField0_ |= 0x00000002; - value_ = other.value_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - * optional string value = 2; - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - value_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string value = 2; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - value_ = value; - onChanged(); - return this; - } - /** - * optional string value = 2; - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000002); - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * optional string value = 2; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - value_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:ActiveRule.ActiveRuleParam) - } - - // @@protoc_insertion_point(class_scope:ActiveRule.ActiveRuleParam) - private static final org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam(); - } - - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ActiveRuleParam parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ActiveRuleParam(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int RULE_REPOSITORY_FIELD_NUMBER = 1; - private volatile java.lang.Object ruleRepository_; - /** - * optional string rule_repository = 1; - */ - public boolean hasRuleRepository() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string rule_repository = 1; - */ - public java.lang.String getRuleRepository() { - java.lang.Object ref = ruleRepository_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleRepository_ = s; - } - return s; - } - } - /** - * optional string rule_repository = 1; - */ - public com.google.protobuf.ByteString - getRuleRepositoryBytes() { - java.lang.Object ref = ruleRepository_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ruleRepository_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RULE_KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object ruleKey_; - /** - * optional string rule_key = 2; - */ - public boolean hasRuleKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string rule_key = 2; - */ - public java.lang.String getRuleKey() { - java.lang.Object ref = ruleKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleKey_ = s; - } - return s; - } - } - /** - * optional string rule_key = 2; - */ - public com.google.protobuf.ByteString - getRuleKeyBytes() { - java.lang.Object ref = ruleKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ruleKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SEVERITY_FIELD_NUMBER = 3; - private int severity_; - /** - * optional .Severity severity = 3; - */ - public boolean hasSeverity() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .Severity severity = 3; - */ - public org.sonar.batch.protocol.Constants.Severity getSeverity() { - org.sonar.batch.protocol.Constants.Severity result = org.sonar.batch.protocol.Constants.Severity.valueOf(severity_); - return result == null ? org.sonar.batch.protocol.Constants.Severity.INFO : result; - } - - public static final int PARAM_FIELD_NUMBER = 4; - private java.util.List param_; - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public java.util.List getParamList() { - return param_; - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public java.util.List - getParamOrBuilderList() { - return param_; - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public int getParamCount() { - return param_.size(); - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam getParam(int index) { - return param_.get(index); - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParamOrBuilder getParamOrBuilder( - int index) { - return param_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getRuleRepositoryBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getRuleKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, severity_); - } - for (int i = 0; i < param_.size(); i++) { - output.writeMessage(4, param_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getRuleRepositoryBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getRuleKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, severity_); - } - for (int i = 0; i < param_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, param_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.ActiveRule prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ActiveRule} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:ActiveRule) - org.sonar.batch.protocol.output.BatchReport.ActiveRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ActiveRule_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ActiveRule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.ActiveRule.class, org.sonar.batch.protocol.output.BatchReport.ActiveRule.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.ActiveRule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getParamFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - ruleRepository_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - ruleKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - severity_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - if (paramBuilder_ == null) { - param_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - paramBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ActiveRule_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.ActiveRule getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.ActiveRule.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.ActiveRule build() { - org.sonar.batch.protocol.output.BatchReport.ActiveRule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.ActiveRule buildPartial() { - org.sonar.batch.protocol.output.BatchReport.ActiveRule result = new org.sonar.batch.protocol.output.BatchReport.ActiveRule(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.ruleRepository_ = ruleRepository_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.ruleKey_ = ruleKey_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.severity_ = severity_; - if (paramBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { - param_ = java.util.Collections.unmodifiableList(param_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.param_ = param_; - } else { - result.param_ = paramBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.ActiveRule) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.ActiveRule)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.ActiveRule other) { - if (other == org.sonar.batch.protocol.output.BatchReport.ActiveRule.getDefaultInstance()) return this; - if (other.hasRuleRepository()) { - bitField0_ |= 0x00000001; - ruleRepository_ = other.ruleRepository_; - onChanged(); - } - if (other.hasRuleKey()) { - bitField0_ |= 0x00000002; - ruleKey_ = other.ruleKey_; - onChanged(); - } - if (other.hasSeverity()) { - setSeverity(other.getSeverity()); - } - if (paramBuilder_ == null) { - if (!other.param_.isEmpty()) { - if (param_.isEmpty()) { - param_ = other.param_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureParamIsMutable(); - param_.addAll(other.param_); - } - onChanged(); - } - } else { - if (!other.param_.isEmpty()) { - if (paramBuilder_.isEmpty()) { - paramBuilder_.dispose(); - paramBuilder_ = null; - param_ = other.param_; - bitField0_ = (bitField0_ & ~0x00000008); - paramBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getParamFieldBuilder() : null; - } else { - paramBuilder_.addAllMessages(other.param_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.ActiveRule parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.ActiveRule) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object ruleRepository_ = ""; - /** - * optional string rule_repository = 1; - */ - public boolean hasRuleRepository() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string rule_repository = 1; - */ - public java.lang.String getRuleRepository() { - java.lang.Object ref = ruleRepository_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleRepository_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string rule_repository = 1; - */ - public com.google.protobuf.ByteString - getRuleRepositoryBytes() { - java.lang.Object ref = ruleRepository_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ruleRepository_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string rule_repository = 1; - */ - public Builder setRuleRepository( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - ruleRepository_ = value; - onChanged(); - return this; - } - /** - * optional string rule_repository = 1; - */ - public Builder clearRuleRepository() { - bitField0_ = (bitField0_ & ~0x00000001); - ruleRepository_ = getDefaultInstance().getRuleRepository(); - onChanged(); - return this; - } - /** - * optional string rule_repository = 1; - */ - public Builder setRuleRepositoryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - ruleRepository_ = value; - onChanged(); - return this; - } - - private java.lang.Object ruleKey_ = ""; - /** - * optional string rule_key = 2; - */ - public boolean hasRuleKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string rule_key = 2; - */ - public java.lang.String getRuleKey() { - java.lang.Object ref = ruleKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleKey_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string rule_key = 2; - */ - public com.google.protobuf.ByteString - getRuleKeyBytes() { - java.lang.Object ref = ruleKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ruleKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string rule_key = 2; - */ - public Builder setRuleKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - ruleKey_ = value; - onChanged(); - return this; - } - /** - * optional string rule_key = 2; - */ - public Builder clearRuleKey() { - bitField0_ = (bitField0_ & ~0x00000002); - ruleKey_ = getDefaultInstance().getRuleKey(); - onChanged(); - return this; - } - /** - * optional string rule_key = 2; - */ - public Builder setRuleKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - ruleKey_ = value; - onChanged(); - return this; - } - - private int severity_ = 0; - /** - * optional .Severity severity = 3; - */ - public boolean hasSeverity() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .Severity severity = 3; - */ - public org.sonar.batch.protocol.Constants.Severity getSeverity() { - org.sonar.batch.protocol.Constants.Severity result = org.sonar.batch.protocol.Constants.Severity.valueOf(severity_); - return result == null ? org.sonar.batch.protocol.Constants.Severity.INFO : result; - } - /** - * optional .Severity severity = 3; - */ - public Builder setSeverity(org.sonar.batch.protocol.Constants.Severity value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - severity_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .Severity severity = 3; - */ - public Builder clearSeverity() { - bitField0_ = (bitField0_ & ~0x00000004); - severity_ = 0; - onChanged(); - return this; - } - - private java.util.List param_ = - java.util.Collections.emptyList(); - private void ensureParamIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - param_ = new java.util.ArrayList(param_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam, org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.Builder, org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParamOrBuilder> paramBuilder_; - - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public java.util.List getParamList() { - if (paramBuilder_ == null) { - return java.util.Collections.unmodifiableList(param_); - } else { - return paramBuilder_.getMessageList(); - } - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public int getParamCount() { - if (paramBuilder_ == null) { - return param_.size(); - } else { - return paramBuilder_.getCount(); - } - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam getParam(int index) { - if (paramBuilder_ == null) { - return param_.get(index); - } else { - return paramBuilder_.getMessage(index); - } - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public Builder setParam( - int index, org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam value) { - if (paramBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParamIsMutable(); - param_.set(index, value); - onChanged(); - } else { - paramBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public Builder setParam( - int index, org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.Builder builderForValue) { - if (paramBuilder_ == null) { - ensureParamIsMutable(); - param_.set(index, builderForValue.build()); - onChanged(); - } else { - paramBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public Builder addParam(org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam value) { - if (paramBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParamIsMutable(); - param_.add(value); - onChanged(); - } else { - paramBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public Builder addParam( - int index, org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam value) { - if (paramBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParamIsMutable(); - param_.add(index, value); - onChanged(); - } else { - paramBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public Builder addParam( - org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.Builder builderForValue) { - if (paramBuilder_ == null) { - ensureParamIsMutable(); - param_.add(builderForValue.build()); - onChanged(); - } else { - paramBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public Builder addParam( - int index, org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.Builder builderForValue) { - if (paramBuilder_ == null) { - ensureParamIsMutable(); - param_.add(index, builderForValue.build()); - onChanged(); - } else { - paramBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public Builder addAllParam( - java.lang.Iterable values) { - if (paramBuilder_ == null) { - ensureParamIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, param_); - onChanged(); - } else { - paramBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public Builder clearParam() { - if (paramBuilder_ == null) { - param_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - paramBuilder_.clear(); - } - return this; - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public Builder removeParam(int index) { - if (paramBuilder_ == null) { - ensureParamIsMutable(); - param_.remove(index); - onChanged(); - } else { - paramBuilder_.remove(index); - } - return this; - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.Builder getParamBuilder( - int index) { - return getParamFieldBuilder().getBuilder(index); - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParamOrBuilder getParamOrBuilder( - int index) { - if (paramBuilder_ == null) { - return param_.get(index); } else { - return paramBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public java.util.List - getParamOrBuilderList() { - if (paramBuilder_ != null) { - return paramBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(param_); - } - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.Builder addParamBuilder() { - return getParamFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.getDefaultInstance()); - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.Builder addParamBuilder( - int index) { - return getParamFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.getDefaultInstance()); - } - /** - * repeated .ActiveRule.ActiveRuleParam param = 4; - */ - public java.util.List - getParamBuilderList() { - return getParamFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam, org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.Builder, org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParamOrBuilder> - getParamFieldBuilder() { - if (paramBuilder_ == null) { - paramBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam, org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParam.Builder, org.sonar.batch.protocol.output.BatchReport.ActiveRule.ActiveRuleParamOrBuilder>( - param_, - ((bitField0_ & 0x00000008) == 0x00000008), - getParentForChildren(), - isClean()); - param_ = null; - } - return paramBuilder_; - } - - // @@protoc_insertion_point(builder_scope:ActiveRule) - } - - // @@protoc_insertion_point(class_scope:ActiveRule) - private static final org.sonar.batch.protocol.output.BatchReport.ActiveRule DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.ActiveRule(); - } - - public static org.sonar.batch.protocol.output.BatchReport.ActiveRule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ActiveRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ActiveRule(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.ActiveRule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ComponentLinkOrBuilder extends - // @@protoc_insertion_point(interface_extends:ComponentLink) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .ComponentLinkType type = 1; - */ - boolean hasType(); - /** - * optional .ComponentLinkType type = 1; - */ - org.sonar.batch.protocol.Constants.ComponentLinkType getType(); - - /** - * optional string href = 2; - */ - boolean hasHref(); - /** - * optional string href = 2; - */ - java.lang.String getHref(); - /** - * optional string href = 2; - */ - com.google.protobuf.ByteString - getHrefBytes(); - } - /** - * Protobuf type {@code ComponentLink} - */ - public static final class ComponentLink extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:ComponentLink) - ComponentLinkOrBuilder { - // Use ComponentLink.newBuilder() to construct. - private ComponentLink(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ComponentLink() { - type_ = 0; - href_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ComponentLink( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - org.sonar.batch.protocol.Constants.ComponentLinkType value = org.sonar.batch.protocol.Constants.ComponentLinkType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - type_ = rawValue; - } - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - href_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.ComponentLink.class, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder.class); - } - - private int bitField0_; - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - * optional .ComponentLinkType type = 1; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .ComponentLinkType type = 1; - */ - public org.sonar.batch.protocol.Constants.ComponentLinkType getType() { - org.sonar.batch.protocol.Constants.ComponentLinkType result = org.sonar.batch.protocol.Constants.ComponentLinkType.valueOf(type_); - return result == null ? org.sonar.batch.protocol.Constants.ComponentLinkType.HOME : result; - } - - public static final int HREF_FIELD_NUMBER = 2; - private volatile java.lang.Object href_; - /** - * optional string href = 2; - */ - public boolean hasHref() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string href = 2; - */ - public java.lang.String getHref() { - java.lang.Object ref = href_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - href_ = s; - } - return s; - } - } - /** - * optional string href = 2; - */ - public com.google.protobuf.ByteString - getHrefBytes() { - java.lang.Object ref = href_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - href_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, type_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getHrefBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getHrefBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.ComponentLink prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code ComponentLink} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:ComponentLink) - org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.ComponentLink.class, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.ComponentLink.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - type_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - href_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_ComponentLink_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.ComponentLink getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.ComponentLink build() { - org.sonar.batch.protocol.output.BatchReport.ComponentLink result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.ComponentLink buildPartial() { - org.sonar.batch.protocol.output.BatchReport.ComponentLink result = new org.sonar.batch.protocol.output.BatchReport.ComponentLink(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.type_ = type_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.href_ = href_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.ComponentLink) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.ComponentLink)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.ComponentLink other) { - if (other == org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()) return this; - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasHref()) { - bitField0_ |= 0x00000002; - href_ = other.href_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.ComponentLink parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.ComponentLink) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int type_ = 0; - /** - * optional .ComponentLinkType type = 1; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .ComponentLinkType type = 1; - */ - public org.sonar.batch.protocol.Constants.ComponentLinkType getType() { - org.sonar.batch.protocol.Constants.ComponentLinkType result = org.sonar.batch.protocol.Constants.ComponentLinkType.valueOf(type_); - return result == null ? org.sonar.batch.protocol.Constants.ComponentLinkType.HOME : result; - } - /** - * optional .ComponentLinkType type = 1; - */ - public Builder setType(org.sonar.batch.protocol.Constants.ComponentLinkType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .ComponentLinkType type = 1; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object href_ = ""; - /** - * optional string href = 2; - */ - public boolean hasHref() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string href = 2; - */ - public java.lang.String getHref() { - java.lang.Object ref = href_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - href_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string href = 2; - */ - public com.google.protobuf.ByteString - getHrefBytes() { - java.lang.Object ref = href_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - href_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string href = 2; - */ - public Builder setHref( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - href_ = value; - onChanged(); - return this; - } - /** - * optional string href = 2; - */ - public Builder clearHref() { - bitField0_ = (bitField0_ & ~0x00000002); - href_ = getDefaultInstance().getHref(); - onChanged(); - return this; - } - /** - * optional string href = 2; - */ - public Builder setHrefBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - href_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:ComponentLink) - } - - // @@protoc_insertion_point(class_scope:ComponentLink) - private static final org.sonar.batch.protocol.output.BatchReport.ComponentLink DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.ComponentLink(); - } - - public static org.sonar.batch.protocol.output.BatchReport.ComponentLink getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ComponentLink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ComponentLink(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.ComponentLink getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ComponentOrBuilder extends - // @@protoc_insertion_point(interface_extends:Component) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 ref = 1; - */ - boolean hasRef(); - /** - * optional int32 ref = 1; - */ - int getRef(); - - /** - * optional string path = 2; - */ - boolean hasPath(); - /** - * optional string path = 2; - */ - java.lang.String getPath(); - /** - * optional string path = 2; - */ - com.google.protobuf.ByteString - getPathBytes(); - - /** - * optional string name = 3; - */ - boolean hasName(); - /** - * optional string name = 3; - */ - java.lang.String getName(); - /** - * optional string name = 3; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional .ComponentType type = 4; - */ - boolean hasType(); - /** - * optional .ComponentType type = 4; - */ - org.sonar.batch.protocol.Constants.ComponentType getType(); - - /** - * optional bool is_test = 5; - */ - boolean hasIsTest(); - /** - * optional bool is_test = 5; - */ - boolean getIsTest(); - - /** - * optional string language = 6; - */ - boolean hasLanguage(); - /** - * optional string language = 6; - */ - java.lang.String getLanguage(); - /** - * optional string language = 6; - */ - com.google.protobuf.ByteString - getLanguageBytes(); - - /** - * repeated int32 child_ref = 7 [packed = true]; - */ - java.util.List getChildRefList(); - /** - * repeated int32 child_ref = 7 [packed = true]; - */ - int getChildRefCount(); - /** - * repeated int32 child_ref = 7 [packed = true]; - */ - int getChildRef(int index); - - /** - * repeated .ComponentLink link = 8; - */ - java.util.List - getLinkList(); - /** - * repeated .ComponentLink link = 8; - */ - org.sonar.batch.protocol.output.BatchReport.ComponentLink getLink(int index); - /** - * repeated .ComponentLink link = 8; - */ - int getLinkCount(); - /** - * repeated .ComponentLink link = 8; - */ - java.util.List - getLinkOrBuilderList(); - /** - * repeated .ComponentLink link = 8; - */ - org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinkOrBuilder( - int index); - - /** - * optional string version = 9; - * - *
-     * Only available on PROJECT and MODULE types
-     * 
- */ - boolean hasVersion(); - /** - * optional string version = 9; - * - *
-     * Only available on PROJECT and MODULE types
-     * 
- */ - java.lang.String getVersion(); - /** - * optional string version = 9; - * - *
-     * Only available on PROJECT and MODULE types
-     * 
- */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - * optional string key = 10; - * - *
-     * Only available on PROJECT and MODULE types
-     * TODO rename this property -> batchKey ? moduleKey ?
-     * 
- */ - boolean hasKey(); - /** - * optional string key = 10; - * - *
-     * Only available on PROJECT and MODULE types
-     * TODO rename this property -> batchKey ? moduleKey ?
-     * 
- */ - java.lang.String getKey(); - /** - * optional string key = 10; - * - *
-     * Only available on PROJECT and MODULE types
-     * TODO rename this property -> batchKey ? moduleKey ?
-     * 
- */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional int32 lines = 11; - * - *
-     * Only available on FILE type
-     * 
- */ - boolean hasLines(); - /** - * optional int32 lines = 11; - * - *
-     * Only available on FILE type
-     * 
- */ - int getLines(); - - /** - * optional string description = 12; - * - *
-     * Only available on PROJECT and MODULE types
-     * 
- */ - boolean hasDescription(); - /** - * optional string description = 12; - * - *
-     * Only available on PROJECT and MODULE types
-     * 
- */ - java.lang.String getDescription(); - /** - * optional string description = 12; - * - *
-     * Only available on PROJECT and MODULE types
-     * 
- */ - com.google.protobuf.ByteString - getDescriptionBytes(); - } - /** - * Protobuf type {@code Component} - */ - public static final class Component extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Component) - ComponentOrBuilder { - // Use Component.newBuilder() to construct. - private Component(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Component() { - ref_ = 0; - path_ = ""; - name_ = ""; - type_ = 0; - isTest_ = false; - language_ = ""; - childRef_ = java.util.Collections.emptyList(); - link_ = java.util.Collections.emptyList(); - version_ = ""; - key_ = ""; - lines_ = 0; - description_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Component( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - ref_ = input.readInt32(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - path_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - name_ = bs; - break; - } - case 32: { - int rawValue = input.readEnum(); - org.sonar.batch.protocol.Constants.ComponentType value = org.sonar.batch.protocol.Constants.ComponentType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(4, rawValue); - } else { - bitField0_ |= 0x00000008; - type_ = rawValue; - } - break; - } - case 40: { - bitField0_ |= 0x00000010; - isTest_ = input.readBool(); - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - language_ = bs; - break; - } - case 56: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - childRef_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - childRef_.add(input.readInt32()); - break; - } - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { - childRef_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - while (input.getBytesUntilLimit() > 0) { - childRef_.add(input.readInt32()); - } - input.popLimit(limit); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - link_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - link_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.ComponentLink.PARSER, extensionRegistry)); - break; - } - case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - version_ = bs; - break; - } - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - key_ = bs; - break; - } - case 88: { - bitField0_ |= 0x00000100; - lines_ = input.readInt32(); - break; - } - case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000200; - description_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - childRef_ = java.util.Collections.unmodifiableList(childRef_); - } - if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - link_ = java.util.Collections.unmodifiableList(link_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Component.class, org.sonar.batch.protocol.output.BatchReport.Component.Builder.class); - } - - private int bitField0_; - public static final int REF_FIELD_NUMBER = 1; - private int ref_; - /** - * optional int32 ref = 1; - */ - public boolean hasRef() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 ref = 1; - */ - public int getRef() { - return ref_; - } - - public static final int PATH_FIELD_NUMBER = 2; - private volatile java.lang.Object path_; - /** - * optional string path = 2; - */ - public boolean hasPath() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string path = 2; - */ - public java.lang.String getPath() { - java.lang.Object ref = path_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - path_ = s; - } - return s; - } - } - /** - * optional string path = 2; - */ - public com.google.protobuf.ByteString - getPathBytes() { - java.lang.Object ref = path_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - path_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - * optional string name = 3; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string name = 3; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 4; - private int type_; - /** - * optional .ComponentType type = 4; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .ComponentType type = 4; - */ - public org.sonar.batch.protocol.Constants.ComponentType getType() { - org.sonar.batch.protocol.Constants.ComponentType result = org.sonar.batch.protocol.Constants.ComponentType.valueOf(type_); - return result == null ? org.sonar.batch.protocol.Constants.ComponentType.PROJECT : result; - } - - public static final int IS_TEST_FIELD_NUMBER = 5; - private boolean isTest_; - /** - * optional bool is_test = 5; - */ - public boolean hasIsTest() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional bool is_test = 5; - */ - public boolean getIsTest() { - return isTest_; - } - - public static final int LANGUAGE_FIELD_NUMBER = 6; - private volatile java.lang.Object language_; - /** - * optional string language = 6; - */ - public boolean hasLanguage() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string language = 6; - */ - public java.lang.String getLanguage() { - java.lang.Object ref = language_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - language_ = s; - } - return s; - } - } - /** - * optional string language = 6; - */ - public com.google.protobuf.ByteString - getLanguageBytes() { - java.lang.Object ref = language_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - language_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHILD_REF_FIELD_NUMBER = 7; - private java.util.List childRef_; - /** - * repeated int32 child_ref = 7 [packed = true]; - */ - public java.util.List - getChildRefList() { - return childRef_; - } - /** - * repeated int32 child_ref = 7 [packed = true]; - */ - public int getChildRefCount() { - return childRef_.size(); - } - /** - * repeated int32 child_ref = 7 [packed = true]; - */ - public int getChildRef(int index) { - return childRef_.get(index); - } - private int childRefMemoizedSerializedSize = -1; - - public static final int LINK_FIELD_NUMBER = 8; - private java.util.List link_; - /** - * repeated .ComponentLink link = 8; - */ - public java.util.List getLinkList() { - return link_; - } - /** - * repeated .ComponentLink link = 8; - */ - public java.util.List - getLinkOrBuilderList() { - return link_; - } - /** - * repeated .ComponentLink link = 8; - */ - public int getLinkCount() { - return link_.size(); - } - /** - * repeated .ComponentLink link = 8; - */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLink getLink(int index) { - return link_.get(index); - } - /** - * repeated .ComponentLink link = 8; - */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinkOrBuilder( - int index) { - return link_.get(index); - } - - public static final int VERSION_FIELD_NUMBER = 9; - private volatile java.lang.Object version_; - /** - * optional string version = 9; - * - *
-     * Only available on PROJECT and MODULE types
-     * 
- */ - public boolean hasVersion() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string version = 9; - * - *
-     * Only available on PROJECT and MODULE types
-     * 
- */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - version_ = s; - } - return s; - } - } - /** - * optional string version = 9; - * - *
-     * Only available on PROJECT and MODULE types
-     * 
- */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEY_FIELD_NUMBER = 10; - private volatile java.lang.Object key_; - /** - * optional string key = 10; - * - *
-     * Only available on PROJECT and MODULE types
-     * TODO rename this property -> batchKey ? moduleKey ?
-     * 
- */ - public boolean hasKey() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional string key = 10; - * - *
-     * Only available on PROJECT and MODULE types
-     * TODO rename this property -> batchKey ? moduleKey ?
-     * 
- */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 10; - * - *
-     * Only available on PROJECT and MODULE types
-     * TODO rename this property -> batchKey ? moduleKey ?
-     * 
- */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LINES_FIELD_NUMBER = 11; - private int lines_; - /** - * optional int32 lines = 11; - * - *
-     * Only available on FILE type
-     * 
- */ - public boolean hasLines() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional int32 lines = 11; - * - *
-     * Only available on FILE type
-     * 
- */ - public int getLines() { - return lines_; - } - - public static final int DESCRIPTION_FIELD_NUMBER = 12; - private volatile java.lang.Object description_; - /** - * optional string description = 12; - * - *
-     * Only available on PROJECT and MODULE types
-     * 
- */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional string description = 12; - * - *
-     * Only available on PROJECT and MODULE types
-     * 
- */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } - } - /** - * optional string description = 12; - * - *
-     * Only available on PROJECT and MODULE types
-     * 
- */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, ref_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getPathBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getNameBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeEnum(4, type_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBool(5, isTest_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getLanguageBytes()); - } - if (getChildRefList().size() > 0) { - output.writeRawVarint32(58); - output.writeRawVarint32(childRefMemoizedSerializedSize); - } - for (int i = 0; i < childRef_.size(); i++) { - output.writeInt32NoTag(childRef_.get(i)); - } - for (int i = 0; i < link_.size(); i++) { - output.writeMessage(8, link_.get(i)); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(9, getVersionBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(10, getKeyBytes()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeInt32(11, lines_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(12, getDescriptionBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, ref_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getPathBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getNameBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, type_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, isTest_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getLanguageBytes()); - } - { - int dataSize = 0; - for (int i = 0; i < childRef_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(childRef_.get(i)); - } - size += dataSize; - if (!getChildRefList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - childRefMemoizedSerializedSize = dataSize; - } - for (int i = 0; i < link_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, link_.get(i)); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getVersionBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getKeyBytes()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(11, lines_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getDescriptionBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Component parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Component parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Component parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Component prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Component} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Component) - org.sonar.batch.protocol.output.BatchReport.ComponentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Component.class, org.sonar.batch.protocol.output.BatchReport.Component.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.Component.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getLinkFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - ref_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - path_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - type_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - isTest_ = false; - bitField0_ = (bitField0_ & ~0x00000010); - language_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - childRef_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - if (linkBuilder_ == null) { - link_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - } else { - linkBuilder_.clear(); - } - version_ = ""; - bitField0_ = (bitField0_ & ~0x00000100); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000200); - lines_ = 0; - bitField0_ = (bitField0_ & ~0x00000400); - description_ = ""; - bitField0_ = (bitField0_ & ~0x00000800); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Component_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.Component getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.Component.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.Component build() { - org.sonar.batch.protocol.output.BatchReport.Component result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.Component buildPartial() { - org.sonar.batch.protocol.output.BatchReport.Component result = new org.sonar.batch.protocol.output.BatchReport.Component(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.ref_ = ref_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.path_ = path_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.type_ = type_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.isTest_ = isTest_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.language_ = language_; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - childRef_ = java.util.Collections.unmodifiableList(childRef_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.childRef_ = childRef_; - if (linkBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080)) { - link_ = java.util.Collections.unmodifiableList(link_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.link_ = link_; - } else { - result.link_ = linkBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000040; - } - result.version_ = version_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000080; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000100; - } - result.lines_ = lines_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000200; - } - result.description_ = description_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.Component) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Component)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Component other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Component.getDefaultInstance()) return this; - if (other.hasRef()) { - setRef(other.getRef()); - } - if (other.hasPath()) { - bitField0_ |= 0x00000002; - path_ = other.path_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000004; - name_ = other.name_; - onChanged(); - } - if (other.hasType()) { - setType(other.getType()); - } - if (other.hasIsTest()) { - setIsTest(other.getIsTest()); - } - if (other.hasLanguage()) { - bitField0_ |= 0x00000020; - language_ = other.language_; - onChanged(); - } - if (!other.childRef_.isEmpty()) { - if (childRef_.isEmpty()) { - childRef_ = other.childRef_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureChildRefIsMutable(); - childRef_.addAll(other.childRef_); - } - onChanged(); - } - if (linkBuilder_ == null) { - if (!other.link_.isEmpty()) { - if (link_.isEmpty()) { - link_ = other.link_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureLinkIsMutable(); - link_.addAll(other.link_); - } - onChanged(); - } - } else { - if (!other.link_.isEmpty()) { - if (linkBuilder_.isEmpty()) { - linkBuilder_.dispose(); - linkBuilder_ = null; - link_ = other.link_; - bitField0_ = (bitField0_ & ~0x00000080); - linkBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getLinkFieldBuilder() : null; - } else { - linkBuilder_.addAllMessages(other.link_); - } - } - } - if (other.hasVersion()) { - bitField0_ |= 0x00000100; - version_ = other.version_; - onChanged(); - } - if (other.hasKey()) { - bitField0_ |= 0x00000200; - key_ = other.key_; - onChanged(); - } - if (other.hasLines()) { - setLines(other.getLines()); - } - if (other.hasDescription()) { - bitField0_ |= 0x00000800; - description_ = other.description_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.Component parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Component) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int ref_ ; - /** - * optional int32 ref = 1; - */ - public boolean hasRef() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 ref = 1; - */ - public int getRef() { - return ref_; - } - /** - * optional int32 ref = 1; - */ - public Builder setRef(int value) { - bitField0_ |= 0x00000001; - ref_ = value; - onChanged(); - return this; - } - /** - * optional int32 ref = 1; - */ - public Builder clearRef() { - bitField0_ = (bitField0_ & ~0x00000001); - ref_ = 0; - onChanged(); - return this; - } - - private java.lang.Object path_ = ""; - /** - * optional string path = 2; - */ - public boolean hasPath() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string path = 2; - */ - public java.lang.String getPath() { - java.lang.Object ref = path_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - path_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string path = 2; - */ - public com.google.protobuf.ByteString - getPathBytes() { - java.lang.Object ref = path_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - path_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string path = 2; - */ - public Builder setPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - path_ = value; - onChanged(); - return this; - } - /** - * optional string path = 2; - */ - public Builder clearPath() { - bitField0_ = (bitField0_ & ~0x00000002); - path_ = getDefaultInstance().getPath(); - onChanged(); - return this; - } - /** - * optional string path = 2; - */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - path_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 3; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string name = 3; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 3; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 3; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000004); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 3; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - name_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - * optional .ComponentType type = 4; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .ComponentType type = 4; - */ - public org.sonar.batch.protocol.Constants.ComponentType getType() { - org.sonar.batch.protocol.Constants.ComponentType result = org.sonar.batch.protocol.Constants.ComponentType.valueOf(type_); - return result == null ? org.sonar.batch.protocol.Constants.ComponentType.PROJECT : result; - } - /** - * optional .ComponentType type = 4; - */ - public Builder setType(org.sonar.batch.protocol.Constants.ComponentType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .ComponentType type = 4; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000008); - type_ = 0; - onChanged(); - return this; - } - - private boolean isTest_ ; - /** - * optional bool is_test = 5; - */ - public boolean hasIsTest() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional bool is_test = 5; - */ - public boolean getIsTest() { - return isTest_; - } - /** - * optional bool is_test = 5; - */ - public Builder setIsTest(boolean value) { - bitField0_ |= 0x00000010; - isTest_ = value; - onChanged(); - return this; - } - /** - * optional bool is_test = 5; - */ - public Builder clearIsTest() { - bitField0_ = (bitField0_ & ~0x00000010); - isTest_ = false; - onChanged(); - return this; - } - - private java.lang.Object language_ = ""; - /** - * optional string language = 6; - */ - public boolean hasLanguage() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string language = 6; - */ - public java.lang.String getLanguage() { - java.lang.Object ref = language_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - language_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string language = 6; - */ - public com.google.protobuf.ByteString - getLanguageBytes() { - java.lang.Object ref = language_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - language_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string language = 6; - */ - public Builder setLanguage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - language_ = value; - onChanged(); - return this; - } - /** - * optional string language = 6; - */ - public Builder clearLanguage() { - bitField0_ = (bitField0_ & ~0x00000020); - language_ = getDefaultInstance().getLanguage(); - onChanged(); - return this; - } - /** - * optional string language = 6; - */ - public Builder setLanguageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - language_ = value; - onChanged(); - return this; - } - - private java.util.List childRef_ = java.util.Collections.emptyList(); - private void ensureChildRefIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { - childRef_ = new java.util.ArrayList(childRef_); - bitField0_ |= 0x00000040; - } - } - /** - * repeated int32 child_ref = 7 [packed = true]; - */ - public java.util.List - getChildRefList() { - return java.util.Collections.unmodifiableList(childRef_); - } - /** - * repeated int32 child_ref = 7 [packed = true]; - */ - public int getChildRefCount() { - return childRef_.size(); - } - /** - * repeated int32 child_ref = 7 [packed = true]; - */ - public int getChildRef(int index) { - return childRef_.get(index); - } - /** - * repeated int32 child_ref = 7 [packed = true]; - */ - public Builder setChildRef( - int index, int value) { - ensureChildRefIsMutable(); - childRef_.set(index, value); - onChanged(); - return this; - } - /** - * repeated int32 child_ref = 7 [packed = true]; - */ - public Builder addChildRef(int value) { - ensureChildRefIsMutable(); - childRef_.add(value); - onChanged(); - return this; - } - /** - * repeated int32 child_ref = 7 [packed = true]; - */ - public Builder addAllChildRef( - java.lang.Iterable values) { - ensureChildRefIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, childRef_); - onChanged(); - return this; - } - /** - * repeated int32 child_ref = 7 [packed = true]; - */ - public Builder clearChildRef() { - childRef_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - - private java.util.List link_ = - java.util.Collections.emptyList(); - private void ensureLinkIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { - link_ = new java.util.ArrayList(link_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.ComponentLink, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder, org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> linkBuilder_; - - /** - * repeated .ComponentLink link = 8; - */ - public java.util.List getLinkList() { - if (linkBuilder_ == null) { - return java.util.Collections.unmodifiableList(link_); - } else { - return linkBuilder_.getMessageList(); - } - } - /** - * repeated .ComponentLink link = 8; - */ - public int getLinkCount() { - if (linkBuilder_ == null) { - return link_.size(); - } else { - return linkBuilder_.getCount(); - } - } - /** - * repeated .ComponentLink link = 8; - */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLink getLink(int index) { - if (linkBuilder_ == null) { - return link_.get(index); - } else { - return linkBuilder_.getMessage(index); - } - } - /** - * repeated .ComponentLink link = 8; - */ - public Builder setLink( - int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { - if (linkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinkIsMutable(); - link_.set(index, value); - onChanged(); - } else { - linkBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .ComponentLink link = 8; - */ - public Builder setLink( - int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { - if (linkBuilder_ == null) { - ensureLinkIsMutable(); - link_.set(index, builderForValue.build()); - onChanged(); - } else { - linkBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ComponentLink link = 8; - */ - public Builder addLink(org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { - if (linkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinkIsMutable(); - link_.add(value); - onChanged(); - } else { - linkBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .ComponentLink link = 8; - */ - public Builder addLink( - int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink value) { - if (linkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinkIsMutable(); - link_.add(index, value); - onChanged(); - } else { - linkBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .ComponentLink link = 8; - */ - public Builder addLink( - org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { - if (linkBuilder_ == null) { - ensureLinkIsMutable(); - link_.add(builderForValue.build()); - onChanged(); - } else { - linkBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .ComponentLink link = 8; - */ - public Builder addLink( - int index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder builderForValue) { - if (linkBuilder_ == null) { - ensureLinkIsMutable(); - link_.add(index, builderForValue.build()); - onChanged(); - } else { - linkBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .ComponentLink link = 8; - */ - public Builder addAllLink( - java.lang.Iterable values) { - if (linkBuilder_ == null) { - ensureLinkIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, link_); - onChanged(); - } else { - linkBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .ComponentLink link = 8; - */ - public Builder clearLink() { - if (linkBuilder_ == null) { - link_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - linkBuilder_.clear(); - } - return this; - } - /** - * repeated .ComponentLink link = 8; - */ - public Builder removeLink(int index) { - if (linkBuilder_ == null) { - ensureLinkIsMutable(); - link_.remove(index); - onChanged(); - } else { - linkBuilder_.remove(index); - } - return this; - } - /** - * repeated .ComponentLink link = 8; - */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder getLinkBuilder( - int index) { - return getLinkFieldBuilder().getBuilder(index); - } - /** - * repeated .ComponentLink link = 8; - */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder getLinkOrBuilder( - int index) { - if (linkBuilder_ == null) { - return link_.get(index); } else { - return linkBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .ComponentLink link = 8; - */ - public java.util.List - getLinkOrBuilderList() { - if (linkBuilder_ != null) { - return linkBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(link_); - } - } - /** - * repeated .ComponentLink link = 8; - */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder addLinkBuilder() { - return getLinkFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()); - } - /** - * repeated .ComponentLink link = 8; - */ - public org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder addLinkBuilder( - int index) { - return getLinkFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.ComponentLink.getDefaultInstance()); - } - /** - * repeated .ComponentLink link = 8; - */ - public java.util.List - getLinkBuilderList() { - return getLinkFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.ComponentLink, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder, org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder> - getLinkFieldBuilder() { - if (linkBuilder_ == null) { - linkBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.ComponentLink, org.sonar.batch.protocol.output.BatchReport.ComponentLink.Builder, org.sonar.batch.protocol.output.BatchReport.ComponentLinkOrBuilder>( - link_, - ((bitField0_ & 0x00000080) == 0x00000080), - getParentForChildren(), - isClean()); - link_ = null; - } - return linkBuilder_; - } - - private java.lang.Object version_ = ""; - /** - * optional string version = 9; - * - *
-       * Only available on PROJECT and MODULE types
-       * 
- */ - public boolean hasVersion() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional string version = 9; - * - *
-       * Only available on PROJECT and MODULE types
-       * 
- */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - version_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string version = 9; - * - *
-       * Only available on PROJECT and MODULE types
-       * 
- */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string version = 9; - * - *
-       * Only available on PROJECT and MODULE types
-       * 
- */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - version_ = value; - onChanged(); - return this; - } - /** - * optional string version = 9; - * - *
-       * Only available on PROJECT and MODULE types
-       * 
- */ - public Builder clearVersion() { - bitField0_ = (bitField0_ & ~0x00000100); - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * optional string version = 9; - * - *
-       * Only available on PROJECT and MODULE types
-       * 
- */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - version_ = value; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - * optional string key = 10; - * - *
-       * Only available on PROJECT and MODULE types
-       * TODO rename this property -> batchKey ? moduleKey ?
-       * 
- */ - public boolean hasKey() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional string key = 10; - * - *
-       * Only available on PROJECT and MODULE types
-       * TODO rename this property -> batchKey ? moduleKey ?
-       * 
- */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 10; - * - *
-       * Only available on PROJECT and MODULE types
-       * TODO rename this property -> batchKey ? moduleKey ?
-       * 
- */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 10; - * - *
-       * Only available on PROJECT and MODULE types
-       * TODO rename this property -> batchKey ? moduleKey ?
-       * 
- */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 10; - * - *
-       * Only available on PROJECT and MODULE types
-       * TODO rename this property -> batchKey ? moduleKey ?
-       * 
- */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000200); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 10; - * - *
-       * Only available on PROJECT and MODULE types
-       * TODO rename this property -> batchKey ? moduleKey ?
-       * 
- */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - key_ = value; - onChanged(); - return this; - } - - private int lines_ ; - /** - * optional int32 lines = 11; - * - *
-       * Only available on FILE type
-       * 
- */ - public boolean hasLines() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional int32 lines = 11; - * - *
-       * Only available on FILE type
-       * 
- */ - public int getLines() { - return lines_; - } - /** - * optional int32 lines = 11; - * - *
-       * Only available on FILE type
-       * 
- */ - public Builder setLines(int value) { - bitField0_ |= 0x00000400; - lines_ = value; - onChanged(); - return this; - } - /** - * optional int32 lines = 11; - * - *
-       * Only available on FILE type
-       * 
- */ - public Builder clearLines() { - bitField0_ = (bitField0_ & ~0x00000400); - lines_ = 0; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * optional string description = 12; - * - *
-       * Only available on PROJECT and MODULE types
-       * 
- */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional string description = 12; - * - *
-       * Only available on PROJECT and MODULE types
-       * 
- */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string description = 12; - * - *
-       * Only available on PROJECT and MODULE types
-       * 
- */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string description = 12; - * - *
-       * Only available on PROJECT and MODULE types
-       * 
- */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - description_ = value; - onChanged(); - return this; - } - /** - * optional string description = 12; - * - *
-       * Only available on PROJECT and MODULE types
-       * 
- */ - public Builder clearDescription() { - bitField0_ = (bitField0_ & ~0x00000800); - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * optional string description = 12; - * - *
-       * Only available on PROJECT and MODULE types
-       * 
- */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - description_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:Component) - } - - // @@protoc_insertion_point(class_scope:Component) - private static final org.sonar.batch.protocol.output.BatchReport.Component DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.Component(); - } - - public static org.sonar.batch.protocol.output.BatchReport.Component getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Component parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Component(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.Component getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MeasureOrBuilder extends - // @@protoc_insertion_point(interface_extends:Measure) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .MeasureValueType value_type = 1; - */ - boolean hasValueType(); - /** - * optional .MeasureValueType value_type = 1; - */ - org.sonar.batch.protocol.Constants.MeasureValueType getValueType(); - - /** - * optional bool boolean_value = 2; - * - *
-     * all values may be unset for "new_xxx" measures (only variations are populated)
-     * 
- */ - boolean hasBooleanValue(); - /** - * optional bool boolean_value = 2; - * - *
-     * all values may be unset for "new_xxx" measures (only variations are populated)
-     * 
- */ - boolean getBooleanValue(); - - /** - * optional int32 int_value = 3; - */ - boolean hasIntValue(); - /** - * optional int32 int_value = 3; - */ - int getIntValue(); - - /** - * optional int64 long_value = 4; - */ - boolean hasLongValue(); - /** - * optional int64 long_value = 4; - */ - long getLongValue(); - - /** - * optional double double_value = 5; - */ - boolean hasDoubleValue(); - /** - * optional double double_value = 5; - */ - double getDoubleValue(); - - /** - * optional string string_value = 6; - */ - boolean hasStringValue(); - /** - * optional string string_value = 6; - */ - java.lang.String getStringValue(); - /** - * optional string string_value = 6; - */ - com.google.protobuf.ByteString - getStringValueBytes(); - - /** - * optional string metric_key = 7; - */ - boolean hasMetricKey(); - /** - * optional string metric_key = 7; - */ - java.lang.String getMetricKey(); - /** - * optional string metric_key = 7; - */ - com.google.protobuf.ByteString - getMetricKeyBytes(); - } - /** - * Protobuf type {@code Measure} - */ - public static final class Measure extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Measure) - MeasureOrBuilder { - // Use Measure.newBuilder() to construct. - private Measure(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Measure() { - valueType_ = 0; - booleanValue_ = false; - intValue_ = 0; - longValue_ = 0L; - doubleValue_ = 0D; - stringValue_ = ""; - metricKey_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Measure( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - org.sonar.batch.protocol.Constants.MeasureValueType value = org.sonar.batch.protocol.Constants.MeasureValueType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(1, rawValue); - } else { - bitField0_ |= 0x00000001; - valueType_ = rawValue; - } - break; - } - case 16: { - bitField0_ |= 0x00000002; - booleanValue_ = input.readBool(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - intValue_ = input.readInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - longValue_ = input.readInt64(); - break; - } - case 41: { - bitField0_ |= 0x00000010; - doubleValue_ = input.readDouble(); - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - stringValue_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - metricKey_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Measure_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Measure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Measure.class, org.sonar.batch.protocol.output.BatchReport.Measure.Builder.class); - } - - private int bitField0_; - public static final int VALUE_TYPE_FIELD_NUMBER = 1; - private int valueType_; - /** - * optional .MeasureValueType value_type = 1; - */ - public boolean hasValueType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .MeasureValueType value_type = 1; - */ - public org.sonar.batch.protocol.Constants.MeasureValueType getValueType() { - org.sonar.batch.protocol.Constants.MeasureValueType result = org.sonar.batch.protocol.Constants.MeasureValueType.valueOf(valueType_); - return result == null ? org.sonar.batch.protocol.Constants.MeasureValueType.INT : result; - } - - public static final int BOOLEAN_VALUE_FIELD_NUMBER = 2; - private boolean booleanValue_; - /** - * optional bool boolean_value = 2; - * - *
-     * all values may be unset for "new_xxx" measures (only variations are populated)
-     * 
- */ - public boolean hasBooleanValue() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bool boolean_value = 2; - * - *
-     * all values may be unset for "new_xxx" measures (only variations are populated)
-     * 
- */ - public boolean getBooleanValue() { - return booleanValue_; - } - - public static final int INT_VALUE_FIELD_NUMBER = 3; - private int intValue_; - /** - * optional int32 int_value = 3; - */ - public boolean hasIntValue() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 int_value = 3; - */ - public int getIntValue() { - return intValue_; - } - - public static final int LONG_VALUE_FIELD_NUMBER = 4; - private long longValue_; - /** - * optional int64 long_value = 4; - */ - public boolean hasLongValue() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int64 long_value = 4; - */ - public long getLongValue() { - return longValue_; - } - - public static final int DOUBLE_VALUE_FIELD_NUMBER = 5; - private double doubleValue_; - /** - * optional double double_value = 5; - */ - public boolean hasDoubleValue() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional double double_value = 5; - */ - public double getDoubleValue() { - return doubleValue_; - } - - public static final int STRING_VALUE_FIELD_NUMBER = 6; - private volatile java.lang.Object stringValue_; - /** - * optional string string_value = 6; - */ - public boolean hasStringValue() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string string_value = 6; - */ - public java.lang.String getStringValue() { - java.lang.Object ref = stringValue_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stringValue_ = s; - } - return s; - } - } - /** - * optional string string_value = 6; - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = stringValue_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stringValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METRIC_KEY_FIELD_NUMBER = 7; - private volatile java.lang.Object metricKey_; - /** - * optional string metric_key = 7; - */ - public boolean hasMetricKey() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string metric_key = 7; - */ - public java.lang.String getMetricKey() { - java.lang.Object ref = metricKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - metricKey_ = s; - } - return s; - } - } - /** - * optional string metric_key = 7; - */ - public com.google.protobuf.ByteString - getMetricKeyBytes() { - java.lang.Object ref = metricKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, valueType_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBool(2, booleanValue_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, intValue_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt64(4, longValue_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeDouble(5, doubleValue_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getStringValueBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getMetricKeyBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, valueType_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, booleanValue_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, intValue_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, longValue_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(5, doubleValue_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getStringValueBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getMetricKeyBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.Measure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Measure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Measure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Measure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Measure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Measure parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Measure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Measure parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Measure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Measure parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Measure prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Measure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Measure) - org.sonar.batch.protocol.output.BatchReport.MeasureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Measure_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Measure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Measure.class, org.sonar.batch.protocol.output.BatchReport.Measure.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.Measure.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - valueType_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - booleanValue_ = false; - bitField0_ = (bitField0_ & ~0x00000002); - intValue_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - longValue_ = 0L; - bitField0_ = (bitField0_ & ~0x00000008); - doubleValue_ = 0D; - bitField0_ = (bitField0_ & ~0x00000010); - stringValue_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - metricKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Measure_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.Measure getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.Measure.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.Measure build() { - org.sonar.batch.protocol.output.BatchReport.Measure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.Measure buildPartial() { - org.sonar.batch.protocol.output.BatchReport.Measure result = new org.sonar.batch.protocol.output.BatchReport.Measure(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.valueType_ = valueType_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.booleanValue_ = booleanValue_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.intValue_ = intValue_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.longValue_ = longValue_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.doubleValue_ = doubleValue_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.stringValue_ = stringValue_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.metricKey_ = metricKey_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.Measure) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Measure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Measure other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Measure.getDefaultInstance()) return this; - if (other.hasValueType()) { - setValueType(other.getValueType()); - } - if (other.hasBooleanValue()) { - setBooleanValue(other.getBooleanValue()); - } - if (other.hasIntValue()) { - setIntValue(other.getIntValue()); - } - if (other.hasLongValue()) { - setLongValue(other.getLongValue()); - } - if (other.hasDoubleValue()) { - setDoubleValue(other.getDoubleValue()); - } - if (other.hasStringValue()) { - bitField0_ |= 0x00000020; - stringValue_ = other.stringValue_; - onChanged(); - } - if (other.hasMetricKey()) { - bitField0_ |= 0x00000040; - metricKey_ = other.metricKey_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.Measure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Measure) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int valueType_ = 0; - /** - * optional .MeasureValueType value_type = 1; - */ - public boolean hasValueType() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .MeasureValueType value_type = 1; - */ - public org.sonar.batch.protocol.Constants.MeasureValueType getValueType() { - org.sonar.batch.protocol.Constants.MeasureValueType result = org.sonar.batch.protocol.Constants.MeasureValueType.valueOf(valueType_); - return result == null ? org.sonar.batch.protocol.Constants.MeasureValueType.INT : result; - } - /** - * optional .MeasureValueType value_type = 1; - */ - public Builder setValueType(org.sonar.batch.protocol.Constants.MeasureValueType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - valueType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .MeasureValueType value_type = 1; - */ - public Builder clearValueType() { - bitField0_ = (bitField0_ & ~0x00000001); - valueType_ = 0; - onChanged(); - return this; - } - - private boolean booleanValue_ ; - /** - * optional bool boolean_value = 2; - * - *
-       * all values may be unset for "new_xxx" measures (only variations are populated)
-       * 
- */ - public boolean hasBooleanValue() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional bool boolean_value = 2; - * - *
-       * all values may be unset for "new_xxx" measures (only variations are populated)
-       * 
- */ - public boolean getBooleanValue() { - return booleanValue_; - } - /** - * optional bool boolean_value = 2; - * - *
-       * all values may be unset for "new_xxx" measures (only variations are populated)
-       * 
- */ - public Builder setBooleanValue(boolean value) { - bitField0_ |= 0x00000002; - booleanValue_ = value; - onChanged(); - return this; - } - /** - * optional bool boolean_value = 2; - * - *
-       * all values may be unset for "new_xxx" measures (only variations are populated)
-       * 
- */ - public Builder clearBooleanValue() { - bitField0_ = (bitField0_ & ~0x00000002); - booleanValue_ = false; - onChanged(); - return this; - } - - private int intValue_ ; - /** - * optional int32 int_value = 3; - */ - public boolean hasIntValue() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 int_value = 3; - */ - public int getIntValue() { - return intValue_; - } - /** - * optional int32 int_value = 3; - */ - public Builder setIntValue(int value) { - bitField0_ |= 0x00000004; - intValue_ = value; - onChanged(); - return this; - } - /** - * optional int32 int_value = 3; - */ - public Builder clearIntValue() { - bitField0_ = (bitField0_ & ~0x00000004); - intValue_ = 0; - onChanged(); - return this; - } - - private long longValue_ ; - /** - * optional int64 long_value = 4; - */ - public boolean hasLongValue() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int64 long_value = 4; - */ - public long getLongValue() { - return longValue_; - } - /** - * optional int64 long_value = 4; - */ - public Builder setLongValue(long value) { - bitField0_ |= 0x00000008; - longValue_ = value; - onChanged(); - return this; - } - /** - * optional int64 long_value = 4; - */ - public Builder clearLongValue() { - bitField0_ = (bitField0_ & ~0x00000008); - longValue_ = 0L; - onChanged(); - return this; - } - - private double doubleValue_ ; - /** - * optional double double_value = 5; - */ - public boolean hasDoubleValue() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional double double_value = 5; - */ - public double getDoubleValue() { - return doubleValue_; - } - /** - * optional double double_value = 5; - */ - public Builder setDoubleValue(double value) { - bitField0_ |= 0x00000010; - doubleValue_ = value; - onChanged(); - return this; - } - /** - * optional double double_value = 5; - */ - public Builder clearDoubleValue() { - bitField0_ = (bitField0_ & ~0x00000010); - doubleValue_ = 0D; - onChanged(); - return this; - } - - private java.lang.Object stringValue_ = ""; - /** - * optional string string_value = 6; - */ - public boolean hasStringValue() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string string_value = 6; - */ - public java.lang.String getStringValue() { - java.lang.Object ref = stringValue_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stringValue_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string string_value = 6; - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = stringValue_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stringValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string string_value = 6; - */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - stringValue_ = value; - onChanged(); - return this; - } - /** - * optional string string_value = 6; - */ - public Builder clearStringValue() { - bitField0_ = (bitField0_ & ~0x00000020); - stringValue_ = getDefaultInstance().getStringValue(); - onChanged(); - return this; - } - /** - * optional string string_value = 6; - */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - stringValue_ = value; - onChanged(); - return this; - } - - private java.lang.Object metricKey_ = ""; - /** - * optional string metric_key = 7; - */ - public boolean hasMetricKey() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string metric_key = 7; - */ - public java.lang.String getMetricKey() { - java.lang.Object ref = metricKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - metricKey_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string metric_key = 7; - */ - public com.google.protobuf.ByteString - getMetricKeyBytes() { - java.lang.Object ref = metricKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string metric_key = 7; - */ - public Builder setMetricKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - metricKey_ = value; - onChanged(); - return this; - } - /** - * optional string metric_key = 7; - */ - public Builder clearMetricKey() { - bitField0_ = (bitField0_ & ~0x00000040); - metricKey_ = getDefaultInstance().getMetricKey(); - onChanged(); - return this; - } - /** - * optional string metric_key = 7; - */ - public Builder setMetricKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - metricKey_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:Measure) - } - - // @@protoc_insertion_point(class_scope:Measure) - private static final org.sonar.batch.protocol.output.BatchReport.Measure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.Measure(); - } - - public static org.sonar.batch.protocol.output.BatchReport.Measure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Measure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Measure(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.Measure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IssueOrBuilder extends - // @@protoc_insertion_point(interface_extends:Issue) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string rule_repository = 1; - */ - boolean hasRuleRepository(); - /** - * optional string rule_repository = 1; - */ - java.lang.String getRuleRepository(); - /** - * optional string rule_repository = 1; - */ - com.google.protobuf.ByteString - getRuleRepositoryBytes(); - - /** - * optional string rule_key = 2; - */ - boolean hasRuleKey(); - /** - * optional string rule_key = 2; - */ - java.lang.String getRuleKey(); - /** - * optional string rule_key = 2; - */ - com.google.protobuf.ByteString - getRuleKeyBytes(); - - /** - * optional int32 line = 3; - * - *
-     * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-     *TODO To be removed. Use first line of text_range instead
-     * 
- */ - boolean hasLine(); - /** - * optional int32 line = 3; - * - *
-     * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-     *TODO To be removed. Use first line of text_range instead
-     * 
- */ - int getLine(); - - /** - * optional string msg = 4; - */ - boolean hasMsg(); - /** - * optional string msg = 4; - */ - java.lang.String getMsg(); - /** - * optional string msg = 4; - */ - com.google.protobuf.ByteString - getMsgBytes(); - - /** - * optional .Severity severity = 5; - */ - boolean hasSeverity(); - /** - * optional .Severity severity = 5; - */ - org.sonar.batch.protocol.Constants.Severity getSeverity(); - - /** - * optional double effort_to_fix = 6; - */ - boolean hasEffortToFix(); - /** - * optional double effort_to_fix = 6; - */ - double getEffortToFix(); - - /** - * optional .TextRange text_range = 7; - * - *
-     * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-     * 
- */ - boolean hasTextRange(); - /** - * optional .TextRange text_range = 7; - * - *
-     * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-     * 
- */ - org.sonar.batch.protocol.output.BatchReport.TextRange getTextRange(); - /** - * optional .TextRange text_range = 7; - * - *
-     * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-     * 
- */ - org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getTextRangeOrBuilder(); - - /** - * repeated .Flow flow = 8; - */ - java.util.List - getFlowList(); - /** - * repeated .Flow flow = 8; - */ - org.sonar.batch.protocol.output.BatchReport.Flow getFlow(int index); - /** - * repeated .Flow flow = 8; - */ - int getFlowCount(); - /** - * repeated .Flow flow = 8; - */ - java.util.List - getFlowOrBuilderList(); - /** - * repeated .Flow flow = 8; - */ - org.sonar.batch.protocol.output.BatchReport.FlowOrBuilder getFlowOrBuilder( - int index); - } - /** - * Protobuf type {@code Issue} - */ - public static final class Issue extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Issue) - IssueOrBuilder { - // Use Issue.newBuilder() to construct. - private Issue(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Issue() { - ruleRepository_ = ""; - ruleKey_ = ""; - line_ = 0; - msg_ = ""; - severity_ = 0; - effortToFix_ = 0D; - flow_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Issue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - ruleRepository_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - ruleKey_ = bs; - break; - } - case 24: { - bitField0_ |= 0x00000004; - line_ = input.readInt32(); - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - msg_ = bs; - break; - } - case 40: { - int rawValue = input.readEnum(); - org.sonar.batch.protocol.Constants.Severity value = org.sonar.batch.protocol.Constants.Severity.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(5, rawValue); - } else { - bitField0_ |= 0x00000010; - severity_ = rawValue; - } - break; - } - case 49: { - bitField0_ |= 0x00000020; - effortToFix_ = input.readDouble(); - break; - } - case 58: { - org.sonar.batch.protocol.output.BatchReport.TextRange.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - subBuilder = textRange_.toBuilder(); - } - textRange_ = input.readMessage(org.sonar.batch.protocol.output.BatchReport.TextRange.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textRange_); - textRange_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - flow_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - flow_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Flow.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { - flow_ = java.util.Collections.unmodifiableList(flow_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Issue.class, org.sonar.batch.protocol.output.BatchReport.Issue.Builder.class); - } - - private int bitField0_; - public static final int RULE_REPOSITORY_FIELD_NUMBER = 1; - private volatile java.lang.Object ruleRepository_; - /** - * optional string rule_repository = 1; - */ - public boolean hasRuleRepository() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string rule_repository = 1; - */ - public java.lang.String getRuleRepository() { - java.lang.Object ref = ruleRepository_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleRepository_ = s; - } - return s; - } - } - /** - * optional string rule_repository = 1; - */ - public com.google.protobuf.ByteString - getRuleRepositoryBytes() { - java.lang.Object ref = ruleRepository_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ruleRepository_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RULE_KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object ruleKey_; - /** - * optional string rule_key = 2; - */ - public boolean hasRuleKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string rule_key = 2; - */ - public java.lang.String getRuleKey() { - java.lang.Object ref = ruleKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleKey_ = s; - } - return s; - } - } - /** - * optional string rule_key = 2; - */ - public com.google.protobuf.ByteString - getRuleKeyBytes() { - java.lang.Object ref = ruleKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ruleKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LINE_FIELD_NUMBER = 3; - private int line_; - /** - * optional int32 line = 3; - * - *
-     * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-     *TODO To be removed. Use first line of text_range instead
-     * 
- */ - public boolean hasLine() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 line = 3; - * - *
-     * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-     *TODO To be removed. Use first line of text_range instead
-     * 
- */ - public int getLine() { - return line_; - } - - public static final int MSG_FIELD_NUMBER = 4; - private volatile java.lang.Object msg_; - /** - * optional string msg = 4; - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string msg = 4; - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } - } - /** - * optional string msg = 4; - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SEVERITY_FIELD_NUMBER = 5; - private int severity_; - /** - * optional .Severity severity = 5; - */ - public boolean hasSeverity() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional .Severity severity = 5; - */ - public org.sonar.batch.protocol.Constants.Severity getSeverity() { - org.sonar.batch.protocol.Constants.Severity result = org.sonar.batch.protocol.Constants.Severity.valueOf(severity_); - return result == null ? org.sonar.batch.protocol.Constants.Severity.INFO : result; - } - - public static final int EFFORT_TO_FIX_FIELD_NUMBER = 6; - private double effortToFix_; - /** - * optional double effort_to_fix = 6; - */ - public boolean hasEffortToFix() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional double effort_to_fix = 6; - */ - public double getEffortToFix() { - return effortToFix_; - } - - public static final int TEXT_RANGE_FIELD_NUMBER = 7; - private org.sonar.batch.protocol.output.BatchReport.TextRange textRange_; - /** - * optional .TextRange text_range = 7; - * - *
-     * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-     * 
- */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional .TextRange text_range = 7; - * - *
-     * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-     * 
- */ - public org.sonar.batch.protocol.output.BatchReport.TextRange getTextRange() { - return textRange_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : textRange_; - } - /** - * optional .TextRange text_range = 7; - * - *
-     * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-     * 
- */ - public org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getTextRangeOrBuilder() { - return textRange_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : textRange_; - } - - public static final int FLOW_FIELD_NUMBER = 8; - private java.util.List flow_; - /** - * repeated .Flow flow = 8; - */ - public java.util.List getFlowList() { - return flow_; - } - /** - * repeated .Flow flow = 8; - */ - public java.util.List - getFlowOrBuilderList() { - return flow_; - } - /** - * repeated .Flow flow = 8; - */ - public int getFlowCount() { - return flow_.size(); - } - /** - * repeated .Flow flow = 8; - */ - public org.sonar.batch.protocol.output.BatchReport.Flow getFlow(int index) { - return flow_.get(index); - } - /** - * repeated .Flow flow = 8; - */ - public org.sonar.batch.protocol.output.BatchReport.FlowOrBuilder getFlowOrBuilder( - int index) { - return flow_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getRuleRepositoryBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getRuleKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, line_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getMsgBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(5, severity_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeDouble(6, effortToFix_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(7, getTextRange()); - } - for (int i = 0; i < flow_.size(); i++) { - output.writeMessage(8, flow_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getRuleRepositoryBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getRuleKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, line_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getMsgBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, severity_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(6, effortToFix_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getTextRange()); - } - for (int i = 0; i < flow_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, flow_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Issue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Issue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Issue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Issue) - org.sonar.batch.protocol.output.BatchReport.IssueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Issue.class, org.sonar.batch.protocol.output.BatchReport.Issue.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.Issue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getTextRangeFieldBuilder(); - getFlowFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - ruleRepository_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - ruleKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - line_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - msg_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - severity_ = 0; - bitField0_ = (bitField0_ & ~0x00000010); - effortToFix_ = 0D; - bitField0_ = (bitField0_ & ~0x00000020); - if (textRangeBuilder_ == null) { - textRange_ = null; - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - if (flowBuilder_ == null) { - flow_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - } else { - flowBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Issue_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.Issue getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.Issue build() { - org.sonar.batch.protocol.output.BatchReport.Issue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.Issue buildPartial() { - org.sonar.batch.protocol.output.BatchReport.Issue result = new org.sonar.batch.protocol.output.BatchReport.Issue(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.ruleRepository_ = ruleRepository_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.ruleKey_ = ruleKey_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.line_ = line_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.msg_ = msg_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.severity_ = severity_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.effortToFix_ = effortToFix_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - if (textRangeBuilder_ == null) { - result.textRange_ = textRange_; - } else { - result.textRange_ = textRangeBuilder_.build(); - } - if (flowBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080)) { - flow_ = java.util.Collections.unmodifiableList(flow_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.flow_ = flow_; - } else { - result.flow_ = flowBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.Issue) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Issue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Issue other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Issue.getDefaultInstance()) return this; - if (other.hasRuleRepository()) { - bitField0_ |= 0x00000001; - ruleRepository_ = other.ruleRepository_; - onChanged(); - } - if (other.hasRuleKey()) { - bitField0_ |= 0x00000002; - ruleKey_ = other.ruleKey_; - onChanged(); - } - if (other.hasLine()) { - setLine(other.getLine()); - } - if (other.hasMsg()) { - bitField0_ |= 0x00000008; - msg_ = other.msg_; - onChanged(); - } - if (other.hasSeverity()) { - setSeverity(other.getSeverity()); - } - if (other.hasEffortToFix()) { - setEffortToFix(other.getEffortToFix()); - } - if (other.hasTextRange()) { - mergeTextRange(other.getTextRange()); - } - if (flowBuilder_ == null) { - if (!other.flow_.isEmpty()) { - if (flow_.isEmpty()) { - flow_ = other.flow_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureFlowIsMutable(); - flow_.addAll(other.flow_); - } - onChanged(); - } - } else { - if (!other.flow_.isEmpty()) { - if (flowBuilder_.isEmpty()) { - flowBuilder_.dispose(); - flowBuilder_ = null; - flow_ = other.flow_; - bitField0_ = (bitField0_ & ~0x00000080); - flowBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getFlowFieldBuilder() : null; - } else { - flowBuilder_.addAllMessages(other.flow_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.Issue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Issue) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object ruleRepository_ = ""; - /** - * optional string rule_repository = 1; - */ - public boolean hasRuleRepository() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string rule_repository = 1; - */ - public java.lang.String getRuleRepository() { - java.lang.Object ref = ruleRepository_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleRepository_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string rule_repository = 1; - */ - public com.google.protobuf.ByteString - getRuleRepositoryBytes() { - java.lang.Object ref = ruleRepository_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ruleRepository_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string rule_repository = 1; - */ - public Builder setRuleRepository( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - ruleRepository_ = value; - onChanged(); - return this; - } - /** - * optional string rule_repository = 1; - */ - public Builder clearRuleRepository() { - bitField0_ = (bitField0_ & ~0x00000001); - ruleRepository_ = getDefaultInstance().getRuleRepository(); - onChanged(); - return this; - } - /** - * optional string rule_repository = 1; - */ - public Builder setRuleRepositoryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - ruleRepository_ = value; - onChanged(); - return this; - } - - private java.lang.Object ruleKey_ = ""; - /** - * optional string rule_key = 2; - */ - public boolean hasRuleKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string rule_key = 2; - */ - public java.lang.String getRuleKey() { - java.lang.Object ref = ruleKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - ruleKey_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string rule_key = 2; - */ - public com.google.protobuf.ByteString - getRuleKeyBytes() { - java.lang.Object ref = ruleKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ruleKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string rule_key = 2; - */ - public Builder setRuleKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - ruleKey_ = value; - onChanged(); - return this; - } - /** - * optional string rule_key = 2; - */ - public Builder clearRuleKey() { - bitField0_ = (bitField0_ & ~0x00000002); - ruleKey_ = getDefaultInstance().getRuleKey(); - onChanged(); - return this; - } - /** - * optional string rule_key = 2; - */ - public Builder setRuleKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - ruleKey_ = value; - onChanged(); - return this; - } - - private int line_ ; - /** - * optional int32 line = 3; - * - *
-       * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-       *TODO To be removed. Use first line of text_range instead
-       * 
- */ - public boolean hasLine() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 line = 3; - * - *
-       * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-       *TODO To be removed. Use first line of text_range instead
-       * 
- */ - public int getLine() { - return line_; - } - /** - * optional int32 line = 3; - * - *
-       * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-       *TODO To be removed. Use first line of text_range instead
-       * 
- */ - public Builder setLine(int value) { - bitField0_ |= 0x00000004; - line_ = value; - onChanged(); - return this; - } - /** - * optional int32 line = 3; - * - *
-       * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-       *TODO To be removed. Use first line of text_range instead
-       * 
- */ - public Builder clearLine() { - bitField0_ = (bitField0_ & ~0x00000004); - line_ = 0; - onChanged(); - return this; - } - - private java.lang.Object msg_ = ""; - /** - * optional string msg = 4; - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string msg = 4; - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string msg = 4; - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string msg = 4; - */ - public Builder setMsg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - msg_ = value; - onChanged(); - return this; - } - /** - * optional string msg = 4; - */ - public Builder clearMsg() { - bitField0_ = (bitField0_ & ~0x00000008); - msg_ = getDefaultInstance().getMsg(); - onChanged(); - return this; - } - /** - * optional string msg = 4; - */ - public Builder setMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - msg_ = value; - onChanged(); - return this; - } - - private int severity_ = 0; - /** - * optional .Severity severity = 5; - */ - public boolean hasSeverity() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional .Severity severity = 5; - */ - public org.sonar.batch.protocol.Constants.Severity getSeverity() { - org.sonar.batch.protocol.Constants.Severity result = org.sonar.batch.protocol.Constants.Severity.valueOf(severity_); - return result == null ? org.sonar.batch.protocol.Constants.Severity.INFO : result; - } - /** - * optional .Severity severity = 5; - */ - public Builder setSeverity(org.sonar.batch.protocol.Constants.Severity value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - severity_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .Severity severity = 5; - */ - public Builder clearSeverity() { - bitField0_ = (bitField0_ & ~0x00000010); - severity_ = 0; - onChanged(); - return this; - } - - private double effortToFix_ ; - /** - * optional double effort_to_fix = 6; - */ - public boolean hasEffortToFix() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional double effort_to_fix = 6; - */ - public double getEffortToFix() { - return effortToFix_; - } - /** - * optional double effort_to_fix = 6; - */ - public Builder setEffortToFix(double value) { - bitField0_ |= 0x00000020; - effortToFix_ = value; - onChanged(); - return this; - } - /** - * optional double effort_to_fix = 6; - */ - public Builder clearEffortToFix() { - bitField0_ = (bitField0_ & ~0x00000020); - effortToFix_ = 0D; - onChanged(); - return this; - } - - private org.sonar.batch.protocol.output.BatchReport.TextRange textRange_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder> textRangeBuilder_; - /** - * optional .TextRange text_range = 7; - * - *
-       * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-       * 
- */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional .TextRange text_range = 7; - * - *
-       * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-       * 
- */ - public org.sonar.batch.protocol.output.BatchReport.TextRange getTextRange() { - if (textRangeBuilder_ == null) { - return textRange_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : textRange_; - } else { - return textRangeBuilder_.getMessage(); - } - } - /** - * optional .TextRange text_range = 7; - * - *
-       * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-       * 
- */ - public Builder setTextRange(org.sonar.batch.protocol.output.BatchReport.TextRange value) { - if (textRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - textRange_ = value; - onChanged(); - } else { - textRangeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - return this; - } - /** - * optional .TextRange text_range = 7; - * - *
-       * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-       * 
- */ - public Builder setTextRange( - org.sonar.batch.protocol.output.BatchReport.TextRange.Builder builderForValue) { - if (textRangeBuilder_ == null) { - textRange_ = builderForValue.build(); - onChanged(); - } else { - textRangeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - return this; - } - /** - * optional .TextRange text_range = 7; - * - *
-       * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-       * 
- */ - public Builder mergeTextRange(org.sonar.batch.protocol.output.BatchReport.TextRange value) { - if (textRangeBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - textRange_ != null && - textRange_ != org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance()) { - textRange_ = - org.sonar.batch.protocol.output.BatchReport.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial(); - } else { - textRange_ = value; - } - onChanged(); - } else { - textRangeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - return this; - } - /** - * optional .TextRange text_range = 7; - * - *
-       * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-       * 
- */ - public Builder clearTextRange() { - if (textRangeBuilder_ == null) { - textRange_ = null; - onChanged(); - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - /** - * optional .TextRange text_range = 7; - * - *
-       * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-       * 
- */ - public org.sonar.batch.protocol.output.BatchReport.TextRange.Builder getTextRangeBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getTextRangeFieldBuilder().getBuilder(); - } - /** - * optional .TextRange text_range = 7; - * - *
-       * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-       * 
- */ - public org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getTextRangeOrBuilder() { - if (textRangeBuilder_ != null) { - return textRangeBuilder_.getMessageOrBuilder(); - } else { - return textRange_ == null ? - org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : textRange_; - } - } - /** - * optional .TextRange text_range = 7; - * - *
-       * Only when issue component is a file. Can also be empty for a file if this is an issue global to the file.
-       * 
- */ - private com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder> - getTextRangeFieldBuilder() { - if (textRangeBuilder_ == null) { - textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder>( - getTextRange(), - getParentForChildren(), - isClean()); - textRange_ = null; - } - return textRangeBuilder_; - } - - private java.util.List flow_ = - java.util.Collections.emptyList(); - private void ensureFlowIsMutable() { - if (!((bitField0_ & 0x00000080) == 0x00000080)) { - flow_ = new java.util.ArrayList(flow_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Flow, org.sonar.batch.protocol.output.BatchReport.Flow.Builder, org.sonar.batch.protocol.output.BatchReport.FlowOrBuilder> flowBuilder_; - - /** - * repeated .Flow flow = 8; - */ - public java.util.List getFlowList() { - if (flowBuilder_ == null) { - return java.util.Collections.unmodifiableList(flow_); - } else { - return flowBuilder_.getMessageList(); - } - } - /** - * repeated .Flow flow = 8; - */ - public int getFlowCount() { - if (flowBuilder_ == null) { - return flow_.size(); - } else { - return flowBuilder_.getCount(); - } - } - /** - * repeated .Flow flow = 8; - */ - public org.sonar.batch.protocol.output.BatchReport.Flow getFlow(int index) { - if (flowBuilder_ == null) { - return flow_.get(index); - } else { - return flowBuilder_.getMessage(index); - } - } - /** - * repeated .Flow flow = 8; - */ - public Builder setFlow( - int index, org.sonar.batch.protocol.output.BatchReport.Flow value) { - if (flowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlowIsMutable(); - flow_.set(index, value); - onChanged(); - } else { - flowBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Flow flow = 8; - */ - public Builder setFlow( - int index, org.sonar.batch.protocol.output.BatchReport.Flow.Builder builderForValue) { - if (flowBuilder_ == null) { - ensureFlowIsMutable(); - flow_.set(index, builderForValue.build()); - onChanged(); - } else { - flowBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Flow flow = 8; - */ - public Builder addFlow(org.sonar.batch.protocol.output.BatchReport.Flow value) { - if (flowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlowIsMutable(); - flow_.add(value); - onChanged(); - } else { - flowBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Flow flow = 8; - */ - public Builder addFlow( - int index, org.sonar.batch.protocol.output.BatchReport.Flow value) { - if (flowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlowIsMutable(); - flow_.add(index, value); - onChanged(); - } else { - flowBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Flow flow = 8; - */ - public Builder addFlow( - org.sonar.batch.protocol.output.BatchReport.Flow.Builder builderForValue) { - if (flowBuilder_ == null) { - ensureFlowIsMutable(); - flow_.add(builderForValue.build()); - onChanged(); - } else { - flowBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Flow flow = 8; - */ - public Builder addFlow( - int index, org.sonar.batch.protocol.output.BatchReport.Flow.Builder builderForValue) { - if (flowBuilder_ == null) { - ensureFlowIsMutable(); - flow_.add(index, builderForValue.build()); - onChanged(); - } else { - flowBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Flow flow = 8; - */ - public Builder addAllFlow( - java.lang.Iterable values) { - if (flowBuilder_ == null) { - ensureFlowIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, flow_); - onChanged(); - } else { - flowBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Flow flow = 8; - */ - public Builder clearFlow() { - if (flowBuilder_ == null) { - flow_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - flowBuilder_.clear(); - } - return this; - } - /** - * repeated .Flow flow = 8; - */ - public Builder removeFlow(int index) { - if (flowBuilder_ == null) { - ensureFlowIsMutable(); - flow_.remove(index); - onChanged(); - } else { - flowBuilder_.remove(index); - } - return this; - } - /** - * repeated .Flow flow = 8; - */ - public org.sonar.batch.protocol.output.BatchReport.Flow.Builder getFlowBuilder( - int index) { - return getFlowFieldBuilder().getBuilder(index); - } - /** - * repeated .Flow flow = 8; - */ - public org.sonar.batch.protocol.output.BatchReport.FlowOrBuilder getFlowOrBuilder( - int index) { - if (flowBuilder_ == null) { - return flow_.get(index); } else { - return flowBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Flow flow = 8; - */ - public java.util.List - getFlowOrBuilderList() { - if (flowBuilder_ != null) { - return flowBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(flow_); - } - } - /** - * repeated .Flow flow = 8; - */ - public org.sonar.batch.protocol.output.BatchReport.Flow.Builder addFlowBuilder() { - return getFlowFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.Flow.getDefaultInstance()); - } - /** - * repeated .Flow flow = 8; - */ - public org.sonar.batch.protocol.output.BatchReport.Flow.Builder addFlowBuilder( - int index) { - return getFlowFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.Flow.getDefaultInstance()); - } - /** - * repeated .Flow flow = 8; - */ - public java.util.List - getFlowBuilderList() { - return getFlowFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Flow, org.sonar.batch.protocol.output.BatchReport.Flow.Builder, org.sonar.batch.protocol.output.BatchReport.FlowOrBuilder> - getFlowFieldBuilder() { - if (flowBuilder_ == null) { - flowBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Flow, org.sonar.batch.protocol.output.BatchReport.Flow.Builder, org.sonar.batch.protocol.output.BatchReport.FlowOrBuilder>( - flow_, - ((bitField0_ & 0x00000080) == 0x00000080), - getParentForChildren(), - isClean()); - flow_ = null; - } - return flowBuilder_; - } - - // @@protoc_insertion_point(builder_scope:Issue) - } - - // @@protoc_insertion_point(class_scope:Issue) - private static final org.sonar.batch.protocol.output.BatchReport.Issue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.Issue(); - } - - public static org.sonar.batch.protocol.output.BatchReport.Issue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Issue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Issue(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.Issue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IssueLocationOrBuilder extends - // @@protoc_insertion_point(interface_extends:IssueLocation) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 component_ref = 1; - */ - boolean hasComponentRef(); - /** - * optional int32 component_ref = 1; - */ - int getComponentRef(); - - /** - * optional .TextRange text_range = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - boolean hasTextRange(); - /** - * optional .TextRange text_range = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - org.sonar.batch.protocol.output.BatchReport.TextRange getTextRange(); - /** - * optional .TextRange text_range = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getTextRangeOrBuilder(); - - /** - * optional string msg = 3; - */ - boolean hasMsg(); - /** - * optional string msg = 3; - */ - java.lang.String getMsg(); - /** - * optional string msg = 3; - */ - com.google.protobuf.ByteString - getMsgBytes(); - } - /** - * Protobuf type {@code IssueLocation} - */ - public static final class IssueLocation extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:IssueLocation) - IssueLocationOrBuilder { - // Use IssueLocation.newBuilder() to construct. - private IssueLocation(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private IssueLocation() { - componentRef_ = 0; - msg_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IssueLocation( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - componentRef_ = input.readInt32(); - break; - } - case 18: { - org.sonar.batch.protocol.output.BatchReport.TextRange.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = textRange_.toBuilder(); - } - textRange_ = input.readMessage(org.sonar.batch.protocol.output.BatchReport.TextRange.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textRange_); - textRange_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - msg_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_IssueLocation_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_IssueLocation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.IssueLocation.class, org.sonar.batch.protocol.output.BatchReport.IssueLocation.Builder.class); - } - - private int bitField0_; - public static final int COMPONENT_REF_FIELD_NUMBER = 1; - private int componentRef_; - /** - * optional int32 component_ref = 1; - */ - public boolean hasComponentRef() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 component_ref = 1; - */ - public int getComponentRef() { - return componentRef_; - } - - public static final int TEXT_RANGE_FIELD_NUMBER = 2; - private org.sonar.batch.protocol.output.BatchReport.TextRange textRange_; - /** - * optional .TextRange text_range = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .TextRange text_range = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - public org.sonar.batch.protocol.output.BatchReport.TextRange getTextRange() { - return textRange_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : textRange_; - } - /** - * optional .TextRange text_range = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - public org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getTextRangeOrBuilder() { - return textRange_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : textRange_; - } - - public static final int MSG_FIELD_NUMBER = 3; - private volatile java.lang.Object msg_; - /** - * optional string msg = 3; - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string msg = 3; - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } - } - /** - * optional string msg = 3; - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, componentRef_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, getTextRange()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getMsgBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, componentRef_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTextRange()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getMsgBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.IssueLocation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.IssueLocation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.IssueLocation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.IssueLocation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.IssueLocation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.IssueLocation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.IssueLocation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.IssueLocation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.IssueLocation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.IssueLocation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.IssueLocation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code IssueLocation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:IssueLocation) - org.sonar.batch.protocol.output.BatchReport.IssueLocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_IssueLocation_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_IssueLocation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.IssueLocation.class, org.sonar.batch.protocol.output.BatchReport.IssueLocation.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.IssueLocation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getTextRangeFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - componentRef_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - if (textRangeBuilder_ == null) { - textRange_ = null; - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - msg_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_IssueLocation_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.IssueLocation getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.IssueLocation.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.IssueLocation build() { - org.sonar.batch.protocol.output.BatchReport.IssueLocation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.IssueLocation buildPartial() { - org.sonar.batch.protocol.output.BatchReport.IssueLocation result = new org.sonar.batch.protocol.output.BatchReport.IssueLocation(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.componentRef_ = componentRef_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (textRangeBuilder_ == null) { - result.textRange_ = textRange_; - } else { - result.textRange_ = textRangeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.msg_ = msg_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.IssueLocation) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.IssueLocation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.IssueLocation other) { - if (other == org.sonar.batch.protocol.output.BatchReport.IssueLocation.getDefaultInstance()) return this; - if (other.hasComponentRef()) { - setComponentRef(other.getComponentRef()); - } - if (other.hasTextRange()) { - mergeTextRange(other.getTextRange()); - } - if (other.hasMsg()) { - bitField0_ |= 0x00000004; - msg_ = other.msg_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.IssueLocation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.IssueLocation) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int componentRef_ ; - /** - * optional int32 component_ref = 1; - */ - public boolean hasComponentRef() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 component_ref = 1; - */ - public int getComponentRef() { - return componentRef_; - } - /** - * optional int32 component_ref = 1; - */ - public Builder setComponentRef(int value) { - bitField0_ |= 0x00000001; - componentRef_ = value; - onChanged(); - return this; - } - /** - * optional int32 component_ref = 1; - */ - public Builder clearComponentRef() { - bitField0_ = (bitField0_ & ~0x00000001); - componentRef_ = 0; - onChanged(); - return this; - } - - private org.sonar.batch.protocol.output.BatchReport.TextRange textRange_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder> textRangeBuilder_; - /** - * optional .TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public org.sonar.batch.protocol.output.BatchReport.TextRange getTextRange() { - if (textRangeBuilder_ == null) { - return textRange_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : textRange_; - } else { - return textRangeBuilder_.getMessage(); - } - } - /** - * optional .TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public Builder setTextRange(org.sonar.batch.protocol.output.BatchReport.TextRange value) { - if (textRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - textRange_ = value; - onChanged(); - } else { - textRangeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public Builder setTextRange( - org.sonar.batch.protocol.output.BatchReport.TextRange.Builder builderForValue) { - if (textRangeBuilder_ == null) { - textRange_ = builderForValue.build(); - onChanged(); - } else { - textRangeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public Builder mergeTextRange(org.sonar.batch.protocol.output.BatchReport.TextRange value) { - if (textRangeBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - textRange_ != null && - textRange_ != org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance()) { - textRange_ = - org.sonar.batch.protocol.output.BatchReport.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial(); - } else { - textRange_ = value; - } - onChanged(); - } else { - textRangeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public Builder clearTextRange() { - if (textRangeBuilder_ == null) { - textRange_ = null; - onChanged(); - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * optional .TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public org.sonar.batch.protocol.output.BatchReport.TextRange.Builder getTextRangeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getTextRangeFieldBuilder().getBuilder(); - } - /** - * optional .TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getTextRangeOrBuilder() { - if (textRangeBuilder_ != null) { - return textRangeBuilder_.getMessageOrBuilder(); - } else { - return textRange_ == null ? - org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : textRange_; - } - } - /** - * optional .TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - private com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder> - getTextRangeFieldBuilder() { - if (textRangeBuilder_ == null) { - textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder>( - getTextRange(), - getParentForChildren(), - isClean()); - textRange_ = null; - } - return textRangeBuilder_; - } - - private java.lang.Object msg_ = ""; - /** - * optional string msg = 3; - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string msg = 3; - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string msg = 3; - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string msg = 3; - */ - public Builder setMsg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - msg_ = value; - onChanged(); - return this; - } - /** - * optional string msg = 3; - */ - public Builder clearMsg() { - bitField0_ = (bitField0_ & ~0x00000004); - msg_ = getDefaultInstance().getMsg(); - onChanged(); - return this; - } - /** - * optional string msg = 3; - */ - public Builder setMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - msg_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:IssueLocation) - } - - // @@protoc_insertion_point(class_scope:IssueLocation) - private static final org.sonar.batch.protocol.output.BatchReport.IssueLocation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.IssueLocation(); - } - - public static org.sonar.batch.protocol.output.BatchReport.IssueLocation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public IssueLocation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new IssueLocation(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.IssueLocation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FlowOrBuilder extends - // @@protoc_insertion_point(interface_extends:Flow) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .IssueLocation location = 1; - */ - java.util.List - getLocationList(); - /** - * repeated .IssueLocation location = 1; - */ - org.sonar.batch.protocol.output.BatchReport.IssueLocation getLocation(int index); - /** - * repeated .IssueLocation location = 1; - */ - int getLocationCount(); - /** - * repeated .IssueLocation location = 1; - */ - java.util.List - getLocationOrBuilderList(); - /** - * repeated .IssueLocation location = 1; - */ - org.sonar.batch.protocol.output.BatchReport.IssueLocationOrBuilder getLocationOrBuilder( - int index); - } - /** - * Protobuf type {@code Flow} - */ - public static final class Flow extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Flow) - FlowOrBuilder { - // Use Flow.newBuilder() to construct. - private Flow(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Flow() { - location_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Flow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - location_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - location_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.IssueLocation.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - location_ = java.util.Collections.unmodifiableList(location_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Flow_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Flow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Flow.class, org.sonar.batch.protocol.output.BatchReport.Flow.Builder.class); - } - - public static final int LOCATION_FIELD_NUMBER = 1; - private java.util.List location_; - /** - * repeated .IssueLocation location = 1; - */ - public java.util.List getLocationList() { - return location_; - } - /** - * repeated .IssueLocation location = 1; - */ - public java.util.List - getLocationOrBuilderList() { - return location_; - } - /** - * repeated .IssueLocation location = 1; - */ - public int getLocationCount() { - return location_.size(); - } - /** - * repeated .IssueLocation location = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.IssueLocation getLocation(int index) { - return location_.get(index); - } - /** - * repeated .IssueLocation location = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.IssueLocationOrBuilder getLocationOrBuilder( - int index) { - return location_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < location_.size(); i++) { - output.writeMessage(1, location_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < location_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, location_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.Flow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Flow parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Flow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Flow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Flow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Flow parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Flow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Flow parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Flow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Flow parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Flow prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Flow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Flow) - org.sonar.batch.protocol.output.BatchReport.FlowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Flow_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Flow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Flow.class, org.sonar.batch.protocol.output.BatchReport.Flow.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.Flow.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getLocationFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (locationBuilder_ == null) { - location_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - locationBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Flow_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.Flow getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.Flow.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.Flow build() { - org.sonar.batch.protocol.output.BatchReport.Flow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.Flow buildPartial() { - org.sonar.batch.protocol.output.BatchReport.Flow result = new org.sonar.batch.protocol.output.BatchReport.Flow(this); - int from_bitField0_ = bitField0_; - if (locationBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - location_ = java.util.Collections.unmodifiableList(location_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.location_ = location_; - } else { - result.location_ = locationBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.Flow) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Flow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Flow other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Flow.getDefaultInstance()) return this; - if (locationBuilder_ == null) { - if (!other.location_.isEmpty()) { - if (location_.isEmpty()) { - location_ = other.location_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationIsMutable(); - location_.addAll(other.location_); - } - onChanged(); - } - } else { - if (!other.location_.isEmpty()) { - if (locationBuilder_.isEmpty()) { - locationBuilder_.dispose(); - locationBuilder_ = null; - location_ = other.location_; - bitField0_ = (bitField0_ & ~0x00000001); - locationBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getLocationFieldBuilder() : null; - } else { - locationBuilder_.addAllMessages(other.location_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.Flow parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Flow) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List location_ = - java.util.Collections.emptyList(); - private void ensureLocationIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - location_ = new java.util.ArrayList(location_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.IssueLocation, org.sonar.batch.protocol.output.BatchReport.IssueLocation.Builder, org.sonar.batch.protocol.output.BatchReport.IssueLocationOrBuilder> locationBuilder_; - - /** - * repeated .IssueLocation location = 1; - */ - public java.util.List getLocationList() { - if (locationBuilder_ == null) { - return java.util.Collections.unmodifiableList(location_); - } else { - return locationBuilder_.getMessageList(); - } - } - /** - * repeated .IssueLocation location = 1; - */ - public int getLocationCount() { - if (locationBuilder_ == null) { - return location_.size(); - } else { - return locationBuilder_.getCount(); - } - } - /** - * repeated .IssueLocation location = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.IssueLocation getLocation(int index) { - if (locationBuilder_ == null) { - return location_.get(index); - } else { - return locationBuilder_.getMessage(index); - } - } - /** - * repeated .IssueLocation location = 1; - */ - public Builder setLocation( - int index, org.sonar.batch.protocol.output.BatchReport.IssueLocation value) { - if (locationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationIsMutable(); - location_.set(index, value); - onChanged(); - } else { - locationBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .IssueLocation location = 1; - */ - public Builder setLocation( - int index, org.sonar.batch.protocol.output.BatchReport.IssueLocation.Builder builderForValue) { - if (locationBuilder_ == null) { - ensureLocationIsMutable(); - location_.set(index, builderForValue.build()); - onChanged(); - } else { - locationBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .IssueLocation location = 1; - */ - public Builder addLocation(org.sonar.batch.protocol.output.BatchReport.IssueLocation value) { - if (locationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationIsMutable(); - location_.add(value); - onChanged(); - } else { - locationBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .IssueLocation location = 1; - */ - public Builder addLocation( - int index, org.sonar.batch.protocol.output.BatchReport.IssueLocation value) { - if (locationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationIsMutable(); - location_.add(index, value); - onChanged(); - } else { - locationBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .IssueLocation location = 1; - */ - public Builder addLocation( - org.sonar.batch.protocol.output.BatchReport.IssueLocation.Builder builderForValue) { - if (locationBuilder_ == null) { - ensureLocationIsMutable(); - location_.add(builderForValue.build()); - onChanged(); - } else { - locationBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .IssueLocation location = 1; - */ - public Builder addLocation( - int index, org.sonar.batch.protocol.output.BatchReport.IssueLocation.Builder builderForValue) { - if (locationBuilder_ == null) { - ensureLocationIsMutable(); - location_.add(index, builderForValue.build()); - onChanged(); - } else { - locationBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .IssueLocation location = 1; - */ - public Builder addAllLocation( - java.lang.Iterable values) { - if (locationBuilder_ == null) { - ensureLocationIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, location_); - onChanged(); - } else { - locationBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .IssueLocation location = 1; - */ - public Builder clearLocation() { - if (locationBuilder_ == null) { - location_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - locationBuilder_.clear(); - } - return this; - } - /** - * repeated .IssueLocation location = 1; - */ - public Builder removeLocation(int index) { - if (locationBuilder_ == null) { - ensureLocationIsMutable(); - location_.remove(index); - onChanged(); - } else { - locationBuilder_.remove(index); - } - return this; - } - /** - * repeated .IssueLocation location = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.IssueLocation.Builder getLocationBuilder( - int index) { - return getLocationFieldBuilder().getBuilder(index); - } - /** - * repeated .IssueLocation location = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.IssueLocationOrBuilder getLocationOrBuilder( - int index) { - if (locationBuilder_ == null) { - return location_.get(index); } else { - return locationBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .IssueLocation location = 1; - */ - public java.util.List - getLocationOrBuilderList() { - if (locationBuilder_ != null) { - return locationBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(location_); - } - } - /** - * repeated .IssueLocation location = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.IssueLocation.Builder addLocationBuilder() { - return getLocationFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.IssueLocation.getDefaultInstance()); - } - /** - * repeated .IssueLocation location = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.IssueLocation.Builder addLocationBuilder( - int index) { - return getLocationFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.IssueLocation.getDefaultInstance()); - } - /** - * repeated .IssueLocation location = 1; - */ - public java.util.List - getLocationBuilderList() { - return getLocationFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.IssueLocation, org.sonar.batch.protocol.output.BatchReport.IssueLocation.Builder, org.sonar.batch.protocol.output.BatchReport.IssueLocationOrBuilder> - getLocationFieldBuilder() { - if (locationBuilder_ == null) { - locationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.IssueLocation, org.sonar.batch.protocol.output.BatchReport.IssueLocation.Builder, org.sonar.batch.protocol.output.BatchReport.IssueLocationOrBuilder>( - location_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - location_ = null; - } - return locationBuilder_; - } - - // @@protoc_insertion_point(builder_scope:Flow) - } - - // @@protoc_insertion_point(class_scope:Flow) - private static final org.sonar.batch.protocol.output.BatchReport.Flow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.Flow(); - } - - public static org.sonar.batch.protocol.output.BatchReport.Flow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Flow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Flow(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.Flow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ChangesetsOrBuilder extends - // @@protoc_insertion_point(interface_extends:Changesets) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 component_ref = 1; - */ - boolean hasComponentRef(); - /** - * optional int32 component_ref = 1; - */ - int getComponentRef(); - - /** - * repeated .Changesets.Changeset changeset = 2; - */ - java.util.List - getChangesetList(); - /** - * repeated .Changesets.Changeset changeset = 2; - */ - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset getChangeset(int index); - /** - * repeated .Changesets.Changeset changeset = 2; - */ - int getChangesetCount(); - /** - * repeated .Changesets.Changeset changeset = 2; - */ - java.util.List - getChangesetOrBuilderList(); - /** - * repeated .Changesets.Changeset changeset = 2; - */ - org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder getChangesetOrBuilder( - int index); - - /** - * repeated int32 changesetIndexByLine = 3 [packed = true]; - * - *
-     * if changesetIndexByLine[5] = 2 then it means that changeset[2] is the last one on line 6
-     * 
- */ - java.util.List getChangesetIndexByLineList(); - /** - * repeated int32 changesetIndexByLine = 3 [packed = true]; - * - *
-     * if changesetIndexByLine[5] = 2 then it means that changeset[2] is the last one on line 6
-     * 
- */ - int getChangesetIndexByLineCount(); - /** - * repeated int32 changesetIndexByLine = 3 [packed = true]; - * - *
-     * if changesetIndexByLine[5] = 2 then it means that changeset[2] is the last one on line 6
-     * 
- */ - int getChangesetIndexByLine(int index); - } - /** - * Protobuf type {@code Changesets} - */ - public static final class Changesets extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Changesets) - ChangesetsOrBuilder { - // Use Changesets.newBuilder() to construct. - private Changesets(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Changesets() { - componentRef_ = 0; - changeset_ = java.util.Collections.emptyList(); - changesetIndexByLine_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Changesets( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - componentRef_ = input.readInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - changeset_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - changeset_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.PARSER, extensionRegistry)); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - changesetIndexByLine_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - changesetIndexByLine_.add(input.readInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { - changesetIndexByLine_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - changesetIndexByLine_.add(input.readInt32()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - changeset_ = java.util.Collections.unmodifiableList(changeset_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - changesetIndexByLine_ = java.util.Collections.unmodifiableList(changesetIndexByLine_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Changesets.class, org.sonar.batch.protocol.output.BatchReport.Changesets.Builder.class); - } - - public interface ChangesetOrBuilder extends - // @@protoc_insertion_point(interface_extends:Changesets.Changeset) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string revision = 1; - */ - boolean hasRevision(); - /** - * optional string revision = 1; - */ - java.lang.String getRevision(); - /** - * optional string revision = 1; - */ - com.google.protobuf.ByteString - getRevisionBytes(); - - /** - * optional string author = 2; - */ - boolean hasAuthor(); - /** - * optional string author = 2; - */ - java.lang.String getAuthor(); - /** - * optional string author = 2; - */ - com.google.protobuf.ByteString - getAuthorBytes(); - - /** - * optional int64 date = 3; - */ - boolean hasDate(); - /** - * optional int64 date = 3; - */ - long getDate(); - } - /** - * Protobuf type {@code Changesets.Changeset} - */ - public static final class Changeset extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Changesets.Changeset) - ChangesetOrBuilder { - // Use Changeset.newBuilder() to construct. - private Changeset(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Changeset() { - revision_ = ""; - author_ = ""; - date_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Changeset( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - revision_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - author_ = bs; - break; - } - case 24: { - bitField0_ |= 0x00000004; - date_ = input.readInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_Changeset_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_Changeset_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.class, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder.class); - } - - private int bitField0_; - public static final int REVISION_FIELD_NUMBER = 1; - private volatile java.lang.Object revision_; - /** - * optional string revision = 1; - */ - public boolean hasRevision() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string revision = 1; - */ - public java.lang.String getRevision() { - java.lang.Object ref = revision_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - revision_ = s; - } - return s; - } - } - /** - * optional string revision = 1; - */ - public com.google.protobuf.ByteString - getRevisionBytes() { - java.lang.Object ref = revision_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - revision_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUTHOR_FIELD_NUMBER = 2; - private volatile java.lang.Object author_; - /** - * optional string author = 2; - */ - public boolean hasAuthor() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string author = 2; - */ - public java.lang.String getAuthor() { - java.lang.Object ref = author_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - author_ = s; - } - return s; - } - } - /** - * optional string author = 2; - */ - public com.google.protobuf.ByteString - getAuthorBytes() { - java.lang.Object ref = author_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - author_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATE_FIELD_NUMBER = 3; - private long date_; - /** - * optional int64 date = 3; - */ - public boolean hasDate() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int64 date = 3; - */ - public long getDate() { - return date_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getRevisionBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getAuthorBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt64(3, date_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getRevisionBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getAuthorBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, date_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Changesets.Changeset} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Changesets.Changeset) - org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_Changeset_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_Changeset_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.class, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - revision_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - author_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - date_ = 0L; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_Changeset_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset build() { - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset buildPartial() { - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset result = new org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.revision_ = revision_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.author_ = author_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.date_ = date_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.getDefaultInstance()) return this; - if (other.hasRevision()) { - bitField0_ |= 0x00000001; - revision_ = other.revision_; - onChanged(); - } - if (other.hasAuthor()) { - bitField0_ |= 0x00000002; - author_ = other.author_; - onChanged(); - } - if (other.hasDate()) { - setDate(other.getDate()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object revision_ = ""; - /** - * optional string revision = 1; - */ - public boolean hasRevision() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string revision = 1; - */ - public java.lang.String getRevision() { - java.lang.Object ref = revision_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - revision_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string revision = 1; - */ - public com.google.protobuf.ByteString - getRevisionBytes() { - java.lang.Object ref = revision_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - revision_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string revision = 1; - */ - public Builder setRevision( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - revision_ = value; - onChanged(); - return this; - } - /** - * optional string revision = 1; - */ - public Builder clearRevision() { - bitField0_ = (bitField0_ & ~0x00000001); - revision_ = getDefaultInstance().getRevision(); - onChanged(); - return this; - } - /** - * optional string revision = 1; - */ - public Builder setRevisionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - revision_ = value; - onChanged(); - return this; - } - - private java.lang.Object author_ = ""; - /** - * optional string author = 2; - */ - public boolean hasAuthor() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string author = 2; - */ - public java.lang.String getAuthor() { - java.lang.Object ref = author_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - author_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string author = 2; - */ - public com.google.protobuf.ByteString - getAuthorBytes() { - java.lang.Object ref = author_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - author_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string author = 2; - */ - public Builder setAuthor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - author_ = value; - onChanged(); - return this; - } - /** - * optional string author = 2; - */ - public Builder clearAuthor() { - bitField0_ = (bitField0_ & ~0x00000002); - author_ = getDefaultInstance().getAuthor(); - onChanged(); - return this; - } - /** - * optional string author = 2; - */ - public Builder setAuthorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - author_ = value; - onChanged(); - return this; - } - - private long date_ ; - /** - * optional int64 date = 3; - */ - public boolean hasDate() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int64 date = 3; - */ - public long getDate() { - return date_; - } - /** - * optional int64 date = 3; - */ - public Builder setDate(long value) { - bitField0_ |= 0x00000004; - date_ = value; - onChanged(); - return this; - } - /** - * optional int64 date = 3; - */ - public Builder clearDate() { - bitField0_ = (bitField0_ & ~0x00000004); - date_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:Changesets.Changeset) - } - - // @@protoc_insertion_point(class_scope:Changesets.Changeset) - private static final org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset(); - } - - public static org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Changeset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Changeset(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int COMPONENT_REF_FIELD_NUMBER = 1; - private int componentRef_; - /** - * optional int32 component_ref = 1; - */ - public boolean hasComponentRef() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 component_ref = 1; - */ - public int getComponentRef() { - return componentRef_; - } - - public static final int CHANGESET_FIELD_NUMBER = 2; - private java.util.List changeset_; - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public java.util.List getChangesetList() { - return changeset_; - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public java.util.List - getChangesetOrBuilderList() { - return changeset_; - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public int getChangesetCount() { - return changeset_.size(); - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset getChangeset(int index) { - return changeset_.get(index); - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder getChangesetOrBuilder( - int index) { - return changeset_.get(index); - } - - public static final int CHANGESETINDEXBYLINE_FIELD_NUMBER = 3; - private java.util.List changesetIndexByLine_; - /** - * repeated int32 changesetIndexByLine = 3 [packed = true]; - * - *
-     * if changesetIndexByLine[5] = 2 then it means that changeset[2] is the last one on line 6
-     * 
- */ - public java.util.List - getChangesetIndexByLineList() { - return changesetIndexByLine_; - } - /** - * repeated int32 changesetIndexByLine = 3 [packed = true]; - * - *
-     * if changesetIndexByLine[5] = 2 then it means that changeset[2] is the last one on line 6
-     * 
- */ - public int getChangesetIndexByLineCount() { - return changesetIndexByLine_.size(); - } - /** - * repeated int32 changesetIndexByLine = 3 [packed = true]; - * - *
-     * if changesetIndexByLine[5] = 2 then it means that changeset[2] is the last one on line 6
-     * 
- */ - public int getChangesetIndexByLine(int index) { - return changesetIndexByLine_.get(index); - } - private int changesetIndexByLineMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, componentRef_); - } - for (int i = 0; i < changeset_.size(); i++) { - output.writeMessage(2, changeset_.get(i)); - } - if (getChangesetIndexByLineList().size() > 0) { - output.writeRawVarint32(26); - output.writeRawVarint32(changesetIndexByLineMemoizedSerializedSize); - } - for (int i = 0; i < changesetIndexByLine_.size(); i++) { - output.writeInt32NoTag(changesetIndexByLine_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, componentRef_); - } - for (int i = 0; i < changeset_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, changeset_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < changesetIndexByLine_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(changesetIndexByLine_.get(i)); - } - size += dataSize; - if (!getChangesetIndexByLineList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - changesetIndexByLineMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.Changesets parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Changesets parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Changesets prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Changesets} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Changesets) - org.sonar.batch.protocol.output.BatchReport.ChangesetsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Changesets.class, org.sonar.batch.protocol.output.BatchReport.Changesets.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.Changesets.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getChangesetFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - componentRef_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - if (changesetBuilder_ == null) { - changeset_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - changesetBuilder_.clear(); - } - changesetIndexByLine_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Changesets_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.Changesets getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.Changesets.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.Changesets build() { - org.sonar.batch.protocol.output.BatchReport.Changesets result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.Changesets buildPartial() { - org.sonar.batch.protocol.output.BatchReport.Changesets result = new org.sonar.batch.protocol.output.BatchReport.Changesets(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.componentRef_ = componentRef_; - if (changesetBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - changeset_ = java.util.Collections.unmodifiableList(changeset_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.changeset_ = changeset_; - } else { - result.changeset_ = changesetBuilder_.build(); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - changesetIndexByLine_ = java.util.Collections.unmodifiableList(changesetIndexByLine_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.changesetIndexByLine_ = changesetIndexByLine_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.Changesets) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Changesets)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Changesets other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Changesets.getDefaultInstance()) return this; - if (other.hasComponentRef()) { - setComponentRef(other.getComponentRef()); - } - if (changesetBuilder_ == null) { - if (!other.changeset_.isEmpty()) { - if (changeset_.isEmpty()) { - changeset_ = other.changeset_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureChangesetIsMutable(); - changeset_.addAll(other.changeset_); - } - onChanged(); - } - } else { - if (!other.changeset_.isEmpty()) { - if (changesetBuilder_.isEmpty()) { - changesetBuilder_.dispose(); - changesetBuilder_ = null; - changeset_ = other.changeset_; - bitField0_ = (bitField0_ & ~0x00000002); - changesetBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getChangesetFieldBuilder() : null; - } else { - changesetBuilder_.addAllMessages(other.changeset_); - } - } - } - if (!other.changesetIndexByLine_.isEmpty()) { - if (changesetIndexByLine_.isEmpty()) { - changesetIndexByLine_ = other.changesetIndexByLine_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureChangesetIndexByLineIsMutable(); - changesetIndexByLine_.addAll(other.changesetIndexByLine_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.Changesets parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Changesets) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int componentRef_ ; - /** - * optional int32 component_ref = 1; - */ - public boolean hasComponentRef() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 component_ref = 1; - */ - public int getComponentRef() { - return componentRef_; - } - /** - * optional int32 component_ref = 1; - */ - public Builder setComponentRef(int value) { - bitField0_ |= 0x00000001; - componentRef_ = value; - onChanged(); - return this; - } - /** - * optional int32 component_ref = 1; - */ - public Builder clearComponentRef() { - bitField0_ = (bitField0_ & ~0x00000001); - componentRef_ = 0; - onChanged(); - return this; - } - - private java.util.List changeset_ = - java.util.Collections.emptyList(); - private void ensureChangesetIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - changeset_ = new java.util.ArrayList(changeset_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder, org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder> changesetBuilder_; - - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public java.util.List getChangesetList() { - if (changesetBuilder_ == null) { - return java.util.Collections.unmodifiableList(changeset_); - } else { - return changesetBuilder_.getMessageList(); - } - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public int getChangesetCount() { - if (changesetBuilder_ == null) { - return changeset_.size(); - } else { - return changesetBuilder_.getCount(); - } - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset getChangeset(int index) { - if (changesetBuilder_ == null) { - return changeset_.get(index); - } else { - return changesetBuilder_.getMessage(index); - } - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public Builder setChangeset( - int index, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset value) { - if (changesetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangesetIsMutable(); - changeset_.set(index, value); - onChanged(); - } else { - changesetBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public Builder setChangeset( - int index, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder builderForValue) { - if (changesetBuilder_ == null) { - ensureChangesetIsMutable(); - changeset_.set(index, builderForValue.build()); - onChanged(); - } else { - changesetBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public Builder addChangeset(org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset value) { - if (changesetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangesetIsMutable(); - changeset_.add(value); - onChanged(); - } else { - changesetBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public Builder addChangeset( - int index, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset value) { - if (changesetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangesetIsMutable(); - changeset_.add(index, value); - onChanged(); - } else { - changesetBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public Builder addChangeset( - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder builderForValue) { - if (changesetBuilder_ == null) { - ensureChangesetIsMutable(); - changeset_.add(builderForValue.build()); - onChanged(); - } else { - changesetBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public Builder addChangeset( - int index, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder builderForValue) { - if (changesetBuilder_ == null) { - ensureChangesetIsMutable(); - changeset_.add(index, builderForValue.build()); - onChanged(); - } else { - changesetBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public Builder addAllChangeset( - java.lang.Iterable values) { - if (changesetBuilder_ == null) { - ensureChangesetIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, changeset_); - onChanged(); - } else { - changesetBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public Builder clearChangeset() { - if (changesetBuilder_ == null) { - changeset_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - changesetBuilder_.clear(); - } - return this; - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public Builder removeChangeset(int index) { - if (changesetBuilder_ == null) { - ensureChangesetIsMutable(); - changeset_.remove(index); - onChanged(); - } else { - changesetBuilder_.remove(index); - } - return this; - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder getChangesetBuilder( - int index) { - return getChangesetFieldBuilder().getBuilder(index); - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder getChangesetOrBuilder( - int index) { - if (changesetBuilder_ == null) { - return changeset_.get(index); } else { - return changesetBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public java.util.List - getChangesetOrBuilderList() { - if (changesetBuilder_ != null) { - return changesetBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(changeset_); - } - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder addChangesetBuilder() { - return getChangesetFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.getDefaultInstance()); - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder addChangesetBuilder( - int index) { - return getChangesetFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.getDefaultInstance()); - } - /** - * repeated .Changesets.Changeset changeset = 2; - */ - public java.util.List - getChangesetBuilderList() { - return getChangesetFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder, org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder> - getChangesetFieldBuilder() { - if (changesetBuilder_ == null) { - changesetBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset, org.sonar.batch.protocol.output.BatchReport.Changesets.Changeset.Builder, org.sonar.batch.protocol.output.BatchReport.Changesets.ChangesetOrBuilder>( - changeset_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - changeset_ = null; - } - return changesetBuilder_; - } - - private java.util.List changesetIndexByLine_ = java.util.Collections.emptyList(); - private void ensureChangesetIndexByLineIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - changesetIndexByLine_ = new java.util.ArrayList(changesetIndexByLine_); - bitField0_ |= 0x00000004; - } - } - /** - * repeated int32 changesetIndexByLine = 3 [packed = true]; - * - *
-       * if changesetIndexByLine[5] = 2 then it means that changeset[2] is the last one on line 6
-       * 
- */ - public java.util.List - getChangesetIndexByLineList() { - return java.util.Collections.unmodifiableList(changesetIndexByLine_); - } - /** - * repeated int32 changesetIndexByLine = 3 [packed = true]; - * - *
-       * if changesetIndexByLine[5] = 2 then it means that changeset[2] is the last one on line 6
-       * 
- */ - public int getChangesetIndexByLineCount() { - return changesetIndexByLine_.size(); - } - /** - * repeated int32 changesetIndexByLine = 3 [packed = true]; - * - *
-       * if changesetIndexByLine[5] = 2 then it means that changeset[2] is the last one on line 6
-       * 
- */ - public int getChangesetIndexByLine(int index) { - return changesetIndexByLine_.get(index); - } - /** - * repeated int32 changesetIndexByLine = 3 [packed = true]; - * - *
-       * if changesetIndexByLine[5] = 2 then it means that changeset[2] is the last one on line 6
-       * 
- */ - public Builder setChangesetIndexByLine( - int index, int value) { - ensureChangesetIndexByLineIsMutable(); - changesetIndexByLine_.set(index, value); - onChanged(); - return this; - } - /** - * repeated int32 changesetIndexByLine = 3 [packed = true]; - * - *
-       * if changesetIndexByLine[5] = 2 then it means that changeset[2] is the last one on line 6
-       * 
- */ - public Builder addChangesetIndexByLine(int value) { - ensureChangesetIndexByLineIsMutable(); - changesetIndexByLine_.add(value); - onChanged(); - return this; - } - /** - * repeated int32 changesetIndexByLine = 3 [packed = true]; - * - *
-       * if changesetIndexByLine[5] = 2 then it means that changeset[2] is the last one on line 6
-       * 
- */ - public Builder addAllChangesetIndexByLine( - java.lang.Iterable values) { - ensureChangesetIndexByLineIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, changesetIndexByLine_); - onChanged(); - return this; - } - /** - * repeated int32 changesetIndexByLine = 3 [packed = true]; - * - *
-       * if changesetIndexByLine[5] = 2 then it means that changeset[2] is the last one on line 6
-       * 
- */ - public Builder clearChangesetIndexByLine() { - changesetIndexByLine_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:Changesets) - } - - // @@protoc_insertion_point(class_scope:Changesets) - private static final org.sonar.batch.protocol.output.BatchReport.Changesets DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.Changesets(); - } - - public static org.sonar.batch.protocol.output.BatchReport.Changesets getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Changesets parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Changesets(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.Changesets getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DuplicateOrBuilder extends - // @@protoc_insertion_point(interface_extends:Duplicate) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 other_file_ref = 1; - * - *
-     * Will be null when duplicate is in the same file
-     * 
- */ - boolean hasOtherFileRef(); - /** - * optional int32 other_file_ref = 1; - * - *
-     * Will be null when duplicate is in the same file
-     * 
- */ - int getOtherFileRef(); - - /** - * optional .TextRange range = 2; - */ - boolean hasRange(); - /** - * optional .TextRange range = 2; - */ - org.sonar.batch.protocol.output.BatchReport.TextRange getRange(); - /** - * optional .TextRange range = 2; - */ - org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getRangeOrBuilder(); - - /** - * optional string other_file_key = 3; - * - *
-     * temporary field during development of computation stack for cross project duplications
-     * 
- */ - boolean hasOtherFileKey(); - /** - * optional string other_file_key = 3; - * - *
-     * temporary field during development of computation stack for cross project duplications
-     * 
- */ - java.lang.String getOtherFileKey(); - /** - * optional string other_file_key = 3; - * - *
-     * temporary field during development of computation stack for cross project duplications
-     * 
- */ - com.google.protobuf.ByteString - getOtherFileKeyBytes(); - } - /** - * Protobuf type {@code Duplicate} - */ - public static final class Duplicate extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Duplicate) - DuplicateOrBuilder { - // Use Duplicate.newBuilder() to construct. - private Duplicate(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Duplicate() { - otherFileRef_ = 0; - otherFileKey_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Duplicate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - otherFileRef_ = input.readInt32(); - break; - } - case 18: { - org.sonar.batch.protocol.output.BatchReport.TextRange.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = range_.toBuilder(); - } - range_ = input.readMessage(org.sonar.batch.protocol.output.BatchReport.TextRange.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(range_); - range_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - otherFileKey_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplicate_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplicate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Duplicate.class, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder.class); - } - - private int bitField0_; - public static final int OTHER_FILE_REF_FIELD_NUMBER = 1; - private int otherFileRef_; - /** - * optional int32 other_file_ref = 1; - * - *
-     * Will be null when duplicate is in the same file
-     * 
- */ - public boolean hasOtherFileRef() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 other_file_ref = 1; - * - *
-     * Will be null when duplicate is in the same file
-     * 
- */ - public int getOtherFileRef() { - return otherFileRef_; - } - - public static final int RANGE_FIELD_NUMBER = 2; - private org.sonar.batch.protocol.output.BatchReport.TextRange range_; - /** - * optional .TextRange range = 2; - */ - public boolean hasRange() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .TextRange range = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRange getRange() { - return range_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : range_; - } - /** - * optional .TextRange range = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getRangeOrBuilder() { - return range_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : range_; - } - - public static final int OTHER_FILE_KEY_FIELD_NUMBER = 3; - private volatile java.lang.Object otherFileKey_; - /** - * optional string other_file_key = 3; - * - *
-     * temporary field during development of computation stack for cross project duplications
-     * 
- */ - public boolean hasOtherFileKey() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string other_file_key = 3; - * - *
-     * temporary field during development of computation stack for cross project duplications
-     * 
- */ - public java.lang.String getOtherFileKey() { - java.lang.Object ref = otherFileKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - otherFileKey_ = s; - } - return s; - } - } - /** - * optional string other_file_key = 3; - * - *
-     * temporary field during development of computation stack for cross project duplications
-     * 
- */ - public com.google.protobuf.ByteString - getOtherFileKeyBytes() { - java.lang.Object ref = otherFileKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - otherFileKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, otherFileRef_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, getRange()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getOtherFileKeyBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, otherFileRef_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRange()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getOtherFileKeyBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.Duplicate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplicate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplicate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplicate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplicate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplicate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplicate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplicate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplicate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplicate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Duplicate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Duplicate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Duplicate) - org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplicate_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplicate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Duplicate.class, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.Duplicate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRangeFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - otherFileRef_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - if (rangeBuilder_ == null) { - range_ = null; - } else { - rangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - otherFileKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplicate_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.Duplicate getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.Duplicate.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.Duplicate build() { - org.sonar.batch.protocol.output.BatchReport.Duplicate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.Duplicate buildPartial() { - org.sonar.batch.protocol.output.BatchReport.Duplicate result = new org.sonar.batch.protocol.output.BatchReport.Duplicate(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.otherFileRef_ = otherFileRef_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (rangeBuilder_ == null) { - result.range_ = range_; - } else { - result.range_ = rangeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.otherFileKey_ = otherFileKey_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.Duplicate) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Duplicate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Duplicate other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Duplicate.getDefaultInstance()) return this; - if (other.hasOtherFileRef()) { - setOtherFileRef(other.getOtherFileRef()); - } - if (other.hasRange()) { - mergeRange(other.getRange()); - } - if (other.hasOtherFileKey()) { - bitField0_ |= 0x00000004; - otherFileKey_ = other.otherFileKey_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.Duplicate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Duplicate) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int otherFileRef_ ; - /** - * optional int32 other_file_ref = 1; - * - *
-       * Will be null when duplicate is in the same file
-       * 
- */ - public boolean hasOtherFileRef() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 other_file_ref = 1; - * - *
-       * Will be null when duplicate is in the same file
-       * 
- */ - public int getOtherFileRef() { - return otherFileRef_; - } - /** - * optional int32 other_file_ref = 1; - * - *
-       * Will be null when duplicate is in the same file
-       * 
- */ - public Builder setOtherFileRef(int value) { - bitField0_ |= 0x00000001; - otherFileRef_ = value; - onChanged(); - return this; - } - /** - * optional int32 other_file_ref = 1; - * - *
-       * Will be null when duplicate is in the same file
-       * 
- */ - public Builder clearOtherFileRef() { - bitField0_ = (bitField0_ & ~0x00000001); - otherFileRef_ = 0; - onChanged(); - return this; - } - - private org.sonar.batch.protocol.output.BatchReport.TextRange range_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder> rangeBuilder_; - /** - * optional .TextRange range = 2; - */ - public boolean hasRange() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .TextRange range = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRange getRange() { - if (rangeBuilder_ == null) { - return range_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : range_; - } else { - return rangeBuilder_.getMessage(); - } - } - /** - * optional .TextRange range = 2; - */ - public Builder setRange(org.sonar.batch.protocol.output.BatchReport.TextRange value) { - if (rangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - range_ = value; - onChanged(); - } else { - rangeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .TextRange range = 2; - */ - public Builder setRange( - org.sonar.batch.protocol.output.BatchReport.TextRange.Builder builderForValue) { - if (rangeBuilder_ == null) { - range_ = builderForValue.build(); - onChanged(); - } else { - rangeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .TextRange range = 2; - */ - public Builder mergeRange(org.sonar.batch.protocol.output.BatchReport.TextRange value) { - if (rangeBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - range_ != null && - range_ != org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance()) { - range_ = - org.sonar.batch.protocol.output.BatchReport.TextRange.newBuilder(range_).mergeFrom(value).buildPartial(); - } else { - range_ = value; - } - onChanged(); - } else { - rangeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .TextRange range = 2; - */ - public Builder clearRange() { - if (rangeBuilder_ == null) { - range_ = null; - onChanged(); - } else { - rangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * optional .TextRange range = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRange.Builder getRangeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getRangeFieldBuilder().getBuilder(); - } - /** - * optional .TextRange range = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getRangeOrBuilder() { - if (rangeBuilder_ != null) { - return rangeBuilder_.getMessageOrBuilder(); - } else { - return range_ == null ? - org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : range_; - } - } - /** - * optional .TextRange range = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder> - getRangeFieldBuilder() { - if (rangeBuilder_ == null) { - rangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder>( - getRange(), - getParentForChildren(), - isClean()); - range_ = null; - } - return rangeBuilder_; - } - - private java.lang.Object otherFileKey_ = ""; - /** - * optional string other_file_key = 3; - * - *
-       * temporary field during development of computation stack for cross project duplications
-       * 
- */ - public boolean hasOtherFileKey() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string other_file_key = 3; - * - *
-       * temporary field during development of computation stack for cross project duplications
-       * 
- */ - public java.lang.String getOtherFileKey() { - java.lang.Object ref = otherFileKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - otherFileKey_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string other_file_key = 3; - * - *
-       * temporary field during development of computation stack for cross project duplications
-       * 
- */ - public com.google.protobuf.ByteString - getOtherFileKeyBytes() { - java.lang.Object ref = otherFileKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - otherFileKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string other_file_key = 3; - * - *
-       * temporary field during development of computation stack for cross project duplications
-       * 
- */ - public Builder setOtherFileKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - otherFileKey_ = value; - onChanged(); - return this; - } - /** - * optional string other_file_key = 3; - * - *
-       * temporary field during development of computation stack for cross project duplications
-       * 
- */ - public Builder clearOtherFileKey() { - bitField0_ = (bitField0_ & ~0x00000004); - otherFileKey_ = getDefaultInstance().getOtherFileKey(); - onChanged(); - return this; - } - /** - * optional string other_file_key = 3; - * - *
-       * temporary field during development of computation stack for cross project duplications
-       * 
- */ - public Builder setOtherFileKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - otherFileKey_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:Duplicate) - } - - // @@protoc_insertion_point(class_scope:Duplicate) - private static final org.sonar.batch.protocol.output.BatchReport.Duplicate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.Duplicate(); - } - - public static org.sonar.batch.protocol.output.BatchReport.Duplicate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Duplicate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Duplicate(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.Duplicate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DuplicationOrBuilder extends - // @@protoc_insertion_point(interface_extends:Duplication) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .TextRange origin_position = 1; - * - *
-     * Origin position in current file
-     * 
- */ - boolean hasOriginPosition(); - /** - * optional .TextRange origin_position = 1; - * - *
-     * Origin position in current file
-     * 
- */ - org.sonar.batch.protocol.output.BatchReport.TextRange getOriginPosition(); - /** - * optional .TextRange origin_position = 1; - * - *
-     * Origin position in current file
-     * 
- */ - org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getOriginPositionOrBuilder(); - - /** - * repeated .Duplicate duplicate = 2; - */ - java.util.List - getDuplicateList(); - /** - * repeated .Duplicate duplicate = 2; - */ - org.sonar.batch.protocol.output.BatchReport.Duplicate getDuplicate(int index); - /** - * repeated .Duplicate duplicate = 2; - */ - int getDuplicateCount(); - /** - * repeated .Duplicate duplicate = 2; - */ - java.util.List - getDuplicateOrBuilderList(); - /** - * repeated .Duplicate duplicate = 2; - */ - org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder getDuplicateOrBuilder( - int index); - } - /** - * Protobuf type {@code Duplication} - */ - public static final class Duplication extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Duplication) - DuplicationOrBuilder { - // Use Duplication.newBuilder() to construct. - private Duplication(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Duplication() { - duplicate_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Duplication( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.sonar.batch.protocol.output.BatchReport.TextRange.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = originPosition_.toBuilder(); - } - originPosition_ = input.readMessage(org.sonar.batch.protocol.output.BatchReport.TextRange.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(originPosition_); - originPosition_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - duplicate_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - duplicate_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.Duplicate.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - duplicate_ = java.util.Collections.unmodifiableList(duplicate_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplication_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Duplication.class, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder.class); - } - - private int bitField0_; - public static final int ORIGIN_POSITION_FIELD_NUMBER = 1; - private org.sonar.batch.protocol.output.BatchReport.TextRange originPosition_; - /** - * optional .TextRange origin_position = 1; - * - *
-     * Origin position in current file
-     * 
- */ - public boolean hasOriginPosition() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .TextRange origin_position = 1; - * - *
-     * Origin position in current file
-     * 
- */ - public org.sonar.batch.protocol.output.BatchReport.TextRange getOriginPosition() { - return originPosition_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : originPosition_; - } - /** - * optional .TextRange origin_position = 1; - * - *
-     * Origin position in current file
-     * 
- */ - public org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getOriginPositionOrBuilder() { - return originPosition_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : originPosition_; - } - - public static final int DUPLICATE_FIELD_NUMBER = 2; - private java.util.List duplicate_; - /** - * repeated .Duplicate duplicate = 2; - */ - public java.util.List getDuplicateList() { - return duplicate_; - } - /** - * repeated .Duplicate duplicate = 2; - */ - public java.util.List - getDuplicateOrBuilderList() { - return duplicate_; - } - /** - * repeated .Duplicate duplicate = 2; - */ - public int getDuplicateCount() { - return duplicate_.size(); - } - /** - * repeated .Duplicate duplicate = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.Duplicate getDuplicate(int index) { - return duplicate_.get(index); - } - /** - * repeated .Duplicate duplicate = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder getDuplicateOrBuilder( - int index) { - return duplicate_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getOriginPosition()); - } - for (int i = 0; i < duplicate_.size(); i++) { - output.writeMessage(2, duplicate_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOriginPosition()); - } - for (int i = 0; i < duplicate_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, duplicate_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.Duplication parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplication parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplication parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplication parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplication parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplication parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplication parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplication parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplication parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Duplication parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Duplication prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Duplication} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Duplication) - org.sonar.batch.protocol.output.BatchReport.DuplicationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplication_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Duplication.class, org.sonar.batch.protocol.output.BatchReport.Duplication.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.Duplication.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getOriginPositionFieldBuilder(); - getDuplicateFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (originPositionBuilder_ == null) { - originPosition_ = null; - } else { - originPositionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (duplicateBuilder_ == null) { - duplicate_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - duplicateBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Duplication_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.Duplication getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.Duplication.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.Duplication build() { - org.sonar.batch.protocol.output.BatchReport.Duplication result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.Duplication buildPartial() { - org.sonar.batch.protocol.output.BatchReport.Duplication result = new org.sonar.batch.protocol.output.BatchReport.Duplication(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (originPositionBuilder_ == null) { - result.originPosition_ = originPosition_; - } else { - result.originPosition_ = originPositionBuilder_.build(); - } - if (duplicateBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - duplicate_ = java.util.Collections.unmodifiableList(duplicate_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.duplicate_ = duplicate_; - } else { - result.duplicate_ = duplicateBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.Duplication) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Duplication)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Duplication other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Duplication.getDefaultInstance()) return this; - if (other.hasOriginPosition()) { - mergeOriginPosition(other.getOriginPosition()); - } - if (duplicateBuilder_ == null) { - if (!other.duplicate_.isEmpty()) { - if (duplicate_.isEmpty()) { - duplicate_ = other.duplicate_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDuplicateIsMutable(); - duplicate_.addAll(other.duplicate_); - } - onChanged(); - } - } else { - if (!other.duplicate_.isEmpty()) { - if (duplicateBuilder_.isEmpty()) { - duplicateBuilder_.dispose(); - duplicateBuilder_ = null; - duplicate_ = other.duplicate_; - bitField0_ = (bitField0_ & ~0x00000002); - duplicateBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getDuplicateFieldBuilder() : null; - } else { - duplicateBuilder_.addAllMessages(other.duplicate_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.Duplication parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Duplication) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonar.batch.protocol.output.BatchReport.TextRange originPosition_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder> originPositionBuilder_; - /** - * optional .TextRange origin_position = 1; - * - *
-       * Origin position in current file
-       * 
- */ - public boolean hasOriginPosition() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .TextRange origin_position = 1; - * - *
-       * Origin position in current file
-       * 
- */ - public org.sonar.batch.protocol.output.BatchReport.TextRange getOriginPosition() { - if (originPositionBuilder_ == null) { - return originPosition_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : originPosition_; - } else { - return originPositionBuilder_.getMessage(); - } - } - /** - * optional .TextRange origin_position = 1; - * - *
-       * Origin position in current file
-       * 
- */ - public Builder setOriginPosition(org.sonar.batch.protocol.output.BatchReport.TextRange value) { - if (originPositionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - originPosition_ = value; - onChanged(); - } else { - originPositionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .TextRange origin_position = 1; - * - *
-       * Origin position in current file
-       * 
- */ - public Builder setOriginPosition( - org.sonar.batch.protocol.output.BatchReport.TextRange.Builder builderForValue) { - if (originPositionBuilder_ == null) { - originPosition_ = builderForValue.build(); - onChanged(); - } else { - originPositionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .TextRange origin_position = 1; - * - *
-       * Origin position in current file
-       * 
- */ - public Builder mergeOriginPosition(org.sonar.batch.protocol.output.BatchReport.TextRange value) { - if (originPositionBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - originPosition_ != null && - originPosition_ != org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance()) { - originPosition_ = - org.sonar.batch.protocol.output.BatchReport.TextRange.newBuilder(originPosition_).mergeFrom(value).buildPartial(); - } else { - originPosition_ = value; - } - onChanged(); - } else { - originPositionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .TextRange origin_position = 1; - * - *
-       * Origin position in current file
-       * 
- */ - public Builder clearOriginPosition() { - if (originPositionBuilder_ == null) { - originPosition_ = null; - onChanged(); - } else { - originPositionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .TextRange origin_position = 1; - * - *
-       * Origin position in current file
-       * 
- */ - public org.sonar.batch.protocol.output.BatchReport.TextRange.Builder getOriginPositionBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getOriginPositionFieldBuilder().getBuilder(); - } - /** - * optional .TextRange origin_position = 1; - * - *
-       * Origin position in current file
-       * 
- */ - public org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getOriginPositionOrBuilder() { - if (originPositionBuilder_ != null) { - return originPositionBuilder_.getMessageOrBuilder(); - } else { - return originPosition_ == null ? - org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : originPosition_; - } - } - /** - * optional .TextRange origin_position = 1; - * - *
-       * Origin position in current file
-       * 
- */ - private com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder> - getOriginPositionFieldBuilder() { - if (originPositionBuilder_ == null) { - originPositionBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder>( - getOriginPosition(), - getParentForChildren(), - isClean()); - originPosition_ = null; - } - return originPositionBuilder_; - } - - private java.util.List duplicate_ = - java.util.Collections.emptyList(); - private void ensureDuplicateIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - duplicate_ = new java.util.ArrayList(duplicate_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Duplicate, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder> duplicateBuilder_; - - /** - * repeated .Duplicate duplicate = 2; - */ - public java.util.List getDuplicateList() { - if (duplicateBuilder_ == null) { - return java.util.Collections.unmodifiableList(duplicate_); - } else { - return duplicateBuilder_.getMessageList(); - } - } - /** - * repeated .Duplicate duplicate = 2; - */ - public int getDuplicateCount() { - if (duplicateBuilder_ == null) { - return duplicate_.size(); - } else { - return duplicateBuilder_.getCount(); - } - } - /** - * repeated .Duplicate duplicate = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.Duplicate getDuplicate(int index) { - if (duplicateBuilder_ == null) { - return duplicate_.get(index); - } else { - return duplicateBuilder_.getMessage(index); - } - } - /** - * repeated .Duplicate duplicate = 2; - */ - public Builder setDuplicate( - int index, org.sonar.batch.protocol.output.BatchReport.Duplicate value) { - if (duplicateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDuplicateIsMutable(); - duplicate_.set(index, value); - onChanged(); - } else { - duplicateBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Duplicate duplicate = 2; - */ - public Builder setDuplicate( - int index, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder builderForValue) { - if (duplicateBuilder_ == null) { - ensureDuplicateIsMutable(); - duplicate_.set(index, builderForValue.build()); - onChanged(); - } else { - duplicateBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Duplicate duplicate = 2; - */ - public Builder addDuplicate(org.sonar.batch.protocol.output.BatchReport.Duplicate value) { - if (duplicateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDuplicateIsMutable(); - duplicate_.add(value); - onChanged(); - } else { - duplicateBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Duplicate duplicate = 2; - */ - public Builder addDuplicate( - int index, org.sonar.batch.protocol.output.BatchReport.Duplicate value) { - if (duplicateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDuplicateIsMutable(); - duplicate_.add(index, value); - onChanged(); - } else { - duplicateBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Duplicate duplicate = 2; - */ - public Builder addDuplicate( - org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder builderForValue) { - if (duplicateBuilder_ == null) { - ensureDuplicateIsMutable(); - duplicate_.add(builderForValue.build()); - onChanged(); - } else { - duplicateBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Duplicate duplicate = 2; - */ - public Builder addDuplicate( - int index, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder builderForValue) { - if (duplicateBuilder_ == null) { - ensureDuplicateIsMutable(); - duplicate_.add(index, builderForValue.build()); - onChanged(); - } else { - duplicateBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Duplicate duplicate = 2; - */ - public Builder addAllDuplicate( - java.lang.Iterable values) { - if (duplicateBuilder_ == null) { - ensureDuplicateIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, duplicate_); - onChanged(); - } else { - duplicateBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Duplicate duplicate = 2; - */ - public Builder clearDuplicate() { - if (duplicateBuilder_ == null) { - duplicate_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - duplicateBuilder_.clear(); - } - return this; - } - /** - * repeated .Duplicate duplicate = 2; - */ - public Builder removeDuplicate(int index) { - if (duplicateBuilder_ == null) { - ensureDuplicateIsMutable(); - duplicate_.remove(index); - onChanged(); - } else { - duplicateBuilder_.remove(index); - } - return this; - } - /** - * repeated .Duplicate duplicate = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder getDuplicateBuilder( - int index) { - return getDuplicateFieldBuilder().getBuilder(index); - } - /** - * repeated .Duplicate duplicate = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder getDuplicateOrBuilder( - int index) { - if (duplicateBuilder_ == null) { - return duplicate_.get(index); } else { - return duplicateBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Duplicate duplicate = 2; - */ - public java.util.List - getDuplicateOrBuilderList() { - if (duplicateBuilder_ != null) { - return duplicateBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(duplicate_); - } - } - /** - * repeated .Duplicate duplicate = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder addDuplicateBuilder() { - return getDuplicateFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.Duplicate.getDefaultInstance()); - } - /** - * repeated .Duplicate duplicate = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder addDuplicateBuilder( - int index) { - return getDuplicateFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.Duplicate.getDefaultInstance()); - } - /** - * repeated .Duplicate duplicate = 2; - */ - public java.util.List - getDuplicateBuilderList() { - return getDuplicateFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Duplicate, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder> - getDuplicateFieldBuilder() { - if (duplicateBuilder_ == null) { - duplicateBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.Duplicate, org.sonar.batch.protocol.output.BatchReport.Duplicate.Builder, org.sonar.batch.protocol.output.BatchReport.DuplicateOrBuilder>( - duplicate_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - duplicate_ = null; - } - return duplicateBuilder_; - } - - // @@protoc_insertion_point(builder_scope:Duplication) - } - - // @@protoc_insertion_point(class_scope:Duplication) - private static final org.sonar.batch.protocol.output.BatchReport.Duplication DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.Duplication(); - } - - public static org.sonar.batch.protocol.output.BatchReport.Duplication getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Duplication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Duplication(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.Duplication getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TextRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:TextRange) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 start_line = 1; - * - *
-     * Should never be null
-     * 
- */ - boolean hasStartLine(); - /** - * optional int32 start_line = 1; - * - *
-     * Should never be null
-     * 
- */ - int getStartLine(); - - /** - * optional int32 end_line = 2; - * - *
-     * End line (inclusive). Null means it is same as start line
-     * 
- */ - boolean hasEndLine(); - /** - * optional int32 end_line = 2; - * - *
-     * End line (inclusive). Null means it is same as start line
-     * 
- */ - int getEndLine(); - - /** - * optional int32 start_offset = 3; - * - *
-     * If null it means range starts at the first offset of start line
-     * 
- */ - boolean hasStartOffset(); - /** - * optional int32 start_offset = 3; - * - *
-     * If null it means range starts at the first offset of start line
-     * 
- */ - int getStartOffset(); - - /** - * optional int32 end_offset = 4; - * - *
-     * If null it means range ends at the last offset of end line
-     * 
- */ - boolean hasEndOffset(); - /** - * optional int32 end_offset = 4; - * - *
-     * If null it means range ends at the last offset of end line
-     * 
- */ - int getEndOffset(); - } - /** - * Protobuf type {@code TextRange} - * - *
-   * Lines start at 1 and line offsets start at 0
-   * 
- */ - public static final class TextRange extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:TextRange) - TextRangeOrBuilder { - // Use TextRange.newBuilder() to construct. - private TextRange(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TextRange() { - startLine_ = 0; - endLine_ = 0; - startOffset_ = 0; - endOffset_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TextRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - startLine_ = input.readInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - endLine_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - startOffset_ = input.readInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - endOffset_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_TextRange_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_TextRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.TextRange.class, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder.class); - } - - private int bitField0_; - public static final int START_LINE_FIELD_NUMBER = 1; - private int startLine_; - /** - * optional int32 start_line = 1; - * - *
-     * Should never be null
-     * 
- */ - public boolean hasStartLine() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 start_line = 1; - * - *
-     * Should never be null
-     * 
- */ - public int getStartLine() { - return startLine_; - } - - public static final int END_LINE_FIELD_NUMBER = 2; - private int endLine_; - /** - * optional int32 end_line = 2; - * - *
-     * End line (inclusive). Null means it is same as start line
-     * 
- */ - public boolean hasEndLine() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 end_line = 2; - * - *
-     * End line (inclusive). Null means it is same as start line
-     * 
- */ - public int getEndLine() { - return endLine_; - } - - public static final int START_OFFSET_FIELD_NUMBER = 3; - private int startOffset_; - /** - * optional int32 start_offset = 3; - * - *
-     * If null it means range starts at the first offset of start line
-     * 
- */ - public boolean hasStartOffset() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 start_offset = 3; - * - *
-     * If null it means range starts at the first offset of start line
-     * 
- */ - public int getStartOffset() { - return startOffset_; - } - - public static final int END_OFFSET_FIELD_NUMBER = 4; - private int endOffset_; - /** - * optional int32 end_offset = 4; - * - *
-     * If null it means range ends at the last offset of end line
-     * 
- */ - public boolean hasEndOffset() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 end_offset = 4; - * - *
-     * If null it means range ends at the last offset of end line
-     * 
- */ - public int getEndOffset() { - return endOffset_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, startLine_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, endLine_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, startOffset_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt32(4, endOffset_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, startLine_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, endLine_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, startOffset_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, endOffset_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.TextRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.TextRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.TextRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.TextRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.TextRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.TextRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.TextRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.TextRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.TextRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.TextRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.TextRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TextRange} - * - *
-     * Lines start at 1 and line offsets start at 0
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:TextRange) - org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_TextRange_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_TextRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.TextRange.class, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.TextRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - startLine_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - endLine_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - startOffset_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - endOffset_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_TextRange_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.TextRange getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.TextRange build() { - org.sonar.batch.protocol.output.BatchReport.TextRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.TextRange buildPartial() { - org.sonar.batch.protocol.output.BatchReport.TextRange result = new org.sonar.batch.protocol.output.BatchReport.TextRange(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.startLine_ = startLine_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.endLine_ = endLine_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.startOffset_ = startOffset_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.endOffset_ = endOffset_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.TextRange) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.TextRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.TextRange other) { - if (other == org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance()) return this; - if (other.hasStartLine()) { - setStartLine(other.getStartLine()); - } - if (other.hasEndLine()) { - setEndLine(other.getEndLine()); - } - if (other.hasStartOffset()) { - setStartOffset(other.getStartOffset()); - } - if (other.hasEndOffset()) { - setEndOffset(other.getEndOffset()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.TextRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.TextRange) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int startLine_ ; - /** - * optional int32 start_line = 1; - * - *
-       * Should never be null
-       * 
- */ - public boolean hasStartLine() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 start_line = 1; - * - *
-       * Should never be null
-       * 
- */ - public int getStartLine() { - return startLine_; - } - /** - * optional int32 start_line = 1; - * - *
-       * Should never be null
-       * 
- */ - public Builder setStartLine(int value) { - bitField0_ |= 0x00000001; - startLine_ = value; - onChanged(); - return this; - } - /** - * optional int32 start_line = 1; - * - *
-       * Should never be null
-       * 
- */ - public Builder clearStartLine() { - bitField0_ = (bitField0_ & ~0x00000001); - startLine_ = 0; - onChanged(); - return this; - } - - private int endLine_ ; - /** - * optional int32 end_line = 2; - * - *
-       * End line (inclusive). Null means it is same as start line
-       * 
- */ - public boolean hasEndLine() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 end_line = 2; - * - *
-       * End line (inclusive). Null means it is same as start line
-       * 
- */ - public int getEndLine() { - return endLine_; - } - /** - * optional int32 end_line = 2; - * - *
-       * End line (inclusive). Null means it is same as start line
-       * 
- */ - public Builder setEndLine(int value) { - bitField0_ |= 0x00000002; - endLine_ = value; - onChanged(); - return this; - } - /** - * optional int32 end_line = 2; - * - *
-       * End line (inclusive). Null means it is same as start line
-       * 
- */ - public Builder clearEndLine() { - bitField0_ = (bitField0_ & ~0x00000002); - endLine_ = 0; - onChanged(); - return this; - } - - private int startOffset_ ; - /** - * optional int32 start_offset = 3; - * - *
-       * If null it means range starts at the first offset of start line
-       * 
- */ - public boolean hasStartOffset() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 start_offset = 3; - * - *
-       * If null it means range starts at the first offset of start line
-       * 
- */ - public int getStartOffset() { - return startOffset_; - } - /** - * optional int32 start_offset = 3; - * - *
-       * If null it means range starts at the first offset of start line
-       * 
- */ - public Builder setStartOffset(int value) { - bitField0_ |= 0x00000004; - startOffset_ = value; - onChanged(); - return this; - } - /** - * optional int32 start_offset = 3; - * - *
-       * If null it means range starts at the first offset of start line
-       * 
- */ - public Builder clearStartOffset() { - bitField0_ = (bitField0_ & ~0x00000004); - startOffset_ = 0; - onChanged(); - return this; - } - - private int endOffset_ ; - /** - * optional int32 end_offset = 4; - * - *
-       * If null it means range ends at the last offset of end line
-       * 
- */ - public boolean hasEndOffset() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 end_offset = 4; - * - *
-       * If null it means range ends at the last offset of end line
-       * 
- */ - public int getEndOffset() { - return endOffset_; - } - /** - * optional int32 end_offset = 4; - * - *
-       * If null it means range ends at the last offset of end line
-       * 
- */ - public Builder setEndOffset(int value) { - bitField0_ |= 0x00000008; - endOffset_ = value; - onChanged(); - return this; - } - /** - * optional int32 end_offset = 4; - * - *
-       * If null it means range ends at the last offset of end line
-       * 
- */ - public Builder clearEndOffset() { - bitField0_ = (bitField0_ & ~0x00000008); - endOffset_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:TextRange) - } - - // @@protoc_insertion_point(class_scope:TextRange) - private static final org.sonar.batch.protocol.output.BatchReport.TextRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.TextRange(); - } - - public static org.sonar.batch.protocol.output.BatchReport.TextRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TextRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new TextRange(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.TextRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SymbolOrBuilder extends - // @@protoc_insertion_point(interface_extends:Symbol) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .TextRange declaration = 1; - */ - boolean hasDeclaration(); - /** - * optional .TextRange declaration = 1; - */ - org.sonar.batch.protocol.output.BatchReport.TextRange getDeclaration(); - /** - * optional .TextRange declaration = 1; - */ - org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getDeclarationOrBuilder(); - - /** - * repeated .TextRange reference = 2; - */ - java.util.List - getReferenceList(); - /** - * repeated .TextRange reference = 2; - */ - org.sonar.batch.protocol.output.BatchReport.TextRange getReference(int index); - /** - * repeated .TextRange reference = 2; - */ - int getReferenceCount(); - /** - * repeated .TextRange reference = 2; - */ - java.util.List - getReferenceOrBuilderList(); - /** - * repeated .TextRange reference = 2; - */ - org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getReferenceOrBuilder( - int index); - } - /** - * Protobuf type {@code Symbol} - */ - public static final class Symbol extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Symbol) - SymbolOrBuilder { - // Use Symbol.newBuilder() to construct. - private Symbol(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Symbol() { - reference_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Symbol( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.sonar.batch.protocol.output.BatchReport.TextRange.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = declaration_.toBuilder(); - } - declaration_ = input.readMessage(org.sonar.batch.protocol.output.BatchReport.TextRange.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(declaration_); - declaration_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - reference_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - reference_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.TextRange.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - reference_ = java.util.Collections.unmodifiableList(reference_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbol_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbol_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Symbol.class, org.sonar.batch.protocol.output.BatchReport.Symbol.Builder.class); - } - - private int bitField0_; - public static final int DECLARATION_FIELD_NUMBER = 1; - private org.sonar.batch.protocol.output.BatchReport.TextRange declaration_; - /** - * optional .TextRange declaration = 1; - */ - public boolean hasDeclaration() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .TextRange declaration = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRange getDeclaration() { - return declaration_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : declaration_; - } - /** - * optional .TextRange declaration = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getDeclarationOrBuilder() { - return declaration_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : declaration_; - } - - public static final int REFERENCE_FIELD_NUMBER = 2; - private java.util.List reference_; - /** - * repeated .TextRange reference = 2; - */ - public java.util.List getReferenceList() { - return reference_; - } - /** - * repeated .TextRange reference = 2; - */ - public java.util.List - getReferenceOrBuilderList() { - return reference_; - } - /** - * repeated .TextRange reference = 2; - */ - public int getReferenceCount() { - return reference_.size(); - } - /** - * repeated .TextRange reference = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRange getReference(int index) { - return reference_.get(index); - } - /** - * repeated .TextRange reference = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getReferenceOrBuilder( - int index) { - return reference_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getDeclaration()); - } - for (int i = 0; i < reference_.size(); i++) { - output.writeMessage(2, reference_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDeclaration()); - } - for (int i = 0; i < reference_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, reference_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.Symbol parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Symbol parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Symbol parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Symbol parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Symbol parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Symbol parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Symbol parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Symbol parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Symbol parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Symbol parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Symbol prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Symbol} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Symbol) - org.sonar.batch.protocol.output.BatchReport.SymbolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbol_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbol_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Symbol.class, org.sonar.batch.protocol.output.BatchReport.Symbol.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.Symbol.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getDeclarationFieldBuilder(); - getReferenceFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (declarationBuilder_ == null) { - declaration_ = null; - } else { - declarationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (referenceBuilder_ == null) { - reference_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - referenceBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Symbol_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.Symbol getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.Symbol.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.Symbol build() { - org.sonar.batch.protocol.output.BatchReport.Symbol result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.Symbol buildPartial() { - org.sonar.batch.protocol.output.BatchReport.Symbol result = new org.sonar.batch.protocol.output.BatchReport.Symbol(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (declarationBuilder_ == null) { - result.declaration_ = declaration_; - } else { - result.declaration_ = declarationBuilder_.build(); - } - if (referenceBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - reference_ = java.util.Collections.unmodifiableList(reference_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.reference_ = reference_; - } else { - result.reference_ = referenceBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.Symbol) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Symbol)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Symbol other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Symbol.getDefaultInstance()) return this; - if (other.hasDeclaration()) { - mergeDeclaration(other.getDeclaration()); - } - if (referenceBuilder_ == null) { - if (!other.reference_.isEmpty()) { - if (reference_.isEmpty()) { - reference_ = other.reference_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureReferenceIsMutable(); - reference_.addAll(other.reference_); - } - onChanged(); - } - } else { - if (!other.reference_.isEmpty()) { - if (referenceBuilder_.isEmpty()) { - referenceBuilder_.dispose(); - referenceBuilder_ = null; - reference_ = other.reference_; - bitField0_ = (bitField0_ & ~0x00000002); - referenceBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getReferenceFieldBuilder() : null; - } else { - referenceBuilder_.addAllMessages(other.reference_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.Symbol parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Symbol) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonar.batch.protocol.output.BatchReport.TextRange declaration_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder> declarationBuilder_; - /** - * optional .TextRange declaration = 1; - */ - public boolean hasDeclaration() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .TextRange declaration = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRange getDeclaration() { - if (declarationBuilder_ == null) { - return declaration_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : declaration_; - } else { - return declarationBuilder_.getMessage(); - } - } - /** - * optional .TextRange declaration = 1; - */ - public Builder setDeclaration(org.sonar.batch.protocol.output.BatchReport.TextRange value) { - if (declarationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - declaration_ = value; - onChanged(); - } else { - declarationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .TextRange declaration = 1; - */ - public Builder setDeclaration( - org.sonar.batch.protocol.output.BatchReport.TextRange.Builder builderForValue) { - if (declarationBuilder_ == null) { - declaration_ = builderForValue.build(); - onChanged(); - } else { - declarationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .TextRange declaration = 1; - */ - public Builder mergeDeclaration(org.sonar.batch.protocol.output.BatchReport.TextRange value) { - if (declarationBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - declaration_ != null && - declaration_ != org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance()) { - declaration_ = - org.sonar.batch.protocol.output.BatchReport.TextRange.newBuilder(declaration_).mergeFrom(value).buildPartial(); - } else { - declaration_ = value; - } - onChanged(); - } else { - declarationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .TextRange declaration = 1; - */ - public Builder clearDeclaration() { - if (declarationBuilder_ == null) { - declaration_ = null; - onChanged(); - } else { - declarationBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .TextRange declaration = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRange.Builder getDeclarationBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getDeclarationFieldBuilder().getBuilder(); - } - /** - * optional .TextRange declaration = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getDeclarationOrBuilder() { - if (declarationBuilder_ != null) { - return declarationBuilder_.getMessageOrBuilder(); - } else { - return declaration_ == null ? - org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : declaration_; - } - } - /** - * optional .TextRange declaration = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder> - getDeclarationFieldBuilder() { - if (declarationBuilder_ == null) { - declarationBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder>( - getDeclaration(), - getParentForChildren(), - isClean()); - declaration_ = null; - } - return declarationBuilder_; - } - - private java.util.List reference_ = - java.util.Collections.emptyList(); - private void ensureReferenceIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - reference_ = new java.util.ArrayList(reference_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder> referenceBuilder_; - - /** - * repeated .TextRange reference = 2; - */ - public java.util.List getReferenceList() { - if (referenceBuilder_ == null) { - return java.util.Collections.unmodifiableList(reference_); - } else { - return referenceBuilder_.getMessageList(); - } - } - /** - * repeated .TextRange reference = 2; - */ - public int getReferenceCount() { - if (referenceBuilder_ == null) { - return reference_.size(); - } else { - return referenceBuilder_.getCount(); - } - } - /** - * repeated .TextRange reference = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRange getReference(int index) { - if (referenceBuilder_ == null) { - return reference_.get(index); - } else { - return referenceBuilder_.getMessage(index); - } - } - /** - * repeated .TextRange reference = 2; - */ - public Builder setReference( - int index, org.sonar.batch.protocol.output.BatchReport.TextRange value) { - if (referenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReferenceIsMutable(); - reference_.set(index, value); - onChanged(); - } else { - referenceBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .TextRange reference = 2; - */ - public Builder setReference( - int index, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder builderForValue) { - if (referenceBuilder_ == null) { - ensureReferenceIsMutable(); - reference_.set(index, builderForValue.build()); - onChanged(); - } else { - referenceBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .TextRange reference = 2; - */ - public Builder addReference(org.sonar.batch.protocol.output.BatchReport.TextRange value) { - if (referenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReferenceIsMutable(); - reference_.add(value); - onChanged(); - } else { - referenceBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .TextRange reference = 2; - */ - public Builder addReference( - int index, org.sonar.batch.protocol.output.BatchReport.TextRange value) { - if (referenceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReferenceIsMutable(); - reference_.add(index, value); - onChanged(); - } else { - referenceBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .TextRange reference = 2; - */ - public Builder addReference( - org.sonar.batch.protocol.output.BatchReport.TextRange.Builder builderForValue) { - if (referenceBuilder_ == null) { - ensureReferenceIsMutable(); - reference_.add(builderForValue.build()); - onChanged(); - } else { - referenceBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .TextRange reference = 2; - */ - public Builder addReference( - int index, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder builderForValue) { - if (referenceBuilder_ == null) { - ensureReferenceIsMutable(); - reference_.add(index, builderForValue.build()); - onChanged(); - } else { - referenceBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .TextRange reference = 2; - */ - public Builder addAllReference( - java.lang.Iterable values) { - if (referenceBuilder_ == null) { - ensureReferenceIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, reference_); - onChanged(); - } else { - referenceBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .TextRange reference = 2; - */ - public Builder clearReference() { - if (referenceBuilder_ == null) { - reference_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - referenceBuilder_.clear(); - } - return this; - } - /** - * repeated .TextRange reference = 2; - */ - public Builder removeReference(int index) { - if (referenceBuilder_ == null) { - ensureReferenceIsMutable(); - reference_.remove(index); - onChanged(); - } else { - referenceBuilder_.remove(index); - } - return this; - } - /** - * repeated .TextRange reference = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRange.Builder getReferenceBuilder( - int index) { - return getReferenceFieldBuilder().getBuilder(index); - } - /** - * repeated .TextRange reference = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getReferenceOrBuilder( - int index) { - if (referenceBuilder_ == null) { - return reference_.get(index); } else { - return referenceBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .TextRange reference = 2; - */ - public java.util.List - getReferenceOrBuilderList() { - if (referenceBuilder_ != null) { - return referenceBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(reference_); - } - } - /** - * repeated .TextRange reference = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRange.Builder addReferenceBuilder() { - return getReferenceFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance()); - } - /** - * repeated .TextRange reference = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRange.Builder addReferenceBuilder( - int index) { - return getReferenceFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance()); - } - /** - * repeated .TextRange reference = 2; - */ - public java.util.List - getReferenceBuilderList() { - return getReferenceFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder> - getReferenceFieldBuilder() { - if (referenceBuilder_ == null) { - referenceBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder>( - reference_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - reference_ = null; - } - return referenceBuilder_; - } - - // @@protoc_insertion_point(builder_scope:Symbol) - } - - // @@protoc_insertion_point(class_scope:Symbol) - private static final org.sonar.batch.protocol.output.BatchReport.Symbol DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.Symbol(); - } - - public static org.sonar.batch.protocol.output.BatchReport.Symbol getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Symbol parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Symbol(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.Symbol getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CoverageOrBuilder extends - // @@protoc_insertion_point(interface_extends:Coverage) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 line = 1; - */ - boolean hasLine(); - /** - * optional int32 line = 1; - */ - int getLine(); - - /** - * optional int32 conditions = 2; - * - *
-     * Number of conditions to cover (if set, the value must be greater than 0)
-     * 
- */ - boolean hasConditions(); - /** - * optional int32 conditions = 2; - * - *
-     * Number of conditions to cover (if set, the value must be greater than 0)
-     * 
- */ - int getConditions(); - - /** - * optional bool ut_hits = 3; - * - *
-     * Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
-     * 
- */ - boolean hasUtHits(); - /** - * optional bool ut_hits = 3; - * - *
-     * Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
-     * 
- */ - boolean getUtHits(); - - /** - * optional bool it_hits = 4; - * - *
-     * Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
-     * 
- */ - boolean hasItHits(); - /** - * optional bool it_hits = 4; - * - *
-     * Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
-     * 
- */ - boolean getItHits(); - - /** - * optional int32 ut_covered_conditions = 5; - * - *
-     * Number of conditions covered by unit tests
-     * 
- */ - boolean hasUtCoveredConditions(); - /** - * optional int32 ut_covered_conditions = 5; - * - *
-     * Number of conditions covered by unit tests
-     * 
- */ - int getUtCoveredConditions(); - - /** - * optional int32 it_covered_conditions = 6; - * - *
-     * Number of conditions covered by integration tests
-     * 
- */ - boolean hasItCoveredConditions(); - /** - * optional int32 it_covered_conditions = 6; - * - *
-     * Number of conditions covered by integration tests
-     * 
- */ - int getItCoveredConditions(); - - /** - * optional int32 overall_covered_conditions = 7; - * - *
-     * Number of conditions covered by overall tests
-     * 
- */ - boolean hasOverallCoveredConditions(); - /** - * optional int32 overall_covered_conditions = 7; - * - *
-     * Number of conditions covered by overall tests
-     * 
- */ - int getOverallCoveredConditions(); - } - /** - * Protobuf type {@code Coverage} - * - *
-   * Only FILE component has coverage information, and only executable lines should contains this information.
-   * TODO rename it LineCoverage ?
-   * 
- */ - public static final class Coverage extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Coverage) - CoverageOrBuilder { - // Use Coverage.newBuilder() to construct. - private Coverage(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Coverage() { - line_ = 0; - conditions_ = 0; - utHits_ = false; - itHits_ = false; - utCoveredConditions_ = 0; - itCoveredConditions_ = 0; - overallCoveredConditions_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Coverage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - line_ = input.readInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - conditions_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - utHits_ = input.readBool(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - itHits_ = input.readBool(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - utCoveredConditions_ = input.readInt32(); - break; - } - case 48: { - bitField0_ |= 0x00000020; - itCoveredConditions_ = input.readInt32(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - overallCoveredConditions_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Coverage_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Coverage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Coverage.class, org.sonar.batch.protocol.output.BatchReport.Coverage.Builder.class); - } - - private int bitField0_; - public static final int LINE_FIELD_NUMBER = 1; - private int line_; - /** - * optional int32 line = 1; - */ - public boolean hasLine() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 line = 1; - */ - public int getLine() { - return line_; - } - - public static final int CONDITIONS_FIELD_NUMBER = 2; - private int conditions_; - /** - * optional int32 conditions = 2; - * - *
-     * Number of conditions to cover (if set, the value must be greater than 0)
-     * 
- */ - public boolean hasConditions() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 conditions = 2; - * - *
-     * Number of conditions to cover (if set, the value must be greater than 0)
-     * 
- */ - public int getConditions() { - return conditions_; - } - - public static final int UT_HITS_FIELD_NUMBER = 3; - private boolean utHits_; - /** - * optional bool ut_hits = 3; - * - *
-     * Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
-     * 
- */ - public boolean hasUtHits() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bool ut_hits = 3; - * - *
-     * Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
-     * 
- */ - public boolean getUtHits() { - return utHits_; - } - - public static final int IT_HITS_FIELD_NUMBER = 4; - private boolean itHits_; - /** - * optional bool it_hits = 4; - * - *
-     * Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
-     * 
- */ - public boolean hasItHits() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool it_hits = 4; - * - *
-     * Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
-     * 
- */ - public boolean getItHits() { - return itHits_; - } - - public static final int UT_COVERED_CONDITIONS_FIELD_NUMBER = 5; - private int utCoveredConditions_; - /** - * optional int32 ut_covered_conditions = 5; - * - *
-     * Number of conditions covered by unit tests
-     * 
- */ - public boolean hasUtCoveredConditions() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 ut_covered_conditions = 5; - * - *
-     * Number of conditions covered by unit tests
-     * 
- */ - public int getUtCoveredConditions() { - return utCoveredConditions_; - } - - public static final int IT_COVERED_CONDITIONS_FIELD_NUMBER = 6; - private int itCoveredConditions_; - /** - * optional int32 it_covered_conditions = 6; - * - *
-     * Number of conditions covered by integration tests
-     * 
- */ - public boolean hasItCoveredConditions() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional int32 it_covered_conditions = 6; - * - *
-     * Number of conditions covered by integration tests
-     * 
- */ - public int getItCoveredConditions() { - return itCoveredConditions_; - } - - public static final int OVERALL_COVERED_CONDITIONS_FIELD_NUMBER = 7; - private int overallCoveredConditions_; - /** - * optional int32 overall_covered_conditions = 7; - * - *
-     * Number of conditions covered by overall tests
-     * 
- */ - public boolean hasOverallCoveredConditions() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional int32 overall_covered_conditions = 7; - * - *
-     * Number of conditions covered by overall tests
-     * 
- */ - public int getOverallCoveredConditions() { - return overallCoveredConditions_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, line_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, conditions_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBool(3, utHits_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBool(4, itHits_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt32(5, utCoveredConditions_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeInt32(6, itCoveredConditions_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeInt32(7, overallCoveredConditions_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, line_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, conditions_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, utHits_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, itHits_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, utCoveredConditions_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, itCoveredConditions_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, overallCoveredConditions_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.Coverage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Coverage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Coverage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Coverage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Coverage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Coverage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Coverage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Coverage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Coverage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Coverage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Coverage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Coverage} - * - *
-     * Only FILE component has coverage information, and only executable lines should contains this information.
-     * TODO rename it LineCoverage ?
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Coverage) - org.sonar.batch.protocol.output.BatchReport.CoverageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Coverage_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Coverage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Coverage.class, org.sonar.batch.protocol.output.BatchReport.Coverage.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.Coverage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - line_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - conditions_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - utHits_ = false; - bitField0_ = (bitField0_ & ~0x00000004); - itHits_ = false; - bitField0_ = (bitField0_ & ~0x00000008); - utCoveredConditions_ = 0; - bitField0_ = (bitField0_ & ~0x00000010); - itCoveredConditions_ = 0; - bitField0_ = (bitField0_ & ~0x00000020); - overallCoveredConditions_ = 0; - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Coverage_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.Coverage getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.Coverage.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.Coverage build() { - org.sonar.batch.protocol.output.BatchReport.Coverage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.Coverage buildPartial() { - org.sonar.batch.protocol.output.BatchReport.Coverage result = new org.sonar.batch.protocol.output.BatchReport.Coverage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.line_ = line_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.conditions_ = conditions_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.utHits_ = utHits_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.itHits_ = itHits_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.utCoveredConditions_ = utCoveredConditions_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.itCoveredConditions_ = itCoveredConditions_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.overallCoveredConditions_ = overallCoveredConditions_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.Coverage) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Coverage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Coverage other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Coverage.getDefaultInstance()) return this; - if (other.hasLine()) { - setLine(other.getLine()); - } - if (other.hasConditions()) { - setConditions(other.getConditions()); - } - if (other.hasUtHits()) { - setUtHits(other.getUtHits()); - } - if (other.hasItHits()) { - setItHits(other.getItHits()); - } - if (other.hasUtCoveredConditions()) { - setUtCoveredConditions(other.getUtCoveredConditions()); - } - if (other.hasItCoveredConditions()) { - setItCoveredConditions(other.getItCoveredConditions()); - } - if (other.hasOverallCoveredConditions()) { - setOverallCoveredConditions(other.getOverallCoveredConditions()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.Coverage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Coverage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int line_ ; - /** - * optional int32 line = 1; - */ - public boolean hasLine() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 line = 1; - */ - public int getLine() { - return line_; - } - /** - * optional int32 line = 1; - */ - public Builder setLine(int value) { - bitField0_ |= 0x00000001; - line_ = value; - onChanged(); - return this; - } - /** - * optional int32 line = 1; - */ - public Builder clearLine() { - bitField0_ = (bitField0_ & ~0x00000001); - line_ = 0; - onChanged(); - return this; - } - - private int conditions_ ; - /** - * optional int32 conditions = 2; - * - *
-       * Number of conditions to cover (if set, the value must be greater than 0)
-       * 
- */ - public boolean hasConditions() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 conditions = 2; - * - *
-       * Number of conditions to cover (if set, the value must be greater than 0)
-       * 
- */ - public int getConditions() { - return conditions_; - } - /** - * optional int32 conditions = 2; - * - *
-       * Number of conditions to cover (if set, the value must be greater than 0)
-       * 
- */ - public Builder setConditions(int value) { - bitField0_ |= 0x00000002; - conditions_ = value; - onChanged(); - return this; - } - /** - * optional int32 conditions = 2; - * - *
-       * Number of conditions to cover (if set, the value must be greater than 0)
-       * 
- */ - public Builder clearConditions() { - bitField0_ = (bitField0_ & ~0x00000002); - conditions_ = 0; - onChanged(); - return this; - } - - private boolean utHits_ ; - /** - * optional bool ut_hits = 3; - * - *
-       * Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
-       * 
- */ - public boolean hasUtHits() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional bool ut_hits = 3; - * - *
-       * Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
-       * 
- */ - public boolean getUtHits() { - return utHits_; - } - /** - * optional bool ut_hits = 3; - * - *
-       * Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
-       * 
- */ - public Builder setUtHits(boolean value) { - bitField0_ |= 0x00000004; - utHits_ = value; - onChanged(); - return this; - } - /** - * optional bool ut_hits = 3; - * - *
-       * Is the line has been touched by a unit test ? Returning false means that no test has touched this executable line.
-       * 
- */ - public Builder clearUtHits() { - bitField0_ = (bitField0_ & ~0x00000004); - utHits_ = false; - onChanged(); - return this; - } - - private boolean itHits_ ; - /** - * optional bool it_hits = 4; - * - *
-       * Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
-       * 
- */ - public boolean hasItHits() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool it_hits = 4; - * - *
-       * Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
-       * 
- */ - public boolean getItHits() { - return itHits_; - } - /** - * optional bool it_hits = 4; - * - *
-       * Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
-       * 
- */ - public Builder setItHits(boolean value) { - bitField0_ |= 0x00000008; - itHits_ = value; - onChanged(); - return this; - } - /** - * optional bool it_hits = 4; - * - *
-       * Is the line has been touched by a integration test ? Returning false means that no test has touched this executable line.
-       * 
- */ - public Builder clearItHits() { - bitField0_ = (bitField0_ & ~0x00000008); - itHits_ = false; - onChanged(); - return this; - } - - private int utCoveredConditions_ ; - /** - * optional int32 ut_covered_conditions = 5; - * - *
-       * Number of conditions covered by unit tests
-       * 
- */ - public boolean hasUtCoveredConditions() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 ut_covered_conditions = 5; - * - *
-       * Number of conditions covered by unit tests
-       * 
- */ - public int getUtCoveredConditions() { - return utCoveredConditions_; - } - /** - * optional int32 ut_covered_conditions = 5; - * - *
-       * Number of conditions covered by unit tests
-       * 
- */ - public Builder setUtCoveredConditions(int value) { - bitField0_ |= 0x00000010; - utCoveredConditions_ = value; - onChanged(); - return this; - } - /** - * optional int32 ut_covered_conditions = 5; - * - *
-       * Number of conditions covered by unit tests
-       * 
- */ - public Builder clearUtCoveredConditions() { - bitField0_ = (bitField0_ & ~0x00000010); - utCoveredConditions_ = 0; - onChanged(); - return this; - } - - private int itCoveredConditions_ ; - /** - * optional int32 it_covered_conditions = 6; - * - *
-       * Number of conditions covered by integration tests
-       * 
- */ - public boolean hasItCoveredConditions() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional int32 it_covered_conditions = 6; - * - *
-       * Number of conditions covered by integration tests
-       * 
- */ - public int getItCoveredConditions() { - return itCoveredConditions_; - } - /** - * optional int32 it_covered_conditions = 6; - * - *
-       * Number of conditions covered by integration tests
-       * 
- */ - public Builder setItCoveredConditions(int value) { - bitField0_ |= 0x00000020; - itCoveredConditions_ = value; - onChanged(); - return this; - } - /** - * optional int32 it_covered_conditions = 6; - * - *
-       * Number of conditions covered by integration tests
-       * 
- */ - public Builder clearItCoveredConditions() { - bitField0_ = (bitField0_ & ~0x00000020); - itCoveredConditions_ = 0; - onChanged(); - return this; - } - - private int overallCoveredConditions_ ; - /** - * optional int32 overall_covered_conditions = 7; - * - *
-       * Number of conditions covered by overall tests
-       * 
- */ - public boolean hasOverallCoveredConditions() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional int32 overall_covered_conditions = 7; - * - *
-       * Number of conditions covered by overall tests
-       * 
- */ - public int getOverallCoveredConditions() { - return overallCoveredConditions_; - } - /** - * optional int32 overall_covered_conditions = 7; - * - *
-       * Number of conditions covered by overall tests
-       * 
- */ - public Builder setOverallCoveredConditions(int value) { - bitField0_ |= 0x00000040; - overallCoveredConditions_ = value; - onChanged(); - return this; - } - /** - * optional int32 overall_covered_conditions = 7; - * - *
-       * Number of conditions covered by overall tests
-       * 
- */ - public Builder clearOverallCoveredConditions() { - bitField0_ = (bitField0_ & ~0x00000040); - overallCoveredConditions_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:Coverage) - } - - // @@protoc_insertion_point(class_scope:Coverage) - private static final org.sonar.batch.protocol.output.BatchReport.Coverage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.Coverage(); - } - - public static org.sonar.batch.protocol.output.BatchReport.Coverage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Coverage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Coverage(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.Coverage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SyntaxHighlightingOrBuilder extends - // @@protoc_insertion_point(interface_extends:SyntaxHighlighting) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .TextRange range = 1; - */ - boolean hasRange(); - /** - * optional .TextRange range = 1; - */ - org.sonar.batch.protocol.output.BatchReport.TextRange getRange(); - /** - * optional .TextRange range = 1; - */ - org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getRangeOrBuilder(); - - /** - * optional .HighlightingType type = 2; - */ - boolean hasType(); - /** - * optional .HighlightingType type = 2; - */ - org.sonar.batch.protocol.Constants.HighlightingType getType(); - } - /** - * Protobuf type {@code SyntaxHighlighting} - * - *
-   * Must be sorted by line and start offset
-   * TODO rename it SyntaxHighlightingRule ?
-   * 
- */ - public static final class SyntaxHighlighting extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:SyntaxHighlighting) - SyntaxHighlightingOrBuilder { - // Use SyntaxHighlighting.newBuilder() to construct. - private SyntaxHighlighting(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SyntaxHighlighting() { - type_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SyntaxHighlighting( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.sonar.batch.protocol.output.BatchReport.TextRange.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = range_.toBuilder(); - } - range_ = input.readMessage(org.sonar.batch.protocol.output.BatchReport.TextRange.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(range_); - range_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 16: { - int rawValue = input.readEnum(); - org.sonar.batch.protocol.Constants.HighlightingType value = org.sonar.batch.protocol.Constants.HighlightingType.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - type_ = rawValue; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_SyntaxHighlighting_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_SyntaxHighlighting_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.class, org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.Builder.class); - } - - private int bitField0_; - public static final int RANGE_FIELD_NUMBER = 1; - private org.sonar.batch.protocol.output.BatchReport.TextRange range_; - /** - * optional .TextRange range = 1; - */ - public boolean hasRange() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .TextRange range = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRange getRange() { - return range_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : range_; - } - /** - * optional .TextRange range = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getRangeOrBuilder() { - return range_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : range_; - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_; - /** - * optional .HighlightingType type = 2; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .HighlightingType type = 2; - */ - public org.sonar.batch.protocol.Constants.HighlightingType getType() { - org.sonar.batch.protocol.Constants.HighlightingType result = org.sonar.batch.protocol.Constants.HighlightingType.valueOf(type_); - return result == null ? org.sonar.batch.protocol.Constants.HighlightingType.ANNOTATION : result; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getRange()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, type_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRange()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code SyntaxHighlighting} - * - *
-     * Must be sorted by line and start offset
-     * TODO rename it SyntaxHighlightingRule ?
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:SyntaxHighlighting) - org.sonar.batch.protocol.output.BatchReport.SyntaxHighlightingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_SyntaxHighlighting_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_SyntaxHighlighting_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.class, org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRangeFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (rangeBuilder_ == null) { - range_ = null; - } else { - rangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_SyntaxHighlighting_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting build() { - org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting buildPartial() { - org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting result = new org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (rangeBuilder_ == null) { - result.range_ = range_; - } else { - result.range_ = rangeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.type_ = type_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting other) { - if (other == org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting.getDefaultInstance()) return this; - if (other.hasRange()) { - mergeRange(other.getRange()); - } - if (other.hasType()) { - setType(other.getType()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonar.batch.protocol.output.BatchReport.TextRange range_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder> rangeBuilder_; - /** - * optional .TextRange range = 1; - */ - public boolean hasRange() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .TextRange range = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRange getRange() { - if (rangeBuilder_ == null) { - return range_ == null ? org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : range_; - } else { - return rangeBuilder_.getMessage(); - } - } - /** - * optional .TextRange range = 1; - */ - public Builder setRange(org.sonar.batch.protocol.output.BatchReport.TextRange value) { - if (rangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - range_ = value; - onChanged(); - } else { - rangeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .TextRange range = 1; - */ - public Builder setRange( - org.sonar.batch.protocol.output.BatchReport.TextRange.Builder builderForValue) { - if (rangeBuilder_ == null) { - range_ = builderForValue.build(); - onChanged(); - } else { - rangeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .TextRange range = 1; - */ - public Builder mergeRange(org.sonar.batch.protocol.output.BatchReport.TextRange value) { - if (rangeBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - range_ != null && - range_ != org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance()) { - range_ = - org.sonar.batch.protocol.output.BatchReport.TextRange.newBuilder(range_).mergeFrom(value).buildPartial(); - } else { - range_ = value; - } - onChanged(); - } else { - rangeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .TextRange range = 1; - */ - public Builder clearRange() { - if (rangeBuilder_ == null) { - range_ = null; - onChanged(); - } else { - rangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .TextRange range = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRange.Builder getRangeBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRangeFieldBuilder().getBuilder(); - } - /** - * optional .TextRange range = 1; - */ - public org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder getRangeOrBuilder() { - if (rangeBuilder_ != null) { - return rangeBuilder_.getMessageOrBuilder(); - } else { - return range_ == null ? - org.sonar.batch.protocol.output.BatchReport.TextRange.getDefaultInstance() : range_; - } - } - /** - * optional .TextRange range = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder> - getRangeFieldBuilder() { - if (rangeBuilder_ == null) { - rangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.TextRange, org.sonar.batch.protocol.output.BatchReport.TextRange.Builder, org.sonar.batch.protocol.output.BatchReport.TextRangeOrBuilder>( - getRange(), - getParentForChildren(), - isClean()); - range_ = null; - } - return rangeBuilder_; - } - - private int type_ = 0; - /** - * optional .HighlightingType type = 2; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .HighlightingType type = 2; - */ - public org.sonar.batch.protocol.Constants.HighlightingType getType() { - org.sonar.batch.protocol.Constants.HighlightingType result = org.sonar.batch.protocol.Constants.HighlightingType.valueOf(type_); - return result == null ? org.sonar.batch.protocol.Constants.HighlightingType.ANNOTATION : result; - } - /** - * optional .HighlightingType type = 2; - */ - public Builder setType(org.sonar.batch.protocol.Constants.HighlightingType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .HighlightingType type = 2; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000002); - type_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:SyntaxHighlighting) - } - - // @@protoc_insertion_point(class_scope:SyntaxHighlighting) - private static final org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting(); - } - - public static org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SyntaxHighlighting parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new SyntaxHighlighting(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.SyntaxHighlighting getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TestOrBuilder extends - // @@protoc_insertion_point(interface_extends:Test) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string name = 1; - */ - boolean hasName(); - /** - * optional string name = 1; - */ - java.lang.String getName(); - /** - * optional string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional .TestStatus status = 2; - */ - boolean hasStatus(); - /** - * optional .TestStatus status = 2; - */ - org.sonar.batch.protocol.Constants.TestStatus getStatus(); - - /** - * optional int64 duration_in_ms = 3; - */ - boolean hasDurationInMs(); - /** - * optional int64 duration_in_ms = 3; - */ - long getDurationInMs(); - - /** - * optional string stacktrace = 4; - */ - boolean hasStacktrace(); - /** - * optional string stacktrace = 4; - */ - java.lang.String getStacktrace(); - /** - * optional string stacktrace = 4; - */ - com.google.protobuf.ByteString - getStacktraceBytes(); - - /** - * optional string msg = 5; - */ - boolean hasMsg(); - /** - * optional string msg = 5; - */ - java.lang.String getMsg(); - /** - * optional string msg = 5; - */ - com.google.protobuf.ByteString - getMsgBytes(); - } - /** - * Protobuf type {@code Test} - */ - public static final class Test extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Test) - TestOrBuilder { - // Use Test.newBuilder() to construct. - private Test(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Test() { - name_ = ""; - status_ = 1; - durationInMs_ = 0L; - stacktrace_ = ""; - msg_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Test( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 16: { - int rawValue = input.readEnum(); - org.sonar.batch.protocol.Constants.TestStatus value = org.sonar.batch.protocol.Constants.TestStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(2, rawValue); - } else { - bitField0_ |= 0x00000002; - status_ = rawValue; - } - break; - } - case 24: { - bitField0_ |= 0x00000004; - durationInMs_ = input.readInt64(); - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - stacktrace_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - msg_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Test_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Test_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Test.class, org.sonar.batch.protocol.output.BatchReport.Test.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * optional string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 2; - private int status_; - /** - * optional .TestStatus status = 2; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .TestStatus status = 2; - */ - public org.sonar.batch.protocol.Constants.TestStatus getStatus() { - org.sonar.batch.protocol.Constants.TestStatus result = org.sonar.batch.protocol.Constants.TestStatus.valueOf(status_); - return result == null ? org.sonar.batch.protocol.Constants.TestStatus.OK : result; - } - - public static final int DURATION_IN_MS_FIELD_NUMBER = 3; - private long durationInMs_; - /** - * optional int64 duration_in_ms = 3; - */ - public boolean hasDurationInMs() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int64 duration_in_ms = 3; - */ - public long getDurationInMs() { - return durationInMs_; - } - - public static final int STACKTRACE_FIELD_NUMBER = 4; - private volatile java.lang.Object stacktrace_; - /** - * optional string stacktrace = 4; - */ - public boolean hasStacktrace() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string stacktrace = 4; - */ - public java.lang.String getStacktrace() { - java.lang.Object ref = stacktrace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stacktrace_ = s; - } - return s; - } - } - /** - * optional string stacktrace = 4; - */ - public com.google.protobuf.ByteString - getStacktraceBytes() { - java.lang.Object ref = stacktrace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stacktrace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MSG_FIELD_NUMBER = 5; - private volatile java.lang.Object msg_; - /** - * optional string msg = 5; - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string msg = 5; - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } - } - /** - * optional string msg = 5; - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, status_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt64(3, durationInMs_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getStacktraceBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getMsgBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, status_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, durationInMs_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getStacktraceBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getMsgBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.Test parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Test parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Test parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.Test parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Test parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Test parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Test parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Test parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.Test parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.Test parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.Test prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Test} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Test) - org.sonar.batch.protocol.output.BatchReport.TestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Test_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Test_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.Test.class, org.sonar.batch.protocol.output.BatchReport.Test.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.Test.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - status_ = 1; - bitField0_ = (bitField0_ & ~0x00000002); - durationInMs_ = 0L; - bitField0_ = (bitField0_ & ~0x00000004); - stacktrace_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - msg_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_Test_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.Test getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.Test.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.Test build() { - org.sonar.batch.protocol.output.BatchReport.Test result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.Test buildPartial() { - org.sonar.batch.protocol.output.BatchReport.Test result = new org.sonar.batch.protocol.output.BatchReport.Test(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.status_ = status_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.durationInMs_ = durationInMs_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.stacktrace_ = stacktrace_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.msg_ = msg_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.Test) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.Test)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.Test other) { - if (other == org.sonar.batch.protocol.output.BatchReport.Test.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasStatus()) { - setStatus(other.getStatus()); - } - if (other.hasDurationInMs()) { - setDurationInMs(other.getDurationInMs()); - } - if (other.hasStacktrace()) { - bitField0_ |= 0x00000008; - stacktrace_ = other.stacktrace_; - onChanged(); - } - if (other.hasMsg()) { - bitField0_ |= 0x00000010; - msg_ = other.msg_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.Test parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.Test) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * optional string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - private int status_ = 1; - /** - * optional .TestStatus status = 2; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .TestStatus status = 2; - */ - public org.sonar.batch.protocol.Constants.TestStatus getStatus() { - org.sonar.batch.protocol.Constants.TestStatus result = org.sonar.batch.protocol.Constants.TestStatus.valueOf(status_); - return result == null ? org.sonar.batch.protocol.Constants.TestStatus.OK : result; - } - /** - * optional .TestStatus status = 2; - */ - public Builder setStatus(org.sonar.batch.protocol.Constants.TestStatus value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .TestStatus status = 2; - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000002); - status_ = 1; - onChanged(); - return this; - } - - private long durationInMs_ ; - /** - * optional int64 duration_in_ms = 3; - */ - public boolean hasDurationInMs() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int64 duration_in_ms = 3; - */ - public long getDurationInMs() { - return durationInMs_; - } - /** - * optional int64 duration_in_ms = 3; - */ - public Builder setDurationInMs(long value) { - bitField0_ |= 0x00000004; - durationInMs_ = value; - onChanged(); - return this; - } - /** - * optional int64 duration_in_ms = 3; - */ - public Builder clearDurationInMs() { - bitField0_ = (bitField0_ & ~0x00000004); - durationInMs_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object stacktrace_ = ""; - /** - * optional string stacktrace = 4; - */ - public boolean hasStacktrace() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string stacktrace = 4; - */ - public java.lang.String getStacktrace() { - java.lang.Object ref = stacktrace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stacktrace_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string stacktrace = 4; - */ - public com.google.protobuf.ByteString - getStacktraceBytes() { - java.lang.Object ref = stacktrace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stacktrace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string stacktrace = 4; - */ - public Builder setStacktrace( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - stacktrace_ = value; - onChanged(); - return this; - } - /** - * optional string stacktrace = 4; - */ - public Builder clearStacktrace() { - bitField0_ = (bitField0_ & ~0x00000008); - stacktrace_ = getDefaultInstance().getStacktrace(); - onChanged(); - return this; - } - /** - * optional string stacktrace = 4; - */ - public Builder setStacktraceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - stacktrace_ = value; - onChanged(); - return this; - } - - private java.lang.Object msg_ = ""; - /** - * optional string msg = 5; - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string msg = 5; - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string msg = 5; - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string msg = 5; - */ - public Builder setMsg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - msg_ = value; - onChanged(); - return this; - } - /** - * optional string msg = 5; - */ - public Builder clearMsg() { - bitField0_ = (bitField0_ & ~0x00000010); - msg_ = getDefaultInstance().getMsg(); - onChanged(); - return this; - } - /** - * optional string msg = 5; - */ - public Builder setMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - msg_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:Test) - } - - // @@protoc_insertion_point(class_scope:Test) - private static final org.sonar.batch.protocol.output.BatchReport.Test DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.Test(); - } - - public static org.sonar.batch.protocol.output.BatchReport.Test getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Test parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Test(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.Test getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CoverageDetailOrBuilder extends - // @@protoc_insertion_point(interface_extends:CoverageDetail) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string test_name = 1; - */ - boolean hasTestName(); - /** - * optional string test_name = 1; - */ - java.lang.String getTestName(); - /** - * optional string test_name = 1; - */ - com.google.protobuf.ByteString - getTestNameBytes(); - - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - java.util.List - getCoveredFileList(); - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile getCoveredFile(int index); - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - int getCoveredFileCount(); - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - java.util.List - getCoveredFileOrBuilderList(); - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder getCoveredFileOrBuilder( - int index); - } - /** - * Protobuf type {@code CoverageDetail} - */ - public static final class CoverageDetail extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:CoverageDetail) - CoverageDetailOrBuilder { - // Use CoverageDetail.newBuilder() to construct. - private CoverageDetail(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private CoverageDetail() { - testName_ = ""; - coveredFile_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CoverageDetail( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - testName_ = bs; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - coveredFile_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - coveredFile_.add(input.readMessage(org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - coveredFile_ = java.util.Collections.unmodifiableList(coveredFile_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.class, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.Builder.class); - } - - public interface CoveredFileOrBuilder extends - // @@protoc_insertion_point(interface_extends:CoverageDetail.CoveredFile) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 file_ref = 1; - */ - boolean hasFileRef(); - /** - * optional int32 file_ref = 1; - */ - int getFileRef(); - - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - java.util.List getCoveredLineList(); - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - int getCoveredLineCount(); - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - int getCoveredLine(int index); - } - /** - * Protobuf type {@code CoverageDetail.CoveredFile} - */ - public static final class CoveredFile extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:CoverageDetail.CoveredFile) - CoveredFileOrBuilder { - // Use CoveredFile.newBuilder() to construct. - private CoveredFile(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private CoveredFile() { - fileRef_ = 0; - coveredLine_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CoveredFile( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - fileRef_ = input.readInt32(); - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - coveredLine_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - coveredLine_.add(input.readInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { - coveredLine_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - coveredLine_.add(input.readInt32()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - coveredLine_ = java.util.Collections.unmodifiableList(coveredLine_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_CoveredFile_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_CoveredFile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.class, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder.class); - } - - private int bitField0_; - public static final int FILE_REF_FIELD_NUMBER = 1; - private int fileRef_; - /** - * optional int32 file_ref = 1; - */ - public boolean hasFileRef() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 file_ref = 1; - */ - public int getFileRef() { - return fileRef_; - } - - public static final int COVERED_LINE_FIELD_NUMBER = 2; - private java.util.List coveredLine_; - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public java.util.List - getCoveredLineList() { - return coveredLine_; - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public int getCoveredLineCount() { - return coveredLine_.size(); - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public int getCoveredLine(int index) { - return coveredLine_.get(index); - } - private int coveredLineMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, fileRef_); - } - if (getCoveredLineList().size() > 0) { - output.writeRawVarint32(18); - output.writeRawVarint32(coveredLineMemoizedSerializedSize); - } - for (int i = 0; i < coveredLine_.size(); i++) { - output.writeInt32NoTag(coveredLine_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, fileRef_); - } - { - int dataSize = 0; - for (int i = 0; i < coveredLine_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(coveredLine_.get(i)); - } - size += dataSize; - if (!getCoveredLineList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - coveredLineMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CoverageDetail.CoveredFile} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:CoverageDetail.CoveredFile) - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_CoveredFile_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_CoveredFile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.class, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - fileRef_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - coveredLine_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_CoveredFile_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile build() { - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile buildPartial() { - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile result = new org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.fileRef_ = fileRef_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - coveredLine_ = java.util.Collections.unmodifiableList(coveredLine_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.coveredLine_ = coveredLine_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile other) { - if (other == org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.getDefaultInstance()) return this; - if (other.hasFileRef()) { - setFileRef(other.getFileRef()); - } - if (!other.coveredLine_.isEmpty()) { - if (coveredLine_.isEmpty()) { - coveredLine_ = other.coveredLine_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCoveredLineIsMutable(); - coveredLine_.addAll(other.coveredLine_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int fileRef_ ; - /** - * optional int32 file_ref = 1; - */ - public boolean hasFileRef() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 file_ref = 1; - */ - public int getFileRef() { - return fileRef_; - } - /** - * optional int32 file_ref = 1; - */ - public Builder setFileRef(int value) { - bitField0_ |= 0x00000001; - fileRef_ = value; - onChanged(); - return this; - } - /** - * optional int32 file_ref = 1; - */ - public Builder clearFileRef() { - bitField0_ = (bitField0_ & ~0x00000001); - fileRef_ = 0; - onChanged(); - return this; - } - - private java.util.List coveredLine_ = java.util.Collections.emptyList(); - private void ensureCoveredLineIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - coveredLine_ = new java.util.ArrayList(coveredLine_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public java.util.List - getCoveredLineList() { - return java.util.Collections.unmodifiableList(coveredLine_); - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public int getCoveredLineCount() { - return coveredLine_.size(); - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public int getCoveredLine(int index) { - return coveredLine_.get(index); - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public Builder setCoveredLine( - int index, int value) { - ensureCoveredLineIsMutable(); - coveredLine_.set(index, value); - onChanged(); - return this; - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public Builder addCoveredLine(int value) { - ensureCoveredLineIsMutable(); - coveredLine_.add(value); - onChanged(); - return this; - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public Builder addAllCoveredLine( - java.lang.Iterable values) { - ensureCoveredLineIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, coveredLine_); - onChanged(); - return this; - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public Builder clearCoveredLine() { - coveredLine_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:CoverageDetail.CoveredFile) - } - - // @@protoc_insertion_point(class_scope:CoverageDetail.CoveredFile) - private static final org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile(); - } - - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CoveredFile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new CoveredFile(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int TEST_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object testName_; - /** - * optional string test_name = 1; - */ - public boolean hasTestName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string test_name = 1; - */ - public java.lang.String getTestName() { - java.lang.Object ref = testName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - testName_ = s; - } - return s; - } - } - /** - * optional string test_name = 1; - */ - public com.google.protobuf.ByteString - getTestNameBytes() { - java.lang.Object ref = testName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - testName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COVERED_FILE_FIELD_NUMBER = 2; - private java.util.List coveredFile_; - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public java.util.List getCoveredFileList() { - return coveredFile_; - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public java.util.List - getCoveredFileOrBuilderList() { - return coveredFile_; - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public int getCoveredFileCount() { - return coveredFile_.size(); - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile getCoveredFile(int index) { - return coveredFile_.get(index); - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder getCoveredFileOrBuilder( - int index) { - return coveredFile_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTestNameBytes()); - } - for (int i = 0; i < coveredFile_.size(); i++) { - output.writeMessage(2, coveredFile_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getTestNameBytes()); - } - for (int i = 0; i < coveredFile_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, coveredFile_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.batch.protocol.output.BatchReport.CoverageDetail prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code CoverageDetail} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:CoverageDetail) - org.sonar.batch.protocol.output.BatchReport.CoverageDetailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.class, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.Builder.class); - } - - // Construct using org.sonar.batch.protocol.output.BatchReport.CoverageDetail.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getCoveredFileFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - testName_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (coveredFileBuilder_ == null) { - coveredFile_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - coveredFileBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.batch.protocol.output.BatchReport.internal_static_CoverageDetail_descriptor; - } - - public org.sonar.batch.protocol.output.BatchReport.CoverageDetail getDefaultInstanceForType() { - return org.sonar.batch.protocol.output.BatchReport.CoverageDetail.getDefaultInstance(); - } - - public org.sonar.batch.protocol.output.BatchReport.CoverageDetail build() { - org.sonar.batch.protocol.output.BatchReport.CoverageDetail result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.batch.protocol.output.BatchReport.CoverageDetail buildPartial() { - org.sonar.batch.protocol.output.BatchReport.CoverageDetail result = new org.sonar.batch.protocol.output.BatchReport.CoverageDetail(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.testName_ = testName_; - if (coveredFileBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - coveredFile_ = java.util.Collections.unmodifiableList(coveredFile_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.coveredFile_ = coveredFile_; - } else { - result.coveredFile_ = coveredFileBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.batch.protocol.output.BatchReport.CoverageDetail) { - return mergeFrom((org.sonar.batch.protocol.output.BatchReport.CoverageDetail)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.batch.protocol.output.BatchReport.CoverageDetail other) { - if (other == org.sonar.batch.protocol.output.BatchReport.CoverageDetail.getDefaultInstance()) return this; - if (other.hasTestName()) { - bitField0_ |= 0x00000001; - testName_ = other.testName_; - onChanged(); - } - if (coveredFileBuilder_ == null) { - if (!other.coveredFile_.isEmpty()) { - if (coveredFile_.isEmpty()) { - coveredFile_ = other.coveredFile_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCoveredFileIsMutable(); - coveredFile_.addAll(other.coveredFile_); - } - onChanged(); - } - } else { - if (!other.coveredFile_.isEmpty()) { - if (coveredFileBuilder_.isEmpty()) { - coveredFileBuilder_.dispose(); - coveredFileBuilder_ = null; - coveredFile_ = other.coveredFile_; - bitField0_ = (bitField0_ & ~0x00000002); - coveredFileBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getCoveredFileFieldBuilder() : null; - } else { - coveredFileBuilder_.addAllMessages(other.coveredFile_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.batch.protocol.output.BatchReport.CoverageDetail parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.batch.protocol.output.BatchReport.CoverageDetail) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object testName_ = ""; - /** - * optional string test_name = 1; - */ - public boolean hasTestName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string test_name = 1; - */ - public java.lang.String getTestName() { - java.lang.Object ref = testName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - testName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string test_name = 1; - */ - public com.google.protobuf.ByteString - getTestNameBytes() { - java.lang.Object ref = testName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - testName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string test_name = 1; - */ - public Builder setTestName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - testName_ = value; - onChanged(); - return this; - } - /** - * optional string test_name = 1; - */ - public Builder clearTestName() { - bitField0_ = (bitField0_ & ~0x00000001); - testName_ = getDefaultInstance().getTestName(); - onChanged(); - return this; - } - /** - * optional string test_name = 1; - */ - public Builder setTestNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - testName_ = value; - onChanged(); - return this; - } - - private java.util.List coveredFile_ = - java.util.Collections.emptyList(); - private void ensureCoveredFileIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - coveredFile_ = new java.util.ArrayList(coveredFile_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder> coveredFileBuilder_; - - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public java.util.List getCoveredFileList() { - if (coveredFileBuilder_ == null) { - return java.util.Collections.unmodifiableList(coveredFile_); - } else { - return coveredFileBuilder_.getMessageList(); - } - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public int getCoveredFileCount() { - if (coveredFileBuilder_ == null) { - return coveredFile_.size(); - } else { - return coveredFileBuilder_.getCount(); - } - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile getCoveredFile(int index) { - if (coveredFileBuilder_ == null) { - return coveredFile_.get(index); - } else { - return coveredFileBuilder_.getMessage(index); - } - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public Builder setCoveredFile( - int index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile value) { - if (coveredFileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoveredFileIsMutable(); - coveredFile_.set(index, value); - onChanged(); - } else { - coveredFileBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public Builder setCoveredFile( - int index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder builderForValue) { - if (coveredFileBuilder_ == null) { - ensureCoveredFileIsMutable(); - coveredFile_.set(index, builderForValue.build()); - onChanged(); - } else { - coveredFileBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public Builder addCoveredFile(org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile value) { - if (coveredFileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoveredFileIsMutable(); - coveredFile_.add(value); - onChanged(); - } else { - coveredFileBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public Builder addCoveredFile( - int index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile value) { - if (coveredFileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoveredFileIsMutable(); - coveredFile_.add(index, value); - onChanged(); - } else { - coveredFileBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public Builder addCoveredFile( - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder builderForValue) { - if (coveredFileBuilder_ == null) { - ensureCoveredFileIsMutable(); - coveredFile_.add(builderForValue.build()); - onChanged(); - } else { - coveredFileBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public Builder addCoveredFile( - int index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder builderForValue) { - if (coveredFileBuilder_ == null) { - ensureCoveredFileIsMutable(); - coveredFile_.add(index, builderForValue.build()); - onChanged(); - } else { - coveredFileBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public Builder addAllCoveredFile( - java.lang.Iterable values) { - if (coveredFileBuilder_ == null) { - ensureCoveredFileIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, coveredFile_); - onChanged(); - } else { - coveredFileBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public Builder clearCoveredFile() { - if (coveredFileBuilder_ == null) { - coveredFile_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - coveredFileBuilder_.clear(); - } - return this; - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public Builder removeCoveredFile(int index) { - if (coveredFileBuilder_ == null) { - ensureCoveredFileIsMutable(); - coveredFile_.remove(index); - onChanged(); - } else { - coveredFileBuilder_.remove(index); - } - return this; - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder getCoveredFileBuilder( - int index) { - return getCoveredFileFieldBuilder().getBuilder(index); - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder getCoveredFileOrBuilder( - int index) { - if (coveredFileBuilder_ == null) { - return coveredFile_.get(index); } else { - return coveredFileBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public java.util.List - getCoveredFileOrBuilderList() { - if (coveredFileBuilder_ != null) { - return coveredFileBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(coveredFile_); - } - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder addCoveredFileBuilder() { - return getCoveredFileFieldBuilder().addBuilder( - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.getDefaultInstance()); - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder addCoveredFileBuilder( - int index) { - return getCoveredFileFieldBuilder().addBuilder( - index, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.getDefaultInstance()); - } - /** - * repeated .CoverageDetail.CoveredFile covered_file = 2; - */ - public java.util.List - getCoveredFileBuilderList() { - return getCoveredFileFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder> - getCoveredFileFieldBuilder() { - if (coveredFileBuilder_ == null) { - coveredFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFile.Builder, org.sonar.batch.protocol.output.BatchReport.CoverageDetail.CoveredFileOrBuilder>( - coveredFile_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - coveredFile_ = null; - } - return coveredFileBuilder_; - } - - // @@protoc_insertion_point(builder_scope:CoverageDetail) - } - - // @@protoc_insertion_point(class_scope:CoverageDetail) - private static final org.sonar.batch.protocol.output.BatchReport.CoverageDetail DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.batch.protocol.output.BatchReport.CoverageDetail(); - } - - public static org.sonar.batch.protocol.output.BatchReport.CoverageDetail getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CoverageDetail parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new CoverageDetail(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.batch.protocol.output.BatchReport.CoverageDetail getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Metadata_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Metadata_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_ActiveRule_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_ActiveRule_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_ActiveRule_ActiveRuleParam_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_ActiveRule_ActiveRuleParam_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_ComponentLink_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_ComponentLink_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Component_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Component_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Measure_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Measure_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Issue_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Issue_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_IssueLocation_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_IssueLocation_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Flow_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Flow_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Changesets_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Changesets_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Changesets_Changeset_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Changesets_Changeset_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Duplicate_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Duplicate_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Duplication_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Duplication_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_TextRange_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_TextRange_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Symbol_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Symbol_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Coverage_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Coverage_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_SyntaxHighlighting_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_SyntaxHighlighting_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Test_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Test_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_CoverageDetail_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_CoverageDetail_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_CoverageDetail_CoveredFile_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_CoverageDetail_CoveredFile_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\022batch_report.proto\032\017constants.proto\"b\n" + - "\010Metadata\022\025\n\ranalysis_date\030\001 \001(\003\022\023\n\013proj" + - "ect_key\030\002 \001(\t\022\016\n\006branch\030\003 \001(\t\022\032\n\022root_co" + - "mponent_ref\030\004 \001(\005\"\257\001\n\nActiveRule\022\027\n\017rule" + - "_repository\030\001 \001(\t\022\020\n\010rule_key\030\002 \001(\t\022\033\n\010s" + - "everity\030\003 \001(\0162\t.Severity\022*\n\005param\030\004 \003(\0132" + - "\033.ActiveRule.ActiveRuleParam\032-\n\017ActiveRu" + - "leParam\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"?\n\rC" + - "omponentLink\022 \n\004type\030\001 \001(\0162\022.ComponentLi" + - "nkType\022\014\n\004href\030\002 \001(\t\"\354\001\n\tComponent\022\013\n\003re", - "f\030\001 \001(\005\022\014\n\004path\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\034\n\004t" + - "ype\030\004 \001(\0162\016.ComponentType\022\017\n\007is_test\030\005 \001" + - "(\010\022\020\n\010language\030\006 \001(\t\022\025\n\tchild_ref\030\007 \003(\005B" + - "\002\020\001\022\034\n\004link\030\010 \003(\0132\016.ComponentLink\022\017\n\007ver" + - "sion\030\t \001(\t\022\013\n\003key\030\n \001(\t\022\r\n\005lines\030\013 \001(\005\022\023" + - "\n\013description\030\014 \001(\t\"\256\001\n\007Measure\022%\n\nvalue" + - "_type\030\001 \001(\0162\021.MeasureValueType\022\025\n\rboolea" + - "n_value\030\002 \001(\010\022\021\n\tint_value\030\003 \001(\005\022\022\n\nlong" + - "_value\030\004 \001(\003\022\024\n\014double_value\030\005 \001(\001\022\024\n\014st" + - "ring_value\030\006 \001(\t\022\022\n\nmetric_key\030\007 \001(\t\"\266\001\n", - "\005Issue\022\027\n\017rule_repository\030\001 \001(\t\022\020\n\010rule_" + - "key\030\002 \001(\t\022\014\n\004line\030\003 \001(\005\022\013\n\003msg\030\004 \001(\t\022\033\n\010" + - "severity\030\005 \001(\0162\t.Severity\022\025\n\reffort_to_f" + - "ix\030\006 \001(\001\022\036\n\ntext_range\030\007 \001(\0132\n.TextRange" + - "\022\023\n\004flow\030\010 \003(\0132\005.Flow\"S\n\rIssueLocation\022\025" + - "\n\rcomponent_ref\030\001 \001(\005\022\036\n\ntext_range\030\002 \001(" + - "\0132\n.TextRange\022\013\n\003msg\030\003 \001(\t\"(\n\004Flow\022 \n\010lo" + - "cation\030\001 \003(\0132\016.IssueLocation\"\254\001\n\nChanges" + - "ets\022\025\n\rcomponent_ref\030\001 \001(\005\022(\n\tchangeset\030" + - "\002 \003(\0132\025.Changesets.Changeset\022 \n\024changese", - "tIndexByLine\030\003 \003(\005B\002\020\001\032;\n\tChangeset\022\020\n\010r" + - "evision\030\001 \001(\t\022\016\n\006author\030\002 \001(\t\022\014\n\004date\030\003 " + - "\001(\003\"V\n\tDuplicate\022\026\n\016other_file_ref\030\001 \001(\005" + - "\022\031\n\005range\030\002 \001(\0132\n.TextRange\022\026\n\016other_fil" + - "e_key\030\003 \001(\t\"Q\n\013Duplication\022#\n\017origin_pos" + - "ition\030\001 \001(\0132\n.TextRange\022\035\n\tduplicate\030\002 \003" + - "(\0132\n.Duplicate\"[\n\tTextRange\022\022\n\nstart_lin" + - "e\030\001 \001(\005\022\020\n\010end_line\030\002 \001(\005\022\024\n\014start_offse" + - "t\030\003 \001(\005\022\022\n\nend_offset\030\004 \001(\005\"H\n\006Symbol\022\037\n" + - "\013declaration\030\001 \001(\0132\n.TextRange\022\035\n\trefere", - "nce\030\002 \003(\0132\n.TextRange\"\260\001\n\010Coverage\022\014\n\004li" + - "ne\030\001 \001(\005\022\022\n\nconditions\030\002 \001(\005\022\017\n\007ut_hits\030" + - "\003 \001(\010\022\017\n\007it_hits\030\004 \001(\010\022\035\n\025ut_covered_con" + - "ditions\030\005 \001(\005\022\035\n\025it_covered_conditions\030\006" + - " \001(\005\022\"\n\032overall_covered_conditions\030\007 \001(\005" + - "\"P\n\022SyntaxHighlighting\022\031\n\005range\030\001 \001(\0132\n." + - "TextRange\022\037\n\004type\030\002 \001(\0162\021.HighlightingTy" + - "pe\"j\n\004Test\022\014\n\004name\030\001 \001(\t\022\033\n\006status\030\002 \001(\016" + - "2\013.TestStatus\022\026\n\016duration_in_ms\030\003 \001(\003\022\022\n" + - "\nstacktrace\030\004 \001(\t\022\013\n\003msg\030\005 \001(\t\"\221\001\n\016Cover", - "ageDetail\022\021\n\ttest_name\030\001 \001(\t\0221\n\014covered_" + - "file\030\002 \003(\0132\033.CoverageDetail.CoveredFile\032" + - "9\n\013CoveredFile\022\020\n\010file_ref\030\001 \001(\005\022\030\n\014cove" + - "red_line\030\002 \003(\005B\002\020\001B#\n\037org.sonar.batch.pr" + - "otocol.outputH\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.sonar.batch.protocol.Constants.getDescriptor(), - }, assigner); - internal_static_Metadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Metadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Metadata_descriptor, - new java.lang.String[] { "AnalysisDate", "ProjectKey", "Branch", "RootComponentRef", }); - internal_static_ActiveRule_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_ActiveRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_ActiveRule_descriptor, - new java.lang.String[] { "RuleRepository", "RuleKey", "Severity", "Param", }); - internal_static_ActiveRule_ActiveRuleParam_descriptor = - internal_static_ActiveRule_descriptor.getNestedTypes().get(0); - internal_static_ActiveRule_ActiveRuleParam_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_ActiveRule_ActiveRuleParam_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_ComponentLink_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_ComponentLink_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_ComponentLink_descriptor, - new java.lang.String[] { "Type", "Href", }); - internal_static_Component_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_Component_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Component_descriptor, - new java.lang.String[] { "Ref", "Path", "Name", "Type", "IsTest", "Language", "ChildRef", "Link", "Version", "Key", "Lines", "Description", }); - internal_static_Measure_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_Measure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Measure_descriptor, - new java.lang.String[] { "ValueType", "BooleanValue", "IntValue", "LongValue", "DoubleValue", "StringValue", "MetricKey", }); - internal_static_Issue_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_Issue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Issue_descriptor, - new java.lang.String[] { "RuleRepository", "RuleKey", "Line", "Msg", "Severity", "EffortToFix", "TextRange", "Flow", }); - internal_static_IssueLocation_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_IssueLocation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_IssueLocation_descriptor, - new java.lang.String[] { "ComponentRef", "TextRange", "Msg", }); - internal_static_Flow_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_Flow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Flow_descriptor, - new java.lang.String[] { "Location", }); - internal_static_Changesets_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_Changesets_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Changesets_descriptor, - new java.lang.String[] { "ComponentRef", "Changeset", "ChangesetIndexByLine", }); - internal_static_Changesets_Changeset_descriptor = - internal_static_Changesets_descriptor.getNestedTypes().get(0); - internal_static_Changesets_Changeset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Changesets_Changeset_descriptor, - new java.lang.String[] { "Revision", "Author", "Date", }); - internal_static_Duplicate_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_Duplicate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Duplicate_descriptor, - new java.lang.String[] { "OtherFileRef", "Range", "OtherFileKey", }); - internal_static_Duplication_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_Duplication_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Duplication_descriptor, - new java.lang.String[] { "OriginPosition", "Duplicate", }); - internal_static_TextRange_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_TextRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_TextRange_descriptor, - new java.lang.String[] { "StartLine", "EndLine", "StartOffset", "EndOffset", }); - internal_static_Symbol_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_Symbol_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Symbol_descriptor, - new java.lang.String[] { "Declaration", "Reference", }); - internal_static_Coverage_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_Coverage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Coverage_descriptor, - new java.lang.String[] { "Line", "Conditions", "UtHits", "ItHits", "UtCoveredConditions", "ItCoveredConditions", "OverallCoveredConditions", }); - internal_static_SyntaxHighlighting_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_SyntaxHighlighting_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_SyntaxHighlighting_descriptor, - new java.lang.String[] { "Range", "Type", }); - internal_static_Test_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_Test_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Test_descriptor, - new java.lang.String[] { "Name", "Status", "DurationInMs", "Stacktrace", "Msg", }); - internal_static_CoverageDetail_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_CoverageDetail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_CoverageDetail_descriptor, - new java.lang.String[] { "TestName", "CoveredFile", }); - internal_static_CoverageDetail_CoveredFile_descriptor = - internal_static_CoverageDetail_descriptor.getNestedTypes().get(0); - internal_static_CoverageDetail_CoveredFile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_CoverageDetail_CoveredFile_descriptor, - new java.lang.String[] { "FileRef", "CoveredLine", }); - org.sonar.batch.protocol.Constants.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sonar-batch-protocol/src/main/protobuf/batch_input.proto b/sonar-batch-protocol/src/main/protobuf/batch_input.proto index 84a9c53d812..06edb314b5e 100644 --- a/sonar-batch-protocol/src/main/protobuf/batch_input.proto +++ b/sonar-batch-protocol/src/main/protobuf/batch_input.proto @@ -24,10 +24,6 @@ Notes - this is beta version of specification. It will evolve during next releases and is not forward-compatible yet. - - - the related Java files are not generated during build. Indeed the existing protoc maven - plugins require protobuf to be installed on boxes. That means that generated Java files - are updated and committed for each change (see src/main/gen-java). */ syntax = "proto2"; diff --git a/sonar-batch-protocol/src/main/protobuf/batch_report.proto b/sonar-batch-protocol/src/main/protobuf/batch_report.proto index 631c2c4ae49..ffb4f241b9f 100644 --- a/sonar-batch-protocol/src/main/protobuf/batch_report.proto +++ b/sonar-batch-protocol/src/main/protobuf/batch_report.proto @@ -24,10 +24,6 @@ Notes - this is beta version of specification. It will evolve during next releases and is not forward-compatible yet. - - - the related Java files are not generated during build. Indeed the existing protoc maven - plugins require protobuf to be installed on boxes. That means that generated Java files - are updated and committed for each change (see src/main/gen-java). */ syntax = "proto2"; diff --git a/sonar-core/pom.xml b/sonar-core/pom.xml index 6219695a741..944bd226ea9 100644 --- a/sonar-core/pom.xml +++ b/sonar-core/pom.xml @@ -101,25 +101,6 @@ - - org.codehaus.mojo - build-helper-maven-plugin - - - add-test-source - generate-test-sources - - add-test-source - - - - src/test/gen-java - - - - - - org.apache.maven.plugins maven-dependency-plugin diff --git a/sonar-core/src/test/gen-java/org/sonar/core/test/Test.java b/sonar-core/src/test/gen-java/org/sonar/core/test/Test.java deleted file mode 100644 index bf02f9d2533..00000000000 --- a/sonar-core/src/test/gen-java/org/sonar/core/test/Test.java +++ /dev/null @@ -1,8071 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: test.proto - -package org.sonar.core.test; - -public final class Test { - private Test() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - /** - * Protobuf enum {@code FakeEnum} - */ - public enum FakeEnum - implements com.google.protobuf.ProtocolMessageEnum { - /** - * BLUE = 0; - */ - BLUE(0, 0), - /** - * RED = 1; - */ - RED(1, 1), - /** - * GREEN = 2; - */ - GREEN(2, 2), - ; - - /** - * BLUE = 0; - */ - public static final int BLUE_VALUE = 0; - /** - * RED = 1; - */ - public static final int RED_VALUE = 1; - /** - * GREEN = 2; - */ - public static final int GREEN_VALUE = 2; - - - public final int getNumber() { - return value; - } - - public static FakeEnum valueOf(int value) { - switch (value) { - case 0: return BLUE; - case 1: return RED; - case 2: return GREEN; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FakeEnum findValueByNumber(int number) { - return FakeEnum.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.sonar.core.test.Test.getDescriptor().getEnumTypes().get(0); - } - - private static final FakeEnum[] VALUES = values(); - - public static FakeEnum valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private FakeEnum(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:FakeEnum) - } - - public interface FakeOrBuilder extends - // @@protoc_insertion_point(interface_extends:Fake) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string label = 1; - */ - boolean hasLabel(); - /** - * optional string label = 1; - */ - java.lang.String getLabel(); - /** - * optional string label = 1; - */ - com.google.protobuf.ByteString - getLabelBytes(); - - /** - * optional int32 line = 2; - */ - boolean hasLine(); - /** - * optional int32 line = 2; - */ - int getLine(); - } - /** - * Protobuf type {@code Fake} - */ - public static final class Fake extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Fake) - FakeOrBuilder { - // Use Fake.newBuilder() to construct. - private Fake(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Fake() { - label_ = ""; - line_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Fake( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - label_ = bs; - break; - } - case 16: { - bitField0_ |= 0x00000002; - line_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_Fake_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_Fake_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.Fake.class, org.sonar.core.test.Test.Fake.Builder.class); - } - - private int bitField0_; - public static final int LABEL_FIELD_NUMBER = 1; - private volatile java.lang.Object label_; - /** - * optional string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } - } - /** - * optional string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LINE_FIELD_NUMBER = 2; - private int line_; - /** - * optional int32 line = 2; - */ - public boolean hasLine() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 line = 2; - */ - public int getLine() { - return line_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getLabelBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, line_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getLabelBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, line_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.core.test.Test.Fake parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.Fake parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.Fake parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.Fake parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.Fake parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.Fake parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.Fake parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.core.test.Test.Fake parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.Fake parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.Fake parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.core.test.Test.Fake prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Fake} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Fake) - org.sonar.core.test.Test.FakeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_Fake_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_Fake_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.Fake.class, org.sonar.core.test.Test.Fake.Builder.class); - } - - // Construct using org.sonar.core.test.Test.Fake.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - line_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.core.test.Test.internal_static_Fake_descriptor; - } - - public org.sonar.core.test.Test.Fake getDefaultInstanceForType() { - return org.sonar.core.test.Test.Fake.getDefaultInstance(); - } - - public org.sonar.core.test.Test.Fake build() { - org.sonar.core.test.Test.Fake result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.core.test.Test.Fake buildPartial() { - org.sonar.core.test.Test.Fake result = new org.sonar.core.test.Test.Fake(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.label_ = label_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.line_ = line_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.core.test.Test.Fake) { - return mergeFrom((org.sonar.core.test.Test.Fake)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.core.test.Test.Fake other) { - if (other == org.sonar.core.test.Test.Fake.getDefaultInstance()) return this; - if (other.hasLabel()) { - bitField0_ |= 0x00000001; - label_ = other.label_; - onChanged(); - } - if (other.hasLine()) { - setLine(other.getLine()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.core.test.Test.Fake parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.core.test.Test.Fake) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object label_ = ""; - /** - * optional string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string label = 1; - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - /** - * optional string label = 1; - */ - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000001); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * optional string label = 1; - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - - private int line_ ; - /** - * optional int32 line = 2; - */ - public boolean hasLine() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 line = 2; - */ - public int getLine() { - return line_; - } - /** - * optional int32 line = 2; - */ - public Builder setLine(int value) { - bitField0_ |= 0x00000002; - line_ = value; - onChanged(); - return this; - } - /** - * optional int32 line = 2; - */ - public Builder clearLine() { - bitField0_ = (bitField0_ & ~0x00000002); - line_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:Fake) - } - - // @@protoc_insertion_point(class_scope:Fake) - private static final org.sonar.core.test.Test.Fake DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.core.test.Test.Fake(); - } - - public static org.sonar.core.test.Test.Fake getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Fake parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Fake(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.core.test.Test.Fake getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PrimitiveTypeMsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:PrimitiveTypeMsg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string stringField = 1; - */ - boolean hasStringField(); - /** - * optional string stringField = 1; - */ - java.lang.String getStringField(); - /** - * optional string stringField = 1; - */ - com.google.protobuf.ByteString - getStringFieldBytes(); - - /** - * optional int32 intField = 2; - */ - boolean hasIntField(); - /** - * optional int32 intField = 2; - */ - int getIntField(); - - /** - * optional int64 longField = 3; - */ - boolean hasLongField(); - /** - * optional int64 longField = 3; - */ - long getLongField(); - - /** - * optional double doubleField = 4; - */ - boolean hasDoubleField(); - /** - * optional double doubleField = 4; - */ - double getDoubleField(); - - /** - * optional bool booleanField = 5; - */ - boolean hasBooleanField(); - /** - * optional bool booleanField = 5; - */ - boolean getBooleanField(); - - /** - * optional .FakeEnum enumField = 6; - */ - boolean hasEnumField(); - /** - * optional .FakeEnum enumField = 6; - */ - org.sonar.core.test.Test.FakeEnum getEnumField(); - - /** - * optional bytes bytesField = 7; - */ - boolean hasBytesField(); - /** - * optional bytes bytesField = 7; - */ - com.google.protobuf.ByteString getBytesField(); - - /** - * optional .NestedMsg nested = 8; - */ - boolean hasNested(); - /** - * optional .NestedMsg nested = 8; - */ - org.sonar.core.test.Test.NestedMsg getNested(); - /** - * optional .NestedMsg nested = 8; - */ - org.sonar.core.test.Test.NestedMsgOrBuilder getNestedOrBuilder(); - } - /** - * Protobuf type {@code PrimitiveTypeMsg} - */ - public static final class PrimitiveTypeMsg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:PrimitiveTypeMsg) - PrimitiveTypeMsgOrBuilder { - // Use PrimitiveTypeMsg.newBuilder() to construct. - private PrimitiveTypeMsg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PrimitiveTypeMsg() { - stringField_ = ""; - intField_ = 0; - longField_ = 0L; - doubleField_ = 0D; - booleanField_ = false; - enumField_ = 0; - bytesField_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrimitiveTypeMsg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - stringField_ = bs; - break; - } - case 16: { - bitField0_ |= 0x00000002; - intField_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - longField_ = input.readInt64(); - break; - } - case 33: { - bitField0_ |= 0x00000008; - doubleField_ = input.readDouble(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - booleanField_ = input.readBool(); - break; - } - case 48: { - int rawValue = input.readEnum(); - org.sonar.core.test.Test.FakeEnum value = org.sonar.core.test.Test.FakeEnum.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(6, rawValue); - } else { - bitField0_ |= 0x00000020; - enumField_ = rawValue; - } - break; - } - case 58: { - bitField0_ |= 0x00000040; - bytesField_ = input.readBytes(); - break; - } - case 66: { - org.sonar.core.test.Test.NestedMsg.Builder subBuilder = null; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - subBuilder = nested_.toBuilder(); - } - nested_ = input.readMessage(org.sonar.core.test.Test.NestedMsg.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nested_); - nested_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000080; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_PrimitiveTypeMsg_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_PrimitiveTypeMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.PrimitiveTypeMsg.class, org.sonar.core.test.Test.PrimitiveTypeMsg.Builder.class); - } - - private int bitField0_; - public static final int STRINGFIELD_FIELD_NUMBER = 1; - private volatile java.lang.Object stringField_; - /** - * optional string stringField = 1; - */ - public boolean hasStringField() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string stringField = 1; - */ - public java.lang.String getStringField() { - java.lang.Object ref = stringField_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stringField_ = s; - } - return s; - } - } - /** - * optional string stringField = 1; - */ - public com.google.protobuf.ByteString - getStringFieldBytes() { - java.lang.Object ref = stringField_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stringField_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INTFIELD_FIELD_NUMBER = 2; - private int intField_; - /** - * optional int32 intField = 2; - */ - public boolean hasIntField() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 intField = 2; - */ - public int getIntField() { - return intField_; - } - - public static final int LONGFIELD_FIELD_NUMBER = 3; - private long longField_; - /** - * optional int64 longField = 3; - */ - public boolean hasLongField() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int64 longField = 3; - */ - public long getLongField() { - return longField_; - } - - public static final int DOUBLEFIELD_FIELD_NUMBER = 4; - private double doubleField_; - /** - * optional double doubleField = 4; - */ - public boolean hasDoubleField() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional double doubleField = 4; - */ - public double getDoubleField() { - return doubleField_; - } - - public static final int BOOLEANFIELD_FIELD_NUMBER = 5; - private boolean booleanField_; - /** - * optional bool booleanField = 5; - */ - public boolean hasBooleanField() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional bool booleanField = 5; - */ - public boolean getBooleanField() { - return booleanField_; - } - - public static final int ENUMFIELD_FIELD_NUMBER = 6; - private int enumField_; - /** - * optional .FakeEnum enumField = 6; - */ - public boolean hasEnumField() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional .FakeEnum enumField = 6; - */ - public org.sonar.core.test.Test.FakeEnum getEnumField() { - org.sonar.core.test.Test.FakeEnum result = org.sonar.core.test.Test.FakeEnum.valueOf(enumField_); - return result == null ? org.sonar.core.test.Test.FakeEnum.BLUE : result; - } - - public static final int BYTESFIELD_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString bytesField_; - /** - * optional bytes bytesField = 7; - */ - public boolean hasBytesField() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional bytes bytesField = 7; - */ - public com.google.protobuf.ByteString getBytesField() { - return bytesField_; - } - - public static final int NESTED_FIELD_NUMBER = 8; - private org.sonar.core.test.Test.NestedMsg nested_; - /** - * optional .NestedMsg nested = 8; - */ - public boolean hasNested() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional .NestedMsg nested = 8; - */ - public org.sonar.core.test.Test.NestedMsg getNested() { - return nested_ == null ? org.sonar.core.test.Test.NestedMsg.getDefaultInstance() : nested_; - } - /** - * optional .NestedMsg nested = 8; - */ - public org.sonar.core.test.Test.NestedMsgOrBuilder getNestedOrBuilder() { - return nested_ == null ? org.sonar.core.test.Test.NestedMsg.getDefaultInstance() : nested_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getStringFieldBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, intField_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt64(3, longField_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeDouble(4, doubleField_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBool(5, booleanField_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeEnum(6, enumField_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, bytesField_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(8, getNested()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getStringFieldBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, intField_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, longField_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, doubleField_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, booleanField_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, enumField_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, bytesField_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getNested()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.core.test.Test.PrimitiveTypeMsg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.PrimitiveTypeMsg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.PrimitiveTypeMsg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.PrimitiveTypeMsg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.PrimitiveTypeMsg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.PrimitiveTypeMsg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.PrimitiveTypeMsg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.core.test.Test.PrimitiveTypeMsg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.PrimitiveTypeMsg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.PrimitiveTypeMsg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.core.test.Test.PrimitiveTypeMsg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code PrimitiveTypeMsg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:PrimitiveTypeMsg) - org.sonar.core.test.Test.PrimitiveTypeMsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_PrimitiveTypeMsg_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_PrimitiveTypeMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.PrimitiveTypeMsg.class, org.sonar.core.test.Test.PrimitiveTypeMsg.Builder.class); - } - - // Construct using org.sonar.core.test.Test.PrimitiveTypeMsg.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getNestedFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - stringField_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - intField_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - longField_ = 0L; - bitField0_ = (bitField0_ & ~0x00000004); - doubleField_ = 0D; - bitField0_ = (bitField0_ & ~0x00000008); - booleanField_ = false; - bitField0_ = (bitField0_ & ~0x00000010); - enumField_ = 0; - bitField0_ = (bitField0_ & ~0x00000020); - bytesField_ = com.google.protobuf.ByteString.EMPTY; - bitField0_ = (bitField0_ & ~0x00000040); - if (nestedBuilder_ == null) { - nested_ = null; - } else { - nestedBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.core.test.Test.internal_static_PrimitiveTypeMsg_descriptor; - } - - public org.sonar.core.test.Test.PrimitiveTypeMsg getDefaultInstanceForType() { - return org.sonar.core.test.Test.PrimitiveTypeMsg.getDefaultInstance(); - } - - public org.sonar.core.test.Test.PrimitiveTypeMsg build() { - org.sonar.core.test.Test.PrimitiveTypeMsg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.core.test.Test.PrimitiveTypeMsg buildPartial() { - org.sonar.core.test.Test.PrimitiveTypeMsg result = new org.sonar.core.test.Test.PrimitiveTypeMsg(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.stringField_ = stringField_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.intField_ = intField_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.longField_ = longField_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.doubleField_ = doubleField_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.booleanField_ = booleanField_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.enumField_ = enumField_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.bytesField_ = bytesField_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - if (nestedBuilder_ == null) { - result.nested_ = nested_; - } else { - result.nested_ = nestedBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.core.test.Test.PrimitiveTypeMsg) { - return mergeFrom((org.sonar.core.test.Test.PrimitiveTypeMsg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.core.test.Test.PrimitiveTypeMsg other) { - if (other == org.sonar.core.test.Test.PrimitiveTypeMsg.getDefaultInstance()) return this; - if (other.hasStringField()) { - bitField0_ |= 0x00000001; - stringField_ = other.stringField_; - onChanged(); - } - if (other.hasIntField()) { - setIntField(other.getIntField()); - } - if (other.hasLongField()) { - setLongField(other.getLongField()); - } - if (other.hasDoubleField()) { - setDoubleField(other.getDoubleField()); - } - if (other.hasBooleanField()) { - setBooleanField(other.getBooleanField()); - } - if (other.hasEnumField()) { - setEnumField(other.getEnumField()); - } - if (other.hasBytesField()) { - setBytesField(other.getBytesField()); - } - if (other.hasNested()) { - mergeNested(other.getNested()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.core.test.Test.PrimitiveTypeMsg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.core.test.Test.PrimitiveTypeMsg) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object stringField_ = ""; - /** - * optional string stringField = 1; - */ - public boolean hasStringField() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string stringField = 1; - */ - public java.lang.String getStringField() { - java.lang.Object ref = stringField_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stringField_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string stringField = 1; - */ - public com.google.protobuf.ByteString - getStringFieldBytes() { - java.lang.Object ref = stringField_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stringField_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string stringField = 1; - */ - public Builder setStringField( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - stringField_ = value; - onChanged(); - return this; - } - /** - * optional string stringField = 1; - */ - public Builder clearStringField() { - bitField0_ = (bitField0_ & ~0x00000001); - stringField_ = getDefaultInstance().getStringField(); - onChanged(); - return this; - } - /** - * optional string stringField = 1; - */ - public Builder setStringFieldBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - stringField_ = value; - onChanged(); - return this; - } - - private int intField_ ; - /** - * optional int32 intField = 2; - */ - public boolean hasIntField() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 intField = 2; - */ - public int getIntField() { - return intField_; - } - /** - * optional int32 intField = 2; - */ - public Builder setIntField(int value) { - bitField0_ |= 0x00000002; - intField_ = value; - onChanged(); - return this; - } - /** - * optional int32 intField = 2; - */ - public Builder clearIntField() { - bitField0_ = (bitField0_ & ~0x00000002); - intField_ = 0; - onChanged(); - return this; - } - - private long longField_ ; - /** - * optional int64 longField = 3; - */ - public boolean hasLongField() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int64 longField = 3; - */ - public long getLongField() { - return longField_; - } - /** - * optional int64 longField = 3; - */ - public Builder setLongField(long value) { - bitField0_ |= 0x00000004; - longField_ = value; - onChanged(); - return this; - } - /** - * optional int64 longField = 3; - */ - public Builder clearLongField() { - bitField0_ = (bitField0_ & ~0x00000004); - longField_ = 0L; - onChanged(); - return this; - } - - private double doubleField_ ; - /** - * optional double doubleField = 4; - */ - public boolean hasDoubleField() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional double doubleField = 4; - */ - public double getDoubleField() { - return doubleField_; - } - /** - * optional double doubleField = 4; - */ - public Builder setDoubleField(double value) { - bitField0_ |= 0x00000008; - doubleField_ = value; - onChanged(); - return this; - } - /** - * optional double doubleField = 4; - */ - public Builder clearDoubleField() { - bitField0_ = (bitField0_ & ~0x00000008); - doubleField_ = 0D; - onChanged(); - return this; - } - - private boolean booleanField_ ; - /** - * optional bool booleanField = 5; - */ - public boolean hasBooleanField() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional bool booleanField = 5; - */ - public boolean getBooleanField() { - return booleanField_; - } - /** - * optional bool booleanField = 5; - */ - public Builder setBooleanField(boolean value) { - bitField0_ |= 0x00000010; - booleanField_ = value; - onChanged(); - return this; - } - /** - * optional bool booleanField = 5; - */ - public Builder clearBooleanField() { - bitField0_ = (bitField0_ & ~0x00000010); - booleanField_ = false; - onChanged(); - return this; - } - - private int enumField_ = 0; - /** - * optional .FakeEnum enumField = 6; - */ - public boolean hasEnumField() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional .FakeEnum enumField = 6; - */ - public org.sonar.core.test.Test.FakeEnum getEnumField() { - org.sonar.core.test.Test.FakeEnum result = org.sonar.core.test.Test.FakeEnum.valueOf(enumField_); - return result == null ? org.sonar.core.test.Test.FakeEnum.BLUE : result; - } - /** - * optional .FakeEnum enumField = 6; - */ - public Builder setEnumField(org.sonar.core.test.Test.FakeEnum value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - enumField_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .FakeEnum enumField = 6; - */ - public Builder clearEnumField() { - bitField0_ = (bitField0_ & ~0x00000020); - enumField_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString bytesField_ = com.google.protobuf.ByteString.EMPTY; - /** - * optional bytes bytesField = 7; - */ - public boolean hasBytesField() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional bytes bytesField = 7; - */ - public com.google.protobuf.ByteString getBytesField() { - return bytesField_; - } - /** - * optional bytes bytesField = 7; - */ - public Builder setBytesField(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - bytesField_ = value; - onChanged(); - return this; - } - /** - * optional bytes bytesField = 7; - */ - public Builder clearBytesField() { - bitField0_ = (bitField0_ & ~0x00000040); - bytesField_ = getDefaultInstance().getBytesField(); - onChanged(); - return this; - } - - private org.sonar.core.test.Test.NestedMsg nested_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonar.core.test.Test.NestedMsg, org.sonar.core.test.Test.NestedMsg.Builder, org.sonar.core.test.Test.NestedMsgOrBuilder> nestedBuilder_; - /** - * optional .NestedMsg nested = 8; - */ - public boolean hasNested() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional .NestedMsg nested = 8; - */ - public org.sonar.core.test.Test.NestedMsg getNested() { - if (nestedBuilder_ == null) { - return nested_ == null ? org.sonar.core.test.Test.NestedMsg.getDefaultInstance() : nested_; - } else { - return nestedBuilder_.getMessage(); - } - } - /** - * optional .NestedMsg nested = 8; - */ - public Builder setNested(org.sonar.core.test.Test.NestedMsg value) { - if (nestedBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nested_ = value; - onChanged(); - } else { - nestedBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .NestedMsg nested = 8; - */ - public Builder setNested( - org.sonar.core.test.Test.NestedMsg.Builder builderForValue) { - if (nestedBuilder_ == null) { - nested_ = builderForValue.build(); - onChanged(); - } else { - nestedBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .NestedMsg nested = 8; - */ - public Builder mergeNested(org.sonar.core.test.Test.NestedMsg value) { - if (nestedBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - nested_ != null && - nested_ != org.sonar.core.test.Test.NestedMsg.getDefaultInstance()) { - nested_ = - org.sonar.core.test.Test.NestedMsg.newBuilder(nested_).mergeFrom(value).buildPartial(); - } else { - nested_ = value; - } - onChanged(); - } else { - nestedBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .NestedMsg nested = 8; - */ - public Builder clearNested() { - if (nestedBuilder_ == null) { - nested_ = null; - onChanged(); - } else { - nestedBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - /** - * optional .NestedMsg nested = 8; - */ - public org.sonar.core.test.Test.NestedMsg.Builder getNestedBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getNestedFieldBuilder().getBuilder(); - } - /** - * optional .NestedMsg nested = 8; - */ - public org.sonar.core.test.Test.NestedMsgOrBuilder getNestedOrBuilder() { - if (nestedBuilder_ != null) { - return nestedBuilder_.getMessageOrBuilder(); - } else { - return nested_ == null ? - org.sonar.core.test.Test.NestedMsg.getDefaultInstance() : nested_; - } - } - /** - * optional .NestedMsg nested = 8; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonar.core.test.Test.NestedMsg, org.sonar.core.test.Test.NestedMsg.Builder, org.sonar.core.test.Test.NestedMsgOrBuilder> - getNestedFieldBuilder() { - if (nestedBuilder_ == null) { - nestedBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.core.test.Test.NestedMsg, org.sonar.core.test.Test.NestedMsg.Builder, org.sonar.core.test.Test.NestedMsgOrBuilder>( - getNested(), - getParentForChildren(), - isClean()); - nested_ = null; - } - return nestedBuilder_; - } - - // @@protoc_insertion_point(builder_scope:PrimitiveTypeMsg) - } - - // @@protoc_insertion_point(class_scope:PrimitiveTypeMsg) - private static final org.sonar.core.test.Test.PrimitiveTypeMsg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.core.test.Test.PrimitiveTypeMsg(); - } - - public static org.sonar.core.test.Test.PrimitiveTypeMsg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PrimitiveTypeMsg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new PrimitiveTypeMsg(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.core.test.Test.PrimitiveTypeMsg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TestArrayOrBuilder extends - // @@protoc_insertion_point(interface_extends:TestArray) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string strings = 1; - */ - com.google.protobuf.ProtocolStringList - getStringsList(); - /** - * repeated string strings = 1; - */ - int getStringsCount(); - /** - * repeated string strings = 1; - */ - java.lang.String getStrings(int index); - /** - * repeated string strings = 1; - */ - com.google.protobuf.ByteString - getStringsBytes(int index); - - /** - * repeated .NestedMsg nesteds = 2; - */ - java.util.List - getNestedsList(); - /** - * repeated .NestedMsg nesteds = 2; - */ - org.sonar.core.test.Test.NestedMsg getNesteds(int index); - /** - * repeated .NestedMsg nesteds = 2; - */ - int getNestedsCount(); - /** - * repeated .NestedMsg nesteds = 2; - */ - java.util.List - getNestedsOrBuilderList(); - /** - * repeated .NestedMsg nesteds = 2; - */ - org.sonar.core.test.Test.NestedMsgOrBuilder getNestedsOrBuilder( - int index); - } - /** - * Protobuf type {@code TestArray} - */ - public static final class TestArray extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:TestArray) - TestArrayOrBuilder { - // Use TestArray.newBuilder() to construct. - private TestArray(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TestArray() { - strings_ = com.google.protobuf.LazyStringArrayList.EMPTY; - nesteds_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TestArray( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - strings_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - strings_.add(bs); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - nesteds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - nesteds_.add(input.readMessage(org.sonar.core.test.Test.NestedMsg.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - strings_ = strings_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - nesteds_ = java.util.Collections.unmodifiableList(nesteds_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_TestArray_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_TestArray_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.TestArray.class, org.sonar.core.test.Test.TestArray.Builder.class); - } - - public static final int STRINGS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList strings_; - /** - * repeated string strings = 1; - */ - public com.google.protobuf.ProtocolStringList - getStringsList() { - return strings_; - } - /** - * repeated string strings = 1; - */ - public int getStringsCount() { - return strings_.size(); - } - /** - * repeated string strings = 1; - */ - public java.lang.String getStrings(int index) { - return strings_.get(index); - } - /** - * repeated string strings = 1; - */ - public com.google.protobuf.ByteString - getStringsBytes(int index) { - return strings_.getByteString(index); - } - - public static final int NESTEDS_FIELD_NUMBER = 2; - private java.util.List nesteds_; - /** - * repeated .NestedMsg nesteds = 2; - */ - public java.util.List getNestedsList() { - return nesteds_; - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public java.util.List - getNestedsOrBuilderList() { - return nesteds_; - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public int getNestedsCount() { - return nesteds_.size(); - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public org.sonar.core.test.Test.NestedMsg getNesteds(int index) { - return nesteds_.get(index); - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public org.sonar.core.test.Test.NestedMsgOrBuilder getNestedsOrBuilder( - int index) { - return nesteds_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < strings_.size(); i++) { - output.writeBytes(1, strings_.getByteString(i)); - } - for (int i = 0; i < nesteds_.size(); i++) { - output.writeMessage(2, nesteds_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < strings_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(strings_.getByteString(i)); - } - size += dataSize; - size += 1 * getStringsList().size(); - } - for (int i = 0; i < nesteds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, nesteds_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.core.test.Test.TestArray parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.TestArray parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.TestArray parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.TestArray parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.TestArray parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.TestArray parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.TestArray parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.core.test.Test.TestArray parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.TestArray parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.TestArray parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.core.test.Test.TestArray prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TestArray} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:TestArray) - org.sonar.core.test.Test.TestArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_TestArray_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_TestArray_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.TestArray.class, org.sonar.core.test.Test.TestArray.Builder.class); - } - - // Construct using org.sonar.core.test.Test.TestArray.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getNestedsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - strings_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (nestedsBuilder_ == null) { - nesteds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - nestedsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.core.test.Test.internal_static_TestArray_descriptor; - } - - public org.sonar.core.test.Test.TestArray getDefaultInstanceForType() { - return org.sonar.core.test.Test.TestArray.getDefaultInstance(); - } - - public org.sonar.core.test.Test.TestArray build() { - org.sonar.core.test.Test.TestArray result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.core.test.Test.TestArray buildPartial() { - org.sonar.core.test.Test.TestArray result = new org.sonar.core.test.Test.TestArray(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - strings_ = strings_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.strings_ = strings_; - if (nestedsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - nesteds_ = java.util.Collections.unmodifiableList(nesteds_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.nesteds_ = nesteds_; - } else { - result.nesteds_ = nestedsBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.core.test.Test.TestArray) { - return mergeFrom((org.sonar.core.test.Test.TestArray)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.core.test.Test.TestArray other) { - if (other == org.sonar.core.test.Test.TestArray.getDefaultInstance()) return this; - if (!other.strings_.isEmpty()) { - if (strings_.isEmpty()) { - strings_ = other.strings_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureStringsIsMutable(); - strings_.addAll(other.strings_); - } - onChanged(); - } - if (nestedsBuilder_ == null) { - if (!other.nesteds_.isEmpty()) { - if (nesteds_.isEmpty()) { - nesteds_ = other.nesteds_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureNestedsIsMutable(); - nesteds_.addAll(other.nesteds_); - } - onChanged(); - } - } else { - if (!other.nesteds_.isEmpty()) { - if (nestedsBuilder_.isEmpty()) { - nestedsBuilder_.dispose(); - nestedsBuilder_ = null; - nesteds_ = other.nesteds_; - bitField0_ = (bitField0_ & ~0x00000002); - nestedsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getNestedsFieldBuilder() : null; - } else { - nestedsBuilder_.addAllMessages(other.nesteds_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.core.test.Test.TestArray parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.core.test.Test.TestArray) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList strings_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureStringsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - strings_ = new com.google.protobuf.LazyStringArrayList(strings_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string strings = 1; - */ - public com.google.protobuf.ProtocolStringList - getStringsList() { - return strings_.getUnmodifiableView(); - } - /** - * repeated string strings = 1; - */ - public int getStringsCount() { - return strings_.size(); - } - /** - * repeated string strings = 1; - */ - public java.lang.String getStrings(int index) { - return strings_.get(index); - } - /** - * repeated string strings = 1; - */ - public com.google.protobuf.ByteString - getStringsBytes(int index) { - return strings_.getByteString(index); - } - /** - * repeated string strings = 1; - */ - public Builder setStrings( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStringsIsMutable(); - strings_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string strings = 1; - */ - public Builder addStrings( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStringsIsMutable(); - strings_.add(value); - onChanged(); - return this; - } - /** - * repeated string strings = 1; - */ - public Builder addAllStrings( - java.lang.Iterable values) { - ensureStringsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, strings_); - onChanged(); - return this; - } - /** - * repeated string strings = 1; - */ - public Builder clearStrings() { - strings_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string strings = 1; - */ - public Builder addStringsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStringsIsMutable(); - strings_.add(value); - onChanged(); - return this; - } - - private java.util.List nesteds_ = - java.util.Collections.emptyList(); - private void ensureNestedsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - nesteds_ = new java.util.ArrayList(nesteds_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.core.test.Test.NestedMsg, org.sonar.core.test.Test.NestedMsg.Builder, org.sonar.core.test.Test.NestedMsgOrBuilder> nestedsBuilder_; - - /** - * repeated .NestedMsg nesteds = 2; - */ - public java.util.List getNestedsList() { - if (nestedsBuilder_ == null) { - return java.util.Collections.unmodifiableList(nesteds_); - } else { - return nestedsBuilder_.getMessageList(); - } - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public int getNestedsCount() { - if (nestedsBuilder_ == null) { - return nesteds_.size(); - } else { - return nestedsBuilder_.getCount(); - } - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public org.sonar.core.test.Test.NestedMsg getNesteds(int index) { - if (nestedsBuilder_ == null) { - return nesteds_.get(index); - } else { - return nestedsBuilder_.getMessage(index); - } - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public Builder setNesteds( - int index, org.sonar.core.test.Test.NestedMsg value) { - if (nestedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNestedsIsMutable(); - nesteds_.set(index, value); - onChanged(); - } else { - nestedsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public Builder setNesteds( - int index, org.sonar.core.test.Test.NestedMsg.Builder builderForValue) { - if (nestedsBuilder_ == null) { - ensureNestedsIsMutable(); - nesteds_.set(index, builderForValue.build()); - onChanged(); - } else { - nestedsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public Builder addNesteds(org.sonar.core.test.Test.NestedMsg value) { - if (nestedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNestedsIsMutable(); - nesteds_.add(value); - onChanged(); - } else { - nestedsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public Builder addNesteds( - int index, org.sonar.core.test.Test.NestedMsg value) { - if (nestedsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNestedsIsMutable(); - nesteds_.add(index, value); - onChanged(); - } else { - nestedsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public Builder addNesteds( - org.sonar.core.test.Test.NestedMsg.Builder builderForValue) { - if (nestedsBuilder_ == null) { - ensureNestedsIsMutable(); - nesteds_.add(builderForValue.build()); - onChanged(); - } else { - nestedsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public Builder addNesteds( - int index, org.sonar.core.test.Test.NestedMsg.Builder builderForValue) { - if (nestedsBuilder_ == null) { - ensureNestedsIsMutable(); - nesteds_.add(index, builderForValue.build()); - onChanged(); - } else { - nestedsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public Builder addAllNesteds( - java.lang.Iterable values) { - if (nestedsBuilder_ == null) { - ensureNestedsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nesteds_); - onChanged(); - } else { - nestedsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public Builder clearNesteds() { - if (nestedsBuilder_ == null) { - nesteds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - nestedsBuilder_.clear(); - } - return this; - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public Builder removeNesteds(int index) { - if (nestedsBuilder_ == null) { - ensureNestedsIsMutable(); - nesteds_.remove(index); - onChanged(); - } else { - nestedsBuilder_.remove(index); - } - return this; - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public org.sonar.core.test.Test.NestedMsg.Builder getNestedsBuilder( - int index) { - return getNestedsFieldBuilder().getBuilder(index); - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public org.sonar.core.test.Test.NestedMsgOrBuilder getNestedsOrBuilder( - int index) { - if (nestedsBuilder_ == null) { - return nesteds_.get(index); } else { - return nestedsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public java.util.List - getNestedsOrBuilderList() { - if (nestedsBuilder_ != null) { - return nestedsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nesteds_); - } - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public org.sonar.core.test.Test.NestedMsg.Builder addNestedsBuilder() { - return getNestedsFieldBuilder().addBuilder( - org.sonar.core.test.Test.NestedMsg.getDefaultInstance()); - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public org.sonar.core.test.Test.NestedMsg.Builder addNestedsBuilder( - int index) { - return getNestedsFieldBuilder().addBuilder( - index, org.sonar.core.test.Test.NestedMsg.getDefaultInstance()); - } - /** - * repeated .NestedMsg nesteds = 2; - */ - public java.util.List - getNestedsBuilderList() { - return getNestedsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.core.test.Test.NestedMsg, org.sonar.core.test.Test.NestedMsg.Builder, org.sonar.core.test.Test.NestedMsgOrBuilder> - getNestedsFieldBuilder() { - if (nestedsBuilder_ == null) { - nestedsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.core.test.Test.NestedMsg, org.sonar.core.test.Test.NestedMsg.Builder, org.sonar.core.test.Test.NestedMsgOrBuilder>( - nesteds_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - nesteds_ = null; - } - return nestedsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:TestArray) - } - - // @@protoc_insertion_point(class_scope:TestArray) - private static final org.sonar.core.test.Test.TestArray DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.core.test.Test.TestArray(); - } - - public static org.sonar.core.test.Test.TestArray getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TestArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new TestArray(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.core.test.Test.TestArray getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NestedMsgOrBuilder extends - // @@protoc_insertion_point(interface_extends:NestedMsg) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string label = 1; - */ - boolean hasLabel(); - /** - * optional string label = 1; - */ - java.lang.String getLabel(); - /** - * optional string label = 1; - */ - com.google.protobuf.ByteString - getLabelBytes(); - } - /** - * Protobuf type {@code NestedMsg} - */ - public static final class NestedMsg extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:NestedMsg) - NestedMsgOrBuilder { - // Use NestedMsg.newBuilder() to construct. - private NestedMsg(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private NestedMsg() { - label_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NestedMsg( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - label_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_NestedMsg_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_NestedMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.NestedMsg.class, org.sonar.core.test.Test.NestedMsg.Builder.class); - } - - private int bitField0_; - public static final int LABEL_FIELD_NUMBER = 1; - private volatile java.lang.Object label_; - /** - * optional string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } - } - /** - * optional string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getLabelBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getLabelBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.core.test.Test.NestedMsg parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.NestedMsg parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.NestedMsg parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.NestedMsg parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.NestedMsg parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.NestedMsg parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.NestedMsg parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.core.test.Test.NestedMsg parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.NestedMsg parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.NestedMsg parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.core.test.Test.NestedMsg prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code NestedMsg} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:NestedMsg) - org.sonar.core.test.Test.NestedMsgOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_NestedMsg_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_NestedMsg_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.NestedMsg.class, org.sonar.core.test.Test.NestedMsg.Builder.class); - } - - // Construct using org.sonar.core.test.Test.NestedMsg.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.core.test.Test.internal_static_NestedMsg_descriptor; - } - - public org.sonar.core.test.Test.NestedMsg getDefaultInstanceForType() { - return org.sonar.core.test.Test.NestedMsg.getDefaultInstance(); - } - - public org.sonar.core.test.Test.NestedMsg build() { - org.sonar.core.test.Test.NestedMsg result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.core.test.Test.NestedMsg buildPartial() { - org.sonar.core.test.Test.NestedMsg result = new org.sonar.core.test.Test.NestedMsg(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.label_ = label_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.core.test.Test.NestedMsg) { - return mergeFrom((org.sonar.core.test.Test.NestedMsg)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.core.test.Test.NestedMsg other) { - if (other == org.sonar.core.test.Test.NestedMsg.getDefaultInstance()) return this; - if (other.hasLabel()) { - bitField0_ |= 0x00000001; - label_ = other.label_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.core.test.Test.NestedMsg parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.core.test.Test.NestedMsg) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object label_ = ""; - /** - * optional string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string label = 1; - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - /** - * optional string label = 1; - */ - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000001); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * optional string label = 1; - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:NestedMsg) - } - - // @@protoc_insertion_point(class_scope:NestedMsg) - private static final org.sonar.core.test.Test.NestedMsg DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.core.test.Test.NestedMsg(); - } - - public static org.sonar.core.test.Test.NestedMsg getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public NestedMsg parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new NestedMsg(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.core.test.Test.NestedMsg getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TestMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:TestMap) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, string> stringMap = 1; - */ - java.util.Map - getStringMap(); - - /** - * map<string, .NestedMsg> nestedMap = 2; - */ - java.util.Map - getNestedMap(); - } - /** - * Protobuf type {@code TestMap} - */ - public static final class TestMap extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:TestMap) - TestMapOrBuilder { - // Use TestMap.newBuilder() to construct. - private TestMap(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TestMap() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TestMap( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - stringMap_ = com.google.protobuf.MapField.newMapField( - StringMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - stringMap = input.readMessage( - StringMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - stringMap_.getMutableMap().put(stringMap.getKey(), stringMap.getValue()); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - nestedMap_ = com.google.protobuf.MapField.newMapField( - NestedMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - nestedMap = input.readMessage( - NestedMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - nestedMap_.getMutableMap().put(nestedMap.getKey(), nestedMap.getValue()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_TestMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetStringMap(); - case 2: - return internalGetNestedMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_TestMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.TestMap.class, org.sonar.core.test.Test.TestMap.Builder.class); - } - - public static final int STRINGMAP_FIELD_NUMBER = 1; - private static final class StringMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.sonar.core.test.Test.internal_static_TestMap_StringMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> stringMap_; - private com.google.protobuf.MapField - internalGetStringMap() { - if (stringMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - StringMapDefaultEntryHolder.defaultEntry); - } - return stringMap_; - } - /** - * map<string, string> stringMap = 1; - */ - - public java.util.Map getStringMap() { - return internalGetStringMap().getMap(); - } - - public static final int NESTEDMAP_FIELD_NUMBER = 2; - private static final class NestedMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.sonar.core.test.Test.NestedMsg> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.sonar.core.test.Test.internal_static_TestMap_NestedMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.sonar.core.test.Test.NestedMsg.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.sonar.core.test.Test.NestedMsg> nestedMap_; - private com.google.protobuf.MapField - internalGetNestedMap() { - if (nestedMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - NestedMapDefaultEntryHolder.defaultEntry); - } - return nestedMap_; - } - /** - * map<string, .NestedMsg> nestedMap = 2; - */ - - public java.util.Map getNestedMap() { - return internalGetNestedMap().getMap(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (java.util.Map.Entry entry - : internalGetStringMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - stringMap = StringMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - output.writeMessage(1, stringMap); - } - for (java.util.Map.Entry entry - : internalGetNestedMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - nestedMap = NestedMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - output.writeMessage(2, nestedMap); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetStringMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - stringMap = StringMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, stringMap); - } - for (java.util.Map.Entry entry - : internalGetNestedMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - nestedMap = NestedMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, nestedMap); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.core.test.Test.TestMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.TestMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.TestMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.TestMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.TestMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.TestMap parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.TestMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.core.test.Test.TestMap parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.TestMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.TestMap parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.core.test.Test.TestMap prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TestMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:TestMap) - org.sonar.core.test.Test.TestMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_TestMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetStringMap(); - case 2: - return internalGetNestedMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableStringMap(); - case 2: - return internalGetMutableNestedMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_TestMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.TestMap.class, org.sonar.core.test.Test.TestMap.Builder.class); - } - - // Construct using org.sonar.core.test.Test.TestMap.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - internalGetMutableStringMap().clear(); - internalGetMutableNestedMap().clear(); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.core.test.Test.internal_static_TestMap_descriptor; - } - - public org.sonar.core.test.Test.TestMap getDefaultInstanceForType() { - return org.sonar.core.test.Test.TestMap.getDefaultInstance(); - } - - public org.sonar.core.test.Test.TestMap build() { - org.sonar.core.test.Test.TestMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.core.test.Test.TestMap buildPartial() { - org.sonar.core.test.Test.TestMap result = new org.sonar.core.test.Test.TestMap(this); - int from_bitField0_ = bitField0_; - result.stringMap_ = internalGetStringMap(); - result.stringMap_.makeImmutable(); - result.nestedMap_ = internalGetNestedMap(); - result.nestedMap_.makeImmutable(); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.core.test.Test.TestMap) { - return mergeFrom((org.sonar.core.test.Test.TestMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.core.test.Test.TestMap other) { - if (other == org.sonar.core.test.Test.TestMap.getDefaultInstance()) return this; - internalGetMutableStringMap().mergeFrom( - other.internalGetStringMap()); - internalGetMutableNestedMap().mergeFrom( - other.internalGetNestedMap()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.core.test.Test.TestMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.core.test.Test.TestMap) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> stringMap_; - private com.google.protobuf.MapField - internalGetStringMap() { - if (stringMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - StringMapDefaultEntryHolder.defaultEntry); - } - return stringMap_; - } - private com.google.protobuf.MapField - internalGetMutableStringMap() { - onChanged();; - if (stringMap_ == null) { - stringMap_ = com.google.protobuf.MapField.newMapField( - StringMapDefaultEntryHolder.defaultEntry); - } - if (!stringMap_.isMutable()) { - stringMap_ = stringMap_.copy(); - } - return stringMap_; - } - /** - * map<string, string> stringMap = 1; - */ - public java.util.Map getStringMap() { - return internalGetStringMap().getMap(); - } - /** - * map<string, string> stringMap = 1; - */ - public java.util.Map - getMutableStringMap() { - return internalGetMutableStringMap().getMutableMap(); - } - - private com.google.protobuf.MapField< - java.lang.String, org.sonar.core.test.Test.NestedMsg> nestedMap_; - private com.google.protobuf.MapField - internalGetNestedMap() { - if (nestedMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - NestedMapDefaultEntryHolder.defaultEntry); - } - return nestedMap_; - } - private com.google.protobuf.MapField - internalGetMutableNestedMap() { - onChanged();; - if (nestedMap_ == null) { - nestedMap_ = com.google.protobuf.MapField.newMapField( - NestedMapDefaultEntryHolder.defaultEntry); - } - if (!nestedMap_.isMutable()) { - nestedMap_ = nestedMap_.copy(); - } - return nestedMap_; - } - /** - * map<string, .NestedMsg> nestedMap = 2; - */ - public java.util.Map getNestedMap() { - return internalGetNestedMap().getMap(); - } - /** - * map<string, .NestedMsg> nestedMap = 2; - */ - public java.util.Map - getMutableNestedMap() { - return internalGetMutableNestedMap().getMutableMap(); - } - - // @@protoc_insertion_point(builder_scope:TestMap) - } - - // @@protoc_insertion_point(class_scope:TestMap) - private static final org.sonar.core.test.Test.TestMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.core.test.Test.TestMap(); - } - - public static org.sonar.core.test.Test.TestMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TestMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new TestMap(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.core.test.Test.TestMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TestNullableArrayOrBuilder extends - // @@protoc_insertion_point(interface_extends:TestNullableArray) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string label = 1; - */ - boolean hasLabel(); - /** - * optional string label = 1; - */ - java.lang.String getLabel(); - /** - * optional string label = 1; - */ - com.google.protobuf.ByteString - getLabelBytes(); - - /** - * optional .Countries countries = 2; - * - *
-     * allow to make the difference between null and empty array
-     * 
- */ - boolean hasCountries(); - /** - * optional .Countries countries = 2; - * - *
-     * allow to make the difference between null and empty array
-     * 
- */ - org.sonar.core.test.Test.Countries getCountries(); - /** - * optional .Countries countries = 2; - * - *
-     * allow to make the difference between null and empty array
-     * 
- */ - org.sonar.core.test.Test.CountriesOrBuilder getCountriesOrBuilder(); - } - /** - * Protobuf type {@code TestNullableArray} - */ - public static final class TestNullableArray extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:TestNullableArray) - TestNullableArrayOrBuilder { - // Use TestNullableArray.newBuilder() to construct. - private TestNullableArray(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TestNullableArray() { - label_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TestNullableArray( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - label_ = bs; - break; - } - case 18: { - org.sonar.core.test.Test.Countries.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = countries_.toBuilder(); - } - countries_ = input.readMessage(org.sonar.core.test.Test.Countries.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(countries_); - countries_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_TestNullableArray_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_TestNullableArray_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.TestNullableArray.class, org.sonar.core.test.Test.TestNullableArray.Builder.class); - } - - private int bitField0_; - public static final int LABEL_FIELD_NUMBER = 1; - private volatile java.lang.Object label_; - /** - * optional string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } - } - /** - * optional string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COUNTRIES_FIELD_NUMBER = 2; - private org.sonar.core.test.Test.Countries countries_; - /** - * optional .Countries countries = 2; - * - *
-     * allow to make the difference between null and empty array
-     * 
- */ - public boolean hasCountries() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .Countries countries = 2; - * - *
-     * allow to make the difference between null and empty array
-     * 
- */ - public org.sonar.core.test.Test.Countries getCountries() { - return countries_ == null ? org.sonar.core.test.Test.Countries.getDefaultInstance() : countries_; - } - /** - * optional .Countries countries = 2; - * - *
-     * allow to make the difference between null and empty array
-     * 
- */ - public org.sonar.core.test.Test.CountriesOrBuilder getCountriesOrBuilder() { - return countries_ == null ? org.sonar.core.test.Test.Countries.getDefaultInstance() : countries_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getLabelBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, getCountries()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getLabelBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCountries()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.core.test.Test.TestNullableArray parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.TestNullableArray parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.TestNullableArray parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.TestNullableArray parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.TestNullableArray parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.TestNullableArray parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.TestNullableArray parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.core.test.Test.TestNullableArray parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.TestNullableArray parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.TestNullableArray parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.core.test.Test.TestNullableArray prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TestNullableArray} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:TestNullableArray) - org.sonar.core.test.Test.TestNullableArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_TestNullableArray_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_TestNullableArray_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.TestNullableArray.class, org.sonar.core.test.Test.TestNullableArray.Builder.class); - } - - // Construct using org.sonar.core.test.Test.TestNullableArray.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getCountriesFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (countriesBuilder_ == null) { - countries_ = null; - } else { - countriesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.core.test.Test.internal_static_TestNullableArray_descriptor; - } - - public org.sonar.core.test.Test.TestNullableArray getDefaultInstanceForType() { - return org.sonar.core.test.Test.TestNullableArray.getDefaultInstance(); - } - - public org.sonar.core.test.Test.TestNullableArray build() { - org.sonar.core.test.Test.TestNullableArray result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.core.test.Test.TestNullableArray buildPartial() { - org.sonar.core.test.Test.TestNullableArray result = new org.sonar.core.test.Test.TestNullableArray(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.label_ = label_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (countriesBuilder_ == null) { - result.countries_ = countries_; - } else { - result.countries_ = countriesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.core.test.Test.TestNullableArray) { - return mergeFrom((org.sonar.core.test.Test.TestNullableArray)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.core.test.Test.TestNullableArray other) { - if (other == org.sonar.core.test.Test.TestNullableArray.getDefaultInstance()) return this; - if (other.hasLabel()) { - bitField0_ |= 0x00000001; - label_ = other.label_; - onChanged(); - } - if (other.hasCountries()) { - mergeCountries(other.getCountries()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.core.test.Test.TestNullableArray parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.core.test.Test.TestNullableArray) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object label_ = ""; - /** - * optional string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string label = 1; - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - /** - * optional string label = 1; - */ - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000001); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * optional string label = 1; - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - - private org.sonar.core.test.Test.Countries countries_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonar.core.test.Test.Countries, org.sonar.core.test.Test.Countries.Builder, org.sonar.core.test.Test.CountriesOrBuilder> countriesBuilder_; - /** - * optional .Countries countries = 2; - * - *
-       * allow to make the difference between null and empty array
-       * 
- */ - public boolean hasCountries() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .Countries countries = 2; - * - *
-       * allow to make the difference between null and empty array
-       * 
- */ - public org.sonar.core.test.Test.Countries getCountries() { - if (countriesBuilder_ == null) { - return countries_ == null ? org.sonar.core.test.Test.Countries.getDefaultInstance() : countries_; - } else { - return countriesBuilder_.getMessage(); - } - } - /** - * optional .Countries countries = 2; - * - *
-       * allow to make the difference between null and empty array
-       * 
- */ - public Builder setCountries(org.sonar.core.test.Test.Countries value) { - if (countriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - countries_ = value; - onChanged(); - } else { - countriesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .Countries countries = 2; - * - *
-       * allow to make the difference between null and empty array
-       * 
- */ - public Builder setCountries( - org.sonar.core.test.Test.Countries.Builder builderForValue) { - if (countriesBuilder_ == null) { - countries_ = builderForValue.build(); - onChanged(); - } else { - countriesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .Countries countries = 2; - * - *
-       * allow to make the difference between null and empty array
-       * 
- */ - public Builder mergeCountries(org.sonar.core.test.Test.Countries value) { - if (countriesBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - countries_ != null && - countries_ != org.sonar.core.test.Test.Countries.getDefaultInstance()) { - countries_ = - org.sonar.core.test.Test.Countries.newBuilder(countries_).mergeFrom(value).buildPartial(); - } else { - countries_ = value; - } - onChanged(); - } else { - countriesBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .Countries countries = 2; - * - *
-       * allow to make the difference between null and empty array
-       * 
- */ - public Builder clearCountries() { - if (countriesBuilder_ == null) { - countries_ = null; - onChanged(); - } else { - countriesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * optional .Countries countries = 2; - * - *
-       * allow to make the difference between null and empty array
-       * 
- */ - public org.sonar.core.test.Test.Countries.Builder getCountriesBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getCountriesFieldBuilder().getBuilder(); - } - /** - * optional .Countries countries = 2; - * - *
-       * allow to make the difference between null and empty array
-       * 
- */ - public org.sonar.core.test.Test.CountriesOrBuilder getCountriesOrBuilder() { - if (countriesBuilder_ != null) { - return countriesBuilder_.getMessageOrBuilder(); - } else { - return countries_ == null ? - org.sonar.core.test.Test.Countries.getDefaultInstance() : countries_; - } - } - /** - * optional .Countries countries = 2; - * - *
-       * allow to make the difference between null and empty array
-       * 
- */ - private com.google.protobuf.SingleFieldBuilder< - org.sonar.core.test.Test.Countries, org.sonar.core.test.Test.Countries.Builder, org.sonar.core.test.Test.CountriesOrBuilder> - getCountriesFieldBuilder() { - if (countriesBuilder_ == null) { - countriesBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.core.test.Test.Countries, org.sonar.core.test.Test.Countries.Builder, org.sonar.core.test.Test.CountriesOrBuilder>( - getCountries(), - getParentForChildren(), - isClean()); - countries_ = null; - } - return countriesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:TestNullableArray) - } - - // @@protoc_insertion_point(class_scope:TestNullableArray) - private static final org.sonar.core.test.Test.TestNullableArray DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.core.test.Test.TestNullableArray(); - } - - public static org.sonar.core.test.Test.TestNullableArray getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TestNullableArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new TestNullableArray(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.core.test.Test.TestNullableArray getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TestNullableMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:TestNullableMap) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string label = 1; - */ - boolean hasLabel(); - /** - * optional string label = 1; - */ - java.lang.String getLabel(); - /** - * optional string label = 1; - */ - com.google.protobuf.ByteString - getLabelBytes(); - - /** - * optional .Translations translations = 2; - * - *
-     * allow to make the difference between null and empty map
-     * 
- */ - boolean hasTranslations(); - /** - * optional .Translations translations = 2; - * - *
-     * allow to make the difference between null and empty map
-     * 
- */ - org.sonar.core.test.Test.Translations getTranslations(); - /** - * optional .Translations translations = 2; - * - *
-     * allow to make the difference between null and empty map
-     * 
- */ - org.sonar.core.test.Test.TranslationsOrBuilder getTranslationsOrBuilder(); - } - /** - * Protobuf type {@code TestNullableMap} - */ - public static final class TestNullableMap extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:TestNullableMap) - TestNullableMapOrBuilder { - // Use TestNullableMap.newBuilder() to construct. - private TestNullableMap(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TestNullableMap() { - label_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TestNullableMap( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - label_ = bs; - break; - } - case 18: { - org.sonar.core.test.Test.Translations.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = translations_.toBuilder(); - } - translations_ = input.readMessage(org.sonar.core.test.Test.Translations.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(translations_); - translations_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_TestNullableMap_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_TestNullableMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.TestNullableMap.class, org.sonar.core.test.Test.TestNullableMap.Builder.class); - } - - private int bitField0_; - public static final int LABEL_FIELD_NUMBER = 1; - private volatile java.lang.Object label_; - /** - * optional string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } - } - /** - * optional string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TRANSLATIONS_FIELD_NUMBER = 2; - private org.sonar.core.test.Test.Translations translations_; - /** - * optional .Translations translations = 2; - * - *
-     * allow to make the difference between null and empty map
-     * 
- */ - public boolean hasTranslations() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .Translations translations = 2; - * - *
-     * allow to make the difference between null and empty map
-     * 
- */ - public org.sonar.core.test.Test.Translations getTranslations() { - return translations_ == null ? org.sonar.core.test.Test.Translations.getDefaultInstance() : translations_; - } - /** - * optional .Translations translations = 2; - * - *
-     * allow to make the difference between null and empty map
-     * 
- */ - public org.sonar.core.test.Test.TranslationsOrBuilder getTranslationsOrBuilder() { - return translations_ == null ? org.sonar.core.test.Test.Translations.getDefaultInstance() : translations_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getLabelBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, getTranslations()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getLabelBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTranslations()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.core.test.Test.TestNullableMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.TestNullableMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.TestNullableMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.TestNullableMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.TestNullableMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.TestNullableMap parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.TestNullableMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.core.test.Test.TestNullableMap parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.TestNullableMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.TestNullableMap parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.core.test.Test.TestNullableMap prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TestNullableMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:TestNullableMap) - org.sonar.core.test.Test.TestNullableMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_TestNullableMap_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_TestNullableMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.TestNullableMap.class, org.sonar.core.test.Test.TestNullableMap.Builder.class); - } - - // Construct using org.sonar.core.test.Test.TestNullableMap.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getTranslationsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - label_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (translationsBuilder_ == null) { - translations_ = null; - } else { - translationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.core.test.Test.internal_static_TestNullableMap_descriptor; - } - - public org.sonar.core.test.Test.TestNullableMap getDefaultInstanceForType() { - return org.sonar.core.test.Test.TestNullableMap.getDefaultInstance(); - } - - public org.sonar.core.test.Test.TestNullableMap build() { - org.sonar.core.test.Test.TestNullableMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.core.test.Test.TestNullableMap buildPartial() { - org.sonar.core.test.Test.TestNullableMap result = new org.sonar.core.test.Test.TestNullableMap(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.label_ = label_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (translationsBuilder_ == null) { - result.translations_ = translations_; - } else { - result.translations_ = translationsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.core.test.Test.TestNullableMap) { - return mergeFrom((org.sonar.core.test.Test.TestNullableMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.core.test.Test.TestNullableMap other) { - if (other == org.sonar.core.test.Test.TestNullableMap.getDefaultInstance()) return this; - if (other.hasLabel()) { - bitField0_ |= 0x00000001; - label_ = other.label_; - onChanged(); - } - if (other.hasTranslations()) { - mergeTranslations(other.getTranslations()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.core.test.Test.TestNullableMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.core.test.Test.TestNullableMap) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object label_ = ""; - /** - * optional string label = 1; - */ - public boolean hasLabel() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string label = 1; - */ - public java.lang.String getLabel() { - java.lang.Object ref = label_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - label_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string label = 1; - */ - public com.google.protobuf.ByteString - getLabelBytes() { - java.lang.Object ref = label_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - label_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string label = 1; - */ - public Builder setLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - /** - * optional string label = 1; - */ - public Builder clearLabel() { - bitField0_ = (bitField0_ & ~0x00000001); - label_ = getDefaultInstance().getLabel(); - onChanged(); - return this; - } - /** - * optional string label = 1; - */ - public Builder setLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - label_ = value; - onChanged(); - return this; - } - - private org.sonar.core.test.Test.Translations translations_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonar.core.test.Test.Translations, org.sonar.core.test.Test.Translations.Builder, org.sonar.core.test.Test.TranslationsOrBuilder> translationsBuilder_; - /** - * optional .Translations translations = 2; - * - *
-       * allow to make the difference between null and empty map
-       * 
- */ - public boolean hasTranslations() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .Translations translations = 2; - * - *
-       * allow to make the difference between null and empty map
-       * 
- */ - public org.sonar.core.test.Test.Translations getTranslations() { - if (translationsBuilder_ == null) { - return translations_ == null ? org.sonar.core.test.Test.Translations.getDefaultInstance() : translations_; - } else { - return translationsBuilder_.getMessage(); - } - } - /** - * optional .Translations translations = 2; - * - *
-       * allow to make the difference between null and empty map
-       * 
- */ - public Builder setTranslations(org.sonar.core.test.Test.Translations value) { - if (translationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - translations_ = value; - onChanged(); - } else { - translationsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .Translations translations = 2; - * - *
-       * allow to make the difference between null and empty map
-       * 
- */ - public Builder setTranslations( - org.sonar.core.test.Test.Translations.Builder builderForValue) { - if (translationsBuilder_ == null) { - translations_ = builderForValue.build(); - onChanged(); - } else { - translationsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .Translations translations = 2; - * - *
-       * allow to make the difference between null and empty map
-       * 
- */ - public Builder mergeTranslations(org.sonar.core.test.Test.Translations value) { - if (translationsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - translations_ != null && - translations_ != org.sonar.core.test.Test.Translations.getDefaultInstance()) { - translations_ = - org.sonar.core.test.Test.Translations.newBuilder(translations_).mergeFrom(value).buildPartial(); - } else { - translations_ = value; - } - onChanged(); - } else { - translationsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .Translations translations = 2; - * - *
-       * allow to make the difference between null and empty map
-       * 
- */ - public Builder clearTranslations() { - if (translationsBuilder_ == null) { - translations_ = null; - onChanged(); - } else { - translationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * optional .Translations translations = 2; - * - *
-       * allow to make the difference between null and empty map
-       * 
- */ - public org.sonar.core.test.Test.Translations.Builder getTranslationsBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getTranslationsFieldBuilder().getBuilder(); - } - /** - * optional .Translations translations = 2; - * - *
-       * allow to make the difference between null and empty map
-       * 
- */ - public org.sonar.core.test.Test.TranslationsOrBuilder getTranslationsOrBuilder() { - if (translationsBuilder_ != null) { - return translationsBuilder_.getMessageOrBuilder(); - } else { - return translations_ == null ? - org.sonar.core.test.Test.Translations.getDefaultInstance() : translations_; - } - } - /** - * optional .Translations translations = 2; - * - *
-       * allow to make the difference between null and empty map
-       * 
- */ - private com.google.protobuf.SingleFieldBuilder< - org.sonar.core.test.Test.Translations, org.sonar.core.test.Test.Translations.Builder, org.sonar.core.test.Test.TranslationsOrBuilder> - getTranslationsFieldBuilder() { - if (translationsBuilder_ == null) { - translationsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.core.test.Test.Translations, org.sonar.core.test.Test.Translations.Builder, org.sonar.core.test.Test.TranslationsOrBuilder>( - getTranslations(), - getParentForChildren(), - isClean()); - translations_ = null; - } - return translationsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:TestNullableMap) - } - - // @@protoc_insertion_point(class_scope:TestNullableMap) - private static final org.sonar.core.test.Test.TestNullableMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.core.test.Test.TestNullableMap(); - } - - public static org.sonar.core.test.Test.TestNullableMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TestNullableMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new TestNullableMap(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.core.test.Test.TestNullableMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TestMapOfArrayOrBuilder extends - // @@protoc_insertion_point(interface_extends:TestMapOfArray) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .Countries> moneys = 1; - * - *
-     * allow to have map values of arrays
-     * 
- */ - java.util.Map - getMoneys(); - } - /** - * Protobuf type {@code TestMapOfArray} - */ - public static final class TestMapOfArray extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:TestMapOfArray) - TestMapOfArrayOrBuilder { - // Use TestMapOfArray.newBuilder() to construct. - private TestMapOfArray(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TestMapOfArray() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TestMapOfArray( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - moneys_ = com.google.protobuf.MapField.newMapField( - MoneysDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - moneys = input.readMessage( - MoneysDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - moneys_.getMutableMap().put(moneys.getKey(), moneys.getValue()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_TestMapOfArray_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetMoneys(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_TestMapOfArray_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.TestMapOfArray.class, org.sonar.core.test.Test.TestMapOfArray.Builder.class); - } - - public static final int MONEYS_FIELD_NUMBER = 1; - private static final class MoneysDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.sonar.core.test.Test.Countries> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.sonar.core.test.Test.internal_static_TestMapOfArray_MoneysEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.sonar.core.test.Test.Countries.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.sonar.core.test.Test.Countries> moneys_; - private com.google.protobuf.MapField - internalGetMoneys() { - if (moneys_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MoneysDefaultEntryHolder.defaultEntry); - } - return moneys_; - } - /** - * map<string, .Countries> moneys = 1; - * - *
-     * allow to have map values of arrays
-     * 
- */ - - public java.util.Map getMoneys() { - return internalGetMoneys().getMap(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (java.util.Map.Entry entry - : internalGetMoneys().getMap().entrySet()) { - com.google.protobuf.MapEntry - moneys = MoneysDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - output.writeMessage(1, moneys); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetMoneys().getMap().entrySet()) { - com.google.protobuf.MapEntry - moneys = MoneysDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, moneys); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.core.test.Test.TestMapOfArray parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.TestMapOfArray parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.TestMapOfArray parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.TestMapOfArray parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.TestMapOfArray parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.TestMapOfArray parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.TestMapOfArray parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.core.test.Test.TestMapOfArray parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.TestMapOfArray parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.TestMapOfArray parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.core.test.Test.TestMapOfArray prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TestMapOfArray} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:TestMapOfArray) - org.sonar.core.test.Test.TestMapOfArrayOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_TestMapOfArray_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetMoneys(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableMoneys(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_TestMapOfArray_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.TestMapOfArray.class, org.sonar.core.test.Test.TestMapOfArray.Builder.class); - } - - // Construct using org.sonar.core.test.Test.TestMapOfArray.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - internalGetMutableMoneys().clear(); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.core.test.Test.internal_static_TestMapOfArray_descriptor; - } - - public org.sonar.core.test.Test.TestMapOfArray getDefaultInstanceForType() { - return org.sonar.core.test.Test.TestMapOfArray.getDefaultInstance(); - } - - public org.sonar.core.test.Test.TestMapOfArray build() { - org.sonar.core.test.Test.TestMapOfArray result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.core.test.Test.TestMapOfArray buildPartial() { - org.sonar.core.test.Test.TestMapOfArray result = new org.sonar.core.test.Test.TestMapOfArray(this); - int from_bitField0_ = bitField0_; - result.moneys_ = internalGetMoneys(); - result.moneys_.makeImmutable(); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.core.test.Test.TestMapOfArray) { - return mergeFrom((org.sonar.core.test.Test.TestMapOfArray)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.core.test.Test.TestMapOfArray other) { - if (other == org.sonar.core.test.Test.TestMapOfArray.getDefaultInstance()) return this; - internalGetMutableMoneys().mergeFrom( - other.internalGetMoneys()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.core.test.Test.TestMapOfArray parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.core.test.Test.TestMapOfArray) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, org.sonar.core.test.Test.Countries> moneys_; - private com.google.protobuf.MapField - internalGetMoneys() { - if (moneys_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MoneysDefaultEntryHolder.defaultEntry); - } - return moneys_; - } - private com.google.protobuf.MapField - internalGetMutableMoneys() { - onChanged();; - if (moneys_ == null) { - moneys_ = com.google.protobuf.MapField.newMapField( - MoneysDefaultEntryHolder.defaultEntry); - } - if (!moneys_.isMutable()) { - moneys_ = moneys_.copy(); - } - return moneys_; - } - /** - * map<string, .Countries> moneys = 1; - * - *
-       * allow to have map values of arrays
-       * 
- */ - public java.util.Map getMoneys() { - return internalGetMoneys().getMap(); - } - /** - * map<string, .Countries> moneys = 1; - * - *
-       * allow to have map values of arrays
-       * 
- */ - public java.util.Map - getMutableMoneys() { - return internalGetMutableMoneys().getMutableMap(); - } - - // @@protoc_insertion_point(builder_scope:TestMapOfArray) - } - - // @@protoc_insertion_point(class_scope:TestMapOfArray) - private static final org.sonar.core.test.Test.TestMapOfArray DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.core.test.Test.TestMapOfArray(); - } - - public static org.sonar.core.test.Test.TestMapOfArray getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TestMapOfArray parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new TestMapOfArray(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.core.test.Test.TestMapOfArray getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TestMapOfMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:TestMapOfMap) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .Translations> catalogs = 1; - * - *
-     * allow to have map values of maps
-     * 
- */ - java.util.Map - getCatalogs(); - } - /** - * Protobuf type {@code TestMapOfMap} - */ - public static final class TestMapOfMap extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:TestMapOfMap) - TestMapOfMapOrBuilder { - // Use TestMapOfMap.newBuilder() to construct. - private TestMapOfMap(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TestMapOfMap() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TestMapOfMap( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - catalogs_ = com.google.protobuf.MapField.newMapField( - CatalogsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - catalogs = input.readMessage( - CatalogsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - catalogs_.getMutableMap().put(catalogs.getKey(), catalogs.getValue()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_TestMapOfMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetCatalogs(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_TestMapOfMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.TestMapOfMap.class, org.sonar.core.test.Test.TestMapOfMap.Builder.class); - } - - public static final int CATALOGS_FIELD_NUMBER = 1; - private static final class CatalogsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.sonar.core.test.Test.Translations> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.sonar.core.test.Test.internal_static_TestMapOfMap_CatalogsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.sonar.core.test.Test.Translations.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.sonar.core.test.Test.Translations> catalogs_; - private com.google.protobuf.MapField - internalGetCatalogs() { - if (catalogs_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CatalogsDefaultEntryHolder.defaultEntry); - } - return catalogs_; - } - /** - * map<string, .Translations> catalogs = 1; - * - *
-     * allow to have map values of maps
-     * 
- */ - - public java.util.Map getCatalogs() { - return internalGetCatalogs().getMap(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (java.util.Map.Entry entry - : internalGetCatalogs().getMap().entrySet()) { - com.google.protobuf.MapEntry - catalogs = CatalogsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - output.writeMessage(1, catalogs); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetCatalogs().getMap().entrySet()) { - com.google.protobuf.MapEntry - catalogs = CatalogsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, catalogs); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.core.test.Test.TestMapOfMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.TestMapOfMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.TestMapOfMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.TestMapOfMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.TestMapOfMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.TestMapOfMap parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.TestMapOfMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.core.test.Test.TestMapOfMap parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.TestMapOfMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.TestMapOfMap parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.core.test.Test.TestMapOfMap prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code TestMapOfMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:TestMapOfMap) - org.sonar.core.test.Test.TestMapOfMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_TestMapOfMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetCatalogs(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableCatalogs(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_TestMapOfMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.TestMapOfMap.class, org.sonar.core.test.Test.TestMapOfMap.Builder.class); - } - - // Construct using org.sonar.core.test.Test.TestMapOfMap.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - internalGetMutableCatalogs().clear(); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.core.test.Test.internal_static_TestMapOfMap_descriptor; - } - - public org.sonar.core.test.Test.TestMapOfMap getDefaultInstanceForType() { - return org.sonar.core.test.Test.TestMapOfMap.getDefaultInstance(); - } - - public org.sonar.core.test.Test.TestMapOfMap build() { - org.sonar.core.test.Test.TestMapOfMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.core.test.Test.TestMapOfMap buildPartial() { - org.sonar.core.test.Test.TestMapOfMap result = new org.sonar.core.test.Test.TestMapOfMap(this); - int from_bitField0_ = bitField0_; - result.catalogs_ = internalGetCatalogs(); - result.catalogs_.makeImmutable(); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.core.test.Test.TestMapOfMap) { - return mergeFrom((org.sonar.core.test.Test.TestMapOfMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.core.test.Test.TestMapOfMap other) { - if (other == org.sonar.core.test.Test.TestMapOfMap.getDefaultInstance()) return this; - internalGetMutableCatalogs().mergeFrom( - other.internalGetCatalogs()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.core.test.Test.TestMapOfMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.core.test.Test.TestMapOfMap) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, org.sonar.core.test.Test.Translations> catalogs_; - private com.google.protobuf.MapField - internalGetCatalogs() { - if (catalogs_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CatalogsDefaultEntryHolder.defaultEntry); - } - return catalogs_; - } - private com.google.protobuf.MapField - internalGetMutableCatalogs() { - onChanged();; - if (catalogs_ == null) { - catalogs_ = com.google.protobuf.MapField.newMapField( - CatalogsDefaultEntryHolder.defaultEntry); - } - if (!catalogs_.isMutable()) { - catalogs_ = catalogs_.copy(); - } - return catalogs_; - } - /** - * map<string, .Translations> catalogs = 1; - * - *
-       * allow to have map values of maps
-       * 
- */ - public java.util.Map getCatalogs() { - return internalGetCatalogs().getMap(); - } - /** - * map<string, .Translations> catalogs = 1; - * - *
-       * allow to have map values of maps
-       * 
- */ - public java.util.Map - getMutableCatalogs() { - return internalGetMutableCatalogs().getMutableMap(); - } - - // @@protoc_insertion_point(builder_scope:TestMapOfMap) - } - - // @@protoc_insertion_point(class_scope:TestMapOfMap) - private static final org.sonar.core.test.Test.TestMapOfMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.core.test.Test.TestMapOfMap(); - } - - public static org.sonar.core.test.Test.TestMapOfMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TestMapOfMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new TestMapOfMap(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.core.test.Test.TestMapOfMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TranslationsOrBuilder extends - // @@protoc_insertion_point(interface_extends:Translations) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, string> translations = 1; - */ - java.util.Map - getTranslations(); - } - /** - * Protobuf type {@code Translations} - */ - public static final class Translations extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Translations) - TranslationsOrBuilder { - // Use Translations.newBuilder() to construct. - private Translations(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Translations() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Translations( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - translations_ = com.google.protobuf.MapField.newMapField( - TranslationsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - translations = input.readMessage( - TranslationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - translations_.getMutableMap().put(translations.getKey(), translations.getValue()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_Translations_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetTranslations(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_Translations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.Translations.class, org.sonar.core.test.Test.Translations.Builder.class); - } - - public static final int TRANSLATIONS_FIELD_NUMBER = 1; - private static final class TranslationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.sonar.core.test.Test.internal_static_Translations_TranslationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> translations_; - private com.google.protobuf.MapField - internalGetTranslations() { - if (translations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TranslationsDefaultEntryHolder.defaultEntry); - } - return translations_; - } - /** - * map<string, string> translations = 1; - */ - - public java.util.Map getTranslations() { - return internalGetTranslations().getMap(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (java.util.Map.Entry entry - : internalGetTranslations().getMap().entrySet()) { - com.google.protobuf.MapEntry - translations = TranslationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - output.writeMessage(1, translations); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetTranslations().getMap().entrySet()) { - com.google.protobuf.MapEntry - translations = TranslationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, translations); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.core.test.Test.Translations parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.Translations parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.Translations parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.Translations parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.Translations parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.Translations parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.Translations parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.core.test.Test.Translations parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.Translations parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.Translations parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.core.test.Test.Translations prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Translations} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Translations) - org.sonar.core.test.Test.TranslationsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_Translations_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetTranslations(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableTranslations(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_Translations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.Translations.class, org.sonar.core.test.Test.Translations.Builder.class); - } - - // Construct using org.sonar.core.test.Test.Translations.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - internalGetMutableTranslations().clear(); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.core.test.Test.internal_static_Translations_descriptor; - } - - public org.sonar.core.test.Test.Translations getDefaultInstanceForType() { - return org.sonar.core.test.Test.Translations.getDefaultInstance(); - } - - public org.sonar.core.test.Test.Translations build() { - org.sonar.core.test.Test.Translations result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.core.test.Test.Translations buildPartial() { - org.sonar.core.test.Test.Translations result = new org.sonar.core.test.Test.Translations(this); - int from_bitField0_ = bitField0_; - result.translations_ = internalGetTranslations(); - result.translations_.makeImmutable(); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.core.test.Test.Translations) { - return mergeFrom((org.sonar.core.test.Test.Translations)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.core.test.Test.Translations other) { - if (other == org.sonar.core.test.Test.Translations.getDefaultInstance()) return this; - internalGetMutableTranslations().mergeFrom( - other.internalGetTranslations()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.core.test.Test.Translations parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.core.test.Test.Translations) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> translations_; - private com.google.protobuf.MapField - internalGetTranslations() { - if (translations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TranslationsDefaultEntryHolder.defaultEntry); - } - return translations_; - } - private com.google.protobuf.MapField - internalGetMutableTranslations() { - onChanged();; - if (translations_ == null) { - translations_ = com.google.protobuf.MapField.newMapField( - TranslationsDefaultEntryHolder.defaultEntry); - } - if (!translations_.isMutable()) { - translations_ = translations_.copy(); - } - return translations_; - } - /** - * map<string, string> translations = 1; - */ - public java.util.Map getTranslations() { - return internalGetTranslations().getMap(); - } - /** - * map<string, string> translations = 1; - */ - public java.util.Map - getMutableTranslations() { - return internalGetMutableTranslations().getMutableMap(); - } - - // @@protoc_insertion_point(builder_scope:Translations) - } - - // @@protoc_insertion_point(class_scope:Translations) - private static final org.sonar.core.test.Test.Translations DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.core.test.Test.Translations(); - } - - public static org.sonar.core.test.Test.Translations getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Translations parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Translations(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.core.test.Test.Translations getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CountriesOrBuilder extends - // @@protoc_insertion_point(interface_extends:Countries) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .Country countries = 1; - */ - java.util.List - getCountriesList(); - /** - * repeated .Country countries = 1; - */ - org.sonar.core.test.Test.Country getCountries(int index); - /** - * repeated .Country countries = 1; - */ - int getCountriesCount(); - /** - * repeated .Country countries = 1; - */ - java.util.List - getCountriesOrBuilderList(); - /** - * repeated .Country countries = 1; - */ - org.sonar.core.test.Test.CountryOrBuilder getCountriesOrBuilder( - int index); - } - /** - * Protobuf type {@code Countries} - */ - public static final class Countries extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Countries) - CountriesOrBuilder { - // Use Countries.newBuilder() to construct. - private Countries(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Countries() { - countries_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Countries( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - countries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - countries_.add(input.readMessage(org.sonar.core.test.Test.Country.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - countries_ = java.util.Collections.unmodifiableList(countries_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_Countries_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_Countries_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.Countries.class, org.sonar.core.test.Test.Countries.Builder.class); - } - - public static final int COUNTRIES_FIELD_NUMBER = 1; - private java.util.List countries_; - /** - * repeated .Country countries = 1; - */ - public java.util.List getCountriesList() { - return countries_; - } - /** - * repeated .Country countries = 1; - */ - public java.util.List - getCountriesOrBuilderList() { - return countries_; - } - /** - * repeated .Country countries = 1; - */ - public int getCountriesCount() { - return countries_.size(); - } - /** - * repeated .Country countries = 1; - */ - public org.sonar.core.test.Test.Country getCountries(int index) { - return countries_.get(index); - } - /** - * repeated .Country countries = 1; - */ - public org.sonar.core.test.Test.CountryOrBuilder getCountriesOrBuilder( - int index) { - return countries_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < countries_.size(); i++) { - output.writeMessage(1, countries_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < countries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, countries_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.core.test.Test.Countries parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.Countries parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.Countries parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.Countries parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.Countries parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.Countries parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.Countries parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.core.test.Test.Countries parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.Countries parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.Countries parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.core.test.Test.Countries prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Countries} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Countries) - org.sonar.core.test.Test.CountriesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_Countries_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_Countries_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.Countries.class, org.sonar.core.test.Test.Countries.Builder.class); - } - - // Construct using org.sonar.core.test.Test.Countries.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getCountriesFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (countriesBuilder_ == null) { - countries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - countriesBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.core.test.Test.internal_static_Countries_descriptor; - } - - public org.sonar.core.test.Test.Countries getDefaultInstanceForType() { - return org.sonar.core.test.Test.Countries.getDefaultInstance(); - } - - public org.sonar.core.test.Test.Countries build() { - org.sonar.core.test.Test.Countries result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.core.test.Test.Countries buildPartial() { - org.sonar.core.test.Test.Countries result = new org.sonar.core.test.Test.Countries(this); - int from_bitField0_ = bitField0_; - if (countriesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - countries_ = java.util.Collections.unmodifiableList(countries_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.countries_ = countries_; - } else { - result.countries_ = countriesBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.core.test.Test.Countries) { - return mergeFrom((org.sonar.core.test.Test.Countries)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.core.test.Test.Countries other) { - if (other == org.sonar.core.test.Test.Countries.getDefaultInstance()) return this; - if (countriesBuilder_ == null) { - if (!other.countries_.isEmpty()) { - if (countries_.isEmpty()) { - countries_ = other.countries_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCountriesIsMutable(); - countries_.addAll(other.countries_); - } - onChanged(); - } - } else { - if (!other.countries_.isEmpty()) { - if (countriesBuilder_.isEmpty()) { - countriesBuilder_.dispose(); - countriesBuilder_ = null; - countries_ = other.countries_; - bitField0_ = (bitField0_ & ~0x00000001); - countriesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getCountriesFieldBuilder() : null; - } else { - countriesBuilder_.addAllMessages(other.countries_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.core.test.Test.Countries parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.core.test.Test.Countries) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List countries_ = - java.util.Collections.emptyList(); - private void ensureCountriesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - countries_ = new java.util.ArrayList(countries_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.core.test.Test.Country, org.sonar.core.test.Test.Country.Builder, org.sonar.core.test.Test.CountryOrBuilder> countriesBuilder_; - - /** - * repeated .Country countries = 1; - */ - public java.util.List getCountriesList() { - if (countriesBuilder_ == null) { - return java.util.Collections.unmodifiableList(countries_); - } else { - return countriesBuilder_.getMessageList(); - } - } - /** - * repeated .Country countries = 1; - */ - public int getCountriesCount() { - if (countriesBuilder_ == null) { - return countries_.size(); - } else { - return countriesBuilder_.getCount(); - } - } - /** - * repeated .Country countries = 1; - */ - public org.sonar.core.test.Test.Country getCountries(int index) { - if (countriesBuilder_ == null) { - return countries_.get(index); - } else { - return countriesBuilder_.getMessage(index); - } - } - /** - * repeated .Country countries = 1; - */ - public Builder setCountries( - int index, org.sonar.core.test.Test.Country value) { - if (countriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCountriesIsMutable(); - countries_.set(index, value); - onChanged(); - } else { - countriesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .Country countries = 1; - */ - public Builder setCountries( - int index, org.sonar.core.test.Test.Country.Builder builderForValue) { - if (countriesBuilder_ == null) { - ensureCountriesIsMutable(); - countries_.set(index, builderForValue.build()); - onChanged(); - } else { - countriesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Country countries = 1; - */ - public Builder addCountries(org.sonar.core.test.Test.Country value) { - if (countriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCountriesIsMutable(); - countries_.add(value); - onChanged(); - } else { - countriesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .Country countries = 1; - */ - public Builder addCountries( - int index, org.sonar.core.test.Test.Country value) { - if (countriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCountriesIsMutable(); - countries_.add(index, value); - onChanged(); - } else { - countriesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .Country countries = 1; - */ - public Builder addCountries( - org.sonar.core.test.Test.Country.Builder builderForValue) { - if (countriesBuilder_ == null) { - ensureCountriesIsMutable(); - countries_.add(builderForValue.build()); - onChanged(); - } else { - countriesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .Country countries = 1; - */ - public Builder addCountries( - int index, org.sonar.core.test.Test.Country.Builder builderForValue) { - if (countriesBuilder_ == null) { - ensureCountriesIsMutable(); - countries_.add(index, builderForValue.build()); - onChanged(); - } else { - countriesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .Country countries = 1; - */ - public Builder addAllCountries( - java.lang.Iterable values) { - if (countriesBuilder_ == null) { - ensureCountriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, countries_); - onChanged(); - } else { - countriesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .Country countries = 1; - */ - public Builder clearCountries() { - if (countriesBuilder_ == null) { - countries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - countriesBuilder_.clear(); - } - return this; - } - /** - * repeated .Country countries = 1; - */ - public Builder removeCountries(int index) { - if (countriesBuilder_ == null) { - ensureCountriesIsMutable(); - countries_.remove(index); - onChanged(); - } else { - countriesBuilder_.remove(index); - } - return this; - } - /** - * repeated .Country countries = 1; - */ - public org.sonar.core.test.Test.Country.Builder getCountriesBuilder( - int index) { - return getCountriesFieldBuilder().getBuilder(index); - } - /** - * repeated .Country countries = 1; - */ - public org.sonar.core.test.Test.CountryOrBuilder getCountriesOrBuilder( - int index) { - if (countriesBuilder_ == null) { - return countries_.get(index); } else { - return countriesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .Country countries = 1; - */ - public java.util.List - getCountriesOrBuilderList() { - if (countriesBuilder_ != null) { - return countriesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(countries_); - } - } - /** - * repeated .Country countries = 1; - */ - public org.sonar.core.test.Test.Country.Builder addCountriesBuilder() { - return getCountriesFieldBuilder().addBuilder( - org.sonar.core.test.Test.Country.getDefaultInstance()); - } - /** - * repeated .Country countries = 1; - */ - public org.sonar.core.test.Test.Country.Builder addCountriesBuilder( - int index) { - return getCountriesFieldBuilder().addBuilder( - index, org.sonar.core.test.Test.Country.getDefaultInstance()); - } - /** - * repeated .Country countries = 1; - */ - public java.util.List - getCountriesBuilderList() { - return getCountriesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.core.test.Test.Country, org.sonar.core.test.Test.Country.Builder, org.sonar.core.test.Test.CountryOrBuilder> - getCountriesFieldBuilder() { - if (countriesBuilder_ == null) { - countriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.core.test.Test.Country, org.sonar.core.test.Test.Country.Builder, org.sonar.core.test.Test.CountryOrBuilder>( - countries_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - countries_ = null; - } - return countriesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:Countries) - } - - // @@protoc_insertion_point(class_scope:Countries) - private static final org.sonar.core.test.Test.Countries DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.core.test.Test.Countries(); - } - - public static org.sonar.core.test.Test.Countries getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Countries parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Countries(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.core.test.Test.Countries getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CountryOrBuilder extends - // @@protoc_insertion_point(interface_extends:Country) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string name = 1; - */ - boolean hasName(); - /** - * optional string name = 1; - */ - java.lang.String getName(); - /** - * optional string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string continent = 2; - */ - boolean hasContinent(); - /** - * optional string continent = 2; - */ - java.lang.String getContinent(); - /** - * optional string continent = 2; - */ - com.google.protobuf.ByteString - getContinentBytes(); - } - /** - * Protobuf type {@code Country} - */ - public static final class Country extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:Country) - CountryOrBuilder { - // Use Country.newBuilder() to construct. - private Country(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Country() { - name_ = ""; - continent_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Country( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - continent_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_Country_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_Country_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.Country.class, org.sonar.core.test.Test.Country.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * optional string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTINENT_FIELD_NUMBER = 2; - private volatile java.lang.Object continent_; - /** - * optional string continent = 2; - */ - public boolean hasContinent() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string continent = 2; - */ - public java.lang.String getContinent() { - java.lang.Object ref = continent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - continent_ = s; - } - return s; - } - } - /** - * optional string continent = 2; - */ - public com.google.protobuf.ByteString - getContinentBytes() { - java.lang.Object ref = continent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - continent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getContinentBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getContinentBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.core.test.Test.Country parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.Country parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.Country parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.core.test.Test.Country parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.core.test.Test.Country parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.Country parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.Country parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.core.test.Test.Country parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.core.test.Test.Country parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.core.test.Test.Country parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.core.test.Test.Country prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code Country} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:Country) - org.sonar.core.test.Test.CountryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.core.test.Test.internal_static_Country_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.core.test.Test.internal_static_Country_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.core.test.Test.Country.class, org.sonar.core.test.Test.Country.Builder.class); - } - - // Construct using org.sonar.core.test.Test.Country.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - continent_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.core.test.Test.internal_static_Country_descriptor; - } - - public org.sonar.core.test.Test.Country getDefaultInstanceForType() { - return org.sonar.core.test.Test.Country.getDefaultInstance(); - } - - public org.sonar.core.test.Test.Country build() { - org.sonar.core.test.Test.Country result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.core.test.Test.Country buildPartial() { - org.sonar.core.test.Test.Country result = new org.sonar.core.test.Test.Country(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.continent_ = continent_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.core.test.Test.Country) { - return mergeFrom((org.sonar.core.test.Test.Country)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.core.test.Test.Country other) { - if (other == org.sonar.core.test.Test.Country.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasContinent()) { - bitField0_ |= 0x00000002; - continent_ = other.continent_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.core.test.Test.Country parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.core.test.Test.Country) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * optional string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object continent_ = ""; - /** - * optional string continent = 2; - */ - public boolean hasContinent() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string continent = 2; - */ - public java.lang.String getContinent() { - java.lang.Object ref = continent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - continent_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string continent = 2; - */ - public com.google.protobuf.ByteString - getContinentBytes() { - java.lang.Object ref = continent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - continent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string continent = 2; - */ - public Builder setContinent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - continent_ = value; - onChanged(); - return this; - } - /** - * optional string continent = 2; - */ - public Builder clearContinent() { - bitField0_ = (bitField0_ & ~0x00000002); - continent_ = getDefaultInstance().getContinent(); - onChanged(); - return this; - } - /** - * optional string continent = 2; - */ - public Builder setContinentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - continent_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:Country) - } - - // @@protoc_insertion_point(class_scope:Country) - private static final org.sonar.core.test.Test.Country DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.core.test.Test.Country(); - } - - public static org.sonar.core.test.Test.Country getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Country parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Country(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.core.test.Test.Country getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Fake_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Fake_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_PrimitiveTypeMsg_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_PrimitiveTypeMsg_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_TestArray_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_TestArray_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_NestedMsg_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_NestedMsg_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_TestMap_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_TestMap_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_TestMap_StringMapEntry_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_TestMap_StringMapEntry_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_TestMap_NestedMapEntry_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_TestMap_NestedMapEntry_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_TestNullableArray_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_TestNullableArray_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_TestNullableMap_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_TestNullableMap_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_TestMapOfArray_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_TestMapOfArray_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_TestMapOfArray_MoneysEntry_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_TestMapOfArray_MoneysEntry_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_TestMapOfMap_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_TestMapOfMap_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_TestMapOfMap_CatalogsEntry_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_TestMapOfMap_CatalogsEntry_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Translations_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Translations_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Translations_TranslationsEntry_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Translations_TranslationsEntry_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Countries_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Countries_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_Country_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_Country_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\ntest.proto\"#\n\004Fake\022\r\n\005label\030\001 \001(\t\022\014\n\004l" + - "ine\030\002 \001(\005\"\305\001\n\020PrimitiveTypeMsg\022\023\n\013string" + - "Field\030\001 \001(\t\022\020\n\010intField\030\002 \001(\005\022\021\n\tlongFie" + - "ld\030\003 \001(\003\022\023\n\013doubleField\030\004 \001(\001\022\024\n\014boolean" + - "Field\030\005 \001(\010\022\034\n\tenumField\030\006 \001(\0162\t.FakeEnu" + - "m\022\022\n\nbytesField\030\007 \001(\014\022\032\n\006nested\030\010 \001(\0132\n." + - "NestedMsg\"9\n\tTestArray\022\017\n\007strings\030\001 \003(\t\022" + - "\033\n\007nesteds\030\002 \003(\0132\n.NestedMsg\"\032\n\tNestedMs" + - "g\022\r\n\005label\030\001 \001(\t\"\321\001\n\007TestMap\022*\n\tstringMa" + - "p\030\001 \003(\0132\027.TestMap.StringMapEntry\022*\n\tnest", - "edMap\030\002 \003(\0132\027.TestMap.NestedMapEntry\0320\n\016" + - "StringMapEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001\032<\n\016NestedMapEntry\022\013\n\003key\030\001 \001(\t\022\031\n" + - "\005value\030\002 \001(\0132\n.NestedMsg:\0028\001\"A\n\021TestNull" + - "ableArray\022\r\n\005label\030\001 \001(\t\022\035\n\tcountries\030\002 " + - "\001(\0132\n.Countries\"E\n\017TestNullableMap\022\r\n\005la" + - "bel\030\001 \001(\t\022#\n\014translations\030\002 \001(\0132\r.Transl" + - "ations\"x\n\016TestMapOfArray\022+\n\006moneys\030\001 \003(\013" + - "2\033.TestMapOfArray.MoneysEntry\0329\n\013MoneysE" + - "ntry\022\013\n\003key\030\001 \001(\t\022\031\n\005value\030\002 \001(\0132\n.Count", - "ries:\0028\001\"}\n\014TestMapOfMap\022-\n\010catalogs\030\001 \003" + - "(\0132\033.TestMapOfMap.CatalogsEntry\032>\n\rCatal" + - "ogsEntry\022\013\n\003key\030\001 \001(\t\022\034\n\005value\030\002 \001(\0132\r.T" + - "ranslations:\0028\001\"z\n\014Translations\0225\n\014trans" + - "lations\030\001 \003(\0132\037.Translations.Translation" + - "sEntry\0323\n\021TranslationsEntry\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\t:\0028\001\"(\n\tCountries\022\033\n\tcoun" + - "tries\030\001 \003(\0132\010.Country\"*\n\007Country\022\014\n\004name" + - "\030\001 \001(\t\022\021\n\tcontinent\030\002 \001(\t*(\n\010FakeEnum\022\010\n" + - "\004BLUE\020\000\022\007\n\003RED\020\001\022\t\n\005GREEN\020\002B\027\n\023org.sonar", - ".core.testH\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_Fake_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_Fake_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Fake_descriptor, - new java.lang.String[] { "Label", "Line", }); - internal_static_PrimitiveTypeMsg_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_PrimitiveTypeMsg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_PrimitiveTypeMsg_descriptor, - new java.lang.String[] { "StringField", "IntField", "LongField", "DoubleField", "BooleanField", "EnumField", "BytesField", "Nested", }); - internal_static_TestArray_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_TestArray_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_TestArray_descriptor, - new java.lang.String[] { "Strings", "Nesteds", }); - internal_static_NestedMsg_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_NestedMsg_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_NestedMsg_descriptor, - new java.lang.String[] { "Label", }); - internal_static_TestMap_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_TestMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_TestMap_descriptor, - new java.lang.String[] { "StringMap", "NestedMap", }); - internal_static_TestMap_StringMapEntry_descriptor = - internal_static_TestMap_descriptor.getNestedTypes().get(0); - internal_static_TestMap_StringMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_TestMap_StringMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_TestMap_NestedMapEntry_descriptor = - internal_static_TestMap_descriptor.getNestedTypes().get(1); - internal_static_TestMap_NestedMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_TestMap_NestedMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_TestNullableArray_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_TestNullableArray_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_TestNullableArray_descriptor, - new java.lang.String[] { "Label", "Countries", }); - internal_static_TestNullableMap_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_TestNullableMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_TestNullableMap_descriptor, - new java.lang.String[] { "Label", "Translations", }); - internal_static_TestMapOfArray_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_TestMapOfArray_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_TestMapOfArray_descriptor, - new java.lang.String[] { "Moneys", }); - internal_static_TestMapOfArray_MoneysEntry_descriptor = - internal_static_TestMapOfArray_descriptor.getNestedTypes().get(0); - internal_static_TestMapOfArray_MoneysEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_TestMapOfArray_MoneysEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_TestMapOfMap_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_TestMapOfMap_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_TestMapOfMap_descriptor, - new java.lang.String[] { "Catalogs", }); - internal_static_TestMapOfMap_CatalogsEntry_descriptor = - internal_static_TestMapOfMap_descriptor.getNestedTypes().get(0); - internal_static_TestMapOfMap_CatalogsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_TestMapOfMap_CatalogsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_Translations_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_Translations_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Translations_descriptor, - new java.lang.String[] { "Translations", }); - internal_static_Translations_TranslationsEntry_descriptor = - internal_static_Translations_descriptor.getNestedTypes().get(0); - internal_static_Translations_TranslationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Translations_TranslationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_Countries_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_Countries_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Countries_descriptor, - new java.lang.String[] { "Countries", }); - internal_static_Country_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_Country_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_Country_descriptor, - new java.lang.String[] { "Name", "Continent", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sonar-db/pom.xml b/sonar-db/pom.xml index 467d21edfbd..d265a790c6c 100644 --- a/sonar-db/pom.xml +++ b/sonar-db/pom.xml @@ -13,10 +13,6 @@ SonarQube :: Database Create and request SonarQube schema - - src/main/gen-java/**/* - - com.google.code.findbugs @@ -121,24 +117,6 @@ - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - src/main/gen-java - - - - - org.apache.maven.plugins maven-surefire-plugin diff --git a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbCommons.java b/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbCommons.java deleted file mode 100644 index 11d2d85200a..00000000000 --- a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbCommons.java +++ /dev/null @@ -1,814 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: db-commons.proto - -package org.sonar.db.protobuf; - -public final class DbCommons { - private DbCommons() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface TextRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.db.commons.TextRange) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 start_line = 1; - * - *
-     * Start line. Should never be absent
-     * 
- */ - boolean hasStartLine(); - /** - * optional int32 start_line = 1; - * - *
-     * Start line. Should never be absent
-     * 
- */ - int getStartLine(); - - /** - * optional int32 end_line = 2; - * - *
-     * End line (inclusive). Absent means it is same as start line
-     * 
- */ - boolean hasEndLine(); - /** - * optional int32 end_line = 2; - * - *
-     * End line (inclusive). Absent means it is same as start line
-     * 
- */ - int getEndLine(); - - /** - * optional int32 start_offset = 3; - * - *
-     * If absent it means range starts at the first offset of start line
-     * 
- */ - boolean hasStartOffset(); - /** - * optional int32 start_offset = 3; - * - *
-     * If absent it means range starts at the first offset of start line
-     * 
- */ - int getStartOffset(); - - /** - * optional int32 end_offset = 4; - * - *
-     * If absent it means range ends at the last offset of end line
-     * 
- */ - boolean hasEndOffset(); - /** - * optional int32 end_offset = 4; - * - *
-     * If absent it means range ends at the last offset of end line
-     * 
- */ - int getEndOffset(); - } - /** - * Protobuf type {@code sonarqube.db.commons.TextRange} - * - *
-   * Lines start at 1 and line offsets start at 0
-   * 
- */ - public static final class TextRange extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.db.commons.TextRange) - TextRangeOrBuilder { - // Use TextRange.newBuilder() to construct. - private TextRange(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TextRange() { - startLine_ = 0; - endLine_ = 0; - startOffset_ = 0; - endOffset_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TextRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - startLine_ = input.readInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - endLine_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - startOffset_ = input.readInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - endOffset_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbCommons.TextRange.class, org.sonar.db.protobuf.DbCommons.TextRange.Builder.class); - } - - private int bitField0_; - public static final int START_LINE_FIELD_NUMBER = 1; - private int startLine_; - /** - * optional int32 start_line = 1; - * - *
-     * Start line. Should never be absent
-     * 
- */ - public boolean hasStartLine() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 start_line = 1; - * - *
-     * Start line. Should never be absent
-     * 
- */ - public int getStartLine() { - return startLine_; - } - - public static final int END_LINE_FIELD_NUMBER = 2; - private int endLine_; - /** - * optional int32 end_line = 2; - * - *
-     * End line (inclusive). Absent means it is same as start line
-     * 
- */ - public boolean hasEndLine() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 end_line = 2; - * - *
-     * End line (inclusive). Absent means it is same as start line
-     * 
- */ - public int getEndLine() { - return endLine_; - } - - public static final int START_OFFSET_FIELD_NUMBER = 3; - private int startOffset_; - /** - * optional int32 start_offset = 3; - * - *
-     * If absent it means range starts at the first offset of start line
-     * 
- */ - public boolean hasStartOffset() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 start_offset = 3; - * - *
-     * If absent it means range starts at the first offset of start line
-     * 
- */ - public int getStartOffset() { - return startOffset_; - } - - public static final int END_OFFSET_FIELD_NUMBER = 4; - private int endOffset_; - /** - * optional int32 end_offset = 4; - * - *
-     * If absent it means range ends at the last offset of end line
-     * 
- */ - public boolean hasEndOffset() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 end_offset = 4; - * - *
-     * If absent it means range ends at the last offset of end line
-     * 
- */ - public int getEndOffset() { - return endOffset_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, startLine_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, endLine_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, startOffset_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt32(4, endOffset_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, startLine_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, endLine_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, startOffset_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, endOffset_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbCommons.TextRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.db.protobuf.DbCommons.TextRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.db.commons.TextRange} - * - *
-     * Lines start at 1 and line offsets start at 0
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.db.commons.TextRange) - org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbCommons.TextRange.class, org.sonar.db.protobuf.DbCommons.TextRange.Builder.class); - } - - // Construct using org.sonar.db.protobuf.DbCommons.TextRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - startLine_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - endLine_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - startOffset_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - endOffset_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.db.protobuf.DbCommons.internal_static_sonarqube_db_commons_TextRange_descriptor; - } - - public org.sonar.db.protobuf.DbCommons.TextRange getDefaultInstanceForType() { - return org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance(); - } - - public org.sonar.db.protobuf.DbCommons.TextRange build() { - org.sonar.db.protobuf.DbCommons.TextRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.db.protobuf.DbCommons.TextRange buildPartial() { - org.sonar.db.protobuf.DbCommons.TextRange result = new org.sonar.db.protobuf.DbCommons.TextRange(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.startLine_ = startLine_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.endLine_ = endLine_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.startOffset_ = startOffset_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.endOffset_ = endOffset_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.db.protobuf.DbCommons.TextRange) { - return mergeFrom((org.sonar.db.protobuf.DbCommons.TextRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.db.protobuf.DbCommons.TextRange other) { - if (other == org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance()) return this; - if (other.hasStartLine()) { - setStartLine(other.getStartLine()); - } - if (other.hasEndLine()) { - setEndLine(other.getEndLine()); - } - if (other.hasStartOffset()) { - setStartOffset(other.getStartOffset()); - } - if (other.hasEndOffset()) { - setEndOffset(other.getEndOffset()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.db.protobuf.DbCommons.TextRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.db.protobuf.DbCommons.TextRange) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int startLine_ ; - /** - * optional int32 start_line = 1; - * - *
-       * Start line. Should never be absent
-       * 
- */ - public boolean hasStartLine() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 start_line = 1; - * - *
-       * Start line. Should never be absent
-       * 
- */ - public int getStartLine() { - return startLine_; - } - /** - * optional int32 start_line = 1; - * - *
-       * Start line. Should never be absent
-       * 
- */ - public Builder setStartLine(int value) { - bitField0_ |= 0x00000001; - startLine_ = value; - onChanged(); - return this; - } - /** - * optional int32 start_line = 1; - * - *
-       * Start line. Should never be absent
-       * 
- */ - public Builder clearStartLine() { - bitField0_ = (bitField0_ & ~0x00000001); - startLine_ = 0; - onChanged(); - return this; - } - - private int endLine_ ; - /** - * optional int32 end_line = 2; - * - *
-       * End line (inclusive). Absent means it is same as start line
-       * 
- */ - public boolean hasEndLine() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 end_line = 2; - * - *
-       * End line (inclusive). Absent means it is same as start line
-       * 
- */ - public int getEndLine() { - return endLine_; - } - /** - * optional int32 end_line = 2; - * - *
-       * End line (inclusive). Absent means it is same as start line
-       * 
- */ - public Builder setEndLine(int value) { - bitField0_ |= 0x00000002; - endLine_ = value; - onChanged(); - return this; - } - /** - * optional int32 end_line = 2; - * - *
-       * End line (inclusive). Absent means it is same as start line
-       * 
- */ - public Builder clearEndLine() { - bitField0_ = (bitField0_ & ~0x00000002); - endLine_ = 0; - onChanged(); - return this; - } - - private int startOffset_ ; - /** - * optional int32 start_offset = 3; - * - *
-       * If absent it means range starts at the first offset of start line
-       * 
- */ - public boolean hasStartOffset() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 start_offset = 3; - * - *
-       * If absent it means range starts at the first offset of start line
-       * 
- */ - public int getStartOffset() { - return startOffset_; - } - /** - * optional int32 start_offset = 3; - * - *
-       * If absent it means range starts at the first offset of start line
-       * 
- */ - public Builder setStartOffset(int value) { - bitField0_ |= 0x00000004; - startOffset_ = value; - onChanged(); - return this; - } - /** - * optional int32 start_offset = 3; - * - *
-       * If absent it means range starts at the first offset of start line
-       * 
- */ - public Builder clearStartOffset() { - bitField0_ = (bitField0_ & ~0x00000004); - startOffset_ = 0; - onChanged(); - return this; - } - - private int endOffset_ ; - /** - * optional int32 end_offset = 4; - * - *
-       * If absent it means range ends at the last offset of end line
-       * 
- */ - public boolean hasEndOffset() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 end_offset = 4; - * - *
-       * If absent it means range ends at the last offset of end line
-       * 
- */ - public int getEndOffset() { - return endOffset_; - } - /** - * optional int32 end_offset = 4; - * - *
-       * If absent it means range ends at the last offset of end line
-       * 
- */ - public Builder setEndOffset(int value) { - bitField0_ |= 0x00000008; - endOffset_ = value; - onChanged(); - return this; - } - /** - * optional int32 end_offset = 4; - * - *
-       * If absent it means range ends at the last offset of end line
-       * 
- */ - public Builder clearEndOffset() { - bitField0_ = (bitField0_ & ~0x00000008); - endOffset_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.db.commons.TextRange) - } - - // @@protoc_insertion_point(class_scope:sonarqube.db.commons.TextRange) - private static final org.sonar.db.protobuf.DbCommons.TextRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbCommons.TextRange(); - } - - public static org.sonar.db.protobuf.DbCommons.TextRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TextRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new TextRange(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.db.protobuf.DbCommons.TextRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_db_commons_TextRange_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_db_commons_TextRange_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020db-commons.proto\022\024sonarqube.db.commons" + - "\"[\n\tTextRange\022\022\n\nstart_line\030\001 \001(\005\022\020\n\010end" + - "_line\030\002 \001(\005\022\024\n\014start_offset\030\003 \001(\005\022\022\n\nend" + - "_offset\030\004 \001(\005B\031\n\025org.sonar.db.protobufH\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_sonarqube_db_commons_TextRange_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_sonarqube_db_commons_TextRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_db_commons_TextRange_descriptor, - new java.lang.String[] { "StartLine", "EndLine", "StartOffset", "EndOffset", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbFileSources.java b/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbFileSources.java deleted file mode 100644 index 165dc22f58f..00000000000 --- a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbFileSources.java +++ /dev/null @@ -1,5261 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: db-file-sources.proto - -package org.sonar.db.protobuf; - -public final class DbFileSources { - private DbFileSources() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface LineOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Line) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 line = 1; - */ - boolean hasLine(); - /** - * optional int32 line = 1; - */ - int getLine(); - - /** - * optional string source = 2; - */ - boolean hasSource(); - /** - * optional string source = 2; - */ - java.lang.String getSource(); - /** - * optional string source = 2; - */ - com.google.protobuf.ByteString - getSourceBytes(); - - /** - * optional string scm_revision = 3; - * - *
-     * SCM
-     * 
- */ - boolean hasScmRevision(); - /** - * optional string scm_revision = 3; - * - *
-     * SCM
-     * 
- */ - java.lang.String getScmRevision(); - /** - * optional string scm_revision = 3; - * - *
-     * SCM
-     * 
- */ - com.google.protobuf.ByteString - getScmRevisionBytes(); - - /** - * optional string scm_author = 4; - */ - boolean hasScmAuthor(); - /** - * optional string scm_author = 4; - */ - java.lang.String getScmAuthor(); - /** - * optional string scm_author = 4; - */ - com.google.protobuf.ByteString - getScmAuthorBytes(); - - /** - * optional int64 scm_date = 5; - */ - boolean hasScmDate(); - /** - * optional int64 scm_date = 5; - */ - long getScmDate(); - - /** - * optional int32 ut_line_hits = 6; - * - *
-     * unit tests
-     * 
- */ - boolean hasUtLineHits(); - /** - * optional int32 ut_line_hits = 6; - * - *
-     * unit tests
-     * 
- */ - int getUtLineHits(); - - /** - * optional int32 ut_conditions = 7; - */ - boolean hasUtConditions(); - /** - * optional int32 ut_conditions = 7; - */ - int getUtConditions(); - - /** - * optional int32 ut_covered_conditions = 8; - */ - boolean hasUtCoveredConditions(); - /** - * optional int32 ut_covered_conditions = 8; - */ - int getUtCoveredConditions(); - - /** - * optional int32 it_line_hits = 9; - * - *
-     * integration tests
-     * 
- */ - boolean hasItLineHits(); - /** - * optional int32 it_line_hits = 9; - * - *
-     * integration tests
-     * 
- */ - int getItLineHits(); - - /** - * optional int32 it_conditions = 10; - */ - boolean hasItConditions(); - /** - * optional int32 it_conditions = 10; - */ - int getItConditions(); - - /** - * optional int32 it_covered_conditions = 11; - */ - boolean hasItCoveredConditions(); - /** - * optional int32 it_covered_conditions = 11; - */ - int getItCoveredConditions(); - - /** - * optional int32 overall_line_hits = 12; - * - *
-     * overall tests
-     * 
- */ - boolean hasOverallLineHits(); - /** - * optional int32 overall_line_hits = 12; - * - *
-     * overall tests
-     * 
- */ - int getOverallLineHits(); - - /** - * optional int32 overall_conditions = 13; - */ - boolean hasOverallConditions(); - /** - * optional int32 overall_conditions = 13; - */ - int getOverallConditions(); - - /** - * optional int32 overall_covered_conditions = 14; - */ - boolean hasOverallCoveredConditions(); - /** - * optional int32 overall_covered_conditions = 14; - */ - int getOverallCoveredConditions(); - - /** - * optional string highlighting = 15; - */ - boolean hasHighlighting(); - /** - * optional string highlighting = 15; - */ - java.lang.String getHighlighting(); - /** - * optional string highlighting = 15; - */ - com.google.protobuf.ByteString - getHighlightingBytes(); - - /** - * optional string symbols = 16; - */ - boolean hasSymbols(); - /** - * optional string symbols = 16; - */ - java.lang.String getSymbols(); - /** - * optional string symbols = 16; - */ - com.google.protobuf.ByteString - getSymbolsBytes(); - - /** - * repeated int32 duplication = 17 [packed = true]; - */ - java.util.List getDuplicationList(); - /** - * repeated int32 duplication = 17 [packed = true]; - */ - int getDuplicationCount(); - /** - * repeated int32 duplication = 17 [packed = true]; - */ - int getDuplication(int index); - } - /** - * Protobuf type {@code org.sonar.server.source.db.Line} - */ - public static final class Line extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Line) - LineOrBuilder { - // Use Line.newBuilder() to construct. - private Line(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Line() { - line_ = 0; - source_ = ""; - scmRevision_ = ""; - scmAuthor_ = ""; - scmDate_ = 0L; - utLineHits_ = 0; - utConditions_ = 0; - utCoveredConditions_ = 0; - itLineHits_ = 0; - itConditions_ = 0; - itCoveredConditions_ = 0; - overallLineHits_ = 0; - overallConditions_ = 0; - overallCoveredConditions_ = 0; - highlighting_ = ""; - symbols_ = ""; - duplication_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Line( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - line_ = input.readInt32(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - source_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - scmRevision_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - scmAuthor_ = bs; - break; - } - case 40: { - bitField0_ |= 0x00000010; - scmDate_ = input.readInt64(); - break; - } - case 48: { - bitField0_ |= 0x00000020; - utLineHits_ = input.readInt32(); - break; - } - case 56: { - bitField0_ |= 0x00000040; - utConditions_ = input.readInt32(); - break; - } - case 64: { - bitField0_ |= 0x00000080; - utCoveredConditions_ = input.readInt32(); - break; - } - case 72: { - bitField0_ |= 0x00000100; - itLineHits_ = input.readInt32(); - break; - } - case 80: { - bitField0_ |= 0x00000200; - itConditions_ = input.readInt32(); - break; - } - case 88: { - bitField0_ |= 0x00000400; - itCoveredConditions_ = input.readInt32(); - break; - } - case 96: { - bitField0_ |= 0x00000800; - overallLineHits_ = input.readInt32(); - break; - } - case 104: { - bitField0_ |= 0x00001000; - overallConditions_ = input.readInt32(); - break; - } - case 112: { - bitField0_ |= 0x00002000; - overallCoveredConditions_ = input.readInt32(); - break; - } - case 122: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00004000; - highlighting_ = bs; - break; - } - case 130: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00008000; - symbols_ = bs; - break; - } - case 136: { - if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) { - duplication_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00010000; - } - duplication_.add(input.readInt32()); - break; - } - case 138: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00010000) == 0x00010000) && input.getBytesUntilLimit() > 0) { - duplication_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00010000; - } - while (input.getBytesUntilLimit() > 0) { - duplication_.add(input.readInt32()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) { - duplication_ = java.util.Collections.unmodifiableList(duplication_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbFileSources.Line.class, org.sonar.db.protobuf.DbFileSources.Line.Builder.class); - } - - private int bitField0_; - public static final int LINE_FIELD_NUMBER = 1; - private int line_; - /** - * optional int32 line = 1; - */ - public boolean hasLine() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 line = 1; - */ - public int getLine() { - return line_; - } - - public static final int SOURCE_FIELD_NUMBER = 2; - private volatile java.lang.Object source_; - /** - * optional string source = 2; - */ - public boolean hasSource() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string source = 2; - */ - public java.lang.String getSource() { - java.lang.Object ref = source_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - source_ = s; - } - return s; - } - } - /** - * optional string source = 2; - */ - public com.google.protobuf.ByteString - getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCM_REVISION_FIELD_NUMBER = 3; - private volatile java.lang.Object scmRevision_; - /** - * optional string scm_revision = 3; - * - *
-     * SCM
-     * 
- */ - public boolean hasScmRevision() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string scm_revision = 3; - * - *
-     * SCM
-     * 
- */ - public java.lang.String getScmRevision() { - java.lang.Object ref = scmRevision_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - scmRevision_ = s; - } - return s; - } - } - /** - * optional string scm_revision = 3; - * - *
-     * SCM
-     * 
- */ - public com.google.protobuf.ByteString - getScmRevisionBytes() { - java.lang.Object ref = scmRevision_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - scmRevision_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCM_AUTHOR_FIELD_NUMBER = 4; - private volatile java.lang.Object scmAuthor_; - /** - * optional string scm_author = 4; - */ - public boolean hasScmAuthor() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string scm_author = 4; - */ - public java.lang.String getScmAuthor() { - java.lang.Object ref = scmAuthor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - scmAuthor_ = s; - } - return s; - } - } - /** - * optional string scm_author = 4; - */ - public com.google.protobuf.ByteString - getScmAuthorBytes() { - java.lang.Object ref = scmAuthor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - scmAuthor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCM_DATE_FIELD_NUMBER = 5; - private long scmDate_; - /** - * optional int64 scm_date = 5; - */ - public boolean hasScmDate() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int64 scm_date = 5; - */ - public long getScmDate() { - return scmDate_; - } - - public static final int UT_LINE_HITS_FIELD_NUMBER = 6; - private int utLineHits_; - /** - * optional int32 ut_line_hits = 6; - * - *
-     * unit tests
-     * 
- */ - public boolean hasUtLineHits() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional int32 ut_line_hits = 6; - * - *
-     * unit tests
-     * 
- */ - public int getUtLineHits() { - return utLineHits_; - } - - public static final int UT_CONDITIONS_FIELD_NUMBER = 7; - private int utConditions_; - /** - * optional int32 ut_conditions = 7; - */ - public boolean hasUtConditions() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional int32 ut_conditions = 7; - */ - public int getUtConditions() { - return utConditions_; - } - - public static final int UT_COVERED_CONDITIONS_FIELD_NUMBER = 8; - private int utCoveredConditions_; - /** - * optional int32 ut_covered_conditions = 8; - */ - public boolean hasUtCoveredConditions() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional int32 ut_covered_conditions = 8; - */ - public int getUtCoveredConditions() { - return utCoveredConditions_; - } - - public static final int IT_LINE_HITS_FIELD_NUMBER = 9; - private int itLineHits_; - /** - * optional int32 it_line_hits = 9; - * - *
-     * integration tests
-     * 
- */ - public boolean hasItLineHits() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional int32 it_line_hits = 9; - * - *
-     * integration tests
-     * 
- */ - public int getItLineHits() { - return itLineHits_; - } - - public static final int IT_CONDITIONS_FIELD_NUMBER = 10; - private int itConditions_; - /** - * optional int32 it_conditions = 10; - */ - public boolean hasItConditions() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional int32 it_conditions = 10; - */ - public int getItConditions() { - return itConditions_; - } - - public static final int IT_COVERED_CONDITIONS_FIELD_NUMBER = 11; - private int itCoveredConditions_; - /** - * optional int32 it_covered_conditions = 11; - */ - public boolean hasItCoveredConditions() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional int32 it_covered_conditions = 11; - */ - public int getItCoveredConditions() { - return itCoveredConditions_; - } - - public static final int OVERALL_LINE_HITS_FIELD_NUMBER = 12; - private int overallLineHits_; - /** - * optional int32 overall_line_hits = 12; - * - *
-     * overall tests
-     * 
- */ - public boolean hasOverallLineHits() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional int32 overall_line_hits = 12; - * - *
-     * overall tests
-     * 
- */ - public int getOverallLineHits() { - return overallLineHits_; - } - - public static final int OVERALL_CONDITIONS_FIELD_NUMBER = 13; - private int overallConditions_; - /** - * optional int32 overall_conditions = 13; - */ - public boolean hasOverallConditions() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * optional int32 overall_conditions = 13; - */ - public int getOverallConditions() { - return overallConditions_; - } - - public static final int OVERALL_COVERED_CONDITIONS_FIELD_NUMBER = 14; - private int overallCoveredConditions_; - /** - * optional int32 overall_covered_conditions = 14; - */ - public boolean hasOverallCoveredConditions() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - /** - * optional int32 overall_covered_conditions = 14; - */ - public int getOverallCoveredConditions() { - return overallCoveredConditions_; - } - - public static final int HIGHLIGHTING_FIELD_NUMBER = 15; - private volatile java.lang.Object highlighting_; - /** - * optional string highlighting = 15; - */ - public boolean hasHighlighting() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - /** - * optional string highlighting = 15; - */ - public java.lang.String getHighlighting() { - java.lang.Object ref = highlighting_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - highlighting_ = s; - } - return s; - } - } - /** - * optional string highlighting = 15; - */ - public com.google.protobuf.ByteString - getHighlightingBytes() { - java.lang.Object ref = highlighting_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - highlighting_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SYMBOLS_FIELD_NUMBER = 16; - private volatile java.lang.Object symbols_; - /** - * optional string symbols = 16; - */ - public boolean hasSymbols() { - return ((bitField0_ & 0x00008000) == 0x00008000); - } - /** - * optional string symbols = 16; - */ - public java.lang.String getSymbols() { - java.lang.Object ref = symbols_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - symbols_ = s; - } - return s; - } - } - /** - * optional string symbols = 16; - */ - public com.google.protobuf.ByteString - getSymbolsBytes() { - java.lang.Object ref = symbols_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbols_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DUPLICATION_FIELD_NUMBER = 17; - private java.util.List duplication_; - /** - * repeated int32 duplication = 17 [packed = true]; - */ - public java.util.List - getDuplicationList() { - return duplication_; - } - /** - * repeated int32 duplication = 17 [packed = true]; - */ - public int getDuplicationCount() { - return duplication_.size(); - } - /** - * repeated int32 duplication = 17 [packed = true]; - */ - public int getDuplication(int index) { - return duplication_.get(index); - } - private int duplicationMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, line_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getSourceBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getScmRevisionBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getScmAuthorBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt64(5, scmDate_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeInt32(6, utLineHits_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeInt32(7, utConditions_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeInt32(8, utCoveredConditions_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeInt32(9, itLineHits_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeInt32(10, itConditions_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeInt32(11, itCoveredConditions_); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeInt32(12, overallLineHits_); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeInt32(13, overallConditions_); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeInt32(14, overallCoveredConditions_); - } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeBytes(15, getHighlightingBytes()); - } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - output.writeBytes(16, getSymbolsBytes()); - } - if (getDuplicationList().size() > 0) { - output.writeRawVarint32(138); - output.writeRawVarint32(duplicationMemoizedSerializedSize); - } - for (int i = 0; i < duplication_.size(); i++) { - output.writeInt32NoTag(duplication_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, line_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getSourceBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getScmRevisionBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getScmAuthorBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, scmDate_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, utLineHits_); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, utConditions_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, utCoveredConditions_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, itLineHits_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(10, itConditions_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(11, itCoveredConditions_); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(12, overallLineHits_); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(13, overallConditions_); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(14, overallCoveredConditions_); - } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(15, getHighlightingBytes()); - } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(16, getSymbolsBytes()); - } - { - int dataSize = 0; - for (int i = 0; i < duplication_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(duplication_.get(i)); - } - size += dataSize; - if (!getDuplicationList().isEmpty()) { - size += 2; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - duplicationMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Line parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.db.protobuf.DbFileSources.Line prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.sonar.server.source.db.Line} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Line) - org.sonar.db.protobuf.DbFileSources.LineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbFileSources.Line.class, org.sonar.db.protobuf.DbFileSources.Line.Builder.class); - } - - // Construct using org.sonar.db.protobuf.DbFileSources.Line.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - line_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - source_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - scmRevision_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - scmAuthor_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - scmDate_ = 0L; - bitField0_ = (bitField0_ & ~0x00000010); - utLineHits_ = 0; - bitField0_ = (bitField0_ & ~0x00000020); - utConditions_ = 0; - bitField0_ = (bitField0_ & ~0x00000040); - utCoveredConditions_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); - itLineHits_ = 0; - bitField0_ = (bitField0_ & ~0x00000100); - itConditions_ = 0; - bitField0_ = (bitField0_ & ~0x00000200); - itCoveredConditions_ = 0; - bitField0_ = (bitField0_ & ~0x00000400); - overallLineHits_ = 0; - bitField0_ = (bitField0_ & ~0x00000800); - overallConditions_ = 0; - bitField0_ = (bitField0_ & ~0x00001000); - overallCoveredConditions_ = 0; - bitField0_ = (bitField0_ & ~0x00002000); - highlighting_ = ""; - bitField0_ = (bitField0_ & ~0x00004000); - symbols_ = ""; - bitField0_ = (bitField0_ & ~0x00008000); - duplication_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Line_descriptor; - } - - public org.sonar.db.protobuf.DbFileSources.Line getDefaultInstanceForType() { - return org.sonar.db.protobuf.DbFileSources.Line.getDefaultInstance(); - } - - public org.sonar.db.protobuf.DbFileSources.Line build() { - org.sonar.db.protobuf.DbFileSources.Line result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.db.protobuf.DbFileSources.Line buildPartial() { - org.sonar.db.protobuf.DbFileSources.Line result = new org.sonar.db.protobuf.DbFileSources.Line(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.line_ = line_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.source_ = source_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.scmRevision_ = scmRevision_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.scmAuthor_ = scmAuthor_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.scmDate_ = scmDate_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.utLineHits_ = utLineHits_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.utConditions_ = utConditions_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.utCoveredConditions_ = utCoveredConditions_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.itLineHits_ = itLineHits_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - result.itConditions_ = itConditions_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } - result.itCoveredConditions_ = itCoveredConditions_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000800; - } - result.overallLineHits_ = overallLineHits_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00001000; - } - result.overallConditions_ = overallConditions_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { - to_bitField0_ |= 0x00002000; - } - result.overallCoveredConditions_ = overallCoveredConditions_; - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { - to_bitField0_ |= 0x00004000; - } - result.highlighting_ = highlighting_; - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { - to_bitField0_ |= 0x00008000; - } - result.symbols_ = symbols_; - if (((bitField0_ & 0x00010000) == 0x00010000)) { - duplication_ = java.util.Collections.unmodifiableList(duplication_); - bitField0_ = (bitField0_ & ~0x00010000); - } - result.duplication_ = duplication_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.db.protobuf.DbFileSources.Line) { - return mergeFrom((org.sonar.db.protobuf.DbFileSources.Line)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.db.protobuf.DbFileSources.Line other) { - if (other == org.sonar.db.protobuf.DbFileSources.Line.getDefaultInstance()) return this; - if (other.hasLine()) { - setLine(other.getLine()); - } - if (other.hasSource()) { - bitField0_ |= 0x00000002; - source_ = other.source_; - onChanged(); - } - if (other.hasScmRevision()) { - bitField0_ |= 0x00000004; - scmRevision_ = other.scmRevision_; - onChanged(); - } - if (other.hasScmAuthor()) { - bitField0_ |= 0x00000008; - scmAuthor_ = other.scmAuthor_; - onChanged(); - } - if (other.hasScmDate()) { - setScmDate(other.getScmDate()); - } - if (other.hasUtLineHits()) { - setUtLineHits(other.getUtLineHits()); - } - if (other.hasUtConditions()) { - setUtConditions(other.getUtConditions()); - } - if (other.hasUtCoveredConditions()) { - setUtCoveredConditions(other.getUtCoveredConditions()); - } - if (other.hasItLineHits()) { - setItLineHits(other.getItLineHits()); - } - if (other.hasItConditions()) { - setItConditions(other.getItConditions()); - } - if (other.hasItCoveredConditions()) { - setItCoveredConditions(other.getItCoveredConditions()); - } - if (other.hasOverallLineHits()) { - setOverallLineHits(other.getOverallLineHits()); - } - if (other.hasOverallConditions()) { - setOverallConditions(other.getOverallConditions()); - } - if (other.hasOverallCoveredConditions()) { - setOverallCoveredConditions(other.getOverallCoveredConditions()); - } - if (other.hasHighlighting()) { - bitField0_ |= 0x00004000; - highlighting_ = other.highlighting_; - onChanged(); - } - if (other.hasSymbols()) { - bitField0_ |= 0x00008000; - symbols_ = other.symbols_; - onChanged(); - } - if (!other.duplication_.isEmpty()) { - if (duplication_.isEmpty()) { - duplication_ = other.duplication_; - bitField0_ = (bitField0_ & ~0x00010000); - } else { - ensureDuplicationIsMutable(); - duplication_.addAll(other.duplication_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.db.protobuf.DbFileSources.Line parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.db.protobuf.DbFileSources.Line) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int line_ ; - /** - * optional int32 line = 1; - */ - public boolean hasLine() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 line = 1; - */ - public int getLine() { - return line_; - } - /** - * optional int32 line = 1; - */ - public Builder setLine(int value) { - bitField0_ |= 0x00000001; - line_ = value; - onChanged(); - return this; - } - /** - * optional int32 line = 1; - */ - public Builder clearLine() { - bitField0_ = (bitField0_ & ~0x00000001); - line_ = 0; - onChanged(); - return this; - } - - private java.lang.Object source_ = ""; - /** - * optional string source = 2; - */ - public boolean hasSource() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string source = 2; - */ - public java.lang.String getSource() { - java.lang.Object ref = source_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - source_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string source = 2; - */ - public com.google.protobuf.ByteString - getSourceBytes() { - java.lang.Object ref = source_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - source_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string source = 2; - */ - public Builder setSource( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - source_ = value; - onChanged(); - return this; - } - /** - * optional string source = 2; - */ - public Builder clearSource() { - bitField0_ = (bitField0_ & ~0x00000002); - source_ = getDefaultInstance().getSource(); - onChanged(); - return this; - } - /** - * optional string source = 2; - */ - public Builder setSourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - source_ = value; - onChanged(); - return this; - } - - private java.lang.Object scmRevision_ = ""; - /** - * optional string scm_revision = 3; - * - *
-       * SCM
-       * 
- */ - public boolean hasScmRevision() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string scm_revision = 3; - * - *
-       * SCM
-       * 
- */ - public java.lang.String getScmRevision() { - java.lang.Object ref = scmRevision_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - scmRevision_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string scm_revision = 3; - * - *
-       * SCM
-       * 
- */ - public com.google.protobuf.ByteString - getScmRevisionBytes() { - java.lang.Object ref = scmRevision_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - scmRevision_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string scm_revision = 3; - * - *
-       * SCM
-       * 
- */ - public Builder setScmRevision( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - scmRevision_ = value; - onChanged(); - return this; - } - /** - * optional string scm_revision = 3; - * - *
-       * SCM
-       * 
- */ - public Builder clearScmRevision() { - bitField0_ = (bitField0_ & ~0x00000004); - scmRevision_ = getDefaultInstance().getScmRevision(); - onChanged(); - return this; - } - /** - * optional string scm_revision = 3; - * - *
-       * SCM
-       * 
- */ - public Builder setScmRevisionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - scmRevision_ = value; - onChanged(); - return this; - } - - private java.lang.Object scmAuthor_ = ""; - /** - * optional string scm_author = 4; - */ - public boolean hasScmAuthor() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string scm_author = 4; - */ - public java.lang.String getScmAuthor() { - java.lang.Object ref = scmAuthor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - scmAuthor_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string scm_author = 4; - */ - public com.google.protobuf.ByteString - getScmAuthorBytes() { - java.lang.Object ref = scmAuthor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - scmAuthor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string scm_author = 4; - */ - public Builder setScmAuthor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - scmAuthor_ = value; - onChanged(); - return this; - } - /** - * optional string scm_author = 4; - */ - public Builder clearScmAuthor() { - bitField0_ = (bitField0_ & ~0x00000008); - scmAuthor_ = getDefaultInstance().getScmAuthor(); - onChanged(); - return this; - } - /** - * optional string scm_author = 4; - */ - public Builder setScmAuthorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - scmAuthor_ = value; - onChanged(); - return this; - } - - private long scmDate_ ; - /** - * optional int64 scm_date = 5; - */ - public boolean hasScmDate() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int64 scm_date = 5; - */ - public long getScmDate() { - return scmDate_; - } - /** - * optional int64 scm_date = 5; - */ - public Builder setScmDate(long value) { - bitField0_ |= 0x00000010; - scmDate_ = value; - onChanged(); - return this; - } - /** - * optional int64 scm_date = 5; - */ - public Builder clearScmDate() { - bitField0_ = (bitField0_ & ~0x00000010); - scmDate_ = 0L; - onChanged(); - return this; - } - - private int utLineHits_ ; - /** - * optional int32 ut_line_hits = 6; - * - *
-       * unit tests
-       * 
- */ - public boolean hasUtLineHits() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional int32 ut_line_hits = 6; - * - *
-       * unit tests
-       * 
- */ - public int getUtLineHits() { - return utLineHits_; - } - /** - * optional int32 ut_line_hits = 6; - * - *
-       * unit tests
-       * 
- */ - public Builder setUtLineHits(int value) { - bitField0_ |= 0x00000020; - utLineHits_ = value; - onChanged(); - return this; - } - /** - * optional int32 ut_line_hits = 6; - * - *
-       * unit tests
-       * 
- */ - public Builder clearUtLineHits() { - bitField0_ = (bitField0_ & ~0x00000020); - utLineHits_ = 0; - onChanged(); - return this; - } - - private int utConditions_ ; - /** - * optional int32 ut_conditions = 7; - */ - public boolean hasUtConditions() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional int32 ut_conditions = 7; - */ - public int getUtConditions() { - return utConditions_; - } - /** - * optional int32 ut_conditions = 7; - */ - public Builder setUtConditions(int value) { - bitField0_ |= 0x00000040; - utConditions_ = value; - onChanged(); - return this; - } - /** - * optional int32 ut_conditions = 7; - */ - public Builder clearUtConditions() { - bitField0_ = (bitField0_ & ~0x00000040); - utConditions_ = 0; - onChanged(); - return this; - } - - private int utCoveredConditions_ ; - /** - * optional int32 ut_covered_conditions = 8; - */ - public boolean hasUtCoveredConditions() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional int32 ut_covered_conditions = 8; - */ - public int getUtCoveredConditions() { - return utCoveredConditions_; - } - /** - * optional int32 ut_covered_conditions = 8; - */ - public Builder setUtCoveredConditions(int value) { - bitField0_ |= 0x00000080; - utCoveredConditions_ = value; - onChanged(); - return this; - } - /** - * optional int32 ut_covered_conditions = 8; - */ - public Builder clearUtCoveredConditions() { - bitField0_ = (bitField0_ & ~0x00000080); - utCoveredConditions_ = 0; - onChanged(); - return this; - } - - private int itLineHits_ ; - /** - * optional int32 it_line_hits = 9; - * - *
-       * integration tests
-       * 
- */ - public boolean hasItLineHits() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional int32 it_line_hits = 9; - * - *
-       * integration tests
-       * 
- */ - public int getItLineHits() { - return itLineHits_; - } - /** - * optional int32 it_line_hits = 9; - * - *
-       * integration tests
-       * 
- */ - public Builder setItLineHits(int value) { - bitField0_ |= 0x00000100; - itLineHits_ = value; - onChanged(); - return this; - } - /** - * optional int32 it_line_hits = 9; - * - *
-       * integration tests
-       * 
- */ - public Builder clearItLineHits() { - bitField0_ = (bitField0_ & ~0x00000100); - itLineHits_ = 0; - onChanged(); - return this; - } - - private int itConditions_ ; - /** - * optional int32 it_conditions = 10; - */ - public boolean hasItConditions() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional int32 it_conditions = 10; - */ - public int getItConditions() { - return itConditions_; - } - /** - * optional int32 it_conditions = 10; - */ - public Builder setItConditions(int value) { - bitField0_ |= 0x00000200; - itConditions_ = value; - onChanged(); - return this; - } - /** - * optional int32 it_conditions = 10; - */ - public Builder clearItConditions() { - bitField0_ = (bitField0_ & ~0x00000200); - itConditions_ = 0; - onChanged(); - return this; - } - - private int itCoveredConditions_ ; - /** - * optional int32 it_covered_conditions = 11; - */ - public boolean hasItCoveredConditions() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional int32 it_covered_conditions = 11; - */ - public int getItCoveredConditions() { - return itCoveredConditions_; - } - /** - * optional int32 it_covered_conditions = 11; - */ - public Builder setItCoveredConditions(int value) { - bitField0_ |= 0x00000400; - itCoveredConditions_ = value; - onChanged(); - return this; - } - /** - * optional int32 it_covered_conditions = 11; - */ - public Builder clearItCoveredConditions() { - bitField0_ = (bitField0_ & ~0x00000400); - itCoveredConditions_ = 0; - onChanged(); - return this; - } - - private int overallLineHits_ ; - /** - * optional int32 overall_line_hits = 12; - * - *
-       * overall tests
-       * 
- */ - public boolean hasOverallLineHits() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional int32 overall_line_hits = 12; - * - *
-       * overall tests
-       * 
- */ - public int getOverallLineHits() { - return overallLineHits_; - } - /** - * optional int32 overall_line_hits = 12; - * - *
-       * overall tests
-       * 
- */ - public Builder setOverallLineHits(int value) { - bitField0_ |= 0x00000800; - overallLineHits_ = value; - onChanged(); - return this; - } - /** - * optional int32 overall_line_hits = 12; - * - *
-       * overall tests
-       * 
- */ - public Builder clearOverallLineHits() { - bitField0_ = (bitField0_ & ~0x00000800); - overallLineHits_ = 0; - onChanged(); - return this; - } - - private int overallConditions_ ; - /** - * optional int32 overall_conditions = 13; - */ - public boolean hasOverallConditions() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * optional int32 overall_conditions = 13; - */ - public int getOverallConditions() { - return overallConditions_; - } - /** - * optional int32 overall_conditions = 13; - */ - public Builder setOverallConditions(int value) { - bitField0_ |= 0x00001000; - overallConditions_ = value; - onChanged(); - return this; - } - /** - * optional int32 overall_conditions = 13; - */ - public Builder clearOverallConditions() { - bitField0_ = (bitField0_ & ~0x00001000); - overallConditions_ = 0; - onChanged(); - return this; - } - - private int overallCoveredConditions_ ; - /** - * optional int32 overall_covered_conditions = 14; - */ - public boolean hasOverallCoveredConditions() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - /** - * optional int32 overall_covered_conditions = 14; - */ - public int getOverallCoveredConditions() { - return overallCoveredConditions_; - } - /** - * optional int32 overall_covered_conditions = 14; - */ - public Builder setOverallCoveredConditions(int value) { - bitField0_ |= 0x00002000; - overallCoveredConditions_ = value; - onChanged(); - return this; - } - /** - * optional int32 overall_covered_conditions = 14; - */ - public Builder clearOverallCoveredConditions() { - bitField0_ = (bitField0_ & ~0x00002000); - overallCoveredConditions_ = 0; - onChanged(); - return this; - } - - private java.lang.Object highlighting_ = ""; - /** - * optional string highlighting = 15; - */ - public boolean hasHighlighting() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - /** - * optional string highlighting = 15; - */ - public java.lang.String getHighlighting() { - java.lang.Object ref = highlighting_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - highlighting_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string highlighting = 15; - */ - public com.google.protobuf.ByteString - getHighlightingBytes() { - java.lang.Object ref = highlighting_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - highlighting_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string highlighting = 15; - */ - public Builder setHighlighting( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; - highlighting_ = value; - onChanged(); - return this; - } - /** - * optional string highlighting = 15; - */ - public Builder clearHighlighting() { - bitField0_ = (bitField0_ & ~0x00004000); - highlighting_ = getDefaultInstance().getHighlighting(); - onChanged(); - return this; - } - /** - * optional string highlighting = 15; - */ - public Builder setHighlightingBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; - highlighting_ = value; - onChanged(); - return this; - } - - private java.lang.Object symbols_ = ""; - /** - * optional string symbols = 16; - */ - public boolean hasSymbols() { - return ((bitField0_ & 0x00008000) == 0x00008000); - } - /** - * optional string symbols = 16; - */ - public java.lang.String getSymbols() { - java.lang.Object ref = symbols_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - symbols_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string symbols = 16; - */ - public com.google.protobuf.ByteString - getSymbolsBytes() { - java.lang.Object ref = symbols_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - symbols_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string symbols = 16; - */ - public Builder setSymbols( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; - symbols_ = value; - onChanged(); - return this; - } - /** - * optional string symbols = 16; - */ - public Builder clearSymbols() { - bitField0_ = (bitField0_ & ~0x00008000); - symbols_ = getDefaultInstance().getSymbols(); - onChanged(); - return this; - } - /** - * optional string symbols = 16; - */ - public Builder setSymbolsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; - symbols_ = value; - onChanged(); - return this; - } - - private java.util.List duplication_ = java.util.Collections.emptyList(); - private void ensureDuplicationIsMutable() { - if (!((bitField0_ & 0x00010000) == 0x00010000)) { - duplication_ = new java.util.ArrayList(duplication_); - bitField0_ |= 0x00010000; - } - } - /** - * repeated int32 duplication = 17 [packed = true]; - */ - public java.util.List - getDuplicationList() { - return java.util.Collections.unmodifiableList(duplication_); - } - /** - * repeated int32 duplication = 17 [packed = true]; - */ - public int getDuplicationCount() { - return duplication_.size(); - } - /** - * repeated int32 duplication = 17 [packed = true]; - */ - public int getDuplication(int index) { - return duplication_.get(index); - } - /** - * repeated int32 duplication = 17 [packed = true]; - */ - public Builder setDuplication( - int index, int value) { - ensureDuplicationIsMutable(); - duplication_.set(index, value); - onChanged(); - return this; - } - /** - * repeated int32 duplication = 17 [packed = true]; - */ - public Builder addDuplication(int value) { - ensureDuplicationIsMutable(); - duplication_.add(value); - onChanged(); - return this; - } - /** - * repeated int32 duplication = 17 [packed = true]; - */ - public Builder addAllDuplication( - java.lang.Iterable values) { - ensureDuplicationIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, duplication_); - onChanged(); - return this; - } - /** - * repeated int32 duplication = 17 [packed = true]; - */ - public Builder clearDuplication() { - duplication_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Line) - } - - // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Line) - private static final org.sonar.db.protobuf.DbFileSources.Line DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbFileSources.Line(); - } - - public static org.sonar.db.protobuf.DbFileSources.Line getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Line parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Line(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.db.protobuf.DbFileSources.Line getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DataOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Data) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - java.util.List - getLinesList(); - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - org.sonar.db.protobuf.DbFileSources.Line getLines(int index); - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - int getLinesCount(); - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - java.util.List - getLinesOrBuilderList(); - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - org.sonar.db.protobuf.DbFileSources.LineOrBuilder getLinesOrBuilder( - int index); - } - /** - * Protobuf type {@code org.sonar.server.source.db.Data} - * - *
-   * TODO should be dropped as it prevents streaming
-   * 
- */ - public static final class Data extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Data) - DataOrBuilder { - // Use Data.newBuilder() to construct. - private Data(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Data() { - lines_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Data( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - lines_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - lines_.add(input.readMessage(org.sonar.db.protobuf.DbFileSources.Line.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - lines_ = java.util.Collections.unmodifiableList(lines_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Data_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Data_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbFileSources.Data.class, org.sonar.db.protobuf.DbFileSources.Data.Builder.class); - } - - public static final int LINES_FIELD_NUMBER = 1; - private java.util.List lines_; - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public java.util.List getLinesList() { - return lines_; - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public java.util.List - getLinesOrBuilderList() { - return lines_; - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public int getLinesCount() { - return lines_.size(); - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public org.sonar.db.protobuf.DbFileSources.Line getLines(int index) { - return lines_.get(index); - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public org.sonar.db.protobuf.DbFileSources.LineOrBuilder getLinesOrBuilder( - int index) { - return lines_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < lines_.size(); i++) { - output.writeMessage(1, lines_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < lines_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, lines_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Data parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.db.protobuf.DbFileSources.Data prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.sonar.server.source.db.Data} - * - *
-     * TODO should be dropped as it prevents streaming
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Data) - org.sonar.db.protobuf.DbFileSources.DataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Data_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Data_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbFileSources.Data.class, org.sonar.db.protobuf.DbFileSources.Data.Builder.class); - } - - // Construct using org.sonar.db.protobuf.DbFileSources.Data.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getLinesFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (linesBuilder_ == null) { - lines_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - linesBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Data_descriptor; - } - - public org.sonar.db.protobuf.DbFileSources.Data getDefaultInstanceForType() { - return org.sonar.db.protobuf.DbFileSources.Data.getDefaultInstance(); - } - - public org.sonar.db.protobuf.DbFileSources.Data build() { - org.sonar.db.protobuf.DbFileSources.Data result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.db.protobuf.DbFileSources.Data buildPartial() { - org.sonar.db.protobuf.DbFileSources.Data result = new org.sonar.db.protobuf.DbFileSources.Data(this); - int from_bitField0_ = bitField0_; - if (linesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - lines_ = java.util.Collections.unmodifiableList(lines_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.lines_ = lines_; - } else { - result.lines_ = linesBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.db.protobuf.DbFileSources.Data) { - return mergeFrom((org.sonar.db.protobuf.DbFileSources.Data)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.db.protobuf.DbFileSources.Data other) { - if (other == org.sonar.db.protobuf.DbFileSources.Data.getDefaultInstance()) return this; - if (linesBuilder_ == null) { - if (!other.lines_.isEmpty()) { - if (lines_.isEmpty()) { - lines_ = other.lines_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLinesIsMutable(); - lines_.addAll(other.lines_); - } - onChanged(); - } - } else { - if (!other.lines_.isEmpty()) { - if (linesBuilder_.isEmpty()) { - linesBuilder_.dispose(); - linesBuilder_ = null; - lines_ = other.lines_; - bitField0_ = (bitField0_ & ~0x00000001); - linesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getLinesFieldBuilder() : null; - } else { - linesBuilder_.addAllMessages(other.lines_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.db.protobuf.DbFileSources.Data parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.db.protobuf.DbFileSources.Data) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List lines_ = - java.util.Collections.emptyList(); - private void ensureLinesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - lines_ = new java.util.ArrayList(lines_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbFileSources.Line, org.sonar.db.protobuf.DbFileSources.Line.Builder, org.sonar.db.protobuf.DbFileSources.LineOrBuilder> linesBuilder_; - - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public java.util.List getLinesList() { - if (linesBuilder_ == null) { - return java.util.Collections.unmodifiableList(lines_); - } else { - return linesBuilder_.getMessageList(); - } - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public int getLinesCount() { - if (linesBuilder_ == null) { - return lines_.size(); - } else { - return linesBuilder_.getCount(); - } - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public org.sonar.db.protobuf.DbFileSources.Line getLines(int index) { - if (linesBuilder_ == null) { - return lines_.get(index); - } else { - return linesBuilder_.getMessage(index); - } - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public Builder setLines( - int index, org.sonar.db.protobuf.DbFileSources.Line value) { - if (linesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinesIsMutable(); - lines_.set(index, value); - onChanged(); - } else { - linesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public Builder setLines( - int index, org.sonar.db.protobuf.DbFileSources.Line.Builder builderForValue) { - if (linesBuilder_ == null) { - ensureLinesIsMutable(); - lines_.set(index, builderForValue.build()); - onChanged(); - } else { - linesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public Builder addLines(org.sonar.db.protobuf.DbFileSources.Line value) { - if (linesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinesIsMutable(); - lines_.add(value); - onChanged(); - } else { - linesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public Builder addLines( - int index, org.sonar.db.protobuf.DbFileSources.Line value) { - if (linesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLinesIsMutable(); - lines_.add(index, value); - onChanged(); - } else { - linesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public Builder addLines( - org.sonar.db.protobuf.DbFileSources.Line.Builder builderForValue) { - if (linesBuilder_ == null) { - ensureLinesIsMutable(); - lines_.add(builderForValue.build()); - onChanged(); - } else { - linesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public Builder addLines( - int index, org.sonar.db.protobuf.DbFileSources.Line.Builder builderForValue) { - if (linesBuilder_ == null) { - ensureLinesIsMutable(); - lines_.add(index, builderForValue.build()); - onChanged(); - } else { - linesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public Builder addAllLines( - java.lang.Iterable values) { - if (linesBuilder_ == null) { - ensureLinesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, lines_); - onChanged(); - } else { - linesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public Builder clearLines() { - if (linesBuilder_ == null) { - lines_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - linesBuilder_.clear(); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public Builder removeLines(int index) { - if (linesBuilder_ == null) { - ensureLinesIsMutable(); - lines_.remove(index); - onChanged(); - } else { - linesBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public org.sonar.db.protobuf.DbFileSources.Line.Builder getLinesBuilder( - int index) { - return getLinesFieldBuilder().getBuilder(index); - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public org.sonar.db.protobuf.DbFileSources.LineOrBuilder getLinesOrBuilder( - int index) { - if (linesBuilder_ == null) { - return lines_.get(index); } else { - return linesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public java.util.List - getLinesOrBuilderList() { - if (linesBuilder_ != null) { - return linesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(lines_); - } - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public org.sonar.db.protobuf.DbFileSources.Line.Builder addLinesBuilder() { - return getLinesFieldBuilder().addBuilder( - org.sonar.db.protobuf.DbFileSources.Line.getDefaultInstance()); - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public org.sonar.db.protobuf.DbFileSources.Line.Builder addLinesBuilder( - int index) { - return getLinesFieldBuilder().addBuilder( - index, org.sonar.db.protobuf.DbFileSources.Line.getDefaultInstance()); - } - /** - * repeated .org.sonar.server.source.db.Line lines = 1; - */ - public java.util.List - getLinesBuilderList() { - return getLinesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbFileSources.Line, org.sonar.db.protobuf.DbFileSources.Line.Builder, org.sonar.db.protobuf.DbFileSources.LineOrBuilder> - getLinesFieldBuilder() { - if (linesBuilder_ == null) { - linesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbFileSources.Line, org.sonar.db.protobuf.DbFileSources.Line.Builder, org.sonar.db.protobuf.DbFileSources.LineOrBuilder>( - lines_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - lines_ = null; - } - return linesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Data) - } - - // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Data) - private static final org.sonar.db.protobuf.DbFileSources.Data DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbFileSources.Data(); - } - - public static org.sonar.db.protobuf.DbFileSources.Data getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Data parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Data(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.db.protobuf.DbFileSources.Data getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TestOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Test) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string uuid = 1; - */ - boolean hasUuid(); - /** - * optional string uuid = 1; - */ - java.lang.String getUuid(); - /** - * optional string uuid = 1; - */ - com.google.protobuf.ByteString - getUuidBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional .org.sonar.server.source.db.Test.TestStatus status = 3; - */ - boolean hasStatus(); - /** - * optional .org.sonar.server.source.db.Test.TestStatus status = 3; - */ - org.sonar.db.protobuf.DbFileSources.Test.TestStatus getStatus(); - - /** - * optional int64 execution_time_ms = 4; - */ - boolean hasExecutionTimeMs(); - /** - * optional int64 execution_time_ms = 4; - */ - long getExecutionTimeMs(); - - /** - * optional string stacktrace = 5; - */ - boolean hasStacktrace(); - /** - * optional string stacktrace = 5; - */ - java.lang.String getStacktrace(); - /** - * optional string stacktrace = 5; - */ - com.google.protobuf.ByteString - getStacktraceBytes(); - - /** - * optional string msg = 6; - */ - boolean hasMsg(); - /** - * optional string msg = 6; - */ - java.lang.String getMsg(); - /** - * optional string msg = 6; - */ - com.google.protobuf.ByteString - getMsgBytes(); - - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - java.util.List - getCoveredFileList(); - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getCoveredFile(int index); - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - int getCoveredFileCount(); - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - java.util.List - getCoveredFileOrBuilderList(); - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder getCoveredFileOrBuilder( - int index); - } - /** - * Protobuf type {@code org.sonar.server.source.db.Test} - */ - public static final class Test extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Test) - TestOrBuilder { - // Use Test.newBuilder() to construct. - private Test(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Test() { - uuid_ = ""; - name_ = ""; - status_ = 1; - executionTimeMs_ = 0L; - stacktrace_ = ""; - msg_ = ""; - coveredFile_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Test( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - uuid_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 24: { - int rawValue = input.readEnum(); - org.sonar.db.protobuf.DbFileSources.Test.TestStatus value = org.sonar.db.protobuf.DbFileSources.Test.TestStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - status_ = rawValue; - } - break; - } - case 32: { - bitField0_ |= 0x00000008; - executionTimeMs_ = input.readInt64(); - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - stacktrace_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - msg_ = bs; - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - coveredFile_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - coveredFile_.add(input.readMessage(org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - coveredFile_ = java.util.Collections.unmodifiableList(coveredFile_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbFileSources.Test.class, org.sonar.db.protobuf.DbFileSources.Test.Builder.class); - } - - /** - * Protobuf enum {@code org.sonar.server.source.db.Test.TestStatus} - */ - public enum TestStatus - implements com.google.protobuf.ProtocolMessageEnum { - /** - * OK = 1; - */ - OK(0, 1), - /** - * FAILURE = 2; - */ - FAILURE(1, 2), - /** - * ERROR = 3; - */ - ERROR(2, 3), - /** - * SKIPPED = 4; - */ - SKIPPED(3, 4), - ; - - /** - * OK = 1; - */ - public static final int OK_VALUE = 1; - /** - * FAILURE = 2; - */ - public static final int FAILURE_VALUE = 2; - /** - * ERROR = 3; - */ - public static final int ERROR_VALUE = 3; - /** - * SKIPPED = 4; - */ - public static final int SKIPPED_VALUE = 4; - - - public final int getNumber() { - return value; - } - - public static TestStatus valueOf(int value) { - switch (value) { - case 1: return OK; - case 2: return FAILURE; - case 3: return ERROR; - case 4: return SKIPPED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TestStatus findValueByNumber(int number) { - return TestStatus.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.Test.getDescriptor().getEnumTypes().get(0); - } - - private static final TestStatus[] VALUES = values(); - - public static TestStatus valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private TestStatus(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:org.sonar.server.source.db.Test.TestStatus) - } - - public interface CoveredFileOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.sonar.server.source.db.Test.CoveredFile) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string file_uuid = 1; - */ - boolean hasFileUuid(); - /** - * optional string file_uuid = 1; - */ - java.lang.String getFileUuid(); - /** - * optional string file_uuid = 1; - */ - com.google.protobuf.ByteString - getFileUuidBytes(); - - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - java.util.List getCoveredLineList(); - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - int getCoveredLineCount(); - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - int getCoveredLine(int index); - } - /** - * Protobuf type {@code org.sonar.server.source.db.Test.CoveredFile} - */ - public static final class CoveredFile extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:org.sonar.server.source.db.Test.CoveredFile) - CoveredFileOrBuilder { - // Use CoveredFile.newBuilder() to construct. - private CoveredFile(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private CoveredFile() { - fileUuid_ = ""; - coveredLine_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CoveredFile( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - fileUuid_ = bs; - break; - } - case 16: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - coveredLine_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - coveredLine_.add(input.readInt32()); - break; - } - case 18: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { - coveredLine_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - while (input.getBytesUntilLimit() > 0) { - coveredLine_.add(input.readInt32()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - coveredLine_ = java.util.Collections.unmodifiableList(coveredLine_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.class, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder.class); - } - - private int bitField0_; - public static final int FILE_UUID_FIELD_NUMBER = 1; - private volatile java.lang.Object fileUuid_; - /** - * optional string file_uuid = 1; - */ - public boolean hasFileUuid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string file_uuid = 1; - */ - public java.lang.String getFileUuid() { - java.lang.Object ref = fileUuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - fileUuid_ = s; - } - return s; - } - } - /** - * optional string file_uuid = 1; - */ - public com.google.protobuf.ByteString - getFileUuidBytes() { - java.lang.Object ref = fileUuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fileUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COVERED_LINE_FIELD_NUMBER = 2; - private java.util.List coveredLine_; - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public java.util.List - getCoveredLineList() { - return coveredLine_; - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public int getCoveredLineCount() { - return coveredLine_.size(); - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public int getCoveredLine(int index) { - return coveredLine_.get(index); - } - private int coveredLineMemoizedSerializedSize = -1; - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getFileUuidBytes()); - } - if (getCoveredLineList().size() > 0) { - output.writeRawVarint32(18); - output.writeRawVarint32(coveredLineMemoizedSerializedSize); - } - for (int i = 0; i < coveredLine_.size(); i++) { - output.writeInt32NoTag(coveredLine_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getFileUuidBytes()); - } - { - int dataSize = 0; - for (int i = 0; i < coveredLine_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(coveredLine_.get(i)); - } - size += dataSize; - if (!getCoveredLineList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream - .computeInt32SizeNoTag(dataSize); - } - coveredLineMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.db.protobuf.DbFileSources.Test.CoveredFile prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.sonar.server.source.db.Test.CoveredFile} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Test.CoveredFile) - org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.class, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder.class); - } - - // Construct using org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - fileUuid_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - coveredLine_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor; - } - - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getDefaultInstanceForType() { - return org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.getDefaultInstance(); - } - - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile build() { - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile buildPartial() { - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile result = new org.sonar.db.protobuf.DbFileSources.Test.CoveredFile(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.fileUuid_ = fileUuid_; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - coveredLine_ = java.util.Collections.unmodifiableList(coveredLine_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.coveredLine_ = coveredLine_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.db.protobuf.DbFileSources.Test.CoveredFile) { - return mergeFrom((org.sonar.db.protobuf.DbFileSources.Test.CoveredFile)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.db.protobuf.DbFileSources.Test.CoveredFile other) { - if (other == org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.getDefaultInstance()) return this; - if (other.hasFileUuid()) { - bitField0_ |= 0x00000001; - fileUuid_ = other.fileUuid_; - onChanged(); - } - if (!other.coveredLine_.isEmpty()) { - if (coveredLine_.isEmpty()) { - coveredLine_ = other.coveredLine_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCoveredLineIsMutable(); - coveredLine_.addAll(other.coveredLine_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.db.protobuf.DbFileSources.Test.CoveredFile) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object fileUuid_ = ""; - /** - * optional string file_uuid = 1; - */ - public boolean hasFileUuid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string file_uuid = 1; - */ - public java.lang.String getFileUuid() { - java.lang.Object ref = fileUuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - fileUuid_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string file_uuid = 1; - */ - public com.google.protobuf.ByteString - getFileUuidBytes() { - java.lang.Object ref = fileUuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fileUuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string file_uuid = 1; - */ - public Builder setFileUuid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - fileUuid_ = value; - onChanged(); - return this; - } - /** - * optional string file_uuid = 1; - */ - public Builder clearFileUuid() { - bitField0_ = (bitField0_ & ~0x00000001); - fileUuid_ = getDefaultInstance().getFileUuid(); - onChanged(); - return this; - } - /** - * optional string file_uuid = 1; - */ - public Builder setFileUuidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - fileUuid_ = value; - onChanged(); - return this; - } - - private java.util.List coveredLine_ = java.util.Collections.emptyList(); - private void ensureCoveredLineIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - coveredLine_ = new java.util.ArrayList(coveredLine_); - bitField0_ |= 0x00000002; - } - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public java.util.List - getCoveredLineList() { - return java.util.Collections.unmodifiableList(coveredLine_); - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public int getCoveredLineCount() { - return coveredLine_.size(); - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public int getCoveredLine(int index) { - return coveredLine_.get(index); - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public Builder setCoveredLine( - int index, int value) { - ensureCoveredLineIsMutable(); - coveredLine_.set(index, value); - onChanged(); - return this; - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public Builder addCoveredLine(int value) { - ensureCoveredLineIsMutable(); - coveredLine_.add(value); - onChanged(); - return this; - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public Builder addAllCoveredLine( - java.lang.Iterable values) { - ensureCoveredLineIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, coveredLine_); - onChanged(); - return this; - } - /** - * repeated int32 covered_line = 2 [packed = true]; - */ - public Builder clearCoveredLine() { - coveredLine_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Test.CoveredFile) - } - - // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Test.CoveredFile) - private static final org.sonar.db.protobuf.DbFileSources.Test.CoveredFile DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbFileSources.Test.CoveredFile(); - } - - public static org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CoveredFile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new CoveredFile(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int UUID_FIELD_NUMBER = 1; - private volatile java.lang.Object uuid_; - /** - * optional string uuid = 1; - */ - public boolean hasUuid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string uuid = 1; - */ - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - uuid_ = s; - } - return s; - } - } - /** - * optional string uuid = 1; - */ - public com.google.protobuf.ByteString - getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 3; - private int status_; - /** - * optional .org.sonar.server.source.db.Test.TestStatus status = 3; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .org.sonar.server.source.db.Test.TestStatus status = 3; - */ - public org.sonar.db.protobuf.DbFileSources.Test.TestStatus getStatus() { - org.sonar.db.protobuf.DbFileSources.Test.TestStatus result = org.sonar.db.protobuf.DbFileSources.Test.TestStatus.valueOf(status_); - return result == null ? org.sonar.db.protobuf.DbFileSources.Test.TestStatus.OK : result; - } - - public static final int EXECUTION_TIME_MS_FIELD_NUMBER = 4; - private long executionTimeMs_; - /** - * optional int64 execution_time_ms = 4; - */ - public boolean hasExecutionTimeMs() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int64 execution_time_ms = 4; - */ - public long getExecutionTimeMs() { - return executionTimeMs_; - } - - public static final int STACKTRACE_FIELD_NUMBER = 5; - private volatile java.lang.Object stacktrace_; - /** - * optional string stacktrace = 5; - */ - public boolean hasStacktrace() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string stacktrace = 5; - */ - public java.lang.String getStacktrace() { - java.lang.Object ref = stacktrace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stacktrace_ = s; - } - return s; - } - } - /** - * optional string stacktrace = 5; - */ - public com.google.protobuf.ByteString - getStacktraceBytes() { - java.lang.Object ref = stacktrace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stacktrace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MSG_FIELD_NUMBER = 6; - private volatile java.lang.Object msg_; - /** - * optional string msg = 6; - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string msg = 6; - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } - } - /** - * optional string msg = 6; - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COVERED_FILE_FIELD_NUMBER = 7; - private java.util.List coveredFile_; - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public java.util.List getCoveredFileList() { - return coveredFile_; - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public java.util.List - getCoveredFileOrBuilderList() { - return coveredFile_; - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public int getCoveredFileCount() { - return coveredFile_.size(); - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getCoveredFile(int index) { - return coveredFile_.get(index); - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder getCoveredFileOrBuilder( - int index) { - return coveredFile_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getUuidBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, status_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt64(4, executionTimeMs_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getStacktraceBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getMsgBytes()); - } - for (int i = 0; i < coveredFile_.size(); i++) { - output.writeMessage(7, coveredFile_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getUuidBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, status_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, executionTimeMs_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getStacktraceBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getMsgBytes()); - } - for (int i = 0; i < coveredFile_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, coveredFile_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbFileSources.Test parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.db.protobuf.DbFileSources.Test prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.sonar.server.source.db.Test} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:org.sonar.server.source.db.Test) - org.sonar.db.protobuf.DbFileSources.TestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbFileSources.Test.class, org.sonar.db.protobuf.DbFileSources.Test.Builder.class); - } - - // Construct using org.sonar.db.protobuf.DbFileSources.Test.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getCoveredFileFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - uuid_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - status_ = 1; - bitField0_ = (bitField0_ & ~0x00000004); - executionTimeMs_ = 0L; - bitField0_ = (bitField0_ & ~0x00000008); - stacktrace_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - msg_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - if (coveredFileBuilder_ == null) { - coveredFile_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - coveredFileBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.db.protobuf.DbFileSources.internal_static_org_sonar_server_source_db_Test_descriptor; - } - - public org.sonar.db.protobuf.DbFileSources.Test getDefaultInstanceForType() { - return org.sonar.db.protobuf.DbFileSources.Test.getDefaultInstance(); - } - - public org.sonar.db.protobuf.DbFileSources.Test build() { - org.sonar.db.protobuf.DbFileSources.Test result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.db.protobuf.DbFileSources.Test buildPartial() { - org.sonar.db.protobuf.DbFileSources.Test result = new org.sonar.db.protobuf.DbFileSources.Test(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.uuid_ = uuid_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.status_ = status_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.executionTimeMs_ = executionTimeMs_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.stacktrace_ = stacktrace_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.msg_ = msg_; - if (coveredFileBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040)) { - coveredFile_ = java.util.Collections.unmodifiableList(coveredFile_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.coveredFile_ = coveredFile_; - } else { - result.coveredFile_ = coveredFileBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.db.protobuf.DbFileSources.Test) { - return mergeFrom((org.sonar.db.protobuf.DbFileSources.Test)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.db.protobuf.DbFileSources.Test other) { - if (other == org.sonar.db.protobuf.DbFileSources.Test.getDefaultInstance()) return this; - if (other.hasUuid()) { - bitField0_ |= 0x00000001; - uuid_ = other.uuid_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasStatus()) { - setStatus(other.getStatus()); - } - if (other.hasExecutionTimeMs()) { - setExecutionTimeMs(other.getExecutionTimeMs()); - } - if (other.hasStacktrace()) { - bitField0_ |= 0x00000010; - stacktrace_ = other.stacktrace_; - onChanged(); - } - if (other.hasMsg()) { - bitField0_ |= 0x00000020; - msg_ = other.msg_; - onChanged(); - } - if (coveredFileBuilder_ == null) { - if (!other.coveredFile_.isEmpty()) { - if (coveredFile_.isEmpty()) { - coveredFile_ = other.coveredFile_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureCoveredFileIsMutable(); - coveredFile_.addAll(other.coveredFile_); - } - onChanged(); - } - } else { - if (!other.coveredFile_.isEmpty()) { - if (coveredFileBuilder_.isEmpty()) { - coveredFileBuilder_.dispose(); - coveredFileBuilder_ = null; - coveredFile_ = other.coveredFile_; - bitField0_ = (bitField0_ & ~0x00000040); - coveredFileBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getCoveredFileFieldBuilder() : null; - } else { - coveredFileBuilder_.addAllMessages(other.coveredFile_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.db.protobuf.DbFileSources.Test parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.db.protobuf.DbFileSources.Test) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object uuid_ = ""; - /** - * optional string uuid = 1; - */ - public boolean hasUuid() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string uuid = 1; - */ - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - uuid_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string uuid = 1; - */ - public com.google.protobuf.ByteString - getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string uuid = 1; - */ - public Builder setUuid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - uuid_ = value; - onChanged(); - return this; - } - /** - * optional string uuid = 1; - */ - public Builder clearUuid() { - bitField0_ = (bitField0_ & ~0x00000001); - uuid_ = getDefaultInstance().getUuid(); - onChanged(); - return this; - } - /** - * optional string uuid = 1; - */ - public Builder setUuidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - uuid_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - private int status_ = 1; - /** - * optional .org.sonar.server.source.db.Test.TestStatus status = 3; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .org.sonar.server.source.db.Test.TestStatus status = 3; - */ - public org.sonar.db.protobuf.DbFileSources.Test.TestStatus getStatus() { - org.sonar.db.protobuf.DbFileSources.Test.TestStatus result = org.sonar.db.protobuf.DbFileSources.Test.TestStatus.valueOf(status_); - return result == null ? org.sonar.db.protobuf.DbFileSources.Test.TestStatus.OK : result; - } - /** - * optional .org.sonar.server.source.db.Test.TestStatus status = 3; - */ - public Builder setStatus(org.sonar.db.protobuf.DbFileSources.Test.TestStatus value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .org.sonar.server.source.db.Test.TestStatus status = 3; - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000004); - status_ = 1; - onChanged(); - return this; - } - - private long executionTimeMs_ ; - /** - * optional int64 execution_time_ms = 4; - */ - public boolean hasExecutionTimeMs() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int64 execution_time_ms = 4; - */ - public long getExecutionTimeMs() { - return executionTimeMs_; - } - /** - * optional int64 execution_time_ms = 4; - */ - public Builder setExecutionTimeMs(long value) { - bitField0_ |= 0x00000008; - executionTimeMs_ = value; - onChanged(); - return this; - } - /** - * optional int64 execution_time_ms = 4; - */ - public Builder clearExecutionTimeMs() { - bitField0_ = (bitField0_ & ~0x00000008); - executionTimeMs_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object stacktrace_ = ""; - /** - * optional string stacktrace = 5; - */ - public boolean hasStacktrace() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string stacktrace = 5; - */ - public java.lang.String getStacktrace() { - java.lang.Object ref = stacktrace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - stacktrace_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string stacktrace = 5; - */ - public com.google.protobuf.ByteString - getStacktraceBytes() { - java.lang.Object ref = stacktrace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - stacktrace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string stacktrace = 5; - */ - public Builder setStacktrace( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - stacktrace_ = value; - onChanged(); - return this; - } - /** - * optional string stacktrace = 5; - */ - public Builder clearStacktrace() { - bitField0_ = (bitField0_ & ~0x00000010); - stacktrace_ = getDefaultInstance().getStacktrace(); - onChanged(); - return this; - } - /** - * optional string stacktrace = 5; - */ - public Builder setStacktraceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - stacktrace_ = value; - onChanged(); - return this; - } - - private java.lang.Object msg_ = ""; - /** - * optional string msg = 6; - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string msg = 6; - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string msg = 6; - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string msg = 6; - */ - public Builder setMsg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - msg_ = value; - onChanged(); - return this; - } - /** - * optional string msg = 6; - */ - public Builder clearMsg() { - bitField0_ = (bitField0_ & ~0x00000020); - msg_ = getDefaultInstance().getMsg(); - onChanged(); - return this; - } - /** - * optional string msg = 6; - */ - public Builder setMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - msg_ = value; - onChanged(); - return this; - } - - private java.util.List coveredFile_ = - java.util.Collections.emptyList(); - private void ensureCoveredFileIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { - coveredFile_ = new java.util.ArrayList(coveredFile_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder, org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder> coveredFileBuilder_; - - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public java.util.List getCoveredFileList() { - if (coveredFileBuilder_ == null) { - return java.util.Collections.unmodifiableList(coveredFile_); - } else { - return coveredFileBuilder_.getMessageList(); - } - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public int getCoveredFileCount() { - if (coveredFileBuilder_ == null) { - return coveredFile_.size(); - } else { - return coveredFileBuilder_.getCount(); - } - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile getCoveredFile(int index) { - if (coveredFileBuilder_ == null) { - return coveredFile_.get(index); - } else { - return coveredFileBuilder_.getMessage(index); - } - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public Builder setCoveredFile( - int index, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile value) { - if (coveredFileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoveredFileIsMutable(); - coveredFile_.set(index, value); - onChanged(); - } else { - coveredFileBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public Builder setCoveredFile( - int index, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder builderForValue) { - if (coveredFileBuilder_ == null) { - ensureCoveredFileIsMutable(); - coveredFile_.set(index, builderForValue.build()); - onChanged(); - } else { - coveredFileBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public Builder addCoveredFile(org.sonar.db.protobuf.DbFileSources.Test.CoveredFile value) { - if (coveredFileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoveredFileIsMutable(); - coveredFile_.add(value); - onChanged(); - } else { - coveredFileBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public Builder addCoveredFile( - int index, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile value) { - if (coveredFileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCoveredFileIsMutable(); - coveredFile_.add(index, value); - onChanged(); - } else { - coveredFileBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public Builder addCoveredFile( - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder builderForValue) { - if (coveredFileBuilder_ == null) { - ensureCoveredFileIsMutable(); - coveredFile_.add(builderForValue.build()); - onChanged(); - } else { - coveredFileBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public Builder addCoveredFile( - int index, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder builderForValue) { - if (coveredFileBuilder_ == null) { - ensureCoveredFileIsMutable(); - coveredFile_.add(index, builderForValue.build()); - onChanged(); - } else { - coveredFileBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public Builder addAllCoveredFile( - java.lang.Iterable values) { - if (coveredFileBuilder_ == null) { - ensureCoveredFileIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, coveredFile_); - onChanged(); - } else { - coveredFileBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public Builder clearCoveredFile() { - if (coveredFileBuilder_ == null) { - coveredFile_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - coveredFileBuilder_.clear(); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public Builder removeCoveredFile(int index) { - if (coveredFileBuilder_ == null) { - ensureCoveredFileIsMutable(); - coveredFile_.remove(index); - onChanged(); - } else { - coveredFileBuilder_.remove(index); - } - return this; - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder getCoveredFileBuilder( - int index) { - return getCoveredFileFieldBuilder().getBuilder(index); - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder getCoveredFileOrBuilder( - int index) { - if (coveredFileBuilder_ == null) { - return coveredFile_.get(index); } else { - return coveredFileBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public java.util.List - getCoveredFileOrBuilderList() { - if (coveredFileBuilder_ != null) { - return coveredFileBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(coveredFile_); - } - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder addCoveredFileBuilder() { - return getCoveredFileFieldBuilder().addBuilder( - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.getDefaultInstance()); - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder addCoveredFileBuilder( - int index) { - return getCoveredFileFieldBuilder().addBuilder( - index, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.getDefaultInstance()); - } - /** - * repeated .org.sonar.server.source.db.Test.CoveredFile covered_file = 7; - */ - public java.util.List - getCoveredFileBuilderList() { - return getCoveredFileFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder, org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder> - getCoveredFileFieldBuilder() { - if (coveredFileBuilder_ == null) { - coveredFileBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbFileSources.Test.CoveredFile, org.sonar.db.protobuf.DbFileSources.Test.CoveredFile.Builder, org.sonar.db.protobuf.DbFileSources.Test.CoveredFileOrBuilder>( - coveredFile_, - ((bitField0_ & 0x00000040) == 0x00000040), - getParentForChildren(), - isClean()); - coveredFile_ = null; - } - return coveredFileBuilder_; - } - - // @@protoc_insertion_point(builder_scope:org.sonar.server.source.db.Test) - } - - // @@protoc_insertion_point(class_scope:org.sonar.server.source.db.Test) - private static final org.sonar.db.protobuf.DbFileSources.Test DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbFileSources.Test(); - } - - public static org.sonar.db.protobuf.DbFileSources.Test getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Test parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Test(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.db.protobuf.DbFileSources.Test getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_sonar_server_source_db_Line_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_sonar_server_source_db_Line_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_sonar_server_source_db_Data_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_sonar_server_source_db_Data_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_sonar_server_source_db_Test_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_sonar_server_source_db_Test_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\025db-file-sources.proto\022\032org.sonar.serve" + - "r.source.db\"\223\003\n\004Line\022\014\n\004line\030\001 \001(\005\022\016\n\006so" + - "urce\030\002 \001(\t\022\024\n\014scm_revision\030\003 \001(\t\022\022\n\nscm_" + - "author\030\004 \001(\t\022\020\n\010scm_date\030\005 \001(\003\022\024\n\014ut_lin" + - "e_hits\030\006 \001(\005\022\025\n\rut_conditions\030\007 \001(\005\022\035\n\025u" + - "t_covered_conditions\030\010 \001(\005\022\024\n\014it_line_hi" + - "ts\030\t \001(\005\022\025\n\rit_conditions\030\n \001(\005\022\035\n\025it_co" + - "vered_conditions\030\013 \001(\005\022\031\n\021overall_line_h" + - "its\030\014 \001(\005\022\032\n\022overall_conditions\030\r \001(\005\022\"\n" + - "\032overall_covered_conditions\030\016 \001(\005\022\024\n\014hig", - "hlighting\030\017 \001(\t\022\017\n\007symbols\030\020 \001(\t\022\027\n\013dupl" + - "ication\030\021 \003(\005B\002\020\001\"7\n\004Data\022/\n\005lines\030\001 \003(\013" + - "2 .org.sonar.server.source.db.Line\"\326\002\n\004T" + - "est\022\014\n\004uuid\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022;\n\006statu" + - "s\030\003 \001(\0162+.org.sonar.server.source.db.Tes" + - "t.TestStatus\022\031\n\021execution_time_ms\030\004 \001(\003\022" + - "\022\n\nstacktrace\030\005 \001(\t\022\013\n\003msg\030\006 \001(\t\022B\n\014cove" + - "red_file\030\007 \003(\0132,.org.sonar.server.source" + - ".db.Test.CoveredFile\032:\n\013CoveredFile\022\021\n\tf" + - "ile_uuid\030\001 \001(\t\022\030\n\014covered_line\030\002 \003(\005B\002\020\001", - "\"9\n\nTestStatus\022\006\n\002OK\020\001\022\013\n\007FAILURE\020\002\022\t\n\005E" + - "RROR\020\003\022\013\n\007SKIPPED\020\004B\031\n\025org.sonar.db.prot" + - "obufH\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_org_sonar_server_source_db_Line_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_org_sonar_server_source_db_Line_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_sonar_server_source_db_Line_descriptor, - new java.lang.String[] { "Line", "Source", "ScmRevision", "ScmAuthor", "ScmDate", "UtLineHits", "UtConditions", "UtCoveredConditions", "ItLineHits", "ItConditions", "ItCoveredConditions", "OverallLineHits", "OverallConditions", "OverallCoveredConditions", "Highlighting", "Symbols", "Duplication", }); - internal_static_org_sonar_server_source_db_Data_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_org_sonar_server_source_db_Data_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_sonar_server_source_db_Data_descriptor, - new java.lang.String[] { "Lines", }); - internal_static_org_sonar_server_source_db_Test_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_org_sonar_server_source_db_Test_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_sonar_server_source_db_Test_descriptor, - new java.lang.String[] { "Uuid", "Name", "Status", "ExecutionTimeMs", "Stacktrace", "Msg", "CoveredFile", }); - internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor = - internal_static_org_sonar_server_source_db_Test_descriptor.getNestedTypes().get(0); - internal_static_org_sonar_server_source_db_Test_CoveredFile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_org_sonar_server_source_db_Test_CoveredFile_descriptor, - new java.lang.String[] { "FileUuid", "CoveredLine", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbIssues.java b/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbIssues.java deleted file mode 100644 index 1baa250436a..00000000000 --- a/sonar-db/src/main/gen-java/org/sonar/db/protobuf/DbIssues.java +++ /dev/null @@ -1,2496 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: db-issues.proto - -package org.sonar.db.protobuf; - -public final class DbIssues { - private DbIssues() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface LocationsOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.db.issues.Locations) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.db.commons.TextRange text_range = 1; - */ - boolean hasTextRange(); - /** - * optional .sonarqube.db.commons.TextRange text_range = 1; - */ - org.sonar.db.protobuf.DbCommons.TextRange getTextRange(); - /** - * optional .sonarqube.db.commons.TextRange text_range = 1; - */ - org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder(); - - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - java.util.List - getFlowList(); - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - org.sonar.db.protobuf.DbIssues.Flow getFlow(int index); - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - int getFlowCount(); - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - java.util.List - getFlowOrBuilderList(); - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - org.sonar.db.protobuf.DbIssues.FlowOrBuilder getFlowOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.db.issues.Locations} - */ - public static final class Locations extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.db.issues.Locations) - LocationsOrBuilder { - // Use Locations.newBuilder() to construct. - private Locations(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Locations() { - flow_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Locations( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.sonar.db.protobuf.DbCommons.TextRange.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = textRange_.toBuilder(); - } - textRange_ = input.readMessage(org.sonar.db.protobuf.DbCommons.TextRange.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textRange_); - textRange_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - flow_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - flow_.add(input.readMessage(org.sonar.db.protobuf.DbIssues.Flow.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - flow_ = java.util.Collections.unmodifiableList(flow_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbIssues.Locations.class, org.sonar.db.protobuf.DbIssues.Locations.Builder.class); - } - - private int bitField0_; - public static final int TEXT_RANGE_FIELD_NUMBER = 1; - private org.sonar.db.protobuf.DbCommons.TextRange textRange_; - /** - * optional .sonarqube.db.commons.TextRange text_range = 1; - */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 1; - */ - public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() { - return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 1; - */ - public org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() { - return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; - } - - public static final int FLOW_FIELD_NUMBER = 2; - private java.util.List flow_; - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public java.util.List getFlowList() { - return flow_; - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public java.util.List - getFlowOrBuilderList() { - return flow_; - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public int getFlowCount() { - return flow_.size(); - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public org.sonar.db.protobuf.DbIssues.Flow getFlow(int index) { - return flow_.get(index); - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public org.sonar.db.protobuf.DbIssues.FlowOrBuilder getFlowOrBuilder( - int index) { - return flow_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getTextRange()); - } - for (int i = 0; i < flow_.size(); i++) { - output.writeMessage(2, flow_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTextRange()); - } - for (int i = 0; i < flow_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, flow_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.db.protobuf.DbIssues.Locations parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Locations parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.db.protobuf.DbIssues.Locations prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.db.issues.Locations} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.db.issues.Locations) - org.sonar.db.protobuf.DbIssues.LocationsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbIssues.Locations.class, org.sonar.db.protobuf.DbIssues.Locations.Builder.class); - } - - // Construct using org.sonar.db.protobuf.DbIssues.Locations.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getTextRangeFieldBuilder(); - getFlowFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (textRangeBuilder_ == null) { - textRange_ = null; - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (flowBuilder_ == null) { - flow_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - flowBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Locations_descriptor; - } - - public org.sonar.db.protobuf.DbIssues.Locations getDefaultInstanceForType() { - return org.sonar.db.protobuf.DbIssues.Locations.getDefaultInstance(); - } - - public org.sonar.db.protobuf.DbIssues.Locations build() { - org.sonar.db.protobuf.DbIssues.Locations result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.db.protobuf.DbIssues.Locations buildPartial() { - org.sonar.db.protobuf.DbIssues.Locations result = new org.sonar.db.protobuf.DbIssues.Locations(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (textRangeBuilder_ == null) { - result.textRange_ = textRange_; - } else { - result.textRange_ = textRangeBuilder_.build(); - } - if (flowBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - flow_ = java.util.Collections.unmodifiableList(flow_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.flow_ = flow_; - } else { - result.flow_ = flowBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.db.protobuf.DbIssues.Locations) { - return mergeFrom((org.sonar.db.protobuf.DbIssues.Locations)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.db.protobuf.DbIssues.Locations other) { - if (other == org.sonar.db.protobuf.DbIssues.Locations.getDefaultInstance()) return this; - if (other.hasTextRange()) { - mergeTextRange(other.getTextRange()); - } - if (flowBuilder_ == null) { - if (!other.flow_.isEmpty()) { - if (flow_.isEmpty()) { - flow_ = other.flow_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureFlowIsMutable(); - flow_.addAll(other.flow_); - } - onChanged(); - } - } else { - if (!other.flow_.isEmpty()) { - if (flowBuilder_.isEmpty()) { - flowBuilder_.dispose(); - flowBuilder_ = null; - flow_ = other.flow_; - bitField0_ = (bitField0_ & ~0x00000002); - flowBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getFlowFieldBuilder() : null; - } else { - flowBuilder_.addAllMessages(other.flow_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.db.protobuf.DbIssues.Locations parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.db.protobuf.DbIssues.Locations) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonar.db.protobuf.DbCommons.TextRange textRange_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonar.db.protobuf.DbCommons.TextRange, org.sonar.db.protobuf.DbCommons.TextRange.Builder, org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder> textRangeBuilder_; - /** - * optional .sonarqube.db.commons.TextRange text_range = 1; - */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 1; - */ - public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() { - if (textRangeBuilder_ == null) { - return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; - } else { - return textRangeBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 1; - */ - public Builder setTextRange(org.sonar.db.protobuf.DbCommons.TextRange value) { - if (textRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - textRange_ = value; - onChanged(); - } else { - textRangeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 1; - */ - public Builder setTextRange( - org.sonar.db.protobuf.DbCommons.TextRange.Builder builderForValue) { - if (textRangeBuilder_ == null) { - textRange_ = builderForValue.build(); - onChanged(); - } else { - textRangeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 1; - */ - public Builder mergeTextRange(org.sonar.db.protobuf.DbCommons.TextRange value) { - if (textRangeBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - textRange_ != null && - textRange_ != org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance()) { - textRange_ = - org.sonar.db.protobuf.DbCommons.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial(); - } else { - textRange_ = value; - } - onChanged(); - } else { - textRangeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 1; - */ - public Builder clearTextRange() { - if (textRangeBuilder_ == null) { - textRange_ = null; - onChanged(); - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 1; - */ - public org.sonar.db.protobuf.DbCommons.TextRange.Builder getTextRangeBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getTextRangeFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 1; - */ - public org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() { - if (textRangeBuilder_ != null) { - return textRangeBuilder_.getMessageOrBuilder(); - } else { - return textRange_ == null ? - org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; - } - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonar.db.protobuf.DbCommons.TextRange, org.sonar.db.protobuf.DbCommons.TextRange.Builder, org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder> - getTextRangeFieldBuilder() { - if (textRangeBuilder_ == null) { - textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.db.protobuf.DbCommons.TextRange, org.sonar.db.protobuf.DbCommons.TextRange.Builder, org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder>( - getTextRange(), - getParentForChildren(), - isClean()); - textRange_ = null; - } - return textRangeBuilder_; - } - - private java.util.List flow_ = - java.util.Collections.emptyList(); - private void ensureFlowIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - flow_ = new java.util.ArrayList(flow_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbIssues.Flow, org.sonar.db.protobuf.DbIssues.Flow.Builder, org.sonar.db.protobuf.DbIssues.FlowOrBuilder> flowBuilder_; - - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public java.util.List getFlowList() { - if (flowBuilder_ == null) { - return java.util.Collections.unmodifiableList(flow_); - } else { - return flowBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public int getFlowCount() { - if (flowBuilder_ == null) { - return flow_.size(); - } else { - return flowBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public org.sonar.db.protobuf.DbIssues.Flow getFlow(int index) { - if (flowBuilder_ == null) { - return flow_.get(index); - } else { - return flowBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public Builder setFlow( - int index, org.sonar.db.protobuf.DbIssues.Flow value) { - if (flowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlowIsMutable(); - flow_.set(index, value); - onChanged(); - } else { - flowBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public Builder setFlow( - int index, org.sonar.db.protobuf.DbIssues.Flow.Builder builderForValue) { - if (flowBuilder_ == null) { - ensureFlowIsMutable(); - flow_.set(index, builderForValue.build()); - onChanged(); - } else { - flowBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public Builder addFlow(org.sonar.db.protobuf.DbIssues.Flow value) { - if (flowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlowIsMutable(); - flow_.add(value); - onChanged(); - } else { - flowBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public Builder addFlow( - int index, org.sonar.db.protobuf.DbIssues.Flow value) { - if (flowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlowIsMutable(); - flow_.add(index, value); - onChanged(); - } else { - flowBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public Builder addFlow( - org.sonar.db.protobuf.DbIssues.Flow.Builder builderForValue) { - if (flowBuilder_ == null) { - ensureFlowIsMutable(); - flow_.add(builderForValue.build()); - onChanged(); - } else { - flowBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public Builder addFlow( - int index, org.sonar.db.protobuf.DbIssues.Flow.Builder builderForValue) { - if (flowBuilder_ == null) { - ensureFlowIsMutable(); - flow_.add(index, builderForValue.build()); - onChanged(); - } else { - flowBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public Builder addAllFlow( - java.lang.Iterable values) { - if (flowBuilder_ == null) { - ensureFlowIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, flow_); - onChanged(); - } else { - flowBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public Builder clearFlow() { - if (flowBuilder_ == null) { - flow_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - flowBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public Builder removeFlow(int index) { - if (flowBuilder_ == null) { - ensureFlowIsMutable(); - flow_.remove(index); - onChanged(); - } else { - flowBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public org.sonar.db.protobuf.DbIssues.Flow.Builder getFlowBuilder( - int index) { - return getFlowFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public org.sonar.db.protobuf.DbIssues.FlowOrBuilder getFlowOrBuilder( - int index) { - if (flowBuilder_ == null) { - return flow_.get(index); } else { - return flowBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public java.util.List - getFlowOrBuilderList() { - if (flowBuilder_ != null) { - return flowBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(flow_); - } - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public org.sonar.db.protobuf.DbIssues.Flow.Builder addFlowBuilder() { - return getFlowFieldBuilder().addBuilder( - org.sonar.db.protobuf.DbIssues.Flow.getDefaultInstance()); - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public org.sonar.db.protobuf.DbIssues.Flow.Builder addFlowBuilder( - int index) { - return getFlowFieldBuilder().addBuilder( - index, org.sonar.db.protobuf.DbIssues.Flow.getDefaultInstance()); - } - /** - * repeated .sonarqube.db.issues.Flow flow = 2; - */ - public java.util.List - getFlowBuilderList() { - return getFlowFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbIssues.Flow, org.sonar.db.protobuf.DbIssues.Flow.Builder, org.sonar.db.protobuf.DbIssues.FlowOrBuilder> - getFlowFieldBuilder() { - if (flowBuilder_ == null) { - flowBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbIssues.Flow, org.sonar.db.protobuf.DbIssues.Flow.Builder, org.sonar.db.protobuf.DbIssues.FlowOrBuilder>( - flow_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - flow_ = null; - } - return flowBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.db.issues.Locations) - } - - // @@protoc_insertion_point(class_scope:sonarqube.db.issues.Locations) - private static final org.sonar.db.protobuf.DbIssues.Locations DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbIssues.Locations(); - } - - public static org.sonar.db.protobuf.DbIssues.Locations getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Locations parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Locations(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.db.protobuf.DbIssues.Locations getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FlowOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.db.issues.Flow) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - java.util.List - getLocationList(); - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - org.sonar.db.protobuf.DbIssues.Location getLocation(int index); - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - int getLocationCount(); - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - java.util.List - getLocationOrBuilderList(); - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - org.sonar.db.protobuf.DbIssues.LocationOrBuilder getLocationOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.db.issues.Flow} - */ - public static final class Flow extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.db.issues.Flow) - FlowOrBuilder { - // Use Flow.newBuilder() to construct. - private Flow(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Flow() { - location_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Flow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - location_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - location_.add(input.readMessage(org.sonar.db.protobuf.DbIssues.Location.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - location_ = java.util.Collections.unmodifiableList(location_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbIssues.Flow.class, org.sonar.db.protobuf.DbIssues.Flow.Builder.class); - } - - public static final int LOCATION_FIELD_NUMBER = 1; - private java.util.List location_; - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public java.util.List getLocationList() { - return location_; - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public java.util.List - getLocationOrBuilderList() { - return location_; - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public int getLocationCount() { - return location_.size(); - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public org.sonar.db.protobuf.DbIssues.Location getLocation(int index) { - return location_.get(index); - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public org.sonar.db.protobuf.DbIssues.LocationOrBuilder getLocationOrBuilder( - int index) { - return location_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < location_.size(); i++) { - output.writeMessage(1, location_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < location_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, location_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.db.protobuf.DbIssues.Flow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Flow parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.db.protobuf.DbIssues.Flow prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.db.issues.Flow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.db.issues.Flow) - org.sonar.db.protobuf.DbIssues.FlowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbIssues.Flow.class, org.sonar.db.protobuf.DbIssues.Flow.Builder.class); - } - - // Construct using org.sonar.db.protobuf.DbIssues.Flow.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getLocationFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (locationBuilder_ == null) { - location_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - locationBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Flow_descriptor; - } - - public org.sonar.db.protobuf.DbIssues.Flow getDefaultInstanceForType() { - return org.sonar.db.protobuf.DbIssues.Flow.getDefaultInstance(); - } - - public org.sonar.db.protobuf.DbIssues.Flow build() { - org.sonar.db.protobuf.DbIssues.Flow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.db.protobuf.DbIssues.Flow buildPartial() { - org.sonar.db.protobuf.DbIssues.Flow result = new org.sonar.db.protobuf.DbIssues.Flow(this); - int from_bitField0_ = bitField0_; - if (locationBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - location_ = java.util.Collections.unmodifiableList(location_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.location_ = location_; - } else { - result.location_ = locationBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.db.protobuf.DbIssues.Flow) { - return mergeFrom((org.sonar.db.protobuf.DbIssues.Flow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.db.protobuf.DbIssues.Flow other) { - if (other == org.sonar.db.protobuf.DbIssues.Flow.getDefaultInstance()) return this; - if (locationBuilder_ == null) { - if (!other.location_.isEmpty()) { - if (location_.isEmpty()) { - location_ = other.location_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationIsMutable(); - location_.addAll(other.location_); - } - onChanged(); - } - } else { - if (!other.location_.isEmpty()) { - if (locationBuilder_.isEmpty()) { - locationBuilder_.dispose(); - locationBuilder_ = null; - location_ = other.location_; - bitField0_ = (bitField0_ & ~0x00000001); - locationBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getLocationFieldBuilder() : null; - } else { - locationBuilder_.addAllMessages(other.location_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.db.protobuf.DbIssues.Flow parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.db.protobuf.DbIssues.Flow) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List location_ = - java.util.Collections.emptyList(); - private void ensureLocationIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - location_ = new java.util.ArrayList(location_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbIssues.Location, org.sonar.db.protobuf.DbIssues.Location.Builder, org.sonar.db.protobuf.DbIssues.LocationOrBuilder> locationBuilder_; - - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public java.util.List getLocationList() { - if (locationBuilder_ == null) { - return java.util.Collections.unmodifiableList(location_); - } else { - return locationBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public int getLocationCount() { - if (locationBuilder_ == null) { - return location_.size(); - } else { - return locationBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public org.sonar.db.protobuf.DbIssues.Location getLocation(int index) { - if (locationBuilder_ == null) { - return location_.get(index); - } else { - return locationBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public Builder setLocation( - int index, org.sonar.db.protobuf.DbIssues.Location value) { - if (locationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationIsMutable(); - location_.set(index, value); - onChanged(); - } else { - locationBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public Builder setLocation( - int index, org.sonar.db.protobuf.DbIssues.Location.Builder builderForValue) { - if (locationBuilder_ == null) { - ensureLocationIsMutable(); - location_.set(index, builderForValue.build()); - onChanged(); - } else { - locationBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public Builder addLocation(org.sonar.db.protobuf.DbIssues.Location value) { - if (locationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationIsMutable(); - location_.add(value); - onChanged(); - } else { - locationBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public Builder addLocation( - int index, org.sonar.db.protobuf.DbIssues.Location value) { - if (locationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationIsMutable(); - location_.add(index, value); - onChanged(); - } else { - locationBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public Builder addLocation( - org.sonar.db.protobuf.DbIssues.Location.Builder builderForValue) { - if (locationBuilder_ == null) { - ensureLocationIsMutable(); - location_.add(builderForValue.build()); - onChanged(); - } else { - locationBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public Builder addLocation( - int index, org.sonar.db.protobuf.DbIssues.Location.Builder builderForValue) { - if (locationBuilder_ == null) { - ensureLocationIsMutable(); - location_.add(index, builderForValue.build()); - onChanged(); - } else { - locationBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public Builder addAllLocation( - java.lang.Iterable values) { - if (locationBuilder_ == null) { - ensureLocationIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, location_); - onChanged(); - } else { - locationBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public Builder clearLocation() { - if (locationBuilder_ == null) { - location_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - locationBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public Builder removeLocation(int index) { - if (locationBuilder_ == null) { - ensureLocationIsMutable(); - location_.remove(index); - onChanged(); - } else { - locationBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public org.sonar.db.protobuf.DbIssues.Location.Builder getLocationBuilder( - int index) { - return getLocationFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public org.sonar.db.protobuf.DbIssues.LocationOrBuilder getLocationOrBuilder( - int index) { - if (locationBuilder_ == null) { - return location_.get(index); } else { - return locationBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public java.util.List - getLocationOrBuilderList() { - if (locationBuilder_ != null) { - return locationBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(location_); - } - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public org.sonar.db.protobuf.DbIssues.Location.Builder addLocationBuilder() { - return getLocationFieldBuilder().addBuilder( - org.sonar.db.protobuf.DbIssues.Location.getDefaultInstance()); - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public org.sonar.db.protobuf.DbIssues.Location.Builder addLocationBuilder( - int index) { - return getLocationFieldBuilder().addBuilder( - index, org.sonar.db.protobuf.DbIssues.Location.getDefaultInstance()); - } - /** - * repeated .sonarqube.db.issues.Location location = 1; - */ - public java.util.List - getLocationBuilderList() { - return getLocationFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbIssues.Location, org.sonar.db.protobuf.DbIssues.Location.Builder, org.sonar.db.protobuf.DbIssues.LocationOrBuilder> - getLocationFieldBuilder() { - if (locationBuilder_ == null) { - locationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonar.db.protobuf.DbIssues.Location, org.sonar.db.protobuf.DbIssues.Location.Builder, org.sonar.db.protobuf.DbIssues.LocationOrBuilder>( - location_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - location_ = null; - } - return locationBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.db.issues.Flow) - } - - // @@protoc_insertion_point(class_scope:sonarqube.db.issues.Flow) - private static final org.sonar.db.protobuf.DbIssues.Flow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbIssues.Flow(); - } - - public static org.sonar.db.protobuf.DbIssues.Flow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Flow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Flow(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.db.protobuf.DbIssues.Flow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LocationOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.db.issues.Location) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string component_id = 1; - */ - boolean hasComponentId(); - /** - * optional string component_id = 1; - */ - java.lang.String getComponentId(); - /** - * optional string component_id = 1; - */ - com.google.protobuf.ByteString - getComponentIdBytes(); - - /** - * optional .sonarqube.db.commons.TextRange text_range = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - boolean hasTextRange(); - /** - * optional .sonarqube.db.commons.TextRange text_range = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - org.sonar.db.protobuf.DbCommons.TextRange getTextRange(); - /** - * optional .sonarqube.db.commons.TextRange text_range = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder(); - - /** - * optional string msg = 3; - */ - boolean hasMsg(); - /** - * optional string msg = 3; - */ - java.lang.String getMsg(); - /** - * optional string msg = 3; - */ - com.google.protobuf.ByteString - getMsgBytes(); - } - /** - * Protobuf type {@code sonarqube.db.issues.Location} - */ - public static final class Location extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.db.issues.Location) - LocationOrBuilder { - // Use Location.newBuilder() to construct. - private Location(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Location() { - componentId_ = ""; - msg_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Location( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - componentId_ = bs; - break; - } - case 18: { - org.sonar.db.protobuf.DbCommons.TextRange.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = textRange_.toBuilder(); - } - textRange_ = input.readMessage(org.sonar.db.protobuf.DbCommons.TextRange.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textRange_); - textRange_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - msg_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbIssues.Location.class, org.sonar.db.protobuf.DbIssues.Location.Builder.class); - } - - private int bitField0_; - public static final int COMPONENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object componentId_; - /** - * optional string component_id = 1; - */ - public boolean hasComponentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string component_id = 1; - */ - public java.lang.String getComponentId() { - java.lang.Object ref = componentId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - componentId_ = s; - } - return s; - } - } - /** - * optional string component_id = 1; - */ - public com.google.protobuf.ByteString - getComponentIdBytes() { - java.lang.Object ref = componentId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - componentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TEXT_RANGE_FIELD_NUMBER = 2; - private org.sonar.db.protobuf.DbCommons.TextRange textRange_; - /** - * optional .sonarqube.db.commons.TextRange text_range = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() { - return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - public org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() { - return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; - } - - public static final int MSG_FIELD_NUMBER = 3; - private volatile java.lang.Object msg_; - /** - * optional string msg = 3; - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string msg = 3; - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } - } - /** - * optional string msg = 3; - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getComponentIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, getTextRange()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getMsgBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getComponentIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTextRange()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getMsgBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonar.db.protobuf.DbIssues.Location parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbIssues.Location parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Location parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonar.db.protobuf.DbIssues.Location parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Location parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Location parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Location parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Location parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonar.db.protobuf.DbIssues.Location parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonar.db.protobuf.DbIssues.Location parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonar.db.protobuf.DbIssues.Location prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.db.issues.Location} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.db.issues.Location) - org.sonar.db.protobuf.DbIssues.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonar.db.protobuf.DbIssues.Location.class, org.sonar.db.protobuf.DbIssues.Location.Builder.class); - } - - // Construct using org.sonar.db.protobuf.DbIssues.Location.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getTextRangeFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - componentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (textRangeBuilder_ == null) { - textRange_ = null; - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - msg_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonar.db.protobuf.DbIssues.internal_static_sonarqube_db_issues_Location_descriptor; - } - - public org.sonar.db.protobuf.DbIssues.Location getDefaultInstanceForType() { - return org.sonar.db.protobuf.DbIssues.Location.getDefaultInstance(); - } - - public org.sonar.db.protobuf.DbIssues.Location build() { - org.sonar.db.protobuf.DbIssues.Location result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonar.db.protobuf.DbIssues.Location buildPartial() { - org.sonar.db.protobuf.DbIssues.Location result = new org.sonar.db.protobuf.DbIssues.Location(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.componentId_ = componentId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (textRangeBuilder_ == null) { - result.textRange_ = textRange_; - } else { - result.textRange_ = textRangeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.msg_ = msg_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonar.db.protobuf.DbIssues.Location) { - return mergeFrom((org.sonar.db.protobuf.DbIssues.Location)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonar.db.protobuf.DbIssues.Location other) { - if (other == org.sonar.db.protobuf.DbIssues.Location.getDefaultInstance()) return this; - if (other.hasComponentId()) { - bitField0_ |= 0x00000001; - componentId_ = other.componentId_; - onChanged(); - } - if (other.hasTextRange()) { - mergeTextRange(other.getTextRange()); - } - if (other.hasMsg()) { - bitField0_ |= 0x00000004; - msg_ = other.msg_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonar.db.protobuf.DbIssues.Location parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonar.db.protobuf.DbIssues.Location) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object componentId_ = ""; - /** - * optional string component_id = 1; - */ - public boolean hasComponentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string component_id = 1; - */ - public java.lang.String getComponentId() { - java.lang.Object ref = componentId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - componentId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string component_id = 1; - */ - public com.google.protobuf.ByteString - getComponentIdBytes() { - java.lang.Object ref = componentId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - componentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string component_id = 1; - */ - public Builder setComponentId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - componentId_ = value; - onChanged(); - return this; - } - /** - * optional string component_id = 1; - */ - public Builder clearComponentId() { - bitField0_ = (bitField0_ & ~0x00000001); - componentId_ = getDefaultInstance().getComponentId(); - onChanged(); - return this; - } - /** - * optional string component_id = 1; - */ - public Builder setComponentIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - componentId_ = value; - onChanged(); - return this; - } - - private org.sonar.db.protobuf.DbCommons.TextRange textRange_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonar.db.protobuf.DbCommons.TextRange, org.sonar.db.protobuf.DbCommons.TextRange.Builder, org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder> textRangeBuilder_; - /** - * optional .sonarqube.db.commons.TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public org.sonar.db.protobuf.DbCommons.TextRange getTextRange() { - if (textRangeBuilder_ == null) { - return textRange_ == null ? org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; - } else { - return textRangeBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public Builder setTextRange(org.sonar.db.protobuf.DbCommons.TextRange value) { - if (textRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - textRange_ = value; - onChanged(); - } else { - textRangeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public Builder setTextRange( - org.sonar.db.protobuf.DbCommons.TextRange.Builder builderForValue) { - if (textRangeBuilder_ == null) { - textRange_ = builderForValue.build(); - onChanged(); - } else { - textRangeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public Builder mergeTextRange(org.sonar.db.protobuf.DbCommons.TextRange value) { - if (textRangeBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - textRange_ != null && - textRange_ != org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance()) { - textRange_ = - org.sonar.db.protobuf.DbCommons.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial(); - } else { - textRange_ = value; - } - onChanged(); - } else { - textRangeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public Builder clearTextRange() { - if (textRangeBuilder_ == null) { - textRange_ = null; - onChanged(); - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public org.sonar.db.protobuf.DbCommons.TextRange.Builder getTextRangeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getTextRangeFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder getTextRangeOrBuilder() { - if (textRangeBuilder_ != null) { - return textRangeBuilder_.getMessageOrBuilder(); - } else { - return textRange_ == null ? - org.sonar.db.protobuf.DbCommons.TextRange.getDefaultInstance() : textRange_; - } - } - /** - * optional .sonarqube.db.commons.TextRange text_range = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - private com.google.protobuf.SingleFieldBuilder< - org.sonar.db.protobuf.DbCommons.TextRange, org.sonar.db.protobuf.DbCommons.TextRange.Builder, org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder> - getTextRangeFieldBuilder() { - if (textRangeBuilder_ == null) { - textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonar.db.protobuf.DbCommons.TextRange, org.sonar.db.protobuf.DbCommons.TextRange.Builder, org.sonar.db.protobuf.DbCommons.TextRangeOrBuilder>( - getTextRange(), - getParentForChildren(), - isClean()); - textRange_ = null; - } - return textRangeBuilder_; - } - - private java.lang.Object msg_ = ""; - /** - * optional string msg = 3; - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string msg = 3; - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string msg = 3; - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string msg = 3; - */ - public Builder setMsg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - msg_ = value; - onChanged(); - return this; - } - /** - * optional string msg = 3; - */ - public Builder clearMsg() { - bitField0_ = (bitField0_ & ~0x00000004); - msg_ = getDefaultInstance().getMsg(); - onChanged(); - return this; - } - /** - * optional string msg = 3; - */ - public Builder setMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - msg_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.db.issues.Location) - } - - // @@protoc_insertion_point(class_scope:sonarqube.db.issues.Location) - private static final org.sonar.db.protobuf.DbIssues.Location DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonar.db.protobuf.DbIssues.Location(); - } - - public static org.sonar.db.protobuf.DbIssues.Location getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Location parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Location(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonar.db.protobuf.DbIssues.Location getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_db_issues_Locations_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_db_issues_Locations_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_db_issues_Flow_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_db_issues_Flow_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_db_issues_Location_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_db_issues_Location_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017db-issues.proto\022\023sonarqube.db.issues\032\020" + - "db-commons.proto\"i\n\tLocations\0223\n\ntext_ra" + - "nge\030\001 \001(\0132\037.sonarqube.db.commons.TextRan" + - "ge\022\'\n\004flow\030\002 \003(\0132\031.sonarqube.db.issues.F" + - "low\"7\n\004Flow\022/\n\010location\030\001 \003(\0132\035.sonarqub" + - "e.db.issues.Location\"b\n\010Location\022\024\n\014comp" + - "onent_id\030\001 \001(\t\0223\n\ntext_range\030\002 \001(\0132\037.son" + - "arqube.db.commons.TextRange\022\013\n\003msg\030\003 \001(\t" + - "B\031\n\025org.sonar.db.protobufH\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.sonar.db.protobuf.DbCommons.getDescriptor(), - }, assigner); - internal_static_sonarqube_db_issues_Locations_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_sonarqube_db_issues_Locations_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_db_issues_Locations_descriptor, - new java.lang.String[] { "TextRange", "Flow", }); - internal_static_sonarqube_db_issues_Flow_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_sonarqube_db_issues_Flow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_db_issues_Flow_descriptor, - new java.lang.String[] { "Location", }); - internal_static_sonarqube_db_issues_Location_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_sonarqube_db_issues_Location_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_db_issues_Location_descriptor, - new java.lang.String[] { "ComponentId", "TextRange", "Msg", }); - org.sonar.db.protobuf.DbCommons.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sonar-ws/pom.xml b/sonar-ws/pom.xml index 3c6a7e10c04..3409a153d02 100644 --- a/sonar-ws/pom.xml +++ b/sonar-ws/pom.xml @@ -13,10 +13,6 @@ SonarQube :: Web Service Protocol Buffers specification of Web Services - - src/main/gen-java/**/* - - com.google.protobuf @@ -68,29 +64,4 @@ http-request - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - src/main/gen-java - - - - - - - - diff --git a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Common.java b/sonar-ws/src/main/gen-java/org/sonarqube/ws/Common.java deleted file mode 100644 index e054fdcd978..00000000000 --- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Common.java +++ /dev/null @@ -1,7023 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ws-commons.proto - -package org.sonarqube.ws; - -public final class Common { - private Common() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - /** - * Protobuf enum {@code sonarqube.ws.commons.Severity} - */ - public enum Severity - implements com.google.protobuf.ProtocolMessageEnum { - /** - * INFO = 0; - */ - INFO(0, 0), - /** - * MINOR = 1; - */ - MINOR(1, 1), - /** - * MAJOR = 2; - */ - MAJOR(2, 2), - /** - * CRITICAL = 3; - */ - CRITICAL(3, 3), - /** - * BLOCKER = 4; - */ - BLOCKER(4, 4), - ; - - /** - * INFO = 0; - */ - public static final int INFO_VALUE = 0; - /** - * MINOR = 1; - */ - public static final int MINOR_VALUE = 1; - /** - * MAJOR = 2; - */ - public static final int MAJOR_VALUE = 2; - /** - * CRITICAL = 3; - */ - public static final int CRITICAL_VALUE = 3; - /** - * BLOCKER = 4; - */ - public static final int BLOCKER_VALUE = 4; - - - public final int getNumber() { - return value; - } - - public static Severity valueOf(int value) { - switch (value) { - case 0: return INFO; - case 1: return MINOR; - case 2: return MAJOR; - case 3: return CRITICAL; - case 4: return BLOCKER; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Severity findValueByNumber(int number) { - return Severity.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.sonarqube.ws.Common.getDescriptor().getEnumTypes().get(0); - } - - private static final Severity[] VALUES = values(); - - public static Severity valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private Severity(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:sonarqube.ws.commons.Severity) - } - - /** - * Protobuf enum {@code sonarqube.ws.commons.RuleStatus} - */ - public enum RuleStatus - implements com.google.protobuf.ProtocolMessageEnum { - /** - * BETA = 0; - */ - BETA(0, 0), - /** - * DEPRECATED = 1; - */ - DEPRECATED(1, 1), - /** - * READY = 2; - */ - READY(2, 2), - /** - * REMOVED = 3; - */ - REMOVED(3, 3), - ; - - /** - * BETA = 0; - */ - public static final int BETA_VALUE = 0; - /** - * DEPRECATED = 1; - */ - public static final int DEPRECATED_VALUE = 1; - /** - * READY = 2; - */ - public static final int READY_VALUE = 2; - /** - * REMOVED = 3; - */ - public static final int REMOVED_VALUE = 3; - - - public final int getNumber() { - return value; - } - - public static RuleStatus valueOf(int value) { - switch (value) { - case 0: return BETA; - case 1: return DEPRECATED; - case 2: return READY; - case 3: return REMOVED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RuleStatus findValueByNumber(int number) { - return RuleStatus.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.sonarqube.ws.Common.getDescriptor().getEnumTypes().get(1); - } - - private static final RuleStatus[] VALUES = values(); - - public static RuleStatus valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private RuleStatus(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:sonarqube.ws.commons.RuleStatus) - } - - public interface PagingOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.Paging) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 pageIndex = 1; - */ - boolean hasPageIndex(); - /** - * optional int32 pageIndex = 1; - */ - int getPageIndex(); - - /** - * optional int32 pageSize = 2; - */ - boolean hasPageSize(); - /** - * optional int32 pageSize = 2; - */ - int getPageSize(); - - /** - * optional int32 total = 3; - */ - boolean hasTotal(); - /** - * optional int32 total = 3; - */ - int getTotal(); - } - /** - * Protobuf type {@code sonarqube.ws.commons.Paging} - */ - public static final class Paging extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Paging) - PagingOrBuilder { - // Use Paging.newBuilder() to construct. - private Paging(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Paging() { - pageIndex_ = 0; - pageSize_ = 0; - total_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Paging( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - pageIndex_ = input.readInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - pageSize_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - total_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Paging_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Paging_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.Paging.class, org.sonarqube.ws.Common.Paging.Builder.class); - } - - private int bitField0_; - public static final int PAGEINDEX_FIELD_NUMBER = 1; - private int pageIndex_; - /** - * optional int32 pageIndex = 1; - */ - public boolean hasPageIndex() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 pageIndex = 1; - */ - public int getPageIndex() { - return pageIndex_; - } - - public static final int PAGESIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - * optional int32 pageSize = 2; - */ - public boolean hasPageSize() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 pageSize = 2; - */ - public int getPageSize() { - return pageSize_; - } - - public static final int TOTAL_FIELD_NUMBER = 3; - private int total_; - /** - * optional int32 total = 3; - */ - public boolean hasTotal() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 total = 3; - */ - public int getTotal() { - return total_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, pageIndex_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, pageSize_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, total_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, pageIndex_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, total_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Common.Paging parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.Paging parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.Paging parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.Paging parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.Paging parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.Paging parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.Paging parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Common.Paging parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.Paging parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.Paging parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Common.Paging prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.commons.Paging} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.Paging) - org.sonarqube.ws.Common.PagingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Paging_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Paging_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.Paging.class, org.sonarqube.ws.Common.Paging.Builder.class); - } - - // Construct using org.sonarqube.ws.Common.Paging.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - pageIndex_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - pageSize_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - total_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Paging_descriptor; - } - - public org.sonarqube.ws.Common.Paging getDefaultInstanceForType() { - return org.sonarqube.ws.Common.Paging.getDefaultInstance(); - } - - public org.sonarqube.ws.Common.Paging build() { - org.sonarqube.ws.Common.Paging result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Common.Paging buildPartial() { - org.sonarqube.ws.Common.Paging result = new org.sonarqube.ws.Common.Paging(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.pageIndex_ = pageIndex_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.pageSize_ = pageSize_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.total_ = total_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Common.Paging) { - return mergeFrom((org.sonarqube.ws.Common.Paging)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Common.Paging other) { - if (other == org.sonarqube.ws.Common.Paging.getDefaultInstance()) return this; - if (other.hasPageIndex()) { - setPageIndex(other.getPageIndex()); - } - if (other.hasPageSize()) { - setPageSize(other.getPageSize()); - } - if (other.hasTotal()) { - setTotal(other.getTotal()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Common.Paging parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Common.Paging) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int pageIndex_ ; - /** - * optional int32 pageIndex = 1; - */ - public boolean hasPageIndex() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 pageIndex = 1; - */ - public int getPageIndex() { - return pageIndex_; - } - /** - * optional int32 pageIndex = 1; - */ - public Builder setPageIndex(int value) { - bitField0_ |= 0x00000001; - pageIndex_ = value; - onChanged(); - return this; - } - /** - * optional int32 pageIndex = 1; - */ - public Builder clearPageIndex() { - bitField0_ = (bitField0_ & ~0x00000001); - pageIndex_ = 0; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - * optional int32 pageSize = 2; - */ - public boolean hasPageSize() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 pageSize = 2; - */ - public int getPageSize() { - return pageSize_; - } - /** - * optional int32 pageSize = 2; - */ - public Builder setPageSize(int value) { - bitField0_ |= 0x00000002; - pageSize_ = value; - onChanged(); - return this; - } - /** - * optional int32 pageSize = 2; - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private int total_ ; - /** - * optional int32 total = 3; - */ - public boolean hasTotal() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 total = 3; - */ - public int getTotal() { - return total_; - } - /** - * optional int32 total = 3; - */ - public Builder setTotal(int value) { - bitField0_ |= 0x00000004; - total_ = value; - onChanged(); - return this; - } - /** - * optional int32 total = 3; - */ - public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000004); - total_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Paging) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Paging) - private static final org.sonarqube.ws.Common.Paging DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Paging(); - } - - public static org.sonarqube.ws.Common.Paging getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Paging parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Paging(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Common.Paging getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FacetOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.Facet) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string property = 1; - * - *
-     * kind of key
-     * 
- */ - boolean hasProperty(); - /** - * optional string property = 1; - * - *
-     * kind of key
-     * 
- */ - java.lang.String getProperty(); - /** - * optional string property = 1; - * - *
-     * kind of key
-     * 
- */ - com.google.protobuf.ByteString - getPropertyBytes(); - - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - java.util.List - getValuesList(); - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - org.sonarqube.ws.Common.FacetValue getValues(int index); - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - int getValuesCount(); - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - java.util.List - getValuesOrBuilderList(); - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - org.sonarqube.ws.Common.FacetValueOrBuilder getValuesOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.commons.Facet} - */ - public static final class Facet extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Facet) - FacetOrBuilder { - // Use Facet.newBuilder() to construct. - private Facet(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Facet() { - property_ = ""; - values_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Facet( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - property_ = bs; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - values_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - values_.add(input.readMessage(org.sonarqube.ws.Common.FacetValue.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - values_ = java.util.Collections.unmodifiableList(values_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facet_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.Facet.class, org.sonarqube.ws.Common.Facet.Builder.class); - } - - private int bitField0_; - public static final int PROPERTY_FIELD_NUMBER = 1; - private volatile java.lang.Object property_; - /** - * optional string property = 1; - * - *
-     * kind of key
-     * 
- */ - public boolean hasProperty() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string property = 1; - * - *
-     * kind of key
-     * 
- */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - property_ = s; - } - return s; - } - } - /** - * optional string property = 1; - * - *
-     * kind of key
-     * 
- */ - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUES_FIELD_NUMBER = 2; - private java.util.List values_; - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public java.util.List getValuesList() { - return values_; - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public java.util.List - getValuesOrBuilderList() { - return values_; - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public int getValuesCount() { - return values_.size(); - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public org.sonarqube.ws.Common.FacetValue getValues(int index) { - return values_.get(index); - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public org.sonarqube.ws.Common.FacetValueOrBuilder getValuesOrBuilder( - int index) { - return values_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getPropertyBytes()); - } - for (int i = 0; i < values_.size(); i++) { - output.writeMessage(2, values_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getPropertyBytes()); - } - for (int i = 0; i < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, values_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Common.Facet parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.Facet parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.Facet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.Facet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.Facet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.Facet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.Facet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Common.Facet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.Facet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.Facet parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Common.Facet prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.commons.Facet} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.Facet) - org.sonarqube.ws.Common.FacetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facet_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.Facet.class, org.sonarqube.ws.Common.Facet.Builder.class); - } - - // Construct using org.sonarqube.ws.Common.Facet.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getValuesFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - property_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (valuesBuilder_ == null) { - values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - valuesBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facet_descriptor; - } - - public org.sonarqube.ws.Common.Facet getDefaultInstanceForType() { - return org.sonarqube.ws.Common.Facet.getDefaultInstance(); - } - - public org.sonarqube.ws.Common.Facet build() { - org.sonarqube.ws.Common.Facet result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Common.Facet buildPartial() { - org.sonarqube.ws.Common.Facet result = new org.sonarqube.ws.Common.Facet(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.property_ = property_; - if (valuesBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - values_ = java.util.Collections.unmodifiableList(values_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.values_ = values_; - } else { - result.values_ = valuesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Common.Facet) { - return mergeFrom((org.sonarqube.ws.Common.Facet)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Common.Facet other) { - if (other == org.sonarqube.ws.Common.Facet.getDefaultInstance()) return this; - if (other.hasProperty()) { - bitField0_ |= 0x00000001; - property_ = other.property_; - onChanged(); - } - if (valuesBuilder_ == null) { - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - } else { - if (!other.values_.isEmpty()) { - if (valuesBuilder_.isEmpty()) { - valuesBuilder_.dispose(); - valuesBuilder_ = null; - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000002); - valuesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getValuesFieldBuilder() : null; - } else { - valuesBuilder_.addAllMessages(other.values_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Common.Facet parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Common.Facet) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - * optional string property = 1; - * - *
-       * kind of key
-       * 
- */ - public boolean hasProperty() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string property = 1; - * - *
-       * kind of key
-       * 
- */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - property_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string property = 1; - * - *
-       * kind of key
-       * 
- */ - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string property = 1; - * - *
-       * kind of key
-       * 
- */ - public Builder setProperty( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - property_ = value; - onChanged(); - return this; - } - /** - * optional string property = 1; - * - *
-       * kind of key
-       * 
- */ - public Builder clearProperty() { - bitField0_ = (bitField0_ & ~0x00000001); - property_ = getDefaultInstance().getProperty(); - onChanged(); - return this; - } - /** - * optional string property = 1; - * - *
-       * kind of key
-       * 
- */ - public Builder setPropertyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - property_ = value; - onChanged(); - return this; - } - - private java.util.List values_ = - java.util.Collections.emptyList(); - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - values_ = new java.util.ArrayList(values_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.FacetValue, org.sonarqube.ws.Common.FacetValue.Builder, org.sonarqube.ws.Common.FacetValueOrBuilder> valuesBuilder_; - - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public java.util.List getValuesList() { - if (valuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(values_); - } else { - return valuesBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public int getValuesCount() { - if (valuesBuilder_ == null) { - return values_.size(); - } else { - return valuesBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public org.sonarqube.ws.Common.FacetValue getValues(int index) { - if (valuesBuilder_ == null) { - return values_.get(index); - } else { - return valuesBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public Builder setValues( - int index, org.sonarqube.ws.Common.FacetValue value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - } else { - valuesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public Builder setValues( - int index, org.sonarqube.ws.Common.FacetValue.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.set(index, builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public Builder addValues(org.sonarqube.ws.Common.FacetValue value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - } else { - valuesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public Builder addValues( - int index, org.sonarqube.ws.Common.FacetValue value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(index, value); - onChanged(); - } else { - valuesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public Builder addValues( - org.sonarqube.ws.Common.FacetValue.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public Builder addValues( - int index, org.sonarqube.ws.Common.FacetValue.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(index, builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public Builder addAllValues( - java.lang.Iterable values) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - } else { - valuesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - valuesBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public Builder removeValues(int index) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.remove(index); - onChanged(); - } else { - valuesBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public org.sonarqube.ws.Common.FacetValue.Builder getValuesBuilder( - int index) { - return getValuesFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public org.sonarqube.ws.Common.FacetValueOrBuilder getValuesOrBuilder( - int index) { - if (valuesBuilder_ == null) { - return values_.get(index); } else { - return valuesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public java.util.List - getValuesOrBuilderList() { - if (valuesBuilder_ != null) { - return valuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(values_); - } - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public org.sonarqube.ws.Common.FacetValue.Builder addValuesBuilder() { - return getValuesFieldBuilder().addBuilder( - org.sonarqube.ws.Common.FacetValue.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public org.sonarqube.ws.Common.FacetValue.Builder addValuesBuilder( - int index) { - return getValuesFieldBuilder().addBuilder( - index, org.sonarqube.ws.Common.FacetValue.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.commons.FacetValue values = 2; - */ - public java.util.List - getValuesBuilderList() { - return getValuesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.FacetValue, org.sonarqube.ws.Common.FacetValue.Builder, org.sonarqube.ws.Common.FacetValueOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.FacetValue, org.sonarqube.ws.Common.FacetValue.Builder, org.sonarqube.ws.Common.FacetValueOrBuilder>( - values_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - values_ = null; - } - return valuesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Facet) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Facet) - private static final org.sonarqube.ws.Common.Facet DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Facet(); - } - - public static org.sonarqube.ws.Common.Facet getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Facet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Facet(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Common.Facet getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FacetsOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.Facets) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - java.util.List - getFacetsList(); - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - org.sonarqube.ws.Common.Facet getFacets(int index); - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - int getFacetsCount(); - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - java.util.List - getFacetsOrBuilderList(); - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.commons.Facets} - */ - public static final class Facets extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Facets) - FacetsOrBuilder { - // Use Facets.newBuilder() to construct. - private Facets(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Facets() { - facets_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Facets( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - facets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - facets_.add(input.readMessage(org.sonarqube.ws.Common.Facet.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - facets_ = java.util.Collections.unmodifiableList(facets_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facets_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facets_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.Facets.class, org.sonarqube.ws.Common.Facets.Builder.class); - } - - public static final int FACETS_FIELD_NUMBER = 1; - private java.util.List facets_; - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public java.util.List getFacetsList() { - return facets_; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public java.util.List - getFacetsOrBuilderList() { - return facets_; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public int getFacetsCount() { - return facets_.size(); - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public org.sonarqube.ws.Common.Facet getFacets(int index) { - return facets_.get(index); - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder( - int index) { - return facets_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < facets_.size(); i++) { - output.writeMessage(1, facets_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < facets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, facets_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Common.Facets parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.Facets parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.Facets parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.Facets parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.Facets parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.Facets parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.Facets parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Common.Facets parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.Facets parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.Facets parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Common.Facets prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.commons.Facets} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.Facets) - org.sonarqube.ws.Common.FacetsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facets_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facets_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.Facets.class, org.sonarqube.ws.Common.Facets.Builder.class); - } - - // Construct using org.sonarqube.ws.Common.Facets.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getFacetsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (facetsBuilder_ == null) { - facets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - facetsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facets_descriptor; - } - - public org.sonarqube.ws.Common.Facets getDefaultInstanceForType() { - return org.sonarqube.ws.Common.Facets.getDefaultInstance(); - } - - public org.sonarqube.ws.Common.Facets build() { - org.sonarqube.ws.Common.Facets result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Common.Facets buildPartial() { - org.sonarqube.ws.Common.Facets result = new org.sonarqube.ws.Common.Facets(this); - int from_bitField0_ = bitField0_; - if (facetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - facets_ = java.util.Collections.unmodifiableList(facets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.facets_ = facets_; - } else { - result.facets_ = facetsBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Common.Facets) { - return mergeFrom((org.sonarqube.ws.Common.Facets)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Common.Facets other) { - if (other == org.sonarqube.ws.Common.Facets.getDefaultInstance()) return this; - if (facetsBuilder_ == null) { - if (!other.facets_.isEmpty()) { - if (facets_.isEmpty()) { - facets_ = other.facets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFacetsIsMutable(); - facets_.addAll(other.facets_); - } - onChanged(); - } - } else { - if (!other.facets_.isEmpty()) { - if (facetsBuilder_.isEmpty()) { - facetsBuilder_.dispose(); - facetsBuilder_ = null; - facets_ = other.facets_; - bitField0_ = (bitField0_ & ~0x00000001); - facetsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getFacetsFieldBuilder() : null; - } else { - facetsBuilder_.addAllMessages(other.facets_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Common.Facets parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Common.Facets) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List facets_ = - java.util.Collections.emptyList(); - private void ensureFacetsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - facets_ = new java.util.ArrayList(facets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder> facetsBuilder_; - - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public java.util.List getFacetsList() { - if (facetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(facets_); - } else { - return facetsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public int getFacetsCount() { - if (facetsBuilder_ == null) { - return facets_.size(); - } else { - return facetsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public org.sonarqube.ws.Common.Facet getFacets(int index) { - if (facetsBuilder_ == null) { - return facets_.get(index); - } else { - return facetsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public Builder setFacets( - int index, org.sonarqube.ws.Common.Facet value) { - if (facetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFacetsIsMutable(); - facets_.set(index, value); - onChanged(); - } else { - facetsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public Builder setFacets( - int index, org.sonarqube.ws.Common.Facet.Builder builderForValue) { - if (facetsBuilder_ == null) { - ensureFacetsIsMutable(); - facets_.set(index, builderForValue.build()); - onChanged(); - } else { - facetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public Builder addFacets(org.sonarqube.ws.Common.Facet value) { - if (facetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFacetsIsMutable(); - facets_.add(value); - onChanged(); - } else { - facetsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public Builder addFacets( - int index, org.sonarqube.ws.Common.Facet value) { - if (facetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFacetsIsMutable(); - facets_.add(index, value); - onChanged(); - } else { - facetsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public Builder addFacets( - org.sonarqube.ws.Common.Facet.Builder builderForValue) { - if (facetsBuilder_ == null) { - ensureFacetsIsMutable(); - facets_.add(builderForValue.build()); - onChanged(); - } else { - facetsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public Builder addFacets( - int index, org.sonarqube.ws.Common.Facet.Builder builderForValue) { - if (facetsBuilder_ == null) { - ensureFacetsIsMutable(); - facets_.add(index, builderForValue.build()); - onChanged(); - } else { - facetsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public Builder addAllFacets( - java.lang.Iterable values) { - if (facetsBuilder_ == null) { - ensureFacetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, facets_); - onChanged(); - } else { - facetsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public Builder clearFacets() { - if (facetsBuilder_ == null) { - facets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - facetsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public Builder removeFacets(int index) { - if (facetsBuilder_ == null) { - ensureFacetsIsMutable(); - facets_.remove(index); - onChanged(); - } else { - facetsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public org.sonarqube.ws.Common.Facet.Builder getFacetsBuilder( - int index) { - return getFacetsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder( - int index) { - if (facetsBuilder_ == null) { - return facets_.get(index); } else { - return facetsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public java.util.List - getFacetsOrBuilderList() { - if (facetsBuilder_ != null) { - return facetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(facets_); - } - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public org.sonarqube.ws.Common.Facet.Builder addFacetsBuilder() { - return getFacetsFieldBuilder().addBuilder( - org.sonarqube.ws.Common.Facet.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public org.sonarqube.ws.Common.Facet.Builder addFacetsBuilder( - int index) { - return getFacetsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Common.Facet.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.commons.Facet facets = 1; - */ - public java.util.List - getFacetsBuilderList() { - return getFacetsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder> - getFacetsFieldBuilder() { - if (facetsBuilder_ == null) { - facetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder>( - facets_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - facets_ = null; - } - return facetsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Facets) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Facets) - private static final org.sonarqube.ws.Common.Facets DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Facets(); - } - - public static org.sonarqube.ws.Common.Facets getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Facets parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Facets(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Common.Facets getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FacetValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.FacetValue) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string val = 1; - */ - boolean hasVal(); - /** - * optional string val = 1; - */ - java.lang.String getVal(); - /** - * optional string val = 1; - */ - com.google.protobuf.ByteString - getValBytes(); - - /** - * optional int64 count = 2; - */ - boolean hasCount(); - /** - * optional int64 count = 2; - */ - long getCount(); - } - /** - * Protobuf type {@code sonarqube.ws.commons.FacetValue} - */ - public static final class FacetValue extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.FacetValue) - FacetValueOrBuilder { - // Use FacetValue.newBuilder() to construct. - private FacetValue(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FacetValue() { - val_ = ""; - count_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FacetValue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - val_ = bs; - break; - } - case 16: { - bitField0_ |= 0x00000002; - count_ = input.readInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_FacetValue_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_FacetValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.FacetValue.class, org.sonarqube.ws.Common.FacetValue.Builder.class); - } - - private int bitField0_; - public static final int VAL_FIELD_NUMBER = 1; - private volatile java.lang.Object val_; - /** - * optional string val = 1; - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string val = 1; - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } - } - /** - * optional string val = 1; - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COUNT_FIELD_NUMBER = 2; - private long count_; - /** - * optional int64 count = 2; - */ - public boolean hasCount() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int64 count = 2; - */ - public long getCount() { - return count_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getValBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt64(2, count_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getValBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, count_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Common.FacetValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.FacetValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.FacetValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.FacetValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.FacetValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.FacetValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.FacetValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Common.FacetValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.FacetValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.FacetValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Common.FacetValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.commons.FacetValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.FacetValue) - org.sonarqube.ws.Common.FacetValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_FacetValue_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_FacetValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.FacetValue.class, org.sonarqube.ws.Common.FacetValue.Builder.class); - } - - // Construct using org.sonarqube.ws.Common.FacetValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - val_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - count_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_FacetValue_descriptor; - } - - public org.sonarqube.ws.Common.FacetValue getDefaultInstanceForType() { - return org.sonarqube.ws.Common.FacetValue.getDefaultInstance(); - } - - public org.sonarqube.ws.Common.FacetValue build() { - org.sonarqube.ws.Common.FacetValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Common.FacetValue buildPartial() { - org.sonarqube.ws.Common.FacetValue result = new org.sonarqube.ws.Common.FacetValue(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.val_ = val_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.count_ = count_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Common.FacetValue) { - return mergeFrom((org.sonarqube.ws.Common.FacetValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Common.FacetValue other) { - if (other == org.sonarqube.ws.Common.FacetValue.getDefaultInstance()) return this; - if (other.hasVal()) { - bitField0_ |= 0x00000001; - val_ = other.val_; - onChanged(); - } - if (other.hasCount()) { - setCount(other.getCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Common.FacetValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Common.FacetValue) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object val_ = ""; - /** - * optional string val = 1; - */ - public boolean hasVal() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string val = 1; - */ - public java.lang.String getVal() { - java.lang.Object ref = val_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string val = 1; - */ - public com.google.protobuf.ByteString - getValBytes() { - java.lang.Object ref = val_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - val_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string val = 1; - */ - public Builder setVal( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value; - onChanged(); - return this; - } - /** - * optional string val = 1; - */ - public Builder clearVal() { - bitField0_ = (bitField0_ & ~0x00000001); - val_ = getDefaultInstance().getVal(); - onChanged(); - return this; - } - /** - * optional string val = 1; - */ - public Builder setValBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - val_ = value; - onChanged(); - return this; - } - - private long count_ ; - /** - * optional int64 count = 2; - */ - public boolean hasCount() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int64 count = 2; - */ - public long getCount() { - return count_; - } - /** - * optional int64 count = 2; - */ - public Builder setCount(long value) { - bitField0_ |= 0x00000002; - count_ = value; - onChanged(); - return this; - } - /** - * optional int64 count = 2; - */ - public Builder clearCount() { - bitField0_ = (bitField0_ & ~0x00000002); - count_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.FacetValue) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.FacetValue) - private static final org.sonarqube.ws.Common.FacetValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Common.FacetValue(); - } - - public static org.sonarqube.ws.Common.FacetValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public FacetValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new FacetValue(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Common.FacetValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RuleOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.Rule) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string key = 1; - */ - boolean hasKey(); - /** - * optional string key = 1; - */ - java.lang.String getKey(); - /** - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string lang = 3; - */ - boolean hasLang(); - /** - * optional string lang = 3; - */ - java.lang.String getLang(); - /** - * optional string lang = 3; - */ - com.google.protobuf.ByteString - getLangBytes(); - - /** - * optional .sonarqube.ws.commons.RuleStatus status = 4; - */ - boolean hasStatus(); - /** - * optional .sonarqube.ws.commons.RuleStatus status = 4; - */ - org.sonarqube.ws.Common.RuleStatus getStatus(); - - /** - * optional string langName = 5; - */ - boolean hasLangName(); - /** - * optional string langName = 5; - */ - java.lang.String getLangName(); - /** - * optional string langName = 5; - */ - com.google.protobuf.ByteString - getLangNameBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.commons.Rule} - */ - public static final class Rule extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Rule) - RuleOrBuilder { - // Use Rule.newBuilder() to construct. - private Rule(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Rule() { - key_ = ""; - name_ = ""; - lang_ = ""; - status_ = 0; - langName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Rule( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - lang_ = bs; - break; - } - case 32: { - int rawValue = input.readEnum(); - org.sonarqube.ws.Common.RuleStatus value = org.sonarqube.ws.Common.RuleStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(4, rawValue); - } else { - bitField0_ |= 0x00000008; - status_ = rawValue; - } - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - langName_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rule_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.Rule.class, org.sonarqube.ws.Common.Rule.Builder.class); - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LANG_FIELD_NUMBER = 3; - private volatile java.lang.Object lang_; - /** - * optional string lang = 3; - */ - public boolean hasLang() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string lang = 3; - */ - public java.lang.String getLang() { - java.lang.Object ref = lang_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - lang_ = s; - } - return s; - } - } - /** - * optional string lang = 3; - */ - public com.google.protobuf.ByteString - getLangBytes() { - java.lang.Object ref = lang_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - lang_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 4; - private int status_; - /** - * optional .sonarqube.ws.commons.RuleStatus status = 4; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .sonarqube.ws.commons.RuleStatus status = 4; - */ - public org.sonarqube.ws.Common.RuleStatus getStatus() { - org.sonarqube.ws.Common.RuleStatus result = org.sonarqube.ws.Common.RuleStatus.valueOf(status_); - return result == null ? org.sonarqube.ws.Common.RuleStatus.BETA : result; - } - - public static final int LANGNAME_FIELD_NUMBER = 5; - private volatile java.lang.Object langName_; - /** - * optional string langName = 5; - */ - public boolean hasLangName() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string langName = 5; - */ - public java.lang.String getLangName() { - java.lang.Object ref = langName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - langName_ = s; - } - return s; - } - } - /** - * optional string langName = 5; - */ - public com.google.protobuf.ByteString - getLangNameBytes() { - java.lang.Object ref = langName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - langName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getLangBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeEnum(4, status_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getLangNameBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getLangBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, status_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getLangNameBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Common.Rule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.Rule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.Rule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.Rule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.Rule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.Rule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.Rule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Common.Rule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.Rule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.Rule parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Common.Rule prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.commons.Rule} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.Rule) - org.sonarqube.ws.Common.RuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rule_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.Rule.class, org.sonarqube.ws.Common.Rule.Builder.class); - } - - // Construct using org.sonarqube.ws.Common.Rule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - lang_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - status_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - langName_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rule_descriptor; - } - - public org.sonarqube.ws.Common.Rule getDefaultInstanceForType() { - return org.sonarqube.ws.Common.Rule.getDefaultInstance(); - } - - public org.sonarqube.ws.Common.Rule build() { - org.sonarqube.ws.Common.Rule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Common.Rule buildPartial() { - org.sonarqube.ws.Common.Rule result = new org.sonarqube.ws.Common.Rule(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.lang_ = lang_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.status_ = status_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.langName_ = langName_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Common.Rule) { - return mergeFrom((org.sonarqube.ws.Common.Rule)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Common.Rule other) { - if (other == org.sonarqube.ws.Common.Rule.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasLang()) { - bitField0_ |= 0x00000004; - lang_ = other.lang_; - onChanged(); - } - if (other.hasStatus()) { - setStatus(other.getStatus()); - } - if (other.hasLangName()) { - bitField0_ |= 0x00000010; - langName_ = other.langName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Common.Rule parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Common.Rule) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object lang_ = ""; - /** - * optional string lang = 3; - */ - public boolean hasLang() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string lang = 3; - */ - public java.lang.String getLang() { - java.lang.Object ref = lang_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - lang_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string lang = 3; - */ - public com.google.protobuf.ByteString - getLangBytes() { - java.lang.Object ref = lang_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - lang_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string lang = 3; - */ - public Builder setLang( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - lang_ = value; - onChanged(); - return this; - } - /** - * optional string lang = 3; - */ - public Builder clearLang() { - bitField0_ = (bitField0_ & ~0x00000004); - lang_ = getDefaultInstance().getLang(); - onChanged(); - return this; - } - /** - * optional string lang = 3; - */ - public Builder setLangBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - lang_ = value; - onChanged(); - return this; - } - - private int status_ = 0; - /** - * optional .sonarqube.ws.commons.RuleStatus status = 4; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .sonarqube.ws.commons.RuleStatus status = 4; - */ - public org.sonarqube.ws.Common.RuleStatus getStatus() { - org.sonarqube.ws.Common.RuleStatus result = org.sonarqube.ws.Common.RuleStatus.valueOf(status_); - return result == null ? org.sonarqube.ws.Common.RuleStatus.BETA : result; - } - /** - * optional .sonarqube.ws.commons.RuleStatus status = 4; - */ - public Builder setStatus(org.sonarqube.ws.Common.RuleStatus value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .sonarqube.ws.commons.RuleStatus status = 4; - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000008); - status_ = 0; - onChanged(); - return this; - } - - private java.lang.Object langName_ = ""; - /** - * optional string langName = 5; - */ - public boolean hasLangName() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string langName = 5; - */ - public java.lang.String getLangName() { - java.lang.Object ref = langName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - langName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string langName = 5; - */ - public com.google.protobuf.ByteString - getLangNameBytes() { - java.lang.Object ref = langName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - langName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string langName = 5; - */ - public Builder setLangName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - langName_ = value; - onChanged(); - return this; - } - /** - * optional string langName = 5; - */ - public Builder clearLangName() { - bitField0_ = (bitField0_ & ~0x00000010); - langName_ = getDefaultInstance().getLangName(); - onChanged(); - return this; - } - /** - * optional string langName = 5; - */ - public Builder setLangNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - langName_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Rule) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Rule) - private static final org.sonarqube.ws.Common.Rule DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Rule(); - } - - public static org.sonarqube.ws.Common.Rule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Rule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Rule(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Common.Rule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RulesOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.Rules) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - java.util.List - getRulesList(); - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - org.sonarqube.ws.Common.Rule getRules(int index); - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - int getRulesCount(); - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - java.util.List - getRulesOrBuilderList(); - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.commons.Rules} - */ - public static final class Rules extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Rules) - RulesOrBuilder { - // Use Rules.newBuilder() to construct. - private Rules(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Rules() { - rules_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Rules( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - rules_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - rules_.add(input.readMessage(org.sonarqube.ws.Common.Rule.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - rules_ = java.util.Collections.unmodifiableList(rules_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rules_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.Rules.class, org.sonarqube.ws.Common.Rules.Builder.class); - } - - public static final int RULES_FIELD_NUMBER = 1; - private java.util.List rules_; - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public java.util.List getRulesList() { - return rules_; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public java.util.List - getRulesOrBuilderList() { - return rules_; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public int getRulesCount() { - return rules_.size(); - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public org.sonarqube.ws.Common.Rule getRules(int index) { - return rules_.get(index); - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( - int index) { - return rules_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < rules_.size(); i++) { - output.writeMessage(1, rules_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < rules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rules_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Common.Rules parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.Rules parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.Rules parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.Rules parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.Rules parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.Rules parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.Rules parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Common.Rules parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.Rules parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.Rules parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Common.Rules prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.commons.Rules} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.Rules) - org.sonarqube.ws.Common.RulesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rules_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rules_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.Rules.class, org.sonarqube.ws.Common.Rules.Builder.class); - } - - // Construct using org.sonarqube.ws.Common.Rules.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRulesFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (rulesBuilder_ == null) { - rules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - rulesBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rules_descriptor; - } - - public org.sonarqube.ws.Common.Rules getDefaultInstanceForType() { - return org.sonarqube.ws.Common.Rules.getDefaultInstance(); - } - - public org.sonarqube.ws.Common.Rules build() { - org.sonarqube.ws.Common.Rules result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Common.Rules buildPartial() { - org.sonarqube.ws.Common.Rules result = new org.sonarqube.ws.Common.Rules(this); - int from_bitField0_ = bitField0_; - if (rulesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - rules_ = java.util.Collections.unmodifiableList(rules_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.rules_ = rules_; - } else { - result.rules_ = rulesBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Common.Rules) { - return mergeFrom((org.sonarqube.ws.Common.Rules)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Common.Rules other) { - if (other == org.sonarqube.ws.Common.Rules.getDefaultInstance()) return this; - if (rulesBuilder_ == null) { - if (!other.rules_.isEmpty()) { - if (rules_.isEmpty()) { - rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRulesIsMutable(); - rules_.addAll(other.rules_); - } - onChanged(); - } - } else { - if (!other.rules_.isEmpty()) { - if (rulesBuilder_.isEmpty()) { - rulesBuilder_.dispose(); - rulesBuilder_ = null; - rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000001); - rulesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getRulesFieldBuilder() : null; - } else { - rulesBuilder_.addAllMessages(other.rules_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Common.Rules parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Common.Rules) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List rules_ = - java.util.Collections.emptyList(); - private void ensureRulesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - rules_ = new java.util.ArrayList(rules_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder> rulesBuilder_; - - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public java.util.List getRulesList() { - if (rulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(rules_); - } else { - return rulesBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public int getRulesCount() { - if (rulesBuilder_ == null) { - return rules_.size(); - } else { - return rulesBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public org.sonarqube.ws.Common.Rule getRules(int index) { - if (rulesBuilder_ == null) { - return rules_.get(index); - } else { - return rulesBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public Builder setRules( - int index, org.sonarqube.ws.Common.Rule value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.set(index, value); - onChanged(); - } else { - rulesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public Builder setRules( - int index, org.sonarqube.ws.Common.Rule.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.set(index, builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public Builder addRules(org.sonarqube.ws.Common.Rule value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.add(value); - onChanged(); - } else { - rulesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public Builder addRules( - int index, org.sonarqube.ws.Common.Rule value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.add(index, value); - onChanged(); - } else { - rulesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public Builder addRules( - org.sonarqube.ws.Common.Rule.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public Builder addRules( - int index, org.sonarqube.ws.Common.Rule.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(index, builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public Builder addAllRules( - java.lang.Iterable values) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rules_); - onChanged(); - } else { - rulesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public Builder clearRules() { - if (rulesBuilder_ == null) { - rules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - rulesBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public Builder removeRules(int index) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.remove(index); - onChanged(); - } else { - rulesBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public org.sonarqube.ws.Common.Rule.Builder getRulesBuilder( - int index) { - return getRulesFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( - int index) { - if (rulesBuilder_ == null) { - return rules_.get(index); } else { - return rulesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public java.util.List - getRulesOrBuilderList() { - if (rulesBuilder_ != null) { - return rulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rules_); - } - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public org.sonarqube.ws.Common.Rule.Builder addRulesBuilder() { - return getRulesFieldBuilder().addBuilder( - org.sonarqube.ws.Common.Rule.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public org.sonarqube.ws.Common.Rule.Builder addRulesBuilder( - int index) { - return getRulesFieldBuilder().addBuilder( - index, org.sonarqube.ws.Common.Rule.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 1; - */ - public java.util.List - getRulesBuilderList() { - return getRulesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder> - getRulesFieldBuilder() { - if (rulesBuilder_ == null) { - rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder>( - rules_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - rules_ = null; - } - return rulesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Rules) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Rules) - private static final org.sonarqube.ws.Common.Rules DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Rules(); - } - - public static org.sonarqube.ws.Common.Rules getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Rules parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Rules(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Common.Rules getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UserOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.User) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string login = 1; - */ - boolean hasLogin(); - /** - * optional string login = 1; - */ - java.lang.String getLogin(); - /** - * optional string login = 1; - */ - com.google.protobuf.ByteString - getLoginBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string email = 3; - */ - boolean hasEmail(); - /** - * optional string email = 3; - */ - java.lang.String getEmail(); - /** - * optional string email = 3; - */ - com.google.protobuf.ByteString - getEmailBytes(); - - /** - * optional bool active = 4; - */ - boolean hasActive(); - /** - * optional bool active = 4; - */ - boolean getActive(); - } - /** - * Protobuf type {@code sonarqube.ws.commons.User} - */ - public static final class User extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.User) - UserOrBuilder { - // Use User.newBuilder() to construct. - private User(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private User() { - login_ = ""; - name_ = ""; - email_ = ""; - active_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private User( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - login_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - email_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - active_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_User_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_User_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.User.class, org.sonarqube.ws.Common.User.Builder.class); - } - - private int bitField0_; - public static final int LOGIN_FIELD_NUMBER = 1; - private volatile java.lang.Object login_; - /** - * optional string login = 1; - */ - public boolean hasLogin() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string login = 1; - */ - public java.lang.String getLogin() { - java.lang.Object ref = login_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - login_ = s; - } - return s; - } - } - /** - * optional string login = 1; - */ - public com.google.protobuf.ByteString - getLoginBytes() { - java.lang.Object ref = login_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - login_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EMAIL_FIELD_NUMBER = 3; - private volatile java.lang.Object email_; - /** - * optional string email = 3; - */ - public boolean hasEmail() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string email = 3; - */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - email_ = s; - } - return s; - } - } - /** - * optional string email = 3; - */ - public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACTIVE_FIELD_NUMBER = 4; - private boolean active_; - /** - * optional bool active = 4; - */ - public boolean hasActive() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool active = 4; - */ - public boolean getActive() { - return active_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getLoginBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getEmailBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBool(4, active_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getLoginBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getEmailBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, active_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Common.User parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.User parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.User parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.User parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.User parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.User parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.User parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Common.User parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.User parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.User parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Common.User prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.commons.User} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.User) - org.sonarqube.ws.Common.UserOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_User_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_User_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.User.class, org.sonarqube.ws.Common.User.Builder.class); - } - - // Construct using org.sonarqube.ws.Common.User.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - login_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - email_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - active_ = false; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_User_descriptor; - } - - public org.sonarqube.ws.Common.User getDefaultInstanceForType() { - return org.sonarqube.ws.Common.User.getDefaultInstance(); - } - - public org.sonarqube.ws.Common.User build() { - org.sonarqube.ws.Common.User result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Common.User buildPartial() { - org.sonarqube.ws.Common.User result = new org.sonarqube.ws.Common.User(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.login_ = login_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.email_ = email_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.active_ = active_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Common.User) { - return mergeFrom((org.sonarqube.ws.Common.User)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Common.User other) { - if (other == org.sonarqube.ws.Common.User.getDefaultInstance()) return this; - if (other.hasLogin()) { - bitField0_ |= 0x00000001; - login_ = other.login_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasEmail()) { - bitField0_ |= 0x00000004; - email_ = other.email_; - onChanged(); - } - if (other.hasActive()) { - setActive(other.getActive()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Common.User parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Common.User) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object login_ = ""; - /** - * optional string login = 1; - */ - public boolean hasLogin() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string login = 1; - */ - public java.lang.String getLogin() { - java.lang.Object ref = login_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - login_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string login = 1; - */ - public com.google.protobuf.ByteString - getLoginBytes() { - java.lang.Object ref = login_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - login_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string login = 1; - */ - public Builder setLogin( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - login_ = value; - onChanged(); - return this; - } - /** - * optional string login = 1; - */ - public Builder clearLogin() { - bitField0_ = (bitField0_ & ~0x00000001); - login_ = getDefaultInstance().getLogin(); - onChanged(); - return this; - } - /** - * optional string login = 1; - */ - public Builder setLoginBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - login_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object email_ = ""; - /** - * optional string email = 3; - */ - public boolean hasEmail() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string email = 3; - */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - email_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string email = 3; - */ - public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string email = 3; - */ - public Builder setEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - email_ = value; - onChanged(); - return this; - } - /** - * optional string email = 3; - */ - public Builder clearEmail() { - bitField0_ = (bitField0_ & ~0x00000004); - email_ = getDefaultInstance().getEmail(); - onChanged(); - return this; - } - /** - * optional string email = 3; - */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - email_ = value; - onChanged(); - return this; - } - - private boolean active_ ; - /** - * optional bool active = 4; - */ - public boolean hasActive() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool active = 4; - */ - public boolean getActive() { - return active_; - } - /** - * optional bool active = 4; - */ - public Builder setActive(boolean value) { - bitField0_ |= 0x00000008; - active_ = value; - onChanged(); - return this; - } - /** - * optional bool active = 4; - */ - public Builder clearActive() { - bitField0_ = (bitField0_ & ~0x00000008); - active_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.User) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.User) - private static final org.sonarqube.ws.Common.User DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Common.User(); - } - - public static org.sonarqube.ws.Common.User getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public User parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new User(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Common.User getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UsersOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.Users) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - java.util.List - getUsersList(); - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - org.sonarqube.ws.Common.User getUsers(int index); - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - int getUsersCount(); - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - java.util.List - getUsersOrBuilderList(); - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.commons.Users} - */ - public static final class Users extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Users) - UsersOrBuilder { - // Use Users.newBuilder() to construct. - private Users(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Users() { - users_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Users( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - users_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - users_.add(input.readMessage(org.sonarqube.ws.Common.User.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - users_ = java.util.Collections.unmodifiableList(users_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Users_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Users_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.Users.class, org.sonarqube.ws.Common.Users.Builder.class); - } - - public static final int USERS_FIELD_NUMBER = 1; - private java.util.List users_; - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public java.util.List getUsersList() { - return users_; - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public java.util.List - getUsersOrBuilderList() { - return users_; - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public int getUsersCount() { - return users_.size(); - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public org.sonarqube.ws.Common.User getUsers(int index) { - return users_.get(index); - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( - int index) { - return users_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < users_.size(); i++) { - output.writeMessage(1, users_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < users_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, users_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Common.Users parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.Users parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.Users parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.Users parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.Users parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.Users parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.Users parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Common.Users parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.Users parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.Users parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Common.Users prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.commons.Users} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.Users) - org.sonarqube.ws.Common.UsersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Users_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Users_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.Users.class, org.sonarqube.ws.Common.Users.Builder.class); - } - - // Construct using org.sonarqube.ws.Common.Users.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getUsersFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (usersBuilder_ == null) { - users_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - usersBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Users_descriptor; - } - - public org.sonarqube.ws.Common.Users getDefaultInstanceForType() { - return org.sonarqube.ws.Common.Users.getDefaultInstance(); - } - - public org.sonarqube.ws.Common.Users build() { - org.sonarqube.ws.Common.Users result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Common.Users buildPartial() { - org.sonarqube.ws.Common.Users result = new org.sonarqube.ws.Common.Users(this); - int from_bitField0_ = bitField0_; - if (usersBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - users_ = java.util.Collections.unmodifiableList(users_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.users_ = users_; - } else { - result.users_ = usersBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Common.Users) { - return mergeFrom((org.sonarqube.ws.Common.Users)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Common.Users other) { - if (other == org.sonarqube.ws.Common.Users.getDefaultInstance()) return this; - if (usersBuilder_ == null) { - if (!other.users_.isEmpty()) { - if (users_.isEmpty()) { - users_ = other.users_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUsersIsMutable(); - users_.addAll(other.users_); - } - onChanged(); - } - } else { - if (!other.users_.isEmpty()) { - if (usersBuilder_.isEmpty()) { - usersBuilder_.dispose(); - usersBuilder_ = null; - users_ = other.users_; - bitField0_ = (bitField0_ & ~0x00000001); - usersBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getUsersFieldBuilder() : null; - } else { - usersBuilder_.addAllMessages(other.users_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Common.Users parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Common.Users) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List users_ = - java.util.Collections.emptyList(); - private void ensureUsersIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - users_ = new java.util.ArrayList(users_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder> usersBuilder_; - - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public java.util.List getUsersList() { - if (usersBuilder_ == null) { - return java.util.Collections.unmodifiableList(users_); - } else { - return usersBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public int getUsersCount() { - if (usersBuilder_ == null) { - return users_.size(); - } else { - return usersBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public org.sonarqube.ws.Common.User getUsers(int index) { - if (usersBuilder_ == null) { - return users_.get(index); - } else { - return usersBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public Builder setUsers( - int index, org.sonarqube.ws.Common.User value) { - if (usersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUsersIsMutable(); - users_.set(index, value); - onChanged(); - } else { - usersBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public Builder setUsers( - int index, org.sonarqube.ws.Common.User.Builder builderForValue) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.set(index, builderForValue.build()); - onChanged(); - } else { - usersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public Builder addUsers(org.sonarqube.ws.Common.User value) { - if (usersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUsersIsMutable(); - users_.add(value); - onChanged(); - } else { - usersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public Builder addUsers( - int index, org.sonarqube.ws.Common.User value) { - if (usersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUsersIsMutable(); - users_.add(index, value); - onChanged(); - } else { - usersBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public Builder addUsers( - org.sonarqube.ws.Common.User.Builder builderForValue) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.add(builderForValue.build()); - onChanged(); - } else { - usersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public Builder addUsers( - int index, org.sonarqube.ws.Common.User.Builder builderForValue) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.add(index, builderForValue.build()); - onChanged(); - } else { - usersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public Builder addAllUsers( - java.lang.Iterable values) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, users_); - onChanged(); - } else { - usersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public Builder clearUsers() { - if (usersBuilder_ == null) { - users_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - usersBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public Builder removeUsers(int index) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.remove(index); - onChanged(); - } else { - usersBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public org.sonarqube.ws.Common.User.Builder getUsersBuilder( - int index) { - return getUsersFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( - int index) { - if (usersBuilder_ == null) { - return users_.get(index); } else { - return usersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public java.util.List - getUsersOrBuilderList() { - if (usersBuilder_ != null) { - return usersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(users_); - } - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public org.sonarqube.ws.Common.User.Builder addUsersBuilder() { - return getUsersFieldBuilder().addBuilder( - org.sonarqube.ws.Common.User.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public org.sonarqube.ws.Common.User.Builder addUsersBuilder( - int index) { - return getUsersFieldBuilder().addBuilder( - index, org.sonarqube.ws.Common.User.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.commons.User users = 1; - */ - public java.util.List - getUsersBuilderList() { - return getUsersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder> - getUsersFieldBuilder() { - if (usersBuilder_ == null) { - usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder>( - users_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - users_ = null; - } - return usersBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Users) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Users) - private static final org.sonarqube.ws.Common.Users DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Users(); - } - - public static org.sonarqube.ws.Common.Users getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Users parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Users(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Common.Users getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TextRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.TextRange) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int32 startLine = 1; - * - *
-     * Start line. Should never be absent
-     * 
- */ - boolean hasStartLine(); - /** - * optional int32 startLine = 1; - * - *
-     * Start line. Should never be absent
-     * 
- */ - int getStartLine(); - - /** - * optional int32 endLine = 2; - * - *
-     * End line (inclusive). Absent means it is same as start line
-     * 
- */ - boolean hasEndLine(); - /** - * optional int32 endLine = 2; - * - *
-     * End line (inclusive). Absent means it is same as start line
-     * 
- */ - int getEndLine(); - - /** - * optional int32 startOffset = 3; - * - *
-     * If absent it means range starts at the first offset of start line
-     * 
- */ - boolean hasStartOffset(); - /** - * optional int32 startOffset = 3; - * - *
-     * If absent it means range starts at the first offset of start line
-     * 
- */ - int getStartOffset(); - - /** - * optional int32 endOffset = 4; - * - *
-     * If absent it means range ends at the last offset of end line
-     * 
- */ - boolean hasEndOffset(); - /** - * optional int32 endOffset = 4; - * - *
-     * If absent it means range ends at the last offset of end line
-     * 
- */ - int getEndOffset(); - } - /** - * Protobuf type {@code sonarqube.ws.commons.TextRange} - * - *
-   * Lines start at 1 and line offsets start at 0
-   * 
- */ - public static final class TextRange extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.TextRange) - TextRangeOrBuilder { - // Use TextRange.newBuilder() to construct. - private TextRange(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TextRange() { - startLine_ = 0; - endLine_ = 0; - startOffset_ = 0; - endOffset_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TextRange( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - startLine_ = input.readInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - endLine_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - startOffset_ = input.readInt32(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - endOffset_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_TextRange_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_TextRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.TextRange.class, org.sonarqube.ws.Common.TextRange.Builder.class); - } - - private int bitField0_; - public static final int STARTLINE_FIELD_NUMBER = 1; - private int startLine_; - /** - * optional int32 startLine = 1; - * - *
-     * Start line. Should never be absent
-     * 
- */ - public boolean hasStartLine() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 startLine = 1; - * - *
-     * Start line. Should never be absent
-     * 
- */ - public int getStartLine() { - return startLine_; - } - - public static final int ENDLINE_FIELD_NUMBER = 2; - private int endLine_; - /** - * optional int32 endLine = 2; - * - *
-     * End line (inclusive). Absent means it is same as start line
-     * 
- */ - public boolean hasEndLine() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 endLine = 2; - * - *
-     * End line (inclusive). Absent means it is same as start line
-     * 
- */ - public int getEndLine() { - return endLine_; - } - - public static final int STARTOFFSET_FIELD_NUMBER = 3; - private int startOffset_; - /** - * optional int32 startOffset = 3; - * - *
-     * If absent it means range starts at the first offset of start line
-     * 
- */ - public boolean hasStartOffset() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 startOffset = 3; - * - *
-     * If absent it means range starts at the first offset of start line
-     * 
- */ - public int getStartOffset() { - return startOffset_; - } - - public static final int ENDOFFSET_FIELD_NUMBER = 4; - private int endOffset_; - /** - * optional int32 endOffset = 4; - * - *
-     * If absent it means range ends at the last offset of end line
-     * 
- */ - public boolean hasEndOffset() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 endOffset = 4; - * - *
-     * If absent it means range ends at the last offset of end line
-     * 
- */ - public int getEndOffset() { - return endOffset_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, startLine_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, endLine_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, startOffset_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt32(4, endOffset_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, startLine_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, endLine_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, startOffset_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, endOffset_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Common.TextRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.TextRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.TextRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Common.TextRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Common.TextRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.TextRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.TextRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Common.TextRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Common.TextRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Common.TextRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Common.TextRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.commons.TextRange} - * - *
-     * Lines start at 1 and line offsets start at 0
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.TextRange) - org.sonarqube.ws.Common.TextRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_TextRange_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_TextRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Common.TextRange.class, org.sonarqube.ws.Common.TextRange.Builder.class); - } - - // Construct using org.sonarqube.ws.Common.TextRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - startLine_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - endLine_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - startOffset_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - endOffset_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_TextRange_descriptor; - } - - public org.sonarqube.ws.Common.TextRange getDefaultInstanceForType() { - return org.sonarqube.ws.Common.TextRange.getDefaultInstance(); - } - - public org.sonarqube.ws.Common.TextRange build() { - org.sonarqube.ws.Common.TextRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Common.TextRange buildPartial() { - org.sonarqube.ws.Common.TextRange result = new org.sonarqube.ws.Common.TextRange(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.startLine_ = startLine_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.endLine_ = endLine_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.startOffset_ = startOffset_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.endOffset_ = endOffset_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Common.TextRange) { - return mergeFrom((org.sonarqube.ws.Common.TextRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Common.TextRange other) { - if (other == org.sonarqube.ws.Common.TextRange.getDefaultInstance()) return this; - if (other.hasStartLine()) { - setStartLine(other.getStartLine()); - } - if (other.hasEndLine()) { - setEndLine(other.getEndLine()); - } - if (other.hasStartOffset()) { - setStartOffset(other.getStartOffset()); - } - if (other.hasEndOffset()) { - setEndOffset(other.getEndOffset()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Common.TextRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Common.TextRange) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int startLine_ ; - /** - * optional int32 startLine = 1; - * - *
-       * Start line. Should never be absent
-       * 
- */ - public boolean hasStartLine() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int32 startLine = 1; - * - *
-       * Start line. Should never be absent
-       * 
- */ - public int getStartLine() { - return startLine_; - } - /** - * optional int32 startLine = 1; - * - *
-       * Start line. Should never be absent
-       * 
- */ - public Builder setStartLine(int value) { - bitField0_ |= 0x00000001; - startLine_ = value; - onChanged(); - return this; - } - /** - * optional int32 startLine = 1; - * - *
-       * Start line. Should never be absent
-       * 
- */ - public Builder clearStartLine() { - bitField0_ = (bitField0_ & ~0x00000001); - startLine_ = 0; - onChanged(); - return this; - } - - private int endLine_ ; - /** - * optional int32 endLine = 2; - * - *
-       * End line (inclusive). Absent means it is same as start line
-       * 
- */ - public boolean hasEndLine() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 endLine = 2; - * - *
-       * End line (inclusive). Absent means it is same as start line
-       * 
- */ - public int getEndLine() { - return endLine_; - } - /** - * optional int32 endLine = 2; - * - *
-       * End line (inclusive). Absent means it is same as start line
-       * 
- */ - public Builder setEndLine(int value) { - bitField0_ |= 0x00000002; - endLine_ = value; - onChanged(); - return this; - } - /** - * optional int32 endLine = 2; - * - *
-       * End line (inclusive). Absent means it is same as start line
-       * 
- */ - public Builder clearEndLine() { - bitField0_ = (bitField0_ & ~0x00000002); - endLine_ = 0; - onChanged(); - return this; - } - - private int startOffset_ ; - /** - * optional int32 startOffset = 3; - * - *
-       * If absent it means range starts at the first offset of start line
-       * 
- */ - public boolean hasStartOffset() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 startOffset = 3; - * - *
-       * If absent it means range starts at the first offset of start line
-       * 
- */ - public int getStartOffset() { - return startOffset_; - } - /** - * optional int32 startOffset = 3; - * - *
-       * If absent it means range starts at the first offset of start line
-       * 
- */ - public Builder setStartOffset(int value) { - bitField0_ |= 0x00000004; - startOffset_ = value; - onChanged(); - return this; - } - /** - * optional int32 startOffset = 3; - * - *
-       * If absent it means range starts at the first offset of start line
-       * 
- */ - public Builder clearStartOffset() { - bitField0_ = (bitField0_ & ~0x00000004); - startOffset_ = 0; - onChanged(); - return this; - } - - private int endOffset_ ; - /** - * optional int32 endOffset = 4; - * - *
-       * If absent it means range ends at the last offset of end line
-       * 
- */ - public boolean hasEndOffset() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 endOffset = 4; - * - *
-       * If absent it means range ends at the last offset of end line
-       * 
- */ - public int getEndOffset() { - return endOffset_; - } - /** - * optional int32 endOffset = 4; - * - *
-       * If absent it means range ends at the last offset of end line
-       * 
- */ - public Builder setEndOffset(int value) { - bitField0_ |= 0x00000008; - endOffset_ = value; - onChanged(); - return this; - } - /** - * optional int32 endOffset = 4; - * - *
-       * If absent it means range ends at the last offset of end line
-       * 
- */ - public Builder clearEndOffset() { - bitField0_ = (bitField0_ & ~0x00000008); - endOffset_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.TextRange) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.TextRange) - private static final org.sonarqube.ws.Common.TextRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Common.TextRange(); - } - - public static org.sonarqube.ws.Common.TextRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TextRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new TextRange(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Common.TextRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_commons_Paging_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_commons_Paging_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_commons_Facet_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_commons_Facet_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_commons_Facets_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_commons_Facets_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_commons_FacetValue_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_commons_FacetValue_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_commons_Rule_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_commons_Rule_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_commons_Rules_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_commons_Rules_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_commons_User_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_commons_User_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_commons_Users_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_commons_Users_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_commons_TextRange_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_commons_TextRange_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\020ws-commons.proto\022\024sonarqube.ws.commons" + - "\"<\n\006Paging\022\021\n\tpageIndex\030\001 \001(\005\022\020\n\010pageSiz" + - "e\030\002 \001(\005\022\r\n\005total\030\003 \001(\005\"K\n\005Facet\022\020\n\010prope" + - "rty\030\001 \001(\t\0220\n\006values\030\002 \003(\0132 .sonarqube.ws" + - ".commons.FacetValue\"5\n\006Facets\022+\n\006facets\030" + - "\001 \003(\0132\033.sonarqube.ws.commons.Facet\"(\n\nFa" + - "cetValue\022\013\n\003val\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\"s\n\004" + - "Rule\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\014\n\004lang\030" + - "\003 \001(\t\0220\n\006status\030\004 \001(\0162 .sonarqube.ws.com" + - "mons.RuleStatus\022\020\n\010langName\030\005 \001(\t\"2\n\005Rul", - "es\022)\n\005rules\030\001 \003(\0132\032.sonarqube.ws.commons" + - ".Rule\"B\n\004User\022\r\n\005login\030\001 \001(\t\022\014\n\004name\030\002 \001" + - "(\t\022\r\n\005email\030\003 \001(\t\022\016\n\006active\030\004 \001(\010\"2\n\005Use" + - "rs\022)\n\005users\030\001 \003(\0132\032.sonarqube.ws.commons" + - ".User\"W\n\tTextRange\022\021\n\tstartLine\030\001 \001(\005\022\017\n" + - "\007endLine\030\002 \001(\005\022\023\n\013startOffset\030\003 \001(\005\022\021\n\te" + - "ndOffset\030\004 \001(\005*E\n\010Severity\022\010\n\004INFO\020\000\022\t\n\005" + - "MINOR\020\001\022\t\n\005MAJOR\020\002\022\014\n\010CRITICAL\020\003\022\013\n\007BLOC" + - "KER\020\004*>\n\nRuleStatus\022\010\n\004BETA\020\000\022\016\n\nDEPRECA" + - "TED\020\001\022\t\n\005READY\020\002\022\013\n\007REMOVED\020\003B\034\n\020org.son", - "arqube.wsB\006CommonH\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_sonarqube_ws_commons_Paging_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_sonarqube_ws_commons_Paging_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_commons_Paging_descriptor, - new java.lang.String[] { "PageIndex", "PageSize", "Total", }); - internal_static_sonarqube_ws_commons_Facet_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_sonarqube_ws_commons_Facet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_commons_Facet_descriptor, - new java.lang.String[] { "Property", "Values", }); - internal_static_sonarqube_ws_commons_Facets_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_sonarqube_ws_commons_Facets_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_commons_Facets_descriptor, - new java.lang.String[] { "Facets", }); - internal_static_sonarqube_ws_commons_FacetValue_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_sonarqube_ws_commons_FacetValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_commons_FacetValue_descriptor, - new java.lang.String[] { "Val", "Count", }); - internal_static_sonarqube_ws_commons_Rule_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_sonarqube_ws_commons_Rule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_commons_Rule_descriptor, - new java.lang.String[] { "Key", "Name", "Lang", "Status", "LangName", }); - internal_static_sonarqube_ws_commons_Rules_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_sonarqube_ws_commons_Rules_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_commons_Rules_descriptor, - new java.lang.String[] { "Rules", }); - internal_static_sonarqube_ws_commons_User_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_sonarqube_ws_commons_User_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_commons_User_descriptor, - new java.lang.String[] { "Login", "Name", "Email", "Active", }); - internal_static_sonarqube_ws_commons_Users_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_sonarqube_ws_commons_Users_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_commons_Users_descriptor, - new java.lang.String[] { "Users", }); - internal_static_sonarqube_ws_commons_TextRange_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_sonarqube_ws_commons_TextRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_commons_TextRange_descriptor, - new java.lang.String[] { "StartLine", "EndLine", "StartOffset", "EndOffset", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Issues.java b/sonar-ws/src/main/gen-java/org/sonarqube/ws/Issues.java deleted file mode 100644 index 8583d8ef271..00000000000 --- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Issues.java +++ /dev/null @@ -1,19017 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ws-issues.proto - -package org.sonarqube.ws; - -public final class Issues { - private Issues() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface SearchOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Search) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int64 total = 1; - */ - boolean hasTotal(); - /** - * optional int64 total = 1; - */ - long getTotal(); - - /** - * optional int64 p = 2; - */ - boolean hasP(); - /** - * optional int64 p = 2; - */ - long getP(); - - /** - * optional int32 ps = 3; - */ - boolean hasPs(); - /** - * optional int32 ps = 3; - */ - int getPs(); - - /** - * optional .sonarqube.ws.commons.Paging paging = 4; - */ - boolean hasPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 4; - */ - org.sonarqube.ws.Common.Paging getPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 4; - */ - org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder(); - - /** - * optional int64 debtTotal = 5; - * - *
-     * Total amount of debt, only when the facet "total" is enabled
-     * 
- */ - boolean hasDebtTotal(); - /** - * optional int64 debtTotal = 5; - * - *
-     * Total amount of debt, only when the facet "total" is enabled
-     * 
- */ - long getDebtTotal(); - - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - java.util.List - getIssuesList(); - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - org.sonarqube.ws.Issues.Issue getIssues(int index); - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - int getIssuesCount(); - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - java.util.List - getIssuesOrBuilderList(); - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - org.sonarqube.ws.Issues.IssueOrBuilder getIssuesOrBuilder( - int index); - - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - java.util.List - getComponentsList(); - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - org.sonarqube.ws.Issues.Component getComponents(int index); - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - int getComponentsCount(); - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - java.util.List - getComponentsOrBuilderList(); - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - org.sonarqube.ws.Issues.ComponentOrBuilder getComponentsOrBuilder( - int index); - - /** - * optional .sonarqube.ws.commons.Rules rules = 8; - */ - boolean hasRules(); - /** - * optional .sonarqube.ws.commons.Rules rules = 8; - */ - org.sonarqube.ws.Common.Rules getRules(); - /** - * optional .sonarqube.ws.commons.Rules rules = 8; - */ - org.sonarqube.ws.Common.RulesOrBuilder getRulesOrBuilder(); - - /** - * optional .sonarqube.ws.commons.Users users = 9; - */ - boolean hasUsers(); - /** - * optional .sonarqube.ws.commons.Users users = 9; - */ - org.sonarqube.ws.Common.Users getUsers(); - /** - * optional .sonarqube.ws.commons.Users users = 9; - */ - org.sonarqube.ws.Common.UsersOrBuilder getUsersOrBuilder(); - - /** - * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; - */ - boolean hasActionPlans(); - /** - * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; - */ - org.sonarqube.ws.Issues.ActionPlans getActionPlans(); - /** - * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; - */ - org.sonarqube.ws.Issues.ActionPlansOrBuilder getActionPlansOrBuilder(); - - /** - * optional .sonarqube.ws.issues.Languages languages = 11; - */ - boolean hasLanguages(); - /** - * optional .sonarqube.ws.issues.Languages languages = 11; - */ - org.sonarqube.ws.Issues.Languages getLanguages(); - /** - * optional .sonarqube.ws.issues.Languages languages = 11; - */ - org.sonarqube.ws.Issues.LanguagesOrBuilder getLanguagesOrBuilder(); - - /** - * optional .sonarqube.ws.commons.Facets facets = 12; - */ - boolean hasFacets(); - /** - * optional .sonarqube.ws.commons.Facets facets = 12; - */ - org.sonarqube.ws.Common.Facets getFacets(); - /** - * optional .sonarqube.ws.commons.Facets facets = 12; - */ - org.sonarqube.ws.Common.FacetsOrBuilder getFacetsOrBuilder(); - } - /** - * Protobuf type {@code sonarqube.ws.issues.Search} - * - *
-   * Response of GET api/issues/search
-   * 
- */ - public static final class Search extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Search) - SearchOrBuilder { - // Use Search.newBuilder() to construct. - private Search(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Search() { - total_ = 0L; - p_ = 0L; - ps_ = 0; - debtTotal_ = 0L; - issues_ = java.util.Collections.emptyList(); - components_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Search( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - total_ = input.readInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - p_ = input.readInt64(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - ps_ = input.readInt32(); - break; - } - case 34: { - org.sonarqube.ws.Common.Paging.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = paging_.toBuilder(); - } - paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(paging_); - paging_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 40: { - bitField0_ |= 0x00000010; - debtTotal_ = input.readInt64(); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - issues_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - issues_.add(input.readMessage(org.sonarqube.ws.Issues.Issue.PARSER, extensionRegistry)); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - components_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - components_.add(input.readMessage(org.sonarqube.ws.Issues.Component.PARSER, extensionRegistry)); - break; - } - case 66: { - org.sonarqube.ws.Common.Rules.Builder subBuilder = null; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - subBuilder = rules_.toBuilder(); - } - rules_ = input.readMessage(org.sonarqube.ws.Common.Rules.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rules_); - rules_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000020; - break; - } - case 74: { - org.sonarqube.ws.Common.Users.Builder subBuilder = null; - if (((bitField0_ & 0x00000040) == 0x00000040)) { - subBuilder = users_.toBuilder(); - } - users_ = input.readMessage(org.sonarqube.ws.Common.Users.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(users_); - users_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000040; - break; - } - case 82: { - org.sonarqube.ws.Issues.ActionPlans.Builder subBuilder = null; - if (((bitField0_ & 0x00000080) == 0x00000080)) { - subBuilder = actionPlans_.toBuilder(); - } - actionPlans_ = input.readMessage(org.sonarqube.ws.Issues.ActionPlans.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(actionPlans_); - actionPlans_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000080; - break; - } - case 90: { - org.sonarqube.ws.Issues.Languages.Builder subBuilder = null; - if (((bitField0_ & 0x00000100) == 0x00000100)) { - subBuilder = languages_.toBuilder(); - } - languages_ = input.readMessage(org.sonarqube.ws.Issues.Languages.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(languages_); - languages_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000100; - break; - } - case 98: { - org.sonarqube.ws.Common.Facets.Builder subBuilder = null; - if (((bitField0_ & 0x00000200) == 0x00000200)) { - subBuilder = facets_.toBuilder(); - } - facets_ = input.readMessage(org.sonarqube.ws.Common.Facets.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(facets_); - facets_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000200; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { - issues_ = java.util.Collections.unmodifiableList(issues_); - } - if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - components_ = java.util.Collections.unmodifiableList(components_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Search_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Search_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Search.class, org.sonarqube.ws.Issues.Search.Builder.class); - } - - private int bitField0_; - public static final int TOTAL_FIELD_NUMBER = 1; - private long total_; - /** - * optional int64 total = 1; - */ - public boolean hasTotal() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int64 total = 1; - */ - public long getTotal() { - return total_; - } - - public static final int P_FIELD_NUMBER = 2; - private long p_; - /** - * optional int64 p = 2; - */ - public boolean hasP() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int64 p = 2; - */ - public long getP() { - return p_; - } - - public static final int PS_FIELD_NUMBER = 3; - private int ps_; - /** - * optional int32 ps = 3; - */ - public boolean hasPs() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 ps = 3; - */ - public int getPs() { - return ps_; - } - - public static final int PAGING_FIELD_NUMBER = 4; - private org.sonarqube.ws.Common.Paging paging_; - /** - * optional .sonarqube.ws.commons.Paging paging = 4; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 4; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 4; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - - public static final int DEBTTOTAL_FIELD_NUMBER = 5; - private long debtTotal_; - /** - * optional int64 debtTotal = 5; - * - *
-     * Total amount of debt, only when the facet "total" is enabled
-     * 
- */ - public boolean hasDebtTotal() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int64 debtTotal = 5; - * - *
-     * Total amount of debt, only when the facet "total" is enabled
-     * 
- */ - public long getDebtTotal() { - return debtTotal_; - } - - public static final int ISSUES_FIELD_NUMBER = 6; - private java.util.List issues_; - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public java.util.List getIssuesList() { - return issues_; - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public java.util.List - getIssuesOrBuilderList() { - return issues_; - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public int getIssuesCount() { - return issues_.size(); - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public org.sonarqube.ws.Issues.Issue getIssues(int index) { - return issues_.get(index); - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public org.sonarqube.ws.Issues.IssueOrBuilder getIssuesOrBuilder( - int index) { - return issues_.get(index); - } - - public static final int COMPONENTS_FIELD_NUMBER = 7; - private java.util.List components_; - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public java.util.List getComponentsList() { - return components_; - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public java.util.List - getComponentsOrBuilderList() { - return components_; - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public int getComponentsCount() { - return components_.size(); - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public org.sonarqube.ws.Issues.Component getComponents(int index) { - return components_.get(index); - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public org.sonarqube.ws.Issues.ComponentOrBuilder getComponentsOrBuilder( - int index) { - return components_.get(index); - } - - public static final int RULES_FIELD_NUMBER = 8; - private org.sonarqube.ws.Common.Rules rules_; - /** - * optional .sonarqube.ws.commons.Rules rules = 8; - */ - public boolean hasRules() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional .sonarqube.ws.commons.Rules rules = 8; - */ - public org.sonarqube.ws.Common.Rules getRules() { - return rules_ == null ? org.sonarqube.ws.Common.Rules.getDefaultInstance() : rules_; - } - /** - * optional .sonarqube.ws.commons.Rules rules = 8; - */ - public org.sonarqube.ws.Common.RulesOrBuilder getRulesOrBuilder() { - return rules_ == null ? org.sonarqube.ws.Common.Rules.getDefaultInstance() : rules_; - } - - public static final int USERS_FIELD_NUMBER = 9; - private org.sonarqube.ws.Common.Users users_; - /** - * optional .sonarqube.ws.commons.Users users = 9; - */ - public boolean hasUsers() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional .sonarqube.ws.commons.Users users = 9; - */ - public org.sonarqube.ws.Common.Users getUsers() { - return users_ == null ? org.sonarqube.ws.Common.Users.getDefaultInstance() : users_; - } - /** - * optional .sonarqube.ws.commons.Users users = 9; - */ - public org.sonarqube.ws.Common.UsersOrBuilder getUsersOrBuilder() { - return users_ == null ? org.sonarqube.ws.Common.Users.getDefaultInstance() : users_; - } - - public static final int ACTIONPLANS_FIELD_NUMBER = 10; - private org.sonarqube.ws.Issues.ActionPlans actionPlans_; - /** - * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; - */ - public boolean hasActionPlans() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; - */ - public org.sonarqube.ws.Issues.ActionPlans getActionPlans() { - return actionPlans_ == null ? org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance() : actionPlans_; - } - /** - * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; - */ - public org.sonarqube.ws.Issues.ActionPlansOrBuilder getActionPlansOrBuilder() { - return actionPlans_ == null ? org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance() : actionPlans_; - } - - public static final int LANGUAGES_FIELD_NUMBER = 11; - private org.sonarqube.ws.Issues.Languages languages_; - /** - * optional .sonarqube.ws.issues.Languages languages = 11; - */ - public boolean hasLanguages() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional .sonarqube.ws.issues.Languages languages = 11; - */ - public org.sonarqube.ws.Issues.Languages getLanguages() { - return languages_ == null ? org.sonarqube.ws.Issues.Languages.getDefaultInstance() : languages_; - } - /** - * optional .sonarqube.ws.issues.Languages languages = 11; - */ - public org.sonarqube.ws.Issues.LanguagesOrBuilder getLanguagesOrBuilder() { - return languages_ == null ? org.sonarqube.ws.Issues.Languages.getDefaultInstance() : languages_; - } - - public static final int FACETS_FIELD_NUMBER = 12; - private org.sonarqube.ws.Common.Facets facets_; - /** - * optional .sonarqube.ws.commons.Facets facets = 12; - */ - public boolean hasFacets() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional .sonarqube.ws.commons.Facets facets = 12; - */ - public org.sonarqube.ws.Common.Facets getFacets() { - return facets_ == null ? org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_; - } - /** - * optional .sonarqube.ws.commons.Facets facets = 12; - */ - public org.sonarqube.ws.Common.FacetsOrBuilder getFacetsOrBuilder() { - return facets_ == null ? org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, total_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt64(2, p_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, ps_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, getPaging()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt64(5, debtTotal_); - } - for (int i = 0; i < issues_.size(); i++) { - output.writeMessage(6, issues_.get(i)); - } - for (int i = 0; i < components_.size(); i++) { - output.writeMessage(7, components_.get(i)); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(8, getRules()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(9, getUsers()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(10, getActionPlans()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(11, getLanguages()); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeMessage(12, getFacets()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, total_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, p_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, ps_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPaging()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, debtTotal_); - } - for (int i = 0; i < issues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, issues_.get(i)); - } - for (int i = 0; i < components_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, components_.get(i)); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getRules()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getUsers()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getActionPlans()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getLanguages()); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getFacets()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Search parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Search parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Search parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Search parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Search parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Search parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Search parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Issues.Search parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Search parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Search parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Issues.Search prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.issues.Search} - * - *
-     * Response of GET api/issues/search
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Search) - org.sonarqube.ws.Issues.SearchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Search_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Search_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Search.class, org.sonarqube.ws.Issues.Search.Builder.class); - } - - // Construct using org.sonarqube.ws.Issues.Search.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPagingFieldBuilder(); - getIssuesFieldBuilder(); - getComponentsFieldBuilder(); - getRulesFieldBuilder(); - getUsersFieldBuilder(); - getActionPlansFieldBuilder(); - getLanguagesFieldBuilder(); - getFacetsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - total_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - p_ = 0L; - bitField0_ = (bitField0_ & ~0x00000002); - ps_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - if (pagingBuilder_ == null) { - paging_ = null; - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - debtTotal_ = 0L; - bitField0_ = (bitField0_ & ~0x00000010); - if (issuesBuilder_ == null) { - issues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - issuesBuilder_.clear(); - } - if (componentsBuilder_ == null) { - components_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - componentsBuilder_.clear(); - } - if (rulesBuilder_ == null) { - rules_ = null; - } else { - rulesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - if (usersBuilder_ == null) { - users_ = null; - } else { - usersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - if (actionPlansBuilder_ == null) { - actionPlans_ = null; - } else { - actionPlansBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - if (languagesBuilder_ == null) { - languages_ = null; - } else { - languagesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - if (facetsBuilder_ == null) { - facets_ = null; - } else { - facetsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Search_descriptor; - } - - public org.sonarqube.ws.Issues.Search getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Search.getDefaultInstance(); - } - - public org.sonarqube.ws.Issues.Search build() { - org.sonarqube.ws.Issues.Search result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Issues.Search buildPartial() { - org.sonarqube.ws.Issues.Search result = new org.sonarqube.ws.Issues.Search(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.total_ = total_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.p_ = p_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.ps_ = ps_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - if (pagingBuilder_ == null) { - result.paging_ = paging_; - } else { - result.paging_ = pagingBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.debtTotal_ = debtTotal_; - if (issuesBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020)) { - issues_ = java.util.Collections.unmodifiableList(issues_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.issues_ = issues_; - } else { - result.issues_ = issuesBuilder_.build(); - } - if (componentsBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040)) { - components_ = java.util.Collections.unmodifiableList(components_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.components_ = components_; - } else { - result.components_ = componentsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000020; - } - if (rulesBuilder_ == null) { - result.rules_ = rules_; - } else { - result.rules_ = rulesBuilder_.build(); - } - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000040; - } - if (usersBuilder_ == null) { - result.users_ = users_; - } else { - result.users_ = usersBuilder_.build(); - } - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000080; - } - if (actionPlansBuilder_ == null) { - result.actionPlans_ = actionPlans_; - } else { - result.actionPlans_ = actionPlansBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000100; - } - if (languagesBuilder_ == null) { - result.languages_ = languages_; - } else { - result.languages_ = languagesBuilder_.build(); - } - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000200; - } - if (facetsBuilder_ == null) { - result.facets_ = facets_; - } else { - result.facets_ = facetsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Search) { - return mergeFrom((org.sonarqube.ws.Issues.Search)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Issues.Search other) { - if (other == org.sonarqube.ws.Issues.Search.getDefaultInstance()) return this; - if (other.hasTotal()) { - setTotal(other.getTotal()); - } - if (other.hasP()) { - setP(other.getP()); - } - if (other.hasPs()) { - setPs(other.getPs()); - } - if (other.hasPaging()) { - mergePaging(other.getPaging()); - } - if (other.hasDebtTotal()) { - setDebtTotal(other.getDebtTotal()); - } - if (issuesBuilder_ == null) { - if (!other.issues_.isEmpty()) { - if (issues_.isEmpty()) { - issues_ = other.issues_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureIssuesIsMutable(); - issues_.addAll(other.issues_); - } - onChanged(); - } - } else { - if (!other.issues_.isEmpty()) { - if (issuesBuilder_.isEmpty()) { - issuesBuilder_.dispose(); - issuesBuilder_ = null; - issues_ = other.issues_; - bitField0_ = (bitField0_ & ~0x00000020); - issuesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getIssuesFieldBuilder() : null; - } else { - issuesBuilder_.addAllMessages(other.issues_); - } - } - } - if (componentsBuilder_ == null) { - if (!other.components_.isEmpty()) { - if (components_.isEmpty()) { - components_ = other.components_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureComponentsIsMutable(); - components_.addAll(other.components_); - } - onChanged(); - } - } else { - if (!other.components_.isEmpty()) { - if (componentsBuilder_.isEmpty()) { - componentsBuilder_.dispose(); - componentsBuilder_ = null; - components_ = other.components_; - bitField0_ = (bitField0_ & ~0x00000040); - componentsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getComponentsFieldBuilder() : null; - } else { - componentsBuilder_.addAllMessages(other.components_); - } - } - } - if (other.hasRules()) { - mergeRules(other.getRules()); - } - if (other.hasUsers()) { - mergeUsers(other.getUsers()); - } - if (other.hasActionPlans()) { - mergeActionPlans(other.getActionPlans()); - } - if (other.hasLanguages()) { - mergeLanguages(other.getLanguages()); - } - if (other.hasFacets()) { - mergeFacets(other.getFacets()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Issues.Search parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Search) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long total_ ; - /** - * optional int64 total = 1; - */ - public boolean hasTotal() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int64 total = 1; - */ - public long getTotal() { - return total_; - } - /** - * optional int64 total = 1; - */ - public Builder setTotal(long value) { - bitField0_ |= 0x00000001; - total_ = value; - onChanged(); - return this; - } - /** - * optional int64 total = 1; - */ - public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000001); - total_ = 0L; - onChanged(); - return this; - } - - private long p_ ; - /** - * optional int64 p = 2; - */ - public boolean hasP() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int64 p = 2; - */ - public long getP() { - return p_; - } - /** - * optional int64 p = 2; - */ - public Builder setP(long value) { - bitField0_ |= 0x00000002; - p_ = value; - onChanged(); - return this; - } - /** - * optional int64 p = 2; - */ - public Builder clearP() { - bitField0_ = (bitField0_ & ~0x00000002); - p_ = 0L; - onChanged(); - return this; - } - - private int ps_ ; - /** - * optional int32 ps = 3; - */ - public boolean hasPs() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 ps = 3; - */ - public int getPs() { - return ps_; - } - /** - * optional int32 ps = 3; - */ - public Builder setPs(int value) { - bitField0_ |= 0x00000004; - ps_ = value; - onChanged(); - return this; - } - /** - * optional int32 ps = 3; - */ - public Builder clearPs() { - bitField0_ = (bitField0_ & ~0x00000004); - ps_ = 0; - onChanged(); - return this; - } - - private org.sonarqube.ws.Common.Paging paging_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_; - /** - * optional .sonarqube.ws.commons.Paging paging = 4; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 4; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - if (pagingBuilder_ == null) { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } else { - return pagingBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 4; - */ - public Builder setPaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - paging_ = value; - onChanged(); - } else { - pagingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 4; - */ - public Builder setPaging( - org.sonarqube.ws.Common.Paging.Builder builderForValue) { - if (pagingBuilder_ == null) { - paging_ = builderForValue.build(); - onChanged(); - } else { - pagingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 4; - */ - public Builder mergePaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008) && - paging_ != null && - paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) { - paging_ = - org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial(); - } else { - paging_ = value; - } - onChanged(); - } else { - pagingBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 4; - */ - public Builder clearPaging() { - if (pagingBuilder_ == null) { - paging_ = null; - onChanged(); - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 4; - */ - public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getPagingFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 4; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - if (pagingBuilder_ != null) { - return pagingBuilder_.getMessageOrBuilder(); - } else { - return paging_ == null ? - org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 4; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> - getPagingFieldBuilder() { - if (pagingBuilder_ == null) { - pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>( - getPaging(), - getParentForChildren(), - isClean()); - paging_ = null; - } - return pagingBuilder_; - } - - private long debtTotal_ ; - /** - * optional int64 debtTotal = 5; - * - *
-       * Total amount of debt, only when the facet "total" is enabled
-       * 
- */ - public boolean hasDebtTotal() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int64 debtTotal = 5; - * - *
-       * Total amount of debt, only when the facet "total" is enabled
-       * 
- */ - public long getDebtTotal() { - return debtTotal_; - } - /** - * optional int64 debtTotal = 5; - * - *
-       * Total amount of debt, only when the facet "total" is enabled
-       * 
- */ - public Builder setDebtTotal(long value) { - bitField0_ |= 0x00000010; - debtTotal_ = value; - onChanged(); - return this; - } - /** - * optional int64 debtTotal = 5; - * - *
-       * Total amount of debt, only when the facet "total" is enabled
-       * 
- */ - public Builder clearDebtTotal() { - bitField0_ = (bitField0_ & ~0x00000010); - debtTotal_ = 0L; - onChanged(); - return this; - } - - private java.util.List issues_ = - java.util.Collections.emptyList(); - private void ensureIssuesIsMutable() { - if (!((bitField0_ & 0x00000020) == 0x00000020)) { - issues_ = new java.util.ArrayList(issues_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Issue, org.sonarqube.ws.Issues.Issue.Builder, org.sonarqube.ws.Issues.IssueOrBuilder> issuesBuilder_; - - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public java.util.List getIssuesList() { - if (issuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(issues_); - } else { - return issuesBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public int getIssuesCount() { - if (issuesBuilder_ == null) { - return issues_.size(); - } else { - return issuesBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public org.sonarqube.ws.Issues.Issue getIssues(int index) { - if (issuesBuilder_ == null) { - return issues_.get(index); - } else { - return issuesBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public Builder setIssues( - int index, org.sonarqube.ws.Issues.Issue value) { - if (issuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIssuesIsMutable(); - issues_.set(index, value); - onChanged(); - } else { - issuesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public Builder setIssues( - int index, org.sonarqube.ws.Issues.Issue.Builder builderForValue) { - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - issues_.set(index, builderForValue.build()); - onChanged(); - } else { - issuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public Builder addIssues(org.sonarqube.ws.Issues.Issue value) { - if (issuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIssuesIsMutable(); - issues_.add(value); - onChanged(); - } else { - issuesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public Builder addIssues( - int index, org.sonarqube.ws.Issues.Issue value) { - if (issuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureIssuesIsMutable(); - issues_.add(index, value); - onChanged(); - } else { - issuesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public Builder addIssues( - org.sonarqube.ws.Issues.Issue.Builder builderForValue) { - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - issues_.add(builderForValue.build()); - onChanged(); - } else { - issuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public Builder addIssues( - int index, org.sonarqube.ws.Issues.Issue.Builder builderForValue) { - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - issues_.add(index, builderForValue.build()); - onChanged(); - } else { - issuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public Builder addAllIssues( - java.lang.Iterable values) { - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, issues_); - onChanged(); - } else { - issuesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public Builder clearIssues() { - if (issuesBuilder_ == null) { - issues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - issuesBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public Builder removeIssues(int index) { - if (issuesBuilder_ == null) { - ensureIssuesIsMutable(); - issues_.remove(index); - onChanged(); - } else { - issuesBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public org.sonarqube.ws.Issues.Issue.Builder getIssuesBuilder( - int index) { - return getIssuesFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public org.sonarqube.ws.Issues.IssueOrBuilder getIssuesOrBuilder( - int index) { - if (issuesBuilder_ == null) { - return issues_.get(index); } else { - return issuesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public java.util.List - getIssuesOrBuilderList() { - if (issuesBuilder_ != null) { - return issuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(issues_); - } - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public org.sonarqube.ws.Issues.Issue.Builder addIssuesBuilder() { - return getIssuesFieldBuilder().addBuilder( - org.sonarqube.ws.Issues.Issue.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public org.sonarqube.ws.Issues.Issue.Builder addIssuesBuilder( - int index) { - return getIssuesFieldBuilder().addBuilder( - index, org.sonarqube.ws.Issues.Issue.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.Issue issues = 6; - */ - public java.util.List - getIssuesBuilderList() { - return getIssuesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Issue, org.sonarqube.ws.Issues.Issue.Builder, org.sonarqube.ws.Issues.IssueOrBuilder> - getIssuesFieldBuilder() { - if (issuesBuilder_ == null) { - issuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Issue, org.sonarqube.ws.Issues.Issue.Builder, org.sonarqube.ws.Issues.IssueOrBuilder>( - issues_, - ((bitField0_ & 0x00000020) == 0x00000020), - getParentForChildren(), - isClean()); - issues_ = null; - } - return issuesBuilder_; - } - - private java.util.List components_ = - java.util.Collections.emptyList(); - private void ensureComponentsIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { - components_ = new java.util.ArrayList(components_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Component, org.sonarqube.ws.Issues.Component.Builder, org.sonarqube.ws.Issues.ComponentOrBuilder> componentsBuilder_; - - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public java.util.List getComponentsList() { - if (componentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(components_); - } else { - return componentsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public int getComponentsCount() { - if (componentsBuilder_ == null) { - return components_.size(); - } else { - return componentsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public org.sonarqube.ws.Issues.Component getComponents(int index) { - if (componentsBuilder_ == null) { - return components_.get(index); - } else { - return componentsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public Builder setComponents( - int index, org.sonarqube.ws.Issues.Component value) { - if (componentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentsIsMutable(); - components_.set(index, value); - onChanged(); - } else { - componentsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public Builder setComponents( - int index, org.sonarqube.ws.Issues.Component.Builder builderForValue) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - components_.set(index, builderForValue.build()); - onChanged(); - } else { - componentsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public Builder addComponents(org.sonarqube.ws.Issues.Component value) { - if (componentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentsIsMutable(); - components_.add(value); - onChanged(); - } else { - componentsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public Builder addComponents( - int index, org.sonarqube.ws.Issues.Component value) { - if (componentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentsIsMutable(); - components_.add(index, value); - onChanged(); - } else { - componentsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public Builder addComponents( - org.sonarqube.ws.Issues.Component.Builder builderForValue) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - components_.add(builderForValue.build()); - onChanged(); - } else { - componentsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public Builder addComponents( - int index, org.sonarqube.ws.Issues.Component.Builder builderForValue) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - components_.add(index, builderForValue.build()); - onChanged(); - } else { - componentsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public Builder addAllComponents( - java.lang.Iterable values) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, components_); - onChanged(); - } else { - componentsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public Builder clearComponents() { - if (componentsBuilder_ == null) { - components_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - componentsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public Builder removeComponents(int index) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - components_.remove(index); - onChanged(); - } else { - componentsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public org.sonarqube.ws.Issues.Component.Builder getComponentsBuilder( - int index) { - return getComponentsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public org.sonarqube.ws.Issues.ComponentOrBuilder getComponentsOrBuilder( - int index) { - if (componentsBuilder_ == null) { - return components_.get(index); } else { - return componentsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public java.util.List - getComponentsOrBuilderList() { - if (componentsBuilder_ != null) { - return componentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(components_); - } - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public org.sonarqube.ws.Issues.Component.Builder addComponentsBuilder() { - return getComponentsFieldBuilder().addBuilder( - org.sonarqube.ws.Issues.Component.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public org.sonarqube.ws.Issues.Component.Builder addComponentsBuilder( - int index) { - return getComponentsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Issues.Component.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.Component components = 7; - */ - public java.util.List - getComponentsBuilderList() { - return getComponentsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Component, org.sonarqube.ws.Issues.Component.Builder, org.sonarqube.ws.Issues.ComponentOrBuilder> - getComponentsFieldBuilder() { - if (componentsBuilder_ == null) { - componentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Component, org.sonarqube.ws.Issues.Component.Builder, org.sonarqube.ws.Issues.ComponentOrBuilder>( - components_, - ((bitField0_ & 0x00000040) == 0x00000040), - getParentForChildren(), - isClean()); - components_ = null; - } - return componentsBuilder_; - } - - private org.sonarqube.ws.Common.Rules rules_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Rules, org.sonarqube.ws.Common.Rules.Builder, org.sonarqube.ws.Common.RulesOrBuilder> rulesBuilder_; - /** - * optional .sonarqube.ws.commons.Rules rules = 8; - */ - public boolean hasRules() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional .sonarqube.ws.commons.Rules rules = 8; - */ - public org.sonarqube.ws.Common.Rules getRules() { - if (rulesBuilder_ == null) { - return rules_ == null ? org.sonarqube.ws.Common.Rules.getDefaultInstance() : rules_; - } else { - return rulesBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.commons.Rules rules = 8; - */ - public Builder setRules(org.sonarqube.ws.Common.Rules value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rules_ = value; - onChanged(); - } else { - rulesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .sonarqube.ws.commons.Rules rules = 8; - */ - public Builder setRules( - org.sonarqube.ws.Common.Rules.Builder builderForValue) { - if (rulesBuilder_ == null) { - rules_ = builderForValue.build(); - onChanged(); - } else { - rulesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .sonarqube.ws.commons.Rules rules = 8; - */ - public Builder mergeRules(org.sonarqube.ws.Common.Rules value) { - if (rulesBuilder_ == null) { - if (((bitField0_ & 0x00000080) == 0x00000080) && - rules_ != null && - rules_ != org.sonarqube.ws.Common.Rules.getDefaultInstance()) { - rules_ = - org.sonarqube.ws.Common.Rules.newBuilder(rules_).mergeFrom(value).buildPartial(); - } else { - rules_ = value; - } - onChanged(); - } else { - rulesBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - return this; - } - /** - * optional .sonarqube.ws.commons.Rules rules = 8; - */ - public Builder clearRules() { - if (rulesBuilder_ == null) { - rules_ = null; - onChanged(); - } else { - rulesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - /** - * optional .sonarqube.ws.commons.Rules rules = 8; - */ - public org.sonarqube.ws.Common.Rules.Builder getRulesBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getRulesFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.commons.Rules rules = 8; - */ - public org.sonarqube.ws.Common.RulesOrBuilder getRulesOrBuilder() { - if (rulesBuilder_ != null) { - return rulesBuilder_.getMessageOrBuilder(); - } else { - return rules_ == null ? - org.sonarqube.ws.Common.Rules.getDefaultInstance() : rules_; - } - } - /** - * optional .sonarqube.ws.commons.Rules rules = 8; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Rules, org.sonarqube.ws.Common.Rules.Builder, org.sonarqube.ws.Common.RulesOrBuilder> - getRulesFieldBuilder() { - if (rulesBuilder_ == null) { - rulesBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Rules, org.sonarqube.ws.Common.Rules.Builder, org.sonarqube.ws.Common.RulesOrBuilder>( - getRules(), - getParentForChildren(), - isClean()); - rules_ = null; - } - return rulesBuilder_; - } - - private org.sonarqube.ws.Common.Users users_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Users, org.sonarqube.ws.Common.Users.Builder, org.sonarqube.ws.Common.UsersOrBuilder> usersBuilder_; - /** - * optional .sonarqube.ws.commons.Users users = 9; - */ - public boolean hasUsers() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional .sonarqube.ws.commons.Users users = 9; - */ - public org.sonarqube.ws.Common.Users getUsers() { - if (usersBuilder_ == null) { - return users_ == null ? org.sonarqube.ws.Common.Users.getDefaultInstance() : users_; - } else { - return usersBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.commons.Users users = 9; - */ - public Builder setUsers(org.sonarqube.ws.Common.Users value) { - if (usersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - users_ = value; - onChanged(); - } else { - usersBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - return this; - } - /** - * optional .sonarqube.ws.commons.Users users = 9; - */ - public Builder setUsers( - org.sonarqube.ws.Common.Users.Builder builderForValue) { - if (usersBuilder_ == null) { - users_ = builderForValue.build(); - onChanged(); - } else { - usersBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - return this; - } - /** - * optional .sonarqube.ws.commons.Users users = 9; - */ - public Builder mergeUsers(org.sonarqube.ws.Common.Users value) { - if (usersBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && - users_ != null && - users_ != org.sonarqube.ws.Common.Users.getDefaultInstance()) { - users_ = - org.sonarqube.ws.Common.Users.newBuilder(users_).mergeFrom(value).buildPartial(); - } else { - users_ = value; - } - onChanged(); - } else { - usersBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000100; - return this; - } - /** - * optional .sonarqube.ws.commons.Users users = 9; - */ - public Builder clearUsers() { - if (usersBuilder_ == null) { - users_ = null; - onChanged(); - } else { - usersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - return this; - } - /** - * optional .sonarqube.ws.commons.Users users = 9; - */ - public org.sonarqube.ws.Common.Users.Builder getUsersBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getUsersFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.commons.Users users = 9; - */ - public org.sonarqube.ws.Common.UsersOrBuilder getUsersOrBuilder() { - if (usersBuilder_ != null) { - return usersBuilder_.getMessageOrBuilder(); - } else { - return users_ == null ? - org.sonarqube.ws.Common.Users.getDefaultInstance() : users_; - } - } - /** - * optional .sonarqube.ws.commons.Users users = 9; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Users, org.sonarqube.ws.Common.Users.Builder, org.sonarqube.ws.Common.UsersOrBuilder> - getUsersFieldBuilder() { - if (usersBuilder_ == null) { - usersBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Users, org.sonarqube.ws.Common.Users.Builder, org.sonarqube.ws.Common.UsersOrBuilder>( - getUsers(), - getParentForChildren(), - isClean()); - users_ = null; - } - return usersBuilder_; - } - - private org.sonarqube.ws.Issues.ActionPlans actionPlans_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.ActionPlans, org.sonarqube.ws.Issues.ActionPlans.Builder, org.sonarqube.ws.Issues.ActionPlansOrBuilder> actionPlansBuilder_; - /** - * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; - */ - public boolean hasActionPlans() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; - */ - public org.sonarqube.ws.Issues.ActionPlans getActionPlans() { - if (actionPlansBuilder_ == null) { - return actionPlans_ == null ? org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance() : actionPlans_; - } else { - return actionPlansBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; - */ - public Builder setActionPlans(org.sonarqube.ws.Issues.ActionPlans value) { - if (actionPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - actionPlans_ = value; - onChanged(); - } else { - actionPlansBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - return this; - } - /** - * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; - */ - public Builder setActionPlans( - org.sonarqube.ws.Issues.ActionPlans.Builder builderForValue) { - if (actionPlansBuilder_ == null) { - actionPlans_ = builderForValue.build(); - onChanged(); - } else { - actionPlansBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - return this; - } - /** - * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; - */ - public Builder mergeActionPlans(org.sonarqube.ws.Issues.ActionPlans value) { - if (actionPlansBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200) && - actionPlans_ != null && - actionPlans_ != org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance()) { - actionPlans_ = - org.sonarqube.ws.Issues.ActionPlans.newBuilder(actionPlans_).mergeFrom(value).buildPartial(); - } else { - actionPlans_ = value; - } - onChanged(); - } else { - actionPlansBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000200; - return this; - } - /** - * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; - */ - public Builder clearActionPlans() { - if (actionPlansBuilder_ == null) { - actionPlans_ = null; - onChanged(); - } else { - actionPlansBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - return this; - } - /** - * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; - */ - public org.sonarqube.ws.Issues.ActionPlans.Builder getActionPlansBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return getActionPlansFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; - */ - public org.sonarqube.ws.Issues.ActionPlansOrBuilder getActionPlansOrBuilder() { - if (actionPlansBuilder_ != null) { - return actionPlansBuilder_.getMessageOrBuilder(); - } else { - return actionPlans_ == null ? - org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance() : actionPlans_; - } - } - /** - * optional .sonarqube.ws.issues.ActionPlans actionPlans = 10; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.ActionPlans, org.sonarqube.ws.Issues.ActionPlans.Builder, org.sonarqube.ws.Issues.ActionPlansOrBuilder> - getActionPlansFieldBuilder() { - if (actionPlansBuilder_ == null) { - actionPlansBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.ActionPlans, org.sonarqube.ws.Issues.ActionPlans.Builder, org.sonarqube.ws.Issues.ActionPlansOrBuilder>( - getActionPlans(), - getParentForChildren(), - isClean()); - actionPlans_ = null; - } - return actionPlansBuilder_; - } - - private org.sonarqube.ws.Issues.Languages languages_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.Languages, org.sonarqube.ws.Issues.Languages.Builder, org.sonarqube.ws.Issues.LanguagesOrBuilder> languagesBuilder_; - /** - * optional .sonarqube.ws.issues.Languages languages = 11; - */ - public boolean hasLanguages() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional .sonarqube.ws.issues.Languages languages = 11; - */ - public org.sonarqube.ws.Issues.Languages getLanguages() { - if (languagesBuilder_ == null) { - return languages_ == null ? org.sonarqube.ws.Issues.Languages.getDefaultInstance() : languages_; - } else { - return languagesBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.issues.Languages languages = 11; - */ - public Builder setLanguages(org.sonarqube.ws.Issues.Languages value) { - if (languagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - languages_ = value; - onChanged(); - } else { - languagesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - return this; - } - /** - * optional .sonarqube.ws.issues.Languages languages = 11; - */ - public Builder setLanguages( - org.sonarqube.ws.Issues.Languages.Builder builderForValue) { - if (languagesBuilder_ == null) { - languages_ = builderForValue.build(); - onChanged(); - } else { - languagesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - return this; - } - /** - * optional .sonarqube.ws.issues.Languages languages = 11; - */ - public Builder mergeLanguages(org.sonarqube.ws.Issues.Languages value) { - if (languagesBuilder_ == null) { - if (((bitField0_ & 0x00000400) == 0x00000400) && - languages_ != null && - languages_ != org.sonarqube.ws.Issues.Languages.getDefaultInstance()) { - languages_ = - org.sonarqube.ws.Issues.Languages.newBuilder(languages_).mergeFrom(value).buildPartial(); - } else { - languages_ = value; - } - onChanged(); - } else { - languagesBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000400; - return this; - } - /** - * optional .sonarqube.ws.issues.Languages languages = 11; - */ - public Builder clearLanguages() { - if (languagesBuilder_ == null) { - languages_ = null; - onChanged(); - } else { - languagesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000400); - return this; - } - /** - * optional .sonarqube.ws.issues.Languages languages = 11; - */ - public org.sonarqube.ws.Issues.Languages.Builder getLanguagesBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getLanguagesFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.issues.Languages languages = 11; - */ - public org.sonarqube.ws.Issues.LanguagesOrBuilder getLanguagesOrBuilder() { - if (languagesBuilder_ != null) { - return languagesBuilder_.getMessageOrBuilder(); - } else { - return languages_ == null ? - org.sonarqube.ws.Issues.Languages.getDefaultInstance() : languages_; - } - } - /** - * optional .sonarqube.ws.issues.Languages languages = 11; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.Languages, org.sonarqube.ws.Issues.Languages.Builder, org.sonarqube.ws.Issues.LanguagesOrBuilder> - getLanguagesFieldBuilder() { - if (languagesBuilder_ == null) { - languagesBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.Languages, org.sonarqube.ws.Issues.Languages.Builder, org.sonarqube.ws.Issues.LanguagesOrBuilder>( - getLanguages(), - getParentForChildren(), - isClean()); - languages_ = null; - } - return languagesBuilder_; - } - - private org.sonarqube.ws.Common.Facets facets_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Facets, org.sonarqube.ws.Common.Facets.Builder, org.sonarqube.ws.Common.FacetsOrBuilder> facetsBuilder_; - /** - * optional .sonarqube.ws.commons.Facets facets = 12; - */ - public boolean hasFacets() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional .sonarqube.ws.commons.Facets facets = 12; - */ - public org.sonarqube.ws.Common.Facets getFacets() { - if (facetsBuilder_ == null) { - return facets_ == null ? org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_; - } else { - return facetsBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.commons.Facets facets = 12; - */ - public Builder setFacets(org.sonarqube.ws.Common.Facets value) { - if (facetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - facets_ = value; - onChanged(); - } else { - facetsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - return this; - } - /** - * optional .sonarqube.ws.commons.Facets facets = 12; - */ - public Builder setFacets( - org.sonarqube.ws.Common.Facets.Builder builderForValue) { - if (facetsBuilder_ == null) { - facets_ = builderForValue.build(); - onChanged(); - } else { - facetsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - return this; - } - /** - * optional .sonarqube.ws.commons.Facets facets = 12; - */ - public Builder mergeFacets(org.sonarqube.ws.Common.Facets value) { - if (facetsBuilder_ == null) { - if (((bitField0_ & 0x00000800) == 0x00000800) && - facets_ != null && - facets_ != org.sonarqube.ws.Common.Facets.getDefaultInstance()) { - facets_ = - org.sonarqube.ws.Common.Facets.newBuilder(facets_).mergeFrom(value).buildPartial(); - } else { - facets_ = value; - } - onChanged(); - } else { - facetsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000800; - return this; - } - /** - * optional .sonarqube.ws.commons.Facets facets = 12; - */ - public Builder clearFacets() { - if (facetsBuilder_ == null) { - facets_ = null; - onChanged(); - } else { - facetsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - return this; - } - /** - * optional .sonarqube.ws.commons.Facets facets = 12; - */ - public org.sonarqube.ws.Common.Facets.Builder getFacetsBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return getFacetsFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.commons.Facets facets = 12; - */ - public org.sonarqube.ws.Common.FacetsOrBuilder getFacetsOrBuilder() { - if (facetsBuilder_ != null) { - return facetsBuilder_.getMessageOrBuilder(); - } else { - return facets_ == null ? - org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_; - } - } - /** - * optional .sonarqube.ws.commons.Facets facets = 12; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Facets, org.sonarqube.ws.Common.Facets.Builder, org.sonarqube.ws.Common.FacetsOrBuilder> - getFacetsFieldBuilder() { - if (facetsBuilder_ == null) { - facetsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Facets, org.sonarqube.ws.Common.Facets.Builder, org.sonarqube.ws.Common.FacetsOrBuilder>( - getFacets(), - getParentForChildren(), - isClean()); - facets_ = null; - } - return facetsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Search) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Search) - private static final org.sonarqube.ws.Issues.Search DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Search(); - } - - public static org.sonarqube.ws.Issues.Search getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Search parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Search(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Issues.Search getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OperationOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Operation) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.issues.Issue issue = 1; - */ - boolean hasIssue(); - /** - * optional .sonarqube.ws.issues.Issue issue = 1; - */ - org.sonarqube.ws.Issues.Issue getIssue(); - /** - * optional .sonarqube.ws.issues.Issue issue = 1; - */ - org.sonarqube.ws.Issues.IssueOrBuilder getIssueOrBuilder(); - - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - java.util.List - getComponentsList(); - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - org.sonarqube.ws.Issues.Component getComponents(int index); - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - int getComponentsCount(); - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - java.util.List - getComponentsOrBuilderList(); - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - org.sonarqube.ws.Issues.ComponentOrBuilder getComponentsOrBuilder( - int index); - - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - java.util.List - getRulesList(); - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - org.sonarqube.ws.Common.Rule getRules(int index); - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - int getRulesCount(); - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - java.util.List - getRulesOrBuilderList(); - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( - int index); - - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - java.util.List - getUsersList(); - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - org.sonarqube.ws.Common.User getUsers(int index); - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - int getUsersCount(); - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - java.util.List - getUsersOrBuilderList(); - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( - int index); - - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - java.util.List - getActionPlansList(); - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index); - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - int getActionPlansCount(); - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - java.util.List - getActionPlansOrBuilderList(); - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.issues.Operation} - * - *
-   * Response of most of POST/issues/{operation}, for instance assign, add_comment and set_severity
-   * 
- */ - public static final class Operation extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Operation) - OperationOrBuilder { - // Use Operation.newBuilder() to construct. - private Operation(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Operation() { - components_ = java.util.Collections.emptyList(); - rules_ = java.util.Collections.emptyList(); - users_ = java.util.Collections.emptyList(); - actionPlans_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Operation( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.sonarqube.ws.Issues.Issue.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = issue_.toBuilder(); - } - issue_ = input.readMessage(org.sonarqube.ws.Issues.Issue.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(issue_); - issue_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - components_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - components_.add(input.readMessage(org.sonarqube.ws.Issues.Component.PARSER, extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - rules_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - rules_.add(input.readMessage(org.sonarqube.ws.Common.Rule.PARSER, extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - users_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - users_.add(input.readMessage(org.sonarqube.ws.Common.User.PARSER, extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - actionPlans_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - actionPlans_.add(input.readMessage(org.sonarqube.ws.Issues.ActionPlan.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - components_ = java.util.Collections.unmodifiableList(components_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - rules_ = java.util.Collections.unmodifiableList(rules_); - } - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - users_ = java.util.Collections.unmodifiableList(users_); - } - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - actionPlans_ = java.util.Collections.unmodifiableList(actionPlans_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Operation_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Operation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Operation.class, org.sonarqube.ws.Issues.Operation.Builder.class); - } - - private int bitField0_; - public static final int ISSUE_FIELD_NUMBER = 1; - private org.sonarqube.ws.Issues.Issue issue_; - /** - * optional .sonarqube.ws.issues.Issue issue = 1; - */ - public boolean hasIssue() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.issues.Issue issue = 1; - */ - public org.sonarqube.ws.Issues.Issue getIssue() { - return issue_ == null ? org.sonarqube.ws.Issues.Issue.getDefaultInstance() : issue_; - } - /** - * optional .sonarqube.ws.issues.Issue issue = 1; - */ - public org.sonarqube.ws.Issues.IssueOrBuilder getIssueOrBuilder() { - return issue_ == null ? org.sonarqube.ws.Issues.Issue.getDefaultInstance() : issue_; - } - - public static final int COMPONENTS_FIELD_NUMBER = 2; - private java.util.List components_; - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public java.util.List getComponentsList() { - return components_; - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public java.util.List - getComponentsOrBuilderList() { - return components_; - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public int getComponentsCount() { - return components_.size(); - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public org.sonarqube.ws.Issues.Component getComponents(int index) { - return components_.get(index); - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public org.sonarqube.ws.Issues.ComponentOrBuilder getComponentsOrBuilder( - int index) { - return components_.get(index); - } - - public static final int RULES_FIELD_NUMBER = 3; - private java.util.List rules_; - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public java.util.List getRulesList() { - return rules_; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public java.util.List - getRulesOrBuilderList() { - return rules_; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public int getRulesCount() { - return rules_.size(); - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public org.sonarqube.ws.Common.Rule getRules(int index) { - return rules_.get(index); - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( - int index) { - return rules_.get(index); - } - - public static final int USERS_FIELD_NUMBER = 4; - private java.util.List users_; - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public java.util.List getUsersList() { - return users_; - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public java.util.List - getUsersOrBuilderList() { - return users_; - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public int getUsersCount() { - return users_.size(); - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public org.sonarqube.ws.Common.User getUsers(int index) { - return users_.get(index); - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( - int index) { - return users_.get(index); - } - - public static final int ACTIONPLANS_FIELD_NUMBER = 5; - private java.util.List actionPlans_; - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public java.util.List getActionPlansList() { - return actionPlans_; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public java.util.List - getActionPlansOrBuilderList() { - return actionPlans_; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public int getActionPlansCount() { - return actionPlans_.size(); - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index) { - return actionPlans_.get(index); - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( - int index) { - return actionPlans_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getIssue()); - } - for (int i = 0; i < components_.size(); i++) { - output.writeMessage(2, components_.get(i)); - } - for (int i = 0; i < rules_.size(); i++) { - output.writeMessage(3, rules_.get(i)); - } - for (int i = 0; i < users_.size(); i++) { - output.writeMessage(4, users_.get(i)); - } - for (int i = 0; i < actionPlans_.size(); i++) { - output.writeMessage(5, actionPlans_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getIssue()); - } - for (int i = 0; i < components_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, components_.get(i)); - } - for (int i = 0; i < rules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, rules_.get(i)); - } - for (int i = 0; i < users_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, users_.get(i)); - } - for (int i = 0; i < actionPlans_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, actionPlans_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Operation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Operation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Operation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Operation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Operation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Operation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Operation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Issues.Operation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Operation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Operation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Issues.Operation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.issues.Operation} - * - *
-     * Response of most of POST/issues/{operation}, for instance assign, add_comment and set_severity
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Operation) - org.sonarqube.ws.Issues.OperationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Operation_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Operation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Operation.class, org.sonarqube.ws.Issues.Operation.Builder.class); - } - - // Construct using org.sonarqube.ws.Issues.Operation.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getIssueFieldBuilder(); - getComponentsFieldBuilder(); - getRulesFieldBuilder(); - getUsersFieldBuilder(); - getActionPlansFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (issueBuilder_ == null) { - issue_ = null; - } else { - issueBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (componentsBuilder_ == null) { - components_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - componentsBuilder_.clear(); - } - if (rulesBuilder_ == null) { - rules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - rulesBuilder_.clear(); - } - if (usersBuilder_ == null) { - users_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - usersBuilder_.clear(); - } - if (actionPlansBuilder_ == null) { - actionPlans_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - actionPlansBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Operation_descriptor; - } - - public org.sonarqube.ws.Issues.Operation getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Operation.getDefaultInstance(); - } - - public org.sonarqube.ws.Issues.Operation build() { - org.sonarqube.ws.Issues.Operation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Issues.Operation buildPartial() { - org.sonarqube.ws.Issues.Operation result = new org.sonarqube.ws.Issues.Operation(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (issueBuilder_ == null) { - result.issue_ = issue_; - } else { - result.issue_ = issueBuilder_.build(); - } - if (componentsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - components_ = java.util.Collections.unmodifiableList(components_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.components_ = components_; - } else { - result.components_ = componentsBuilder_.build(); - } - if (rulesBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - rules_ = java.util.Collections.unmodifiableList(rules_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.rules_ = rules_; - } else { - result.rules_ = rulesBuilder_.build(); - } - if (usersBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { - users_ = java.util.Collections.unmodifiableList(users_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.users_ = users_; - } else { - result.users_ = usersBuilder_.build(); - } - if (actionPlansBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010)) { - actionPlans_ = java.util.Collections.unmodifiableList(actionPlans_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.actionPlans_ = actionPlans_; - } else { - result.actionPlans_ = actionPlansBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Operation) { - return mergeFrom((org.sonarqube.ws.Issues.Operation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Issues.Operation other) { - if (other == org.sonarqube.ws.Issues.Operation.getDefaultInstance()) return this; - if (other.hasIssue()) { - mergeIssue(other.getIssue()); - } - if (componentsBuilder_ == null) { - if (!other.components_.isEmpty()) { - if (components_.isEmpty()) { - components_ = other.components_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureComponentsIsMutable(); - components_.addAll(other.components_); - } - onChanged(); - } - } else { - if (!other.components_.isEmpty()) { - if (componentsBuilder_.isEmpty()) { - componentsBuilder_.dispose(); - componentsBuilder_ = null; - components_ = other.components_; - bitField0_ = (bitField0_ & ~0x00000002); - componentsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getComponentsFieldBuilder() : null; - } else { - componentsBuilder_.addAllMessages(other.components_); - } - } - } - if (rulesBuilder_ == null) { - if (!other.rules_.isEmpty()) { - if (rules_.isEmpty()) { - rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureRulesIsMutable(); - rules_.addAll(other.rules_); - } - onChanged(); - } - } else { - if (!other.rules_.isEmpty()) { - if (rulesBuilder_.isEmpty()) { - rulesBuilder_.dispose(); - rulesBuilder_ = null; - rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000004); - rulesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getRulesFieldBuilder() : null; - } else { - rulesBuilder_.addAllMessages(other.rules_); - } - } - } - if (usersBuilder_ == null) { - if (!other.users_.isEmpty()) { - if (users_.isEmpty()) { - users_ = other.users_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureUsersIsMutable(); - users_.addAll(other.users_); - } - onChanged(); - } - } else { - if (!other.users_.isEmpty()) { - if (usersBuilder_.isEmpty()) { - usersBuilder_.dispose(); - usersBuilder_ = null; - users_ = other.users_; - bitField0_ = (bitField0_ & ~0x00000008); - usersBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getUsersFieldBuilder() : null; - } else { - usersBuilder_.addAllMessages(other.users_); - } - } - } - if (actionPlansBuilder_ == null) { - if (!other.actionPlans_.isEmpty()) { - if (actionPlans_.isEmpty()) { - actionPlans_ = other.actionPlans_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureActionPlansIsMutable(); - actionPlans_.addAll(other.actionPlans_); - } - onChanged(); - } - } else { - if (!other.actionPlans_.isEmpty()) { - if (actionPlansBuilder_.isEmpty()) { - actionPlansBuilder_.dispose(); - actionPlansBuilder_ = null; - actionPlans_ = other.actionPlans_; - bitField0_ = (bitField0_ & ~0x00000010); - actionPlansBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getActionPlansFieldBuilder() : null; - } else { - actionPlansBuilder_.addAllMessages(other.actionPlans_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Issues.Operation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Operation) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.Issues.Issue issue_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.Issue, org.sonarqube.ws.Issues.Issue.Builder, org.sonarqube.ws.Issues.IssueOrBuilder> issueBuilder_; - /** - * optional .sonarqube.ws.issues.Issue issue = 1; - */ - public boolean hasIssue() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.issues.Issue issue = 1; - */ - public org.sonarqube.ws.Issues.Issue getIssue() { - if (issueBuilder_ == null) { - return issue_ == null ? org.sonarqube.ws.Issues.Issue.getDefaultInstance() : issue_; - } else { - return issueBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.issues.Issue issue = 1; - */ - public Builder setIssue(org.sonarqube.ws.Issues.Issue value) { - if (issueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - issue_ = value; - onChanged(); - } else { - issueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.issues.Issue issue = 1; - */ - public Builder setIssue( - org.sonarqube.ws.Issues.Issue.Builder builderForValue) { - if (issueBuilder_ == null) { - issue_ = builderForValue.build(); - onChanged(); - } else { - issueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.issues.Issue issue = 1; - */ - public Builder mergeIssue(org.sonarqube.ws.Issues.Issue value) { - if (issueBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - issue_ != null && - issue_ != org.sonarqube.ws.Issues.Issue.getDefaultInstance()) { - issue_ = - org.sonarqube.ws.Issues.Issue.newBuilder(issue_).mergeFrom(value).buildPartial(); - } else { - issue_ = value; - } - onChanged(); - } else { - issueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.issues.Issue issue = 1; - */ - public Builder clearIssue() { - if (issueBuilder_ == null) { - issue_ = null; - onChanged(); - } else { - issueBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.issues.Issue issue = 1; - */ - public org.sonarqube.ws.Issues.Issue.Builder getIssueBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getIssueFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.issues.Issue issue = 1; - */ - public org.sonarqube.ws.Issues.IssueOrBuilder getIssueOrBuilder() { - if (issueBuilder_ != null) { - return issueBuilder_.getMessageOrBuilder(); - } else { - return issue_ == null ? - org.sonarqube.ws.Issues.Issue.getDefaultInstance() : issue_; - } - } - /** - * optional .sonarqube.ws.issues.Issue issue = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.Issue, org.sonarqube.ws.Issues.Issue.Builder, org.sonarqube.ws.Issues.IssueOrBuilder> - getIssueFieldBuilder() { - if (issueBuilder_ == null) { - issueBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.Issue, org.sonarqube.ws.Issues.Issue.Builder, org.sonarqube.ws.Issues.IssueOrBuilder>( - getIssue(), - getParentForChildren(), - isClean()); - issue_ = null; - } - return issueBuilder_; - } - - private java.util.List components_ = - java.util.Collections.emptyList(); - private void ensureComponentsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - components_ = new java.util.ArrayList(components_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Component, org.sonarqube.ws.Issues.Component.Builder, org.sonarqube.ws.Issues.ComponentOrBuilder> componentsBuilder_; - - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public java.util.List getComponentsList() { - if (componentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(components_); - } else { - return componentsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public int getComponentsCount() { - if (componentsBuilder_ == null) { - return components_.size(); - } else { - return componentsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public org.sonarqube.ws.Issues.Component getComponents(int index) { - if (componentsBuilder_ == null) { - return components_.get(index); - } else { - return componentsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public Builder setComponents( - int index, org.sonarqube.ws.Issues.Component value) { - if (componentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentsIsMutable(); - components_.set(index, value); - onChanged(); - } else { - componentsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public Builder setComponents( - int index, org.sonarqube.ws.Issues.Component.Builder builderForValue) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - components_.set(index, builderForValue.build()); - onChanged(); - } else { - componentsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public Builder addComponents(org.sonarqube.ws.Issues.Component value) { - if (componentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentsIsMutable(); - components_.add(value); - onChanged(); - } else { - componentsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public Builder addComponents( - int index, org.sonarqube.ws.Issues.Component value) { - if (componentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentsIsMutable(); - components_.add(index, value); - onChanged(); - } else { - componentsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public Builder addComponents( - org.sonarqube.ws.Issues.Component.Builder builderForValue) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - components_.add(builderForValue.build()); - onChanged(); - } else { - componentsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public Builder addComponents( - int index, org.sonarqube.ws.Issues.Component.Builder builderForValue) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - components_.add(index, builderForValue.build()); - onChanged(); - } else { - componentsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public Builder addAllComponents( - java.lang.Iterable values) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, components_); - onChanged(); - } else { - componentsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public Builder clearComponents() { - if (componentsBuilder_ == null) { - components_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - componentsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public Builder removeComponents(int index) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - components_.remove(index); - onChanged(); - } else { - componentsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public org.sonarqube.ws.Issues.Component.Builder getComponentsBuilder( - int index) { - return getComponentsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public org.sonarqube.ws.Issues.ComponentOrBuilder getComponentsOrBuilder( - int index) { - if (componentsBuilder_ == null) { - return components_.get(index); } else { - return componentsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public java.util.List - getComponentsOrBuilderList() { - if (componentsBuilder_ != null) { - return componentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(components_); - } - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public org.sonarqube.ws.Issues.Component.Builder addComponentsBuilder() { - return getComponentsFieldBuilder().addBuilder( - org.sonarqube.ws.Issues.Component.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public org.sonarqube.ws.Issues.Component.Builder addComponentsBuilder( - int index) { - return getComponentsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Issues.Component.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.Component components = 2; - */ - public java.util.List - getComponentsBuilderList() { - return getComponentsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Component, org.sonarqube.ws.Issues.Component.Builder, org.sonarqube.ws.Issues.ComponentOrBuilder> - getComponentsFieldBuilder() { - if (componentsBuilder_ == null) { - componentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Component, org.sonarqube.ws.Issues.Component.Builder, org.sonarqube.ws.Issues.ComponentOrBuilder>( - components_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - components_ = null; - } - return componentsBuilder_; - } - - private java.util.List rules_ = - java.util.Collections.emptyList(); - private void ensureRulesIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - rules_ = new java.util.ArrayList(rules_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder> rulesBuilder_; - - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public java.util.List getRulesList() { - if (rulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(rules_); - } else { - return rulesBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public int getRulesCount() { - if (rulesBuilder_ == null) { - return rules_.size(); - } else { - return rulesBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public org.sonarqube.ws.Common.Rule getRules(int index) { - if (rulesBuilder_ == null) { - return rules_.get(index); - } else { - return rulesBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public Builder setRules( - int index, org.sonarqube.ws.Common.Rule value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.set(index, value); - onChanged(); - } else { - rulesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public Builder setRules( - int index, org.sonarqube.ws.Common.Rule.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.set(index, builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public Builder addRules(org.sonarqube.ws.Common.Rule value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.add(value); - onChanged(); - } else { - rulesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public Builder addRules( - int index, org.sonarqube.ws.Common.Rule value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.add(index, value); - onChanged(); - } else { - rulesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public Builder addRules( - org.sonarqube.ws.Common.Rule.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public Builder addRules( - int index, org.sonarqube.ws.Common.Rule.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(index, builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public Builder addAllRules( - java.lang.Iterable values) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rules_); - onChanged(); - } else { - rulesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public Builder clearRules() { - if (rulesBuilder_ == null) { - rules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - rulesBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public Builder removeRules(int index) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.remove(index); - onChanged(); - } else { - rulesBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public org.sonarqube.ws.Common.Rule.Builder getRulesBuilder( - int index) { - return getRulesFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder( - int index) { - if (rulesBuilder_ == null) { - return rules_.get(index); } else { - return rulesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public java.util.List - getRulesOrBuilderList() { - if (rulesBuilder_ != null) { - return rulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rules_); - } - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public org.sonarqube.ws.Common.Rule.Builder addRulesBuilder() { - return getRulesFieldBuilder().addBuilder( - org.sonarqube.ws.Common.Rule.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public org.sonarqube.ws.Common.Rule.Builder addRulesBuilder( - int index) { - return getRulesFieldBuilder().addBuilder( - index, org.sonarqube.ws.Common.Rule.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.commons.Rule rules = 3; - */ - public java.util.List - getRulesBuilderList() { - return getRulesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder> - getRulesFieldBuilder() { - if (rulesBuilder_ == null) { - rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder>( - rules_, - ((bitField0_ & 0x00000004) == 0x00000004), - getParentForChildren(), - isClean()); - rules_ = null; - } - return rulesBuilder_; - } - - private java.util.List users_ = - java.util.Collections.emptyList(); - private void ensureUsersIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - users_ = new java.util.ArrayList(users_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder> usersBuilder_; - - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public java.util.List getUsersList() { - if (usersBuilder_ == null) { - return java.util.Collections.unmodifiableList(users_); - } else { - return usersBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public int getUsersCount() { - if (usersBuilder_ == null) { - return users_.size(); - } else { - return usersBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public org.sonarqube.ws.Common.User getUsers(int index) { - if (usersBuilder_ == null) { - return users_.get(index); - } else { - return usersBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public Builder setUsers( - int index, org.sonarqube.ws.Common.User value) { - if (usersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUsersIsMutable(); - users_.set(index, value); - onChanged(); - } else { - usersBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public Builder setUsers( - int index, org.sonarqube.ws.Common.User.Builder builderForValue) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.set(index, builderForValue.build()); - onChanged(); - } else { - usersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public Builder addUsers(org.sonarqube.ws.Common.User value) { - if (usersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUsersIsMutable(); - users_.add(value); - onChanged(); - } else { - usersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public Builder addUsers( - int index, org.sonarqube.ws.Common.User value) { - if (usersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUsersIsMutable(); - users_.add(index, value); - onChanged(); - } else { - usersBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public Builder addUsers( - org.sonarqube.ws.Common.User.Builder builderForValue) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.add(builderForValue.build()); - onChanged(); - } else { - usersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public Builder addUsers( - int index, org.sonarqube.ws.Common.User.Builder builderForValue) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.add(index, builderForValue.build()); - onChanged(); - } else { - usersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public Builder addAllUsers( - java.lang.Iterable values) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, users_); - onChanged(); - } else { - usersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public Builder clearUsers() { - if (usersBuilder_ == null) { - users_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - usersBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public Builder removeUsers(int index) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.remove(index); - onChanged(); - } else { - usersBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public org.sonarqube.ws.Common.User.Builder getUsersBuilder( - int index) { - return getUsersFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder( - int index) { - if (usersBuilder_ == null) { - return users_.get(index); } else { - return usersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public java.util.List - getUsersOrBuilderList() { - if (usersBuilder_ != null) { - return usersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(users_); - } - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public org.sonarqube.ws.Common.User.Builder addUsersBuilder() { - return getUsersFieldBuilder().addBuilder( - org.sonarqube.ws.Common.User.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public org.sonarqube.ws.Common.User.Builder addUsersBuilder( - int index) { - return getUsersFieldBuilder().addBuilder( - index, org.sonarqube.ws.Common.User.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.commons.User users = 4; - */ - public java.util.List - getUsersBuilderList() { - return getUsersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder> - getUsersFieldBuilder() { - if (usersBuilder_ == null) { - usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder>( - users_, - ((bitField0_ & 0x00000008) == 0x00000008), - getParentForChildren(), - isClean()); - users_ = null; - } - return usersBuilder_; - } - - private java.util.List actionPlans_ = - java.util.Collections.emptyList(); - private void ensureActionPlansIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - actionPlans_ = new java.util.ArrayList(actionPlans_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder> actionPlansBuilder_; - - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public java.util.List getActionPlansList() { - if (actionPlansBuilder_ == null) { - return java.util.Collections.unmodifiableList(actionPlans_); - } else { - return actionPlansBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public int getActionPlansCount() { - if (actionPlansBuilder_ == null) { - return actionPlans_.size(); - } else { - return actionPlansBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index) { - if (actionPlansBuilder_ == null) { - return actionPlans_.get(index); - } else { - return actionPlansBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public Builder setActionPlans( - int index, org.sonarqube.ws.Issues.ActionPlan value) { - if (actionPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionPlansIsMutable(); - actionPlans_.set(index, value); - onChanged(); - } else { - actionPlansBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public Builder setActionPlans( - int index, org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) { - if (actionPlansBuilder_ == null) { - ensureActionPlansIsMutable(); - actionPlans_.set(index, builderForValue.build()); - onChanged(); - } else { - actionPlansBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public Builder addActionPlans(org.sonarqube.ws.Issues.ActionPlan value) { - if (actionPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionPlansIsMutable(); - actionPlans_.add(value); - onChanged(); - } else { - actionPlansBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public Builder addActionPlans( - int index, org.sonarqube.ws.Issues.ActionPlan value) { - if (actionPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionPlansIsMutable(); - actionPlans_.add(index, value); - onChanged(); - } else { - actionPlansBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public Builder addActionPlans( - org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) { - if (actionPlansBuilder_ == null) { - ensureActionPlansIsMutable(); - actionPlans_.add(builderForValue.build()); - onChanged(); - } else { - actionPlansBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public Builder addActionPlans( - int index, org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) { - if (actionPlansBuilder_ == null) { - ensureActionPlansIsMutable(); - actionPlans_.add(index, builderForValue.build()); - onChanged(); - } else { - actionPlansBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public Builder addAllActionPlans( - java.lang.Iterable values) { - if (actionPlansBuilder_ == null) { - ensureActionPlansIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, actionPlans_); - onChanged(); - } else { - actionPlansBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public Builder clearActionPlans() { - if (actionPlansBuilder_ == null) { - actionPlans_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - actionPlansBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public Builder removeActionPlans(int index) { - if (actionPlansBuilder_ == null) { - ensureActionPlansIsMutable(); - actionPlans_.remove(index); - onChanged(); - } else { - actionPlansBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public org.sonarqube.ws.Issues.ActionPlan.Builder getActionPlansBuilder( - int index) { - return getActionPlansFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( - int index) { - if (actionPlansBuilder_ == null) { - return actionPlans_.get(index); } else { - return actionPlansBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public java.util.List - getActionPlansOrBuilderList() { - if (actionPlansBuilder_ != null) { - return actionPlansBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(actionPlans_); - } - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public org.sonarqube.ws.Issues.ActionPlan.Builder addActionPlansBuilder() { - return getActionPlansFieldBuilder().addBuilder( - org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public org.sonarqube.ws.Issues.ActionPlan.Builder addActionPlansBuilder( - int index) { - return getActionPlansFieldBuilder().addBuilder( - index, org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 5; - */ - public java.util.List - getActionPlansBuilderList() { - return getActionPlansFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder> - getActionPlansFieldBuilder() { - if (actionPlansBuilder_ == null) { - actionPlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder>( - actionPlans_, - ((bitField0_ & 0x00000010) == 0x00000010), - getParentForChildren(), - isClean()); - actionPlans_ = null; - } - return actionPlansBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Operation) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Operation) - private static final org.sonarqube.ws.Issues.Operation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Operation(); - } - - public static org.sonarqube.ws.Issues.Operation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Operation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Operation(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Issues.Operation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IssueOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Issue) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string key = 1; - */ - boolean hasKey(); - /** - * optional string key = 1; - */ - java.lang.String getKey(); - /** - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string rule = 2; - */ - boolean hasRule(); - /** - * optional string rule = 2; - */ - java.lang.String getRule(); - /** - * optional string rule = 2; - */ - com.google.protobuf.ByteString - getRuleBytes(); - - /** - * optional .sonarqube.ws.commons.Severity severity = 3; - */ - boolean hasSeverity(); - /** - * optional .sonarqube.ws.commons.Severity severity = 3; - */ - org.sonarqube.ws.Common.Severity getSeverity(); - - /** - * optional string component = 4; - */ - boolean hasComponent(); - /** - * optional string component = 4; - */ - java.lang.String getComponent(); - /** - * optional string component = 4; - */ - com.google.protobuf.ByteString - getComponentBytes(); - - /** - * optional int64 componentId = 5; - */ - boolean hasComponentId(); - /** - * optional int64 componentId = 5; - */ - long getComponentId(); - - /** - * optional string project = 6; - */ - boolean hasProject(); - /** - * optional string project = 6; - */ - java.lang.String getProject(); - /** - * optional string project = 6; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - * optional string subProject = 7; - */ - boolean hasSubProject(); - /** - * optional string subProject = 7; - */ - java.lang.String getSubProject(); - /** - * optional string subProject = 7; - */ - com.google.protobuf.ByteString - getSubProjectBytes(); - - /** - * optional int32 line = 8; - */ - boolean hasLine(); - /** - * optional int32 line = 8; - */ - int getLine(); - - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - boolean hasTextRange(); - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - org.sonarqube.ws.Common.TextRange getTextRange(); - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder(); - - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - java.util.List - getFlowsList(); - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - org.sonarqube.ws.Issues.Flow getFlows(int index); - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - int getFlowsCount(); - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - java.util.List - getFlowsOrBuilderList(); - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - org.sonarqube.ws.Issues.FlowOrBuilder getFlowsOrBuilder( - int index); - - /** - * optional string resolution = 11; - */ - boolean hasResolution(); - /** - * optional string resolution = 11; - */ - java.lang.String getResolution(); - /** - * optional string resolution = 11; - */ - com.google.protobuf.ByteString - getResolutionBytes(); - - /** - * optional string status = 12; - */ - boolean hasStatus(); - /** - * optional string status = 12; - */ - java.lang.String getStatus(); - /** - * optional string status = 12; - */ - com.google.protobuf.ByteString - getStatusBytes(); - - /** - * optional string message = 13; - */ - boolean hasMessage(); - /** - * optional string message = 13; - */ - java.lang.String getMessage(); - /** - * optional string message = 13; - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - * optional string debt = 14; - */ - boolean hasDebt(); - /** - * optional string debt = 14; - */ - java.lang.String getDebt(); - /** - * optional string debt = 14; - */ - com.google.protobuf.ByteString - getDebtBytes(); - - /** - * optional string assignee = 15; - */ - boolean hasAssignee(); - /** - * optional string assignee = 15; - */ - java.lang.String getAssignee(); - /** - * optional string assignee = 15; - */ - com.google.protobuf.ByteString - getAssigneeBytes(); - - /** - * optional string reporter = 16; - */ - boolean hasReporter(); - /** - * optional string reporter = 16; - */ - java.lang.String getReporter(); - /** - * optional string reporter = 16; - */ - com.google.protobuf.ByteString - getReporterBytes(); - - /** - * optional string author = 17; - * - *
-     * SCM login of the committer who introduced the issue
-     * 
- */ - boolean hasAuthor(); - /** - * optional string author = 17; - * - *
-     * SCM login of the committer who introduced the issue
-     * 
- */ - java.lang.String getAuthor(); - /** - * optional string author = 17; - * - *
-     * SCM login of the committer who introduced the issue
-     * 
- */ - com.google.protobuf.ByteString - getAuthorBytes(); - - /** - * optional string actionPlan = 18; - */ - boolean hasActionPlan(); - /** - * optional string actionPlan = 18; - */ - java.lang.String getActionPlan(); - /** - * optional string actionPlan = 18; - */ - com.google.protobuf.ByteString - getActionPlanBytes(); - - /** - * repeated string tags = 19; - */ - com.google.protobuf.ProtocolStringList - getTagsList(); - /** - * repeated string tags = 19; - */ - int getTagsCount(); - /** - * repeated string tags = 19; - */ - java.lang.String getTags(int index); - /** - * repeated string tags = 19; - */ - com.google.protobuf.ByteString - getTagsBytes(int index); - - /** - * optional .sonarqube.ws.issues.Transitions transitions = 20; - * - *
-     * the transitions allowed for the requesting user.
-     * 
- */ - boolean hasTransitions(); - /** - * optional .sonarqube.ws.issues.Transitions transitions = 20; - * - *
-     * the transitions allowed for the requesting user.
-     * 
- */ - org.sonarqube.ws.Issues.Transitions getTransitions(); - /** - * optional .sonarqube.ws.issues.Transitions transitions = 20; - * - *
-     * the transitions allowed for the requesting user.
-     * 
- */ - org.sonarqube.ws.Issues.TransitionsOrBuilder getTransitionsOrBuilder(); - - /** - * optional .sonarqube.ws.issues.Actions actions = 21; - * - *
-     * the actions allowed for the requesting user.
-     * 
- */ - boolean hasActions(); - /** - * optional .sonarqube.ws.issues.Actions actions = 21; - * - *
-     * the actions allowed for the requesting user.
-     * 
- */ - org.sonarqube.ws.Issues.Actions getActions(); - /** - * optional .sonarqube.ws.issues.Actions actions = 21; - * - *
-     * the actions allowed for the requesting user.
-     * 
- */ - org.sonarqube.ws.Issues.ActionsOrBuilder getActionsOrBuilder(); - - /** - * optional .sonarqube.ws.issues.Comments comments = 22; - */ - boolean hasComments(); - /** - * optional .sonarqube.ws.issues.Comments comments = 22; - */ - org.sonarqube.ws.Issues.Comments getComments(); - /** - * optional .sonarqube.ws.issues.Comments comments = 22; - */ - org.sonarqube.ws.Issues.CommentsOrBuilder getCommentsOrBuilder(); - - /** - * optional string creationDate = 23; - */ - boolean hasCreationDate(); - /** - * optional string creationDate = 23; - */ - java.lang.String getCreationDate(); - /** - * optional string creationDate = 23; - */ - com.google.protobuf.ByteString - getCreationDateBytes(); - - /** - * optional string updateDate = 24; - */ - boolean hasUpdateDate(); - /** - * optional string updateDate = 24; - */ - java.lang.String getUpdateDate(); - /** - * optional string updateDate = 24; - */ - com.google.protobuf.ByteString - getUpdateDateBytes(); - - /** - * optional string fUpdateAge = 25; - */ - boolean hasFUpdateAge(); - /** - * optional string fUpdateAge = 25; - */ - java.lang.String getFUpdateAge(); - /** - * optional string fUpdateAge = 25; - */ - com.google.protobuf.ByteString - getFUpdateAgeBytes(); - - /** - * optional string closeDate = 26; - */ - boolean hasCloseDate(); - /** - * optional string closeDate = 26; - */ - java.lang.String getCloseDate(); - /** - * optional string closeDate = 26; - */ - com.google.protobuf.ByteString - getCloseDateBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.issues.Issue} - */ - public static final class Issue extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Issue) - IssueOrBuilder { - // Use Issue.newBuilder() to construct. - private Issue(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Issue() { - key_ = ""; - rule_ = ""; - severity_ = 0; - component_ = ""; - componentId_ = 0L; - project_ = ""; - subProject_ = ""; - line_ = 0; - flows_ = java.util.Collections.emptyList(); - resolution_ = ""; - status_ = ""; - message_ = ""; - debt_ = ""; - assignee_ = ""; - reporter_ = ""; - author_ = ""; - actionPlan_ = ""; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - creationDate_ = ""; - updateDate_ = ""; - fUpdateAge_ = ""; - closeDate_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Issue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - rule_ = bs; - break; - } - case 24: { - int rawValue = input.readEnum(); - org.sonarqube.ws.Common.Severity value = org.sonarqube.ws.Common.Severity.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(3, rawValue); - } else { - bitField0_ |= 0x00000004; - severity_ = rawValue; - } - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - component_ = bs; - break; - } - case 40: { - bitField0_ |= 0x00000010; - componentId_ = input.readInt64(); - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - project_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - subProject_ = bs; - break; - } - case 64: { - bitField0_ |= 0x00000080; - line_ = input.readInt32(); - break; - } - case 74: { - org.sonarqube.ws.Common.TextRange.Builder subBuilder = null; - if (((bitField0_ & 0x00000100) == 0x00000100)) { - subBuilder = textRange_.toBuilder(); - } - textRange_ = input.readMessage(org.sonarqube.ws.Common.TextRange.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textRange_); - textRange_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000100; - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { - flows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000200; - } - flows_.add(input.readMessage(org.sonarqube.ws.Issues.Flow.PARSER, extensionRegistry)); - break; - } - case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000200; - resolution_ = bs; - break; - } - case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000400; - status_ = bs; - break; - } - case 106: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000800; - message_ = bs; - break; - } - case 114: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00001000; - debt_ = bs; - break; - } - case 122: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00002000; - assignee_ = bs; - break; - } - case 130: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00004000; - reporter_ = bs; - break; - } - case 138: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00008000; - author_ = bs; - break; - } - case 146: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00010000; - actionPlan_ = bs; - break; - } - case 154: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00040000; - } - tags_.add(bs); - break; - } - case 162: { - org.sonarqube.ws.Issues.Transitions.Builder subBuilder = null; - if (((bitField0_ & 0x00020000) == 0x00020000)) { - subBuilder = transitions_.toBuilder(); - } - transitions_ = input.readMessage(org.sonarqube.ws.Issues.Transitions.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(transitions_); - transitions_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00020000; - break; - } - case 170: { - org.sonarqube.ws.Issues.Actions.Builder subBuilder = null; - if (((bitField0_ & 0x00040000) == 0x00040000)) { - subBuilder = actions_.toBuilder(); - } - actions_ = input.readMessage(org.sonarqube.ws.Issues.Actions.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(actions_); - actions_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00040000; - break; - } - case 178: { - org.sonarqube.ws.Issues.Comments.Builder subBuilder = null; - if (((bitField0_ & 0x00080000) == 0x00080000)) { - subBuilder = comments_.toBuilder(); - } - comments_ = input.readMessage(org.sonarqube.ws.Issues.Comments.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(comments_); - comments_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00080000; - break; - } - case 186: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00100000; - creationDate_ = bs; - break; - } - case 194: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00200000; - updateDate_ = bs; - break; - } - case 202: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00400000; - fUpdateAge_ = bs; - break; - } - case 210: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00800000; - closeDate_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { - flows_ = java.util.Collections.unmodifiableList(flows_); - } - if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) { - tags_ = tags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Issue_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Issue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Issue.class, org.sonarqube.ws.Issues.Issue.Builder.class); - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RULE_FIELD_NUMBER = 2; - private volatile java.lang.Object rule_; - /** - * optional string rule = 2; - */ - public boolean hasRule() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string rule = 2; - */ - public java.lang.String getRule() { - java.lang.Object ref = rule_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - rule_ = s; - } - return s; - } - } - /** - * optional string rule = 2; - */ - public com.google.protobuf.ByteString - getRuleBytes() { - java.lang.Object ref = rule_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rule_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SEVERITY_FIELD_NUMBER = 3; - private int severity_; - /** - * optional .sonarqube.ws.commons.Severity severity = 3; - */ - public boolean hasSeverity() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .sonarqube.ws.commons.Severity severity = 3; - */ - public org.sonarqube.ws.Common.Severity getSeverity() { - org.sonarqube.ws.Common.Severity result = org.sonarqube.ws.Common.Severity.valueOf(severity_); - return result == null ? org.sonarqube.ws.Common.Severity.INFO : result; - } - - public static final int COMPONENT_FIELD_NUMBER = 4; - private volatile java.lang.Object component_; - /** - * optional string component = 4; - */ - public boolean hasComponent() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string component = 4; - */ - public java.lang.String getComponent() { - java.lang.Object ref = component_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - component_ = s; - } - return s; - } - } - /** - * optional string component = 4; - */ - public com.google.protobuf.ByteString - getComponentBytes() { - java.lang.Object ref = component_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - component_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMPONENTID_FIELD_NUMBER = 5; - private long componentId_; - /** - * optional int64 componentId = 5; - */ - public boolean hasComponentId() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int64 componentId = 5; - */ - public long getComponentId() { - return componentId_; - } - - public static final int PROJECT_FIELD_NUMBER = 6; - private volatile java.lang.Object project_; - /** - * optional string project = 6; - */ - public boolean hasProject() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string project = 6; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - project_ = s; - } - return s; - } - } - /** - * optional string project = 6; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBPROJECT_FIELD_NUMBER = 7; - private volatile java.lang.Object subProject_; - /** - * optional string subProject = 7; - */ - public boolean hasSubProject() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string subProject = 7; - */ - public java.lang.String getSubProject() { - java.lang.Object ref = subProject_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - subProject_ = s; - } - return s; - } - } - /** - * optional string subProject = 7; - */ - public com.google.protobuf.ByteString - getSubProjectBytes() { - java.lang.Object ref = subProject_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subProject_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LINE_FIELD_NUMBER = 8; - private int line_; - /** - * optional int32 line = 8; - */ - public boolean hasLine() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional int32 line = 8; - */ - public int getLine() { - return line_; - } - - public static final int TEXTRANGE_FIELD_NUMBER = 9; - private org.sonarqube.ws.Common.TextRange textRange_; - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public org.sonarqube.ws.Common.TextRange getTextRange() { - return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder() { - return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; - } - - public static final int FLOWS_FIELD_NUMBER = 10; - private java.util.List flows_; - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public java.util.List getFlowsList() { - return flows_; - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public java.util.List - getFlowsOrBuilderList() { - return flows_; - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public int getFlowsCount() { - return flows_.size(); - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public org.sonarqube.ws.Issues.Flow getFlows(int index) { - return flows_.get(index); - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public org.sonarqube.ws.Issues.FlowOrBuilder getFlowsOrBuilder( - int index) { - return flows_.get(index); - } - - public static final int RESOLUTION_FIELD_NUMBER = 11; - private volatile java.lang.Object resolution_; - /** - * optional string resolution = 11; - */ - public boolean hasResolution() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional string resolution = 11; - */ - public java.lang.String getResolution() { - java.lang.Object ref = resolution_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - resolution_ = s; - } - return s; - } - } - /** - * optional string resolution = 11; - */ - public com.google.protobuf.ByteString - getResolutionBytes() { - java.lang.Object ref = resolution_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resolution_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 12; - private volatile java.lang.Object status_; - /** - * optional string status = 12; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional string status = 12; - */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - status_ = s; - } - return s; - } - } - /** - * optional string status = 12; - */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MESSAGE_FIELD_NUMBER = 13; - private volatile java.lang.Object message_; - /** - * optional string message = 13; - */ - public boolean hasMessage() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional string message = 13; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - message_ = s; - } - return s; - } - } - /** - * optional string message = 13; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEBT_FIELD_NUMBER = 14; - private volatile java.lang.Object debt_; - /** - * optional string debt = 14; - */ - public boolean hasDebt() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * optional string debt = 14; - */ - public java.lang.String getDebt() { - java.lang.Object ref = debt_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - debt_ = s; - } - return s; - } - } - /** - * optional string debt = 14; - */ - public com.google.protobuf.ByteString - getDebtBytes() { - java.lang.Object ref = debt_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ASSIGNEE_FIELD_NUMBER = 15; - private volatile java.lang.Object assignee_; - /** - * optional string assignee = 15; - */ - public boolean hasAssignee() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - /** - * optional string assignee = 15; - */ - public java.lang.String getAssignee() { - java.lang.Object ref = assignee_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - assignee_ = s; - } - return s; - } - } - /** - * optional string assignee = 15; - */ - public com.google.protobuf.ByteString - getAssigneeBytes() { - java.lang.Object ref = assignee_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assignee_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REPORTER_FIELD_NUMBER = 16; - private volatile java.lang.Object reporter_; - /** - * optional string reporter = 16; - */ - public boolean hasReporter() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - /** - * optional string reporter = 16; - */ - public java.lang.String getReporter() { - java.lang.Object ref = reporter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - reporter_ = s; - } - return s; - } - } - /** - * optional string reporter = 16; - */ - public com.google.protobuf.ByteString - getReporterBytes() { - java.lang.Object ref = reporter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reporter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUTHOR_FIELD_NUMBER = 17; - private volatile java.lang.Object author_; - /** - * optional string author = 17; - * - *
-     * SCM login of the committer who introduced the issue
-     * 
- */ - public boolean hasAuthor() { - return ((bitField0_ & 0x00008000) == 0x00008000); - } - /** - * optional string author = 17; - * - *
-     * SCM login of the committer who introduced the issue
-     * 
- */ - public java.lang.String getAuthor() { - java.lang.Object ref = author_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - author_ = s; - } - return s; - } - } - /** - * optional string author = 17; - * - *
-     * SCM login of the committer who introduced the issue
-     * 
- */ - public com.google.protobuf.ByteString - getAuthorBytes() { - java.lang.Object ref = author_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - author_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACTIONPLAN_FIELD_NUMBER = 18; - private volatile java.lang.Object actionPlan_; - /** - * optional string actionPlan = 18; - */ - public boolean hasActionPlan() { - return ((bitField0_ & 0x00010000) == 0x00010000); - } - /** - * optional string actionPlan = 18; - */ - public java.lang.String getActionPlan() { - java.lang.Object ref = actionPlan_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - actionPlan_ = s; - } - return s; - } - } - /** - * optional string actionPlan = 18; - */ - public com.google.protobuf.ByteString - getActionPlanBytes() { - java.lang.Object ref = actionPlan_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - actionPlan_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TAGS_FIELD_NUMBER = 19; - private com.google.protobuf.LazyStringList tags_; - /** - * repeated string tags = 19; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - * repeated string tags = 19; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 19; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 19; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - - public static final int TRANSITIONS_FIELD_NUMBER = 20; - private org.sonarqube.ws.Issues.Transitions transitions_; - /** - * optional .sonarqube.ws.issues.Transitions transitions = 20; - * - *
-     * the transitions allowed for the requesting user.
-     * 
- */ - public boolean hasTransitions() { - return ((bitField0_ & 0x00020000) == 0x00020000); - } - /** - * optional .sonarqube.ws.issues.Transitions transitions = 20; - * - *
-     * the transitions allowed for the requesting user.
-     * 
- */ - public org.sonarqube.ws.Issues.Transitions getTransitions() { - return transitions_ == null ? org.sonarqube.ws.Issues.Transitions.getDefaultInstance() : transitions_; - } - /** - * optional .sonarqube.ws.issues.Transitions transitions = 20; - * - *
-     * the transitions allowed for the requesting user.
-     * 
- */ - public org.sonarqube.ws.Issues.TransitionsOrBuilder getTransitionsOrBuilder() { - return transitions_ == null ? org.sonarqube.ws.Issues.Transitions.getDefaultInstance() : transitions_; - } - - public static final int ACTIONS_FIELD_NUMBER = 21; - private org.sonarqube.ws.Issues.Actions actions_; - /** - * optional .sonarqube.ws.issues.Actions actions = 21; - * - *
-     * the actions allowed for the requesting user.
-     * 
- */ - public boolean hasActions() { - return ((bitField0_ & 0x00040000) == 0x00040000); - } - /** - * optional .sonarqube.ws.issues.Actions actions = 21; - * - *
-     * the actions allowed for the requesting user.
-     * 
- */ - public org.sonarqube.ws.Issues.Actions getActions() { - return actions_ == null ? org.sonarqube.ws.Issues.Actions.getDefaultInstance() : actions_; - } - /** - * optional .sonarqube.ws.issues.Actions actions = 21; - * - *
-     * the actions allowed for the requesting user.
-     * 
- */ - public org.sonarqube.ws.Issues.ActionsOrBuilder getActionsOrBuilder() { - return actions_ == null ? org.sonarqube.ws.Issues.Actions.getDefaultInstance() : actions_; - } - - public static final int COMMENTS_FIELD_NUMBER = 22; - private org.sonarqube.ws.Issues.Comments comments_; - /** - * optional .sonarqube.ws.issues.Comments comments = 22; - */ - public boolean hasComments() { - return ((bitField0_ & 0x00080000) == 0x00080000); - } - /** - * optional .sonarqube.ws.issues.Comments comments = 22; - */ - public org.sonarqube.ws.Issues.Comments getComments() { - return comments_ == null ? org.sonarqube.ws.Issues.Comments.getDefaultInstance() : comments_; - } - /** - * optional .sonarqube.ws.issues.Comments comments = 22; - */ - public org.sonarqube.ws.Issues.CommentsOrBuilder getCommentsOrBuilder() { - return comments_ == null ? org.sonarqube.ws.Issues.Comments.getDefaultInstance() : comments_; - } - - public static final int CREATIONDATE_FIELD_NUMBER = 23; - private volatile java.lang.Object creationDate_; - /** - * optional string creationDate = 23; - */ - public boolean hasCreationDate() { - return ((bitField0_ & 0x00100000) == 0x00100000); - } - /** - * optional string creationDate = 23; - */ - public java.lang.String getCreationDate() { - java.lang.Object ref = creationDate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - creationDate_ = s; - } - return s; - } - } - /** - * optional string creationDate = 23; - */ - public com.google.protobuf.ByteString - getCreationDateBytes() { - java.lang.Object ref = creationDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - creationDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UPDATEDATE_FIELD_NUMBER = 24; - private volatile java.lang.Object updateDate_; - /** - * optional string updateDate = 24; - */ - public boolean hasUpdateDate() { - return ((bitField0_ & 0x00200000) == 0x00200000); - } - /** - * optional string updateDate = 24; - */ - public java.lang.String getUpdateDate() { - java.lang.Object ref = updateDate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - updateDate_ = s; - } - return s; - } - } - /** - * optional string updateDate = 24; - */ - public com.google.protobuf.ByteString - getUpdateDateBytes() { - java.lang.Object ref = updateDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - updateDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FUPDATEAGE_FIELD_NUMBER = 25; - private volatile java.lang.Object fUpdateAge_; - /** - * optional string fUpdateAge = 25; - */ - public boolean hasFUpdateAge() { - return ((bitField0_ & 0x00400000) == 0x00400000); - } - /** - * optional string fUpdateAge = 25; - */ - public java.lang.String getFUpdateAge() { - java.lang.Object ref = fUpdateAge_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - fUpdateAge_ = s; - } - return s; - } - } - /** - * optional string fUpdateAge = 25; - */ - public com.google.protobuf.ByteString - getFUpdateAgeBytes() { - java.lang.Object ref = fUpdateAge_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fUpdateAge_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLOSEDATE_FIELD_NUMBER = 26; - private volatile java.lang.Object closeDate_; - /** - * optional string closeDate = 26; - */ - public boolean hasCloseDate() { - return ((bitField0_ & 0x00800000) == 0x00800000); - } - /** - * optional string closeDate = 26; - */ - public java.lang.String getCloseDate() { - java.lang.Object ref = closeDate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - closeDate_ = s; - } - return s; - } - } - /** - * optional string closeDate = 26; - */ - public com.google.protobuf.ByteString - getCloseDateBytes() { - java.lang.Object ref = closeDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - closeDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getRuleBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, severity_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getComponentBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt64(5, componentId_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getProjectBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getSubProjectBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeInt32(8, line_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(9, getTextRange()); - } - for (int i = 0; i < flows_.size(); i++) { - output.writeMessage(10, flows_.get(i)); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(11, getResolutionBytes()); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(12, getStatusBytes()); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBytes(13, getMessageBytes()); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeBytes(14, getDebtBytes()); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeBytes(15, getAssigneeBytes()); - } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeBytes(16, getReporterBytes()); - } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - output.writeBytes(17, getAuthorBytes()); - } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - output.writeBytes(18, getActionPlanBytes()); - } - for (int i = 0; i < tags_.size(); i++) { - output.writeBytes(19, tags_.getByteString(i)); - } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - output.writeMessage(20, getTransitions()); - } - if (((bitField0_ & 0x00040000) == 0x00040000)) { - output.writeMessage(21, getActions()); - } - if (((bitField0_ & 0x00080000) == 0x00080000)) { - output.writeMessage(22, getComments()); - } - if (((bitField0_ & 0x00100000) == 0x00100000)) { - output.writeBytes(23, getCreationDateBytes()); - } - if (((bitField0_ & 0x00200000) == 0x00200000)) { - output.writeBytes(24, getUpdateDateBytes()); - } - if (((bitField0_ & 0x00400000) == 0x00400000)) { - output.writeBytes(25, getFUpdateAgeBytes()); - } - if (((bitField0_ & 0x00800000) == 0x00800000)) { - output.writeBytes(26, getCloseDateBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getRuleBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, severity_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getComponentBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, componentId_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getProjectBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getSubProjectBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, line_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getTextRange()); - } - for (int i = 0; i < flows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, flows_.get(i)); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getResolutionBytes()); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getStatusBytes()); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(13, getMessageBytes()); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, getDebtBytes()); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(15, getAssigneeBytes()); - } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(16, getReporterBytes()); - } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(17, getAuthorBytes()); - } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(18, getActionPlanBytes()); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(tags_.getByteString(i)); - } - size += dataSize; - size += 2 * getTagsList().size(); - } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getTransitions()); - } - if (((bitField0_ & 0x00040000) == 0x00040000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getActions()); - } - if (((bitField0_ & 0x00080000) == 0x00080000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getComments()); - } - if (((bitField0_ & 0x00100000) == 0x00100000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(23, getCreationDateBytes()); - } - if (((bitField0_ & 0x00200000) == 0x00200000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(24, getUpdateDateBytes()); - } - if (((bitField0_ & 0x00400000) == 0x00400000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(25, getFUpdateAgeBytes()); - } - if (((bitField0_ & 0x00800000) == 0x00800000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(26, getCloseDateBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Issue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Issue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Issue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Issue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Issue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Issue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Issue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Issues.Issue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Issue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Issue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Issues.Issue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.issues.Issue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Issue) - org.sonarqube.ws.Issues.IssueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Issue_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Issue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Issue.class, org.sonarqube.ws.Issues.Issue.Builder.class); - } - - // Construct using org.sonarqube.ws.Issues.Issue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getTextRangeFieldBuilder(); - getFlowsFieldBuilder(); - getTransitionsFieldBuilder(); - getActionsFieldBuilder(); - getCommentsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - rule_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - severity_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); - component_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - componentId_ = 0L; - bitField0_ = (bitField0_ & ~0x00000010); - project_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - subProject_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); - line_ = 0; - bitField0_ = (bitField0_ & ~0x00000080); - if (textRangeBuilder_ == null) { - textRange_ = null; - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - if (flowsBuilder_ == null) { - flows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - } else { - flowsBuilder_.clear(); - } - resolution_ = ""; - bitField0_ = (bitField0_ & ~0x00000400); - status_ = ""; - bitField0_ = (bitField0_ & ~0x00000800); - message_ = ""; - bitField0_ = (bitField0_ & ~0x00001000); - debt_ = ""; - bitField0_ = (bitField0_ & ~0x00002000); - assignee_ = ""; - bitField0_ = (bitField0_ & ~0x00004000); - reporter_ = ""; - bitField0_ = (bitField0_ & ~0x00008000); - author_ = ""; - bitField0_ = (bitField0_ & ~0x00010000); - actionPlan_ = ""; - bitField0_ = (bitField0_ & ~0x00020000); - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00040000); - if (transitionsBuilder_ == null) { - transitions_ = null; - } else { - transitionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00080000); - if (actionsBuilder_ == null) { - actions_ = null; - } else { - actionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00100000); - if (commentsBuilder_ == null) { - comments_ = null; - } else { - commentsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00200000); - creationDate_ = ""; - bitField0_ = (bitField0_ & ~0x00400000); - updateDate_ = ""; - bitField0_ = (bitField0_ & ~0x00800000); - fUpdateAge_ = ""; - bitField0_ = (bitField0_ & ~0x01000000); - closeDate_ = ""; - bitField0_ = (bitField0_ & ~0x02000000); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Issue_descriptor; - } - - public org.sonarqube.ws.Issues.Issue getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Issue.getDefaultInstance(); - } - - public org.sonarqube.ws.Issues.Issue build() { - org.sonarqube.ws.Issues.Issue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Issues.Issue buildPartial() { - org.sonarqube.ws.Issues.Issue result = new org.sonarqube.ws.Issues.Issue(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.rule_ = rule_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.severity_ = severity_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.component_ = component_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.componentId_ = componentId_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.project_ = project_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.subProject_ = subProject_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.line_ = line_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - if (textRangeBuilder_ == null) { - result.textRange_ = textRange_; - } else { - result.textRange_ = textRangeBuilder_.build(); - } - if (flowsBuilder_ == null) { - if (((bitField0_ & 0x00000200) == 0x00000200)) { - flows_ = java.util.Collections.unmodifiableList(flows_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.flows_ = flows_; - } else { - result.flows_ = flowsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000200; - } - result.resolution_ = resolution_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000400; - } - result.status_ = status_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00000800; - } - result.message_ = message_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { - to_bitField0_ |= 0x00001000; - } - result.debt_ = debt_; - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { - to_bitField0_ |= 0x00002000; - } - result.assignee_ = assignee_; - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { - to_bitField0_ |= 0x00004000; - } - result.reporter_ = reporter_; - if (((from_bitField0_ & 0x00010000) == 0x00010000)) { - to_bitField0_ |= 0x00008000; - } - result.author_ = author_; - if (((from_bitField0_ & 0x00020000) == 0x00020000)) { - to_bitField0_ |= 0x00010000; - } - result.actionPlan_ = actionPlan_; - if (((bitField0_ & 0x00040000) == 0x00040000)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00040000); - } - result.tags_ = tags_; - if (((from_bitField0_ & 0x00080000) == 0x00080000)) { - to_bitField0_ |= 0x00020000; - } - if (transitionsBuilder_ == null) { - result.transitions_ = transitions_; - } else { - result.transitions_ = transitionsBuilder_.build(); - } - if (((from_bitField0_ & 0x00100000) == 0x00100000)) { - to_bitField0_ |= 0x00040000; - } - if (actionsBuilder_ == null) { - result.actions_ = actions_; - } else { - result.actions_ = actionsBuilder_.build(); - } - if (((from_bitField0_ & 0x00200000) == 0x00200000)) { - to_bitField0_ |= 0x00080000; - } - if (commentsBuilder_ == null) { - result.comments_ = comments_; - } else { - result.comments_ = commentsBuilder_.build(); - } - if (((from_bitField0_ & 0x00400000) == 0x00400000)) { - to_bitField0_ |= 0x00100000; - } - result.creationDate_ = creationDate_; - if (((from_bitField0_ & 0x00800000) == 0x00800000)) { - to_bitField0_ |= 0x00200000; - } - result.updateDate_ = updateDate_; - if (((from_bitField0_ & 0x01000000) == 0x01000000)) { - to_bitField0_ |= 0x00400000; - } - result.fUpdateAge_ = fUpdateAge_; - if (((from_bitField0_ & 0x02000000) == 0x02000000)) { - to_bitField0_ |= 0x00800000; - } - result.closeDate_ = closeDate_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Issue) { - return mergeFrom((org.sonarqube.ws.Issues.Issue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Issues.Issue other) { - if (other == org.sonarqube.ws.Issues.Issue.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasRule()) { - bitField0_ |= 0x00000002; - rule_ = other.rule_; - onChanged(); - } - if (other.hasSeverity()) { - setSeverity(other.getSeverity()); - } - if (other.hasComponent()) { - bitField0_ |= 0x00000008; - component_ = other.component_; - onChanged(); - } - if (other.hasComponentId()) { - setComponentId(other.getComponentId()); - } - if (other.hasProject()) { - bitField0_ |= 0x00000020; - project_ = other.project_; - onChanged(); - } - if (other.hasSubProject()) { - bitField0_ |= 0x00000040; - subProject_ = other.subProject_; - onChanged(); - } - if (other.hasLine()) { - setLine(other.getLine()); - } - if (other.hasTextRange()) { - mergeTextRange(other.getTextRange()); - } - if (flowsBuilder_ == null) { - if (!other.flows_.isEmpty()) { - if (flows_.isEmpty()) { - flows_ = other.flows_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureFlowsIsMutable(); - flows_.addAll(other.flows_); - } - onChanged(); - } - } else { - if (!other.flows_.isEmpty()) { - if (flowsBuilder_.isEmpty()) { - flowsBuilder_.dispose(); - flowsBuilder_ = null; - flows_ = other.flows_; - bitField0_ = (bitField0_ & ~0x00000200); - flowsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getFlowsFieldBuilder() : null; - } else { - flowsBuilder_.addAllMessages(other.flows_); - } - } - } - if (other.hasResolution()) { - bitField0_ |= 0x00000400; - resolution_ = other.resolution_; - onChanged(); - } - if (other.hasStatus()) { - bitField0_ |= 0x00000800; - status_ = other.status_; - onChanged(); - } - if (other.hasMessage()) { - bitField0_ |= 0x00001000; - message_ = other.message_; - onChanged(); - } - if (other.hasDebt()) { - bitField0_ |= 0x00002000; - debt_ = other.debt_; - onChanged(); - } - if (other.hasAssignee()) { - bitField0_ |= 0x00004000; - assignee_ = other.assignee_; - onChanged(); - } - if (other.hasReporter()) { - bitField0_ |= 0x00008000; - reporter_ = other.reporter_; - onChanged(); - } - if (other.hasAuthor()) { - bitField0_ |= 0x00010000; - author_ = other.author_; - onChanged(); - } - if (other.hasActionPlan()) { - bitField0_ |= 0x00020000; - actionPlan_ = other.actionPlan_; - onChanged(); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00040000); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - if (other.hasTransitions()) { - mergeTransitions(other.getTransitions()); - } - if (other.hasActions()) { - mergeActions(other.getActions()); - } - if (other.hasComments()) { - mergeComments(other.getComments()); - } - if (other.hasCreationDate()) { - bitField0_ |= 0x00400000; - creationDate_ = other.creationDate_; - onChanged(); - } - if (other.hasUpdateDate()) { - bitField0_ |= 0x00800000; - updateDate_ = other.updateDate_; - onChanged(); - } - if (other.hasFUpdateAge()) { - bitField0_ |= 0x01000000; - fUpdateAge_ = other.fUpdateAge_; - onChanged(); - } - if (other.hasCloseDate()) { - bitField0_ |= 0x02000000; - closeDate_ = other.closeDate_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Issues.Issue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Issue) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object rule_ = ""; - /** - * optional string rule = 2; - */ - public boolean hasRule() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string rule = 2; - */ - public java.lang.String getRule() { - java.lang.Object ref = rule_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - rule_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string rule = 2; - */ - public com.google.protobuf.ByteString - getRuleBytes() { - java.lang.Object ref = rule_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rule_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string rule = 2; - */ - public Builder setRule( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - rule_ = value; - onChanged(); - return this; - } - /** - * optional string rule = 2; - */ - public Builder clearRule() { - bitField0_ = (bitField0_ & ~0x00000002); - rule_ = getDefaultInstance().getRule(); - onChanged(); - return this; - } - /** - * optional string rule = 2; - */ - public Builder setRuleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - rule_ = value; - onChanged(); - return this; - } - - private int severity_ = 0; - /** - * optional .sonarqube.ws.commons.Severity severity = 3; - */ - public boolean hasSeverity() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional .sonarqube.ws.commons.Severity severity = 3; - */ - public org.sonarqube.ws.Common.Severity getSeverity() { - org.sonarqube.ws.Common.Severity result = org.sonarqube.ws.Common.Severity.valueOf(severity_); - return result == null ? org.sonarqube.ws.Common.Severity.INFO : result; - } - /** - * optional .sonarqube.ws.commons.Severity severity = 3; - */ - public Builder setSeverity(org.sonarqube.ws.Common.Severity value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - severity_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .sonarqube.ws.commons.Severity severity = 3; - */ - public Builder clearSeverity() { - bitField0_ = (bitField0_ & ~0x00000004); - severity_ = 0; - onChanged(); - return this; - } - - private java.lang.Object component_ = ""; - /** - * optional string component = 4; - */ - public boolean hasComponent() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string component = 4; - */ - public java.lang.String getComponent() { - java.lang.Object ref = component_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - component_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string component = 4; - */ - public com.google.protobuf.ByteString - getComponentBytes() { - java.lang.Object ref = component_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - component_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string component = 4; - */ - public Builder setComponent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - component_ = value; - onChanged(); - return this; - } - /** - * optional string component = 4; - */ - public Builder clearComponent() { - bitField0_ = (bitField0_ & ~0x00000008); - component_ = getDefaultInstance().getComponent(); - onChanged(); - return this; - } - /** - * optional string component = 4; - */ - public Builder setComponentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - component_ = value; - onChanged(); - return this; - } - - private long componentId_ ; - /** - * optional int64 componentId = 5; - */ - public boolean hasComponentId() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int64 componentId = 5; - */ - public long getComponentId() { - return componentId_; - } - /** - * optional int64 componentId = 5; - */ - public Builder setComponentId(long value) { - bitField0_ |= 0x00000010; - componentId_ = value; - onChanged(); - return this; - } - /** - * optional int64 componentId = 5; - */ - public Builder clearComponentId() { - bitField0_ = (bitField0_ & ~0x00000010); - componentId_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object project_ = ""; - /** - * optional string project = 6; - */ - public boolean hasProject() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string project = 6; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - project_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string project = 6; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string project = 6; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - project_ = value; - onChanged(); - return this; - } - /** - * optional string project = 6; - */ - public Builder clearProject() { - bitField0_ = (bitField0_ & ~0x00000020); - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - * optional string project = 6; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object subProject_ = ""; - /** - * optional string subProject = 7; - */ - public boolean hasSubProject() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string subProject = 7; - */ - public java.lang.String getSubProject() { - java.lang.Object ref = subProject_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - subProject_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string subProject = 7; - */ - public com.google.protobuf.ByteString - getSubProjectBytes() { - java.lang.Object ref = subProject_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subProject_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string subProject = 7; - */ - public Builder setSubProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - subProject_ = value; - onChanged(); - return this; - } - /** - * optional string subProject = 7; - */ - public Builder clearSubProject() { - bitField0_ = (bitField0_ & ~0x00000040); - subProject_ = getDefaultInstance().getSubProject(); - onChanged(); - return this; - } - /** - * optional string subProject = 7; - */ - public Builder setSubProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - subProject_ = value; - onChanged(); - return this; - } - - private int line_ ; - /** - * optional int32 line = 8; - */ - public boolean hasLine() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional int32 line = 8; - */ - public int getLine() { - return line_; - } - /** - * optional int32 line = 8; - */ - public Builder setLine(int value) { - bitField0_ |= 0x00000080; - line_ = value; - onChanged(); - return this; - } - /** - * optional int32 line = 8; - */ - public Builder clearLine() { - bitField0_ = (bitField0_ & ~0x00000080); - line_ = 0; - onChanged(); - return this; - } - - private org.sonarqube.ws.Common.TextRange textRange_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder> textRangeBuilder_; - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public org.sonarqube.ws.Common.TextRange getTextRange() { - if (textRangeBuilder_ == null) { - return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; - } else { - return textRangeBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public Builder setTextRange(org.sonarqube.ws.Common.TextRange value) { - if (textRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - textRange_ = value; - onChanged(); - } else { - textRangeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - return this; - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public Builder setTextRange( - org.sonarqube.ws.Common.TextRange.Builder builderForValue) { - if (textRangeBuilder_ == null) { - textRange_ = builderForValue.build(); - onChanged(); - } else { - textRangeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - return this; - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public Builder mergeTextRange(org.sonarqube.ws.Common.TextRange value) { - if (textRangeBuilder_ == null) { - if (((bitField0_ & 0x00000100) == 0x00000100) && - textRange_ != null && - textRange_ != org.sonarqube.ws.Common.TextRange.getDefaultInstance()) { - textRange_ = - org.sonarqube.ws.Common.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial(); - } else { - textRange_ = value; - } - onChanged(); - } else { - textRangeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000100; - return this; - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public Builder clearTextRange() { - if (textRangeBuilder_ == null) { - textRange_ = null; - onChanged(); - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - return this; - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public org.sonarqube.ws.Common.TextRange.Builder getTextRangeBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return getTextRangeFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - public org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder() { - if (textRangeBuilder_ != null) { - return textRangeBuilder_.getMessageOrBuilder(); - } else { - return textRange_ == null ? - org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; - } - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 9; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder> - getTextRangeFieldBuilder() { - if (textRangeBuilder_ == null) { - textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder>( - getTextRange(), - getParentForChildren(), - isClean()); - textRange_ = null; - } - return textRangeBuilder_; - } - - private java.util.List flows_ = - java.util.Collections.emptyList(); - private void ensureFlowsIsMutable() { - if (!((bitField0_ & 0x00000200) == 0x00000200)) { - flows_ = new java.util.ArrayList(flows_); - bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Flow, org.sonarqube.ws.Issues.Flow.Builder, org.sonarqube.ws.Issues.FlowOrBuilder> flowsBuilder_; - - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public java.util.List getFlowsList() { - if (flowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(flows_); - } else { - return flowsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public int getFlowsCount() { - if (flowsBuilder_ == null) { - return flows_.size(); - } else { - return flowsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public org.sonarqube.ws.Issues.Flow getFlows(int index) { - if (flowsBuilder_ == null) { - return flows_.get(index); - } else { - return flowsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder setFlows( - int index, org.sonarqube.ws.Issues.Flow value) { - if (flowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlowsIsMutable(); - flows_.set(index, value); - onChanged(); - } else { - flowsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder setFlows( - int index, org.sonarqube.ws.Issues.Flow.Builder builderForValue) { - if (flowsBuilder_ == null) { - ensureFlowsIsMutable(); - flows_.set(index, builderForValue.build()); - onChanged(); - } else { - flowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder addFlows(org.sonarqube.ws.Issues.Flow value) { - if (flowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlowsIsMutable(); - flows_.add(value); - onChanged(); - } else { - flowsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder addFlows( - int index, org.sonarqube.ws.Issues.Flow value) { - if (flowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFlowsIsMutable(); - flows_.add(index, value); - onChanged(); - } else { - flowsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder addFlows( - org.sonarqube.ws.Issues.Flow.Builder builderForValue) { - if (flowsBuilder_ == null) { - ensureFlowsIsMutable(); - flows_.add(builderForValue.build()); - onChanged(); - } else { - flowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder addFlows( - int index, org.sonarqube.ws.Issues.Flow.Builder builderForValue) { - if (flowsBuilder_ == null) { - ensureFlowsIsMutable(); - flows_.add(index, builderForValue.build()); - onChanged(); - } else { - flowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder addAllFlows( - java.lang.Iterable values) { - if (flowsBuilder_ == null) { - ensureFlowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, flows_); - onChanged(); - } else { - flowsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder clearFlows() { - if (flowsBuilder_ == null) { - flows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - } else { - flowsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public Builder removeFlows(int index) { - if (flowsBuilder_ == null) { - ensureFlowsIsMutable(); - flows_.remove(index); - onChanged(); - } else { - flowsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public org.sonarqube.ws.Issues.Flow.Builder getFlowsBuilder( - int index) { - return getFlowsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public org.sonarqube.ws.Issues.FlowOrBuilder getFlowsOrBuilder( - int index) { - if (flowsBuilder_ == null) { - return flows_.get(index); } else { - return flowsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public java.util.List - getFlowsOrBuilderList() { - if (flowsBuilder_ != null) { - return flowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(flows_); - } - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public org.sonarqube.ws.Issues.Flow.Builder addFlowsBuilder() { - return getFlowsFieldBuilder().addBuilder( - org.sonarqube.ws.Issues.Flow.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public org.sonarqube.ws.Issues.Flow.Builder addFlowsBuilder( - int index) { - return getFlowsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Issues.Flow.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.Flow flows = 10; - */ - public java.util.List - getFlowsBuilderList() { - return getFlowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Flow, org.sonarqube.ws.Issues.Flow.Builder, org.sonarqube.ws.Issues.FlowOrBuilder> - getFlowsFieldBuilder() { - if (flowsBuilder_ == null) { - flowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Flow, org.sonarqube.ws.Issues.Flow.Builder, org.sonarqube.ws.Issues.FlowOrBuilder>( - flows_, - ((bitField0_ & 0x00000200) == 0x00000200), - getParentForChildren(), - isClean()); - flows_ = null; - } - return flowsBuilder_; - } - - private java.lang.Object resolution_ = ""; - /** - * optional string resolution = 11; - */ - public boolean hasResolution() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional string resolution = 11; - */ - public java.lang.String getResolution() { - java.lang.Object ref = resolution_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - resolution_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string resolution = 11; - */ - public com.google.protobuf.ByteString - getResolutionBytes() { - java.lang.Object ref = resolution_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resolution_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string resolution = 11; - */ - public Builder setResolution( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - resolution_ = value; - onChanged(); - return this; - } - /** - * optional string resolution = 11; - */ - public Builder clearResolution() { - bitField0_ = (bitField0_ & ~0x00000400); - resolution_ = getDefaultInstance().getResolution(); - onChanged(); - return this; - } - /** - * optional string resolution = 11; - */ - public Builder setResolutionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - resolution_ = value; - onChanged(); - return this; - } - - private java.lang.Object status_ = ""; - /** - * optional string status = 12; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional string status = 12; - */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - status_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string status = 12; - */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string status = 12; - */ - public Builder setStatus( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - status_ = value; - onChanged(); - return this; - } - /** - * optional string status = 12; - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000800); - status_ = getDefaultInstance().getStatus(); - onChanged(); - return this; - } - /** - * optional string status = 12; - */ - public Builder setStatusBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - status_ = value; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - * optional string message = 13; - */ - public boolean hasMessage() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * optional string message = 13; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - message_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string message = 13; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string message = 13; - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; - message_ = value; - onChanged(); - return this; - } - /** - * optional string message = 13; - */ - public Builder clearMessage() { - bitField0_ = (bitField0_ & ~0x00001000); - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - * optional string message = 13; - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00001000; - message_ = value; - onChanged(); - return this; - } - - private java.lang.Object debt_ = ""; - /** - * optional string debt = 14; - */ - public boolean hasDebt() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - /** - * optional string debt = 14; - */ - public java.lang.String getDebt() { - java.lang.Object ref = debt_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - debt_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string debt = 14; - */ - public com.google.protobuf.ByteString - getDebtBytes() { - java.lang.Object ref = debt_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string debt = 14; - */ - public Builder setDebt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00002000; - debt_ = value; - onChanged(); - return this; - } - /** - * optional string debt = 14; - */ - public Builder clearDebt() { - bitField0_ = (bitField0_ & ~0x00002000); - debt_ = getDefaultInstance().getDebt(); - onChanged(); - return this; - } - /** - * optional string debt = 14; - */ - public Builder setDebtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00002000; - debt_ = value; - onChanged(); - return this; - } - - private java.lang.Object assignee_ = ""; - /** - * optional string assignee = 15; - */ - public boolean hasAssignee() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - /** - * optional string assignee = 15; - */ - public java.lang.String getAssignee() { - java.lang.Object ref = assignee_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - assignee_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string assignee = 15; - */ - public com.google.protobuf.ByteString - getAssigneeBytes() { - java.lang.Object ref = assignee_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assignee_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string assignee = 15; - */ - public Builder setAssignee( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; - assignee_ = value; - onChanged(); - return this; - } - /** - * optional string assignee = 15; - */ - public Builder clearAssignee() { - bitField0_ = (bitField0_ & ~0x00004000); - assignee_ = getDefaultInstance().getAssignee(); - onChanged(); - return this; - } - /** - * optional string assignee = 15; - */ - public Builder setAssigneeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00004000; - assignee_ = value; - onChanged(); - return this; - } - - private java.lang.Object reporter_ = ""; - /** - * optional string reporter = 16; - */ - public boolean hasReporter() { - return ((bitField0_ & 0x00008000) == 0x00008000); - } - /** - * optional string reporter = 16; - */ - public java.lang.String getReporter() { - java.lang.Object ref = reporter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - reporter_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string reporter = 16; - */ - public com.google.protobuf.ByteString - getReporterBytes() { - java.lang.Object ref = reporter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reporter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string reporter = 16; - */ - public Builder setReporter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; - reporter_ = value; - onChanged(); - return this; - } - /** - * optional string reporter = 16; - */ - public Builder clearReporter() { - bitField0_ = (bitField0_ & ~0x00008000); - reporter_ = getDefaultInstance().getReporter(); - onChanged(); - return this; - } - /** - * optional string reporter = 16; - */ - public Builder setReporterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00008000; - reporter_ = value; - onChanged(); - return this; - } - - private java.lang.Object author_ = ""; - /** - * optional string author = 17; - * - *
-       * SCM login of the committer who introduced the issue
-       * 
- */ - public boolean hasAuthor() { - return ((bitField0_ & 0x00010000) == 0x00010000); - } - /** - * optional string author = 17; - * - *
-       * SCM login of the committer who introduced the issue
-       * 
- */ - public java.lang.String getAuthor() { - java.lang.Object ref = author_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - author_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string author = 17; - * - *
-       * SCM login of the committer who introduced the issue
-       * 
- */ - public com.google.protobuf.ByteString - getAuthorBytes() { - java.lang.Object ref = author_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - author_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string author = 17; - * - *
-       * SCM login of the committer who introduced the issue
-       * 
- */ - public Builder setAuthor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00010000; - author_ = value; - onChanged(); - return this; - } - /** - * optional string author = 17; - * - *
-       * SCM login of the committer who introduced the issue
-       * 
- */ - public Builder clearAuthor() { - bitField0_ = (bitField0_ & ~0x00010000); - author_ = getDefaultInstance().getAuthor(); - onChanged(); - return this; - } - /** - * optional string author = 17; - * - *
-       * SCM login of the committer who introduced the issue
-       * 
- */ - public Builder setAuthorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00010000; - author_ = value; - onChanged(); - return this; - } - - private java.lang.Object actionPlan_ = ""; - /** - * optional string actionPlan = 18; - */ - public boolean hasActionPlan() { - return ((bitField0_ & 0x00020000) == 0x00020000); - } - /** - * optional string actionPlan = 18; - */ - public java.lang.String getActionPlan() { - java.lang.Object ref = actionPlan_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - actionPlan_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string actionPlan = 18; - */ - public com.google.protobuf.ByteString - getActionPlanBytes() { - java.lang.Object ref = actionPlan_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - actionPlan_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string actionPlan = 18; - */ - public Builder setActionPlan( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; - actionPlan_ = value; - onChanged(); - return this; - } - /** - * optional string actionPlan = 18; - */ - public Builder clearActionPlan() { - bitField0_ = (bitField0_ & ~0x00020000); - actionPlan_ = getDefaultInstance().getActionPlan(); - onChanged(); - return this; - } - /** - * optional string actionPlan = 18; - */ - public Builder setActionPlanBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; - actionPlan_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00040000) == 0x00040000)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00040000; - } - } - /** - * repeated string tags = 19; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - * repeated string tags = 19; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 19; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 19; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - * repeated string tags = 19; - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string tags = 19; - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - * repeated string tags = 19; - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - * repeated string tags = 19; - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00040000); - onChanged(); - return this; - } - /** - * repeated string tags = 19; - */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - - private org.sonarqube.ws.Issues.Transitions transitions_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.Transitions, org.sonarqube.ws.Issues.Transitions.Builder, org.sonarqube.ws.Issues.TransitionsOrBuilder> transitionsBuilder_; - /** - * optional .sonarqube.ws.issues.Transitions transitions = 20; - * - *
-       * the transitions allowed for the requesting user.
-       * 
- */ - public boolean hasTransitions() { - return ((bitField0_ & 0x00080000) == 0x00080000); - } - /** - * optional .sonarqube.ws.issues.Transitions transitions = 20; - * - *
-       * the transitions allowed for the requesting user.
-       * 
- */ - public org.sonarqube.ws.Issues.Transitions getTransitions() { - if (transitionsBuilder_ == null) { - return transitions_ == null ? org.sonarqube.ws.Issues.Transitions.getDefaultInstance() : transitions_; - } else { - return transitionsBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.issues.Transitions transitions = 20; - * - *
-       * the transitions allowed for the requesting user.
-       * 
- */ - public Builder setTransitions(org.sonarqube.ws.Issues.Transitions value) { - if (transitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - transitions_ = value; - onChanged(); - } else { - transitionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00080000; - return this; - } - /** - * optional .sonarqube.ws.issues.Transitions transitions = 20; - * - *
-       * the transitions allowed for the requesting user.
-       * 
- */ - public Builder setTransitions( - org.sonarqube.ws.Issues.Transitions.Builder builderForValue) { - if (transitionsBuilder_ == null) { - transitions_ = builderForValue.build(); - onChanged(); - } else { - transitionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; - return this; - } - /** - * optional .sonarqube.ws.issues.Transitions transitions = 20; - * - *
-       * the transitions allowed for the requesting user.
-       * 
- */ - public Builder mergeTransitions(org.sonarqube.ws.Issues.Transitions value) { - if (transitionsBuilder_ == null) { - if (((bitField0_ & 0x00080000) == 0x00080000) && - transitions_ != null && - transitions_ != org.sonarqube.ws.Issues.Transitions.getDefaultInstance()) { - transitions_ = - org.sonarqube.ws.Issues.Transitions.newBuilder(transitions_).mergeFrom(value).buildPartial(); - } else { - transitions_ = value; - } - onChanged(); - } else { - transitionsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00080000; - return this; - } - /** - * optional .sonarqube.ws.issues.Transitions transitions = 20; - * - *
-       * the transitions allowed for the requesting user.
-       * 
- */ - public Builder clearTransitions() { - if (transitionsBuilder_ == null) { - transitions_ = null; - onChanged(); - } else { - transitionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00080000); - return this; - } - /** - * optional .sonarqube.ws.issues.Transitions transitions = 20; - * - *
-       * the transitions allowed for the requesting user.
-       * 
- */ - public org.sonarqube.ws.Issues.Transitions.Builder getTransitionsBuilder() { - bitField0_ |= 0x00080000; - onChanged(); - return getTransitionsFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.issues.Transitions transitions = 20; - * - *
-       * the transitions allowed for the requesting user.
-       * 
- */ - public org.sonarqube.ws.Issues.TransitionsOrBuilder getTransitionsOrBuilder() { - if (transitionsBuilder_ != null) { - return transitionsBuilder_.getMessageOrBuilder(); - } else { - return transitions_ == null ? - org.sonarqube.ws.Issues.Transitions.getDefaultInstance() : transitions_; - } - } - /** - * optional .sonarqube.ws.issues.Transitions transitions = 20; - * - *
-       * the transitions allowed for the requesting user.
-       * 
- */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.Transitions, org.sonarqube.ws.Issues.Transitions.Builder, org.sonarqube.ws.Issues.TransitionsOrBuilder> - getTransitionsFieldBuilder() { - if (transitionsBuilder_ == null) { - transitionsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.Transitions, org.sonarqube.ws.Issues.Transitions.Builder, org.sonarqube.ws.Issues.TransitionsOrBuilder>( - getTransitions(), - getParentForChildren(), - isClean()); - transitions_ = null; - } - return transitionsBuilder_; - } - - private org.sonarqube.ws.Issues.Actions actions_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.Actions, org.sonarqube.ws.Issues.Actions.Builder, org.sonarqube.ws.Issues.ActionsOrBuilder> actionsBuilder_; - /** - * optional .sonarqube.ws.issues.Actions actions = 21; - * - *
-       * the actions allowed for the requesting user.
-       * 
- */ - public boolean hasActions() { - return ((bitField0_ & 0x00100000) == 0x00100000); - } - /** - * optional .sonarqube.ws.issues.Actions actions = 21; - * - *
-       * the actions allowed for the requesting user.
-       * 
- */ - public org.sonarqube.ws.Issues.Actions getActions() { - if (actionsBuilder_ == null) { - return actions_ == null ? org.sonarqube.ws.Issues.Actions.getDefaultInstance() : actions_; - } else { - return actionsBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.issues.Actions actions = 21; - * - *
-       * the actions allowed for the requesting user.
-       * 
- */ - public Builder setActions(org.sonarqube.ws.Issues.Actions value) { - if (actionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - actions_ = value; - onChanged(); - } else { - actionsBuilder_.setMessage(value); - } - bitField0_ |= 0x00100000; - return this; - } - /** - * optional .sonarqube.ws.issues.Actions actions = 21; - * - *
-       * the actions allowed for the requesting user.
-       * 
- */ - public Builder setActions( - org.sonarqube.ws.Issues.Actions.Builder builderForValue) { - if (actionsBuilder_ == null) { - actions_ = builderForValue.build(); - onChanged(); - } else { - actionsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00100000; - return this; - } - /** - * optional .sonarqube.ws.issues.Actions actions = 21; - * - *
-       * the actions allowed for the requesting user.
-       * 
- */ - public Builder mergeActions(org.sonarqube.ws.Issues.Actions value) { - if (actionsBuilder_ == null) { - if (((bitField0_ & 0x00100000) == 0x00100000) && - actions_ != null && - actions_ != org.sonarqube.ws.Issues.Actions.getDefaultInstance()) { - actions_ = - org.sonarqube.ws.Issues.Actions.newBuilder(actions_).mergeFrom(value).buildPartial(); - } else { - actions_ = value; - } - onChanged(); - } else { - actionsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00100000; - return this; - } - /** - * optional .sonarqube.ws.issues.Actions actions = 21; - * - *
-       * the actions allowed for the requesting user.
-       * 
- */ - public Builder clearActions() { - if (actionsBuilder_ == null) { - actions_ = null; - onChanged(); - } else { - actionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00100000); - return this; - } - /** - * optional .sonarqube.ws.issues.Actions actions = 21; - * - *
-       * the actions allowed for the requesting user.
-       * 
- */ - public org.sonarqube.ws.Issues.Actions.Builder getActionsBuilder() { - bitField0_ |= 0x00100000; - onChanged(); - return getActionsFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.issues.Actions actions = 21; - * - *
-       * the actions allowed for the requesting user.
-       * 
- */ - public org.sonarqube.ws.Issues.ActionsOrBuilder getActionsOrBuilder() { - if (actionsBuilder_ != null) { - return actionsBuilder_.getMessageOrBuilder(); - } else { - return actions_ == null ? - org.sonarqube.ws.Issues.Actions.getDefaultInstance() : actions_; - } - } - /** - * optional .sonarqube.ws.issues.Actions actions = 21; - * - *
-       * the actions allowed for the requesting user.
-       * 
- */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.Actions, org.sonarqube.ws.Issues.Actions.Builder, org.sonarqube.ws.Issues.ActionsOrBuilder> - getActionsFieldBuilder() { - if (actionsBuilder_ == null) { - actionsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.Actions, org.sonarqube.ws.Issues.Actions.Builder, org.sonarqube.ws.Issues.ActionsOrBuilder>( - getActions(), - getParentForChildren(), - isClean()); - actions_ = null; - } - return actionsBuilder_; - } - - private org.sonarqube.ws.Issues.Comments comments_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.Comments, org.sonarqube.ws.Issues.Comments.Builder, org.sonarqube.ws.Issues.CommentsOrBuilder> commentsBuilder_; - /** - * optional .sonarqube.ws.issues.Comments comments = 22; - */ - public boolean hasComments() { - return ((bitField0_ & 0x00200000) == 0x00200000); - } - /** - * optional .sonarqube.ws.issues.Comments comments = 22; - */ - public org.sonarqube.ws.Issues.Comments getComments() { - if (commentsBuilder_ == null) { - return comments_ == null ? org.sonarqube.ws.Issues.Comments.getDefaultInstance() : comments_; - } else { - return commentsBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.issues.Comments comments = 22; - */ - public Builder setComments(org.sonarqube.ws.Issues.Comments value) { - if (commentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - comments_ = value; - onChanged(); - } else { - commentsBuilder_.setMessage(value); - } - bitField0_ |= 0x00200000; - return this; - } - /** - * optional .sonarqube.ws.issues.Comments comments = 22; - */ - public Builder setComments( - org.sonarqube.ws.Issues.Comments.Builder builderForValue) { - if (commentsBuilder_ == null) { - comments_ = builderForValue.build(); - onChanged(); - } else { - commentsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00200000; - return this; - } - /** - * optional .sonarqube.ws.issues.Comments comments = 22; - */ - public Builder mergeComments(org.sonarqube.ws.Issues.Comments value) { - if (commentsBuilder_ == null) { - if (((bitField0_ & 0x00200000) == 0x00200000) && - comments_ != null && - comments_ != org.sonarqube.ws.Issues.Comments.getDefaultInstance()) { - comments_ = - org.sonarqube.ws.Issues.Comments.newBuilder(comments_).mergeFrom(value).buildPartial(); - } else { - comments_ = value; - } - onChanged(); - } else { - commentsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00200000; - return this; - } - /** - * optional .sonarqube.ws.issues.Comments comments = 22; - */ - public Builder clearComments() { - if (commentsBuilder_ == null) { - comments_ = null; - onChanged(); - } else { - commentsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00200000); - return this; - } - /** - * optional .sonarqube.ws.issues.Comments comments = 22; - */ - public org.sonarqube.ws.Issues.Comments.Builder getCommentsBuilder() { - bitField0_ |= 0x00200000; - onChanged(); - return getCommentsFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.issues.Comments comments = 22; - */ - public org.sonarqube.ws.Issues.CommentsOrBuilder getCommentsOrBuilder() { - if (commentsBuilder_ != null) { - return commentsBuilder_.getMessageOrBuilder(); - } else { - return comments_ == null ? - org.sonarqube.ws.Issues.Comments.getDefaultInstance() : comments_; - } - } - /** - * optional .sonarqube.ws.issues.Comments comments = 22; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.Comments, org.sonarqube.ws.Issues.Comments.Builder, org.sonarqube.ws.Issues.CommentsOrBuilder> - getCommentsFieldBuilder() { - if (commentsBuilder_ == null) { - commentsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Issues.Comments, org.sonarqube.ws.Issues.Comments.Builder, org.sonarqube.ws.Issues.CommentsOrBuilder>( - getComments(), - getParentForChildren(), - isClean()); - comments_ = null; - } - return commentsBuilder_; - } - - private java.lang.Object creationDate_ = ""; - /** - * optional string creationDate = 23; - */ - public boolean hasCreationDate() { - return ((bitField0_ & 0x00400000) == 0x00400000); - } - /** - * optional string creationDate = 23; - */ - public java.lang.String getCreationDate() { - java.lang.Object ref = creationDate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - creationDate_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string creationDate = 23; - */ - public com.google.protobuf.ByteString - getCreationDateBytes() { - java.lang.Object ref = creationDate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - creationDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string creationDate = 23; - */ - public Builder setCreationDate( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00400000; - creationDate_ = value; - onChanged(); - return this; - } - /** - * optional string creationDate = 23; - */ - public Builder clearCreationDate() { - bitField0_ = (bitField0_ & ~0x00400000); - creationDate_ = getDefaultInstance().getCreationDate(); - onChanged(); - return this; - } - /** - * optional string creationDate = 23; - */ - public Builder setCreationDateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00400000; - creationDate_ = value; - onChanged(); - return this; - } - - private java.lang.Object updateDate_ = ""; - /** - * optional string updateDate = 24; - */ - public boolean hasUpdateDate() { - return ((bitField0_ & 0x00800000) == 0x00800000); - } - /** - * optional string updateDate = 24; - */ - public java.lang.String getUpdateDate() { - java.lang.Object ref = updateDate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - updateDate_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string updateDate = 24; - */ - public com.google.protobuf.ByteString - getUpdateDateBytes() { - java.lang.Object ref = updateDate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - updateDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string updateDate = 24; - */ - public Builder setUpdateDate( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00800000; - updateDate_ = value; - onChanged(); - return this; - } - /** - * optional string updateDate = 24; - */ - public Builder clearUpdateDate() { - bitField0_ = (bitField0_ & ~0x00800000); - updateDate_ = getDefaultInstance().getUpdateDate(); - onChanged(); - return this; - } - /** - * optional string updateDate = 24; - */ - public Builder setUpdateDateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00800000; - updateDate_ = value; - onChanged(); - return this; - } - - private java.lang.Object fUpdateAge_ = ""; - /** - * optional string fUpdateAge = 25; - */ - public boolean hasFUpdateAge() { - return ((bitField0_ & 0x01000000) == 0x01000000); - } - /** - * optional string fUpdateAge = 25; - */ - public java.lang.String getFUpdateAge() { - java.lang.Object ref = fUpdateAge_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - fUpdateAge_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string fUpdateAge = 25; - */ - public com.google.protobuf.ByteString - getFUpdateAgeBytes() { - java.lang.Object ref = fUpdateAge_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fUpdateAge_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string fUpdateAge = 25; - */ - public Builder setFUpdateAge( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x01000000; - fUpdateAge_ = value; - onChanged(); - return this; - } - /** - * optional string fUpdateAge = 25; - */ - public Builder clearFUpdateAge() { - bitField0_ = (bitField0_ & ~0x01000000); - fUpdateAge_ = getDefaultInstance().getFUpdateAge(); - onChanged(); - return this; - } - /** - * optional string fUpdateAge = 25; - */ - public Builder setFUpdateAgeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x01000000; - fUpdateAge_ = value; - onChanged(); - return this; - } - - private java.lang.Object closeDate_ = ""; - /** - * optional string closeDate = 26; - */ - public boolean hasCloseDate() { - return ((bitField0_ & 0x02000000) == 0x02000000); - } - /** - * optional string closeDate = 26; - */ - public java.lang.String getCloseDate() { - java.lang.Object ref = closeDate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - closeDate_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string closeDate = 26; - */ - public com.google.protobuf.ByteString - getCloseDateBytes() { - java.lang.Object ref = closeDate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - closeDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string closeDate = 26; - */ - public Builder setCloseDate( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x02000000; - closeDate_ = value; - onChanged(); - return this; - } - /** - * optional string closeDate = 26; - */ - public Builder clearCloseDate() { - bitField0_ = (bitField0_ & ~0x02000000); - closeDate_ = getDefaultInstance().getCloseDate(); - onChanged(); - return this; - } - /** - * optional string closeDate = 26; - */ - public Builder setCloseDateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x02000000; - closeDate_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Issue) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Issue) - private static final org.sonarqube.ws.Issues.Issue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Issue(); - } - - public static org.sonarqube.ws.Issues.Issue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Issue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Issue(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Issues.Issue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TransitionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Transitions) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string transitions = 1; - */ - com.google.protobuf.ProtocolStringList - getTransitionsList(); - /** - * repeated string transitions = 1; - */ - int getTransitionsCount(); - /** - * repeated string transitions = 1; - */ - java.lang.String getTransitions(int index); - /** - * repeated string transitions = 1; - */ - com.google.protobuf.ByteString - getTransitionsBytes(int index); - } - /** - * Protobuf type {@code sonarqube.ws.issues.Transitions} - */ - public static final class Transitions extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Transitions) - TransitionsOrBuilder { - // Use Transitions.newBuilder() to construct. - private Transitions(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Transitions() { - transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Transitions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - transitions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - transitions_.add(bs); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - transitions_ = transitions_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Transitions_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Transitions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Transitions.class, org.sonarqube.ws.Issues.Transitions.Builder.class); - } - - public static final int TRANSITIONS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList transitions_; - /** - * repeated string transitions = 1; - */ - public com.google.protobuf.ProtocolStringList - getTransitionsList() { - return transitions_; - } - /** - * repeated string transitions = 1; - */ - public int getTransitionsCount() { - return transitions_.size(); - } - /** - * repeated string transitions = 1; - */ - public java.lang.String getTransitions(int index) { - return transitions_.get(index); - } - /** - * repeated string transitions = 1; - */ - public com.google.protobuf.ByteString - getTransitionsBytes(int index) { - return transitions_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < transitions_.size(); i++) { - output.writeBytes(1, transitions_.getByteString(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < transitions_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(transitions_.getByteString(i)); - } - size += dataSize; - size += 1 * getTransitionsList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Transitions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Transitions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Transitions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Transitions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Transitions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Transitions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Transitions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Issues.Transitions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Transitions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Transitions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Issues.Transitions prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.issues.Transitions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Transitions) - org.sonarqube.ws.Issues.TransitionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Transitions_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Transitions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Transitions.class, org.sonarqube.ws.Issues.Transitions.Builder.class); - } - - // Construct using org.sonarqube.ws.Issues.Transitions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Transitions_descriptor; - } - - public org.sonarqube.ws.Issues.Transitions getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Transitions.getDefaultInstance(); - } - - public org.sonarqube.ws.Issues.Transitions build() { - org.sonarqube.ws.Issues.Transitions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Issues.Transitions buildPartial() { - org.sonarqube.ws.Issues.Transitions result = new org.sonarqube.ws.Issues.Transitions(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - transitions_ = transitions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.transitions_ = transitions_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Transitions) { - return mergeFrom((org.sonarqube.ws.Issues.Transitions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Issues.Transitions other) { - if (other == org.sonarqube.ws.Issues.Transitions.getDefaultInstance()) return this; - if (!other.transitions_.isEmpty()) { - if (transitions_.isEmpty()) { - transitions_ = other.transitions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTransitionsIsMutable(); - transitions_.addAll(other.transitions_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Issues.Transitions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Transitions) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTransitionsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - transitions_ = new com.google.protobuf.LazyStringArrayList(transitions_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string transitions = 1; - */ - public com.google.protobuf.ProtocolStringList - getTransitionsList() { - return transitions_.getUnmodifiableView(); - } - /** - * repeated string transitions = 1; - */ - public int getTransitionsCount() { - return transitions_.size(); - } - /** - * repeated string transitions = 1; - */ - public java.lang.String getTransitions(int index) { - return transitions_.get(index); - } - /** - * repeated string transitions = 1; - */ - public com.google.protobuf.ByteString - getTransitionsBytes(int index) { - return transitions_.getByteString(index); - } - /** - * repeated string transitions = 1; - */ - public Builder setTransitions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransitionsIsMutable(); - transitions_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string transitions = 1; - */ - public Builder addTransitions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransitionsIsMutable(); - transitions_.add(value); - onChanged(); - return this; - } - /** - * repeated string transitions = 1; - */ - public Builder addAllTransitions( - java.lang.Iterable values) { - ensureTransitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, transitions_); - onChanged(); - return this; - } - /** - * repeated string transitions = 1; - */ - public Builder clearTransitions() { - transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string transitions = 1; - */ - public Builder addTransitionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTransitionsIsMutable(); - transitions_.add(value); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Transitions) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Transitions) - private static final org.sonarqube.ws.Issues.Transitions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Transitions(); - } - - public static org.sonarqube.ws.Issues.Transitions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Transitions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Transitions(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Issues.Transitions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ActionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Actions) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string actions = 1; - */ - com.google.protobuf.ProtocolStringList - getActionsList(); - /** - * repeated string actions = 1; - */ - int getActionsCount(); - /** - * repeated string actions = 1; - */ - java.lang.String getActions(int index); - /** - * repeated string actions = 1; - */ - com.google.protobuf.ByteString - getActionsBytes(int index); - } - /** - * Protobuf type {@code sonarqube.ws.issues.Actions} - */ - public static final class Actions extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Actions) - ActionsOrBuilder { - // Use Actions.newBuilder() to construct. - private Actions(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Actions() { - actions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Actions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - actions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - actions_.add(bs); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - actions_ = actions_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Actions_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Actions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Actions.class, org.sonarqube.ws.Issues.Actions.Builder.class); - } - - public static final int ACTIONS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList actions_; - /** - * repeated string actions = 1; - */ - public com.google.protobuf.ProtocolStringList - getActionsList() { - return actions_; - } - /** - * repeated string actions = 1; - */ - public int getActionsCount() { - return actions_.size(); - } - /** - * repeated string actions = 1; - */ - public java.lang.String getActions(int index) { - return actions_.get(index); - } - /** - * repeated string actions = 1; - */ - public com.google.protobuf.ByteString - getActionsBytes(int index) { - return actions_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < actions_.size(); i++) { - output.writeBytes(1, actions_.getByteString(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < actions_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(actions_.getByteString(i)); - } - size += dataSize; - size += 1 * getActionsList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Actions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Actions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Actions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Actions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Actions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Actions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Actions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Issues.Actions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Actions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Actions parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Issues.Actions prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.issues.Actions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Actions) - org.sonarqube.ws.Issues.ActionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Actions_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Actions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Actions.class, org.sonarqube.ws.Issues.Actions.Builder.class); - } - - // Construct using org.sonarqube.ws.Issues.Actions.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - actions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Actions_descriptor; - } - - public org.sonarqube.ws.Issues.Actions getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Actions.getDefaultInstance(); - } - - public org.sonarqube.ws.Issues.Actions build() { - org.sonarqube.ws.Issues.Actions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Issues.Actions buildPartial() { - org.sonarqube.ws.Issues.Actions result = new org.sonarqube.ws.Issues.Actions(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - actions_ = actions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.actions_ = actions_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Actions) { - return mergeFrom((org.sonarqube.ws.Issues.Actions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Issues.Actions other) { - if (other == org.sonarqube.ws.Issues.Actions.getDefaultInstance()) return this; - if (!other.actions_.isEmpty()) { - if (actions_.isEmpty()) { - actions_ = other.actions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureActionsIsMutable(); - actions_.addAll(other.actions_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Issues.Actions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Actions) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList actions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureActionsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - actions_ = new com.google.protobuf.LazyStringArrayList(actions_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string actions = 1; - */ - public com.google.protobuf.ProtocolStringList - getActionsList() { - return actions_.getUnmodifiableView(); - } - /** - * repeated string actions = 1; - */ - public int getActionsCount() { - return actions_.size(); - } - /** - * repeated string actions = 1; - */ - public java.lang.String getActions(int index) { - return actions_.get(index); - } - /** - * repeated string actions = 1; - */ - public com.google.protobuf.ByteString - getActionsBytes(int index) { - return actions_.getByteString(index); - } - /** - * repeated string actions = 1; - */ - public Builder setActions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string actions = 1; - */ - public Builder addActions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.add(value); - onChanged(); - return this; - } - /** - * repeated string actions = 1; - */ - public Builder addAllActions( - java.lang.Iterable values) { - ensureActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, actions_); - onChanged(); - return this; - } - /** - * repeated string actions = 1; - */ - public Builder clearActions() { - actions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string actions = 1; - */ - public Builder addActionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.add(value); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Actions) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Actions) - private static final org.sonarqube.ws.Issues.Actions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Actions(); - } - - public static org.sonarqube.ws.Issues.Actions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Actions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Actions(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Issues.Actions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FlowOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Flow) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - java.util.List - getLocationsList(); - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - org.sonarqube.ws.Issues.Location getLocations(int index); - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - int getLocationsCount(); - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - java.util.List - getLocationsOrBuilderList(); - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - org.sonarqube.ws.Issues.LocationOrBuilder getLocationsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.issues.Flow} - */ - public static final class Flow extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Flow) - FlowOrBuilder { - // Use Flow.newBuilder() to construct. - private Flow(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Flow() { - locations_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Flow( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - locations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - locations_.add(input.readMessage(org.sonarqube.ws.Issues.Location.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - locations_ = java.util.Collections.unmodifiableList(locations_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Flow_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Flow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Flow.class, org.sonarqube.ws.Issues.Flow.Builder.class); - } - - public static final int LOCATIONS_FIELD_NUMBER = 1; - private java.util.List locations_; - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public java.util.List getLocationsList() { - return locations_; - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public java.util.List - getLocationsOrBuilderList() { - return locations_; - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public int getLocationsCount() { - return locations_.size(); - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public org.sonarqube.ws.Issues.Location getLocations(int index) { - return locations_.get(index); - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public org.sonarqube.ws.Issues.LocationOrBuilder getLocationsOrBuilder( - int index) { - return locations_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < locations_.size(); i++) { - output.writeMessage(1, locations_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < locations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, locations_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Flow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Flow parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Flow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Flow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Flow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Flow parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Flow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Issues.Flow parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Flow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Flow parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Issues.Flow prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.issues.Flow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Flow) - org.sonarqube.ws.Issues.FlowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Flow_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Flow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Flow.class, org.sonarqube.ws.Issues.Flow.Builder.class); - } - - // Construct using org.sonarqube.ws.Issues.Flow.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getLocationsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (locationsBuilder_ == null) { - locations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - locationsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Flow_descriptor; - } - - public org.sonarqube.ws.Issues.Flow getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Flow.getDefaultInstance(); - } - - public org.sonarqube.ws.Issues.Flow build() { - org.sonarqube.ws.Issues.Flow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Issues.Flow buildPartial() { - org.sonarqube.ws.Issues.Flow result = new org.sonarqube.ws.Issues.Flow(this); - int from_bitField0_ = bitField0_; - if (locationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - locations_ = java.util.Collections.unmodifiableList(locations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - } else { - result.locations_ = locationsBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Flow) { - return mergeFrom((org.sonarqube.ws.Issues.Flow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Issues.Flow other) { - if (other == org.sonarqube.ws.Issues.Flow.getDefaultInstance()) return this; - if (locationsBuilder_ == null) { - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - } else { - if (!other.locations_.isEmpty()) { - if (locationsBuilder_.isEmpty()) { - locationsBuilder_.dispose(); - locationsBuilder_ = null; - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getLocationsFieldBuilder() : null; - } else { - locationsBuilder_.addAllMessages(other.locations_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Issues.Flow parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Flow) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List locations_ = - java.util.Collections.emptyList(); - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - locations_ = new java.util.ArrayList(locations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Location, org.sonarqube.ws.Issues.Location.Builder, org.sonarqube.ws.Issues.LocationOrBuilder> locationsBuilder_; - - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public java.util.List getLocationsList() { - if (locationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(locations_); - } else { - return locationsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public int getLocationsCount() { - if (locationsBuilder_ == null) { - return locations_.size(); - } else { - return locationsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public org.sonarqube.ws.Issues.Location getLocations(int index) { - if (locationsBuilder_ == null) { - return locations_.get(index); - } else { - return locationsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public Builder setLocations( - int index, org.sonarqube.ws.Issues.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.set(index, value); - onChanged(); - } else { - locationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public Builder setLocations( - int index, org.sonarqube.ws.Issues.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.set(index, builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public Builder addLocations(org.sonarqube.ws.Issues.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - } else { - locationsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public Builder addLocations( - int index, org.sonarqube.ws.Issues.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(index, value); - onChanged(); - } else { - locationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public Builder addLocations( - org.sonarqube.ws.Issues.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.add(builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public Builder addLocations( - int index, org.sonarqube.ws.Issues.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.add(index, builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public Builder addAllLocations( - java.lang.Iterable values) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, locations_); - onChanged(); - } else { - locationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public Builder clearLocations() { - if (locationsBuilder_ == null) { - locations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - locationsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public Builder removeLocations(int index) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.remove(index); - onChanged(); - } else { - locationsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public org.sonarqube.ws.Issues.Location.Builder getLocationsBuilder( - int index) { - return getLocationsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public org.sonarqube.ws.Issues.LocationOrBuilder getLocationsOrBuilder( - int index) { - if (locationsBuilder_ == null) { - return locations_.get(index); } else { - return locationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public java.util.List - getLocationsOrBuilderList() { - if (locationsBuilder_ != null) { - return locationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(locations_); - } - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public org.sonarqube.ws.Issues.Location.Builder addLocationsBuilder() { - return getLocationsFieldBuilder().addBuilder( - org.sonarqube.ws.Issues.Location.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public org.sonarqube.ws.Issues.Location.Builder addLocationsBuilder( - int index) { - return getLocationsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Issues.Location.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.Location locations = 1; - */ - public java.util.List - getLocationsBuilderList() { - return getLocationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Location, org.sonarqube.ws.Issues.Location.Builder, org.sonarqube.ws.Issues.LocationOrBuilder> - getLocationsFieldBuilder() { - if (locationsBuilder_ == null) { - locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Location, org.sonarqube.ws.Issues.Location.Builder, org.sonarqube.ws.Issues.LocationOrBuilder>( - locations_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - locations_ = null; - } - return locationsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Flow) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Flow) - private static final org.sonarqube.ws.Issues.Flow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Flow(); - } - - public static org.sonarqube.ws.Issues.Flow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Flow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Flow(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Issues.Flow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LocationOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Location) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string componentId = 1; - */ - boolean hasComponentId(); - /** - * optional string componentId = 1; - */ - java.lang.String getComponentId(); - /** - * optional string componentId = 1; - */ - com.google.protobuf.ByteString - getComponentIdBytes(); - - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - boolean hasTextRange(); - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - org.sonarqube.ws.Common.TextRange getTextRange(); - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder(); - - /** - * optional string msg = 3; - */ - boolean hasMsg(); - /** - * optional string msg = 3; - */ - java.lang.String getMsg(); - /** - * optional string msg = 3; - */ - com.google.protobuf.ByteString - getMsgBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.issues.Location} - */ - public static final class Location extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Location) - LocationOrBuilder { - // Use Location.newBuilder() to construct. - private Location(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Location() { - componentId_ = ""; - msg_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Location( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - componentId_ = bs; - break; - } - case 18: { - org.sonarqube.ws.Common.TextRange.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = textRange_.toBuilder(); - } - textRange_ = input.readMessage(org.sonarqube.ws.Common.TextRange.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textRange_); - textRange_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - msg_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Location_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Location_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Location.class, org.sonarqube.ws.Issues.Location.Builder.class); - } - - private int bitField0_; - public static final int COMPONENTID_FIELD_NUMBER = 1; - private volatile java.lang.Object componentId_; - /** - * optional string componentId = 1; - */ - public boolean hasComponentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string componentId = 1; - */ - public java.lang.String getComponentId() { - java.lang.Object ref = componentId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - componentId_ = s; - } - return s; - } - } - /** - * optional string componentId = 1; - */ - public com.google.protobuf.ByteString - getComponentIdBytes() { - java.lang.Object ref = componentId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - componentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TEXTRANGE_FIELD_NUMBER = 2; - private org.sonarqube.ws.Common.TextRange textRange_; - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - public org.sonarqube.ws.Common.TextRange getTextRange() { - return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-     * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-     * 
- */ - public org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder() { - return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; - } - - public static final int MSG_FIELD_NUMBER = 3; - private volatile java.lang.Object msg_; - /** - * optional string msg = 3; - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string msg = 3; - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } - } - /** - * optional string msg = 3; - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getComponentIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, getTextRange()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getMsgBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getComponentIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTextRange()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getMsgBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Location parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Location parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Location parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Location parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Location parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Location parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Location parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Issues.Location parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Location parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Location parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Issues.Location prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.issues.Location} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Location) - org.sonarqube.ws.Issues.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Location_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Location_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Location.class, org.sonarqube.ws.Issues.Location.Builder.class); - } - - // Construct using org.sonarqube.ws.Issues.Location.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getTextRangeFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - componentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (textRangeBuilder_ == null) { - textRange_ = null; - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - msg_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Location_descriptor; - } - - public org.sonarqube.ws.Issues.Location getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Location.getDefaultInstance(); - } - - public org.sonarqube.ws.Issues.Location build() { - org.sonarqube.ws.Issues.Location result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Issues.Location buildPartial() { - org.sonarqube.ws.Issues.Location result = new org.sonarqube.ws.Issues.Location(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.componentId_ = componentId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (textRangeBuilder_ == null) { - result.textRange_ = textRange_; - } else { - result.textRange_ = textRangeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.msg_ = msg_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Location) { - return mergeFrom((org.sonarqube.ws.Issues.Location)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Issues.Location other) { - if (other == org.sonarqube.ws.Issues.Location.getDefaultInstance()) return this; - if (other.hasComponentId()) { - bitField0_ |= 0x00000001; - componentId_ = other.componentId_; - onChanged(); - } - if (other.hasTextRange()) { - mergeTextRange(other.getTextRange()); - } - if (other.hasMsg()) { - bitField0_ |= 0x00000004; - msg_ = other.msg_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Issues.Location parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Location) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object componentId_ = ""; - /** - * optional string componentId = 1; - */ - public boolean hasComponentId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string componentId = 1; - */ - public java.lang.String getComponentId() { - java.lang.Object ref = componentId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - componentId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string componentId = 1; - */ - public com.google.protobuf.ByteString - getComponentIdBytes() { - java.lang.Object ref = componentId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - componentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string componentId = 1; - */ - public Builder setComponentId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - componentId_ = value; - onChanged(); - return this; - } - /** - * optional string componentId = 1; - */ - public Builder clearComponentId() { - bitField0_ = (bitField0_ & ~0x00000001); - componentId_ = getDefaultInstance().getComponentId(); - onChanged(); - return this; - } - /** - * optional string componentId = 1; - */ - public Builder setComponentIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - componentId_ = value; - onChanged(); - return this; - } - - private org.sonarqube.ws.Common.TextRange textRange_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder> textRangeBuilder_; - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public boolean hasTextRange() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public org.sonarqube.ws.Common.TextRange getTextRange() { - if (textRangeBuilder_ == null) { - return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; - } else { - return textRangeBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public Builder setTextRange(org.sonarqube.ws.Common.TextRange value) { - if (textRangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - textRange_ = value; - onChanged(); - } else { - textRangeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public Builder setTextRange( - org.sonarqube.ws.Common.TextRange.Builder builderForValue) { - if (textRangeBuilder_ == null) { - textRange_ = builderForValue.build(); - onChanged(); - } else { - textRangeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public Builder mergeTextRange(org.sonarqube.ws.Common.TextRange value) { - if (textRangeBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - textRange_ != null && - textRange_ != org.sonarqube.ws.Common.TextRange.getDefaultInstance()) { - textRange_ = - org.sonarqube.ws.Common.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial(); - } else { - textRange_ = value; - } - onChanged(); - } else { - textRangeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public Builder clearTextRange() { - if (textRangeBuilder_ == null) { - textRange_ = null; - onChanged(); - } else { - textRangeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public org.sonarqube.ws.Common.TextRange.Builder getTextRangeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getTextRangeFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - public org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder() { - if (textRangeBuilder_ != null) { - return textRangeBuilder_.getMessageOrBuilder(); - } else { - return textRange_ == null ? - org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_; - } - } - /** - * optional .sonarqube.ws.commons.TextRange textRange = 2; - * - *
-       * Only when component is a file. Can be empty for a file if this is an issue global to the file.
-       * 
- */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder> - getTextRangeFieldBuilder() { - if (textRangeBuilder_ == null) { - textRangeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder>( - getTextRange(), - getParentForChildren(), - isClean()); - textRange_ = null; - } - return textRangeBuilder_; - } - - private java.lang.Object msg_ = ""; - /** - * optional string msg = 3; - */ - public boolean hasMsg() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string msg = 3; - */ - public java.lang.String getMsg() { - java.lang.Object ref = msg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - msg_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string msg = 3; - */ - public com.google.protobuf.ByteString - getMsgBytes() { - java.lang.Object ref = msg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - msg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string msg = 3; - */ - public Builder setMsg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - msg_ = value; - onChanged(); - return this; - } - /** - * optional string msg = 3; - */ - public Builder clearMsg() { - bitField0_ = (bitField0_ & ~0x00000004); - msg_ = getDefaultInstance().getMsg(); - onChanged(); - return this; - } - /** - * optional string msg = 3; - */ - public Builder setMsgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - msg_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Location) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Location) - private static final org.sonarqube.ws.Issues.Location DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Location(); - } - - public static org.sonarqube.ws.Issues.Location getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Location parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Location(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Issues.Location getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CommentOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Comment) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string key = 1; - */ - boolean hasKey(); - /** - * optional string key = 1; - */ - java.lang.String getKey(); - /** - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string login = 2; - */ - boolean hasLogin(); - /** - * optional string login = 2; - */ - java.lang.String getLogin(); - /** - * optional string login = 2; - */ - com.google.protobuf.ByteString - getLoginBytes(); - - /** - * optional string email = 3; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - boolean hasEmail(); - /** - * optional string email = 3; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - java.lang.String getEmail(); - /** - * optional string email = 3; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - com.google.protobuf.ByteString - getEmailBytes(); - - /** - * optional string userName = 4; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - boolean hasUserName(); - /** - * optional string userName = 4; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - java.lang.String getUserName(); - /** - * optional string userName = 4; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - com.google.protobuf.ByteString - getUserNameBytes(); - - /** - * optional string htmlText = 5; - */ - boolean hasHtmlText(); - /** - * optional string htmlText = 5; - */ - java.lang.String getHtmlText(); - /** - * optional string htmlText = 5; - */ - com.google.protobuf.ByteString - getHtmlTextBytes(); - - /** - * optional string markdown = 6; - * - *
-     * TODO rename markdownText ?
-     * 
- */ - boolean hasMarkdown(); - /** - * optional string markdown = 6; - * - *
-     * TODO rename markdownText ?
-     * 
- */ - java.lang.String getMarkdown(); - /** - * optional string markdown = 6; - * - *
-     * TODO rename markdownText ?
-     * 
- */ - com.google.protobuf.ByteString - getMarkdownBytes(); - - /** - * optional bool updatable = 7; - */ - boolean hasUpdatable(); - /** - * optional bool updatable = 7; - */ - boolean getUpdatable(); - - /** - * optional string createdAt = 8; - */ - boolean hasCreatedAt(); - /** - * optional string createdAt = 8; - */ - java.lang.String getCreatedAt(); - /** - * optional string createdAt = 8; - */ - com.google.protobuf.ByteString - getCreatedAtBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.issues.Comment} - */ - public static final class Comment extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Comment) - CommentOrBuilder { - // Use Comment.newBuilder() to construct. - private Comment(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Comment() { - key_ = ""; - login_ = ""; - email_ = ""; - userName_ = ""; - htmlText_ = ""; - markdown_ = ""; - updatable_ = false; - createdAt_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Comment( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - login_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - email_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - userName_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - htmlText_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - markdown_ = bs; - break; - } - case 56: { - bitField0_ |= 0x00000040; - updatable_ = input.readBool(); - break; - } - case 66: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - createdAt_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comment_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Comment.class, org.sonarqube.ws.Issues.Comment.Builder.class); - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOGIN_FIELD_NUMBER = 2; - private volatile java.lang.Object login_; - /** - * optional string login = 2; - */ - public boolean hasLogin() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string login = 2; - */ - public java.lang.String getLogin() { - java.lang.Object ref = login_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - login_ = s; - } - return s; - } - } - /** - * optional string login = 2; - */ - public com.google.protobuf.ByteString - getLoginBytes() { - java.lang.Object ref = login_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - login_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EMAIL_FIELD_NUMBER = 3; - private volatile java.lang.Object email_; - /** - * optional string email = 3; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - public boolean hasEmail() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string email = 3; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - email_ = s; - } - return s; - } - } - /** - * optional string email = 3; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USERNAME_FIELD_NUMBER = 4; - private volatile java.lang.Object userName_; - /** - * optional string userName = 4; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - public boolean hasUserName() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string userName = 4; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - public java.lang.String getUserName() { - java.lang.Object ref = userName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - userName_ = s; - } - return s; - } - } - /** - * optional string userName = 4; - * - *
-     * TODO drop, it's already in field "users"
-     * 
- */ - public com.google.protobuf.ByteString - getUserNameBytes() { - java.lang.Object ref = userName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HTMLTEXT_FIELD_NUMBER = 5; - private volatile java.lang.Object htmlText_; - /** - * optional string htmlText = 5; - */ - public boolean hasHtmlText() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string htmlText = 5; - */ - public java.lang.String getHtmlText() { - java.lang.Object ref = htmlText_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - htmlText_ = s; - } - return s; - } - } - /** - * optional string htmlText = 5; - */ - public com.google.protobuf.ByteString - getHtmlTextBytes() { - java.lang.Object ref = htmlText_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - htmlText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MARKDOWN_FIELD_NUMBER = 6; - private volatile java.lang.Object markdown_; - /** - * optional string markdown = 6; - * - *
-     * TODO rename markdownText ?
-     * 
- */ - public boolean hasMarkdown() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string markdown = 6; - * - *
-     * TODO rename markdownText ?
-     * 
- */ - public java.lang.String getMarkdown() { - java.lang.Object ref = markdown_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - markdown_ = s; - } - return s; - } - } - /** - * optional string markdown = 6; - * - *
-     * TODO rename markdownText ?
-     * 
- */ - public com.google.protobuf.ByteString - getMarkdownBytes() { - java.lang.Object ref = markdown_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - markdown_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UPDATABLE_FIELD_NUMBER = 7; - private boolean updatable_; - /** - * optional bool updatable = 7; - */ - public boolean hasUpdatable() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional bool updatable = 7; - */ - public boolean getUpdatable() { - return updatable_; - } - - public static final int CREATEDAT_FIELD_NUMBER = 8; - private volatile java.lang.Object createdAt_; - /** - * optional string createdAt = 8; - */ - public boolean hasCreatedAt() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional string createdAt = 8; - */ - public java.lang.String getCreatedAt() { - java.lang.Object ref = createdAt_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - createdAt_ = s; - } - return s; - } - } - /** - * optional string createdAt = 8; - */ - public com.google.protobuf.ByteString - getCreatedAtBytes() { - java.lang.Object ref = createdAt_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - createdAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getLoginBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getEmailBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getUserNameBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getHtmlTextBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getMarkdownBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBool(7, updatable_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(8, getCreatedAtBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getLoginBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getEmailBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getUserNameBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getHtmlTextBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getMarkdownBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, updatable_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getCreatedAtBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Comment parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Comment parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Comment parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Comment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Comment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Comment parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Comment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Issues.Comment parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Comment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Comment parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Issues.Comment prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.issues.Comment} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Comment) - org.sonarqube.ws.Issues.CommentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comment_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Comment.class, org.sonarqube.ws.Issues.Comment.Builder.class); - } - - // Construct using org.sonarqube.ws.Issues.Comment.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - login_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - email_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - userName_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - htmlText_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - markdown_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - updatable_ = false; - bitField0_ = (bitField0_ & ~0x00000040); - createdAt_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comment_descriptor; - } - - public org.sonarqube.ws.Issues.Comment getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Comment.getDefaultInstance(); - } - - public org.sonarqube.ws.Issues.Comment build() { - org.sonarqube.ws.Issues.Comment result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Issues.Comment buildPartial() { - org.sonarqube.ws.Issues.Comment result = new org.sonarqube.ws.Issues.Comment(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.login_ = login_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.email_ = email_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.userName_ = userName_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.htmlText_ = htmlText_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.markdown_ = markdown_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.updatable_ = updatable_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.createdAt_ = createdAt_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Comment) { - return mergeFrom((org.sonarqube.ws.Issues.Comment)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Issues.Comment other) { - if (other == org.sonarqube.ws.Issues.Comment.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasLogin()) { - bitField0_ |= 0x00000002; - login_ = other.login_; - onChanged(); - } - if (other.hasEmail()) { - bitField0_ |= 0x00000004; - email_ = other.email_; - onChanged(); - } - if (other.hasUserName()) { - bitField0_ |= 0x00000008; - userName_ = other.userName_; - onChanged(); - } - if (other.hasHtmlText()) { - bitField0_ |= 0x00000010; - htmlText_ = other.htmlText_; - onChanged(); - } - if (other.hasMarkdown()) { - bitField0_ |= 0x00000020; - markdown_ = other.markdown_; - onChanged(); - } - if (other.hasUpdatable()) { - setUpdatable(other.getUpdatable()); - } - if (other.hasCreatedAt()) { - bitField0_ |= 0x00000080; - createdAt_ = other.createdAt_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Issues.Comment parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Comment) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object login_ = ""; - /** - * optional string login = 2; - */ - public boolean hasLogin() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string login = 2; - */ - public java.lang.String getLogin() { - java.lang.Object ref = login_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - login_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string login = 2; - */ - public com.google.protobuf.ByteString - getLoginBytes() { - java.lang.Object ref = login_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - login_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string login = 2; - */ - public Builder setLogin( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - login_ = value; - onChanged(); - return this; - } - /** - * optional string login = 2; - */ - public Builder clearLogin() { - bitField0_ = (bitField0_ & ~0x00000002); - login_ = getDefaultInstance().getLogin(); - onChanged(); - return this; - } - /** - * optional string login = 2; - */ - public Builder setLoginBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - login_ = value; - onChanged(); - return this; - } - - private java.lang.Object email_ = ""; - /** - * optional string email = 3; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public boolean hasEmail() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string email = 3; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - email_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string email = 3; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string email = 3; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public Builder setEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - email_ = value; - onChanged(); - return this; - } - /** - * optional string email = 3; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public Builder clearEmail() { - bitField0_ = (bitField0_ & ~0x00000004); - email_ = getDefaultInstance().getEmail(); - onChanged(); - return this; - } - /** - * optional string email = 3; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - email_ = value; - onChanged(); - return this; - } - - private java.lang.Object userName_ = ""; - /** - * optional string userName = 4; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public boolean hasUserName() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string userName = 4; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public java.lang.String getUserName() { - java.lang.Object ref = userName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - userName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string userName = 4; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public com.google.protobuf.ByteString - getUserNameBytes() { - java.lang.Object ref = userName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string userName = 4; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public Builder setUserName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - userName_ = value; - onChanged(); - return this; - } - /** - * optional string userName = 4; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public Builder clearUserName() { - bitField0_ = (bitField0_ & ~0x00000008); - userName_ = getDefaultInstance().getUserName(); - onChanged(); - return this; - } - /** - * optional string userName = 4; - * - *
-       * TODO drop, it's already in field "users"
-       * 
- */ - public Builder setUserNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - userName_ = value; - onChanged(); - return this; - } - - private java.lang.Object htmlText_ = ""; - /** - * optional string htmlText = 5; - */ - public boolean hasHtmlText() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string htmlText = 5; - */ - public java.lang.String getHtmlText() { - java.lang.Object ref = htmlText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - htmlText_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string htmlText = 5; - */ - public com.google.protobuf.ByteString - getHtmlTextBytes() { - java.lang.Object ref = htmlText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - htmlText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string htmlText = 5; - */ - public Builder setHtmlText( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - htmlText_ = value; - onChanged(); - return this; - } - /** - * optional string htmlText = 5; - */ - public Builder clearHtmlText() { - bitField0_ = (bitField0_ & ~0x00000010); - htmlText_ = getDefaultInstance().getHtmlText(); - onChanged(); - return this; - } - /** - * optional string htmlText = 5; - */ - public Builder setHtmlTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - htmlText_ = value; - onChanged(); - return this; - } - - private java.lang.Object markdown_ = ""; - /** - * optional string markdown = 6; - * - *
-       * TODO rename markdownText ?
-       * 
- */ - public boolean hasMarkdown() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string markdown = 6; - * - *
-       * TODO rename markdownText ?
-       * 
- */ - public java.lang.String getMarkdown() { - java.lang.Object ref = markdown_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - markdown_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string markdown = 6; - * - *
-       * TODO rename markdownText ?
-       * 
- */ - public com.google.protobuf.ByteString - getMarkdownBytes() { - java.lang.Object ref = markdown_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - markdown_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string markdown = 6; - * - *
-       * TODO rename markdownText ?
-       * 
- */ - public Builder setMarkdown( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - markdown_ = value; - onChanged(); - return this; - } - /** - * optional string markdown = 6; - * - *
-       * TODO rename markdownText ?
-       * 
- */ - public Builder clearMarkdown() { - bitField0_ = (bitField0_ & ~0x00000020); - markdown_ = getDefaultInstance().getMarkdown(); - onChanged(); - return this; - } - /** - * optional string markdown = 6; - * - *
-       * TODO rename markdownText ?
-       * 
- */ - public Builder setMarkdownBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - markdown_ = value; - onChanged(); - return this; - } - - private boolean updatable_ ; - /** - * optional bool updatable = 7; - */ - public boolean hasUpdatable() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional bool updatable = 7; - */ - public boolean getUpdatable() { - return updatable_; - } - /** - * optional bool updatable = 7; - */ - public Builder setUpdatable(boolean value) { - bitField0_ |= 0x00000040; - updatable_ = value; - onChanged(); - return this; - } - /** - * optional bool updatable = 7; - */ - public Builder clearUpdatable() { - bitField0_ = (bitField0_ & ~0x00000040); - updatable_ = false; - onChanged(); - return this; - } - - private java.lang.Object createdAt_ = ""; - /** - * optional string createdAt = 8; - */ - public boolean hasCreatedAt() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional string createdAt = 8; - */ - public java.lang.String getCreatedAt() { - java.lang.Object ref = createdAt_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - createdAt_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string createdAt = 8; - */ - public com.google.protobuf.ByteString - getCreatedAtBytes() { - java.lang.Object ref = createdAt_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - createdAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string createdAt = 8; - */ - public Builder setCreatedAt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - createdAt_ = value; - onChanged(); - return this; - } - /** - * optional string createdAt = 8; - */ - public Builder clearCreatedAt() { - bitField0_ = (bitField0_ & ~0x00000080); - createdAt_ = getDefaultInstance().getCreatedAt(); - onChanged(); - return this; - } - /** - * optional string createdAt = 8; - */ - public Builder setCreatedAtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - createdAt_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Comment) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Comment) - private static final org.sonarqube.ws.Issues.Comment DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Comment(); - } - - public static org.sonarqube.ws.Issues.Comment getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Comment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Comment(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Issues.Comment getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CommentsOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Comments) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - java.util.List - getCommentsList(); - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - org.sonarqube.ws.Issues.Comment getComments(int index); - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - int getCommentsCount(); - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - java.util.List - getCommentsOrBuilderList(); - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.issues.Comments} - */ - public static final class Comments extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Comments) - CommentsOrBuilder { - // Use Comments.newBuilder() to construct. - private Comments(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Comments() { - comments_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Comments( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - comments_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - comments_.add(input.readMessage(org.sonarqube.ws.Issues.Comment.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - comments_ = java.util.Collections.unmodifiableList(comments_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comments_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comments_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Comments.class, org.sonarqube.ws.Issues.Comments.Builder.class); - } - - public static final int COMMENTS_FIELD_NUMBER = 1; - private java.util.List comments_; - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public java.util.List getCommentsList() { - return comments_; - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public java.util.List - getCommentsOrBuilderList() { - return comments_; - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public int getCommentsCount() { - return comments_.size(); - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public org.sonarqube.ws.Issues.Comment getComments(int index) { - return comments_.get(index); - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder( - int index) { - return comments_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < comments_.size(); i++) { - output.writeMessage(1, comments_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < comments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, comments_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Comments parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Comments parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Comments parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Comments parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Comments parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Comments parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Comments parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Issues.Comments parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Comments parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Comments parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Issues.Comments prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.issues.Comments} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Comments) - org.sonarqube.ws.Issues.CommentsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comments_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comments_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Comments.class, org.sonarqube.ws.Issues.Comments.Builder.class); - } - - // Construct using org.sonarqube.ws.Issues.Comments.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getCommentsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (commentsBuilder_ == null) { - comments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - commentsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comments_descriptor; - } - - public org.sonarqube.ws.Issues.Comments getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Comments.getDefaultInstance(); - } - - public org.sonarqube.ws.Issues.Comments build() { - org.sonarqube.ws.Issues.Comments result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Issues.Comments buildPartial() { - org.sonarqube.ws.Issues.Comments result = new org.sonarqube.ws.Issues.Comments(this); - int from_bitField0_ = bitField0_; - if (commentsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - comments_ = java.util.Collections.unmodifiableList(comments_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.comments_ = comments_; - } else { - result.comments_ = commentsBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Comments) { - return mergeFrom((org.sonarqube.ws.Issues.Comments)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Issues.Comments other) { - if (other == org.sonarqube.ws.Issues.Comments.getDefaultInstance()) return this; - if (commentsBuilder_ == null) { - if (!other.comments_.isEmpty()) { - if (comments_.isEmpty()) { - comments_ = other.comments_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCommentsIsMutable(); - comments_.addAll(other.comments_); - } - onChanged(); - } - } else { - if (!other.comments_.isEmpty()) { - if (commentsBuilder_.isEmpty()) { - commentsBuilder_.dispose(); - commentsBuilder_ = null; - comments_ = other.comments_; - bitField0_ = (bitField0_ & ~0x00000001); - commentsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getCommentsFieldBuilder() : null; - } else { - commentsBuilder_.addAllMessages(other.comments_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Issues.Comments parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Comments) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List comments_ = - java.util.Collections.emptyList(); - private void ensureCommentsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - comments_ = new java.util.ArrayList(comments_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder> commentsBuilder_; - - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public java.util.List getCommentsList() { - if (commentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(comments_); - } else { - return commentsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public int getCommentsCount() { - if (commentsBuilder_ == null) { - return comments_.size(); - } else { - return commentsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public org.sonarqube.ws.Issues.Comment getComments(int index) { - if (commentsBuilder_ == null) { - return comments_.get(index); - } else { - return commentsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public Builder setComments( - int index, org.sonarqube.ws.Issues.Comment value) { - if (commentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommentsIsMutable(); - comments_.set(index, value); - onChanged(); - } else { - commentsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public Builder setComments( - int index, org.sonarqube.ws.Issues.Comment.Builder builderForValue) { - if (commentsBuilder_ == null) { - ensureCommentsIsMutable(); - comments_.set(index, builderForValue.build()); - onChanged(); - } else { - commentsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public Builder addComments(org.sonarqube.ws.Issues.Comment value) { - if (commentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommentsIsMutable(); - comments_.add(value); - onChanged(); - } else { - commentsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public Builder addComments( - int index, org.sonarqube.ws.Issues.Comment value) { - if (commentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommentsIsMutable(); - comments_.add(index, value); - onChanged(); - } else { - commentsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public Builder addComments( - org.sonarqube.ws.Issues.Comment.Builder builderForValue) { - if (commentsBuilder_ == null) { - ensureCommentsIsMutable(); - comments_.add(builderForValue.build()); - onChanged(); - } else { - commentsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public Builder addComments( - int index, org.sonarqube.ws.Issues.Comment.Builder builderForValue) { - if (commentsBuilder_ == null) { - ensureCommentsIsMutable(); - comments_.add(index, builderForValue.build()); - onChanged(); - } else { - commentsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public Builder addAllComments( - java.lang.Iterable values) { - if (commentsBuilder_ == null) { - ensureCommentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, comments_); - onChanged(); - } else { - commentsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public Builder clearComments() { - if (commentsBuilder_ == null) { - comments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - commentsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public Builder removeComments(int index) { - if (commentsBuilder_ == null) { - ensureCommentsIsMutable(); - comments_.remove(index); - onChanged(); - } else { - commentsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public org.sonarqube.ws.Issues.Comment.Builder getCommentsBuilder( - int index) { - return getCommentsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder( - int index) { - if (commentsBuilder_ == null) { - return comments_.get(index); } else { - return commentsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public java.util.List - getCommentsOrBuilderList() { - if (commentsBuilder_ != null) { - return commentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(comments_); - } - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public org.sonarqube.ws.Issues.Comment.Builder addCommentsBuilder() { - return getCommentsFieldBuilder().addBuilder( - org.sonarqube.ws.Issues.Comment.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public org.sonarqube.ws.Issues.Comment.Builder addCommentsBuilder( - int index) { - return getCommentsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Issues.Comment.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.Comment comments = 1; - */ - public java.util.List - getCommentsBuilderList() { - return getCommentsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder> - getCommentsFieldBuilder() { - if (commentsBuilder_ == null) { - commentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder>( - comments_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - comments_ = null; - } - return commentsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Comments) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Comments) - private static final org.sonarqube.ws.Issues.Comments DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Comments(); - } - - public static org.sonarqube.ws.Issues.Comments getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Comments parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Comments(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Issues.Comments getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ActionPlanOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.ActionPlan) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string key = 1; - */ - boolean hasKey(); - /** - * optional string key = 1; - */ - java.lang.String getKey(); - /** - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string status = 3; - * - *
-     * TODO define enum
-     * 
- */ - boolean hasStatus(); - /** - * optional string status = 3; - * - *
-     * TODO define enum
-     * 
- */ - java.lang.String getStatus(); - /** - * optional string status = 3; - * - *
-     * TODO define enum
-     * 
- */ - com.google.protobuf.ByteString - getStatusBytes(); - - /** - * optional string deadLine = 4; - */ - boolean hasDeadLine(); - /** - * optional string deadLine = 4; - */ - java.lang.String getDeadLine(); - /** - * optional string deadLine = 4; - */ - com.google.protobuf.ByteString - getDeadLineBytes(); - - /** - * optional string project = 5; - * - *
-     * TODO to be renamed, is it id or key ?
-     * 
- */ - boolean hasProject(); - /** - * optional string project = 5; - * - *
-     * TODO to be renamed, is it id or key ?
-     * 
- */ - java.lang.String getProject(); - /** - * optional string project = 5; - * - *
-     * TODO to be renamed, is it id or key ?
-     * 
- */ - com.google.protobuf.ByteString - getProjectBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.issues.ActionPlan} - */ - public static final class ActionPlan extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.ActionPlan) - ActionPlanOrBuilder { - // Use ActionPlan.newBuilder() to construct. - private ActionPlan(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ActionPlan() { - key_ = ""; - name_ = ""; - status_ = ""; - deadLine_ = ""; - project_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ActionPlan( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - status_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - deadLine_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - project_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlan_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlan_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.ActionPlan.class, org.sonarqube.ws.Issues.ActionPlan.Builder.class); - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 3; - private volatile java.lang.Object status_; - /** - * optional string status = 3; - * - *
-     * TODO define enum
-     * 
- */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string status = 3; - * - *
-     * TODO define enum
-     * 
- */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - status_ = s; - } - return s; - } - } - /** - * optional string status = 3; - * - *
-     * TODO define enum
-     * 
- */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEADLINE_FIELD_NUMBER = 4; - private volatile java.lang.Object deadLine_; - /** - * optional string deadLine = 4; - */ - public boolean hasDeadLine() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string deadLine = 4; - */ - public java.lang.String getDeadLine() { - java.lang.Object ref = deadLine_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - deadLine_ = s; - } - return s; - } - } - /** - * optional string deadLine = 4; - */ - public com.google.protobuf.ByteString - getDeadLineBytes() { - java.lang.Object ref = deadLine_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deadLine_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROJECT_FIELD_NUMBER = 5; - private volatile java.lang.Object project_; - /** - * optional string project = 5; - * - *
-     * TODO to be renamed, is it id or key ?
-     * 
- */ - public boolean hasProject() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string project = 5; - * - *
-     * TODO to be renamed, is it id or key ?
-     * 
- */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - project_ = s; - } - return s; - } - } - /** - * optional string project = 5; - * - *
-     * TODO to be renamed, is it id or key ?
-     * 
- */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getStatusBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getDeadLineBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getProjectBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getStatusBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getDeadLineBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getProjectBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.ActionPlan parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.ActionPlan parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.ActionPlan parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.ActionPlan parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.ActionPlan parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.ActionPlan parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.ActionPlan parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Issues.ActionPlan parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.ActionPlan parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.ActionPlan parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Issues.ActionPlan prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.issues.ActionPlan} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.ActionPlan) - org.sonarqube.ws.Issues.ActionPlanOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlan_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlan_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.ActionPlan.class, org.sonarqube.ws.Issues.ActionPlan.Builder.class); - } - - // Construct using org.sonarqube.ws.Issues.ActionPlan.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - status_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - deadLine_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - project_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlan_descriptor; - } - - public org.sonarqube.ws.Issues.ActionPlan getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance(); - } - - public org.sonarqube.ws.Issues.ActionPlan build() { - org.sonarqube.ws.Issues.ActionPlan result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Issues.ActionPlan buildPartial() { - org.sonarqube.ws.Issues.ActionPlan result = new org.sonarqube.ws.Issues.ActionPlan(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.status_ = status_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.deadLine_ = deadLine_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.project_ = project_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.ActionPlan) { - return mergeFrom((org.sonarqube.ws.Issues.ActionPlan)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Issues.ActionPlan other) { - if (other == org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasStatus()) { - bitField0_ |= 0x00000004; - status_ = other.status_; - onChanged(); - } - if (other.hasDeadLine()) { - bitField0_ |= 0x00000008; - deadLine_ = other.deadLine_; - onChanged(); - } - if (other.hasProject()) { - bitField0_ |= 0x00000010; - project_ = other.project_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Issues.ActionPlan parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.ActionPlan) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object status_ = ""; - /** - * optional string status = 3; - * - *
-       * TODO define enum
-       * 
- */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string status = 3; - * - *
-       * TODO define enum
-       * 
- */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - status_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string status = 3; - * - *
-       * TODO define enum
-       * 
- */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string status = 3; - * - *
-       * TODO define enum
-       * 
- */ - public Builder setStatus( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - status_ = value; - onChanged(); - return this; - } - /** - * optional string status = 3; - * - *
-       * TODO define enum
-       * 
- */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000004); - status_ = getDefaultInstance().getStatus(); - onChanged(); - return this; - } - /** - * optional string status = 3; - * - *
-       * TODO define enum
-       * 
- */ - public Builder setStatusBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - status_ = value; - onChanged(); - return this; - } - - private java.lang.Object deadLine_ = ""; - /** - * optional string deadLine = 4; - */ - public boolean hasDeadLine() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string deadLine = 4; - */ - public java.lang.String getDeadLine() { - java.lang.Object ref = deadLine_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - deadLine_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string deadLine = 4; - */ - public com.google.protobuf.ByteString - getDeadLineBytes() { - java.lang.Object ref = deadLine_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deadLine_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string deadLine = 4; - */ - public Builder setDeadLine( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - deadLine_ = value; - onChanged(); - return this; - } - /** - * optional string deadLine = 4; - */ - public Builder clearDeadLine() { - bitField0_ = (bitField0_ & ~0x00000008); - deadLine_ = getDefaultInstance().getDeadLine(); - onChanged(); - return this; - } - /** - * optional string deadLine = 4; - */ - public Builder setDeadLineBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - deadLine_ = value; - onChanged(); - return this; - } - - private java.lang.Object project_ = ""; - /** - * optional string project = 5; - * - *
-       * TODO to be renamed, is it id or key ?
-       * 
- */ - public boolean hasProject() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string project = 5; - * - *
-       * TODO to be renamed, is it id or key ?
-       * 
- */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - project_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string project = 5; - * - *
-       * TODO to be renamed, is it id or key ?
-       * 
- */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string project = 5; - * - *
-       * TODO to be renamed, is it id or key ?
-       * 
- */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - project_ = value; - onChanged(); - return this; - } - /** - * optional string project = 5; - * - *
-       * TODO to be renamed, is it id or key ?
-       * 
- */ - public Builder clearProject() { - bitField0_ = (bitField0_ & ~0x00000010); - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - * optional string project = 5; - * - *
-       * TODO to be renamed, is it id or key ?
-       * 
- */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - project_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.ActionPlan) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.ActionPlan) - private static final org.sonarqube.ws.Issues.ActionPlan DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.ActionPlan(); - } - - public static org.sonarqube.ws.Issues.ActionPlan getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ActionPlan parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ActionPlan(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Issues.ActionPlan getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ActionPlansOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.ActionPlans) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - java.util.List - getActionPlansList(); - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index); - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - int getActionPlansCount(); - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - java.util.List - getActionPlansOrBuilderList(); - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.issues.ActionPlans} - */ - public static final class ActionPlans extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.ActionPlans) - ActionPlansOrBuilder { - // Use ActionPlans.newBuilder() to construct. - private ActionPlans(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ActionPlans() { - actionPlans_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ActionPlans( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - actionPlans_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - actionPlans_.add(input.readMessage(org.sonarqube.ws.Issues.ActionPlan.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - actionPlans_ = java.util.Collections.unmodifiableList(actionPlans_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlans_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlans_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.ActionPlans.class, org.sonarqube.ws.Issues.ActionPlans.Builder.class); - } - - public static final int ACTIONPLANS_FIELD_NUMBER = 1; - private java.util.List actionPlans_; - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public java.util.List getActionPlansList() { - return actionPlans_; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public java.util.List - getActionPlansOrBuilderList() { - return actionPlans_; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public int getActionPlansCount() { - return actionPlans_.size(); - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index) { - return actionPlans_.get(index); - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( - int index) { - return actionPlans_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < actionPlans_.size(); i++) { - output.writeMessage(1, actionPlans_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < actionPlans_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, actionPlans_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.ActionPlans parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.ActionPlans parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.ActionPlans parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.ActionPlans parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.ActionPlans parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.ActionPlans parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.ActionPlans parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Issues.ActionPlans parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.ActionPlans parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.ActionPlans parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Issues.ActionPlans prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.issues.ActionPlans} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.ActionPlans) - org.sonarqube.ws.Issues.ActionPlansOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlans_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlans_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.ActionPlans.class, org.sonarqube.ws.Issues.ActionPlans.Builder.class); - } - - // Construct using org.sonarqube.ws.Issues.ActionPlans.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getActionPlansFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (actionPlansBuilder_ == null) { - actionPlans_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - actionPlansBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlans_descriptor; - } - - public org.sonarqube.ws.Issues.ActionPlans getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance(); - } - - public org.sonarqube.ws.Issues.ActionPlans build() { - org.sonarqube.ws.Issues.ActionPlans result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Issues.ActionPlans buildPartial() { - org.sonarqube.ws.Issues.ActionPlans result = new org.sonarqube.ws.Issues.ActionPlans(this); - int from_bitField0_ = bitField0_; - if (actionPlansBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - actionPlans_ = java.util.Collections.unmodifiableList(actionPlans_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.actionPlans_ = actionPlans_; - } else { - result.actionPlans_ = actionPlansBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.ActionPlans) { - return mergeFrom((org.sonarqube.ws.Issues.ActionPlans)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Issues.ActionPlans other) { - if (other == org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance()) return this; - if (actionPlansBuilder_ == null) { - if (!other.actionPlans_.isEmpty()) { - if (actionPlans_.isEmpty()) { - actionPlans_ = other.actionPlans_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureActionPlansIsMutable(); - actionPlans_.addAll(other.actionPlans_); - } - onChanged(); - } - } else { - if (!other.actionPlans_.isEmpty()) { - if (actionPlansBuilder_.isEmpty()) { - actionPlansBuilder_.dispose(); - actionPlansBuilder_ = null; - actionPlans_ = other.actionPlans_; - bitField0_ = (bitField0_ & ~0x00000001); - actionPlansBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getActionPlansFieldBuilder() : null; - } else { - actionPlansBuilder_.addAllMessages(other.actionPlans_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Issues.ActionPlans parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.ActionPlans) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List actionPlans_ = - java.util.Collections.emptyList(); - private void ensureActionPlansIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - actionPlans_ = new java.util.ArrayList(actionPlans_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder> actionPlansBuilder_; - - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public java.util.List getActionPlansList() { - if (actionPlansBuilder_ == null) { - return java.util.Collections.unmodifiableList(actionPlans_); - } else { - return actionPlansBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public int getActionPlansCount() { - if (actionPlansBuilder_ == null) { - return actionPlans_.size(); - } else { - return actionPlansBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index) { - if (actionPlansBuilder_ == null) { - return actionPlans_.get(index); - } else { - return actionPlansBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public Builder setActionPlans( - int index, org.sonarqube.ws.Issues.ActionPlan value) { - if (actionPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionPlansIsMutable(); - actionPlans_.set(index, value); - onChanged(); - } else { - actionPlansBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public Builder setActionPlans( - int index, org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) { - if (actionPlansBuilder_ == null) { - ensureActionPlansIsMutable(); - actionPlans_.set(index, builderForValue.build()); - onChanged(); - } else { - actionPlansBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public Builder addActionPlans(org.sonarqube.ws.Issues.ActionPlan value) { - if (actionPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionPlansIsMutable(); - actionPlans_.add(value); - onChanged(); - } else { - actionPlansBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public Builder addActionPlans( - int index, org.sonarqube.ws.Issues.ActionPlan value) { - if (actionPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionPlansIsMutable(); - actionPlans_.add(index, value); - onChanged(); - } else { - actionPlansBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public Builder addActionPlans( - org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) { - if (actionPlansBuilder_ == null) { - ensureActionPlansIsMutable(); - actionPlans_.add(builderForValue.build()); - onChanged(); - } else { - actionPlansBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public Builder addActionPlans( - int index, org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) { - if (actionPlansBuilder_ == null) { - ensureActionPlansIsMutable(); - actionPlans_.add(index, builderForValue.build()); - onChanged(); - } else { - actionPlansBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public Builder addAllActionPlans( - java.lang.Iterable values) { - if (actionPlansBuilder_ == null) { - ensureActionPlansIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, actionPlans_); - onChanged(); - } else { - actionPlansBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public Builder clearActionPlans() { - if (actionPlansBuilder_ == null) { - actionPlans_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - actionPlansBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public Builder removeActionPlans(int index) { - if (actionPlansBuilder_ == null) { - ensureActionPlansIsMutable(); - actionPlans_.remove(index); - onChanged(); - } else { - actionPlansBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public org.sonarqube.ws.Issues.ActionPlan.Builder getActionPlansBuilder( - int index) { - return getActionPlansFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder( - int index) { - if (actionPlansBuilder_ == null) { - return actionPlans_.get(index); } else { - return actionPlansBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public java.util.List - getActionPlansOrBuilderList() { - if (actionPlansBuilder_ != null) { - return actionPlansBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(actionPlans_); - } - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public org.sonarqube.ws.Issues.ActionPlan.Builder addActionPlansBuilder() { - return getActionPlansFieldBuilder().addBuilder( - org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public org.sonarqube.ws.Issues.ActionPlan.Builder addActionPlansBuilder( - int index) { - return getActionPlansFieldBuilder().addBuilder( - index, org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1; - */ - public java.util.List - getActionPlansBuilderList() { - return getActionPlansFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder> - getActionPlansFieldBuilder() { - if (actionPlansBuilder_ == null) { - actionPlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder>( - actionPlans_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - actionPlans_ = null; - } - return actionPlansBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.ActionPlans) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.ActionPlans) - private static final org.sonarqube.ws.Issues.ActionPlans DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.ActionPlans(); - } - - public static org.sonarqube.ws.Issues.ActionPlans getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ActionPlans parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ActionPlans(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Issues.ActionPlans getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LanguageOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Language) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string key = 1; - */ - boolean hasKey(); - /** - * optional string key = 1; - */ - java.lang.String getKey(); - /** - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.issues.Language} - */ - public static final class Language extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Language) - LanguageOrBuilder { - // Use Language.newBuilder() to construct. - private Language(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Language() { - key_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Language( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Language_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Language_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Language.class, org.sonarqube.ws.Issues.Language.Builder.class); - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Language parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Language parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Language parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Language parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Language parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Language parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Language parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Issues.Language parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Language parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Language parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Issues.Language prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.issues.Language} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Language) - org.sonarqube.ws.Issues.LanguageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Language_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Language_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Language.class, org.sonarqube.ws.Issues.Language.Builder.class); - } - - // Construct using org.sonarqube.ws.Issues.Language.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Language_descriptor; - } - - public org.sonarqube.ws.Issues.Language getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Language.getDefaultInstance(); - } - - public org.sonarqube.ws.Issues.Language build() { - org.sonarqube.ws.Issues.Language result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Issues.Language buildPartial() { - org.sonarqube.ws.Issues.Language result = new org.sonarqube.ws.Issues.Language(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Language) { - return mergeFrom((org.sonarqube.ws.Issues.Language)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Issues.Language other) { - if (other == org.sonarqube.ws.Issues.Language.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Issues.Language parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Language) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Language) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Language) - private static final org.sonarqube.ws.Issues.Language DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Language(); - } - - public static org.sonarqube.ws.Issues.Language getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Language parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Language(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Issues.Language getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LanguagesOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Languages) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - java.util.List - getLanguagesList(); - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - org.sonarqube.ws.Issues.Language getLanguages(int index); - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - int getLanguagesCount(); - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - java.util.List - getLanguagesOrBuilderList(); - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.issues.Languages} - */ - public static final class Languages extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Languages) - LanguagesOrBuilder { - // Use Languages.newBuilder() to construct. - private Languages(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Languages() { - languages_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Languages( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - languages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - languages_.add(input.readMessage(org.sonarqube.ws.Issues.Language.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - languages_ = java.util.Collections.unmodifiableList(languages_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Languages_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Languages_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Languages.class, org.sonarqube.ws.Issues.Languages.Builder.class); - } - - public static final int LANGUAGES_FIELD_NUMBER = 1; - private java.util.List languages_; - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public java.util.List getLanguagesList() { - return languages_; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public java.util.List - getLanguagesOrBuilderList() { - return languages_; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public int getLanguagesCount() { - return languages_.size(); - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public org.sonarqube.ws.Issues.Language getLanguages(int index) { - return languages_.get(index); - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder( - int index) { - return languages_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < languages_.size(); i++) { - output.writeMessage(1, languages_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < languages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, languages_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Languages parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Languages parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Languages parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Languages parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Languages parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Languages parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Languages parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Issues.Languages parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Languages parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Languages parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Issues.Languages prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.issues.Languages} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Languages) - org.sonarqube.ws.Issues.LanguagesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Languages_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Languages_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Languages.class, org.sonarqube.ws.Issues.Languages.Builder.class); - } - - // Construct using org.sonarqube.ws.Issues.Languages.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getLanguagesFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (languagesBuilder_ == null) { - languages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - languagesBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Languages_descriptor; - } - - public org.sonarqube.ws.Issues.Languages getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Languages.getDefaultInstance(); - } - - public org.sonarqube.ws.Issues.Languages build() { - org.sonarqube.ws.Issues.Languages result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Issues.Languages buildPartial() { - org.sonarqube.ws.Issues.Languages result = new org.sonarqube.ws.Issues.Languages(this); - int from_bitField0_ = bitField0_; - if (languagesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - languages_ = java.util.Collections.unmodifiableList(languages_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.languages_ = languages_; - } else { - result.languages_ = languagesBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Languages) { - return mergeFrom((org.sonarqube.ws.Issues.Languages)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Issues.Languages other) { - if (other == org.sonarqube.ws.Issues.Languages.getDefaultInstance()) return this; - if (languagesBuilder_ == null) { - if (!other.languages_.isEmpty()) { - if (languages_.isEmpty()) { - languages_ = other.languages_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLanguagesIsMutable(); - languages_.addAll(other.languages_); - } - onChanged(); - } - } else { - if (!other.languages_.isEmpty()) { - if (languagesBuilder_.isEmpty()) { - languagesBuilder_.dispose(); - languagesBuilder_ = null; - languages_ = other.languages_; - bitField0_ = (bitField0_ & ~0x00000001); - languagesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getLanguagesFieldBuilder() : null; - } else { - languagesBuilder_.addAllMessages(other.languages_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Issues.Languages parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Languages) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List languages_ = - java.util.Collections.emptyList(); - private void ensureLanguagesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - languages_ = new java.util.ArrayList(languages_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder> languagesBuilder_; - - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public java.util.List getLanguagesList() { - if (languagesBuilder_ == null) { - return java.util.Collections.unmodifiableList(languages_); - } else { - return languagesBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public int getLanguagesCount() { - if (languagesBuilder_ == null) { - return languages_.size(); - } else { - return languagesBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public org.sonarqube.ws.Issues.Language getLanguages(int index) { - if (languagesBuilder_ == null) { - return languages_.get(index); - } else { - return languagesBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public Builder setLanguages( - int index, org.sonarqube.ws.Issues.Language value) { - if (languagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLanguagesIsMutable(); - languages_.set(index, value); - onChanged(); - } else { - languagesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public Builder setLanguages( - int index, org.sonarqube.ws.Issues.Language.Builder builderForValue) { - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.set(index, builderForValue.build()); - onChanged(); - } else { - languagesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public Builder addLanguages(org.sonarqube.ws.Issues.Language value) { - if (languagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLanguagesIsMutable(); - languages_.add(value); - onChanged(); - } else { - languagesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public Builder addLanguages( - int index, org.sonarqube.ws.Issues.Language value) { - if (languagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLanguagesIsMutable(); - languages_.add(index, value); - onChanged(); - } else { - languagesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public Builder addLanguages( - org.sonarqube.ws.Issues.Language.Builder builderForValue) { - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(builderForValue.build()); - onChanged(); - } else { - languagesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public Builder addLanguages( - int index, org.sonarqube.ws.Issues.Language.Builder builderForValue) { - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.add(index, builderForValue.build()); - onChanged(); - } else { - languagesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public Builder addAllLanguages( - java.lang.Iterable values) { - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, languages_); - onChanged(); - } else { - languagesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public Builder clearLanguages() { - if (languagesBuilder_ == null) { - languages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - languagesBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public Builder removeLanguages(int index) { - if (languagesBuilder_ == null) { - ensureLanguagesIsMutable(); - languages_.remove(index); - onChanged(); - } else { - languagesBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public org.sonarqube.ws.Issues.Language.Builder getLanguagesBuilder( - int index) { - return getLanguagesFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder( - int index) { - if (languagesBuilder_ == null) { - return languages_.get(index); } else { - return languagesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public java.util.List - getLanguagesOrBuilderList() { - if (languagesBuilder_ != null) { - return languagesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(languages_); - } - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public org.sonarqube.ws.Issues.Language.Builder addLanguagesBuilder() { - return getLanguagesFieldBuilder().addBuilder( - org.sonarqube.ws.Issues.Language.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public org.sonarqube.ws.Issues.Language.Builder addLanguagesBuilder( - int index) { - return getLanguagesFieldBuilder().addBuilder( - index, org.sonarqube.ws.Issues.Language.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.issues.Language languages = 1; - */ - public java.util.List - getLanguagesBuilderList() { - return getLanguagesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder> - getLanguagesFieldBuilder() { - if (languagesBuilder_ == null) { - languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder>( - languages_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - languages_ = null; - } - return languagesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Languages) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Languages) - private static final org.sonarqube.ws.Issues.Languages DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Languages(); - } - - public static org.sonarqube.ws.Issues.Languages getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Languages parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Languages(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Issues.Languages getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ComponentOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Component) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int64 id = 1; - */ - boolean hasId(); - /** - * optional int64 id = 1; - */ - long getId(); - - /** - * optional string key = 2; - */ - boolean hasKey(); - /** - * optional string key = 2; - */ - java.lang.String getKey(); - /** - * optional string key = 2; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string uuid = 3; - */ - boolean hasUuid(); - /** - * optional string uuid = 3; - */ - java.lang.String getUuid(); - /** - * optional string uuid = 3; - */ - com.google.protobuf.ByteString - getUuidBytes(); - - /** - * optional bool enabled = 4; - */ - boolean hasEnabled(); - /** - * optional bool enabled = 4; - */ - boolean getEnabled(); - - /** - * optional string qualifier = 5; - */ - boolean hasQualifier(); - /** - * optional string qualifier = 5; - */ - java.lang.String getQualifier(); - /** - * optional string qualifier = 5; - */ - com.google.protobuf.ByteString - getQualifierBytes(); - - /** - * optional string name = 6; - */ - boolean hasName(); - /** - * optional string name = 6; - */ - java.lang.String getName(); - /** - * optional string name = 6; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string longName = 7; - */ - boolean hasLongName(); - /** - * optional string longName = 7; - */ - java.lang.String getLongName(); - /** - * optional string longName = 7; - */ - com.google.protobuf.ByteString - getLongNameBytes(); - - /** - * optional string path = 8; - */ - boolean hasPath(); - /** - * optional string path = 8; - */ - java.lang.String getPath(); - /** - * optional string path = 8; - */ - com.google.protobuf.ByteString - getPathBytes(); - - /** - * optional int64 projectId = 9; - */ - boolean hasProjectId(); - /** - * optional int64 projectId = 9; - */ - long getProjectId(); - - /** - * optional int64 subProjectId = 10; - */ - boolean hasSubProjectId(); - /** - * optional int64 subProjectId = 10; - */ - long getSubProjectId(); - } - /** - * Protobuf type {@code sonarqube.ws.issues.Component} - */ - public static final class Component extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Component) - ComponentOrBuilder { - // Use Component.newBuilder() to construct. - private Component(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Component() { - id_ = 0L; - key_ = ""; - uuid_ = ""; - enabled_ = false; - qualifier_ = ""; - name_ = ""; - longName_ = ""; - path_ = ""; - projectId_ = 0L; - subProjectId_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Component( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - id_ = input.readInt64(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - key_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - uuid_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - enabled_ = input.readBool(); - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - qualifier_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - name_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - longName_ = bs; - break; - } - case 66: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - path_ = bs; - break; - } - case 72: { - bitField0_ |= 0x00000100; - projectId_ = input.readInt64(); - break; - } - case 80: { - bitField0_ |= 0x00000200; - subProjectId_ = input.readInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Component_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Component_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Component.class, org.sonarqube.ws.Issues.Component.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private long id_; - /** - * optional int64 id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int64 id = 1; - */ - public long getId() { - return id_; - } - - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - * optional string key = 2; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UUID_FIELD_NUMBER = 3; - private volatile java.lang.Object uuid_; - /** - * optional string uuid = 3; - */ - public boolean hasUuid() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string uuid = 3; - */ - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - uuid_ = s; - } - return s; - } - } - /** - * optional string uuid = 3; - */ - public com.google.protobuf.ByteString - getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENABLED_FIELD_NUMBER = 4; - private boolean enabled_; - /** - * optional bool enabled = 4; - */ - public boolean hasEnabled() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool enabled = 4; - */ - public boolean getEnabled() { - return enabled_; - } - - public static final int QUALIFIER_FIELD_NUMBER = 5; - private volatile java.lang.Object qualifier_; - /** - * optional string qualifier = 5; - */ - public boolean hasQualifier() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string qualifier = 5; - */ - public java.lang.String getQualifier() { - java.lang.Object ref = qualifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - qualifier_ = s; - } - return s; - } - } - /** - * optional string qualifier = 5; - */ - public com.google.protobuf.ByteString - getQualifierBytes() { - java.lang.Object ref = qualifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - qualifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; - /** - * optional string name = 6; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string name = 6; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 6; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LONGNAME_FIELD_NUMBER = 7; - private volatile java.lang.Object longName_; - /** - * optional string longName = 7; - */ - public boolean hasLongName() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string longName = 7; - */ - public java.lang.String getLongName() { - java.lang.Object ref = longName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - longName_ = s; - } - return s; - } - } - /** - * optional string longName = 7; - */ - public com.google.protobuf.ByteString - getLongNameBytes() { - java.lang.Object ref = longName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - longName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PATH_FIELD_NUMBER = 8; - private volatile java.lang.Object path_; - /** - * optional string path = 8; - */ - public boolean hasPath() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional string path = 8; - */ - public java.lang.String getPath() { - java.lang.Object ref = path_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - path_ = s; - } - return s; - } - } - /** - * optional string path = 8; - */ - public com.google.protobuf.ByteString - getPathBytes() { - java.lang.Object ref = path_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - path_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROJECTID_FIELD_NUMBER = 9; - private long projectId_; - /** - * optional int64 projectId = 9; - */ - public boolean hasProjectId() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional int64 projectId = 9; - */ - public long getProjectId() { - return projectId_; - } - - public static final int SUBPROJECTID_FIELD_NUMBER = 10; - private long subProjectId_; - /** - * optional int64 subProjectId = 10; - */ - public boolean hasSubProjectId() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional int64 subProjectId = 10; - */ - public long getSubProjectId() { - return subProjectId_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, id_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getUuidBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBool(4, enabled_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getQualifierBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getNameBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getLongNameBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(8, getPathBytes()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeInt64(9, projectId_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeInt64(10, subProjectId_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, id_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getUuidBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, enabled_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getQualifierBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getNameBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getLongNameBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getPathBytes()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, projectId_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, subProjectId_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Issues.Component parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Component parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Component parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Issues.Component parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Component parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Component parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Component parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Issues.Component parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Issues.Component parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Issues.Component parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Issues.Component prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.issues.Component} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Component) - org.sonarqube.ws.Issues.ComponentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Component_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Component_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Issues.Component.class, org.sonarqube.ws.Issues.Component.Builder.class); - } - - // Construct using org.sonarqube.ws.Issues.Component.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - id_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - uuid_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - enabled_ = false; - bitField0_ = (bitField0_ & ~0x00000008); - qualifier_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - longName_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); - path_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); - projectId_ = 0L; - bitField0_ = (bitField0_ & ~0x00000100); - subProjectId_ = 0L; - bitField0_ = (bitField0_ & ~0x00000200); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Component_descriptor; - } - - public org.sonarqube.ws.Issues.Component getDefaultInstanceForType() { - return org.sonarqube.ws.Issues.Component.getDefaultInstance(); - } - - public org.sonarqube.ws.Issues.Component build() { - org.sonarqube.ws.Issues.Component result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Issues.Component buildPartial() { - org.sonarqube.ws.Issues.Component result = new org.sonarqube.ws.Issues.Component(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.uuid_ = uuid_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.enabled_ = enabled_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.qualifier_ = qualifier_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.longName_ = longName_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.path_ = path_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.projectId_ = projectId_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - result.subProjectId_ = subProjectId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Issues.Component) { - return mergeFrom((org.sonarqube.ws.Issues.Component)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Issues.Component other) { - if (other == org.sonarqube.ws.Issues.Component.getDefaultInstance()) return this; - if (other.hasId()) { - setId(other.getId()); - } - if (other.hasKey()) { - bitField0_ |= 0x00000002; - key_ = other.key_; - onChanged(); - } - if (other.hasUuid()) { - bitField0_ |= 0x00000004; - uuid_ = other.uuid_; - onChanged(); - } - if (other.hasEnabled()) { - setEnabled(other.getEnabled()); - } - if (other.hasQualifier()) { - bitField0_ |= 0x00000010; - qualifier_ = other.qualifier_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000020; - name_ = other.name_; - onChanged(); - } - if (other.hasLongName()) { - bitField0_ |= 0x00000040; - longName_ = other.longName_; - onChanged(); - } - if (other.hasPath()) { - bitField0_ |= 0x00000080; - path_ = other.path_; - onChanged(); - } - if (other.hasProjectId()) { - setProjectId(other.getProjectId()); - } - if (other.hasSubProjectId()) { - setSubProjectId(other.getSubProjectId()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Issues.Component parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Issues.Component) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long id_ ; - /** - * optional int64 id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int64 id = 1; - */ - public long getId() { - return id_; - } - /** - * optional int64 id = 1; - */ - public Builder setId(long value) { - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional int64 id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - * optional string key = 2; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 2; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 2; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000002); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 2; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object uuid_ = ""; - /** - * optional string uuid = 3; - */ - public boolean hasUuid() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string uuid = 3; - */ - public java.lang.String getUuid() { - java.lang.Object ref = uuid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - uuid_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string uuid = 3; - */ - public com.google.protobuf.ByteString - getUuidBytes() { - java.lang.Object ref = uuid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uuid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string uuid = 3; - */ - public Builder setUuid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - uuid_ = value; - onChanged(); - return this; - } - /** - * optional string uuid = 3; - */ - public Builder clearUuid() { - bitField0_ = (bitField0_ & ~0x00000004); - uuid_ = getDefaultInstance().getUuid(); - onChanged(); - return this; - } - /** - * optional string uuid = 3; - */ - public Builder setUuidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - uuid_ = value; - onChanged(); - return this; - } - - private boolean enabled_ ; - /** - * optional bool enabled = 4; - */ - public boolean hasEnabled() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool enabled = 4; - */ - public boolean getEnabled() { - return enabled_; - } - /** - * optional bool enabled = 4; - */ - public Builder setEnabled(boolean value) { - bitField0_ |= 0x00000008; - enabled_ = value; - onChanged(); - return this; - } - /** - * optional bool enabled = 4; - */ - public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000008); - enabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object qualifier_ = ""; - /** - * optional string qualifier = 5; - */ - public boolean hasQualifier() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string qualifier = 5; - */ - public java.lang.String getQualifier() { - java.lang.Object ref = qualifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - qualifier_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string qualifier = 5; - */ - public com.google.protobuf.ByteString - getQualifierBytes() { - java.lang.Object ref = qualifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - qualifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string qualifier = 5; - */ - public Builder setQualifier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - qualifier_ = value; - onChanged(); - return this; - } - /** - * optional string qualifier = 5; - */ - public Builder clearQualifier() { - bitField0_ = (bitField0_ & ~0x00000010); - qualifier_ = getDefaultInstance().getQualifier(); - onChanged(); - return this; - } - /** - * optional string qualifier = 5; - */ - public Builder setQualifierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - qualifier_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 6; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string name = 6; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 6; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 6; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 6; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000020); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 6; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object longName_ = ""; - /** - * optional string longName = 7; - */ - public boolean hasLongName() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string longName = 7; - */ - public java.lang.String getLongName() { - java.lang.Object ref = longName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - longName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string longName = 7; - */ - public com.google.protobuf.ByteString - getLongNameBytes() { - java.lang.Object ref = longName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - longName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string longName = 7; - */ - public Builder setLongName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - longName_ = value; - onChanged(); - return this; - } - /** - * optional string longName = 7; - */ - public Builder clearLongName() { - bitField0_ = (bitField0_ & ~0x00000040); - longName_ = getDefaultInstance().getLongName(); - onChanged(); - return this; - } - /** - * optional string longName = 7; - */ - public Builder setLongNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - longName_ = value; - onChanged(); - return this; - } - - private java.lang.Object path_ = ""; - /** - * optional string path = 8; - */ - public boolean hasPath() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional string path = 8; - */ - public java.lang.String getPath() { - java.lang.Object ref = path_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - path_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string path = 8; - */ - public com.google.protobuf.ByteString - getPathBytes() { - java.lang.Object ref = path_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - path_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string path = 8; - */ - public Builder setPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - path_ = value; - onChanged(); - return this; - } - /** - * optional string path = 8; - */ - public Builder clearPath() { - bitField0_ = (bitField0_ & ~0x00000080); - path_ = getDefaultInstance().getPath(); - onChanged(); - return this; - } - /** - * optional string path = 8; - */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - path_ = value; - onChanged(); - return this; - } - - private long projectId_ ; - /** - * optional int64 projectId = 9; - */ - public boolean hasProjectId() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional int64 projectId = 9; - */ - public long getProjectId() { - return projectId_; - } - /** - * optional int64 projectId = 9; - */ - public Builder setProjectId(long value) { - bitField0_ |= 0x00000100; - projectId_ = value; - onChanged(); - return this; - } - /** - * optional int64 projectId = 9; - */ - public Builder clearProjectId() { - bitField0_ = (bitField0_ & ~0x00000100); - projectId_ = 0L; - onChanged(); - return this; - } - - private long subProjectId_ ; - /** - * optional int64 subProjectId = 10; - */ - public boolean hasSubProjectId() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional int64 subProjectId = 10; - */ - public long getSubProjectId() { - return subProjectId_; - } - /** - * optional int64 subProjectId = 10; - */ - public Builder setSubProjectId(long value) { - bitField0_ |= 0x00000200; - subProjectId_ = value; - onChanged(); - return this; - } - /** - * optional int64 subProjectId = 10; - */ - public Builder clearSubProjectId() { - bitField0_ = (bitField0_ & ~0x00000200); - subProjectId_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Component) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Component) - private static final org.sonarqube.ws.Issues.Component DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Component(); - } - - public static org.sonarqube.ws.Issues.Component getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Component parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Component(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Issues.Component getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_issues_Search_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_issues_Search_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_issues_Operation_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_issues_Operation_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_issues_Issue_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_issues_Issue_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_issues_Transitions_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_issues_Transitions_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_issues_Actions_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_issues_Actions_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_issues_Flow_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_issues_Flow_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_issues_Location_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_issues_Location_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_issues_Comment_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_issues_Comment_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_issues_Comments_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_issues_Comments_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_issues_ActionPlan_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_issues_ActionPlan_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_issues_ActionPlans_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_issues_ActionPlans_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_issues_Language_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_issues_Language_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_issues_Languages_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_issues_Languages_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_issues_Component_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_issues_Component_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\017ws-issues.proto\022\023sonarqube.ws.issues\032\020" + - "ws-commons.proto\"\277\003\n\006Search\022\r\n\005total\030\001 \001" + - "(\003\022\t\n\001p\030\002 \001(\003\022\n\n\002ps\030\003 \001(\005\022,\n\006paging\030\004 \001(" + - "\0132\034.sonarqube.ws.commons.Paging\022\021\n\tdebtT" + - "otal\030\005 \001(\003\022*\n\006issues\030\006 \003(\0132\032.sonarqube.w" + - "s.issues.Issue\0222\n\ncomponents\030\007 \003(\0132\036.son" + - "arqube.ws.issues.Component\022*\n\005rules\030\010 \001(" + - "\0132\033.sonarqube.ws.commons.Rules\022*\n\005users\030" + - "\t \001(\0132\033.sonarqube.ws.commons.Users\0225\n\013ac" + - "tionPlans\030\n \001(\0132 .sonarqube.ws.issues.Ac", - "tionPlans\0221\n\tlanguages\030\013 \001(\0132\036.sonarqube" + - ".ws.issues.Languages\022,\n\006facets\030\014 \001(\0132\034.s" + - "onarqube.ws.commons.Facets\"\366\001\n\tOperation" + - "\022)\n\005issue\030\001 \001(\0132\032.sonarqube.ws.issues.Is" + - "sue\0222\n\ncomponents\030\002 \003(\0132\036.sonarqube.ws.i" + - "ssues.Component\022)\n\005rules\030\003 \003(\0132\032.sonarqu" + - "be.ws.commons.Rule\022)\n\005users\030\004 \003(\0132\032.sona" + - "rqube.ws.commons.User\0224\n\013actionPlans\030\005 \003" + - "(\0132\037.sonarqube.ws.issues.ActionPlan\"\216\005\n\005" + - "Issue\022\013\n\003key\030\001 \001(\t\022\014\n\004rule\030\002 \001(\t\0220\n\010seve", - "rity\030\003 \001(\0162\036.sonarqube.ws.commons.Severi" + - "ty\022\021\n\tcomponent\030\004 \001(\t\022\023\n\013componentId\030\005 \001" + - "(\003\022\017\n\007project\030\006 \001(\t\022\022\n\nsubProject\030\007 \001(\t\022" + - "\014\n\004line\030\010 \001(\005\0222\n\ttextRange\030\t \001(\0132\037.sonar" + - "qube.ws.commons.TextRange\022(\n\005flows\030\n \003(\013" + - "2\031.sonarqube.ws.issues.Flow\022\022\n\nresolutio" + - "n\030\013 \001(\t\022\016\n\006status\030\014 \001(\t\022\017\n\007message\030\r \001(\t" + - "\022\014\n\004debt\030\016 \001(\t\022\020\n\010assignee\030\017 \001(\t\022\020\n\010repo" + - "rter\030\020 \001(\t\022\016\n\006author\030\021 \001(\t\022\022\n\nactionPlan" + - "\030\022 \001(\t\022\014\n\004tags\030\023 \003(\t\0225\n\013transitions\030\024 \001(", - "\0132 .sonarqube.ws.issues.Transitions\022-\n\007a" + - "ctions\030\025 \001(\0132\034.sonarqube.ws.issues.Actio" + - "ns\022/\n\010comments\030\026 \001(\0132\035.sonarqube.ws.issu" + - "es.Comments\022\024\n\014creationDate\030\027 \001(\t\022\022\n\nupd" + - "ateDate\030\030 \001(\t\022\022\n\nfUpdateAge\030\031 \001(\t\022\021\n\tclo" + - "seDate\030\032 \001(\t\"\"\n\013Transitions\022\023\n\013transitio" + - "ns\030\001 \003(\t\"\032\n\007Actions\022\017\n\007actions\030\001 \003(\t\"8\n\004" + - "Flow\0220\n\tlocations\030\001 \003(\0132\035.sonarqube.ws.i" + - "ssues.Location\"`\n\010Location\022\023\n\013componentI" + - "d\030\001 \001(\t\0222\n\ttextRange\030\002 \001(\0132\037.sonarqube.w", - "s.commons.TextRange\022\013\n\003msg\030\003 \001(\t\"\220\001\n\007Com" + - "ment\022\013\n\003key\030\001 \001(\t\022\r\n\005login\030\002 \001(\t\022\r\n\005emai" + - "l\030\003 \001(\t\022\020\n\010userName\030\004 \001(\t\022\020\n\010htmlText\030\005 " + - "\001(\t\022\020\n\010markdown\030\006 \001(\t\022\021\n\tupdatable\030\007 \001(\010" + - "\022\021\n\tcreatedAt\030\010 \001(\t\":\n\010Comments\022.\n\010comme" + - "nts\030\001 \003(\0132\034.sonarqube.ws.issues.Comment\"" + - "Z\n\nActionPlan\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002 \001(\t" + - "\022\016\n\006status\030\003 \001(\t\022\020\n\010deadLine\030\004 \001(\t\022\017\n\007pr" + - "oject\030\005 \001(\t\"C\n\013ActionPlans\0224\n\013actionPlan" + - "s\030\001 \003(\0132\037.sonarqube.ws.issues.ActionPlan", - "\"%\n\010Language\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\"" + - "=\n\tLanguages\0220\n\tlanguages\030\001 \003(\0132\035.sonarq" + - "ube.ws.issues.Language\"\255\001\n\tComponent\022\n\n\002" + - "id\030\001 \001(\003\022\013\n\003key\030\002 \001(\t\022\014\n\004uuid\030\003 \001(\t\022\017\n\007e" + - "nabled\030\004 \001(\010\022\021\n\tqualifier\030\005 \001(\t\022\014\n\004name\030" + - "\006 \001(\t\022\020\n\010longName\030\007 \001(\t\022\014\n\004path\030\010 \001(\t\022\021\n" + - "\tprojectId\030\t \001(\003\022\024\n\014subProjectId\030\n \001(\003B\034" + - "\n\020org.sonarqube.wsB\006IssuesH\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.sonarqube.ws.Common.getDescriptor(), - }, assigner); - internal_static_sonarqube_ws_issues_Search_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_sonarqube_ws_issues_Search_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_issues_Search_descriptor, - new java.lang.String[] { "Total", "P", "Ps", "Paging", "DebtTotal", "Issues", "Components", "Rules", "Users", "ActionPlans", "Languages", "Facets", }); - internal_static_sonarqube_ws_issues_Operation_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_sonarqube_ws_issues_Operation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_issues_Operation_descriptor, - new java.lang.String[] { "Issue", "Components", "Rules", "Users", "ActionPlans", }); - internal_static_sonarqube_ws_issues_Issue_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_sonarqube_ws_issues_Issue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_issues_Issue_descriptor, - new java.lang.String[] { "Key", "Rule", "Severity", "Component", "ComponentId", "Project", "SubProject", "Line", "TextRange", "Flows", "Resolution", "Status", "Message", "Debt", "Assignee", "Reporter", "Author", "ActionPlan", "Tags", "Transitions", "Actions", "Comments", "CreationDate", "UpdateDate", "FUpdateAge", "CloseDate", }); - internal_static_sonarqube_ws_issues_Transitions_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_sonarqube_ws_issues_Transitions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_issues_Transitions_descriptor, - new java.lang.String[] { "Transitions", }); - internal_static_sonarqube_ws_issues_Actions_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_sonarqube_ws_issues_Actions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_issues_Actions_descriptor, - new java.lang.String[] { "Actions", }); - internal_static_sonarqube_ws_issues_Flow_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_sonarqube_ws_issues_Flow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_issues_Flow_descriptor, - new java.lang.String[] { "Locations", }); - internal_static_sonarqube_ws_issues_Location_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_sonarqube_ws_issues_Location_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_issues_Location_descriptor, - new java.lang.String[] { "ComponentId", "TextRange", "Msg", }); - internal_static_sonarqube_ws_issues_Comment_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_sonarqube_ws_issues_Comment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_issues_Comment_descriptor, - new java.lang.String[] { "Key", "Login", "Email", "UserName", "HtmlText", "Markdown", "Updatable", "CreatedAt", }); - internal_static_sonarqube_ws_issues_Comments_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_sonarqube_ws_issues_Comments_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_issues_Comments_descriptor, - new java.lang.String[] { "Comments", }); - internal_static_sonarqube_ws_issues_ActionPlan_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_sonarqube_ws_issues_ActionPlan_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_issues_ActionPlan_descriptor, - new java.lang.String[] { "Key", "Name", "Status", "DeadLine", "Project", }); - internal_static_sonarqube_ws_issues_ActionPlans_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_sonarqube_ws_issues_ActionPlans_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_issues_ActionPlans_descriptor, - new java.lang.String[] { "ActionPlans", }); - internal_static_sonarqube_ws_issues_Language_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_sonarqube_ws_issues_Language_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_issues_Language_descriptor, - new java.lang.String[] { "Key", "Name", }); - internal_static_sonarqube_ws_issues_Languages_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_sonarqube_ws_issues_Languages_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_issues_Languages_descriptor, - new java.lang.String[] { "Languages", }); - internal_static_sonarqube_ws_issues_Component_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_sonarqube_ws_issues_Component_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_issues_Component_descriptor, - new java.lang.String[] { "Id", "Key", "Uuid", "Enabled", "Qualifier", "Name", "LongName", "Path", "ProjectId", "SubProjectId", }); - org.sonarqube.ws.Common.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sonar-ws/src/main/gen-java/org/sonarqube/ws/QualityProfiles.java b/sonar-ws/src/main/gen-java/org/sonarqube/ws/QualityProfiles.java deleted file mode 100644 index d684d8faf62..00000000000 --- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/QualityProfiles.java +++ /dev/null @@ -1,2475 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ws-qualityprofiles.proto - -package org.sonarqube.ws; - -public final class QualityProfiles { - private QualityProfiles() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface WsSearchResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.qualityprofiles.WsSearchResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - java.util.List - getProfilesList(); - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile getProfiles(int index); - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - int getProfilesCount(); - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - java.util.List - getProfilesOrBuilderList(); - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfileOrBuilder getProfilesOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.qualityprofiles.WsSearchResponse} - * - *
-   * WS api/qualityprofiles/search
-   * 
- */ - public static final class WsSearchResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.qualityprofiles.WsSearchResponse) - WsSearchResponseOrBuilder { - // Use WsSearchResponse.newBuilder() to construct. - private WsSearchResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsSearchResponse() { - profiles_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsSearchResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - profiles_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - profiles_.add(input.readMessage(org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - profiles_ = java.util.Collections.unmodifiableList(profiles_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.QualityProfiles.WsSearchResponse.class, org.sonarqube.ws.QualityProfiles.WsSearchResponse.Builder.class); - } - - public interface QualityProfileOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string key = 1; - */ - boolean hasKey(); - /** - * optional string key = 1; - */ - java.lang.String getKey(); - /** - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string language = 3; - */ - boolean hasLanguage(); - /** - * optional string language = 3; - */ - java.lang.String getLanguage(); - /** - * optional string language = 3; - */ - com.google.protobuf.ByteString - getLanguageBytes(); - - /** - * optional string languageName = 4; - */ - boolean hasLanguageName(); - /** - * optional string languageName = 4; - */ - java.lang.String getLanguageName(); - /** - * optional string languageName = 4; - */ - com.google.protobuf.ByteString - getLanguageNameBytes(); - - /** - * optional bool isInherited = 5; - */ - boolean hasIsInherited(); - /** - * optional bool isInherited = 5; - */ - boolean getIsInherited(); - - /** - * optional string parentKey = 6; - */ - boolean hasParentKey(); - /** - * optional string parentKey = 6; - */ - java.lang.String getParentKey(); - /** - * optional string parentKey = 6; - */ - com.google.protobuf.ByteString - getParentKeyBytes(); - - /** - * optional string parentName = 7; - */ - boolean hasParentName(); - /** - * optional string parentName = 7; - */ - java.lang.String getParentName(); - /** - * optional string parentName = 7; - */ - com.google.protobuf.ByteString - getParentNameBytes(); - - /** - * optional bool isDefault = 8; - */ - boolean hasIsDefault(); - /** - * optional bool isDefault = 8; - */ - boolean getIsDefault(); - - /** - * optional int64 activeRuleCount = 9; - */ - boolean hasActiveRuleCount(); - /** - * optional int64 activeRuleCount = 9; - */ - long getActiveRuleCount(); - - /** - * optional int64 projectCount = 10; - */ - boolean hasProjectCount(); - /** - * optional int64 projectCount = 10; - */ - long getProjectCount(); - - /** - * optional string rulesUpdatedAt = 11; - */ - boolean hasRulesUpdatedAt(); - /** - * optional string rulesUpdatedAt = 11; - */ - java.lang.String getRulesUpdatedAt(); - /** - * optional string rulesUpdatedAt = 11; - */ - com.google.protobuf.ByteString - getRulesUpdatedAtBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile} - */ - public static final class QualityProfile extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile) - QualityProfileOrBuilder { - // Use QualityProfile.newBuilder() to construct. - private QualityProfile(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private QualityProfile() { - key_ = ""; - name_ = ""; - language_ = ""; - languageName_ = ""; - isInherited_ = false; - parentKey_ = ""; - parentName_ = ""; - isDefault_ = false; - activeRuleCount_ = 0L; - projectCount_ = 0L; - rulesUpdatedAt_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QualityProfile( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - language_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - languageName_ = bs; - break; - } - case 40: { - bitField0_ |= 0x00000010; - isInherited_ = input.readBool(); - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - parentKey_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - parentName_ = bs; - break; - } - case 64: { - bitField0_ |= 0x00000080; - isDefault_ = input.readBool(); - break; - } - case 72: { - bitField0_ |= 0x00000100; - activeRuleCount_ = input.readInt64(); - break; - } - case 80: { - bitField0_ |= 0x00000200; - projectCount_ = input.readInt64(); - break; - } - case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000400; - rulesUpdatedAt_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_QualityProfile_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_QualityProfile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.class, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder.class); - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LANGUAGE_FIELD_NUMBER = 3; - private volatile java.lang.Object language_; - /** - * optional string language = 3; - */ - public boolean hasLanguage() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string language = 3; - */ - public java.lang.String getLanguage() { - java.lang.Object ref = language_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - language_ = s; - } - return s; - } - } - /** - * optional string language = 3; - */ - public com.google.protobuf.ByteString - getLanguageBytes() { - java.lang.Object ref = language_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - language_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LANGUAGENAME_FIELD_NUMBER = 4; - private volatile java.lang.Object languageName_; - /** - * optional string languageName = 4; - */ - public boolean hasLanguageName() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string languageName = 4; - */ - public java.lang.String getLanguageName() { - java.lang.Object ref = languageName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - languageName_ = s; - } - return s; - } - } - /** - * optional string languageName = 4; - */ - public com.google.protobuf.ByteString - getLanguageNameBytes() { - java.lang.Object ref = languageName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - languageName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ISINHERITED_FIELD_NUMBER = 5; - private boolean isInherited_; - /** - * optional bool isInherited = 5; - */ - public boolean hasIsInherited() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional bool isInherited = 5; - */ - public boolean getIsInherited() { - return isInherited_; - } - - public static final int PARENTKEY_FIELD_NUMBER = 6; - private volatile java.lang.Object parentKey_; - /** - * optional string parentKey = 6; - */ - public boolean hasParentKey() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string parentKey = 6; - */ - public java.lang.String getParentKey() { - java.lang.Object ref = parentKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - parentKey_ = s; - } - return s; - } - } - /** - * optional string parentKey = 6; - */ - public com.google.protobuf.ByteString - getParentKeyBytes() { - java.lang.Object ref = parentKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parentKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENTNAME_FIELD_NUMBER = 7; - private volatile java.lang.Object parentName_; - /** - * optional string parentName = 7; - */ - public boolean hasParentName() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string parentName = 7; - */ - public java.lang.String getParentName() { - java.lang.Object ref = parentName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - parentName_ = s; - } - return s; - } - } - /** - * optional string parentName = 7; - */ - public com.google.protobuf.ByteString - getParentNameBytes() { - java.lang.Object ref = parentName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parentName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ISDEFAULT_FIELD_NUMBER = 8; - private boolean isDefault_; - /** - * optional bool isDefault = 8; - */ - public boolean hasIsDefault() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional bool isDefault = 8; - */ - public boolean getIsDefault() { - return isDefault_; - } - - public static final int ACTIVERULECOUNT_FIELD_NUMBER = 9; - private long activeRuleCount_; - /** - * optional int64 activeRuleCount = 9; - */ - public boolean hasActiveRuleCount() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional int64 activeRuleCount = 9; - */ - public long getActiveRuleCount() { - return activeRuleCount_; - } - - public static final int PROJECTCOUNT_FIELD_NUMBER = 10; - private long projectCount_; - /** - * optional int64 projectCount = 10; - */ - public boolean hasProjectCount() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional int64 projectCount = 10; - */ - public long getProjectCount() { - return projectCount_; - } - - public static final int RULESUPDATEDAT_FIELD_NUMBER = 11; - private volatile java.lang.Object rulesUpdatedAt_; - /** - * optional string rulesUpdatedAt = 11; - */ - public boolean hasRulesUpdatedAt() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional string rulesUpdatedAt = 11; - */ - public java.lang.String getRulesUpdatedAt() { - java.lang.Object ref = rulesUpdatedAt_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - rulesUpdatedAt_ = s; - } - return s; - } - } - /** - * optional string rulesUpdatedAt = 11; - */ - public com.google.protobuf.ByteString - getRulesUpdatedAtBytes() { - java.lang.Object ref = rulesUpdatedAt_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rulesUpdatedAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getLanguageBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getLanguageNameBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBool(5, isInherited_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getParentKeyBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getParentNameBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBool(8, isDefault_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeInt64(9, activeRuleCount_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeInt64(10, projectCount_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(11, getRulesUpdatedAtBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getLanguageBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getLanguageNameBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, isInherited_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getParentKeyBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getParentNameBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, isDefault_); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, activeRuleCount_); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(10, projectCount_); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getRulesUpdatedAtBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile) - org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_QualityProfile_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_QualityProfile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.class, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder.class); - } - - // Construct using org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - language_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - languageName_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - isInherited_ = false; - bitField0_ = (bitField0_ & ~0x00000010); - parentKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - parentName_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); - isDefault_ = false; - bitField0_ = (bitField0_ & ~0x00000080); - activeRuleCount_ = 0L; - bitField0_ = (bitField0_ & ~0x00000100); - projectCount_ = 0L; - bitField0_ = (bitField0_ & ~0x00000200); - rulesUpdatedAt_ = ""; - bitField0_ = (bitField0_ & ~0x00000400); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_QualityProfile_descriptor; - } - - public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile getDefaultInstanceForType() { - return org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.getDefaultInstance(); - } - - public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile build() { - org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile buildPartial() { - org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile result = new org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.language_ = language_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.languageName_ = languageName_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.isInherited_ = isInherited_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.parentKey_ = parentKey_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.parentName_ = parentName_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.isDefault_ = isDefault_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.activeRuleCount_ = activeRuleCount_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - result.projectCount_ = projectCount_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } - result.rulesUpdatedAt_ = rulesUpdatedAt_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile) { - return mergeFrom((org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile other) { - if (other == org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasLanguage()) { - bitField0_ |= 0x00000004; - language_ = other.language_; - onChanged(); - } - if (other.hasLanguageName()) { - bitField0_ |= 0x00000008; - languageName_ = other.languageName_; - onChanged(); - } - if (other.hasIsInherited()) { - setIsInherited(other.getIsInherited()); - } - if (other.hasParentKey()) { - bitField0_ |= 0x00000020; - parentKey_ = other.parentKey_; - onChanged(); - } - if (other.hasParentName()) { - bitField0_ |= 0x00000040; - parentName_ = other.parentName_; - onChanged(); - } - if (other.hasIsDefault()) { - setIsDefault(other.getIsDefault()); - } - if (other.hasActiveRuleCount()) { - setActiveRuleCount(other.getActiveRuleCount()); - } - if (other.hasProjectCount()) { - setProjectCount(other.getProjectCount()); - } - if (other.hasRulesUpdatedAt()) { - bitField0_ |= 0x00000400; - rulesUpdatedAt_ = other.rulesUpdatedAt_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object language_ = ""; - /** - * optional string language = 3; - */ - public boolean hasLanguage() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string language = 3; - */ - public java.lang.String getLanguage() { - java.lang.Object ref = language_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - language_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string language = 3; - */ - public com.google.protobuf.ByteString - getLanguageBytes() { - java.lang.Object ref = language_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - language_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string language = 3; - */ - public Builder setLanguage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - language_ = value; - onChanged(); - return this; - } - /** - * optional string language = 3; - */ - public Builder clearLanguage() { - bitField0_ = (bitField0_ & ~0x00000004); - language_ = getDefaultInstance().getLanguage(); - onChanged(); - return this; - } - /** - * optional string language = 3; - */ - public Builder setLanguageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - language_ = value; - onChanged(); - return this; - } - - private java.lang.Object languageName_ = ""; - /** - * optional string languageName = 4; - */ - public boolean hasLanguageName() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string languageName = 4; - */ - public java.lang.String getLanguageName() { - java.lang.Object ref = languageName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - languageName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string languageName = 4; - */ - public com.google.protobuf.ByteString - getLanguageNameBytes() { - java.lang.Object ref = languageName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - languageName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string languageName = 4; - */ - public Builder setLanguageName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - languageName_ = value; - onChanged(); - return this; - } - /** - * optional string languageName = 4; - */ - public Builder clearLanguageName() { - bitField0_ = (bitField0_ & ~0x00000008); - languageName_ = getDefaultInstance().getLanguageName(); - onChanged(); - return this; - } - /** - * optional string languageName = 4; - */ - public Builder setLanguageNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - languageName_ = value; - onChanged(); - return this; - } - - private boolean isInherited_ ; - /** - * optional bool isInherited = 5; - */ - public boolean hasIsInherited() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional bool isInherited = 5; - */ - public boolean getIsInherited() { - return isInherited_; - } - /** - * optional bool isInherited = 5; - */ - public Builder setIsInherited(boolean value) { - bitField0_ |= 0x00000010; - isInherited_ = value; - onChanged(); - return this; - } - /** - * optional bool isInherited = 5; - */ - public Builder clearIsInherited() { - bitField0_ = (bitField0_ & ~0x00000010); - isInherited_ = false; - onChanged(); - return this; - } - - private java.lang.Object parentKey_ = ""; - /** - * optional string parentKey = 6; - */ - public boolean hasParentKey() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string parentKey = 6; - */ - public java.lang.String getParentKey() { - java.lang.Object ref = parentKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - parentKey_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string parentKey = 6; - */ - public com.google.protobuf.ByteString - getParentKeyBytes() { - java.lang.Object ref = parentKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parentKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string parentKey = 6; - */ - public Builder setParentKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - parentKey_ = value; - onChanged(); - return this; - } - /** - * optional string parentKey = 6; - */ - public Builder clearParentKey() { - bitField0_ = (bitField0_ & ~0x00000020); - parentKey_ = getDefaultInstance().getParentKey(); - onChanged(); - return this; - } - /** - * optional string parentKey = 6; - */ - public Builder setParentKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - parentKey_ = value; - onChanged(); - return this; - } - - private java.lang.Object parentName_ = ""; - /** - * optional string parentName = 7; - */ - public boolean hasParentName() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string parentName = 7; - */ - public java.lang.String getParentName() { - java.lang.Object ref = parentName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - parentName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string parentName = 7; - */ - public com.google.protobuf.ByteString - getParentNameBytes() { - java.lang.Object ref = parentName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parentName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string parentName = 7; - */ - public Builder setParentName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - parentName_ = value; - onChanged(); - return this; - } - /** - * optional string parentName = 7; - */ - public Builder clearParentName() { - bitField0_ = (bitField0_ & ~0x00000040); - parentName_ = getDefaultInstance().getParentName(); - onChanged(); - return this; - } - /** - * optional string parentName = 7; - */ - public Builder setParentNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - parentName_ = value; - onChanged(); - return this; - } - - private boolean isDefault_ ; - /** - * optional bool isDefault = 8; - */ - public boolean hasIsDefault() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional bool isDefault = 8; - */ - public boolean getIsDefault() { - return isDefault_; - } - /** - * optional bool isDefault = 8; - */ - public Builder setIsDefault(boolean value) { - bitField0_ |= 0x00000080; - isDefault_ = value; - onChanged(); - return this; - } - /** - * optional bool isDefault = 8; - */ - public Builder clearIsDefault() { - bitField0_ = (bitField0_ & ~0x00000080); - isDefault_ = false; - onChanged(); - return this; - } - - private long activeRuleCount_ ; - /** - * optional int64 activeRuleCount = 9; - */ - public boolean hasActiveRuleCount() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional int64 activeRuleCount = 9; - */ - public long getActiveRuleCount() { - return activeRuleCount_; - } - /** - * optional int64 activeRuleCount = 9; - */ - public Builder setActiveRuleCount(long value) { - bitField0_ |= 0x00000100; - activeRuleCount_ = value; - onChanged(); - return this; - } - /** - * optional int64 activeRuleCount = 9; - */ - public Builder clearActiveRuleCount() { - bitField0_ = (bitField0_ & ~0x00000100); - activeRuleCount_ = 0L; - onChanged(); - return this; - } - - private long projectCount_ ; - /** - * optional int64 projectCount = 10; - */ - public boolean hasProjectCount() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional int64 projectCount = 10; - */ - public long getProjectCount() { - return projectCount_; - } - /** - * optional int64 projectCount = 10; - */ - public Builder setProjectCount(long value) { - bitField0_ |= 0x00000200; - projectCount_ = value; - onChanged(); - return this; - } - /** - * optional int64 projectCount = 10; - */ - public Builder clearProjectCount() { - bitField0_ = (bitField0_ & ~0x00000200); - projectCount_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object rulesUpdatedAt_ = ""; - /** - * optional string rulesUpdatedAt = 11; - */ - public boolean hasRulesUpdatedAt() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional string rulesUpdatedAt = 11; - */ - public java.lang.String getRulesUpdatedAt() { - java.lang.Object ref = rulesUpdatedAt_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - rulesUpdatedAt_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string rulesUpdatedAt = 11; - */ - public com.google.protobuf.ByteString - getRulesUpdatedAtBytes() { - java.lang.Object ref = rulesUpdatedAt_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rulesUpdatedAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string rulesUpdatedAt = 11; - */ - public Builder setRulesUpdatedAt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - rulesUpdatedAt_ = value; - onChanged(); - return this; - } - /** - * optional string rulesUpdatedAt = 11; - */ - public Builder clearRulesUpdatedAt() { - bitField0_ = (bitField0_ & ~0x00000400); - rulesUpdatedAt_ = getDefaultInstance().getRulesUpdatedAt(); - onChanged(); - return this; - } - /** - * optional string rulesUpdatedAt = 11; - */ - public Builder setRulesUpdatedAtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - rulesUpdatedAt_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile) - private static final org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile(); - } - - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public QualityProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new QualityProfile(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int PROFILES_FIELD_NUMBER = 1; - private java.util.List profiles_; - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public java.util.List getProfilesList() { - return profiles_; - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public java.util.List - getProfilesOrBuilderList() { - return profiles_; - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public int getProfilesCount() { - return profiles_.size(); - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile getProfiles(int index) { - return profiles_.get(index); - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfileOrBuilder getProfilesOrBuilder( - int index) { - return profiles_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < profiles_.size(); i++) { - output.writeMessage(1, profiles_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < profiles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, profiles_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.QualityProfiles.WsSearchResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.qualityprofiles.WsSearchResponse} - * - *
-     * WS api/qualityprofiles/search
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.qualityprofiles.WsSearchResponse) - org.sonarqube.ws.QualityProfiles.WsSearchResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.QualityProfiles.WsSearchResponse.class, org.sonarqube.ws.QualityProfiles.WsSearchResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.QualityProfiles.WsSearchResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getProfilesFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (profilesBuilder_ == null) { - profiles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - profilesBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_descriptor; - } - - public org.sonarqube.ws.QualityProfiles.WsSearchResponse getDefaultInstanceForType() { - return org.sonarqube.ws.QualityProfiles.WsSearchResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.QualityProfiles.WsSearchResponse build() { - org.sonarqube.ws.QualityProfiles.WsSearchResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.QualityProfiles.WsSearchResponse buildPartial() { - org.sonarqube.ws.QualityProfiles.WsSearchResponse result = new org.sonarqube.ws.QualityProfiles.WsSearchResponse(this); - int from_bitField0_ = bitField0_; - if (profilesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - profiles_ = java.util.Collections.unmodifiableList(profiles_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.profiles_ = profiles_; - } else { - result.profiles_ = profilesBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.QualityProfiles.WsSearchResponse) { - return mergeFrom((org.sonarqube.ws.QualityProfiles.WsSearchResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.QualityProfiles.WsSearchResponse other) { - if (other == org.sonarqube.ws.QualityProfiles.WsSearchResponse.getDefaultInstance()) return this; - if (profilesBuilder_ == null) { - if (!other.profiles_.isEmpty()) { - if (profiles_.isEmpty()) { - profiles_ = other.profiles_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProfilesIsMutable(); - profiles_.addAll(other.profiles_); - } - onChanged(); - } - } else { - if (!other.profiles_.isEmpty()) { - if (profilesBuilder_.isEmpty()) { - profilesBuilder_.dispose(); - profilesBuilder_ = null; - profiles_ = other.profiles_; - bitField0_ = (bitField0_ & ~0x00000001); - profilesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getProfilesFieldBuilder() : null; - } else { - profilesBuilder_.addAllMessages(other.profiles_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.QualityProfiles.WsSearchResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.QualityProfiles.WsSearchResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List profiles_ = - java.util.Collections.emptyList(); - private void ensureProfilesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - profiles_ = new java.util.ArrayList(profiles_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfileOrBuilder> profilesBuilder_; - - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public java.util.List getProfilesList() { - if (profilesBuilder_ == null) { - return java.util.Collections.unmodifiableList(profiles_); - } else { - return profilesBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public int getProfilesCount() { - if (profilesBuilder_ == null) { - return profiles_.size(); - } else { - return profilesBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile getProfiles(int index) { - if (profilesBuilder_ == null) { - return profiles_.get(index); - } else { - return profilesBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public Builder setProfiles( - int index, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile value) { - if (profilesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProfilesIsMutable(); - profiles_.set(index, value); - onChanged(); - } else { - profilesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public Builder setProfiles( - int index, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder builderForValue) { - if (profilesBuilder_ == null) { - ensureProfilesIsMutable(); - profiles_.set(index, builderForValue.build()); - onChanged(); - } else { - profilesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public Builder addProfiles(org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile value) { - if (profilesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProfilesIsMutable(); - profiles_.add(value); - onChanged(); - } else { - profilesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public Builder addProfiles( - int index, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile value) { - if (profilesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProfilesIsMutable(); - profiles_.add(index, value); - onChanged(); - } else { - profilesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public Builder addProfiles( - org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder builderForValue) { - if (profilesBuilder_ == null) { - ensureProfilesIsMutable(); - profiles_.add(builderForValue.build()); - onChanged(); - } else { - profilesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public Builder addProfiles( - int index, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder builderForValue) { - if (profilesBuilder_ == null) { - ensureProfilesIsMutable(); - profiles_.add(index, builderForValue.build()); - onChanged(); - } else { - profilesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public Builder addAllProfiles( - java.lang.Iterable values) { - if (profilesBuilder_ == null) { - ensureProfilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, profiles_); - onChanged(); - } else { - profilesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public Builder clearProfiles() { - if (profilesBuilder_ == null) { - profiles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - profilesBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public Builder removeProfiles(int index) { - if (profilesBuilder_ == null) { - ensureProfilesIsMutable(); - profiles_.remove(index); - onChanged(); - } else { - profilesBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder getProfilesBuilder( - int index) { - return getProfilesFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfileOrBuilder getProfilesOrBuilder( - int index) { - if (profilesBuilder_ == null) { - return profiles_.get(index); } else { - return profilesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public java.util.List - getProfilesOrBuilderList() { - if (profilesBuilder_ != null) { - return profilesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(profiles_); - } - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder addProfilesBuilder() { - return getProfilesFieldBuilder().addBuilder( - org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder addProfilesBuilder( - int index) { - return getProfilesFieldBuilder().addBuilder( - index, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1; - */ - public java.util.List - getProfilesBuilderList() { - return getProfilesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfileOrBuilder> - getProfilesFieldBuilder() { - if (profilesBuilder_ == null) { - profilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfileOrBuilder>( - profiles_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - profiles_ = null; - } - return profilesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.qualityprofiles.WsSearchResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.qualityprofiles.WsSearchResponse) - private static final org.sonarqube.ws.QualityProfiles.WsSearchResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.QualityProfiles.WsSearchResponse(); - } - - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsSearchResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsSearchResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.QualityProfiles.WsSearchResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_QualityProfile_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_QualityProfile_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030ws-qualityprofiles.proto\022\034sonarqube.ws" + - ".qualityprofiles\"\317\002\n\020WsSearchResponse\022O\n" + - "\010profiles\030\001 \003(\0132=.sonarqube.ws.qualitypr" + - "ofiles.WsSearchResponse.QualityProfile\032\351" + - "\001\n\016QualityProfile\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002" + - " \001(\t\022\020\n\010language\030\003 \001(\t\022\024\n\014languageName\030\004" + - " \001(\t\022\023\n\013isInherited\030\005 \001(\010\022\021\n\tparentKey\030\006" + - " \001(\t\022\022\n\nparentName\030\007 \001(\t\022\021\n\tisDefault\030\010 " + - "\001(\010\022\027\n\017activeRuleCount\030\t \001(\003\022\024\n\014projectC" + - "ount\030\n \001(\003\022\026\n\016rulesUpdatedAt\030\013 \001(\tB%\n\020or", - "g.sonarqube.wsB\017QualityProfilesH\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_descriptor, - new java.lang.String[] { "Profiles", }); - internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_QualityProfile_descriptor = - internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_QualityProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_QualityProfile_descriptor, - new java.lang.String[] { "Key", "Name", "Language", "LanguageName", "IsInherited", "ParentKey", "ParentName", "IsDefault", "ActiveRuleCount", "ProjectCount", "RulesUpdatedAt", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Rules.java b/sonar-ws/src/main/gen-java/org/sonarqube/ws/Rules.java deleted file mode 100644 index e39a5897ffe..00000000000 --- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Rules.java +++ /dev/null @@ -1,17795 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ws-rules.proto - -package org.sonarqube.ws; - -public final class Rules { - private Rules() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface ListResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.ListResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - java.util.List - getRulesList(); - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - org.sonarqube.ws.Rules.ListResponse.Rule getRules(int index); - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - int getRulesCount(); - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - java.util.List - getRulesOrBuilderList(); - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - org.sonarqube.ws.Rules.ListResponse.RuleOrBuilder getRulesOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.rules.ListResponse} - * - *
-   * WS api/rules/list for internal use only
-   * 
- */ - public static final class ListResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.ListResponse) - ListResponseOrBuilder { - // Use ListResponse.newBuilder() to construct. - private ListResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ListResponse() { - rules_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - rules_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - rules_.add(input.readMessage(org.sonarqube.ws.Rules.ListResponse.Rule.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - rules_ = java.util.Collections.unmodifiableList(rules_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ListResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ListResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.ListResponse.class, org.sonarqube.ws.Rules.ListResponse.Builder.class); - } - - public interface RuleOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.ListResponse.Rule) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string repository = 1; - */ - boolean hasRepository(); - /** - * optional string repository = 1; - */ - java.lang.String getRepository(); - /** - * optional string repository = 1; - */ - com.google.protobuf.ByteString - getRepositoryBytes(); - - /** - * optional string key = 2; - */ - boolean hasKey(); - /** - * optional string key = 2; - */ - java.lang.String getKey(); - /** - * optional string key = 2; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string internal_key = 3; - */ - boolean hasInternalKey(); - /** - * optional string internal_key = 3; - */ - java.lang.String getInternalKey(); - /** - * optional string internal_key = 3; - */ - com.google.protobuf.ByteString - getInternalKeyBytes(); - - /** - * optional string name = 4; - */ - boolean hasName(); - /** - * optional string name = 4; - */ - java.lang.String getName(); - /** - * optional string name = 4; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.rules.ListResponse.Rule} - */ - public static final class Rule extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.ListResponse.Rule) - RuleOrBuilder { - // Use Rule.newBuilder() to construct. - private Rule(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Rule() { - repository_ = ""; - key_ = ""; - internalKey_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Rule( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - repository_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - key_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - internalKey_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - name_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ListResponse_Rule_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ListResponse_Rule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.ListResponse.Rule.class, org.sonarqube.ws.Rules.ListResponse.Rule.Builder.class); - } - - private int bitField0_; - public static final int REPOSITORY_FIELD_NUMBER = 1; - private volatile java.lang.Object repository_; - /** - * optional string repository = 1; - */ - public boolean hasRepository() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string repository = 1; - */ - public java.lang.String getRepository() { - java.lang.Object ref = repository_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - repository_ = s; - } - return s; - } - } - /** - * optional string repository = 1; - */ - public com.google.protobuf.ByteString - getRepositoryBytes() { - java.lang.Object ref = repository_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - repository_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - * optional string key = 2; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INTERNAL_KEY_FIELD_NUMBER = 3; - private volatile java.lang.Object internalKey_; - /** - * optional string internal_key = 3; - */ - public boolean hasInternalKey() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string internal_key = 3; - */ - public java.lang.String getInternalKey() { - java.lang.Object ref = internalKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - internalKey_ = s; - } - return s; - } - } - /** - * optional string internal_key = 3; - */ - public com.google.protobuf.ByteString - getInternalKeyBytes() { - java.lang.Object ref = internalKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - internalKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - * optional string name = 4; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string name = 4; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 4; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getRepositoryBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getInternalKeyBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getNameBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getRepositoryBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getInternalKeyBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getNameBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.ListResponse.Rule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.ListResponse.Rule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.ListResponse.Rule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.ListResponse.Rule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.ListResponse.Rule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.ListResponse.Rule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.ListResponse.Rule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.ListResponse.Rule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.ListResponse.Rule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.ListResponse.Rule parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.ListResponse.Rule prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.ListResponse.Rule} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.ListResponse.Rule) - org.sonarqube.ws.Rules.ListResponse.RuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ListResponse_Rule_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ListResponse_Rule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.ListResponse.Rule.class, org.sonarqube.ws.Rules.ListResponse.Rule.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.ListResponse.Rule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - repository_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - internalKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ListResponse_Rule_descriptor; - } - - public org.sonarqube.ws.Rules.ListResponse.Rule getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.ListResponse.Rule.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.ListResponse.Rule build() { - org.sonarqube.ws.Rules.ListResponse.Rule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.ListResponse.Rule buildPartial() { - org.sonarqube.ws.Rules.ListResponse.Rule result = new org.sonarqube.ws.Rules.ListResponse.Rule(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.repository_ = repository_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.internalKey_ = internalKey_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.name_ = name_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.ListResponse.Rule) { - return mergeFrom((org.sonarqube.ws.Rules.ListResponse.Rule)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.ListResponse.Rule other) { - if (other == org.sonarqube.ws.Rules.ListResponse.Rule.getDefaultInstance()) return this; - if (other.hasRepository()) { - bitField0_ |= 0x00000001; - repository_ = other.repository_; - onChanged(); - } - if (other.hasKey()) { - bitField0_ |= 0x00000002; - key_ = other.key_; - onChanged(); - } - if (other.hasInternalKey()) { - bitField0_ |= 0x00000004; - internalKey_ = other.internalKey_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000008; - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.ListResponse.Rule parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.ListResponse.Rule) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object repository_ = ""; - /** - * optional string repository = 1; - */ - public boolean hasRepository() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string repository = 1; - */ - public java.lang.String getRepository() { - java.lang.Object ref = repository_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - repository_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string repository = 1; - */ - public com.google.protobuf.ByteString - getRepositoryBytes() { - java.lang.Object ref = repository_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - repository_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string repository = 1; - */ - public Builder setRepository( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - repository_ = value; - onChanged(); - return this; - } - /** - * optional string repository = 1; - */ - public Builder clearRepository() { - bitField0_ = (bitField0_ & ~0x00000001); - repository_ = getDefaultInstance().getRepository(); - onChanged(); - return this; - } - /** - * optional string repository = 1; - */ - public Builder setRepositoryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - repository_ = value; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - * optional string key = 2; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 2; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 2; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000002); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 2; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object internalKey_ = ""; - /** - * optional string internal_key = 3; - */ - public boolean hasInternalKey() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string internal_key = 3; - */ - public java.lang.String getInternalKey() { - java.lang.Object ref = internalKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - internalKey_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string internal_key = 3; - */ - public com.google.protobuf.ByteString - getInternalKeyBytes() { - java.lang.Object ref = internalKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - internalKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string internal_key = 3; - */ - public Builder setInternalKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - internalKey_ = value; - onChanged(); - return this; - } - /** - * optional string internal_key = 3; - */ - public Builder clearInternalKey() { - bitField0_ = (bitField0_ & ~0x00000004); - internalKey_ = getDefaultInstance().getInternalKey(); - onChanged(); - return this; - } - /** - * optional string internal_key = 3; - */ - public Builder setInternalKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - internalKey_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 4; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string name = 4; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 4; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 4; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 4; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000008); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 4; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - name_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.ListResponse.Rule) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.ListResponse.Rule) - private static final org.sonarqube.ws.Rules.ListResponse.Rule DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.ListResponse.Rule(); - } - - public static org.sonarqube.ws.Rules.ListResponse.Rule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Rule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Rule(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.ListResponse.Rule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int RULES_FIELD_NUMBER = 1; - private java.util.List rules_; - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public java.util.List getRulesList() { - return rules_; - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public java.util.List - getRulesOrBuilderList() { - return rules_; - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public int getRulesCount() { - return rules_.size(); - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public org.sonarqube.ws.Rules.ListResponse.Rule getRules(int index) { - return rules_.get(index); - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public org.sonarqube.ws.Rules.ListResponse.RuleOrBuilder getRulesOrBuilder( - int index) { - return rules_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < rules_.size(); i++) { - output.writeMessage(1, rules_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < rules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rules_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.ListResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.ListResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.ListResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.ListResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.ListResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.ListResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.ListResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.ListResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.ListResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.ListResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.ListResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.ListResponse} - * - *
-     * WS api/rules/list for internal use only
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.ListResponse) - org.sonarqube.ws.Rules.ListResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ListResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ListResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.ListResponse.class, org.sonarqube.ws.Rules.ListResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.ListResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRulesFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (rulesBuilder_ == null) { - rules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - rulesBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ListResponse_descriptor; - } - - public org.sonarqube.ws.Rules.ListResponse getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.ListResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.ListResponse build() { - org.sonarqube.ws.Rules.ListResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.ListResponse buildPartial() { - org.sonarqube.ws.Rules.ListResponse result = new org.sonarqube.ws.Rules.ListResponse(this); - int from_bitField0_ = bitField0_; - if (rulesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - rules_ = java.util.Collections.unmodifiableList(rules_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.rules_ = rules_; - } else { - result.rules_ = rulesBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.ListResponse) { - return mergeFrom((org.sonarqube.ws.Rules.ListResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.ListResponse other) { - if (other == org.sonarqube.ws.Rules.ListResponse.getDefaultInstance()) return this; - if (rulesBuilder_ == null) { - if (!other.rules_.isEmpty()) { - if (rules_.isEmpty()) { - rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRulesIsMutable(); - rules_.addAll(other.rules_); - } - onChanged(); - } - } else { - if (!other.rules_.isEmpty()) { - if (rulesBuilder_.isEmpty()) { - rulesBuilder_.dispose(); - rulesBuilder_ = null; - rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000001); - rulesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getRulesFieldBuilder() : null; - } else { - rulesBuilder_.addAllMessages(other.rules_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.ListResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.ListResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List rules_ = - java.util.Collections.emptyList(); - private void ensureRulesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - rules_ = new java.util.ArrayList(rules_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.ListResponse.Rule, org.sonarqube.ws.Rules.ListResponse.Rule.Builder, org.sonarqube.ws.Rules.ListResponse.RuleOrBuilder> rulesBuilder_; - - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public java.util.List getRulesList() { - if (rulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(rules_); - } else { - return rulesBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public int getRulesCount() { - if (rulesBuilder_ == null) { - return rules_.size(); - } else { - return rulesBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public org.sonarqube.ws.Rules.ListResponse.Rule getRules(int index) { - if (rulesBuilder_ == null) { - return rules_.get(index); - } else { - return rulesBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public Builder setRules( - int index, org.sonarqube.ws.Rules.ListResponse.Rule value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.set(index, value); - onChanged(); - } else { - rulesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public Builder setRules( - int index, org.sonarqube.ws.Rules.ListResponse.Rule.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.set(index, builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public Builder addRules(org.sonarqube.ws.Rules.ListResponse.Rule value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.add(value); - onChanged(); - } else { - rulesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public Builder addRules( - int index, org.sonarqube.ws.Rules.ListResponse.Rule value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.add(index, value); - onChanged(); - } else { - rulesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public Builder addRules( - org.sonarqube.ws.Rules.ListResponse.Rule.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public Builder addRules( - int index, org.sonarqube.ws.Rules.ListResponse.Rule.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(index, builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public Builder addAllRules( - java.lang.Iterable values) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rules_); - onChanged(); - } else { - rulesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public Builder clearRules() { - if (rulesBuilder_ == null) { - rules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - rulesBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public Builder removeRules(int index) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.remove(index); - onChanged(); - } else { - rulesBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public org.sonarqube.ws.Rules.ListResponse.Rule.Builder getRulesBuilder( - int index) { - return getRulesFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public org.sonarqube.ws.Rules.ListResponse.RuleOrBuilder getRulesOrBuilder( - int index) { - if (rulesBuilder_ == null) { - return rules_.get(index); } else { - return rulesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public java.util.List - getRulesOrBuilderList() { - if (rulesBuilder_ != null) { - return rulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rules_); - } - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public org.sonarqube.ws.Rules.ListResponse.Rule.Builder addRulesBuilder() { - return getRulesFieldBuilder().addBuilder( - org.sonarqube.ws.Rules.ListResponse.Rule.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public org.sonarqube.ws.Rules.ListResponse.Rule.Builder addRulesBuilder( - int index) { - return getRulesFieldBuilder().addBuilder( - index, org.sonarqube.ws.Rules.ListResponse.Rule.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.rules.ListResponse.Rule rules = 1; - */ - public java.util.List - getRulesBuilderList() { - return getRulesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.ListResponse.Rule, org.sonarqube.ws.Rules.ListResponse.Rule.Builder, org.sonarqube.ws.Rules.ListResponse.RuleOrBuilder> - getRulesFieldBuilder() { - if (rulesBuilder_ == null) { - rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.ListResponse.Rule, org.sonarqube.ws.Rules.ListResponse.Rule.Builder, org.sonarqube.ws.Rules.ListResponse.RuleOrBuilder>( - rules_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - rules_ = null; - } - return rulesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.ListResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.ListResponse) - private static final org.sonarqube.ws.Rules.ListResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.ListResponse(); - } - - public static org.sonarqube.ws.Rules.ListResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ListResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ListResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.ListResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SearchResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.SearchResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int64 total = 1; - */ - boolean hasTotal(); - /** - * optional int64 total = 1; - */ - long getTotal(); - - /** - * optional int32 p = 2; - */ - boolean hasP(); - /** - * optional int32 p = 2; - */ - int getP(); - - /** - * optional int64 ps = 3; - */ - boolean hasPs(); - /** - * optional int64 ps = 3; - */ - long getPs(); - - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - java.util.List - getRulesList(); - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - org.sonarqube.ws.Rules.Rule getRules(int index); - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - int getRulesCount(); - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - java.util.List - getRulesOrBuilderList(); - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - org.sonarqube.ws.Rules.RuleOrBuilder getRulesOrBuilder( - int index); - - /** - * optional .sonarqube.ws.rules.Actives actives = 5; - */ - boolean hasActives(); - /** - * optional .sonarqube.ws.rules.Actives actives = 5; - */ - org.sonarqube.ws.Rules.Actives getActives(); - /** - * optional .sonarqube.ws.rules.Actives actives = 5; - */ - org.sonarqube.ws.Rules.ActivesOrBuilder getActivesOrBuilder(); - - /** - * optional .sonarqube.ws.rules.QProfiles qProfiles = 6; - */ - boolean hasQProfiles(); - /** - * optional .sonarqube.ws.rules.QProfiles qProfiles = 6; - */ - org.sonarqube.ws.Rules.QProfiles getQProfiles(); - /** - * optional .sonarqube.ws.rules.QProfiles qProfiles = 6; - */ - org.sonarqube.ws.Rules.QProfilesOrBuilder getQProfilesOrBuilder(); - - /** - * optional .sonarqube.ws.commons.Facets facets = 7; - */ - boolean hasFacets(); - /** - * optional .sonarqube.ws.commons.Facets facets = 7; - */ - org.sonarqube.ws.Common.Facets getFacets(); - /** - * optional .sonarqube.ws.commons.Facets facets = 7; - */ - org.sonarqube.ws.Common.FacetsOrBuilder getFacetsOrBuilder(); - } - /** - * Protobuf type {@code sonarqube.ws.rules.SearchResponse} - * - *
-   * WS api/rules/search
-   * 
- */ - public static final class SearchResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.SearchResponse) - SearchResponseOrBuilder { - // Use SearchResponse.newBuilder() to construct. - private SearchResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SearchResponse() { - total_ = 0L; - p_ = 0; - ps_ = 0L; - rules_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SearchResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - total_ = input.readInt64(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - p_ = input.readInt32(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - ps_ = input.readInt64(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - rules_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - rules_.add(input.readMessage(org.sonarqube.ws.Rules.Rule.PARSER, extensionRegistry)); - break; - } - case 42: { - org.sonarqube.ws.Rules.Actives.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = actives_.toBuilder(); - } - actives_ = input.readMessage(org.sonarqube.ws.Rules.Actives.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(actives_); - actives_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000008; - break; - } - case 50: { - org.sonarqube.ws.Rules.QProfiles.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - subBuilder = qProfiles_.toBuilder(); - } - qProfiles_ = input.readMessage(org.sonarqube.ws.Rules.QProfiles.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qProfiles_); - qProfiles_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000010; - break; - } - case 58: { - org.sonarqube.ws.Common.Facets.Builder subBuilder = null; - if (((bitField0_ & 0x00000020) == 0x00000020)) { - subBuilder = facets_.toBuilder(); - } - facets_ = input.readMessage(org.sonarqube.ws.Common.Facets.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(facets_); - facets_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000020; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - rules_ = java.util.Collections.unmodifiableList(rules_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_SearchResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_SearchResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.SearchResponse.class, org.sonarqube.ws.Rules.SearchResponse.Builder.class); - } - - private int bitField0_; - public static final int TOTAL_FIELD_NUMBER = 1; - private long total_; - /** - * optional int64 total = 1; - */ - public boolean hasTotal() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int64 total = 1; - */ - public long getTotal() { - return total_; - } - - public static final int P_FIELD_NUMBER = 2; - private int p_; - /** - * optional int32 p = 2; - */ - public boolean hasP() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 p = 2; - */ - public int getP() { - return p_; - } - - public static final int PS_FIELD_NUMBER = 3; - private long ps_; - /** - * optional int64 ps = 3; - */ - public boolean hasPs() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int64 ps = 3; - */ - public long getPs() { - return ps_; - } - - public static final int RULES_FIELD_NUMBER = 4; - private java.util.List rules_; - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public java.util.List getRulesList() { - return rules_; - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public java.util.List - getRulesOrBuilderList() { - return rules_; - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public int getRulesCount() { - return rules_.size(); - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public org.sonarqube.ws.Rules.Rule getRules(int index) { - return rules_.get(index); - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public org.sonarqube.ws.Rules.RuleOrBuilder getRulesOrBuilder( - int index) { - return rules_.get(index); - } - - public static final int ACTIVES_FIELD_NUMBER = 5; - private org.sonarqube.ws.Rules.Actives actives_; - /** - * optional .sonarqube.ws.rules.Actives actives = 5; - */ - public boolean hasActives() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional .sonarqube.ws.rules.Actives actives = 5; - */ - public org.sonarqube.ws.Rules.Actives getActives() { - return actives_ == null ? org.sonarqube.ws.Rules.Actives.getDefaultInstance() : actives_; - } - /** - * optional .sonarqube.ws.rules.Actives actives = 5; - */ - public org.sonarqube.ws.Rules.ActivesOrBuilder getActivesOrBuilder() { - return actives_ == null ? org.sonarqube.ws.Rules.Actives.getDefaultInstance() : actives_; - } - - public static final int QPROFILES_FIELD_NUMBER = 6; - private org.sonarqube.ws.Rules.QProfiles qProfiles_; - /** - * optional .sonarqube.ws.rules.QProfiles qProfiles = 6; - */ - public boolean hasQProfiles() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional .sonarqube.ws.rules.QProfiles qProfiles = 6; - */ - public org.sonarqube.ws.Rules.QProfiles getQProfiles() { - return qProfiles_ == null ? org.sonarqube.ws.Rules.QProfiles.getDefaultInstance() : qProfiles_; - } - /** - * optional .sonarqube.ws.rules.QProfiles qProfiles = 6; - */ - public org.sonarqube.ws.Rules.QProfilesOrBuilder getQProfilesOrBuilder() { - return qProfiles_ == null ? org.sonarqube.ws.Rules.QProfiles.getDefaultInstance() : qProfiles_; - } - - public static final int FACETS_FIELD_NUMBER = 7; - private org.sonarqube.ws.Common.Facets facets_; - /** - * optional .sonarqube.ws.commons.Facets facets = 7; - */ - public boolean hasFacets() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional .sonarqube.ws.commons.Facets facets = 7; - */ - public org.sonarqube.ws.Common.Facets getFacets() { - return facets_ == null ? org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_; - } - /** - * optional .sonarqube.ws.commons.Facets facets = 7; - */ - public org.sonarqube.ws.Common.FacetsOrBuilder getFacetsOrBuilder() { - return facets_ == null ? org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, total_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt32(2, p_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt64(3, ps_); - } - for (int i = 0; i < rules_.size(); i++) { - output.writeMessage(4, rules_.get(i)); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(5, getActives()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(6, getQProfiles()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(7, getFacets()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, total_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, p_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, ps_); - } - for (int i = 0; i < rules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, rules_.get(i)); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getActives()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getQProfiles()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getFacets()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.SearchResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.SearchResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.SearchResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.SearchResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.SearchResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.SearchResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.SearchResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.SearchResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.SearchResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.SearchResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.SearchResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.SearchResponse} - * - *
-     * WS api/rules/search
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.SearchResponse) - org.sonarqube.ws.Rules.SearchResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_SearchResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_SearchResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.SearchResponse.class, org.sonarqube.ws.Rules.SearchResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.SearchResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRulesFieldBuilder(); - getActivesFieldBuilder(); - getQProfilesFieldBuilder(); - getFacetsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - total_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - p_ = 0; - bitField0_ = (bitField0_ & ~0x00000002); - ps_ = 0L; - bitField0_ = (bitField0_ & ~0x00000004); - if (rulesBuilder_ == null) { - rules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - rulesBuilder_.clear(); - } - if (activesBuilder_ == null) { - actives_ = null; - } else { - activesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - if (qProfilesBuilder_ == null) { - qProfiles_ = null; - } else { - qProfilesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - if (facetsBuilder_ == null) { - facets_ = null; - } else { - facetsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_SearchResponse_descriptor; - } - - public org.sonarqube.ws.Rules.SearchResponse getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.SearchResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.SearchResponse build() { - org.sonarqube.ws.Rules.SearchResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.SearchResponse buildPartial() { - org.sonarqube.ws.Rules.SearchResponse result = new org.sonarqube.ws.Rules.SearchResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.total_ = total_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.p_ = p_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.ps_ = ps_; - if (rulesBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { - rules_ = java.util.Collections.unmodifiableList(rules_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.rules_ = rules_; - } else { - result.rules_ = rulesBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000008; - } - if (activesBuilder_ == null) { - result.actives_ = actives_; - } else { - result.actives_ = activesBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000010; - } - if (qProfilesBuilder_ == null) { - result.qProfiles_ = qProfiles_; - } else { - result.qProfiles_ = qProfilesBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000020; - } - if (facetsBuilder_ == null) { - result.facets_ = facets_; - } else { - result.facets_ = facetsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.SearchResponse) { - return mergeFrom((org.sonarqube.ws.Rules.SearchResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.SearchResponse other) { - if (other == org.sonarqube.ws.Rules.SearchResponse.getDefaultInstance()) return this; - if (other.hasTotal()) { - setTotal(other.getTotal()); - } - if (other.hasP()) { - setP(other.getP()); - } - if (other.hasPs()) { - setPs(other.getPs()); - } - if (rulesBuilder_ == null) { - if (!other.rules_.isEmpty()) { - if (rules_.isEmpty()) { - rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureRulesIsMutable(); - rules_.addAll(other.rules_); - } - onChanged(); - } - } else { - if (!other.rules_.isEmpty()) { - if (rulesBuilder_.isEmpty()) { - rulesBuilder_.dispose(); - rulesBuilder_ = null; - rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000008); - rulesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getRulesFieldBuilder() : null; - } else { - rulesBuilder_.addAllMessages(other.rules_); - } - } - } - if (other.hasActives()) { - mergeActives(other.getActives()); - } - if (other.hasQProfiles()) { - mergeQProfiles(other.getQProfiles()); - } - if (other.hasFacets()) { - mergeFacets(other.getFacets()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.SearchResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.SearchResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long total_ ; - /** - * optional int64 total = 1; - */ - public boolean hasTotal() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int64 total = 1; - */ - public long getTotal() { - return total_; - } - /** - * optional int64 total = 1; - */ - public Builder setTotal(long value) { - bitField0_ |= 0x00000001; - total_ = value; - onChanged(); - return this; - } - /** - * optional int64 total = 1; - */ - public Builder clearTotal() { - bitField0_ = (bitField0_ & ~0x00000001); - total_ = 0L; - onChanged(); - return this; - } - - private int p_ ; - /** - * optional int32 p = 2; - */ - public boolean hasP() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int32 p = 2; - */ - public int getP() { - return p_; - } - /** - * optional int32 p = 2; - */ - public Builder setP(int value) { - bitField0_ |= 0x00000002; - p_ = value; - onChanged(); - return this; - } - /** - * optional int32 p = 2; - */ - public Builder clearP() { - bitField0_ = (bitField0_ & ~0x00000002); - p_ = 0; - onChanged(); - return this; - } - - private long ps_ ; - /** - * optional int64 ps = 3; - */ - public boolean hasPs() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int64 ps = 3; - */ - public long getPs() { - return ps_; - } - /** - * optional int64 ps = 3; - */ - public Builder setPs(long value) { - bitField0_ |= 0x00000004; - ps_ = value; - onChanged(); - return this; - } - /** - * optional int64 ps = 3; - */ - public Builder clearPs() { - bitField0_ = (bitField0_ & ~0x00000004); - ps_ = 0L; - onChanged(); - return this; - } - - private java.util.List rules_ = - java.util.Collections.emptyList(); - private void ensureRulesIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - rules_ = new java.util.ArrayList(rules_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.Rule, org.sonarqube.ws.Rules.Rule.Builder, org.sonarqube.ws.Rules.RuleOrBuilder> rulesBuilder_; - - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public java.util.List getRulesList() { - if (rulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(rules_); - } else { - return rulesBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public int getRulesCount() { - if (rulesBuilder_ == null) { - return rules_.size(); - } else { - return rulesBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public org.sonarqube.ws.Rules.Rule getRules(int index) { - if (rulesBuilder_ == null) { - return rules_.get(index); - } else { - return rulesBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public Builder setRules( - int index, org.sonarqube.ws.Rules.Rule value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.set(index, value); - onChanged(); - } else { - rulesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public Builder setRules( - int index, org.sonarqube.ws.Rules.Rule.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.set(index, builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public Builder addRules(org.sonarqube.ws.Rules.Rule value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.add(value); - onChanged(); - } else { - rulesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public Builder addRules( - int index, org.sonarqube.ws.Rules.Rule value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.add(index, value); - onChanged(); - } else { - rulesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public Builder addRules( - org.sonarqube.ws.Rules.Rule.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public Builder addRules( - int index, org.sonarqube.ws.Rules.Rule.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(index, builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public Builder addAllRules( - java.lang.Iterable values) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rules_); - onChanged(); - } else { - rulesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public Builder clearRules() { - if (rulesBuilder_ == null) { - rules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - rulesBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public Builder removeRules(int index) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.remove(index); - onChanged(); - } else { - rulesBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public org.sonarqube.ws.Rules.Rule.Builder getRulesBuilder( - int index) { - return getRulesFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public org.sonarqube.ws.Rules.RuleOrBuilder getRulesOrBuilder( - int index) { - if (rulesBuilder_ == null) { - return rules_.get(index); } else { - return rulesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public java.util.List - getRulesOrBuilderList() { - if (rulesBuilder_ != null) { - return rulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rules_); - } - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public org.sonarqube.ws.Rules.Rule.Builder addRulesBuilder() { - return getRulesFieldBuilder().addBuilder( - org.sonarqube.ws.Rules.Rule.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public org.sonarqube.ws.Rules.Rule.Builder addRulesBuilder( - int index) { - return getRulesFieldBuilder().addBuilder( - index, org.sonarqube.ws.Rules.Rule.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.rules.Rule rules = 4; - */ - public java.util.List - getRulesBuilderList() { - return getRulesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.Rule, org.sonarqube.ws.Rules.Rule.Builder, org.sonarqube.ws.Rules.RuleOrBuilder> - getRulesFieldBuilder() { - if (rulesBuilder_ == null) { - rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.Rule, org.sonarqube.ws.Rules.Rule.Builder, org.sonarqube.ws.Rules.RuleOrBuilder>( - rules_, - ((bitField0_ & 0x00000008) == 0x00000008), - getParentForChildren(), - isClean()); - rules_ = null; - } - return rulesBuilder_; - } - - private org.sonarqube.ws.Rules.Actives actives_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Actives, org.sonarqube.ws.Rules.Actives.Builder, org.sonarqube.ws.Rules.ActivesOrBuilder> activesBuilder_; - /** - * optional .sonarqube.ws.rules.Actives actives = 5; - */ - public boolean hasActives() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional .sonarqube.ws.rules.Actives actives = 5; - */ - public org.sonarqube.ws.Rules.Actives getActives() { - if (activesBuilder_ == null) { - return actives_ == null ? org.sonarqube.ws.Rules.Actives.getDefaultInstance() : actives_; - } else { - return activesBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.rules.Actives actives = 5; - */ - public Builder setActives(org.sonarqube.ws.Rules.Actives value) { - if (activesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - actives_ = value; - onChanged(); - } else { - activesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .sonarqube.ws.rules.Actives actives = 5; - */ - public Builder setActives( - org.sonarqube.ws.Rules.Actives.Builder builderForValue) { - if (activesBuilder_ == null) { - actives_ = builderForValue.build(); - onChanged(); - } else { - activesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .sonarqube.ws.rules.Actives actives = 5; - */ - public Builder mergeActives(org.sonarqube.ws.Rules.Actives value) { - if (activesBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010) && - actives_ != null && - actives_ != org.sonarqube.ws.Rules.Actives.getDefaultInstance()) { - actives_ = - org.sonarqube.ws.Rules.Actives.newBuilder(actives_).mergeFrom(value).buildPartial(); - } else { - actives_ = value; - } - onChanged(); - } else { - activesBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - return this; - } - /** - * optional .sonarqube.ws.rules.Actives actives = 5; - */ - public Builder clearActives() { - if (activesBuilder_ == null) { - actives_ = null; - onChanged(); - } else { - activesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - /** - * optional .sonarqube.ws.rules.Actives actives = 5; - */ - public org.sonarqube.ws.Rules.Actives.Builder getActivesBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getActivesFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.rules.Actives actives = 5; - */ - public org.sonarqube.ws.Rules.ActivesOrBuilder getActivesOrBuilder() { - if (activesBuilder_ != null) { - return activesBuilder_.getMessageOrBuilder(); - } else { - return actives_ == null ? - org.sonarqube.ws.Rules.Actives.getDefaultInstance() : actives_; - } - } - /** - * optional .sonarqube.ws.rules.Actives actives = 5; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Actives, org.sonarqube.ws.Rules.Actives.Builder, org.sonarqube.ws.Rules.ActivesOrBuilder> - getActivesFieldBuilder() { - if (activesBuilder_ == null) { - activesBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Actives, org.sonarqube.ws.Rules.Actives.Builder, org.sonarqube.ws.Rules.ActivesOrBuilder>( - getActives(), - getParentForChildren(), - isClean()); - actives_ = null; - } - return activesBuilder_; - } - - private org.sonarqube.ws.Rules.QProfiles qProfiles_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.QProfiles, org.sonarqube.ws.Rules.QProfiles.Builder, org.sonarqube.ws.Rules.QProfilesOrBuilder> qProfilesBuilder_; - /** - * optional .sonarqube.ws.rules.QProfiles qProfiles = 6; - */ - public boolean hasQProfiles() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional .sonarqube.ws.rules.QProfiles qProfiles = 6; - */ - public org.sonarqube.ws.Rules.QProfiles getQProfiles() { - if (qProfilesBuilder_ == null) { - return qProfiles_ == null ? org.sonarqube.ws.Rules.QProfiles.getDefaultInstance() : qProfiles_; - } else { - return qProfilesBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.rules.QProfiles qProfiles = 6; - */ - public Builder setQProfiles(org.sonarqube.ws.Rules.QProfiles value) { - if (qProfilesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - qProfiles_ = value; - onChanged(); - } else { - qProfilesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - return this; - } - /** - * optional .sonarqube.ws.rules.QProfiles qProfiles = 6; - */ - public Builder setQProfiles( - org.sonarqube.ws.Rules.QProfiles.Builder builderForValue) { - if (qProfilesBuilder_ == null) { - qProfiles_ = builderForValue.build(); - onChanged(); - } else { - qProfilesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - return this; - } - /** - * optional .sonarqube.ws.rules.QProfiles qProfiles = 6; - */ - public Builder mergeQProfiles(org.sonarqube.ws.Rules.QProfiles value) { - if (qProfilesBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - qProfiles_ != null && - qProfiles_ != org.sonarqube.ws.Rules.QProfiles.getDefaultInstance()) { - qProfiles_ = - org.sonarqube.ws.Rules.QProfiles.newBuilder(qProfiles_).mergeFrom(value).buildPartial(); - } else { - qProfiles_ = value; - } - onChanged(); - } else { - qProfilesBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - return this; - } - /** - * optional .sonarqube.ws.rules.QProfiles qProfiles = 6; - */ - public Builder clearQProfiles() { - if (qProfilesBuilder_ == null) { - qProfiles_ = null; - onChanged(); - } else { - qProfilesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - /** - * optional .sonarqube.ws.rules.QProfiles qProfiles = 6; - */ - public org.sonarqube.ws.Rules.QProfiles.Builder getQProfilesBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getQProfilesFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.rules.QProfiles qProfiles = 6; - */ - public org.sonarqube.ws.Rules.QProfilesOrBuilder getQProfilesOrBuilder() { - if (qProfilesBuilder_ != null) { - return qProfilesBuilder_.getMessageOrBuilder(); - } else { - return qProfiles_ == null ? - org.sonarqube.ws.Rules.QProfiles.getDefaultInstance() : qProfiles_; - } - } - /** - * optional .sonarqube.ws.rules.QProfiles qProfiles = 6; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.QProfiles, org.sonarqube.ws.Rules.QProfiles.Builder, org.sonarqube.ws.Rules.QProfilesOrBuilder> - getQProfilesFieldBuilder() { - if (qProfilesBuilder_ == null) { - qProfilesBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.QProfiles, org.sonarqube.ws.Rules.QProfiles.Builder, org.sonarqube.ws.Rules.QProfilesOrBuilder>( - getQProfiles(), - getParentForChildren(), - isClean()); - qProfiles_ = null; - } - return qProfilesBuilder_; - } - - private org.sonarqube.ws.Common.Facets facets_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Facets, org.sonarqube.ws.Common.Facets.Builder, org.sonarqube.ws.Common.FacetsOrBuilder> facetsBuilder_; - /** - * optional .sonarqube.ws.commons.Facets facets = 7; - */ - public boolean hasFacets() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional .sonarqube.ws.commons.Facets facets = 7; - */ - public org.sonarqube.ws.Common.Facets getFacets() { - if (facetsBuilder_ == null) { - return facets_ == null ? org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_; - } else { - return facetsBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.commons.Facets facets = 7; - */ - public Builder setFacets(org.sonarqube.ws.Common.Facets value) { - if (facetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - facets_ = value; - onChanged(); - } else { - facetsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - return this; - } - /** - * optional .sonarqube.ws.commons.Facets facets = 7; - */ - public Builder setFacets( - org.sonarqube.ws.Common.Facets.Builder builderForValue) { - if (facetsBuilder_ == null) { - facets_ = builderForValue.build(); - onChanged(); - } else { - facetsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - return this; - } - /** - * optional .sonarqube.ws.commons.Facets facets = 7; - */ - public Builder mergeFacets(org.sonarqube.ws.Common.Facets value) { - if (facetsBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - facets_ != null && - facets_ != org.sonarqube.ws.Common.Facets.getDefaultInstance()) { - facets_ = - org.sonarqube.ws.Common.Facets.newBuilder(facets_).mergeFrom(value).buildPartial(); - } else { - facets_ = value; - } - onChanged(); - } else { - facetsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - return this; - } - /** - * optional .sonarqube.ws.commons.Facets facets = 7; - */ - public Builder clearFacets() { - if (facetsBuilder_ == null) { - facets_ = null; - onChanged(); - } else { - facetsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - /** - * optional .sonarqube.ws.commons.Facets facets = 7; - */ - public org.sonarqube.ws.Common.Facets.Builder getFacetsBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getFacetsFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.commons.Facets facets = 7; - */ - public org.sonarqube.ws.Common.FacetsOrBuilder getFacetsOrBuilder() { - if (facetsBuilder_ != null) { - return facetsBuilder_.getMessageOrBuilder(); - } else { - return facets_ == null ? - org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_; - } - } - /** - * optional .sonarqube.ws.commons.Facets facets = 7; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Facets, org.sonarqube.ws.Common.Facets.Builder, org.sonarqube.ws.Common.FacetsOrBuilder> - getFacetsFieldBuilder() { - if (facetsBuilder_ == null) { - facetsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Facets, org.sonarqube.ws.Common.Facets.Builder, org.sonarqube.ws.Common.FacetsOrBuilder>( - getFacets(), - getParentForChildren(), - isClean()); - facets_ = null; - } - return facetsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.SearchResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.SearchResponse) - private static final org.sonarqube.ws.Rules.SearchResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.SearchResponse(); - } - - public static org.sonarqube.ws.Rules.SearchResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SearchResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new SearchResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.SearchResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ShowResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.ShowResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - boolean hasRule(); - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - org.sonarqube.ws.Rules.Rule getRule(); - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - org.sonarqube.ws.Rules.RuleOrBuilder getRuleOrBuilder(); - - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - java.util.List - getActivesList(); - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - org.sonarqube.ws.Rules.Active getActives(int index); - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - int getActivesCount(); - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - java.util.List - getActivesOrBuilderList(); - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - org.sonarqube.ws.Rules.ActiveOrBuilder getActivesOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.rules.ShowResponse} - * - *
-   *WS api/rules/show
-   * 
- */ - public static final class ShowResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.ShowResponse) - ShowResponseOrBuilder { - // Use ShowResponse.newBuilder() to construct. - private ShowResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ShowResponse() { - actives_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ShowResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.sonarqube.ws.Rules.Rule.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = rule_.toBuilder(); - } - rule_ = input.readMessage(org.sonarqube.ws.Rules.Rule.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rule_); - rule_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - actives_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - actives_.add(input.readMessage(org.sonarqube.ws.Rules.Active.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - actives_ = java.util.Collections.unmodifiableList(actives_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ShowResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ShowResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.ShowResponse.class, org.sonarqube.ws.Rules.ShowResponse.Builder.class); - } - - private int bitField0_; - public static final int RULE_FIELD_NUMBER = 1; - private org.sonarqube.ws.Rules.Rule rule_; - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public boolean hasRule() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public org.sonarqube.ws.Rules.Rule getRule() { - return rule_ == null ? org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public org.sonarqube.ws.Rules.RuleOrBuilder getRuleOrBuilder() { - return rule_ == null ? org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; - } - - public static final int ACTIVES_FIELD_NUMBER = 3; - private java.util.List actives_; - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public java.util.List getActivesList() { - return actives_; - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public java.util.List - getActivesOrBuilderList() { - return actives_; - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public int getActivesCount() { - return actives_.size(); - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public org.sonarqube.ws.Rules.Active getActives(int index) { - return actives_.get(index); - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public org.sonarqube.ws.Rules.ActiveOrBuilder getActivesOrBuilder( - int index) { - return actives_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getRule()); - } - for (int i = 0; i < actives_.size(); i++) { - output.writeMessage(3, actives_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRule()); - } - for (int i = 0; i < actives_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, actives_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.ShowResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.ShowResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.ShowResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.ShowResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.ShowResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.ShowResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.ShowResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.ShowResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.ShowResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.ShowResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.ShowResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.ShowResponse} - * - *
-     *WS api/rules/show
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.ShowResponse) - org.sonarqube.ws.Rules.ShowResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ShowResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ShowResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.ShowResponse.class, org.sonarqube.ws.Rules.ShowResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.ShowResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRuleFieldBuilder(); - getActivesFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (ruleBuilder_ == null) { - rule_ = null; - } else { - ruleBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (activesBuilder_ == null) { - actives_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - activesBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ShowResponse_descriptor; - } - - public org.sonarqube.ws.Rules.ShowResponse getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.ShowResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.ShowResponse build() { - org.sonarqube.ws.Rules.ShowResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.ShowResponse buildPartial() { - org.sonarqube.ws.Rules.ShowResponse result = new org.sonarqube.ws.Rules.ShowResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (ruleBuilder_ == null) { - result.rule_ = rule_; - } else { - result.rule_ = ruleBuilder_.build(); - } - if (activesBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - actives_ = java.util.Collections.unmodifiableList(actives_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.actives_ = actives_; - } else { - result.actives_ = activesBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.ShowResponse) { - return mergeFrom((org.sonarqube.ws.Rules.ShowResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.ShowResponse other) { - if (other == org.sonarqube.ws.Rules.ShowResponse.getDefaultInstance()) return this; - if (other.hasRule()) { - mergeRule(other.getRule()); - } - if (activesBuilder_ == null) { - if (!other.actives_.isEmpty()) { - if (actives_.isEmpty()) { - actives_ = other.actives_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureActivesIsMutable(); - actives_.addAll(other.actives_); - } - onChanged(); - } - } else { - if (!other.actives_.isEmpty()) { - if (activesBuilder_.isEmpty()) { - activesBuilder_.dispose(); - activesBuilder_ = null; - actives_ = other.actives_; - bitField0_ = (bitField0_ & ~0x00000002); - activesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getActivesFieldBuilder() : null; - } else { - activesBuilder_.addAllMessages(other.actives_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.ShowResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.ShowResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.Rules.Rule rule_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Rule, org.sonarqube.ws.Rules.Rule.Builder, org.sonarqube.ws.Rules.RuleOrBuilder> ruleBuilder_; - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public boolean hasRule() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public org.sonarqube.ws.Rules.Rule getRule() { - if (ruleBuilder_ == null) { - return rule_ == null ? org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; - } else { - return ruleBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public Builder setRule(org.sonarqube.ws.Rules.Rule value) { - if (ruleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rule_ = value; - onChanged(); - } else { - ruleBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public Builder setRule( - org.sonarqube.ws.Rules.Rule.Builder builderForValue) { - if (ruleBuilder_ == null) { - rule_ = builderForValue.build(); - onChanged(); - } else { - ruleBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public Builder mergeRule(org.sonarqube.ws.Rules.Rule value) { - if (ruleBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - rule_ != null && - rule_ != org.sonarqube.ws.Rules.Rule.getDefaultInstance()) { - rule_ = - org.sonarqube.ws.Rules.Rule.newBuilder(rule_).mergeFrom(value).buildPartial(); - } else { - rule_ = value; - } - onChanged(); - } else { - ruleBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public Builder clearRule() { - if (ruleBuilder_ == null) { - rule_ = null; - onChanged(); - } else { - ruleBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public org.sonarqube.ws.Rules.Rule.Builder getRuleBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRuleFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public org.sonarqube.ws.Rules.RuleOrBuilder getRuleOrBuilder() { - if (ruleBuilder_ != null) { - return ruleBuilder_.getMessageOrBuilder(); - } else { - return rule_ == null ? - org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; - } - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Rule, org.sonarqube.ws.Rules.Rule.Builder, org.sonarqube.ws.Rules.RuleOrBuilder> - getRuleFieldBuilder() { - if (ruleBuilder_ == null) { - ruleBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Rule, org.sonarqube.ws.Rules.Rule.Builder, org.sonarqube.ws.Rules.RuleOrBuilder>( - getRule(), - getParentForChildren(), - isClean()); - rule_ = null; - } - return ruleBuilder_; - } - - private java.util.List actives_ = - java.util.Collections.emptyList(); - private void ensureActivesIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - actives_ = new java.util.ArrayList(actives_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.Active, org.sonarqube.ws.Rules.Active.Builder, org.sonarqube.ws.Rules.ActiveOrBuilder> activesBuilder_; - - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public java.util.List getActivesList() { - if (activesBuilder_ == null) { - return java.util.Collections.unmodifiableList(actives_); - } else { - return activesBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public int getActivesCount() { - if (activesBuilder_ == null) { - return actives_.size(); - } else { - return activesBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public org.sonarqube.ws.Rules.Active getActives(int index) { - if (activesBuilder_ == null) { - return actives_.get(index); - } else { - return activesBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public Builder setActives( - int index, org.sonarqube.ws.Rules.Active value) { - if (activesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivesIsMutable(); - actives_.set(index, value); - onChanged(); - } else { - activesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public Builder setActives( - int index, org.sonarqube.ws.Rules.Active.Builder builderForValue) { - if (activesBuilder_ == null) { - ensureActivesIsMutable(); - actives_.set(index, builderForValue.build()); - onChanged(); - } else { - activesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public Builder addActives(org.sonarqube.ws.Rules.Active value) { - if (activesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivesIsMutable(); - actives_.add(value); - onChanged(); - } else { - activesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public Builder addActives( - int index, org.sonarqube.ws.Rules.Active value) { - if (activesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivesIsMutable(); - actives_.add(index, value); - onChanged(); - } else { - activesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public Builder addActives( - org.sonarqube.ws.Rules.Active.Builder builderForValue) { - if (activesBuilder_ == null) { - ensureActivesIsMutable(); - actives_.add(builderForValue.build()); - onChanged(); - } else { - activesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public Builder addActives( - int index, org.sonarqube.ws.Rules.Active.Builder builderForValue) { - if (activesBuilder_ == null) { - ensureActivesIsMutable(); - actives_.add(index, builderForValue.build()); - onChanged(); - } else { - activesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public Builder addAllActives( - java.lang.Iterable values) { - if (activesBuilder_ == null) { - ensureActivesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, actives_); - onChanged(); - } else { - activesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public Builder clearActives() { - if (activesBuilder_ == null) { - actives_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - activesBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public Builder removeActives(int index) { - if (activesBuilder_ == null) { - ensureActivesIsMutable(); - actives_.remove(index); - onChanged(); - } else { - activesBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public org.sonarqube.ws.Rules.Active.Builder getActivesBuilder( - int index) { - return getActivesFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public org.sonarqube.ws.Rules.ActiveOrBuilder getActivesOrBuilder( - int index) { - if (activesBuilder_ == null) { - return actives_.get(index); } else { - return activesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public java.util.List - getActivesOrBuilderList() { - if (activesBuilder_ != null) { - return activesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(actives_); - } - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public org.sonarqube.ws.Rules.Active.Builder addActivesBuilder() { - return getActivesFieldBuilder().addBuilder( - org.sonarqube.ws.Rules.Active.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public org.sonarqube.ws.Rules.Active.Builder addActivesBuilder( - int index) { - return getActivesFieldBuilder().addBuilder( - index, org.sonarqube.ws.Rules.Active.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.rules.Active actives = 3; - */ - public java.util.List - getActivesBuilderList() { - return getActivesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.Active, org.sonarqube.ws.Rules.Active.Builder, org.sonarqube.ws.Rules.ActiveOrBuilder> - getActivesFieldBuilder() { - if (activesBuilder_ == null) { - activesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.Active, org.sonarqube.ws.Rules.Active.Builder, org.sonarqube.ws.Rules.ActiveOrBuilder>( - actives_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - actives_ = null; - } - return activesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.ShowResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.ShowResponse) - private static final org.sonarqube.ws.Rules.ShowResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.ShowResponse(); - } - - public static org.sonarqube.ws.Rules.ShowResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ShowResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ShowResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.ShowResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CreateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.CreateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - boolean hasRule(); - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - org.sonarqube.ws.Rules.Rule getRule(); - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - org.sonarqube.ws.Rules.RuleOrBuilder getRuleOrBuilder(); - } - /** - * Protobuf type {@code sonarqube.ws.rules.CreateResponse} - * - *
-   *WS api/rules/create
-   * 
- */ - public static final class CreateResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.CreateResponse) - CreateResponseOrBuilder { - // Use CreateResponse.newBuilder() to construct. - private CreateResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private CreateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.sonarqube.ws.Rules.Rule.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = rule_.toBuilder(); - } - rule_ = input.readMessage(org.sonarqube.ws.Rules.Rule.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rule_); - rule_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_CreateResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_CreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.CreateResponse.class, org.sonarqube.ws.Rules.CreateResponse.Builder.class); - } - - private int bitField0_; - public static final int RULE_FIELD_NUMBER = 1; - private org.sonarqube.ws.Rules.Rule rule_; - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public boolean hasRule() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public org.sonarqube.ws.Rules.Rule getRule() { - return rule_ == null ? org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public org.sonarqube.ws.Rules.RuleOrBuilder getRuleOrBuilder() { - return rule_ == null ? org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getRule()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRule()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.CreateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.CreateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.CreateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.CreateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.CreateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.CreateResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.CreateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.CreateResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.CreateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.CreateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.CreateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.CreateResponse} - * - *
-     *WS api/rules/create
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.CreateResponse) - org.sonarqube.ws.Rules.CreateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_CreateResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_CreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.CreateResponse.class, org.sonarqube.ws.Rules.CreateResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.CreateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRuleFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (ruleBuilder_ == null) { - rule_ = null; - } else { - ruleBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_CreateResponse_descriptor; - } - - public org.sonarqube.ws.Rules.CreateResponse getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.CreateResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.CreateResponse build() { - org.sonarqube.ws.Rules.CreateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.CreateResponse buildPartial() { - org.sonarqube.ws.Rules.CreateResponse result = new org.sonarqube.ws.Rules.CreateResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (ruleBuilder_ == null) { - result.rule_ = rule_; - } else { - result.rule_ = ruleBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.CreateResponse) { - return mergeFrom((org.sonarqube.ws.Rules.CreateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.CreateResponse other) { - if (other == org.sonarqube.ws.Rules.CreateResponse.getDefaultInstance()) return this; - if (other.hasRule()) { - mergeRule(other.getRule()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.CreateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.CreateResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.Rules.Rule rule_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Rule, org.sonarqube.ws.Rules.Rule.Builder, org.sonarqube.ws.Rules.RuleOrBuilder> ruleBuilder_; - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public boolean hasRule() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public org.sonarqube.ws.Rules.Rule getRule() { - if (ruleBuilder_ == null) { - return rule_ == null ? org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; - } else { - return ruleBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public Builder setRule(org.sonarqube.ws.Rules.Rule value) { - if (ruleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rule_ = value; - onChanged(); - } else { - ruleBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public Builder setRule( - org.sonarqube.ws.Rules.Rule.Builder builderForValue) { - if (ruleBuilder_ == null) { - rule_ = builderForValue.build(); - onChanged(); - } else { - ruleBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public Builder mergeRule(org.sonarqube.ws.Rules.Rule value) { - if (ruleBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - rule_ != null && - rule_ != org.sonarqube.ws.Rules.Rule.getDefaultInstance()) { - rule_ = - org.sonarqube.ws.Rules.Rule.newBuilder(rule_).mergeFrom(value).buildPartial(); - } else { - rule_ = value; - } - onChanged(); - } else { - ruleBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public Builder clearRule() { - if (ruleBuilder_ == null) { - rule_ = null; - onChanged(); - } else { - ruleBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public org.sonarqube.ws.Rules.Rule.Builder getRuleBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRuleFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public org.sonarqube.ws.Rules.RuleOrBuilder getRuleOrBuilder() { - if (ruleBuilder_ != null) { - return ruleBuilder_.getMessageOrBuilder(); - } else { - return rule_ == null ? - org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; - } - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Rule, org.sonarqube.ws.Rules.Rule.Builder, org.sonarqube.ws.Rules.RuleOrBuilder> - getRuleFieldBuilder() { - if (ruleBuilder_ == null) { - ruleBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Rule, org.sonarqube.ws.Rules.Rule.Builder, org.sonarqube.ws.Rules.RuleOrBuilder>( - getRule(), - getParentForChildren(), - isClean()); - rule_ = null; - } - return ruleBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.CreateResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.CreateResponse) - private static final org.sonarqube.ws.Rules.CreateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.CreateResponse(); - } - - public static org.sonarqube.ws.Rules.CreateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public CreateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new CreateResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.CreateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UpdateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.UpdateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - boolean hasRule(); - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - org.sonarqube.ws.Rules.Rule getRule(); - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - org.sonarqube.ws.Rules.RuleOrBuilder getRuleOrBuilder(); - } - /** - * Protobuf type {@code sonarqube.ws.rules.UpdateResponse} - * - *
-   *WS api/rules/update
-   * 
- */ - public static final class UpdateResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.UpdateResponse) - UpdateResponseOrBuilder { - // Use UpdateResponse.newBuilder() to construct. - private UpdateResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private UpdateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UpdateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.sonarqube.ws.Rules.Rule.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = rule_.toBuilder(); - } - rule_ = input.readMessage(org.sonarqube.ws.Rules.Rule.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rule_); - rule_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_UpdateResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_UpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.UpdateResponse.class, org.sonarqube.ws.Rules.UpdateResponse.Builder.class); - } - - private int bitField0_; - public static final int RULE_FIELD_NUMBER = 1; - private org.sonarqube.ws.Rules.Rule rule_; - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public boolean hasRule() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public org.sonarqube.ws.Rules.Rule getRule() { - return rule_ == null ? org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public org.sonarqube.ws.Rules.RuleOrBuilder getRuleOrBuilder() { - return rule_ == null ? org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getRule()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRule()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.UpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.UpdateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.UpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.UpdateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.UpdateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.UpdateResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.UpdateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.UpdateResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.UpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.UpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.UpdateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.UpdateResponse} - * - *
-     *WS api/rules/update
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.UpdateResponse) - org.sonarqube.ws.Rules.UpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_UpdateResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_UpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.UpdateResponse.class, org.sonarqube.ws.Rules.UpdateResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.UpdateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getRuleFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (ruleBuilder_ == null) { - rule_ = null; - } else { - ruleBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_UpdateResponse_descriptor; - } - - public org.sonarqube.ws.Rules.UpdateResponse getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.UpdateResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.UpdateResponse build() { - org.sonarqube.ws.Rules.UpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.UpdateResponse buildPartial() { - org.sonarqube.ws.Rules.UpdateResponse result = new org.sonarqube.ws.Rules.UpdateResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (ruleBuilder_ == null) { - result.rule_ = rule_; - } else { - result.rule_ = ruleBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.UpdateResponse) { - return mergeFrom((org.sonarqube.ws.Rules.UpdateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.UpdateResponse other) { - if (other == org.sonarqube.ws.Rules.UpdateResponse.getDefaultInstance()) return this; - if (other.hasRule()) { - mergeRule(other.getRule()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.UpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.UpdateResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.Rules.Rule rule_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Rule, org.sonarqube.ws.Rules.Rule.Builder, org.sonarqube.ws.Rules.RuleOrBuilder> ruleBuilder_; - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public boolean hasRule() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public org.sonarqube.ws.Rules.Rule getRule() { - if (ruleBuilder_ == null) { - return rule_ == null ? org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; - } else { - return ruleBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public Builder setRule(org.sonarqube.ws.Rules.Rule value) { - if (ruleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rule_ = value; - onChanged(); - } else { - ruleBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public Builder setRule( - org.sonarqube.ws.Rules.Rule.Builder builderForValue) { - if (ruleBuilder_ == null) { - rule_ = builderForValue.build(); - onChanged(); - } else { - ruleBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public Builder mergeRule(org.sonarqube.ws.Rules.Rule value) { - if (ruleBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - rule_ != null && - rule_ != org.sonarqube.ws.Rules.Rule.getDefaultInstance()) { - rule_ = - org.sonarqube.ws.Rules.Rule.newBuilder(rule_).mergeFrom(value).buildPartial(); - } else { - rule_ = value; - } - onChanged(); - } else { - ruleBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public Builder clearRule() { - if (ruleBuilder_ == null) { - rule_ = null; - onChanged(); - } else { - ruleBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public org.sonarqube.ws.Rules.Rule.Builder getRuleBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRuleFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - public org.sonarqube.ws.Rules.RuleOrBuilder getRuleOrBuilder() { - if (ruleBuilder_ != null) { - return ruleBuilder_.getMessageOrBuilder(); - } else { - return rule_ == null ? - org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; - } - } - /** - * optional .sonarqube.ws.rules.Rule rule = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Rule, org.sonarqube.ws.Rules.Rule.Builder, org.sonarqube.ws.Rules.RuleOrBuilder> - getRuleFieldBuilder() { - if (ruleBuilder_ == null) { - ruleBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Rule, org.sonarqube.ws.Rules.Rule.Builder, org.sonarqube.ws.Rules.RuleOrBuilder>( - getRule(), - getParentForChildren(), - isClean()); - rule_ = null; - } - return ruleBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.UpdateResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.UpdateResponse) - private static final org.sonarqube.ws.Rules.UpdateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.UpdateResponse(); - } - - public static org.sonarqube.ws.Rules.UpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public UpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new UpdateResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.UpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RuleOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.Rule) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string key = 1; - */ - boolean hasKey(); - /** - * optional string key = 1; - */ - java.lang.String getKey(); - /** - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string repo = 2; - */ - boolean hasRepo(); - /** - * optional string repo = 2; - */ - java.lang.String getRepo(); - /** - * optional string repo = 2; - */ - com.google.protobuf.ByteString - getRepoBytes(); - - /** - * optional string name = 3; - */ - boolean hasName(); - /** - * optional string name = 3; - */ - java.lang.String getName(); - /** - * optional string name = 3; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string createdAt = 4; - */ - boolean hasCreatedAt(); - /** - * optional string createdAt = 4; - */ - java.lang.String getCreatedAt(); - /** - * optional string createdAt = 4; - */ - com.google.protobuf.ByteString - getCreatedAtBytes(); - - /** - * optional string htmlDesc = 5; - */ - boolean hasHtmlDesc(); - /** - * optional string htmlDesc = 5; - */ - java.lang.String getHtmlDesc(); - /** - * optional string htmlDesc = 5; - */ - com.google.protobuf.ByteString - getHtmlDescBytes(); - - /** - * optional string htmlNote = 6; - */ - boolean hasHtmlNote(); - /** - * optional string htmlNote = 6; - */ - java.lang.String getHtmlNote(); - /** - * optional string htmlNote = 6; - */ - com.google.protobuf.ByteString - getHtmlNoteBytes(); - - /** - * optional string mdDesc = 7; - */ - boolean hasMdDesc(); - /** - * optional string mdDesc = 7; - */ - java.lang.String getMdDesc(); - /** - * optional string mdDesc = 7; - */ - com.google.protobuf.ByteString - getMdDescBytes(); - - /** - * optional string mdNote = 8; - */ - boolean hasMdNote(); - /** - * optional string mdNote = 8; - */ - java.lang.String getMdNote(); - /** - * optional string mdNote = 8; - */ - com.google.protobuf.ByteString - getMdNoteBytes(); - - /** - * optional string noteLogin = 9; - */ - boolean hasNoteLogin(); - /** - * optional string noteLogin = 9; - */ - java.lang.String getNoteLogin(); - /** - * optional string noteLogin = 9; - */ - com.google.protobuf.ByteString - getNoteLoginBytes(); - - /** - * optional string severity = 10; - */ - boolean hasSeverity(); - /** - * optional string severity = 10; - */ - java.lang.String getSeverity(); - /** - * optional string severity = 10; - */ - com.google.protobuf.ByteString - getSeverityBytes(); - - /** - * optional .sonarqube.ws.commons.RuleStatus status = 11; - */ - boolean hasStatus(); - /** - * optional .sonarqube.ws.commons.RuleStatus status = 11; - */ - org.sonarqube.ws.Common.RuleStatus getStatus(); - - /** - * optional string internalKey = 12; - */ - boolean hasInternalKey(); - /** - * optional string internalKey = 12; - */ - java.lang.String getInternalKey(); - /** - * optional string internalKey = 12; - */ - com.google.protobuf.ByteString - getInternalKeyBytes(); - - /** - * optional bool isTemplate = 13; - */ - boolean hasIsTemplate(); - /** - * optional bool isTemplate = 13; - */ - boolean getIsTemplate(); - - /** - * optional string templateKey = 14; - */ - boolean hasTemplateKey(); - /** - * optional string templateKey = 14; - */ - java.lang.String getTemplateKey(); - /** - * optional string templateKey = 14; - */ - com.google.protobuf.ByteString - getTemplateKeyBytes(); - - /** - * optional .sonarqube.ws.rules.Tags tags = 15; - */ - boolean hasTags(); - /** - * optional .sonarqube.ws.rules.Tags tags = 15; - */ - org.sonarqube.ws.Rules.Tags getTags(); - /** - * optional .sonarqube.ws.rules.Tags tags = 15; - */ - org.sonarqube.ws.Rules.TagsOrBuilder getTagsOrBuilder(); - - /** - * optional .sonarqube.ws.rules.SysTags sysTags = 16; - */ - boolean hasSysTags(); - /** - * optional .sonarqube.ws.rules.SysTags sysTags = 16; - */ - org.sonarqube.ws.Rules.SysTags getSysTags(); - /** - * optional .sonarqube.ws.rules.SysTags sysTags = 16; - */ - org.sonarqube.ws.Rules.SysTagsOrBuilder getSysTagsOrBuilder(); - - /** - * optional string lang = 19; - */ - boolean hasLang(); - /** - * optional string lang = 19; - */ - java.lang.String getLang(); - /** - * optional string lang = 19; - */ - com.google.protobuf.ByteString - getLangBytes(); - - /** - * optional string langName = 20; - */ - boolean hasLangName(); - /** - * optional string langName = 20; - */ - java.lang.String getLangName(); - /** - * optional string langName = 20; - */ - com.google.protobuf.ByteString - getLangNameBytes(); - - /** - * optional .sonarqube.ws.rules.Rule.Params params = 21; - */ - boolean hasParams(); - /** - * optional .sonarqube.ws.rules.Rule.Params params = 21; - */ - org.sonarqube.ws.Rules.Rule.Params getParams(); - /** - * optional .sonarqube.ws.rules.Rule.Params params = 21; - */ - org.sonarqube.ws.Rules.Rule.ParamsOrBuilder getParamsOrBuilder(); - - /** - * optional string defaultDebtChar = 23; - * - *
-     * debt fields
-     * 
- */ - boolean hasDefaultDebtChar(); - /** - * optional string defaultDebtChar = 23; - * - *
-     * debt fields
-     * 
- */ - java.lang.String getDefaultDebtChar(); - /** - * optional string defaultDebtChar = 23; - * - *
-     * debt fields
-     * 
- */ - com.google.protobuf.ByteString - getDefaultDebtCharBytes(); - - /** - * optional string defaultDebtSubChar = 24; - */ - boolean hasDefaultDebtSubChar(); - /** - * optional string defaultDebtSubChar = 24; - */ - java.lang.String getDefaultDebtSubChar(); - /** - * optional string defaultDebtSubChar = 24; - */ - com.google.protobuf.ByteString - getDefaultDebtSubCharBytes(); - - /** - * optional string debtChar = 25; - */ - boolean hasDebtChar(); - /** - * optional string debtChar = 25; - */ - java.lang.String getDebtChar(); - /** - * optional string debtChar = 25; - */ - com.google.protobuf.ByteString - getDebtCharBytes(); - - /** - * optional string debtSubChar = 26; - */ - boolean hasDebtSubChar(); - /** - * optional string debtSubChar = 26; - */ - java.lang.String getDebtSubChar(); - /** - * optional string debtSubChar = 26; - */ - com.google.protobuf.ByteString - getDebtSubCharBytes(); - - /** - * optional string debtCharName = 27; - */ - boolean hasDebtCharName(); - /** - * optional string debtCharName = 27; - */ - java.lang.String getDebtCharName(); - /** - * optional string debtCharName = 27; - */ - com.google.protobuf.ByteString - getDebtCharNameBytes(); - - /** - * optional string debtSubCharName = 28; - */ - boolean hasDebtSubCharName(); - /** - * optional string debtSubCharName = 28; - */ - java.lang.String getDebtSubCharName(); - /** - * optional string debtSubCharName = 28; - */ - com.google.protobuf.ByteString - getDebtSubCharNameBytes(); - - /** - * optional string defaultDebtRemFnType = 29; - */ - boolean hasDefaultDebtRemFnType(); - /** - * optional string defaultDebtRemFnType = 29; - */ - java.lang.String getDefaultDebtRemFnType(); - /** - * optional string defaultDebtRemFnType = 29; - */ - com.google.protobuf.ByteString - getDefaultDebtRemFnTypeBytes(); - - /** - * optional string defaultDebtRemFnCoeff = 30; - */ - boolean hasDefaultDebtRemFnCoeff(); - /** - * optional string defaultDebtRemFnCoeff = 30; - */ - java.lang.String getDefaultDebtRemFnCoeff(); - /** - * optional string defaultDebtRemFnCoeff = 30; - */ - com.google.protobuf.ByteString - getDefaultDebtRemFnCoeffBytes(); - - /** - * optional string defaultDebtRemFnOffset = 31; - */ - boolean hasDefaultDebtRemFnOffset(); - /** - * optional string defaultDebtRemFnOffset = 31; - */ - java.lang.String getDefaultDebtRemFnOffset(); - /** - * optional string defaultDebtRemFnOffset = 31; - */ - com.google.protobuf.ByteString - getDefaultDebtRemFnOffsetBytes(); - - /** - * optional string effortToFixDescription = 32; - */ - boolean hasEffortToFixDescription(); - /** - * optional string effortToFixDescription = 32; - */ - java.lang.String getEffortToFixDescription(); - /** - * optional string effortToFixDescription = 32; - */ - com.google.protobuf.ByteString - getEffortToFixDescriptionBytes(); - - /** - * optional bool debtOverloaded = 33; - */ - boolean hasDebtOverloaded(); - /** - * optional bool debtOverloaded = 33; - */ - boolean getDebtOverloaded(); - - /** - * optional string debtRemFnType = 34; - */ - boolean hasDebtRemFnType(); - /** - * optional string debtRemFnType = 34; - */ - java.lang.String getDebtRemFnType(); - /** - * optional string debtRemFnType = 34; - */ - com.google.protobuf.ByteString - getDebtRemFnTypeBytes(); - - /** - * optional string debtRemFnCoeff = 35; - */ - boolean hasDebtRemFnCoeff(); - /** - * optional string debtRemFnCoeff = 35; - */ - java.lang.String getDebtRemFnCoeff(); - /** - * optional string debtRemFnCoeff = 35; - */ - com.google.protobuf.ByteString - getDebtRemFnCoeffBytes(); - - /** - * optional string debtRemFnOffset = 36; - */ - boolean hasDebtRemFnOffset(); - /** - * optional string debtRemFnOffset = 36; - */ - java.lang.String getDebtRemFnOffset(); - /** - * optional string debtRemFnOffset = 36; - */ - com.google.protobuf.ByteString - getDebtRemFnOffsetBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.rules.Rule} - */ - public static final class Rule extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.Rule) - RuleOrBuilder { - // Use Rule.newBuilder() to construct. - private Rule(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Rule() { - key_ = ""; - repo_ = ""; - name_ = ""; - createdAt_ = ""; - htmlDesc_ = ""; - htmlNote_ = ""; - mdDesc_ = ""; - mdNote_ = ""; - noteLogin_ = ""; - severity_ = ""; - status_ = 0; - internalKey_ = ""; - isTemplate_ = false; - templateKey_ = ""; - lang_ = ""; - langName_ = ""; - defaultDebtChar_ = ""; - defaultDebtSubChar_ = ""; - debtChar_ = ""; - debtSubChar_ = ""; - debtCharName_ = ""; - debtSubCharName_ = ""; - defaultDebtRemFnType_ = ""; - defaultDebtRemFnCoeff_ = ""; - defaultDebtRemFnOffset_ = ""; - effortToFixDescription_ = ""; - debtOverloaded_ = false; - debtRemFnType_ = ""; - debtRemFnCoeff_ = ""; - debtRemFnOffset_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Rule( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - int mutable_bitField1_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - repo_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - name_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - createdAt_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - htmlDesc_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - htmlNote_ = bs; - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000040; - mdDesc_ = bs; - break; - } - case 66: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - mdNote_ = bs; - break; - } - case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000100; - noteLogin_ = bs; - break; - } - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000200; - severity_ = bs; - break; - } - case 88: { - int rawValue = input.readEnum(); - org.sonarqube.ws.Common.RuleStatus value = org.sonarqube.ws.Common.RuleStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(11, rawValue); - } else { - bitField0_ |= 0x00000400; - status_ = rawValue; - } - break; - } - case 98: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000800; - internalKey_ = bs; - break; - } - case 104: { - bitField0_ |= 0x00001000; - isTemplate_ = input.readBool(); - break; - } - case 114: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00002000; - templateKey_ = bs; - break; - } - case 122: { - org.sonarqube.ws.Rules.Tags.Builder subBuilder = null; - if (((bitField0_ & 0x00004000) == 0x00004000)) { - subBuilder = tags_.toBuilder(); - } - tags_ = input.readMessage(org.sonarqube.ws.Rules.Tags.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tags_); - tags_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00004000; - break; - } - case 130: { - org.sonarqube.ws.Rules.SysTags.Builder subBuilder = null; - if (((bitField0_ & 0x00008000) == 0x00008000)) { - subBuilder = sysTags_.toBuilder(); - } - sysTags_ = input.readMessage(org.sonarqube.ws.Rules.SysTags.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sysTags_); - sysTags_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00008000; - break; - } - case 154: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00010000; - lang_ = bs; - break; - } - case 162: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00020000; - langName_ = bs; - break; - } - case 170: { - org.sonarqube.ws.Rules.Rule.Params.Builder subBuilder = null; - if (((bitField0_ & 0x00040000) == 0x00040000)) { - subBuilder = params_.toBuilder(); - } - params_ = input.readMessage(org.sonarqube.ws.Rules.Rule.Params.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(params_); - params_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00040000; - break; - } - case 186: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00080000; - defaultDebtChar_ = bs; - break; - } - case 194: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00100000; - defaultDebtSubChar_ = bs; - break; - } - case 202: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00200000; - debtChar_ = bs; - break; - } - case 210: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00400000; - debtSubChar_ = bs; - break; - } - case 218: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00800000; - debtCharName_ = bs; - break; - } - case 226: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x01000000; - debtSubCharName_ = bs; - break; - } - case 234: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x02000000; - defaultDebtRemFnType_ = bs; - break; - } - case 242: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x04000000; - defaultDebtRemFnCoeff_ = bs; - break; - } - case 250: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x08000000; - defaultDebtRemFnOffset_ = bs; - break; - } - case 258: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x10000000; - effortToFixDescription_ = bs; - break; - } - case 264: { - bitField0_ |= 0x20000000; - debtOverloaded_ = input.readBool(); - break; - } - case 274: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x40000000; - debtRemFnType_ = bs; - break; - } - case 282: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x80000000; - debtRemFnCoeff_ = bs; - break; - } - case 290: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField1_ |= 0x00000001; - debtRemFnOffset_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Rule_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Rule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.Rule.class, org.sonarqube.ws.Rules.Rule.Builder.class); - } - - public interface ParamsOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.Rule.Params) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - java.util.List - getParamsList(); - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - org.sonarqube.ws.Rules.Rule.Param getParams(int index); - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - int getParamsCount(); - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - java.util.List - getParamsOrBuilderList(); - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - org.sonarqube.ws.Rules.Rule.ParamOrBuilder getParamsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.rules.Rule.Params} - */ - public static final class Params extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.Rule.Params) - ParamsOrBuilder { - // Use Params.newBuilder() to construct. - private Params(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Params() { - params_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Params( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - params_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - params_.add(input.readMessage(org.sonarqube.ws.Rules.Rule.Param.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - params_ = java.util.Collections.unmodifiableList(params_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Rule_Params_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Rule_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.Rule.Params.class, org.sonarqube.ws.Rules.Rule.Params.Builder.class); - } - - public static final int PARAMS_FIELD_NUMBER = 1; - private java.util.List params_; - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public java.util.List getParamsList() { - return params_; - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public java.util.List - getParamsOrBuilderList() { - return params_; - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public int getParamsCount() { - return params_.size(); - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public org.sonarqube.ws.Rules.Rule.Param getParams(int index) { - return params_.get(index); - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public org.sonarqube.ws.Rules.Rule.ParamOrBuilder getParamsOrBuilder( - int index) { - return params_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < params_.size(); i++) { - output.writeMessage(1, params_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < params_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, params_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.Rule.Params parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.Rule.Params parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Rule.Params parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.Rule.Params parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Rule.Params parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.Rule.Params parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Rule.Params parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.Rule.Params parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Rule.Params parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.Rule.Params parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.Rule.Params prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.Rule.Params} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.Rule.Params) - org.sonarqube.ws.Rules.Rule.ParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Rule_Params_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Rule_Params_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.Rule.Params.class, org.sonarqube.ws.Rules.Rule.Params.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.Rule.Params.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getParamsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (paramsBuilder_ == null) { - params_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - paramsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Rule_Params_descriptor; - } - - public org.sonarqube.ws.Rules.Rule.Params getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.Rule.Params.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.Rule.Params build() { - org.sonarqube.ws.Rules.Rule.Params result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.Rule.Params buildPartial() { - org.sonarqube.ws.Rules.Rule.Params result = new org.sonarqube.ws.Rules.Rule.Params(this); - int from_bitField0_ = bitField0_; - if (paramsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - params_ = java.util.Collections.unmodifiableList(params_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.Rule.Params) { - return mergeFrom((org.sonarqube.ws.Rules.Rule.Params)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.Rule.Params other) { - if (other == org.sonarqube.ws.Rules.Rule.Params.getDefaultInstance()) return this; - if (paramsBuilder_ == null) { - if (!other.params_.isEmpty()) { - if (params_.isEmpty()) { - params_ = other.params_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureParamsIsMutable(); - params_.addAll(other.params_); - } - onChanged(); - } - } else { - if (!other.params_.isEmpty()) { - if (paramsBuilder_.isEmpty()) { - paramsBuilder_.dispose(); - paramsBuilder_ = null; - params_ = other.params_; - bitField0_ = (bitField0_ & ~0x00000001); - paramsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getParamsFieldBuilder() : null; - } else { - paramsBuilder_.addAllMessages(other.params_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.Rule.Params parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.Rule.Params) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List params_ = - java.util.Collections.emptyList(); - private void ensureParamsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - params_ = new java.util.ArrayList(params_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.Rule.Param, org.sonarqube.ws.Rules.Rule.Param.Builder, org.sonarqube.ws.Rules.Rule.ParamOrBuilder> paramsBuilder_; - - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public java.util.List getParamsList() { - if (paramsBuilder_ == null) { - return java.util.Collections.unmodifiableList(params_); - } else { - return paramsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public int getParamsCount() { - if (paramsBuilder_ == null) { - return params_.size(); - } else { - return paramsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public org.sonarqube.ws.Rules.Rule.Param getParams(int index) { - if (paramsBuilder_ == null) { - return params_.get(index); - } else { - return paramsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public Builder setParams( - int index, org.sonarqube.ws.Rules.Rule.Param value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParamsIsMutable(); - params_.set(index, value); - onChanged(); - } else { - paramsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public Builder setParams( - int index, org.sonarqube.ws.Rules.Rule.Param.Builder builderForValue) { - if (paramsBuilder_ == null) { - ensureParamsIsMutable(); - params_.set(index, builderForValue.build()); - onChanged(); - } else { - paramsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public Builder addParams(org.sonarqube.ws.Rules.Rule.Param value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParamsIsMutable(); - params_.add(value); - onChanged(); - } else { - paramsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public Builder addParams( - int index, org.sonarqube.ws.Rules.Rule.Param value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParamsIsMutable(); - params_.add(index, value); - onChanged(); - } else { - paramsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public Builder addParams( - org.sonarqube.ws.Rules.Rule.Param.Builder builderForValue) { - if (paramsBuilder_ == null) { - ensureParamsIsMutable(); - params_.add(builderForValue.build()); - onChanged(); - } else { - paramsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public Builder addParams( - int index, org.sonarqube.ws.Rules.Rule.Param.Builder builderForValue) { - if (paramsBuilder_ == null) { - ensureParamsIsMutable(); - params_.add(index, builderForValue.build()); - onChanged(); - } else { - paramsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public Builder addAllParams( - java.lang.Iterable values) { - if (paramsBuilder_ == null) { - ensureParamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, params_); - onChanged(); - } else { - paramsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - paramsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public Builder removeParams(int index) { - if (paramsBuilder_ == null) { - ensureParamsIsMutable(); - params_.remove(index); - onChanged(); - } else { - paramsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public org.sonarqube.ws.Rules.Rule.Param.Builder getParamsBuilder( - int index) { - return getParamsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public org.sonarqube.ws.Rules.Rule.ParamOrBuilder getParamsOrBuilder( - int index) { - if (paramsBuilder_ == null) { - return params_.get(index); } else { - return paramsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public java.util.List - getParamsOrBuilderList() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(params_); - } - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public org.sonarqube.ws.Rules.Rule.Param.Builder addParamsBuilder() { - return getParamsFieldBuilder().addBuilder( - org.sonarqube.ws.Rules.Rule.Param.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public org.sonarqube.ws.Rules.Rule.Param.Builder addParamsBuilder( - int index) { - return getParamsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Rules.Rule.Param.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.rules.Rule.Param params = 1; - */ - public java.util.List - getParamsBuilderList() { - return getParamsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.Rule.Param, org.sonarqube.ws.Rules.Rule.Param.Builder, org.sonarqube.ws.Rules.Rule.ParamOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.Rule.Param, org.sonarqube.ws.Rules.Rule.Param.Builder, org.sonarqube.ws.Rules.Rule.ParamOrBuilder>( - params_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.Rule.Params) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.Rule.Params) - private static final org.sonarqube.ws.Rules.Rule.Params DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.Rule.Params(); - } - - public static org.sonarqube.ws.Rules.Rule.Params getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Params parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Params(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.Rule.Params getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParamOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.Rule.Param) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string key = 1; - */ - boolean hasKey(); - /** - * optional string key = 1; - */ - java.lang.String getKey(); - /** - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string htmlDesc = 2; - */ - boolean hasHtmlDesc(); - /** - * optional string htmlDesc = 2; - */ - java.lang.String getHtmlDesc(); - /** - * optional string htmlDesc = 2; - */ - com.google.protobuf.ByteString - getHtmlDescBytes(); - - /** - * optional string defaultValue = 3; - */ - boolean hasDefaultValue(); - /** - * optional string defaultValue = 3; - */ - java.lang.String getDefaultValue(); - /** - * optional string defaultValue = 3; - */ - com.google.protobuf.ByteString - getDefaultValueBytes(); - - /** - * optional string type = 4; - */ - boolean hasType(); - /** - * optional string type = 4; - */ - java.lang.String getType(); - /** - * optional string type = 4; - */ - com.google.protobuf.ByteString - getTypeBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.rules.Rule.Param} - */ - public static final class Param extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.Rule.Param) - ParamOrBuilder { - // Use Param.newBuilder() to construct. - private Param(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Param() { - key_ = ""; - htmlDesc_ = ""; - defaultValue_ = ""; - type_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Param( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - htmlDesc_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - defaultValue_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - type_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Rule_Param_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Rule_Param_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.Rule.Param.class, org.sonarqube.ws.Rules.Rule.Param.Builder.class); - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HTMLDESC_FIELD_NUMBER = 2; - private volatile java.lang.Object htmlDesc_; - /** - * optional string htmlDesc = 2; - */ - public boolean hasHtmlDesc() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string htmlDesc = 2; - */ - public java.lang.String getHtmlDesc() { - java.lang.Object ref = htmlDesc_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - htmlDesc_ = s; - } - return s; - } - } - /** - * optional string htmlDesc = 2; - */ - public com.google.protobuf.ByteString - getHtmlDescBytes() { - java.lang.Object ref = htmlDesc_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - htmlDesc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULTVALUE_FIELD_NUMBER = 3; - private volatile java.lang.Object defaultValue_; - /** - * optional string defaultValue = 3; - */ - public boolean hasDefaultValue() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string defaultValue = 3; - */ - public java.lang.String getDefaultValue() { - java.lang.Object ref = defaultValue_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - defaultValue_ = s; - } - return s; - } - } - /** - * optional string defaultValue = 3; - */ - public com.google.protobuf.ByteString - getDefaultValueBytes() { - java.lang.Object ref = defaultValue_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 4; - private volatile java.lang.Object type_; - /** - * optional string type = 4; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string type = 4; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - type_ = s; - } - return s; - } - } - /** - * optional string type = 4; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getHtmlDescBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getDefaultValueBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getTypeBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getHtmlDescBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getDefaultValueBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getTypeBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.Rule.Param parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.Rule.Param parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Rule.Param parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.Rule.Param parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Rule.Param parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.Rule.Param parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Rule.Param parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.Rule.Param parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Rule.Param parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.Rule.Param parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.Rule.Param prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.Rule.Param} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.Rule.Param) - org.sonarqube.ws.Rules.Rule.ParamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Rule_Param_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Rule_Param_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.Rule.Param.class, org.sonarqube.ws.Rules.Rule.Param.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.Rule.Param.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - htmlDesc_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - defaultValue_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - type_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Rule_Param_descriptor; - } - - public org.sonarqube.ws.Rules.Rule.Param getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.Rule.Param.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.Rule.Param build() { - org.sonarqube.ws.Rules.Rule.Param result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.Rule.Param buildPartial() { - org.sonarqube.ws.Rules.Rule.Param result = new org.sonarqube.ws.Rules.Rule.Param(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.htmlDesc_ = htmlDesc_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.defaultValue_ = defaultValue_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.type_ = type_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.Rule.Param) { - return mergeFrom((org.sonarqube.ws.Rules.Rule.Param)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.Rule.Param other) { - if (other == org.sonarqube.ws.Rules.Rule.Param.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasHtmlDesc()) { - bitField0_ |= 0x00000002; - htmlDesc_ = other.htmlDesc_; - onChanged(); - } - if (other.hasDefaultValue()) { - bitField0_ |= 0x00000004; - defaultValue_ = other.defaultValue_; - onChanged(); - } - if (other.hasType()) { - bitField0_ |= 0x00000008; - type_ = other.type_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.Rule.Param parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.Rule.Param) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object htmlDesc_ = ""; - /** - * optional string htmlDesc = 2; - */ - public boolean hasHtmlDesc() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string htmlDesc = 2; - */ - public java.lang.String getHtmlDesc() { - java.lang.Object ref = htmlDesc_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - htmlDesc_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string htmlDesc = 2; - */ - public com.google.protobuf.ByteString - getHtmlDescBytes() { - java.lang.Object ref = htmlDesc_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - htmlDesc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string htmlDesc = 2; - */ - public Builder setHtmlDesc( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - htmlDesc_ = value; - onChanged(); - return this; - } - /** - * optional string htmlDesc = 2; - */ - public Builder clearHtmlDesc() { - bitField0_ = (bitField0_ & ~0x00000002); - htmlDesc_ = getDefaultInstance().getHtmlDesc(); - onChanged(); - return this; - } - /** - * optional string htmlDesc = 2; - */ - public Builder setHtmlDescBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - htmlDesc_ = value; - onChanged(); - return this; - } - - private java.lang.Object defaultValue_ = ""; - /** - * optional string defaultValue = 3; - */ - public boolean hasDefaultValue() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string defaultValue = 3; - */ - public java.lang.String getDefaultValue() { - java.lang.Object ref = defaultValue_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - defaultValue_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string defaultValue = 3; - */ - public com.google.protobuf.ByteString - getDefaultValueBytes() { - java.lang.Object ref = defaultValue_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string defaultValue = 3; - */ - public Builder setDefaultValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - defaultValue_ = value; - onChanged(); - return this; - } - /** - * optional string defaultValue = 3; - */ - public Builder clearDefaultValue() { - bitField0_ = (bitField0_ & ~0x00000004); - defaultValue_ = getDefaultInstance().getDefaultValue(); - onChanged(); - return this; - } - /** - * optional string defaultValue = 3; - */ - public Builder setDefaultValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - defaultValue_ = value; - onChanged(); - return this; - } - - private java.lang.Object type_ = ""; - /** - * optional string type = 4; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string type = 4; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - type_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string type = 4; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string type = 4; - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - type_ = value; - onChanged(); - return this; - } - /** - * optional string type = 4; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000008); - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - * optional string type = 4; - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - type_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.Rule.Param) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.Rule.Param) - private static final org.sonarqube.ws.Rules.Rule.Param DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.Rule.Param(); - } - - public static org.sonarqube.ws.Rules.Rule.Param getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Param parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Param(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.Rule.Param getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - private int bitField1_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REPO_FIELD_NUMBER = 2; - private volatile java.lang.Object repo_; - /** - * optional string repo = 2; - */ - public boolean hasRepo() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string repo = 2; - */ - public java.lang.String getRepo() { - java.lang.Object ref = repo_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - repo_ = s; - } - return s; - } - } - /** - * optional string repo = 2; - */ - public com.google.protobuf.ByteString - getRepoBytes() { - java.lang.Object ref = repo_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - repo_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - * optional string name = 3; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string name = 3; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATEDAT_FIELD_NUMBER = 4; - private volatile java.lang.Object createdAt_; - /** - * optional string createdAt = 4; - */ - public boolean hasCreatedAt() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string createdAt = 4; - */ - public java.lang.String getCreatedAt() { - java.lang.Object ref = createdAt_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - createdAt_ = s; - } - return s; - } - } - /** - * optional string createdAt = 4; - */ - public com.google.protobuf.ByteString - getCreatedAtBytes() { - java.lang.Object ref = createdAt_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - createdAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HTMLDESC_FIELD_NUMBER = 5; - private volatile java.lang.Object htmlDesc_; - /** - * optional string htmlDesc = 5; - */ - public boolean hasHtmlDesc() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string htmlDesc = 5; - */ - public java.lang.String getHtmlDesc() { - java.lang.Object ref = htmlDesc_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - htmlDesc_ = s; - } - return s; - } - } - /** - * optional string htmlDesc = 5; - */ - public com.google.protobuf.ByteString - getHtmlDescBytes() { - java.lang.Object ref = htmlDesc_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - htmlDesc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HTMLNOTE_FIELD_NUMBER = 6; - private volatile java.lang.Object htmlNote_; - /** - * optional string htmlNote = 6; - */ - public boolean hasHtmlNote() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string htmlNote = 6; - */ - public java.lang.String getHtmlNote() { - java.lang.Object ref = htmlNote_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - htmlNote_ = s; - } - return s; - } - } - /** - * optional string htmlNote = 6; - */ - public com.google.protobuf.ByteString - getHtmlNoteBytes() { - java.lang.Object ref = htmlNote_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - htmlNote_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MDDESC_FIELD_NUMBER = 7; - private volatile java.lang.Object mdDesc_; - /** - * optional string mdDesc = 7; - */ - public boolean hasMdDesc() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string mdDesc = 7; - */ - public java.lang.String getMdDesc() { - java.lang.Object ref = mdDesc_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - mdDesc_ = s; - } - return s; - } - } - /** - * optional string mdDesc = 7; - */ - public com.google.protobuf.ByteString - getMdDescBytes() { - java.lang.Object ref = mdDesc_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mdDesc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MDNOTE_FIELD_NUMBER = 8; - private volatile java.lang.Object mdNote_; - /** - * optional string mdNote = 8; - */ - public boolean hasMdNote() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional string mdNote = 8; - */ - public java.lang.String getMdNote() { - java.lang.Object ref = mdNote_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - mdNote_ = s; - } - return s; - } - } - /** - * optional string mdNote = 8; - */ - public com.google.protobuf.ByteString - getMdNoteBytes() { - java.lang.Object ref = mdNote_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mdNote_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NOTELOGIN_FIELD_NUMBER = 9; - private volatile java.lang.Object noteLogin_; - /** - * optional string noteLogin = 9; - */ - public boolean hasNoteLogin() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional string noteLogin = 9; - */ - public java.lang.String getNoteLogin() { - java.lang.Object ref = noteLogin_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - noteLogin_ = s; - } - return s; - } - } - /** - * optional string noteLogin = 9; - */ - public com.google.protobuf.ByteString - getNoteLoginBytes() { - java.lang.Object ref = noteLogin_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - noteLogin_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SEVERITY_FIELD_NUMBER = 10; - private volatile java.lang.Object severity_; - /** - * optional string severity = 10; - */ - public boolean hasSeverity() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional string severity = 10; - */ - public java.lang.String getSeverity() { - java.lang.Object ref = severity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - severity_ = s; - } - return s; - } - } - /** - * optional string severity = 10; - */ - public com.google.protobuf.ByteString - getSeverityBytes() { - java.lang.Object ref = severity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - severity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 11; - private int status_; - /** - * optional .sonarqube.ws.commons.RuleStatus status = 11; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional .sonarqube.ws.commons.RuleStatus status = 11; - */ - public org.sonarqube.ws.Common.RuleStatus getStatus() { - org.sonarqube.ws.Common.RuleStatus result = org.sonarqube.ws.Common.RuleStatus.valueOf(status_); - return result == null ? org.sonarqube.ws.Common.RuleStatus.BETA : result; - } - - public static final int INTERNALKEY_FIELD_NUMBER = 12; - private volatile java.lang.Object internalKey_; - /** - * optional string internalKey = 12; - */ - public boolean hasInternalKey() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional string internalKey = 12; - */ - public java.lang.String getInternalKey() { - java.lang.Object ref = internalKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - internalKey_ = s; - } - return s; - } - } - /** - * optional string internalKey = 12; - */ - public com.google.protobuf.ByteString - getInternalKeyBytes() { - java.lang.Object ref = internalKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - internalKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ISTEMPLATE_FIELD_NUMBER = 13; - private boolean isTemplate_; - /** - * optional bool isTemplate = 13; - */ - public boolean hasIsTemplate() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * optional bool isTemplate = 13; - */ - public boolean getIsTemplate() { - return isTemplate_; - } - - public static final int TEMPLATEKEY_FIELD_NUMBER = 14; - private volatile java.lang.Object templateKey_; - /** - * optional string templateKey = 14; - */ - public boolean hasTemplateKey() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - /** - * optional string templateKey = 14; - */ - public java.lang.String getTemplateKey() { - java.lang.Object ref = templateKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - templateKey_ = s; - } - return s; - } - } - /** - * optional string templateKey = 14; - */ - public com.google.protobuf.ByteString - getTemplateKeyBytes() { - java.lang.Object ref = templateKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - templateKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TAGS_FIELD_NUMBER = 15; - private org.sonarqube.ws.Rules.Tags tags_; - /** - * optional .sonarqube.ws.rules.Tags tags = 15; - */ - public boolean hasTags() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - /** - * optional .sonarqube.ws.rules.Tags tags = 15; - */ - public org.sonarqube.ws.Rules.Tags getTags() { - return tags_ == null ? org.sonarqube.ws.Rules.Tags.getDefaultInstance() : tags_; - } - /** - * optional .sonarqube.ws.rules.Tags tags = 15; - */ - public org.sonarqube.ws.Rules.TagsOrBuilder getTagsOrBuilder() { - return tags_ == null ? org.sonarqube.ws.Rules.Tags.getDefaultInstance() : tags_; - } - - public static final int SYSTAGS_FIELD_NUMBER = 16; - private org.sonarqube.ws.Rules.SysTags sysTags_; - /** - * optional .sonarqube.ws.rules.SysTags sysTags = 16; - */ - public boolean hasSysTags() { - return ((bitField0_ & 0x00008000) == 0x00008000); - } - /** - * optional .sonarqube.ws.rules.SysTags sysTags = 16; - */ - public org.sonarqube.ws.Rules.SysTags getSysTags() { - return sysTags_ == null ? org.sonarqube.ws.Rules.SysTags.getDefaultInstance() : sysTags_; - } - /** - * optional .sonarqube.ws.rules.SysTags sysTags = 16; - */ - public org.sonarqube.ws.Rules.SysTagsOrBuilder getSysTagsOrBuilder() { - return sysTags_ == null ? org.sonarqube.ws.Rules.SysTags.getDefaultInstance() : sysTags_; - } - - public static final int LANG_FIELD_NUMBER = 19; - private volatile java.lang.Object lang_; - /** - * optional string lang = 19; - */ - public boolean hasLang() { - return ((bitField0_ & 0x00010000) == 0x00010000); - } - /** - * optional string lang = 19; - */ - public java.lang.String getLang() { - java.lang.Object ref = lang_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - lang_ = s; - } - return s; - } - } - /** - * optional string lang = 19; - */ - public com.google.protobuf.ByteString - getLangBytes() { - java.lang.Object ref = lang_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - lang_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LANGNAME_FIELD_NUMBER = 20; - private volatile java.lang.Object langName_; - /** - * optional string langName = 20; - */ - public boolean hasLangName() { - return ((bitField0_ & 0x00020000) == 0x00020000); - } - /** - * optional string langName = 20; - */ - public java.lang.String getLangName() { - java.lang.Object ref = langName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - langName_ = s; - } - return s; - } - } - /** - * optional string langName = 20; - */ - public com.google.protobuf.ByteString - getLangNameBytes() { - java.lang.Object ref = langName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - langName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARAMS_FIELD_NUMBER = 21; - private org.sonarqube.ws.Rules.Rule.Params params_; - /** - * optional .sonarqube.ws.rules.Rule.Params params = 21; - */ - public boolean hasParams() { - return ((bitField0_ & 0x00040000) == 0x00040000); - } - /** - * optional .sonarqube.ws.rules.Rule.Params params = 21; - */ - public org.sonarqube.ws.Rules.Rule.Params getParams() { - return params_ == null ? org.sonarqube.ws.Rules.Rule.Params.getDefaultInstance() : params_; - } - /** - * optional .sonarqube.ws.rules.Rule.Params params = 21; - */ - public org.sonarqube.ws.Rules.Rule.ParamsOrBuilder getParamsOrBuilder() { - return params_ == null ? org.sonarqube.ws.Rules.Rule.Params.getDefaultInstance() : params_; - } - - public static final int DEFAULTDEBTCHAR_FIELD_NUMBER = 23; - private volatile java.lang.Object defaultDebtChar_; - /** - * optional string defaultDebtChar = 23; - * - *
-     * debt fields
-     * 
- */ - public boolean hasDefaultDebtChar() { - return ((bitField0_ & 0x00080000) == 0x00080000); - } - /** - * optional string defaultDebtChar = 23; - * - *
-     * debt fields
-     * 
- */ - public java.lang.String getDefaultDebtChar() { - java.lang.Object ref = defaultDebtChar_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - defaultDebtChar_ = s; - } - return s; - } - } - /** - * optional string defaultDebtChar = 23; - * - *
-     * debt fields
-     * 
- */ - public com.google.protobuf.ByteString - getDefaultDebtCharBytes() { - java.lang.Object ref = defaultDebtChar_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultDebtChar_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULTDEBTSUBCHAR_FIELD_NUMBER = 24; - private volatile java.lang.Object defaultDebtSubChar_; - /** - * optional string defaultDebtSubChar = 24; - */ - public boolean hasDefaultDebtSubChar() { - return ((bitField0_ & 0x00100000) == 0x00100000); - } - /** - * optional string defaultDebtSubChar = 24; - */ - public java.lang.String getDefaultDebtSubChar() { - java.lang.Object ref = defaultDebtSubChar_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - defaultDebtSubChar_ = s; - } - return s; - } - } - /** - * optional string defaultDebtSubChar = 24; - */ - public com.google.protobuf.ByteString - getDefaultDebtSubCharBytes() { - java.lang.Object ref = defaultDebtSubChar_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultDebtSubChar_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEBTCHAR_FIELD_NUMBER = 25; - private volatile java.lang.Object debtChar_; - /** - * optional string debtChar = 25; - */ - public boolean hasDebtChar() { - return ((bitField0_ & 0x00200000) == 0x00200000); - } - /** - * optional string debtChar = 25; - */ - public java.lang.String getDebtChar() { - java.lang.Object ref = debtChar_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - debtChar_ = s; - } - return s; - } - } - /** - * optional string debtChar = 25; - */ - public com.google.protobuf.ByteString - getDebtCharBytes() { - java.lang.Object ref = debtChar_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debtChar_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEBTSUBCHAR_FIELD_NUMBER = 26; - private volatile java.lang.Object debtSubChar_; - /** - * optional string debtSubChar = 26; - */ - public boolean hasDebtSubChar() { - return ((bitField0_ & 0x00400000) == 0x00400000); - } - /** - * optional string debtSubChar = 26; - */ - public java.lang.String getDebtSubChar() { - java.lang.Object ref = debtSubChar_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - debtSubChar_ = s; - } - return s; - } - } - /** - * optional string debtSubChar = 26; - */ - public com.google.protobuf.ByteString - getDebtSubCharBytes() { - java.lang.Object ref = debtSubChar_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debtSubChar_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEBTCHARNAME_FIELD_NUMBER = 27; - private volatile java.lang.Object debtCharName_; - /** - * optional string debtCharName = 27; - */ - public boolean hasDebtCharName() { - return ((bitField0_ & 0x00800000) == 0x00800000); - } - /** - * optional string debtCharName = 27; - */ - public java.lang.String getDebtCharName() { - java.lang.Object ref = debtCharName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - debtCharName_ = s; - } - return s; - } - } - /** - * optional string debtCharName = 27; - */ - public com.google.protobuf.ByteString - getDebtCharNameBytes() { - java.lang.Object ref = debtCharName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debtCharName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEBTSUBCHARNAME_FIELD_NUMBER = 28; - private volatile java.lang.Object debtSubCharName_; - /** - * optional string debtSubCharName = 28; - */ - public boolean hasDebtSubCharName() { - return ((bitField0_ & 0x01000000) == 0x01000000); - } - /** - * optional string debtSubCharName = 28; - */ - public java.lang.String getDebtSubCharName() { - java.lang.Object ref = debtSubCharName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - debtSubCharName_ = s; - } - return s; - } - } - /** - * optional string debtSubCharName = 28; - */ - public com.google.protobuf.ByteString - getDebtSubCharNameBytes() { - java.lang.Object ref = debtSubCharName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debtSubCharName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULTDEBTREMFNTYPE_FIELD_NUMBER = 29; - private volatile java.lang.Object defaultDebtRemFnType_; - /** - * optional string defaultDebtRemFnType = 29; - */ - public boolean hasDefaultDebtRemFnType() { - return ((bitField0_ & 0x02000000) == 0x02000000); - } - /** - * optional string defaultDebtRemFnType = 29; - */ - public java.lang.String getDefaultDebtRemFnType() { - java.lang.Object ref = defaultDebtRemFnType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - defaultDebtRemFnType_ = s; - } - return s; - } - } - /** - * optional string defaultDebtRemFnType = 29; - */ - public com.google.protobuf.ByteString - getDefaultDebtRemFnTypeBytes() { - java.lang.Object ref = defaultDebtRemFnType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultDebtRemFnType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULTDEBTREMFNCOEFF_FIELD_NUMBER = 30; - private volatile java.lang.Object defaultDebtRemFnCoeff_; - /** - * optional string defaultDebtRemFnCoeff = 30; - */ - public boolean hasDefaultDebtRemFnCoeff() { - return ((bitField0_ & 0x04000000) == 0x04000000); - } - /** - * optional string defaultDebtRemFnCoeff = 30; - */ - public java.lang.String getDefaultDebtRemFnCoeff() { - java.lang.Object ref = defaultDebtRemFnCoeff_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - defaultDebtRemFnCoeff_ = s; - } - return s; - } - } - /** - * optional string defaultDebtRemFnCoeff = 30; - */ - public com.google.protobuf.ByteString - getDefaultDebtRemFnCoeffBytes() { - java.lang.Object ref = defaultDebtRemFnCoeff_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultDebtRemFnCoeff_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULTDEBTREMFNOFFSET_FIELD_NUMBER = 31; - private volatile java.lang.Object defaultDebtRemFnOffset_; - /** - * optional string defaultDebtRemFnOffset = 31; - */ - public boolean hasDefaultDebtRemFnOffset() { - return ((bitField0_ & 0x08000000) == 0x08000000); - } - /** - * optional string defaultDebtRemFnOffset = 31; - */ - public java.lang.String getDefaultDebtRemFnOffset() { - java.lang.Object ref = defaultDebtRemFnOffset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - defaultDebtRemFnOffset_ = s; - } - return s; - } - } - /** - * optional string defaultDebtRemFnOffset = 31; - */ - public com.google.protobuf.ByteString - getDefaultDebtRemFnOffsetBytes() { - java.lang.Object ref = defaultDebtRemFnOffset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultDebtRemFnOffset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EFFORTTOFIXDESCRIPTION_FIELD_NUMBER = 32; - private volatile java.lang.Object effortToFixDescription_; - /** - * optional string effortToFixDescription = 32; - */ - public boolean hasEffortToFixDescription() { - return ((bitField0_ & 0x10000000) == 0x10000000); - } - /** - * optional string effortToFixDescription = 32; - */ - public java.lang.String getEffortToFixDescription() { - java.lang.Object ref = effortToFixDescription_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - effortToFixDescription_ = s; - } - return s; - } - } - /** - * optional string effortToFixDescription = 32; - */ - public com.google.protobuf.ByteString - getEffortToFixDescriptionBytes() { - java.lang.Object ref = effortToFixDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - effortToFixDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEBTOVERLOADED_FIELD_NUMBER = 33; - private boolean debtOverloaded_; - /** - * optional bool debtOverloaded = 33; - */ - public boolean hasDebtOverloaded() { - return ((bitField0_ & 0x20000000) == 0x20000000); - } - /** - * optional bool debtOverloaded = 33; - */ - public boolean getDebtOverloaded() { - return debtOverloaded_; - } - - public static final int DEBTREMFNTYPE_FIELD_NUMBER = 34; - private volatile java.lang.Object debtRemFnType_; - /** - * optional string debtRemFnType = 34; - */ - public boolean hasDebtRemFnType() { - return ((bitField0_ & 0x40000000) == 0x40000000); - } - /** - * optional string debtRemFnType = 34; - */ - public java.lang.String getDebtRemFnType() { - java.lang.Object ref = debtRemFnType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - debtRemFnType_ = s; - } - return s; - } - } - /** - * optional string debtRemFnType = 34; - */ - public com.google.protobuf.ByteString - getDebtRemFnTypeBytes() { - java.lang.Object ref = debtRemFnType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debtRemFnType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEBTREMFNCOEFF_FIELD_NUMBER = 35; - private volatile java.lang.Object debtRemFnCoeff_; - /** - * optional string debtRemFnCoeff = 35; - */ - public boolean hasDebtRemFnCoeff() { - return ((bitField0_ & 0x80000000) == 0x80000000); - } - /** - * optional string debtRemFnCoeff = 35; - */ - public java.lang.String getDebtRemFnCoeff() { - java.lang.Object ref = debtRemFnCoeff_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - debtRemFnCoeff_ = s; - } - return s; - } - } - /** - * optional string debtRemFnCoeff = 35; - */ - public com.google.protobuf.ByteString - getDebtRemFnCoeffBytes() { - java.lang.Object ref = debtRemFnCoeff_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debtRemFnCoeff_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEBTREMFNOFFSET_FIELD_NUMBER = 36; - private volatile java.lang.Object debtRemFnOffset_; - /** - * optional string debtRemFnOffset = 36; - */ - public boolean hasDebtRemFnOffset() { - return ((bitField1_ & 0x00000001) == 0x00000001); - } - /** - * optional string debtRemFnOffset = 36; - */ - public java.lang.String getDebtRemFnOffset() { - java.lang.Object ref = debtRemFnOffset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - debtRemFnOffset_ = s; - } - return s; - } - } - /** - * optional string debtRemFnOffset = 36; - */ - public com.google.protobuf.ByteString - getDebtRemFnOffsetBytes() { - java.lang.Object ref = debtRemFnOffset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debtRemFnOffset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getRepoBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getNameBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getCreatedAtBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getHtmlDescBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getHtmlNoteBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeBytes(7, getMdDescBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(8, getMdNoteBytes()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(9, getNoteLoginBytes()); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(10, getSeverityBytes()); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeEnum(11, status_); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBytes(12, getInternalKeyBytes()); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeBool(13, isTemplate_); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeBytes(14, getTemplateKeyBytes()); - } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeMessage(15, getTags()); - } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - output.writeMessage(16, getSysTags()); - } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - output.writeBytes(19, getLangBytes()); - } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - output.writeBytes(20, getLangNameBytes()); - } - if (((bitField0_ & 0x00040000) == 0x00040000)) { - output.writeMessage(21, getParams()); - } - if (((bitField0_ & 0x00080000) == 0x00080000)) { - output.writeBytes(23, getDefaultDebtCharBytes()); - } - if (((bitField0_ & 0x00100000) == 0x00100000)) { - output.writeBytes(24, getDefaultDebtSubCharBytes()); - } - if (((bitField0_ & 0x00200000) == 0x00200000)) { - output.writeBytes(25, getDebtCharBytes()); - } - if (((bitField0_ & 0x00400000) == 0x00400000)) { - output.writeBytes(26, getDebtSubCharBytes()); - } - if (((bitField0_ & 0x00800000) == 0x00800000)) { - output.writeBytes(27, getDebtCharNameBytes()); - } - if (((bitField0_ & 0x01000000) == 0x01000000)) { - output.writeBytes(28, getDebtSubCharNameBytes()); - } - if (((bitField0_ & 0x02000000) == 0x02000000)) { - output.writeBytes(29, getDefaultDebtRemFnTypeBytes()); - } - if (((bitField0_ & 0x04000000) == 0x04000000)) { - output.writeBytes(30, getDefaultDebtRemFnCoeffBytes()); - } - if (((bitField0_ & 0x08000000) == 0x08000000)) { - output.writeBytes(31, getDefaultDebtRemFnOffsetBytes()); - } - if (((bitField0_ & 0x10000000) == 0x10000000)) { - output.writeBytes(32, getEffortToFixDescriptionBytes()); - } - if (((bitField0_ & 0x20000000) == 0x20000000)) { - output.writeBool(33, debtOverloaded_); - } - if (((bitField0_ & 0x40000000) == 0x40000000)) { - output.writeBytes(34, getDebtRemFnTypeBytes()); - } - if (((bitField0_ & 0x80000000) == 0x80000000)) { - output.writeBytes(35, getDebtRemFnCoeffBytes()); - } - if (((bitField1_ & 0x00000001) == 0x00000001)) { - output.writeBytes(36, getDebtRemFnOffsetBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getRepoBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getNameBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getCreatedAtBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getHtmlDescBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getHtmlNoteBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, getMdDescBytes()); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getMdNoteBytes()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getNoteLoginBytes()); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getSeverityBytes()); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, status_); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(12, getInternalKeyBytes()); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, isTemplate_); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(14, getTemplateKeyBytes()); - } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, getTags()); - } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getSysTags()); - } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(19, getLangBytes()); - } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(20, getLangNameBytes()); - } - if (((bitField0_ & 0x00040000) == 0x00040000)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getParams()); - } - if (((bitField0_ & 0x00080000) == 0x00080000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(23, getDefaultDebtCharBytes()); - } - if (((bitField0_ & 0x00100000) == 0x00100000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(24, getDefaultDebtSubCharBytes()); - } - if (((bitField0_ & 0x00200000) == 0x00200000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(25, getDebtCharBytes()); - } - if (((bitField0_ & 0x00400000) == 0x00400000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(26, getDebtSubCharBytes()); - } - if (((bitField0_ & 0x00800000) == 0x00800000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(27, getDebtCharNameBytes()); - } - if (((bitField0_ & 0x01000000) == 0x01000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(28, getDebtSubCharNameBytes()); - } - if (((bitField0_ & 0x02000000) == 0x02000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(29, getDefaultDebtRemFnTypeBytes()); - } - if (((bitField0_ & 0x04000000) == 0x04000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(30, getDefaultDebtRemFnCoeffBytes()); - } - if (((bitField0_ & 0x08000000) == 0x08000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(31, getDefaultDebtRemFnOffsetBytes()); - } - if (((bitField0_ & 0x10000000) == 0x10000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(32, getEffortToFixDescriptionBytes()); - } - if (((bitField0_ & 0x20000000) == 0x20000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(33, debtOverloaded_); - } - if (((bitField0_ & 0x40000000) == 0x40000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(34, getDebtRemFnTypeBytes()); - } - if (((bitField0_ & 0x80000000) == 0x80000000)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(35, getDebtRemFnCoeffBytes()); - } - if (((bitField1_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(36, getDebtRemFnOffsetBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.Rule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.Rule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Rule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.Rule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Rule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.Rule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Rule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.Rule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Rule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.Rule parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.Rule prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.Rule} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.Rule) - org.sonarqube.ws.Rules.RuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Rule_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Rule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.Rule.class, org.sonarqube.ws.Rules.Rule.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.Rule.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getTagsFieldBuilder(); - getSysTagsFieldBuilder(); - getParamsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - repo_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - createdAt_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - htmlDesc_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - htmlNote_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - mdDesc_ = ""; - bitField0_ = (bitField0_ & ~0x00000040); - mdNote_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); - noteLogin_ = ""; - bitField0_ = (bitField0_ & ~0x00000100); - severity_ = ""; - bitField0_ = (bitField0_ & ~0x00000200); - status_ = 0; - bitField0_ = (bitField0_ & ~0x00000400); - internalKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000800); - isTemplate_ = false; - bitField0_ = (bitField0_ & ~0x00001000); - templateKey_ = ""; - bitField0_ = (bitField0_ & ~0x00002000); - if (tagsBuilder_ == null) { - tags_ = null; - } else { - tagsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00004000); - if (sysTagsBuilder_ == null) { - sysTags_ = null; - } else { - sysTagsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00008000); - lang_ = ""; - bitField0_ = (bitField0_ & ~0x00010000); - langName_ = ""; - bitField0_ = (bitField0_ & ~0x00020000); - if (paramsBuilder_ == null) { - params_ = null; - } else { - paramsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00040000); - defaultDebtChar_ = ""; - bitField0_ = (bitField0_ & ~0x00080000); - defaultDebtSubChar_ = ""; - bitField0_ = (bitField0_ & ~0x00100000); - debtChar_ = ""; - bitField0_ = (bitField0_ & ~0x00200000); - debtSubChar_ = ""; - bitField0_ = (bitField0_ & ~0x00400000); - debtCharName_ = ""; - bitField0_ = (bitField0_ & ~0x00800000); - debtSubCharName_ = ""; - bitField0_ = (bitField0_ & ~0x01000000); - defaultDebtRemFnType_ = ""; - bitField0_ = (bitField0_ & ~0x02000000); - defaultDebtRemFnCoeff_ = ""; - bitField0_ = (bitField0_ & ~0x04000000); - defaultDebtRemFnOffset_ = ""; - bitField0_ = (bitField0_ & ~0x08000000); - effortToFixDescription_ = ""; - bitField0_ = (bitField0_ & ~0x10000000); - debtOverloaded_ = false; - bitField0_ = (bitField0_ & ~0x20000000); - debtRemFnType_ = ""; - bitField0_ = (bitField0_ & ~0x40000000); - debtRemFnCoeff_ = ""; - bitField0_ = (bitField0_ & ~0x80000000); - debtRemFnOffset_ = ""; - bitField1_ = (bitField1_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Rule_descriptor; - } - - public org.sonarqube.ws.Rules.Rule getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.Rule.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.Rule build() { - org.sonarqube.ws.Rules.Rule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.Rule buildPartial() { - org.sonarqube.ws.Rules.Rule result = new org.sonarqube.ws.Rules.Rule(this); - int from_bitField0_ = bitField0_; - int from_bitField1_ = bitField1_; - int to_bitField0_ = 0; - int to_bitField1_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.repo_ = repo_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.createdAt_ = createdAt_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.htmlDesc_ = htmlDesc_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.htmlNote_ = htmlNote_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.mdDesc_ = mdDesc_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.mdNote_ = mdNote_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.noteLogin_ = noteLogin_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - result.severity_ = severity_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } - result.status_ = status_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000800; - } - result.internalKey_ = internalKey_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00001000; - } - result.isTemplate_ = isTemplate_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { - to_bitField0_ |= 0x00002000; - } - result.templateKey_ = templateKey_; - if (((from_bitField0_ & 0x00004000) == 0x00004000)) { - to_bitField0_ |= 0x00004000; - } - if (tagsBuilder_ == null) { - result.tags_ = tags_; - } else { - result.tags_ = tagsBuilder_.build(); - } - if (((from_bitField0_ & 0x00008000) == 0x00008000)) { - to_bitField0_ |= 0x00008000; - } - if (sysTagsBuilder_ == null) { - result.sysTags_ = sysTags_; - } else { - result.sysTags_ = sysTagsBuilder_.build(); - } - if (((from_bitField0_ & 0x00010000) == 0x00010000)) { - to_bitField0_ |= 0x00010000; - } - result.lang_ = lang_; - if (((from_bitField0_ & 0x00020000) == 0x00020000)) { - to_bitField0_ |= 0x00020000; - } - result.langName_ = langName_; - if (((from_bitField0_ & 0x00040000) == 0x00040000)) { - to_bitField0_ |= 0x00040000; - } - if (paramsBuilder_ == null) { - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - if (((from_bitField0_ & 0x00080000) == 0x00080000)) { - to_bitField0_ |= 0x00080000; - } - result.defaultDebtChar_ = defaultDebtChar_; - if (((from_bitField0_ & 0x00100000) == 0x00100000)) { - to_bitField0_ |= 0x00100000; - } - result.defaultDebtSubChar_ = defaultDebtSubChar_; - if (((from_bitField0_ & 0x00200000) == 0x00200000)) { - to_bitField0_ |= 0x00200000; - } - result.debtChar_ = debtChar_; - if (((from_bitField0_ & 0x00400000) == 0x00400000)) { - to_bitField0_ |= 0x00400000; - } - result.debtSubChar_ = debtSubChar_; - if (((from_bitField0_ & 0x00800000) == 0x00800000)) { - to_bitField0_ |= 0x00800000; - } - result.debtCharName_ = debtCharName_; - if (((from_bitField0_ & 0x01000000) == 0x01000000)) { - to_bitField0_ |= 0x01000000; - } - result.debtSubCharName_ = debtSubCharName_; - if (((from_bitField0_ & 0x02000000) == 0x02000000)) { - to_bitField0_ |= 0x02000000; - } - result.defaultDebtRemFnType_ = defaultDebtRemFnType_; - if (((from_bitField0_ & 0x04000000) == 0x04000000)) { - to_bitField0_ |= 0x04000000; - } - result.defaultDebtRemFnCoeff_ = defaultDebtRemFnCoeff_; - if (((from_bitField0_ & 0x08000000) == 0x08000000)) { - to_bitField0_ |= 0x08000000; - } - result.defaultDebtRemFnOffset_ = defaultDebtRemFnOffset_; - if (((from_bitField0_ & 0x10000000) == 0x10000000)) { - to_bitField0_ |= 0x10000000; - } - result.effortToFixDescription_ = effortToFixDescription_; - if (((from_bitField0_ & 0x20000000) == 0x20000000)) { - to_bitField0_ |= 0x20000000; - } - result.debtOverloaded_ = debtOverloaded_; - if (((from_bitField0_ & 0x40000000) == 0x40000000)) { - to_bitField0_ |= 0x40000000; - } - result.debtRemFnType_ = debtRemFnType_; - if (((from_bitField0_ & 0x80000000) == 0x80000000)) { - to_bitField0_ |= 0x80000000; - } - result.debtRemFnCoeff_ = debtRemFnCoeff_; - if (((from_bitField1_ & 0x00000001) == 0x00000001)) { - to_bitField1_ |= 0x00000001; - } - result.debtRemFnOffset_ = debtRemFnOffset_; - result.bitField0_ = to_bitField0_; - result.bitField1_ = to_bitField1_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.Rule) { - return mergeFrom((org.sonarqube.ws.Rules.Rule)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.Rule other) { - if (other == org.sonarqube.ws.Rules.Rule.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasRepo()) { - bitField0_ |= 0x00000002; - repo_ = other.repo_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000004; - name_ = other.name_; - onChanged(); - } - if (other.hasCreatedAt()) { - bitField0_ |= 0x00000008; - createdAt_ = other.createdAt_; - onChanged(); - } - if (other.hasHtmlDesc()) { - bitField0_ |= 0x00000010; - htmlDesc_ = other.htmlDesc_; - onChanged(); - } - if (other.hasHtmlNote()) { - bitField0_ |= 0x00000020; - htmlNote_ = other.htmlNote_; - onChanged(); - } - if (other.hasMdDesc()) { - bitField0_ |= 0x00000040; - mdDesc_ = other.mdDesc_; - onChanged(); - } - if (other.hasMdNote()) { - bitField0_ |= 0x00000080; - mdNote_ = other.mdNote_; - onChanged(); - } - if (other.hasNoteLogin()) { - bitField0_ |= 0x00000100; - noteLogin_ = other.noteLogin_; - onChanged(); - } - if (other.hasSeverity()) { - bitField0_ |= 0x00000200; - severity_ = other.severity_; - onChanged(); - } - if (other.hasStatus()) { - setStatus(other.getStatus()); - } - if (other.hasInternalKey()) { - bitField0_ |= 0x00000800; - internalKey_ = other.internalKey_; - onChanged(); - } - if (other.hasIsTemplate()) { - setIsTemplate(other.getIsTemplate()); - } - if (other.hasTemplateKey()) { - bitField0_ |= 0x00002000; - templateKey_ = other.templateKey_; - onChanged(); - } - if (other.hasTags()) { - mergeTags(other.getTags()); - } - if (other.hasSysTags()) { - mergeSysTags(other.getSysTags()); - } - if (other.hasLang()) { - bitField0_ |= 0x00010000; - lang_ = other.lang_; - onChanged(); - } - if (other.hasLangName()) { - bitField0_ |= 0x00020000; - langName_ = other.langName_; - onChanged(); - } - if (other.hasParams()) { - mergeParams(other.getParams()); - } - if (other.hasDefaultDebtChar()) { - bitField0_ |= 0x00080000; - defaultDebtChar_ = other.defaultDebtChar_; - onChanged(); - } - if (other.hasDefaultDebtSubChar()) { - bitField0_ |= 0x00100000; - defaultDebtSubChar_ = other.defaultDebtSubChar_; - onChanged(); - } - if (other.hasDebtChar()) { - bitField0_ |= 0x00200000; - debtChar_ = other.debtChar_; - onChanged(); - } - if (other.hasDebtSubChar()) { - bitField0_ |= 0x00400000; - debtSubChar_ = other.debtSubChar_; - onChanged(); - } - if (other.hasDebtCharName()) { - bitField0_ |= 0x00800000; - debtCharName_ = other.debtCharName_; - onChanged(); - } - if (other.hasDebtSubCharName()) { - bitField0_ |= 0x01000000; - debtSubCharName_ = other.debtSubCharName_; - onChanged(); - } - if (other.hasDefaultDebtRemFnType()) { - bitField0_ |= 0x02000000; - defaultDebtRemFnType_ = other.defaultDebtRemFnType_; - onChanged(); - } - if (other.hasDefaultDebtRemFnCoeff()) { - bitField0_ |= 0x04000000; - defaultDebtRemFnCoeff_ = other.defaultDebtRemFnCoeff_; - onChanged(); - } - if (other.hasDefaultDebtRemFnOffset()) { - bitField0_ |= 0x08000000; - defaultDebtRemFnOffset_ = other.defaultDebtRemFnOffset_; - onChanged(); - } - if (other.hasEffortToFixDescription()) { - bitField0_ |= 0x10000000; - effortToFixDescription_ = other.effortToFixDescription_; - onChanged(); - } - if (other.hasDebtOverloaded()) { - setDebtOverloaded(other.getDebtOverloaded()); - } - if (other.hasDebtRemFnType()) { - bitField0_ |= 0x40000000; - debtRemFnType_ = other.debtRemFnType_; - onChanged(); - } - if (other.hasDebtRemFnCoeff()) { - bitField0_ |= 0x80000000; - debtRemFnCoeff_ = other.debtRemFnCoeff_; - onChanged(); - } - if (other.hasDebtRemFnOffset()) { - bitField1_ |= 0x00000001; - debtRemFnOffset_ = other.debtRemFnOffset_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.Rule parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.Rule) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - private int bitField1_; - - private java.lang.Object key_ = ""; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object repo_ = ""; - /** - * optional string repo = 2; - */ - public boolean hasRepo() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string repo = 2; - */ - public java.lang.String getRepo() { - java.lang.Object ref = repo_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - repo_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string repo = 2; - */ - public com.google.protobuf.ByteString - getRepoBytes() { - java.lang.Object ref = repo_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - repo_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string repo = 2; - */ - public Builder setRepo( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - repo_ = value; - onChanged(); - return this; - } - /** - * optional string repo = 2; - */ - public Builder clearRepo() { - bitField0_ = (bitField0_ & ~0x00000002); - repo_ = getDefaultInstance().getRepo(); - onChanged(); - return this; - } - /** - * optional string repo = 2; - */ - public Builder setRepoBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - repo_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 3; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string name = 3; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 3; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 3; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000004); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 3; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object createdAt_ = ""; - /** - * optional string createdAt = 4; - */ - public boolean hasCreatedAt() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string createdAt = 4; - */ - public java.lang.String getCreatedAt() { - java.lang.Object ref = createdAt_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - createdAt_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string createdAt = 4; - */ - public com.google.protobuf.ByteString - getCreatedAtBytes() { - java.lang.Object ref = createdAt_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - createdAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string createdAt = 4; - */ - public Builder setCreatedAt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - createdAt_ = value; - onChanged(); - return this; - } - /** - * optional string createdAt = 4; - */ - public Builder clearCreatedAt() { - bitField0_ = (bitField0_ & ~0x00000008); - createdAt_ = getDefaultInstance().getCreatedAt(); - onChanged(); - return this; - } - /** - * optional string createdAt = 4; - */ - public Builder setCreatedAtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - createdAt_ = value; - onChanged(); - return this; - } - - private java.lang.Object htmlDesc_ = ""; - /** - * optional string htmlDesc = 5; - */ - public boolean hasHtmlDesc() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string htmlDesc = 5; - */ - public java.lang.String getHtmlDesc() { - java.lang.Object ref = htmlDesc_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - htmlDesc_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string htmlDesc = 5; - */ - public com.google.protobuf.ByteString - getHtmlDescBytes() { - java.lang.Object ref = htmlDesc_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - htmlDesc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string htmlDesc = 5; - */ - public Builder setHtmlDesc( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - htmlDesc_ = value; - onChanged(); - return this; - } - /** - * optional string htmlDesc = 5; - */ - public Builder clearHtmlDesc() { - bitField0_ = (bitField0_ & ~0x00000010); - htmlDesc_ = getDefaultInstance().getHtmlDesc(); - onChanged(); - return this; - } - /** - * optional string htmlDesc = 5; - */ - public Builder setHtmlDescBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - htmlDesc_ = value; - onChanged(); - return this; - } - - private java.lang.Object htmlNote_ = ""; - /** - * optional string htmlNote = 6; - */ - public boolean hasHtmlNote() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string htmlNote = 6; - */ - public java.lang.String getHtmlNote() { - java.lang.Object ref = htmlNote_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - htmlNote_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string htmlNote = 6; - */ - public com.google.protobuf.ByteString - getHtmlNoteBytes() { - java.lang.Object ref = htmlNote_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - htmlNote_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string htmlNote = 6; - */ - public Builder setHtmlNote( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - htmlNote_ = value; - onChanged(); - return this; - } - /** - * optional string htmlNote = 6; - */ - public Builder clearHtmlNote() { - bitField0_ = (bitField0_ & ~0x00000020); - htmlNote_ = getDefaultInstance().getHtmlNote(); - onChanged(); - return this; - } - /** - * optional string htmlNote = 6; - */ - public Builder setHtmlNoteBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - htmlNote_ = value; - onChanged(); - return this; - } - - private java.lang.Object mdDesc_ = ""; - /** - * optional string mdDesc = 7; - */ - public boolean hasMdDesc() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional string mdDesc = 7; - */ - public java.lang.String getMdDesc() { - java.lang.Object ref = mdDesc_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - mdDesc_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string mdDesc = 7; - */ - public com.google.protobuf.ByteString - getMdDescBytes() { - java.lang.Object ref = mdDesc_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mdDesc_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string mdDesc = 7; - */ - public Builder setMdDesc( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - mdDesc_ = value; - onChanged(); - return this; - } - /** - * optional string mdDesc = 7; - */ - public Builder clearMdDesc() { - bitField0_ = (bitField0_ & ~0x00000040); - mdDesc_ = getDefaultInstance().getMdDesc(); - onChanged(); - return this; - } - /** - * optional string mdDesc = 7; - */ - public Builder setMdDescBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - mdDesc_ = value; - onChanged(); - return this; - } - - private java.lang.Object mdNote_ = ""; - /** - * optional string mdNote = 8; - */ - public boolean hasMdNote() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional string mdNote = 8; - */ - public java.lang.String getMdNote() { - java.lang.Object ref = mdNote_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - mdNote_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string mdNote = 8; - */ - public com.google.protobuf.ByteString - getMdNoteBytes() { - java.lang.Object ref = mdNote_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mdNote_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string mdNote = 8; - */ - public Builder setMdNote( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - mdNote_ = value; - onChanged(); - return this; - } - /** - * optional string mdNote = 8; - */ - public Builder clearMdNote() { - bitField0_ = (bitField0_ & ~0x00000080); - mdNote_ = getDefaultInstance().getMdNote(); - onChanged(); - return this; - } - /** - * optional string mdNote = 8; - */ - public Builder setMdNoteBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - mdNote_ = value; - onChanged(); - return this; - } - - private java.lang.Object noteLogin_ = ""; - /** - * optional string noteLogin = 9; - */ - public boolean hasNoteLogin() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional string noteLogin = 9; - */ - public java.lang.String getNoteLogin() { - java.lang.Object ref = noteLogin_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - noteLogin_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string noteLogin = 9; - */ - public com.google.protobuf.ByteString - getNoteLoginBytes() { - java.lang.Object ref = noteLogin_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - noteLogin_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string noteLogin = 9; - */ - public Builder setNoteLogin( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - noteLogin_ = value; - onChanged(); - return this; - } - /** - * optional string noteLogin = 9; - */ - public Builder clearNoteLogin() { - bitField0_ = (bitField0_ & ~0x00000100); - noteLogin_ = getDefaultInstance().getNoteLogin(); - onChanged(); - return this; - } - /** - * optional string noteLogin = 9; - */ - public Builder setNoteLoginBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - noteLogin_ = value; - onChanged(); - return this; - } - - private java.lang.Object severity_ = ""; - /** - * optional string severity = 10; - */ - public boolean hasSeverity() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional string severity = 10; - */ - public java.lang.String getSeverity() { - java.lang.Object ref = severity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - severity_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string severity = 10; - */ - public com.google.protobuf.ByteString - getSeverityBytes() { - java.lang.Object ref = severity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - severity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string severity = 10; - */ - public Builder setSeverity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - severity_ = value; - onChanged(); - return this; - } - /** - * optional string severity = 10; - */ - public Builder clearSeverity() { - bitField0_ = (bitField0_ & ~0x00000200); - severity_ = getDefaultInstance().getSeverity(); - onChanged(); - return this; - } - /** - * optional string severity = 10; - */ - public Builder setSeverityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - severity_ = value; - onChanged(); - return this; - } - - private int status_ = 0; - /** - * optional .sonarqube.ws.commons.RuleStatus status = 11; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional .sonarqube.ws.commons.RuleStatus status = 11; - */ - public org.sonarqube.ws.Common.RuleStatus getStatus() { - org.sonarqube.ws.Common.RuleStatus result = org.sonarqube.ws.Common.RuleStatus.valueOf(status_); - return result == null ? org.sonarqube.ws.Common.RuleStatus.BETA : result; - } - /** - * optional .sonarqube.ws.commons.RuleStatus status = 11; - */ - public Builder setStatus(org.sonarqube.ws.Common.RuleStatus value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .sonarqube.ws.commons.RuleStatus status = 11; - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000400); - status_ = 0; - onChanged(); - return this; - } - - private java.lang.Object internalKey_ = ""; - /** - * optional string internalKey = 12; - */ - public boolean hasInternalKey() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional string internalKey = 12; - */ - public java.lang.String getInternalKey() { - java.lang.Object ref = internalKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - internalKey_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string internalKey = 12; - */ - public com.google.protobuf.ByteString - getInternalKeyBytes() { - java.lang.Object ref = internalKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - internalKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string internalKey = 12; - */ - public Builder setInternalKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - internalKey_ = value; - onChanged(); - return this; - } - /** - * optional string internalKey = 12; - */ - public Builder clearInternalKey() { - bitField0_ = (bitField0_ & ~0x00000800); - internalKey_ = getDefaultInstance().getInternalKey(); - onChanged(); - return this; - } - /** - * optional string internalKey = 12; - */ - public Builder setInternalKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000800; - internalKey_ = value; - onChanged(); - return this; - } - - private boolean isTemplate_ ; - /** - * optional bool isTemplate = 13; - */ - public boolean hasIsTemplate() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * optional bool isTemplate = 13; - */ - public boolean getIsTemplate() { - return isTemplate_; - } - /** - * optional bool isTemplate = 13; - */ - public Builder setIsTemplate(boolean value) { - bitField0_ |= 0x00001000; - isTemplate_ = value; - onChanged(); - return this; - } - /** - * optional bool isTemplate = 13; - */ - public Builder clearIsTemplate() { - bitField0_ = (bitField0_ & ~0x00001000); - isTemplate_ = false; - onChanged(); - return this; - } - - private java.lang.Object templateKey_ = ""; - /** - * optional string templateKey = 14; - */ - public boolean hasTemplateKey() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - /** - * optional string templateKey = 14; - */ - public java.lang.String getTemplateKey() { - java.lang.Object ref = templateKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - templateKey_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string templateKey = 14; - */ - public com.google.protobuf.ByteString - getTemplateKeyBytes() { - java.lang.Object ref = templateKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - templateKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string templateKey = 14; - */ - public Builder setTemplateKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00002000; - templateKey_ = value; - onChanged(); - return this; - } - /** - * optional string templateKey = 14; - */ - public Builder clearTemplateKey() { - bitField0_ = (bitField0_ & ~0x00002000); - templateKey_ = getDefaultInstance().getTemplateKey(); - onChanged(); - return this; - } - /** - * optional string templateKey = 14; - */ - public Builder setTemplateKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00002000; - templateKey_ = value; - onChanged(); - return this; - } - - private org.sonarqube.ws.Rules.Tags tags_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Tags, org.sonarqube.ws.Rules.Tags.Builder, org.sonarqube.ws.Rules.TagsOrBuilder> tagsBuilder_; - /** - * optional .sonarqube.ws.rules.Tags tags = 15; - */ - public boolean hasTags() { - return ((bitField0_ & 0x00004000) == 0x00004000); - } - /** - * optional .sonarqube.ws.rules.Tags tags = 15; - */ - public org.sonarqube.ws.Rules.Tags getTags() { - if (tagsBuilder_ == null) { - return tags_ == null ? org.sonarqube.ws.Rules.Tags.getDefaultInstance() : tags_; - } else { - return tagsBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.rules.Tags tags = 15; - */ - public Builder setTags(org.sonarqube.ws.Rules.Tags value) { - if (tagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tags_ = value; - onChanged(); - } else { - tagsBuilder_.setMessage(value); - } - bitField0_ |= 0x00004000; - return this; - } - /** - * optional .sonarqube.ws.rules.Tags tags = 15; - */ - public Builder setTags( - org.sonarqube.ws.Rules.Tags.Builder builderForValue) { - if (tagsBuilder_ == null) { - tags_ = builderForValue.build(); - onChanged(); - } else { - tagsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00004000; - return this; - } - /** - * optional .sonarqube.ws.rules.Tags tags = 15; - */ - public Builder mergeTags(org.sonarqube.ws.Rules.Tags value) { - if (tagsBuilder_ == null) { - if (((bitField0_ & 0x00004000) == 0x00004000) && - tags_ != null && - tags_ != org.sonarqube.ws.Rules.Tags.getDefaultInstance()) { - tags_ = - org.sonarqube.ws.Rules.Tags.newBuilder(tags_).mergeFrom(value).buildPartial(); - } else { - tags_ = value; - } - onChanged(); - } else { - tagsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00004000; - return this; - } - /** - * optional .sonarqube.ws.rules.Tags tags = 15; - */ - public Builder clearTags() { - if (tagsBuilder_ == null) { - tags_ = null; - onChanged(); - } else { - tagsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00004000); - return this; - } - /** - * optional .sonarqube.ws.rules.Tags tags = 15; - */ - public org.sonarqube.ws.Rules.Tags.Builder getTagsBuilder() { - bitField0_ |= 0x00004000; - onChanged(); - return getTagsFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.rules.Tags tags = 15; - */ - public org.sonarqube.ws.Rules.TagsOrBuilder getTagsOrBuilder() { - if (tagsBuilder_ != null) { - return tagsBuilder_.getMessageOrBuilder(); - } else { - return tags_ == null ? - org.sonarqube.ws.Rules.Tags.getDefaultInstance() : tags_; - } - } - /** - * optional .sonarqube.ws.rules.Tags tags = 15; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Tags, org.sonarqube.ws.Rules.Tags.Builder, org.sonarqube.ws.Rules.TagsOrBuilder> - getTagsFieldBuilder() { - if (tagsBuilder_ == null) { - tagsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Tags, org.sonarqube.ws.Rules.Tags.Builder, org.sonarqube.ws.Rules.TagsOrBuilder>( - getTags(), - getParentForChildren(), - isClean()); - tags_ = null; - } - return tagsBuilder_; - } - - private org.sonarqube.ws.Rules.SysTags sysTags_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.SysTags, org.sonarqube.ws.Rules.SysTags.Builder, org.sonarqube.ws.Rules.SysTagsOrBuilder> sysTagsBuilder_; - /** - * optional .sonarqube.ws.rules.SysTags sysTags = 16; - */ - public boolean hasSysTags() { - return ((bitField0_ & 0x00008000) == 0x00008000); - } - /** - * optional .sonarqube.ws.rules.SysTags sysTags = 16; - */ - public org.sonarqube.ws.Rules.SysTags getSysTags() { - if (sysTagsBuilder_ == null) { - return sysTags_ == null ? org.sonarqube.ws.Rules.SysTags.getDefaultInstance() : sysTags_; - } else { - return sysTagsBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.rules.SysTags sysTags = 16; - */ - public Builder setSysTags(org.sonarqube.ws.Rules.SysTags value) { - if (sysTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sysTags_ = value; - onChanged(); - } else { - sysTagsBuilder_.setMessage(value); - } - bitField0_ |= 0x00008000; - return this; - } - /** - * optional .sonarqube.ws.rules.SysTags sysTags = 16; - */ - public Builder setSysTags( - org.sonarqube.ws.Rules.SysTags.Builder builderForValue) { - if (sysTagsBuilder_ == null) { - sysTags_ = builderForValue.build(); - onChanged(); - } else { - sysTagsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00008000; - return this; - } - /** - * optional .sonarqube.ws.rules.SysTags sysTags = 16; - */ - public Builder mergeSysTags(org.sonarqube.ws.Rules.SysTags value) { - if (sysTagsBuilder_ == null) { - if (((bitField0_ & 0x00008000) == 0x00008000) && - sysTags_ != null && - sysTags_ != org.sonarqube.ws.Rules.SysTags.getDefaultInstance()) { - sysTags_ = - org.sonarqube.ws.Rules.SysTags.newBuilder(sysTags_).mergeFrom(value).buildPartial(); - } else { - sysTags_ = value; - } - onChanged(); - } else { - sysTagsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00008000; - return this; - } - /** - * optional .sonarqube.ws.rules.SysTags sysTags = 16; - */ - public Builder clearSysTags() { - if (sysTagsBuilder_ == null) { - sysTags_ = null; - onChanged(); - } else { - sysTagsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00008000); - return this; - } - /** - * optional .sonarqube.ws.rules.SysTags sysTags = 16; - */ - public org.sonarqube.ws.Rules.SysTags.Builder getSysTagsBuilder() { - bitField0_ |= 0x00008000; - onChanged(); - return getSysTagsFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.rules.SysTags sysTags = 16; - */ - public org.sonarqube.ws.Rules.SysTagsOrBuilder getSysTagsOrBuilder() { - if (sysTagsBuilder_ != null) { - return sysTagsBuilder_.getMessageOrBuilder(); - } else { - return sysTags_ == null ? - org.sonarqube.ws.Rules.SysTags.getDefaultInstance() : sysTags_; - } - } - /** - * optional .sonarqube.ws.rules.SysTags sysTags = 16; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.SysTags, org.sonarqube.ws.Rules.SysTags.Builder, org.sonarqube.ws.Rules.SysTagsOrBuilder> - getSysTagsFieldBuilder() { - if (sysTagsBuilder_ == null) { - sysTagsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.SysTags, org.sonarqube.ws.Rules.SysTags.Builder, org.sonarqube.ws.Rules.SysTagsOrBuilder>( - getSysTags(), - getParentForChildren(), - isClean()); - sysTags_ = null; - } - return sysTagsBuilder_; - } - - private java.lang.Object lang_ = ""; - /** - * optional string lang = 19; - */ - public boolean hasLang() { - return ((bitField0_ & 0x00010000) == 0x00010000); - } - /** - * optional string lang = 19; - */ - public java.lang.String getLang() { - java.lang.Object ref = lang_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - lang_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string lang = 19; - */ - public com.google.protobuf.ByteString - getLangBytes() { - java.lang.Object ref = lang_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - lang_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string lang = 19; - */ - public Builder setLang( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00010000; - lang_ = value; - onChanged(); - return this; - } - /** - * optional string lang = 19; - */ - public Builder clearLang() { - bitField0_ = (bitField0_ & ~0x00010000); - lang_ = getDefaultInstance().getLang(); - onChanged(); - return this; - } - /** - * optional string lang = 19; - */ - public Builder setLangBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00010000; - lang_ = value; - onChanged(); - return this; - } - - private java.lang.Object langName_ = ""; - /** - * optional string langName = 20; - */ - public boolean hasLangName() { - return ((bitField0_ & 0x00020000) == 0x00020000); - } - /** - * optional string langName = 20; - */ - public java.lang.String getLangName() { - java.lang.Object ref = langName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - langName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string langName = 20; - */ - public com.google.protobuf.ByteString - getLangNameBytes() { - java.lang.Object ref = langName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - langName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string langName = 20; - */ - public Builder setLangName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; - langName_ = value; - onChanged(); - return this; - } - /** - * optional string langName = 20; - */ - public Builder clearLangName() { - bitField0_ = (bitField0_ & ~0x00020000); - langName_ = getDefaultInstance().getLangName(); - onChanged(); - return this; - } - /** - * optional string langName = 20; - */ - public Builder setLangNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00020000; - langName_ = value; - onChanged(); - return this; - } - - private org.sonarqube.ws.Rules.Rule.Params params_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Rule.Params, org.sonarqube.ws.Rules.Rule.Params.Builder, org.sonarqube.ws.Rules.Rule.ParamsOrBuilder> paramsBuilder_; - /** - * optional .sonarqube.ws.rules.Rule.Params params = 21; - */ - public boolean hasParams() { - return ((bitField0_ & 0x00040000) == 0x00040000); - } - /** - * optional .sonarqube.ws.rules.Rule.Params params = 21; - */ - public org.sonarqube.ws.Rules.Rule.Params getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? org.sonarqube.ws.Rules.Rule.Params.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.rules.Rule.Params params = 21; - */ - public Builder setParams(org.sonarqube.ws.Rules.Rule.Params value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - onChanged(); - } else { - paramsBuilder_.setMessage(value); - } - bitField0_ |= 0x00040000; - return this; - } - /** - * optional .sonarqube.ws.rules.Rule.Params params = 21; - */ - public Builder setParams( - org.sonarqube.ws.Rules.Rule.Params.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - onChanged(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00040000; - return this; - } - /** - * optional .sonarqube.ws.rules.Rule.Params params = 21; - */ - public Builder mergeParams(org.sonarqube.ws.Rules.Rule.Params value) { - if (paramsBuilder_ == null) { - if (((bitField0_ & 0x00040000) == 0x00040000) && - params_ != null && - params_ != org.sonarqube.ws.Rules.Rule.Params.getDefaultInstance()) { - params_ = - org.sonarqube.ws.Rules.Rule.Params.newBuilder(params_).mergeFrom(value).buildPartial(); - } else { - params_ = value; - } - onChanged(); - } else { - paramsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00040000; - return this; - } - /** - * optional .sonarqube.ws.rules.Rule.Params params = 21; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = null; - onChanged(); - } else { - paramsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00040000); - return this; - } - /** - * optional .sonarqube.ws.rules.Rule.Params params = 21; - */ - public org.sonarqube.ws.Rules.Rule.Params.Builder getParamsBuilder() { - bitField0_ |= 0x00040000; - onChanged(); - return getParamsFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.rules.Rule.Params params = 21; - */ - public org.sonarqube.ws.Rules.Rule.ParamsOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? - org.sonarqube.ws.Rules.Rule.Params.getDefaultInstance() : params_; - } - } - /** - * optional .sonarqube.ws.rules.Rule.Params params = 21; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Rule.Params, org.sonarqube.ws.Rules.Rule.Params.Builder, org.sonarqube.ws.Rules.Rule.ParamsOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Rules.Rule.Params, org.sonarqube.ws.Rules.Rule.Params.Builder, org.sonarqube.ws.Rules.Rule.ParamsOrBuilder>( - getParams(), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - - private java.lang.Object defaultDebtChar_ = ""; - /** - * optional string defaultDebtChar = 23; - * - *
-       * debt fields
-       * 
- */ - public boolean hasDefaultDebtChar() { - return ((bitField0_ & 0x00080000) == 0x00080000); - } - /** - * optional string defaultDebtChar = 23; - * - *
-       * debt fields
-       * 
- */ - public java.lang.String getDefaultDebtChar() { - java.lang.Object ref = defaultDebtChar_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - defaultDebtChar_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string defaultDebtChar = 23; - * - *
-       * debt fields
-       * 
- */ - public com.google.protobuf.ByteString - getDefaultDebtCharBytes() { - java.lang.Object ref = defaultDebtChar_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultDebtChar_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string defaultDebtChar = 23; - * - *
-       * debt fields
-       * 
- */ - public Builder setDefaultDebtChar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00080000; - defaultDebtChar_ = value; - onChanged(); - return this; - } - /** - * optional string defaultDebtChar = 23; - * - *
-       * debt fields
-       * 
- */ - public Builder clearDefaultDebtChar() { - bitField0_ = (bitField0_ & ~0x00080000); - defaultDebtChar_ = getDefaultInstance().getDefaultDebtChar(); - onChanged(); - return this; - } - /** - * optional string defaultDebtChar = 23; - * - *
-       * debt fields
-       * 
- */ - public Builder setDefaultDebtCharBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00080000; - defaultDebtChar_ = value; - onChanged(); - return this; - } - - private java.lang.Object defaultDebtSubChar_ = ""; - /** - * optional string defaultDebtSubChar = 24; - */ - public boolean hasDefaultDebtSubChar() { - return ((bitField0_ & 0x00100000) == 0x00100000); - } - /** - * optional string defaultDebtSubChar = 24; - */ - public java.lang.String getDefaultDebtSubChar() { - java.lang.Object ref = defaultDebtSubChar_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - defaultDebtSubChar_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string defaultDebtSubChar = 24; - */ - public com.google.protobuf.ByteString - getDefaultDebtSubCharBytes() { - java.lang.Object ref = defaultDebtSubChar_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultDebtSubChar_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string defaultDebtSubChar = 24; - */ - public Builder setDefaultDebtSubChar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00100000; - defaultDebtSubChar_ = value; - onChanged(); - return this; - } - /** - * optional string defaultDebtSubChar = 24; - */ - public Builder clearDefaultDebtSubChar() { - bitField0_ = (bitField0_ & ~0x00100000); - defaultDebtSubChar_ = getDefaultInstance().getDefaultDebtSubChar(); - onChanged(); - return this; - } - /** - * optional string defaultDebtSubChar = 24; - */ - public Builder setDefaultDebtSubCharBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00100000; - defaultDebtSubChar_ = value; - onChanged(); - return this; - } - - private java.lang.Object debtChar_ = ""; - /** - * optional string debtChar = 25; - */ - public boolean hasDebtChar() { - return ((bitField0_ & 0x00200000) == 0x00200000); - } - /** - * optional string debtChar = 25; - */ - public java.lang.String getDebtChar() { - java.lang.Object ref = debtChar_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - debtChar_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string debtChar = 25; - */ - public com.google.protobuf.ByteString - getDebtCharBytes() { - java.lang.Object ref = debtChar_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debtChar_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string debtChar = 25; - */ - public Builder setDebtChar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00200000; - debtChar_ = value; - onChanged(); - return this; - } - /** - * optional string debtChar = 25; - */ - public Builder clearDebtChar() { - bitField0_ = (bitField0_ & ~0x00200000); - debtChar_ = getDefaultInstance().getDebtChar(); - onChanged(); - return this; - } - /** - * optional string debtChar = 25; - */ - public Builder setDebtCharBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00200000; - debtChar_ = value; - onChanged(); - return this; - } - - private java.lang.Object debtSubChar_ = ""; - /** - * optional string debtSubChar = 26; - */ - public boolean hasDebtSubChar() { - return ((bitField0_ & 0x00400000) == 0x00400000); - } - /** - * optional string debtSubChar = 26; - */ - public java.lang.String getDebtSubChar() { - java.lang.Object ref = debtSubChar_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - debtSubChar_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string debtSubChar = 26; - */ - public com.google.protobuf.ByteString - getDebtSubCharBytes() { - java.lang.Object ref = debtSubChar_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debtSubChar_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string debtSubChar = 26; - */ - public Builder setDebtSubChar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00400000; - debtSubChar_ = value; - onChanged(); - return this; - } - /** - * optional string debtSubChar = 26; - */ - public Builder clearDebtSubChar() { - bitField0_ = (bitField0_ & ~0x00400000); - debtSubChar_ = getDefaultInstance().getDebtSubChar(); - onChanged(); - return this; - } - /** - * optional string debtSubChar = 26; - */ - public Builder setDebtSubCharBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00400000; - debtSubChar_ = value; - onChanged(); - return this; - } - - private java.lang.Object debtCharName_ = ""; - /** - * optional string debtCharName = 27; - */ - public boolean hasDebtCharName() { - return ((bitField0_ & 0x00800000) == 0x00800000); - } - /** - * optional string debtCharName = 27; - */ - public java.lang.String getDebtCharName() { - java.lang.Object ref = debtCharName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - debtCharName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string debtCharName = 27; - */ - public com.google.protobuf.ByteString - getDebtCharNameBytes() { - java.lang.Object ref = debtCharName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debtCharName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string debtCharName = 27; - */ - public Builder setDebtCharName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00800000; - debtCharName_ = value; - onChanged(); - return this; - } - /** - * optional string debtCharName = 27; - */ - public Builder clearDebtCharName() { - bitField0_ = (bitField0_ & ~0x00800000); - debtCharName_ = getDefaultInstance().getDebtCharName(); - onChanged(); - return this; - } - /** - * optional string debtCharName = 27; - */ - public Builder setDebtCharNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00800000; - debtCharName_ = value; - onChanged(); - return this; - } - - private java.lang.Object debtSubCharName_ = ""; - /** - * optional string debtSubCharName = 28; - */ - public boolean hasDebtSubCharName() { - return ((bitField0_ & 0x01000000) == 0x01000000); - } - /** - * optional string debtSubCharName = 28; - */ - public java.lang.String getDebtSubCharName() { - java.lang.Object ref = debtSubCharName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - debtSubCharName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string debtSubCharName = 28; - */ - public com.google.protobuf.ByteString - getDebtSubCharNameBytes() { - java.lang.Object ref = debtSubCharName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debtSubCharName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string debtSubCharName = 28; - */ - public Builder setDebtSubCharName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x01000000; - debtSubCharName_ = value; - onChanged(); - return this; - } - /** - * optional string debtSubCharName = 28; - */ - public Builder clearDebtSubCharName() { - bitField0_ = (bitField0_ & ~0x01000000); - debtSubCharName_ = getDefaultInstance().getDebtSubCharName(); - onChanged(); - return this; - } - /** - * optional string debtSubCharName = 28; - */ - public Builder setDebtSubCharNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x01000000; - debtSubCharName_ = value; - onChanged(); - return this; - } - - private java.lang.Object defaultDebtRemFnType_ = ""; - /** - * optional string defaultDebtRemFnType = 29; - */ - public boolean hasDefaultDebtRemFnType() { - return ((bitField0_ & 0x02000000) == 0x02000000); - } - /** - * optional string defaultDebtRemFnType = 29; - */ - public java.lang.String getDefaultDebtRemFnType() { - java.lang.Object ref = defaultDebtRemFnType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - defaultDebtRemFnType_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string defaultDebtRemFnType = 29; - */ - public com.google.protobuf.ByteString - getDefaultDebtRemFnTypeBytes() { - java.lang.Object ref = defaultDebtRemFnType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultDebtRemFnType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string defaultDebtRemFnType = 29; - */ - public Builder setDefaultDebtRemFnType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x02000000; - defaultDebtRemFnType_ = value; - onChanged(); - return this; - } - /** - * optional string defaultDebtRemFnType = 29; - */ - public Builder clearDefaultDebtRemFnType() { - bitField0_ = (bitField0_ & ~0x02000000); - defaultDebtRemFnType_ = getDefaultInstance().getDefaultDebtRemFnType(); - onChanged(); - return this; - } - /** - * optional string defaultDebtRemFnType = 29; - */ - public Builder setDefaultDebtRemFnTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x02000000; - defaultDebtRemFnType_ = value; - onChanged(); - return this; - } - - private java.lang.Object defaultDebtRemFnCoeff_ = ""; - /** - * optional string defaultDebtRemFnCoeff = 30; - */ - public boolean hasDefaultDebtRemFnCoeff() { - return ((bitField0_ & 0x04000000) == 0x04000000); - } - /** - * optional string defaultDebtRemFnCoeff = 30; - */ - public java.lang.String getDefaultDebtRemFnCoeff() { - java.lang.Object ref = defaultDebtRemFnCoeff_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - defaultDebtRemFnCoeff_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string defaultDebtRemFnCoeff = 30; - */ - public com.google.protobuf.ByteString - getDefaultDebtRemFnCoeffBytes() { - java.lang.Object ref = defaultDebtRemFnCoeff_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultDebtRemFnCoeff_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string defaultDebtRemFnCoeff = 30; - */ - public Builder setDefaultDebtRemFnCoeff( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x04000000; - defaultDebtRemFnCoeff_ = value; - onChanged(); - return this; - } - /** - * optional string defaultDebtRemFnCoeff = 30; - */ - public Builder clearDefaultDebtRemFnCoeff() { - bitField0_ = (bitField0_ & ~0x04000000); - defaultDebtRemFnCoeff_ = getDefaultInstance().getDefaultDebtRemFnCoeff(); - onChanged(); - return this; - } - /** - * optional string defaultDebtRemFnCoeff = 30; - */ - public Builder setDefaultDebtRemFnCoeffBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x04000000; - defaultDebtRemFnCoeff_ = value; - onChanged(); - return this; - } - - private java.lang.Object defaultDebtRemFnOffset_ = ""; - /** - * optional string defaultDebtRemFnOffset = 31; - */ - public boolean hasDefaultDebtRemFnOffset() { - return ((bitField0_ & 0x08000000) == 0x08000000); - } - /** - * optional string defaultDebtRemFnOffset = 31; - */ - public java.lang.String getDefaultDebtRemFnOffset() { - java.lang.Object ref = defaultDebtRemFnOffset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - defaultDebtRemFnOffset_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string defaultDebtRemFnOffset = 31; - */ - public com.google.protobuf.ByteString - getDefaultDebtRemFnOffsetBytes() { - java.lang.Object ref = defaultDebtRemFnOffset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultDebtRemFnOffset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string defaultDebtRemFnOffset = 31; - */ - public Builder setDefaultDebtRemFnOffset( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x08000000; - defaultDebtRemFnOffset_ = value; - onChanged(); - return this; - } - /** - * optional string defaultDebtRemFnOffset = 31; - */ - public Builder clearDefaultDebtRemFnOffset() { - bitField0_ = (bitField0_ & ~0x08000000); - defaultDebtRemFnOffset_ = getDefaultInstance().getDefaultDebtRemFnOffset(); - onChanged(); - return this; - } - /** - * optional string defaultDebtRemFnOffset = 31; - */ - public Builder setDefaultDebtRemFnOffsetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x08000000; - defaultDebtRemFnOffset_ = value; - onChanged(); - return this; - } - - private java.lang.Object effortToFixDescription_ = ""; - /** - * optional string effortToFixDescription = 32; - */ - public boolean hasEffortToFixDescription() { - return ((bitField0_ & 0x10000000) == 0x10000000); - } - /** - * optional string effortToFixDescription = 32; - */ - public java.lang.String getEffortToFixDescription() { - java.lang.Object ref = effortToFixDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - effortToFixDescription_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string effortToFixDescription = 32; - */ - public com.google.protobuf.ByteString - getEffortToFixDescriptionBytes() { - java.lang.Object ref = effortToFixDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - effortToFixDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string effortToFixDescription = 32; - */ - public Builder setEffortToFixDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x10000000; - effortToFixDescription_ = value; - onChanged(); - return this; - } - /** - * optional string effortToFixDescription = 32; - */ - public Builder clearEffortToFixDescription() { - bitField0_ = (bitField0_ & ~0x10000000); - effortToFixDescription_ = getDefaultInstance().getEffortToFixDescription(); - onChanged(); - return this; - } - /** - * optional string effortToFixDescription = 32; - */ - public Builder setEffortToFixDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x10000000; - effortToFixDescription_ = value; - onChanged(); - return this; - } - - private boolean debtOverloaded_ ; - /** - * optional bool debtOverloaded = 33; - */ - public boolean hasDebtOverloaded() { - return ((bitField0_ & 0x20000000) == 0x20000000); - } - /** - * optional bool debtOverloaded = 33; - */ - public boolean getDebtOverloaded() { - return debtOverloaded_; - } - /** - * optional bool debtOverloaded = 33; - */ - public Builder setDebtOverloaded(boolean value) { - bitField0_ |= 0x20000000; - debtOverloaded_ = value; - onChanged(); - return this; - } - /** - * optional bool debtOverloaded = 33; - */ - public Builder clearDebtOverloaded() { - bitField0_ = (bitField0_ & ~0x20000000); - debtOverloaded_ = false; - onChanged(); - return this; - } - - private java.lang.Object debtRemFnType_ = ""; - /** - * optional string debtRemFnType = 34; - */ - public boolean hasDebtRemFnType() { - return ((bitField0_ & 0x40000000) == 0x40000000); - } - /** - * optional string debtRemFnType = 34; - */ - public java.lang.String getDebtRemFnType() { - java.lang.Object ref = debtRemFnType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - debtRemFnType_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string debtRemFnType = 34; - */ - public com.google.protobuf.ByteString - getDebtRemFnTypeBytes() { - java.lang.Object ref = debtRemFnType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debtRemFnType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string debtRemFnType = 34; - */ - public Builder setDebtRemFnType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x40000000; - debtRemFnType_ = value; - onChanged(); - return this; - } - /** - * optional string debtRemFnType = 34; - */ - public Builder clearDebtRemFnType() { - bitField0_ = (bitField0_ & ~0x40000000); - debtRemFnType_ = getDefaultInstance().getDebtRemFnType(); - onChanged(); - return this; - } - /** - * optional string debtRemFnType = 34; - */ - public Builder setDebtRemFnTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x40000000; - debtRemFnType_ = value; - onChanged(); - return this; - } - - private java.lang.Object debtRemFnCoeff_ = ""; - /** - * optional string debtRemFnCoeff = 35; - */ - public boolean hasDebtRemFnCoeff() { - return ((bitField0_ & 0x80000000) == 0x80000000); - } - /** - * optional string debtRemFnCoeff = 35; - */ - public java.lang.String getDebtRemFnCoeff() { - java.lang.Object ref = debtRemFnCoeff_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - debtRemFnCoeff_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string debtRemFnCoeff = 35; - */ - public com.google.protobuf.ByteString - getDebtRemFnCoeffBytes() { - java.lang.Object ref = debtRemFnCoeff_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debtRemFnCoeff_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string debtRemFnCoeff = 35; - */ - public Builder setDebtRemFnCoeff( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x80000000; - debtRemFnCoeff_ = value; - onChanged(); - return this; - } - /** - * optional string debtRemFnCoeff = 35; - */ - public Builder clearDebtRemFnCoeff() { - bitField0_ = (bitField0_ & ~0x80000000); - debtRemFnCoeff_ = getDefaultInstance().getDebtRemFnCoeff(); - onChanged(); - return this; - } - /** - * optional string debtRemFnCoeff = 35; - */ - public Builder setDebtRemFnCoeffBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x80000000; - debtRemFnCoeff_ = value; - onChanged(); - return this; - } - - private java.lang.Object debtRemFnOffset_ = ""; - /** - * optional string debtRemFnOffset = 36; - */ - public boolean hasDebtRemFnOffset() { - return ((bitField1_ & 0x00000001) == 0x00000001); - } - /** - * optional string debtRemFnOffset = 36; - */ - public java.lang.String getDebtRemFnOffset() { - java.lang.Object ref = debtRemFnOffset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - debtRemFnOffset_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string debtRemFnOffset = 36; - */ - public com.google.protobuf.ByteString - getDebtRemFnOffsetBytes() { - java.lang.Object ref = debtRemFnOffset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debtRemFnOffset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string debtRemFnOffset = 36; - */ - public Builder setDebtRemFnOffset( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x00000001; - debtRemFnOffset_ = value; - onChanged(); - return this; - } - /** - * optional string debtRemFnOffset = 36; - */ - public Builder clearDebtRemFnOffset() { - bitField1_ = (bitField1_ & ~0x00000001); - debtRemFnOffset_ = getDefaultInstance().getDebtRemFnOffset(); - onChanged(); - return this; - } - /** - * optional string debtRemFnOffset = 36; - */ - public Builder setDebtRemFnOffsetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField1_ |= 0x00000001; - debtRemFnOffset_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.Rule) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.Rule) - private static final org.sonarqube.ws.Rules.Rule DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.Rule(); - } - - public static org.sonarqube.ws.Rules.Rule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Rule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Rule(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.Rule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SysTagsOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.SysTags) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string sysTags = 1; - */ - com.google.protobuf.ProtocolStringList - getSysTagsList(); - /** - * repeated string sysTags = 1; - */ - int getSysTagsCount(); - /** - * repeated string sysTags = 1; - */ - java.lang.String getSysTags(int index); - /** - * repeated string sysTags = 1; - */ - com.google.protobuf.ByteString - getSysTagsBytes(int index); - } - /** - * Protobuf type {@code sonarqube.ws.rules.SysTags} - */ - public static final class SysTags extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.SysTags) - SysTagsOrBuilder { - // Use SysTags.newBuilder() to construct. - private SysTags(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SysTags() { - sysTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SysTags( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - sysTags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - sysTags_.add(bs); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - sysTags_ = sysTags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_SysTags_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_SysTags_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.SysTags.class, org.sonarqube.ws.Rules.SysTags.Builder.class); - } - - public static final int SYSTAGS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList sysTags_; - /** - * repeated string sysTags = 1; - */ - public com.google.protobuf.ProtocolStringList - getSysTagsList() { - return sysTags_; - } - /** - * repeated string sysTags = 1; - */ - public int getSysTagsCount() { - return sysTags_.size(); - } - /** - * repeated string sysTags = 1; - */ - public java.lang.String getSysTags(int index) { - return sysTags_.get(index); - } - /** - * repeated string sysTags = 1; - */ - public com.google.protobuf.ByteString - getSysTagsBytes(int index) { - return sysTags_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < sysTags_.size(); i++) { - output.writeBytes(1, sysTags_.getByteString(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < sysTags_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(sysTags_.getByteString(i)); - } - size += dataSize; - size += 1 * getSysTagsList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.SysTags parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.SysTags parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.SysTags parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.SysTags parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.SysTags parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.SysTags parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.SysTags parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.SysTags parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.SysTags parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.SysTags parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.SysTags prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.SysTags} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.SysTags) - org.sonarqube.ws.Rules.SysTagsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_SysTags_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_SysTags_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.SysTags.class, org.sonarqube.ws.Rules.SysTags.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.SysTags.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - sysTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_SysTags_descriptor; - } - - public org.sonarqube.ws.Rules.SysTags getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.SysTags.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.SysTags build() { - org.sonarqube.ws.Rules.SysTags result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.SysTags buildPartial() { - org.sonarqube.ws.Rules.SysTags result = new org.sonarqube.ws.Rules.SysTags(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - sysTags_ = sysTags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.sysTags_ = sysTags_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.SysTags) { - return mergeFrom((org.sonarqube.ws.Rules.SysTags)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.SysTags other) { - if (other == org.sonarqube.ws.Rules.SysTags.getDefaultInstance()) return this; - if (!other.sysTags_.isEmpty()) { - if (sysTags_.isEmpty()) { - sysTags_ = other.sysTags_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSysTagsIsMutable(); - sysTags_.addAll(other.sysTags_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.SysTags parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.SysTags) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList sysTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureSysTagsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - sysTags_ = new com.google.protobuf.LazyStringArrayList(sysTags_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string sysTags = 1; - */ - public com.google.protobuf.ProtocolStringList - getSysTagsList() { - return sysTags_.getUnmodifiableView(); - } - /** - * repeated string sysTags = 1; - */ - public int getSysTagsCount() { - return sysTags_.size(); - } - /** - * repeated string sysTags = 1; - */ - public java.lang.String getSysTags(int index) { - return sysTags_.get(index); - } - /** - * repeated string sysTags = 1; - */ - public com.google.protobuf.ByteString - getSysTagsBytes(int index) { - return sysTags_.getByteString(index); - } - /** - * repeated string sysTags = 1; - */ - public Builder setSysTags( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSysTagsIsMutable(); - sysTags_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string sysTags = 1; - */ - public Builder addSysTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSysTagsIsMutable(); - sysTags_.add(value); - onChanged(); - return this; - } - /** - * repeated string sysTags = 1; - */ - public Builder addAllSysTags( - java.lang.Iterable values) { - ensureSysTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sysTags_); - onChanged(); - return this; - } - /** - * repeated string sysTags = 1; - */ - public Builder clearSysTags() { - sysTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string sysTags = 1; - */ - public Builder addSysTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSysTagsIsMutable(); - sysTags_.add(value); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.SysTags) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.SysTags) - private static final org.sonarqube.ws.Rules.SysTags DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.SysTags(); - } - - public static org.sonarqube.ws.Rules.SysTags getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SysTags parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new SysTags(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.SysTags getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TagsOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.Tags) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string tags = 1; - */ - com.google.protobuf.ProtocolStringList - getTagsList(); - /** - * repeated string tags = 1; - */ - int getTagsCount(); - /** - * repeated string tags = 1; - */ - java.lang.String getTags(int index); - /** - * repeated string tags = 1; - */ - com.google.protobuf.ByteString - getTagsBytes(int index); - } - /** - * Protobuf type {@code sonarqube.ws.rules.Tags} - */ - public static final class Tags extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.Tags) - TagsOrBuilder { - // Use Tags.newBuilder() to construct. - private Tags(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Tags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Tags( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tags_.add(bs); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - tags_ = tags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Tags_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Tags_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.Tags.class, org.sonarqube.ws.Rules.Tags.Builder.class); - } - - public static final int TAGS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList tags_; - /** - * repeated string tags = 1; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - * repeated string tags = 1; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 1; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 1; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < tags_.size(); i++) { - output.writeBytes(1, tags_.getByteString(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(tags_.getByteString(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.Tags parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.Tags parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Tags parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.Tags parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Tags parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.Tags parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Tags parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.Tags parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Tags parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.Tags parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.Tags prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.Tags} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.Tags) - org.sonarqube.ws.Rules.TagsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Tags_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Tags_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.Tags.class, org.sonarqube.ws.Rules.Tags.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.Tags.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Tags_descriptor; - } - - public org.sonarqube.ws.Rules.Tags getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.Tags.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.Tags build() { - org.sonarqube.ws.Rules.Tags result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.Tags buildPartial() { - org.sonarqube.ws.Rules.Tags result = new org.sonarqube.ws.Rules.Tags(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tags_ = tags_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.Tags) { - return mergeFrom((org.sonarqube.ws.Rules.Tags)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.Tags other) { - if (other == org.sonarqube.ws.Rules.Tags.getDefaultInstance()) return this; - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.Tags parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.Tags) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string tags = 1; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - * repeated string tags = 1; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 1; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 1; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - * repeated string tags = 1; - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string tags = 1; - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - * repeated string tags = 1; - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - * repeated string tags = 1; - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string tags = 1; - */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.Tags) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.Tags) - private static final org.sonarqube.ws.Rules.Tags DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.Tags(); - } - - public static org.sonarqube.ws.Rules.Tags getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Tags parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Tags(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.Tags getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ActivesOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.Actives) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .sonarqube.ws.rules.ActiveList> actives = 1; - */ - java.util.Map - getActives(); - } - /** - * Protobuf type {@code sonarqube.ws.rules.Actives} - */ - public static final class Actives extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.Actives) - ActivesOrBuilder { - // Use Actives.newBuilder() to construct. - private Actives(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Actives() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Actives( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - actives_ = com.google.protobuf.MapField.newMapField( - ActivesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - actives = input.readMessage( - ActivesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - actives_.getMutableMap().put(actives.getKey(), actives.getValue()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Actives_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetActives(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Actives_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.Actives.class, org.sonarqube.ws.Rules.Actives.Builder.class); - } - - public static final int ACTIVES_FIELD_NUMBER = 1; - private static final class ActivesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.sonarqube.ws.Rules.ActiveList> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Actives_ActivesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.sonarqube.ws.Rules.ActiveList.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.sonarqube.ws.Rules.ActiveList> actives_; - private com.google.protobuf.MapField - internalGetActives() { - if (actives_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ActivesDefaultEntryHolder.defaultEntry); - } - return actives_; - } - /** - * map<string, .sonarqube.ws.rules.ActiveList> actives = 1; - */ - - public java.util.Map getActives() { - return internalGetActives().getMap(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (java.util.Map.Entry entry - : internalGetActives().getMap().entrySet()) { - com.google.protobuf.MapEntry - actives = ActivesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - output.writeMessage(1, actives); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetActives().getMap().entrySet()) { - com.google.protobuf.MapEntry - actives = ActivesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, actives); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.Actives parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.Actives parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Actives parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.Actives parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Actives parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.Actives parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Actives parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.Actives parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Actives parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.Actives parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.Actives prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.Actives} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.Actives) - org.sonarqube.ws.Rules.ActivesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Actives_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetActives(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableActives(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Actives_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.Actives.class, org.sonarqube.ws.Rules.Actives.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.Actives.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - internalGetMutableActives().clear(); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Actives_descriptor; - } - - public org.sonarqube.ws.Rules.Actives getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.Actives.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.Actives build() { - org.sonarqube.ws.Rules.Actives result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.Actives buildPartial() { - org.sonarqube.ws.Rules.Actives result = new org.sonarqube.ws.Rules.Actives(this); - int from_bitField0_ = bitField0_; - result.actives_ = internalGetActives(); - result.actives_.makeImmutable(); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.Actives) { - return mergeFrom((org.sonarqube.ws.Rules.Actives)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.Actives other) { - if (other == org.sonarqube.ws.Rules.Actives.getDefaultInstance()) return this; - internalGetMutableActives().mergeFrom( - other.internalGetActives()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.Actives parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.Actives) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, org.sonarqube.ws.Rules.ActiveList> actives_; - private com.google.protobuf.MapField - internalGetActives() { - if (actives_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ActivesDefaultEntryHolder.defaultEntry); - } - return actives_; - } - private com.google.protobuf.MapField - internalGetMutableActives() { - onChanged();; - if (actives_ == null) { - actives_ = com.google.protobuf.MapField.newMapField( - ActivesDefaultEntryHolder.defaultEntry); - } - if (!actives_.isMutable()) { - actives_ = actives_.copy(); - } - return actives_; - } - /** - * map<string, .sonarqube.ws.rules.ActiveList> actives = 1; - */ - public java.util.Map getActives() { - return internalGetActives().getMap(); - } - /** - * map<string, .sonarqube.ws.rules.ActiveList> actives = 1; - */ - public java.util.Map - getMutableActives() { - return internalGetMutableActives().getMutableMap(); - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.Actives) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.Actives) - private static final org.sonarqube.ws.Rules.Actives DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.Actives(); - } - - public static org.sonarqube.ws.Rules.Actives getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Actives parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Actives(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.Actives getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ActiveListOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.ActiveList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - java.util.List - getActiveListList(); - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - org.sonarqube.ws.Rules.Active getActiveList(int index); - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - int getActiveListCount(); - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - java.util.List - getActiveListOrBuilderList(); - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - org.sonarqube.ws.Rules.ActiveOrBuilder getActiveListOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.rules.ActiveList} - */ - public static final class ActiveList extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.ActiveList) - ActiveListOrBuilder { - // Use ActiveList.newBuilder() to construct. - private ActiveList(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ActiveList() { - activeList_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ActiveList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - activeList_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - activeList_.add(input.readMessage(org.sonarqube.ws.Rules.Active.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - activeList_ = java.util.Collections.unmodifiableList(activeList_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ActiveList_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ActiveList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.ActiveList.class, org.sonarqube.ws.Rules.ActiveList.Builder.class); - } - - public static final int ACTIVELIST_FIELD_NUMBER = 1; - private java.util.List activeList_; - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public java.util.List getActiveListList() { - return activeList_; - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public java.util.List - getActiveListOrBuilderList() { - return activeList_; - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public int getActiveListCount() { - return activeList_.size(); - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public org.sonarqube.ws.Rules.Active getActiveList(int index) { - return activeList_.get(index); - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public org.sonarqube.ws.Rules.ActiveOrBuilder getActiveListOrBuilder( - int index) { - return activeList_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < activeList_.size(); i++) { - output.writeMessage(1, activeList_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < activeList_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, activeList_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.ActiveList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.ActiveList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.ActiveList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.ActiveList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.ActiveList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.ActiveList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.ActiveList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.ActiveList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.ActiveList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.ActiveList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.ActiveList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.ActiveList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.ActiveList) - org.sonarqube.ws.Rules.ActiveListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ActiveList_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ActiveList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.ActiveList.class, org.sonarqube.ws.Rules.ActiveList.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.ActiveList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getActiveListFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (activeListBuilder_ == null) { - activeList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - activeListBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ActiveList_descriptor; - } - - public org.sonarqube.ws.Rules.ActiveList getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.ActiveList.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.ActiveList build() { - org.sonarqube.ws.Rules.ActiveList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.ActiveList buildPartial() { - org.sonarqube.ws.Rules.ActiveList result = new org.sonarqube.ws.Rules.ActiveList(this); - int from_bitField0_ = bitField0_; - if (activeListBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - activeList_ = java.util.Collections.unmodifiableList(activeList_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.activeList_ = activeList_; - } else { - result.activeList_ = activeListBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.ActiveList) { - return mergeFrom((org.sonarqube.ws.Rules.ActiveList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.ActiveList other) { - if (other == org.sonarqube.ws.Rules.ActiveList.getDefaultInstance()) return this; - if (activeListBuilder_ == null) { - if (!other.activeList_.isEmpty()) { - if (activeList_.isEmpty()) { - activeList_ = other.activeList_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureActiveListIsMutable(); - activeList_.addAll(other.activeList_); - } - onChanged(); - } - } else { - if (!other.activeList_.isEmpty()) { - if (activeListBuilder_.isEmpty()) { - activeListBuilder_.dispose(); - activeListBuilder_ = null; - activeList_ = other.activeList_; - bitField0_ = (bitField0_ & ~0x00000001); - activeListBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getActiveListFieldBuilder() : null; - } else { - activeListBuilder_.addAllMessages(other.activeList_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.ActiveList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.ActiveList) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List activeList_ = - java.util.Collections.emptyList(); - private void ensureActiveListIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - activeList_ = new java.util.ArrayList(activeList_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.Active, org.sonarqube.ws.Rules.Active.Builder, org.sonarqube.ws.Rules.ActiveOrBuilder> activeListBuilder_; - - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public java.util.List getActiveListList() { - if (activeListBuilder_ == null) { - return java.util.Collections.unmodifiableList(activeList_); - } else { - return activeListBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public int getActiveListCount() { - if (activeListBuilder_ == null) { - return activeList_.size(); - } else { - return activeListBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public org.sonarqube.ws.Rules.Active getActiveList(int index) { - if (activeListBuilder_ == null) { - return activeList_.get(index); - } else { - return activeListBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public Builder setActiveList( - int index, org.sonarqube.ws.Rules.Active value) { - if (activeListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActiveListIsMutable(); - activeList_.set(index, value); - onChanged(); - } else { - activeListBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public Builder setActiveList( - int index, org.sonarqube.ws.Rules.Active.Builder builderForValue) { - if (activeListBuilder_ == null) { - ensureActiveListIsMutable(); - activeList_.set(index, builderForValue.build()); - onChanged(); - } else { - activeListBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public Builder addActiveList(org.sonarqube.ws.Rules.Active value) { - if (activeListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActiveListIsMutable(); - activeList_.add(value); - onChanged(); - } else { - activeListBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public Builder addActiveList( - int index, org.sonarqube.ws.Rules.Active value) { - if (activeListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActiveListIsMutable(); - activeList_.add(index, value); - onChanged(); - } else { - activeListBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public Builder addActiveList( - org.sonarqube.ws.Rules.Active.Builder builderForValue) { - if (activeListBuilder_ == null) { - ensureActiveListIsMutable(); - activeList_.add(builderForValue.build()); - onChanged(); - } else { - activeListBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public Builder addActiveList( - int index, org.sonarqube.ws.Rules.Active.Builder builderForValue) { - if (activeListBuilder_ == null) { - ensureActiveListIsMutable(); - activeList_.add(index, builderForValue.build()); - onChanged(); - } else { - activeListBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public Builder addAllActiveList( - java.lang.Iterable values) { - if (activeListBuilder_ == null) { - ensureActiveListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, activeList_); - onChanged(); - } else { - activeListBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public Builder clearActiveList() { - if (activeListBuilder_ == null) { - activeList_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - activeListBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public Builder removeActiveList(int index) { - if (activeListBuilder_ == null) { - ensureActiveListIsMutable(); - activeList_.remove(index); - onChanged(); - } else { - activeListBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public org.sonarqube.ws.Rules.Active.Builder getActiveListBuilder( - int index) { - return getActiveListFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public org.sonarqube.ws.Rules.ActiveOrBuilder getActiveListOrBuilder( - int index) { - if (activeListBuilder_ == null) { - return activeList_.get(index); } else { - return activeListBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public java.util.List - getActiveListOrBuilderList() { - if (activeListBuilder_ != null) { - return activeListBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(activeList_); - } - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public org.sonarqube.ws.Rules.Active.Builder addActiveListBuilder() { - return getActiveListFieldBuilder().addBuilder( - org.sonarqube.ws.Rules.Active.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public org.sonarqube.ws.Rules.Active.Builder addActiveListBuilder( - int index) { - return getActiveListFieldBuilder().addBuilder( - index, org.sonarqube.ws.Rules.Active.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.rules.Active activeList = 1; - */ - public java.util.List - getActiveListBuilderList() { - return getActiveListFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.Active, org.sonarqube.ws.Rules.Active.Builder, org.sonarqube.ws.Rules.ActiveOrBuilder> - getActiveListFieldBuilder() { - if (activeListBuilder_ == null) { - activeListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.Active, org.sonarqube.ws.Rules.Active.Builder, org.sonarqube.ws.Rules.ActiveOrBuilder>( - activeList_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - activeList_ = null; - } - return activeListBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.ActiveList) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.ActiveList) - private static final org.sonarqube.ws.Rules.ActiveList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.ActiveList(); - } - - public static org.sonarqube.ws.Rules.ActiveList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ActiveList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ActiveList(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.ActiveList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ActiveOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.Active) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string qProfile = 1; - */ - boolean hasQProfile(); - /** - * optional string qProfile = 1; - */ - java.lang.String getQProfile(); - /** - * optional string qProfile = 1; - */ - com.google.protobuf.ByteString - getQProfileBytes(); - - /** - * optional string inherit = 2; - */ - boolean hasInherit(); - /** - * optional string inherit = 2; - */ - java.lang.String getInherit(); - /** - * optional string inherit = 2; - */ - com.google.protobuf.ByteString - getInheritBytes(); - - /** - * optional string severity = 3; - */ - boolean hasSeverity(); - /** - * optional string severity = 3; - */ - java.lang.String getSeverity(); - /** - * optional string severity = 3; - */ - com.google.protobuf.ByteString - getSeverityBytes(); - - /** - * optional string parent = 4; - */ - boolean hasParent(); - /** - * optional string parent = 4; - */ - java.lang.String getParent(); - /** - * optional string parent = 4; - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - java.util.List - getParamsList(); - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - org.sonarqube.ws.Rules.Active.Param getParams(int index); - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - int getParamsCount(); - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - java.util.List - getParamsOrBuilderList(); - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - org.sonarqube.ws.Rules.Active.ParamOrBuilder getParamsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.rules.Active} - */ - public static final class Active extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.Active) - ActiveOrBuilder { - // Use Active.newBuilder() to construct. - private Active(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Active() { - qProfile_ = ""; - inherit_ = ""; - severity_ = ""; - parent_ = ""; - params_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Active( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - qProfile_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - inherit_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - severity_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - parent_ = bs; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - params_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - params_.add(input.readMessage(org.sonarqube.ws.Rules.Active.Param.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - params_ = java.util.Collections.unmodifiableList(params_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Active_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Active_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.Active.class, org.sonarqube.ws.Rules.Active.Builder.class); - } - - public interface ParamOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.Active.Param) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string key = 1; - */ - boolean hasKey(); - /** - * optional string key = 1; - */ - java.lang.String getKey(); - /** - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string value = 2; - */ - boolean hasValue(); - /** - * optional string value = 2; - */ - java.lang.String getValue(); - /** - * optional string value = 2; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.rules.Active.Param} - */ - public static final class Param extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.Active.Param) - ParamOrBuilder { - // Use Param.newBuilder() to construct. - private Param(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Param() { - key_ = ""; - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Param( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - value_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Active_Param_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Active_Param_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.Active.Param.class, org.sonarqube.ws.Rules.Active.Param.Builder.class); - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - * optional string value = 2; - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - value_ = s; - } - return s; - } - } - /** - * optional string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getValueBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getValueBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.Active.Param parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.Active.Param parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Active.Param parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.Active.Param parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Active.Param parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.Active.Param parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Active.Param parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.Active.Param parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Active.Param parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.Active.Param parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.Active.Param prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.Active.Param} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.Active.Param) - org.sonarqube.ws.Rules.Active.ParamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Active_Param_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Active_Param_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.Active.Param.class, org.sonarqube.ws.Rules.Active.Param.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.Active.Param.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - value_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Active_Param_descriptor; - } - - public org.sonarqube.ws.Rules.Active.Param getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.Active.Param.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.Active.Param build() { - org.sonarqube.ws.Rules.Active.Param result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.Active.Param buildPartial() { - org.sonarqube.ws.Rules.Active.Param result = new org.sonarqube.ws.Rules.Active.Param(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.value_ = value_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.Active.Param) { - return mergeFrom((org.sonarqube.ws.Rules.Active.Param)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.Active.Param other) { - if (other == org.sonarqube.ws.Rules.Active.Param.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasValue()) { - bitField0_ |= 0x00000002; - value_ = other.value_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.Active.Param parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.Active.Param) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - * optional string value = 2; - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - value_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string value = 2; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - value_ = value; - onChanged(); - return this; - } - /** - * optional string value = 2; - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000002); - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * optional string value = 2; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - value_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.Active.Param) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.Active.Param) - private static final org.sonarqube.ws.Rules.Active.Param DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.Active.Param(); - } - - public static org.sonarqube.ws.Rules.Active.Param getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Param parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Param(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.Active.Param getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int QPROFILE_FIELD_NUMBER = 1; - private volatile java.lang.Object qProfile_; - /** - * optional string qProfile = 1; - */ - public boolean hasQProfile() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string qProfile = 1; - */ - public java.lang.String getQProfile() { - java.lang.Object ref = qProfile_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - qProfile_ = s; - } - return s; - } - } - /** - * optional string qProfile = 1; - */ - public com.google.protobuf.ByteString - getQProfileBytes() { - java.lang.Object ref = qProfile_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - qProfile_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INHERIT_FIELD_NUMBER = 2; - private volatile java.lang.Object inherit_; - /** - * optional string inherit = 2; - */ - public boolean hasInherit() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string inherit = 2; - */ - public java.lang.String getInherit() { - java.lang.Object ref = inherit_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - inherit_ = s; - } - return s; - } - } - /** - * optional string inherit = 2; - */ - public com.google.protobuf.ByteString - getInheritBytes() { - java.lang.Object ref = inherit_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inherit_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SEVERITY_FIELD_NUMBER = 3; - private volatile java.lang.Object severity_; - /** - * optional string severity = 3; - */ - public boolean hasSeverity() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string severity = 3; - */ - public java.lang.String getSeverity() { - java.lang.Object ref = severity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - severity_ = s; - } - return s; - } - } - /** - * optional string severity = 3; - */ - public com.google.protobuf.ByteString - getSeverityBytes() { - java.lang.Object ref = severity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - severity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_FIELD_NUMBER = 4; - private volatile java.lang.Object parent_; - /** - * optional string parent = 4; - */ - public boolean hasParent() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string parent = 4; - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - parent_ = s; - } - return s; - } - } - /** - * optional string parent = 4; - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARAMS_FIELD_NUMBER = 5; - private java.util.List params_; - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public java.util.List getParamsList() { - return params_; - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public java.util.List - getParamsOrBuilderList() { - return params_; - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public int getParamsCount() { - return params_.size(); - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public org.sonarqube.ws.Rules.Active.Param getParams(int index) { - return params_.get(index); - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public org.sonarqube.ws.Rules.Active.ParamOrBuilder getParamsOrBuilder( - int index) { - return params_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getQProfileBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getInheritBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getSeverityBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getParentBytes()); - } - for (int i = 0; i < params_.size(); i++) { - output.writeMessage(5, params_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getQProfileBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getInheritBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getSeverityBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getParentBytes()); - } - for (int i = 0; i < params_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, params_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.Active parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.Active parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Active parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.Active parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Active parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.Active parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Active parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.Active parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.Active parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.Active parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.Active prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.Active} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.Active) - org.sonarqube.ws.Rules.ActiveOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Active_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Active_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.Active.class, org.sonarqube.ws.Rules.Active.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.Active.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getParamsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - qProfile_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - inherit_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - severity_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - parent_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - if (paramsBuilder_ == null) { - params_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - paramsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_Active_descriptor; - } - - public org.sonarqube.ws.Rules.Active getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.Active.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.Active build() { - org.sonarqube.ws.Rules.Active result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.Active buildPartial() { - org.sonarqube.ws.Rules.Active result = new org.sonarqube.ws.Rules.Active(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.qProfile_ = qProfile_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.inherit_ = inherit_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.severity_ = severity_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.parent_ = parent_; - if (paramsBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010)) { - params_ = java.util.Collections.unmodifiableList(params_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.params_ = params_; - } else { - result.params_ = paramsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.Active) { - return mergeFrom((org.sonarqube.ws.Rules.Active)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.Active other) { - if (other == org.sonarqube.ws.Rules.Active.getDefaultInstance()) return this; - if (other.hasQProfile()) { - bitField0_ |= 0x00000001; - qProfile_ = other.qProfile_; - onChanged(); - } - if (other.hasInherit()) { - bitField0_ |= 0x00000002; - inherit_ = other.inherit_; - onChanged(); - } - if (other.hasSeverity()) { - bitField0_ |= 0x00000004; - severity_ = other.severity_; - onChanged(); - } - if (other.hasParent()) { - bitField0_ |= 0x00000008; - parent_ = other.parent_; - onChanged(); - } - if (paramsBuilder_ == null) { - if (!other.params_.isEmpty()) { - if (params_.isEmpty()) { - params_ = other.params_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureParamsIsMutable(); - params_.addAll(other.params_); - } - onChanged(); - } - } else { - if (!other.params_.isEmpty()) { - if (paramsBuilder_.isEmpty()) { - paramsBuilder_.dispose(); - paramsBuilder_ = null; - params_ = other.params_; - bitField0_ = (bitField0_ & ~0x00000010); - paramsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getParamsFieldBuilder() : null; - } else { - paramsBuilder_.addAllMessages(other.params_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.Active parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.Active) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object qProfile_ = ""; - /** - * optional string qProfile = 1; - */ - public boolean hasQProfile() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string qProfile = 1; - */ - public java.lang.String getQProfile() { - java.lang.Object ref = qProfile_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - qProfile_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string qProfile = 1; - */ - public com.google.protobuf.ByteString - getQProfileBytes() { - java.lang.Object ref = qProfile_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - qProfile_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string qProfile = 1; - */ - public Builder setQProfile( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - qProfile_ = value; - onChanged(); - return this; - } - /** - * optional string qProfile = 1; - */ - public Builder clearQProfile() { - bitField0_ = (bitField0_ & ~0x00000001); - qProfile_ = getDefaultInstance().getQProfile(); - onChanged(); - return this; - } - /** - * optional string qProfile = 1; - */ - public Builder setQProfileBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - qProfile_ = value; - onChanged(); - return this; - } - - private java.lang.Object inherit_ = ""; - /** - * optional string inherit = 2; - */ - public boolean hasInherit() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string inherit = 2; - */ - public java.lang.String getInherit() { - java.lang.Object ref = inherit_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - inherit_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string inherit = 2; - */ - public com.google.protobuf.ByteString - getInheritBytes() { - java.lang.Object ref = inherit_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inherit_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string inherit = 2; - */ - public Builder setInherit( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - inherit_ = value; - onChanged(); - return this; - } - /** - * optional string inherit = 2; - */ - public Builder clearInherit() { - bitField0_ = (bitField0_ & ~0x00000002); - inherit_ = getDefaultInstance().getInherit(); - onChanged(); - return this; - } - /** - * optional string inherit = 2; - */ - public Builder setInheritBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - inherit_ = value; - onChanged(); - return this; - } - - private java.lang.Object severity_ = ""; - /** - * optional string severity = 3; - */ - public boolean hasSeverity() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string severity = 3; - */ - public java.lang.String getSeverity() { - java.lang.Object ref = severity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - severity_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string severity = 3; - */ - public com.google.protobuf.ByteString - getSeverityBytes() { - java.lang.Object ref = severity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - severity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string severity = 3; - */ - public Builder setSeverity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - severity_ = value; - onChanged(); - return this; - } - /** - * optional string severity = 3; - */ - public Builder clearSeverity() { - bitField0_ = (bitField0_ & ~0x00000004); - severity_ = getDefaultInstance().getSeverity(); - onChanged(); - return this; - } - /** - * optional string severity = 3; - */ - public Builder setSeverityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - severity_ = value; - onChanged(); - return this; - } - - private java.lang.Object parent_ = ""; - /** - * optional string parent = 4; - */ - public boolean hasParent() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string parent = 4; - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - parent_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string parent = 4; - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string parent = 4; - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - parent_ = value; - onChanged(); - return this; - } - /** - * optional string parent = 4; - */ - public Builder clearParent() { - bitField0_ = (bitField0_ & ~0x00000008); - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * optional string parent = 4; - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - parent_ = value; - onChanged(); - return this; - } - - private java.util.List params_ = - java.util.Collections.emptyList(); - private void ensureParamsIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - params_ = new java.util.ArrayList(params_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.Active.Param, org.sonarqube.ws.Rules.Active.Param.Builder, org.sonarqube.ws.Rules.Active.ParamOrBuilder> paramsBuilder_; - - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public java.util.List getParamsList() { - if (paramsBuilder_ == null) { - return java.util.Collections.unmodifiableList(params_); - } else { - return paramsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public int getParamsCount() { - if (paramsBuilder_ == null) { - return params_.size(); - } else { - return paramsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public org.sonarqube.ws.Rules.Active.Param getParams(int index) { - if (paramsBuilder_ == null) { - return params_.get(index); - } else { - return paramsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public Builder setParams( - int index, org.sonarqube.ws.Rules.Active.Param value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParamsIsMutable(); - params_.set(index, value); - onChanged(); - } else { - paramsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public Builder setParams( - int index, org.sonarqube.ws.Rules.Active.Param.Builder builderForValue) { - if (paramsBuilder_ == null) { - ensureParamsIsMutable(); - params_.set(index, builderForValue.build()); - onChanged(); - } else { - paramsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public Builder addParams(org.sonarqube.ws.Rules.Active.Param value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParamsIsMutable(); - params_.add(value); - onChanged(); - } else { - paramsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public Builder addParams( - int index, org.sonarqube.ws.Rules.Active.Param value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParamsIsMutable(); - params_.add(index, value); - onChanged(); - } else { - paramsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public Builder addParams( - org.sonarqube.ws.Rules.Active.Param.Builder builderForValue) { - if (paramsBuilder_ == null) { - ensureParamsIsMutable(); - params_.add(builderForValue.build()); - onChanged(); - } else { - paramsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public Builder addParams( - int index, org.sonarqube.ws.Rules.Active.Param.Builder builderForValue) { - if (paramsBuilder_ == null) { - ensureParamsIsMutable(); - params_.add(index, builderForValue.build()); - onChanged(); - } else { - paramsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public Builder addAllParams( - java.lang.Iterable values) { - if (paramsBuilder_ == null) { - ensureParamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, params_); - onChanged(); - } else { - paramsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public Builder clearParams() { - if (paramsBuilder_ == null) { - params_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - paramsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public Builder removeParams(int index) { - if (paramsBuilder_ == null) { - ensureParamsIsMutable(); - params_.remove(index); - onChanged(); - } else { - paramsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public org.sonarqube.ws.Rules.Active.Param.Builder getParamsBuilder( - int index) { - return getParamsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public org.sonarqube.ws.Rules.Active.ParamOrBuilder getParamsOrBuilder( - int index) { - if (paramsBuilder_ == null) { - return params_.get(index); } else { - return paramsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public java.util.List - getParamsOrBuilderList() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(params_); - } - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public org.sonarqube.ws.Rules.Active.Param.Builder addParamsBuilder() { - return getParamsFieldBuilder().addBuilder( - org.sonarqube.ws.Rules.Active.Param.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public org.sonarqube.ws.Rules.Active.Param.Builder addParamsBuilder( - int index) { - return getParamsFieldBuilder().addBuilder( - index, org.sonarqube.ws.Rules.Active.Param.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.rules.Active.Param params = 5; - */ - public java.util.List - getParamsBuilderList() { - return getParamsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.Active.Param, org.sonarqube.ws.Rules.Active.Param.Builder, org.sonarqube.ws.Rules.Active.ParamOrBuilder> - getParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.Rules.Active.Param, org.sonarqube.ws.Rules.Active.Param.Builder, org.sonarqube.ws.Rules.Active.ParamOrBuilder>( - params_, - ((bitField0_ & 0x00000010) == 0x00000010), - getParentForChildren(), - isClean()); - params_ = null; - } - return paramsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.Active) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.Active) - private static final org.sonarqube.ws.Rules.Active DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.Active(); - } - - public static org.sonarqube.ws.Rules.Active getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Active parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Active(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.Active getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface QProfilesOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.QProfiles) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .sonarqube.ws.rules.QProfile> qProfiles = 1; - */ - java.util.Map - getQProfiles(); - } - /** - * Protobuf type {@code sonarqube.ws.rules.QProfiles} - */ - public static final class QProfiles extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.QProfiles) - QProfilesOrBuilder { - // Use QProfiles.newBuilder() to construct. - private QProfiles(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private QProfiles() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QProfiles( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - qProfiles_ = com.google.protobuf.MapField.newMapField( - QProfilesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - qProfiles = input.readMessage( - QProfilesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - qProfiles_.getMutableMap().put(qProfiles.getKey(), qProfiles.getValue()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_QProfiles_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetQProfiles(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_QProfiles_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.QProfiles.class, org.sonarqube.ws.Rules.QProfiles.Builder.class); - } - - public static final int QPROFILES_FIELD_NUMBER = 1; - private static final class QProfilesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.sonarqube.ws.Rules.QProfile> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_QProfiles_QProfilesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.sonarqube.ws.Rules.QProfile.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.sonarqube.ws.Rules.QProfile> qProfiles_; - private com.google.protobuf.MapField - internalGetQProfiles() { - if (qProfiles_ == null) { - return com.google.protobuf.MapField.emptyMapField( - QProfilesDefaultEntryHolder.defaultEntry); - } - return qProfiles_; - } - /** - * map<string, .sonarqube.ws.rules.QProfile> qProfiles = 1; - */ - - public java.util.Map getQProfiles() { - return internalGetQProfiles().getMap(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (java.util.Map.Entry entry - : internalGetQProfiles().getMap().entrySet()) { - com.google.protobuf.MapEntry - qProfiles = QProfilesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - output.writeMessage(1, qProfiles); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetQProfiles().getMap().entrySet()) { - com.google.protobuf.MapEntry - qProfiles = QProfilesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, qProfiles); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.QProfiles parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.QProfiles parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.QProfiles parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.QProfiles parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.QProfiles parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.QProfiles parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.QProfiles parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.QProfiles parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.QProfiles parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.QProfiles parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.QProfiles prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.QProfiles} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.QProfiles) - org.sonarqube.ws.Rules.QProfilesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_QProfiles_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetQProfiles(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableQProfiles(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_QProfiles_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.QProfiles.class, org.sonarqube.ws.Rules.QProfiles.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.QProfiles.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - internalGetMutableQProfiles().clear(); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_QProfiles_descriptor; - } - - public org.sonarqube.ws.Rules.QProfiles getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.QProfiles.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.QProfiles build() { - org.sonarqube.ws.Rules.QProfiles result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.QProfiles buildPartial() { - org.sonarqube.ws.Rules.QProfiles result = new org.sonarqube.ws.Rules.QProfiles(this); - int from_bitField0_ = bitField0_; - result.qProfiles_ = internalGetQProfiles(); - result.qProfiles_.makeImmutable(); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.QProfiles) { - return mergeFrom((org.sonarqube.ws.Rules.QProfiles)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.QProfiles other) { - if (other == org.sonarqube.ws.Rules.QProfiles.getDefaultInstance()) return this; - internalGetMutableQProfiles().mergeFrom( - other.internalGetQProfiles()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.QProfiles parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.QProfiles) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, org.sonarqube.ws.Rules.QProfile> qProfiles_; - private com.google.protobuf.MapField - internalGetQProfiles() { - if (qProfiles_ == null) { - return com.google.protobuf.MapField.emptyMapField( - QProfilesDefaultEntryHolder.defaultEntry); - } - return qProfiles_; - } - private com.google.protobuf.MapField - internalGetMutableQProfiles() { - onChanged();; - if (qProfiles_ == null) { - qProfiles_ = com.google.protobuf.MapField.newMapField( - QProfilesDefaultEntryHolder.defaultEntry); - } - if (!qProfiles_.isMutable()) { - qProfiles_ = qProfiles_.copy(); - } - return qProfiles_; - } - /** - * map<string, .sonarqube.ws.rules.QProfile> qProfiles = 1; - */ - public java.util.Map getQProfiles() { - return internalGetQProfiles().getMap(); - } - /** - * map<string, .sonarqube.ws.rules.QProfile> qProfiles = 1; - */ - public java.util.Map - getMutableQProfiles() { - return internalGetMutableQProfiles().getMutableMap(); - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.QProfiles) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.QProfiles) - private static final org.sonarqube.ws.Rules.QProfiles DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.QProfiles(); - } - - public static org.sonarqube.ws.Rules.QProfiles getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public QProfiles parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new QProfiles(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.QProfiles getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface QProfileOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.QProfile) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string name = 1; - */ - boolean hasName(); - /** - * optional string name = 1; - */ - java.lang.String getName(); - /** - * optional string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string lang = 2; - */ - boolean hasLang(); - /** - * optional string lang = 2; - */ - java.lang.String getLang(); - /** - * optional string lang = 2; - */ - com.google.protobuf.ByteString - getLangBytes(); - - /** - * optional string langName = 3; - */ - boolean hasLangName(); - /** - * optional string langName = 3; - */ - java.lang.String getLangName(); - /** - * optional string langName = 3; - */ - com.google.protobuf.ByteString - getLangNameBytes(); - - /** - * optional string parent = 4; - */ - boolean hasParent(); - /** - * optional string parent = 4; - */ - java.lang.String getParent(); - /** - * optional string parent = 4; - */ - com.google.protobuf.ByteString - getParentBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.rules.QProfile} - */ - public static final class QProfile extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.QProfile) - QProfileOrBuilder { - // Use QProfile.newBuilder() to construct. - private QProfile(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private QProfile() { - name_ = ""; - lang_ = ""; - langName_ = ""; - parent_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QProfile( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - name_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - lang_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - langName_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - parent_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_QProfile_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_QProfile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.QProfile.class, org.sonarqube.ws.Rules.QProfile.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * optional string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LANG_FIELD_NUMBER = 2; - private volatile java.lang.Object lang_; - /** - * optional string lang = 2; - */ - public boolean hasLang() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string lang = 2; - */ - public java.lang.String getLang() { - java.lang.Object ref = lang_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - lang_ = s; - } - return s; - } - } - /** - * optional string lang = 2; - */ - public com.google.protobuf.ByteString - getLangBytes() { - java.lang.Object ref = lang_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - lang_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LANGNAME_FIELD_NUMBER = 3; - private volatile java.lang.Object langName_; - /** - * optional string langName = 3; - */ - public boolean hasLangName() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string langName = 3; - */ - public java.lang.String getLangName() { - java.lang.Object ref = langName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - langName_ = s; - } - return s; - } - } - /** - * optional string langName = 3; - */ - public com.google.protobuf.ByteString - getLangNameBytes() { - java.lang.Object ref = langName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - langName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_FIELD_NUMBER = 4; - private volatile java.lang.Object parent_; - /** - * optional string parent = 4; - */ - public boolean hasParent() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string parent = 4; - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - parent_ = s; - } - return s; - } - } - /** - * optional string parent = 4; - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getLangBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getLangNameBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getParentBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getNameBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getLangBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getLangNameBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getParentBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.Rules.QProfile parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.QProfile parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.QProfile parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.Rules.QProfile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.Rules.QProfile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.QProfile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.QProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.Rules.QProfile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.Rules.QProfile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.Rules.QProfile parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.Rules.QProfile prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.rules.QProfile} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.QProfile) - org.sonarqube.ws.Rules.QProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_QProfile_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_QProfile_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.Rules.QProfile.class, org.sonarqube.ws.Rules.QProfile.Builder.class); - } - - // Construct using org.sonarqube.ws.Rules.QProfile.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - lang_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - langName_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - parent_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_QProfile_descriptor; - } - - public org.sonarqube.ws.Rules.QProfile getDefaultInstanceForType() { - return org.sonarqube.ws.Rules.QProfile.getDefaultInstance(); - } - - public org.sonarqube.ws.Rules.QProfile build() { - org.sonarqube.ws.Rules.QProfile result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.Rules.QProfile buildPartial() { - org.sonarqube.ws.Rules.QProfile result = new org.sonarqube.ws.Rules.QProfile(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.lang_ = lang_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.langName_ = langName_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.parent_ = parent_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.Rules.QProfile) { - return mergeFrom((org.sonarqube.ws.Rules.QProfile)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.Rules.QProfile other) { - if (other == org.sonarqube.ws.Rules.QProfile.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasLang()) { - bitField0_ |= 0x00000002; - lang_ = other.lang_; - onChanged(); - } - if (other.hasLangName()) { - bitField0_ |= 0x00000004; - langName_ = other.langName_; - onChanged(); - } - if (other.hasParent()) { - bitField0_ |= 0x00000008; - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.Rules.QProfile parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.Rules.QProfile) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * optional string name = 1; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 1; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object lang_ = ""; - /** - * optional string lang = 2; - */ - public boolean hasLang() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string lang = 2; - */ - public java.lang.String getLang() { - java.lang.Object ref = lang_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - lang_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string lang = 2; - */ - public com.google.protobuf.ByteString - getLangBytes() { - java.lang.Object ref = lang_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - lang_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string lang = 2; - */ - public Builder setLang( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - lang_ = value; - onChanged(); - return this; - } - /** - * optional string lang = 2; - */ - public Builder clearLang() { - bitField0_ = (bitField0_ & ~0x00000002); - lang_ = getDefaultInstance().getLang(); - onChanged(); - return this; - } - /** - * optional string lang = 2; - */ - public Builder setLangBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - lang_ = value; - onChanged(); - return this; - } - - private java.lang.Object langName_ = ""; - /** - * optional string langName = 3; - */ - public boolean hasLangName() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string langName = 3; - */ - public java.lang.String getLangName() { - java.lang.Object ref = langName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - langName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string langName = 3; - */ - public com.google.protobuf.ByteString - getLangNameBytes() { - java.lang.Object ref = langName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - langName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string langName = 3; - */ - public Builder setLangName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - langName_ = value; - onChanged(); - return this; - } - /** - * optional string langName = 3; - */ - public Builder clearLangName() { - bitField0_ = (bitField0_ & ~0x00000004); - langName_ = getDefaultInstance().getLangName(); - onChanged(); - return this; - } - /** - * optional string langName = 3; - */ - public Builder setLangNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - langName_ = value; - onChanged(); - return this; - } - - private java.lang.Object parent_ = ""; - /** - * optional string parent = 4; - */ - public boolean hasParent() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string parent = 4; - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - parent_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string parent = 4; - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string parent = 4; - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - parent_ = value; - onChanged(); - return this; - } - /** - * optional string parent = 4; - */ - public Builder clearParent() { - bitField0_ = (bitField0_ & ~0x00000008); - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * optional string parent = 4; - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - parent_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.QProfile) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.QProfile) - private static final org.sonarqube.ws.Rules.QProfile DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.QProfile(); - } - - public static org.sonarqube.ws.Rules.QProfile getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public QProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new QProfile(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.Rules.QProfile getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_ListResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_ListResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_ListResponse_Rule_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_ListResponse_Rule_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_SearchResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_SearchResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_ShowResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_ShowResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_CreateResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_CreateResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_UpdateResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_UpdateResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_Rule_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_Rule_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_Rule_Params_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_Rule_Params_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_Rule_Param_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_Rule_Param_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_SysTags_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_SysTags_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_Tags_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_Tags_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_Actives_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_Actives_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_Actives_ActivesEntry_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_Actives_ActivesEntry_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_ActiveList_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_ActiveList_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_Active_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_Active_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_Active_Param_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_Active_Param_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_QProfiles_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_QProfiles_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_QProfiles_QProfilesEntry_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_QProfiles_QProfilesEntry_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_QProfile_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_rules_QProfile_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\016ws-rules.proto\022\022sonarqube.ws.rules\032\020ws" + - "-commons.proto\"\221\001\n\014ListResponse\0224\n\005rules" + - "\030\001 \003(\0132%.sonarqube.ws.rules.ListResponse" + - ".Rule\032K\n\004Rule\022\022\n\nrepository\030\001 \001(\t\022\013\n\003key" + - "\030\002 \001(\t\022\024\n\014internal_key\030\003 \001(\t\022\014\n\004name\030\004 \001" + - "(\t\"\355\001\n\016SearchResponse\022\r\n\005total\030\001 \001(\003\022\t\n\001" + - "p\030\002 \001(\005\022\n\n\002ps\030\003 \001(\003\022\'\n\005rules\030\004 \003(\0132\030.son" + - "arqube.ws.rules.Rule\022,\n\007actives\030\005 \001(\0132\033." + - "sonarqube.ws.rules.Actives\0220\n\tqProfiles\030" + - "\006 \001(\0132\035.sonarqube.ws.rules.QProfiles\022,\n\006", - "facets\030\007 \001(\0132\034.sonarqube.ws.commons.Face" + - "ts\"c\n\014ShowResponse\022&\n\004rule\030\001 \001(\0132\030.sonar" + - "qube.ws.rules.Rule\022+\n\007actives\030\003 \003(\0132\032.so" + - "narqube.ws.rules.Active\"8\n\016CreateRespons" + - "e\022&\n\004rule\030\001 \001(\0132\030.sonarqube.ws.rules.Rul" + - "e\"8\n\016UpdateResponse\022&\n\004rule\030\001 \001(\0132\030.sona" + - "rqube.ws.rules.Rule\"\260\007\n\004Rule\022\013\n\003key\030\001 \001(" + - "\t\022\014\n\004repo\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\021\n\tcreated" + - "At\030\004 \001(\t\022\020\n\010htmlDesc\030\005 \001(\t\022\020\n\010htmlNote\030\006" + - " \001(\t\022\016\n\006mdDesc\030\007 \001(\t\022\016\n\006mdNote\030\010 \001(\t\022\021\n\t", - "noteLogin\030\t \001(\t\022\020\n\010severity\030\n \001(\t\0220\n\006sta" + - "tus\030\013 \001(\0162 .sonarqube.ws.commons.RuleSta" + - "tus\022\023\n\013internalKey\030\014 \001(\t\022\022\n\nisTemplate\030\r" + - " \001(\010\022\023\n\013templateKey\030\016 \001(\t\022&\n\004tags\030\017 \001(\0132" + - "\030.sonarqube.ws.rules.Tags\022,\n\007sysTags\030\020 \001" + - "(\0132\033.sonarqube.ws.rules.SysTags\022\014\n\004lang\030" + - "\023 \001(\t\022\020\n\010langName\030\024 \001(\t\022/\n\006params\030\025 \001(\0132" + - "\037.sonarqube.ws.rules.Rule.Params\022\027\n\017defa" + - "ultDebtChar\030\027 \001(\t\022\032\n\022defaultDebtSubChar\030" + - "\030 \001(\t\022\020\n\010debtChar\030\031 \001(\t\022\023\n\013debtSubChar\030\032", - " \001(\t\022\024\n\014debtCharName\030\033 \001(\t\022\027\n\017debtSubCha" + - "rName\030\034 \001(\t\022\034\n\024defaultDebtRemFnType\030\035 \001(" + - "\t\022\035\n\025defaultDebtRemFnCoeff\030\036 \001(\t\022\036\n\026defa" + - "ultDebtRemFnOffset\030\037 \001(\t\022\036\n\026effortToFixD" + - "escription\030 \001(\t\022\026\n\016debtOverloaded\030! \001(\010" + - "\022\025\n\rdebtRemFnType\030\" \001(\t\022\026\n\016debtRemFnCoef" + - "f\030# \001(\t\022\027\n\017debtRemFnOffset\030$ \001(\t\0328\n\006Para" + - "ms\022.\n\006params\030\001 \003(\0132\036.sonarqube.ws.rules." + - "Rule.Param\032J\n\005Param\022\013\n\003key\030\001 \001(\t\022\020\n\010html" + - "Desc\030\002 \001(\t\022\024\n\014defaultValue\030\003 \001(\t\022\014\n\004type", - "\030\004 \001(\t\"\032\n\007SysTags\022\017\n\007sysTags\030\001 \003(\t\"\024\n\004Ta" + - "gs\022\014\n\004tags\030\001 \003(\t\"\224\001\n\007Actives\0229\n\007actives\030" + - "\001 \003(\0132(.sonarqube.ws.rules.Actives.Activ" + - "esEntry\032N\n\014ActivesEntry\022\013\n\003key\030\001 \001(\t\022-\n\005" + - "value\030\002 \001(\0132\036.sonarqube.ws.rules.ActiveL" + - "ist:\0028\001\"<\n\nActiveList\022.\n\nactiveList\030\001 \003(" + - "\0132\032.sonarqube.ws.rules.Active\"\244\001\n\006Active" + - "\022\020\n\010qProfile\030\001 \001(\t\022\017\n\007inherit\030\002 \001(\t\022\020\n\010s" + - "everity\030\003 \001(\t\022\016\n\006parent\030\004 \001(\t\0220\n\006params\030" + - "\005 \003(\0132 .sonarqube.ws.rules.Active.Param\032", - "#\n\005Param\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\234\001\n" + - "\tQProfiles\022?\n\tqProfiles\030\001 \003(\0132,.sonarqub" + - "e.ws.rules.QProfiles.QProfilesEntry\032N\n\016Q" + - "ProfilesEntry\022\013\n\003key\030\001 \001(\t\022+\n\005value\030\002 \001(" + - "\0132\034.sonarqube.ws.rules.QProfile:\0028\001\"H\n\010Q" + - "Profile\022\014\n\004name\030\001 \001(\t\022\014\n\004lang\030\002 \001(\t\022\020\n\010l" + - "angName\030\003 \001(\t\022\016\n\006parent\030\004 \001(\tB\033\n\020org.son" + - "arqube.wsB\005RulesH\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.sonarqube.ws.Common.getDescriptor(), - }, assigner); - internal_static_sonarqube_ws_rules_ListResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_sonarqube_ws_rules_ListResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_ListResponse_descriptor, - new java.lang.String[] { "Rules", }); - internal_static_sonarqube_ws_rules_ListResponse_Rule_descriptor = - internal_static_sonarqube_ws_rules_ListResponse_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_rules_ListResponse_Rule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_ListResponse_Rule_descriptor, - new java.lang.String[] { "Repository", "Key", "InternalKey", "Name", }); - internal_static_sonarqube_ws_rules_SearchResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_sonarqube_ws_rules_SearchResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_SearchResponse_descriptor, - new java.lang.String[] { "Total", "P", "Ps", "Rules", "Actives", "QProfiles", "Facets", }); - internal_static_sonarqube_ws_rules_ShowResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_sonarqube_ws_rules_ShowResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_ShowResponse_descriptor, - new java.lang.String[] { "Rule", "Actives", }); - internal_static_sonarqube_ws_rules_CreateResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_sonarqube_ws_rules_CreateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_CreateResponse_descriptor, - new java.lang.String[] { "Rule", }); - internal_static_sonarqube_ws_rules_UpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_sonarqube_ws_rules_UpdateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_UpdateResponse_descriptor, - new java.lang.String[] { "Rule", }); - internal_static_sonarqube_ws_rules_Rule_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_sonarqube_ws_rules_Rule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_Rule_descriptor, - new java.lang.String[] { "Key", "Repo", "Name", "CreatedAt", "HtmlDesc", "HtmlNote", "MdDesc", "MdNote", "NoteLogin", "Severity", "Status", "InternalKey", "IsTemplate", "TemplateKey", "Tags", "SysTags", "Lang", "LangName", "Params", "DefaultDebtChar", "DefaultDebtSubChar", "DebtChar", "DebtSubChar", "DebtCharName", "DebtSubCharName", "DefaultDebtRemFnType", "DefaultDebtRemFnCoeff", "DefaultDebtRemFnOffset", "EffortToFixDescription", "DebtOverloaded", "DebtRemFnType", "DebtRemFnCoeff", "DebtRemFnOffset", }); - internal_static_sonarqube_ws_rules_Rule_Params_descriptor = - internal_static_sonarqube_ws_rules_Rule_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_rules_Rule_Params_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_Rule_Params_descriptor, - new java.lang.String[] { "Params", }); - internal_static_sonarqube_ws_rules_Rule_Param_descriptor = - internal_static_sonarqube_ws_rules_Rule_descriptor.getNestedTypes().get(1); - internal_static_sonarqube_ws_rules_Rule_Param_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_Rule_Param_descriptor, - new java.lang.String[] { "Key", "HtmlDesc", "DefaultValue", "Type", }); - internal_static_sonarqube_ws_rules_SysTags_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_sonarqube_ws_rules_SysTags_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_SysTags_descriptor, - new java.lang.String[] { "SysTags", }); - internal_static_sonarqube_ws_rules_Tags_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_sonarqube_ws_rules_Tags_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_Tags_descriptor, - new java.lang.String[] { "Tags", }); - internal_static_sonarqube_ws_rules_Actives_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_sonarqube_ws_rules_Actives_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_Actives_descriptor, - new java.lang.String[] { "Actives", }); - internal_static_sonarqube_ws_rules_Actives_ActivesEntry_descriptor = - internal_static_sonarqube_ws_rules_Actives_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_rules_Actives_ActivesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_Actives_ActivesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_sonarqube_ws_rules_ActiveList_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_sonarqube_ws_rules_ActiveList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_ActiveList_descriptor, - new java.lang.String[] { "ActiveList", }); - internal_static_sonarqube_ws_rules_Active_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_sonarqube_ws_rules_Active_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_Active_descriptor, - new java.lang.String[] { "QProfile", "Inherit", "Severity", "Parent", "Params", }); - internal_static_sonarqube_ws_rules_Active_Param_descriptor = - internal_static_sonarqube_ws_rules_Active_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_rules_Active_Param_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_Active_Param_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_sonarqube_ws_rules_QProfiles_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_sonarqube_ws_rules_QProfiles_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_QProfiles_descriptor, - new java.lang.String[] { "QProfiles", }); - internal_static_sonarqube_ws_rules_QProfiles_QProfilesEntry_descriptor = - internal_static_sonarqube_ws_rules_QProfiles_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_rules_QProfiles_QProfilesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_QProfiles_QProfilesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_sonarqube_ws_rules_QProfile_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_sonarqube_ws_rules_QProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_QProfile_descriptor, - new java.lang.String[] { "Name", "Lang", "LangName", "Parent", }); - org.sonarqube.ws.Common.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsBatch.java b/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsBatch.java deleted file mode 100644 index 73a996bda27..00000000000 --- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsBatch.java +++ /dev/null @@ -1,2417 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ws-batch.proto - -package org.sonarqube.ws; - -public final class WsBatch { - private WsBatch() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface WsProjectResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.batch.WsProjectResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional int64 timestamp = 1; - */ - boolean hasTimestamp(); - /** - * optional int64 timestamp = 1; - */ - long getTimestamp(); - - /** - * map<string, .sonarqube.ws.batch.WsProjectResponse.Settings> settingsByModule = 2; - */ - java.util.Map - getSettingsByModule(); - - /** - * map<string, .sonarqube.ws.batch.WsProjectResponse.FileDataByPath> fileDataByModuleAndPath = 3; - */ - java.util.Map - getFileDataByModuleAndPath(); - - /** - * optional int64 lastAnalysisDate = 4; - */ - boolean hasLastAnalysisDate(); - /** - * optional int64 lastAnalysisDate = 4; - */ - long getLastAnalysisDate(); - } - /** - * Protobuf type {@code sonarqube.ws.batch.WsProjectResponse} - * - *
-   * WS api/batch/project
-   * 
- */ - public static final class WsProjectResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.batch.WsProjectResponse) - WsProjectResponseOrBuilder { - // Use WsProjectResponse.newBuilder() to construct. - private WsProjectResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsProjectResponse() { - timestamp_ = 0L; - lastAnalysisDate_ = 0L; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsProjectResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - timestamp_ = input.readInt64(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - settingsByModule_ = com.google.protobuf.MapField.newMapField( - SettingsByModuleDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - settingsByModule = input.readMessage( - SettingsByModuleDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - settingsByModule_.getMutableMap().put(settingsByModule.getKey(), settingsByModule.getValue()); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - fileDataByModuleAndPath_ = com.google.protobuf.MapField.newMapField( - FileDataByModuleAndPathDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry - fileDataByModuleAndPath = input.readMessage( - FileDataByModuleAndPathDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - fileDataByModuleAndPath_.getMutableMap().put(fileDataByModuleAndPath.getKey(), fileDataByModuleAndPath.getValue()); - break; - } - case 32: { - bitField0_ |= 0x00000002; - lastAnalysisDate_ = input.readInt64(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetSettingsByModule(); - case 3: - return internalGetFileDataByModuleAndPath(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsBatch.WsProjectResponse.class, org.sonarqube.ws.WsBatch.WsProjectResponse.Builder.class); - } - - public interface SettingsOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.batch.WsProjectResponse.Settings) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, string> settings = 1; - */ - java.util.Map - getSettings(); - } - /** - * Protobuf type {@code sonarqube.ws.batch.WsProjectResponse.Settings} - */ - public static final class Settings extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.batch.WsProjectResponse.Settings) - SettingsOrBuilder { - // Use Settings.newBuilder() to construct. - private Settings(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Settings() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Settings( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - settings_ = com.google.protobuf.MapField.newMapField( - SettingsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - settings = input.readMessage( - SettingsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - settings_.getMutableMap().put(settings.getKey(), settings.getValue()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetSettings(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsBatch.WsProjectResponse.Settings.class, org.sonarqube.ws.WsBatch.WsProjectResponse.Settings.Builder.class); - } - - public static final int SETTINGS_FIELD_NUMBER = 1; - private static final class SettingsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_SettingsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> settings_; - private com.google.protobuf.MapField - internalGetSettings() { - if (settings_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SettingsDefaultEntryHolder.defaultEntry); - } - return settings_; - } - /** - * map<string, string> settings = 1; - */ - - public java.util.Map getSettings() { - return internalGetSettings().getMap(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (java.util.Map.Entry entry - : internalGetSettings().getMap().entrySet()) { - com.google.protobuf.MapEntry - settings = SettingsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - output.writeMessage(1, settings); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetSettings().getMap().entrySet()) { - com.google.protobuf.MapEntry - settings = SettingsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, settings); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsBatch.WsProjectResponse.Settings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.Settings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.Settings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.Settings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.Settings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.Settings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.Settings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.Settings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.Settings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.Settings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsBatch.WsProjectResponse.Settings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.batch.WsProjectResponse.Settings} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.batch.WsProjectResponse.Settings) - org.sonarqube.ws.WsBatch.WsProjectResponse.SettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetSettings(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableSettings(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsBatch.WsProjectResponse.Settings.class, org.sonarqube.ws.WsBatch.WsProjectResponse.Settings.Builder.class); - } - - // Construct using org.sonarqube.ws.WsBatch.WsProjectResponse.Settings.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - internalGetMutableSettings().clear(); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_descriptor; - } - - public org.sonarqube.ws.WsBatch.WsProjectResponse.Settings getDefaultInstanceForType() { - return org.sonarqube.ws.WsBatch.WsProjectResponse.Settings.getDefaultInstance(); - } - - public org.sonarqube.ws.WsBatch.WsProjectResponse.Settings build() { - org.sonarqube.ws.WsBatch.WsProjectResponse.Settings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsBatch.WsProjectResponse.Settings buildPartial() { - org.sonarqube.ws.WsBatch.WsProjectResponse.Settings result = new org.sonarqube.ws.WsBatch.WsProjectResponse.Settings(this); - int from_bitField0_ = bitField0_; - result.settings_ = internalGetSettings(); - result.settings_.makeImmutable(); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsBatch.WsProjectResponse.Settings) { - return mergeFrom((org.sonarqube.ws.WsBatch.WsProjectResponse.Settings)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsBatch.WsProjectResponse.Settings other) { - if (other == org.sonarqube.ws.WsBatch.WsProjectResponse.Settings.getDefaultInstance()) return this; - internalGetMutableSettings().mergeFrom( - other.internalGetSettings()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsBatch.WsProjectResponse.Settings parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsBatch.WsProjectResponse.Settings) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> settings_; - private com.google.protobuf.MapField - internalGetSettings() { - if (settings_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SettingsDefaultEntryHolder.defaultEntry); - } - return settings_; - } - private com.google.protobuf.MapField - internalGetMutableSettings() { - onChanged();; - if (settings_ == null) { - settings_ = com.google.protobuf.MapField.newMapField( - SettingsDefaultEntryHolder.defaultEntry); - } - if (!settings_.isMutable()) { - settings_ = settings_.copy(); - } - return settings_; - } - /** - * map<string, string> settings = 1; - */ - public java.util.Map getSettings() { - return internalGetSettings().getMap(); - } - /** - * map<string, string> settings = 1; - */ - public java.util.Map - getMutableSettings() { - return internalGetMutableSettings().getMutableMap(); - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.batch.WsProjectResponse.Settings) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.batch.WsProjectResponse.Settings) - private static final org.sonarqube.ws.WsBatch.WsProjectResponse.Settings DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsBatch.WsProjectResponse.Settings(); - } - - public static org.sonarqube.ws.WsBatch.WsProjectResponse.Settings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Settings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Settings(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsBatch.WsProjectResponse.Settings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FileDataByPathOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.batch.WsProjectResponse.FileDataByPath) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .sonarqube.ws.batch.WsProjectResponse.FileData> FileDataByPath = 1; - */ - java.util.Map - getFileDataByPath(); - } - /** - * Protobuf type {@code sonarqube.ws.batch.WsProjectResponse.FileDataByPath} - */ - public static final class FileDataByPath extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.batch.WsProjectResponse.FileDataByPath) - FileDataByPathOrBuilder { - // Use FileDataByPath.newBuilder() to construct. - private FileDataByPath(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FileDataByPath() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FileDataByPath( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - fileDataByPath_ = com.google.protobuf.MapField.newMapField( - FileDataByPathDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - fileDataByPath = input.readMessage( - FileDataByPathDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - fileDataByPath_.getMutableMap().put(fileDataByPath.getKey(), fileDataByPath.getValue()); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetFileDataByPath(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath.class, org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath.Builder.class); - } - - public static final int FILEDATABYPATH_FIELD_NUMBER = 1; - private static final class FileDataByPathDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.sonarqube.ws.WsBatch.WsProjectResponse.FileData> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_FileDataByPathEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.sonarqube.ws.WsBatch.WsProjectResponse.FileData.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.sonarqube.ws.WsBatch.WsProjectResponse.FileData> fileDataByPath_; - private com.google.protobuf.MapField - internalGetFileDataByPath() { - if (fileDataByPath_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FileDataByPathDefaultEntryHolder.defaultEntry); - } - return fileDataByPath_; - } - /** - * map<string, .sonarqube.ws.batch.WsProjectResponse.FileData> FileDataByPath = 1; - */ - - public java.util.Map getFileDataByPath() { - return internalGetFileDataByPath().getMap(); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (java.util.Map.Entry entry - : internalGetFileDataByPath().getMap().entrySet()) { - com.google.protobuf.MapEntry - fileDataByPath = FileDataByPathDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - output.writeMessage(1, fileDataByPath); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetFileDataByPath().getMap().entrySet()) { - com.google.protobuf.MapEntry - fileDataByPath = FileDataByPathDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, fileDataByPath); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.batch.WsProjectResponse.FileDataByPath} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.batch.WsProjectResponse.FileDataByPath) - org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPathOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetFileDataByPath(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableFileDataByPath(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath.class, org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath.Builder.class); - } - - // Construct using org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - internalGetMutableFileDataByPath().clear(); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_descriptor; - } - - public org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath getDefaultInstanceForType() { - return org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath.getDefaultInstance(); - } - - public org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath build() { - org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath buildPartial() { - org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath result = new org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath(this); - int from_bitField0_ = bitField0_; - result.fileDataByPath_ = internalGetFileDataByPath(); - result.fileDataByPath_.makeImmutable(); - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath) { - return mergeFrom((org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath other) { - if (other == org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath.getDefaultInstance()) return this; - internalGetMutableFileDataByPath().mergeFrom( - other.internalGetFileDataByPath()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, org.sonarqube.ws.WsBatch.WsProjectResponse.FileData> fileDataByPath_; - private com.google.protobuf.MapField - internalGetFileDataByPath() { - if (fileDataByPath_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FileDataByPathDefaultEntryHolder.defaultEntry); - } - return fileDataByPath_; - } - private com.google.protobuf.MapField - internalGetMutableFileDataByPath() { - onChanged();; - if (fileDataByPath_ == null) { - fileDataByPath_ = com.google.protobuf.MapField.newMapField( - FileDataByPathDefaultEntryHolder.defaultEntry); - } - if (!fileDataByPath_.isMutable()) { - fileDataByPath_ = fileDataByPath_.copy(); - } - return fileDataByPath_; - } - /** - * map<string, .sonarqube.ws.batch.WsProjectResponse.FileData> FileDataByPath = 1; - */ - public java.util.Map getFileDataByPath() { - return internalGetFileDataByPath().getMap(); - } - /** - * map<string, .sonarqube.ws.batch.WsProjectResponse.FileData> FileDataByPath = 1; - */ - public java.util.Map - getMutableFileDataByPath() { - return internalGetMutableFileDataByPath().getMutableMap(); - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.batch.WsProjectResponse.FileDataByPath) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.batch.WsProjectResponse.FileDataByPath) - private static final org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath(); - } - - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public FileDataByPath parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new FileDataByPath(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FileDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.batch.WsProjectResponse.FileData) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string hash = 1; - */ - boolean hasHash(); - /** - * optional string hash = 1; - */ - java.lang.String getHash(); - /** - * optional string hash = 1; - */ - com.google.protobuf.ByteString - getHashBytes(); - - /** - * optional string revision = 2; - */ - boolean hasRevision(); - /** - * optional string revision = 2; - */ - java.lang.String getRevision(); - /** - * optional string revision = 2; - */ - com.google.protobuf.ByteString - getRevisionBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.batch.WsProjectResponse.FileData} - */ - public static final class FileData extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.batch.WsProjectResponse.FileData) - FileDataOrBuilder { - // Use FileData.newBuilder() to construct. - private FileData(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private FileData() { - hash_ = ""; - revision_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FileData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - hash_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - revision_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_FileData_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_FileData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsBatch.WsProjectResponse.FileData.class, org.sonarqube.ws.WsBatch.WsProjectResponse.FileData.Builder.class); - } - - private int bitField0_; - public static final int HASH_FIELD_NUMBER = 1; - private volatile java.lang.Object hash_; - /** - * optional string hash = 1; - */ - public boolean hasHash() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string hash = 1; - */ - public java.lang.String getHash() { - java.lang.Object ref = hash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - hash_ = s; - } - return s; - } - } - /** - * optional string hash = 1; - */ - public com.google.protobuf.ByteString - getHashBytes() { - java.lang.Object ref = hash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REVISION_FIELD_NUMBER = 2; - private volatile java.lang.Object revision_; - /** - * optional string revision = 2; - */ - public boolean hasRevision() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string revision = 2; - */ - public java.lang.String getRevision() { - java.lang.Object ref = revision_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - revision_ = s; - } - return s; - } - } - /** - * optional string revision = 2; - */ - public com.google.protobuf.ByteString - getRevisionBytes() { - java.lang.Object ref = revision_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - revision_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getHashBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getRevisionBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getHashBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getRevisionBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsBatch.WsProjectResponse.FileData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.batch.WsProjectResponse.FileData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.batch.WsProjectResponse.FileData) - org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_FileData_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_FileData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsBatch.WsProjectResponse.FileData.class, org.sonarqube.ws.WsBatch.WsProjectResponse.FileData.Builder.class); - } - - // Construct using org.sonarqube.ws.WsBatch.WsProjectResponse.FileData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - hash_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - revision_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_FileData_descriptor; - } - - public org.sonarqube.ws.WsBatch.WsProjectResponse.FileData getDefaultInstanceForType() { - return org.sonarqube.ws.WsBatch.WsProjectResponse.FileData.getDefaultInstance(); - } - - public org.sonarqube.ws.WsBatch.WsProjectResponse.FileData build() { - org.sonarqube.ws.WsBatch.WsProjectResponse.FileData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsBatch.WsProjectResponse.FileData buildPartial() { - org.sonarqube.ws.WsBatch.WsProjectResponse.FileData result = new org.sonarqube.ws.WsBatch.WsProjectResponse.FileData(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.hash_ = hash_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.revision_ = revision_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsBatch.WsProjectResponse.FileData) { - return mergeFrom((org.sonarqube.ws.WsBatch.WsProjectResponse.FileData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsBatch.WsProjectResponse.FileData other) { - if (other == org.sonarqube.ws.WsBatch.WsProjectResponse.FileData.getDefaultInstance()) return this; - if (other.hasHash()) { - bitField0_ |= 0x00000001; - hash_ = other.hash_; - onChanged(); - } - if (other.hasRevision()) { - bitField0_ |= 0x00000002; - revision_ = other.revision_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsBatch.WsProjectResponse.FileData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsBatch.WsProjectResponse.FileData) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object hash_ = ""; - /** - * optional string hash = 1; - */ - public boolean hasHash() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string hash = 1; - */ - public java.lang.String getHash() { - java.lang.Object ref = hash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - hash_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string hash = 1; - */ - public com.google.protobuf.ByteString - getHashBytes() { - java.lang.Object ref = hash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string hash = 1; - */ - public Builder setHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - hash_ = value; - onChanged(); - return this; - } - /** - * optional string hash = 1; - */ - public Builder clearHash() { - bitField0_ = (bitField0_ & ~0x00000001); - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - /** - * optional string hash = 1; - */ - public Builder setHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - hash_ = value; - onChanged(); - return this; - } - - private java.lang.Object revision_ = ""; - /** - * optional string revision = 2; - */ - public boolean hasRevision() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string revision = 2; - */ - public java.lang.String getRevision() { - java.lang.Object ref = revision_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - revision_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string revision = 2; - */ - public com.google.protobuf.ByteString - getRevisionBytes() { - java.lang.Object ref = revision_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - revision_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string revision = 2; - */ - public Builder setRevision( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - revision_ = value; - onChanged(); - return this; - } - /** - * optional string revision = 2; - */ - public Builder clearRevision() { - bitField0_ = (bitField0_ & ~0x00000002); - revision_ = getDefaultInstance().getRevision(); - onChanged(); - return this; - } - /** - * optional string revision = 2; - */ - public Builder setRevisionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - revision_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.batch.WsProjectResponse.FileData) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.batch.WsProjectResponse.FileData) - private static final org.sonarqube.ws.WsBatch.WsProjectResponse.FileData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsBatch.WsProjectResponse.FileData(); - } - - public static org.sonarqube.ws.WsBatch.WsProjectResponse.FileData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public FileData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new FileData(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsBatch.WsProjectResponse.FileData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int TIMESTAMP_FIELD_NUMBER = 1; - private long timestamp_; - /** - * optional int64 timestamp = 1; - */ - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int64 timestamp = 1; - */ - public long getTimestamp() { - return timestamp_; - } - - public static final int SETTINGSBYMODULE_FIELD_NUMBER = 2; - private static final class SettingsByModuleDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.sonarqube.ws.WsBatch.WsProjectResponse.Settings> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_SettingsByModuleEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.sonarqube.ws.WsBatch.WsProjectResponse.Settings.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.sonarqube.ws.WsBatch.WsProjectResponse.Settings> settingsByModule_; - private com.google.protobuf.MapField - internalGetSettingsByModule() { - if (settingsByModule_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SettingsByModuleDefaultEntryHolder.defaultEntry); - } - return settingsByModule_; - } - /** - * map<string, .sonarqube.ws.batch.WsProjectResponse.Settings> settingsByModule = 2; - */ - - public java.util.Map getSettingsByModule() { - return internalGetSettingsByModule().getMap(); - } - - public static final int FILEDATABYMODULEANDPATH_FIELD_NUMBER = 3; - private static final class FileDataByModuleAndPathDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByModuleAndPathEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath> fileDataByModuleAndPath_; - private com.google.protobuf.MapField - internalGetFileDataByModuleAndPath() { - if (fileDataByModuleAndPath_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FileDataByModuleAndPathDefaultEntryHolder.defaultEntry); - } - return fileDataByModuleAndPath_; - } - /** - * map<string, .sonarqube.ws.batch.WsProjectResponse.FileDataByPath> fileDataByModuleAndPath = 3; - */ - - public java.util.Map getFileDataByModuleAndPath() { - return internalGetFileDataByModuleAndPath().getMap(); - } - - public static final int LASTANALYSISDATE_FIELD_NUMBER = 4; - private long lastAnalysisDate_; - /** - * optional int64 lastAnalysisDate = 4; - */ - public boolean hasLastAnalysisDate() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional int64 lastAnalysisDate = 4; - */ - public long getLastAnalysisDate() { - return lastAnalysisDate_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt64(1, timestamp_); - } - for (java.util.Map.Entry entry - : internalGetSettingsByModule().getMap().entrySet()) { - com.google.protobuf.MapEntry - settingsByModule = SettingsByModuleDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - output.writeMessage(2, settingsByModule); - } - for (java.util.Map.Entry entry - : internalGetFileDataByModuleAndPath().getMap().entrySet()) { - com.google.protobuf.MapEntry - fileDataByModuleAndPath = FileDataByModuleAndPathDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - output.writeMessage(3, fileDataByModuleAndPath); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeInt64(4, lastAnalysisDate_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, timestamp_); - } - for (java.util.Map.Entry entry - : internalGetSettingsByModule().getMap().entrySet()) { - com.google.protobuf.MapEntry - settingsByModule = SettingsByModuleDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, settingsByModule); - } - for (java.util.Map.Entry entry - : internalGetFileDataByModuleAndPath().getMap().entrySet()) { - com.google.protobuf.MapEntry - fileDataByModuleAndPath = FileDataByModuleAndPathDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, fileDataByModuleAndPath); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, lastAnalysisDate_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsBatch.WsProjectResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsBatch.WsProjectResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsBatch.WsProjectResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.batch.WsProjectResponse} - * - *
-     * WS api/batch/project
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.batch.WsProjectResponse) - org.sonarqube.ws.WsBatch.WsProjectResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetSettingsByModule(); - case 3: - return internalGetFileDataByModuleAndPath(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableSettingsByModule(); - case 3: - return internalGetMutableFileDataByModuleAndPath(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsBatch.WsProjectResponse.class, org.sonarqube.ws.WsBatch.WsProjectResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.WsBatch.WsProjectResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - timestamp_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableSettingsByModule().clear(); - internalGetMutableFileDataByModuleAndPath().clear(); - lastAnalysisDate_ = 0L; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsBatch.internal_static_sonarqube_ws_batch_WsProjectResponse_descriptor; - } - - public org.sonarqube.ws.WsBatch.WsProjectResponse getDefaultInstanceForType() { - return org.sonarqube.ws.WsBatch.WsProjectResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.WsBatch.WsProjectResponse build() { - org.sonarqube.ws.WsBatch.WsProjectResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsBatch.WsProjectResponse buildPartial() { - org.sonarqube.ws.WsBatch.WsProjectResponse result = new org.sonarqube.ws.WsBatch.WsProjectResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.timestamp_ = timestamp_; - result.settingsByModule_ = internalGetSettingsByModule(); - result.settingsByModule_.makeImmutable(); - result.fileDataByModuleAndPath_ = internalGetFileDataByModuleAndPath(); - result.fileDataByModuleAndPath_.makeImmutable(); - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000002; - } - result.lastAnalysisDate_ = lastAnalysisDate_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsBatch.WsProjectResponse) { - return mergeFrom((org.sonarqube.ws.WsBatch.WsProjectResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsBatch.WsProjectResponse other) { - if (other == org.sonarqube.ws.WsBatch.WsProjectResponse.getDefaultInstance()) return this; - if (other.hasTimestamp()) { - setTimestamp(other.getTimestamp()); - } - internalGetMutableSettingsByModule().mergeFrom( - other.internalGetSettingsByModule()); - internalGetMutableFileDataByModuleAndPath().mergeFrom( - other.internalGetFileDataByModuleAndPath()); - if (other.hasLastAnalysisDate()) { - setLastAnalysisDate(other.getLastAnalysisDate()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsBatch.WsProjectResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsBatch.WsProjectResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private long timestamp_ ; - /** - * optional int64 timestamp = 1; - */ - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional int64 timestamp = 1; - */ - public long getTimestamp() { - return timestamp_; - } - /** - * optional int64 timestamp = 1; - */ - public Builder setTimestamp(long value) { - bitField0_ |= 0x00000001; - timestamp_ = value; - onChanged(); - return this; - } - /** - * optional int64 timestamp = 1; - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000001); - timestamp_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, org.sonarqube.ws.WsBatch.WsProjectResponse.Settings> settingsByModule_; - private com.google.protobuf.MapField - internalGetSettingsByModule() { - if (settingsByModule_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SettingsByModuleDefaultEntryHolder.defaultEntry); - } - return settingsByModule_; - } - private com.google.protobuf.MapField - internalGetMutableSettingsByModule() { - onChanged();; - if (settingsByModule_ == null) { - settingsByModule_ = com.google.protobuf.MapField.newMapField( - SettingsByModuleDefaultEntryHolder.defaultEntry); - } - if (!settingsByModule_.isMutable()) { - settingsByModule_ = settingsByModule_.copy(); - } - return settingsByModule_; - } - /** - * map<string, .sonarqube.ws.batch.WsProjectResponse.Settings> settingsByModule = 2; - */ - public java.util.Map getSettingsByModule() { - return internalGetSettingsByModule().getMap(); - } - /** - * map<string, .sonarqube.ws.batch.WsProjectResponse.Settings> settingsByModule = 2; - */ - public java.util.Map - getMutableSettingsByModule() { - return internalGetMutableSettingsByModule().getMutableMap(); - } - - private com.google.protobuf.MapField< - java.lang.String, org.sonarqube.ws.WsBatch.WsProjectResponse.FileDataByPath> fileDataByModuleAndPath_; - private com.google.protobuf.MapField - internalGetFileDataByModuleAndPath() { - if (fileDataByModuleAndPath_ == null) { - return com.google.protobuf.MapField.emptyMapField( - FileDataByModuleAndPathDefaultEntryHolder.defaultEntry); - } - return fileDataByModuleAndPath_; - } - private com.google.protobuf.MapField - internalGetMutableFileDataByModuleAndPath() { - onChanged();; - if (fileDataByModuleAndPath_ == null) { - fileDataByModuleAndPath_ = com.google.protobuf.MapField.newMapField( - FileDataByModuleAndPathDefaultEntryHolder.defaultEntry); - } - if (!fileDataByModuleAndPath_.isMutable()) { - fileDataByModuleAndPath_ = fileDataByModuleAndPath_.copy(); - } - return fileDataByModuleAndPath_; - } - /** - * map<string, .sonarqube.ws.batch.WsProjectResponse.FileDataByPath> fileDataByModuleAndPath = 3; - */ - public java.util.Map getFileDataByModuleAndPath() { - return internalGetFileDataByModuleAndPath().getMap(); - } - /** - * map<string, .sonarqube.ws.batch.WsProjectResponse.FileDataByPath> fileDataByModuleAndPath = 3; - */ - public java.util.Map - getMutableFileDataByModuleAndPath() { - return internalGetMutableFileDataByModuleAndPath().getMutableMap(); - } - - private long lastAnalysisDate_ ; - /** - * optional int64 lastAnalysisDate = 4; - */ - public boolean hasLastAnalysisDate() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int64 lastAnalysisDate = 4; - */ - public long getLastAnalysisDate() { - return lastAnalysisDate_; - } - /** - * optional int64 lastAnalysisDate = 4; - */ - public Builder setLastAnalysisDate(long value) { - bitField0_ |= 0x00000008; - lastAnalysisDate_ = value; - onChanged(); - return this; - } - /** - * optional int64 lastAnalysisDate = 4; - */ - public Builder clearLastAnalysisDate() { - bitField0_ = (bitField0_ & ~0x00000008); - lastAnalysisDate_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.batch.WsProjectResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.batch.WsProjectResponse) - private static final org.sonarqube.ws.WsBatch.WsProjectResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsBatch.WsProjectResponse(); - } - - public static org.sonarqube.ws.WsBatch.WsProjectResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsProjectResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsProjectResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsBatch.WsProjectResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_batch_WsProjectResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_batch_WsProjectResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_batch_WsProjectResponse_SettingsByModuleEntry_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_batch_WsProjectResponse_SettingsByModuleEntry_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByModuleAndPathEntry_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByModuleAndPathEntry_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_SettingsEntry_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_SettingsEntry_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_FileDataByPathEntry_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_FileDataByPathEntry_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_batch_WsProjectResponse_FileData_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_batch_WsProjectResponse_FileData_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\016ws-batch.proto\022\022sonarqube.ws.batch\"\361\006\n" + - "\021WsProjectResponse\022\021\n\ttimestamp\030\001 \001(\003\022U\n" + - "\020settingsByModule\030\002 \003(\0132;.sonarqube.ws.b" + - "atch.WsProjectResponse.SettingsByModuleE" + - "ntry\022c\n\027fileDataByModuleAndPath\030\003 \003(\0132B." + - "sonarqube.ws.batch.WsProjectResponse.Fil" + - "eDataByModuleAndPathEntry\022\030\n\020lastAnalysi" + - "sDate\030\004 \001(\003\032g\n\025SettingsByModuleEntry\022\013\n\003" + - "key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..sonarqube.ws." + - "batch.WsProjectResponse.Settings:\0028\001\032t\n\034", - "FileDataByModuleAndPathEntry\022\013\n\003key\030\001 \001(" + - "\t\022C\n\005value\030\002 \001(\01324.sonarqube.ws.batch.Ws" + - "ProjectResponse.FileDataByPath:\0028\001\032\213\001\n\010S" + - "ettings\022N\n\010settings\030\001 \003(\0132<.sonarqube.ws" + - ".batch.WsProjectResponse.Settings.Settin" + - "gsEntry\032/\n\rSettingsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + - "\005value\030\002 \001(\t:\0028\001\032\331\001\n\016FileDataByPath\022`\n\016F" + - "ileDataByPath\030\001 \003(\0132H.sonarqube.ws.batch" + - ".WsProjectResponse.FileDataByPath.FileDa" + - "taByPathEntry\032e\n\023FileDataByPathEntry\022\013\n\003", - "key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..sonarqube.ws." + - "batch.WsProjectResponse.FileData:\0028\001\032*\n\010" + - "FileData\022\014\n\004hash\030\001 \001(\t\022\020\n\010revision\030\002 \001(\t" + - "B\035\n\020org.sonarqube.wsB\007WsBatchH\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_sonarqube_ws_batch_WsProjectResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_sonarqube_ws_batch_WsProjectResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_batch_WsProjectResponse_descriptor, - new java.lang.String[] { "Timestamp", "SettingsByModule", "FileDataByModuleAndPath", "LastAnalysisDate", }); - internal_static_sonarqube_ws_batch_WsProjectResponse_SettingsByModuleEntry_descriptor = - internal_static_sonarqube_ws_batch_WsProjectResponse_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_batch_WsProjectResponse_SettingsByModuleEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_batch_WsProjectResponse_SettingsByModuleEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByModuleAndPathEntry_descriptor = - internal_static_sonarqube_ws_batch_WsProjectResponse_descriptor.getNestedTypes().get(1); - internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByModuleAndPathEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByModuleAndPathEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_descriptor = - internal_static_sonarqube_ws_batch_WsProjectResponse_descriptor.getNestedTypes().get(2); - internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_descriptor, - new java.lang.String[] { "Settings", }); - internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_SettingsEntry_descriptor = - internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_SettingsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_batch_WsProjectResponse_Settings_SettingsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_descriptor = - internal_static_sonarqube_ws_batch_WsProjectResponse_descriptor.getNestedTypes().get(3); - internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_descriptor, - new java.lang.String[] { "FileDataByPath", }); - internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_FileDataByPathEntry_descriptor = - internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_FileDataByPathEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_batch_WsProjectResponse_FileDataByPath_FileDataByPathEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_sonarqube_ws_batch_WsProjectResponse_FileData_descriptor = - internal_static_sonarqube_ws_batch_WsProjectResponse_descriptor.getNestedTypes().get(4); - internal_static_sonarqube_ws_batch_WsProjectResponse_FileData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_batch_WsProjectResponse_FileData_descriptor, - new java.lang.String[] { "Hash", "Revision", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsCe.java b/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsCe.java deleted file mode 100644 index 6b323756c04..00000000000 --- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsCe.java +++ /dev/null @@ -1,6021 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ws-ce.proto - -package org.sonarqube.ws; - -public final class WsCe { - private WsCe() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - /** - * Protobuf enum {@code sonarqube.ws.ce.TaskStatus} - */ - public enum TaskStatus - implements com.google.protobuf.ProtocolMessageEnum { - /** - * PENDING = 0; - */ - PENDING(0, 0), - /** - * IN_PROGRESS = 1; - */ - IN_PROGRESS(1, 1), - /** - * SUCCESS = 2; - */ - SUCCESS(2, 2), - /** - * FAILED = 3; - */ - FAILED(3, 3), - /** - * CANCELED = 4; - */ - CANCELED(4, 4), - ; - - /** - * PENDING = 0; - */ - public static final int PENDING_VALUE = 0; - /** - * IN_PROGRESS = 1; - */ - public static final int IN_PROGRESS_VALUE = 1; - /** - * SUCCESS = 2; - */ - public static final int SUCCESS_VALUE = 2; - /** - * FAILED = 3; - */ - public static final int FAILED_VALUE = 3; - /** - * CANCELED = 4; - */ - public static final int CANCELED_VALUE = 4; - - - public final int getNumber() { - return value; - } - - public static TaskStatus valueOf(int value) { - switch (value) { - case 0: return PENDING; - case 1: return IN_PROGRESS; - case 2: return SUCCESS; - case 3: return FAILED; - case 4: return CANCELED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TaskStatus findValueByNumber(int number) { - return TaskStatus.valueOf(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(index); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return org.sonarqube.ws.WsCe.getDescriptor().getEnumTypes().get(0); - } - - private static final TaskStatus[] VALUES = values(); - - public static TaskStatus valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - return VALUES[desc.getIndex()]; - } - - private final int index; - private final int value; - - private TaskStatus(int index, int value) { - this.index = index; - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:sonarqube.ws.ce.TaskStatus) - } - - public interface SubmitResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.ce.SubmitResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string taskId = 1; - */ - boolean hasTaskId(); - /** - * optional string taskId = 1; - */ - java.lang.String getTaskId(); - /** - * optional string taskId = 1; - */ - com.google.protobuf.ByteString - getTaskIdBytes(); - - /** - * optional string projectId = 2; - */ - boolean hasProjectId(); - /** - * optional string projectId = 2; - */ - java.lang.String getProjectId(); - /** - * optional string projectId = 2; - */ - com.google.protobuf.ByteString - getProjectIdBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.ce.SubmitResponse} - * - *
-   * POST api/ce/submit
-   * 
- */ - public static final class SubmitResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.ce.SubmitResponse) - SubmitResponseOrBuilder { - // Use SubmitResponse.newBuilder() to construct. - private SubmitResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private SubmitResponse() { - taskId_ = ""; - projectId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SubmitResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - taskId_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - projectId_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_SubmitResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_SubmitResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsCe.SubmitResponse.class, org.sonarqube.ws.WsCe.SubmitResponse.Builder.class); - } - - private int bitField0_; - public static final int TASKID_FIELD_NUMBER = 1; - private volatile java.lang.Object taskId_; - /** - * optional string taskId = 1; - */ - public boolean hasTaskId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string taskId = 1; - */ - public java.lang.String getTaskId() { - java.lang.Object ref = taskId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - taskId_ = s; - } - return s; - } - } - /** - * optional string taskId = 1; - */ - public com.google.protobuf.ByteString - getTaskIdBytes() { - java.lang.Object ref = taskId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - taskId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROJECTID_FIELD_NUMBER = 2; - private volatile java.lang.Object projectId_; - /** - * optional string projectId = 2; - */ - public boolean hasProjectId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string projectId = 2; - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - projectId_ = s; - } - return s; - } - } - /** - * optional string projectId = 2; - */ - public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTaskIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getProjectIdBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getTaskIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getProjectIdBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsCe.SubmitResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsCe.SubmitResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.SubmitResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsCe.SubmitResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.SubmitResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsCe.SubmitResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.SubmitResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsCe.SubmitResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.SubmitResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsCe.SubmitResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsCe.SubmitResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.ce.SubmitResponse} - * - *
-     * POST api/ce/submit
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.ce.SubmitResponse) - org.sonarqube.ws.WsCe.SubmitResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_SubmitResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_SubmitResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsCe.SubmitResponse.class, org.sonarqube.ws.WsCe.SubmitResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.WsCe.SubmitResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - taskId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - projectId_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_SubmitResponse_descriptor; - } - - public org.sonarqube.ws.WsCe.SubmitResponse getDefaultInstanceForType() { - return org.sonarqube.ws.WsCe.SubmitResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.WsCe.SubmitResponse build() { - org.sonarqube.ws.WsCe.SubmitResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsCe.SubmitResponse buildPartial() { - org.sonarqube.ws.WsCe.SubmitResponse result = new org.sonarqube.ws.WsCe.SubmitResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.taskId_ = taskId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.projectId_ = projectId_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsCe.SubmitResponse) { - return mergeFrom((org.sonarqube.ws.WsCe.SubmitResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsCe.SubmitResponse other) { - if (other == org.sonarqube.ws.WsCe.SubmitResponse.getDefaultInstance()) return this; - if (other.hasTaskId()) { - bitField0_ |= 0x00000001; - taskId_ = other.taskId_; - onChanged(); - } - if (other.hasProjectId()) { - bitField0_ |= 0x00000002; - projectId_ = other.projectId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsCe.SubmitResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsCe.SubmitResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object taskId_ = ""; - /** - * optional string taskId = 1; - */ - public boolean hasTaskId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string taskId = 1; - */ - public java.lang.String getTaskId() { - java.lang.Object ref = taskId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - taskId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string taskId = 1; - */ - public com.google.protobuf.ByteString - getTaskIdBytes() { - java.lang.Object ref = taskId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - taskId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string taskId = 1; - */ - public Builder setTaskId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - taskId_ = value; - onChanged(); - return this; - } - /** - * optional string taskId = 1; - */ - public Builder clearTaskId() { - bitField0_ = (bitField0_ & ~0x00000001); - taskId_ = getDefaultInstance().getTaskId(); - onChanged(); - return this; - } - /** - * optional string taskId = 1; - */ - public Builder setTaskIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - taskId_ = value; - onChanged(); - return this; - } - - private java.lang.Object projectId_ = ""; - /** - * optional string projectId = 2; - */ - public boolean hasProjectId() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string projectId = 2; - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - projectId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string projectId = 2; - */ - public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string projectId = 2; - */ - public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - projectId_ = value; - onChanged(); - return this; - } - /** - * optional string projectId = 2; - */ - public Builder clearProjectId() { - bitField0_ = (bitField0_ & ~0x00000002); - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - * optional string projectId = 2; - */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - projectId_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.ce.SubmitResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.ce.SubmitResponse) - private static final org.sonarqube.ws.WsCe.SubmitResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsCe.SubmitResponse(); - } - - public static org.sonarqube.ws.WsCe.SubmitResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SubmitResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new SubmitResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsCe.SubmitResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.ce.TaskResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.ce.Task task = 1; - */ - boolean hasTask(); - /** - * optional .sonarqube.ws.ce.Task task = 1; - */ - org.sonarqube.ws.WsCe.Task getTask(); - /** - * optional .sonarqube.ws.ce.Task task = 1; - */ - org.sonarqube.ws.WsCe.TaskOrBuilder getTaskOrBuilder(); - } - /** - * Protobuf type {@code sonarqube.ws.ce.TaskResponse} - * - *
-   * GET api/ce/task
-   * 
- */ - public static final class TaskResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.ce.TaskResponse) - TaskResponseOrBuilder { - // Use TaskResponse.newBuilder() to construct. - private TaskResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TaskResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.sonarqube.ws.WsCe.Task.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = task_.toBuilder(); - } - task_ = input.readMessage(org.sonarqube.ws.WsCe.Task.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(task_); - task_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_TaskResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_TaskResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsCe.TaskResponse.class, org.sonarqube.ws.WsCe.TaskResponse.Builder.class); - } - - private int bitField0_; - public static final int TASK_FIELD_NUMBER = 1; - private org.sonarqube.ws.WsCe.Task task_; - /** - * optional .sonarqube.ws.ce.Task task = 1; - */ - public boolean hasTask() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.ce.Task task = 1; - */ - public org.sonarqube.ws.WsCe.Task getTask() { - return task_ == null ? org.sonarqube.ws.WsCe.Task.getDefaultInstance() : task_; - } - /** - * optional .sonarqube.ws.ce.Task task = 1; - */ - public org.sonarqube.ws.WsCe.TaskOrBuilder getTaskOrBuilder() { - return task_ == null ? org.sonarqube.ws.WsCe.Task.getDefaultInstance() : task_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getTask()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTask()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsCe.TaskResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsCe.TaskResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.TaskResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsCe.TaskResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.TaskResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsCe.TaskResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.TaskResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsCe.TaskResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.TaskResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsCe.TaskResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsCe.TaskResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.ce.TaskResponse} - * - *
-     * GET api/ce/task
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.ce.TaskResponse) - org.sonarqube.ws.WsCe.TaskResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_TaskResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_TaskResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsCe.TaskResponse.class, org.sonarqube.ws.WsCe.TaskResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.WsCe.TaskResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getTaskFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (taskBuilder_ == null) { - task_ = null; - } else { - taskBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_TaskResponse_descriptor; - } - - public org.sonarqube.ws.WsCe.TaskResponse getDefaultInstanceForType() { - return org.sonarqube.ws.WsCe.TaskResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.WsCe.TaskResponse build() { - org.sonarqube.ws.WsCe.TaskResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsCe.TaskResponse buildPartial() { - org.sonarqube.ws.WsCe.TaskResponse result = new org.sonarqube.ws.WsCe.TaskResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (taskBuilder_ == null) { - result.task_ = task_; - } else { - result.task_ = taskBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsCe.TaskResponse) { - return mergeFrom((org.sonarqube.ws.WsCe.TaskResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsCe.TaskResponse other) { - if (other == org.sonarqube.ws.WsCe.TaskResponse.getDefaultInstance()) return this; - if (other.hasTask()) { - mergeTask(other.getTask()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsCe.TaskResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsCe.TaskResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.WsCe.Task task_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder> taskBuilder_; - /** - * optional .sonarqube.ws.ce.Task task = 1; - */ - public boolean hasTask() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.ce.Task task = 1; - */ - public org.sonarqube.ws.WsCe.Task getTask() { - if (taskBuilder_ == null) { - return task_ == null ? org.sonarqube.ws.WsCe.Task.getDefaultInstance() : task_; - } else { - return taskBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.ce.Task task = 1; - */ - public Builder setTask(org.sonarqube.ws.WsCe.Task value) { - if (taskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - task_ = value; - onChanged(); - } else { - taskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.ce.Task task = 1; - */ - public Builder setTask( - org.sonarqube.ws.WsCe.Task.Builder builderForValue) { - if (taskBuilder_ == null) { - task_ = builderForValue.build(); - onChanged(); - } else { - taskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.ce.Task task = 1; - */ - public Builder mergeTask(org.sonarqube.ws.WsCe.Task value) { - if (taskBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - task_ != null && - task_ != org.sonarqube.ws.WsCe.Task.getDefaultInstance()) { - task_ = - org.sonarqube.ws.WsCe.Task.newBuilder(task_).mergeFrom(value).buildPartial(); - } else { - task_ = value; - } - onChanged(); - } else { - taskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.ce.Task task = 1; - */ - public Builder clearTask() { - if (taskBuilder_ == null) { - task_ = null; - onChanged(); - } else { - taskBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.ce.Task task = 1; - */ - public org.sonarqube.ws.WsCe.Task.Builder getTaskBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getTaskFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.ce.Task task = 1; - */ - public org.sonarqube.ws.WsCe.TaskOrBuilder getTaskOrBuilder() { - if (taskBuilder_ != null) { - return taskBuilder_.getMessageOrBuilder(); - } else { - return task_ == null ? - org.sonarqube.ws.WsCe.Task.getDefaultInstance() : task_; - } - } - /** - * optional .sonarqube.ws.ce.Task task = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder> - getTaskFieldBuilder() { - if (taskBuilder_ == null) { - taskBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder>( - getTask(), - getParentForChildren(), - isClean()); - task_ = null; - } - return taskBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.ce.TaskResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.ce.TaskResponse) - private static final org.sonarqube.ws.WsCe.TaskResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsCe.TaskResponse(); - } - - public static org.sonarqube.ws.WsCe.TaskResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TaskResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new TaskResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsCe.TaskResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface QueueResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.ce.QueueResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - java.util.List - getTasksList(); - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - org.sonarqube.ws.WsCe.Task getTasks(int index); - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - int getTasksCount(); - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - java.util.List - getTasksOrBuilderList(); - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - org.sonarqube.ws.WsCe.TaskOrBuilder getTasksOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.ce.QueueResponse} - * - *
-   * GET api/ce/queue
-   * 
- */ - public static final class QueueResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.ce.QueueResponse) - QueueResponseOrBuilder { - // Use QueueResponse.newBuilder() to construct. - private QueueResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private QueueResponse() { - tasks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueueResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tasks_.add(input.readMessage(org.sonarqube.ws.WsCe.Task.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_QueueResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_QueueResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsCe.QueueResponse.class, org.sonarqube.ws.WsCe.QueueResponse.Builder.class); - } - - public static final int TASKS_FIELD_NUMBER = 1; - private java.util.List tasks_; - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public java.util.List getTasksList() { - return tasks_; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public int getTasksCount() { - return tasks_.size(); - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public org.sonarqube.ws.WsCe.Task getTasks(int index) { - return tasks_.get(index); - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public org.sonarqube.ws.WsCe.TaskOrBuilder getTasksOrBuilder( - int index) { - return tasks_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(1, tasks_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, tasks_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsCe.QueueResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsCe.QueueResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.QueueResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsCe.QueueResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.QueueResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsCe.QueueResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.QueueResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsCe.QueueResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.QueueResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsCe.QueueResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsCe.QueueResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.ce.QueueResponse} - * - *
-     * GET api/ce/queue
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.ce.QueueResponse) - org.sonarqube.ws.WsCe.QueueResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_QueueResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_QueueResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsCe.QueueResponse.class, org.sonarqube.ws.WsCe.QueueResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.WsCe.QueueResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getTasksFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - tasksBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_QueueResponse_descriptor; - } - - public org.sonarqube.ws.WsCe.QueueResponse getDefaultInstanceForType() { - return org.sonarqube.ws.WsCe.QueueResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.WsCe.QueueResponse build() { - org.sonarqube.ws.WsCe.QueueResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsCe.QueueResponse buildPartial() { - org.sonarqube.ws.WsCe.QueueResponse result = new org.sonarqube.ws.WsCe.QueueResponse(this); - int from_bitField0_ = bitField0_; - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsCe.QueueResponse) { - return mergeFrom((org.sonarqube.ws.WsCe.QueueResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsCe.QueueResponse other) { - if (other == org.sonarqube.ws.WsCe.QueueResponse.getDefaultInstance()) return this; - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000001); - tasksBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getTasksFieldBuilder() : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsCe.QueueResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsCe.QueueResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder> tasksBuilder_; - - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public org.sonarqube.ws.WsCe.Task getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public Builder setTasks( - int index, org.sonarqube.ws.WsCe.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public Builder setTasks( - int index, org.sonarqube.ws.WsCe.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public Builder addTasks(org.sonarqube.ws.WsCe.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public Builder addTasks( - int index, org.sonarqube.ws.WsCe.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public Builder addTasks( - org.sonarqube.ws.WsCe.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public Builder addTasks( - int index, org.sonarqube.ws.WsCe.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public org.sonarqube.ws.WsCe.Task.Builder getTasksBuilder( - int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public org.sonarqube.ws.WsCe.TaskOrBuilder getTasksOrBuilder( - int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public org.sonarqube.ws.WsCe.Task.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder( - org.sonarqube.ws.WsCe.Task.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public org.sonarqube.ws.WsCe.Task.Builder addTasksBuilder( - int index) { - return getTasksFieldBuilder().addBuilder( - index, org.sonarqube.ws.WsCe.Task.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 1; - */ - public java.util.List - getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder>( - tasks_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.ce.QueueResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.ce.QueueResponse) - private static final org.sonarqube.ws.WsCe.QueueResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsCe.QueueResponse(); - } - - public static org.sonarqube.ws.WsCe.QueueResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public QueueResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new QueueResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsCe.QueueResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ActivityResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.ce.ActivityResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - boolean hasPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - org.sonarqube.ws.Common.Paging getPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder(); - - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - java.util.List - getTasksList(); - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - org.sonarqube.ws.WsCe.Task getTasks(int index); - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - int getTasksCount(); - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - java.util.List - getTasksOrBuilderList(); - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - org.sonarqube.ws.WsCe.TaskOrBuilder getTasksOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.ce.ActivityResponse} - * - *
-   * GET api/ce/activity
-   * 
- */ - public static final class ActivityResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.ce.ActivityResponse) - ActivityResponseOrBuilder { - // Use ActivityResponse.newBuilder() to construct. - private ActivityResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ActivityResponse() { - tasks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ActivityResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.sonarqube.ws.Common.Paging.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = paging_.toBuilder(); - } - paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(paging_); - paging_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - tasks_.add(input.readMessage(org.sonarqube.ws.WsCe.Task.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_ActivityResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_ActivityResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsCe.ActivityResponse.class, org.sonarqube.ws.WsCe.ActivityResponse.Builder.class); - } - - private int bitField0_; - public static final int PAGING_FIELD_NUMBER = 1; - private org.sonarqube.ws.Common.Paging paging_; - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - - public static final int TASKS_FIELD_NUMBER = 2; - private java.util.List tasks_; - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public java.util.List getTasksList() { - return tasks_; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public int getTasksCount() { - return tasks_.size(); - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public org.sonarqube.ws.WsCe.Task getTasks(int index) { - return tasks_.get(index); - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public org.sonarqube.ws.WsCe.TaskOrBuilder getTasksOrBuilder( - int index) { - return tasks_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getPaging()); - } - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(2, tasks_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPaging()); - } - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, tasks_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsCe.ActivityResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsCe.ActivityResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.ActivityResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsCe.ActivityResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.ActivityResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsCe.ActivityResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.ActivityResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsCe.ActivityResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.ActivityResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsCe.ActivityResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsCe.ActivityResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.ce.ActivityResponse} - * - *
-     * GET api/ce/activity
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.ce.ActivityResponse) - org.sonarqube.ws.WsCe.ActivityResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_ActivityResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_ActivityResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsCe.ActivityResponse.class, org.sonarqube.ws.WsCe.ActivityResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.WsCe.ActivityResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPagingFieldBuilder(); - getTasksFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (pagingBuilder_ == null) { - paging_ = null; - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - tasksBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_ActivityResponse_descriptor; - } - - public org.sonarqube.ws.WsCe.ActivityResponse getDefaultInstanceForType() { - return org.sonarqube.ws.WsCe.ActivityResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.WsCe.ActivityResponse build() { - org.sonarqube.ws.WsCe.ActivityResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsCe.ActivityResponse buildPartial() { - org.sonarqube.ws.WsCe.ActivityResponse result = new org.sonarqube.ws.WsCe.ActivityResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (pagingBuilder_ == null) { - result.paging_ = paging_; - } else { - result.paging_ = pagingBuilder_.build(); - } - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsCe.ActivityResponse) { - return mergeFrom((org.sonarqube.ws.WsCe.ActivityResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsCe.ActivityResponse other) { - if (other == org.sonarqube.ws.WsCe.ActivityResponse.getDefaultInstance()) return this; - if (other.hasPaging()) { - mergePaging(other.getPaging()); - } - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000002); - tasksBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getTasksFieldBuilder() : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsCe.ActivityResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsCe.ActivityResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.Common.Paging paging_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_; - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - if (pagingBuilder_ == null) { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } else { - return pagingBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder setPaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - paging_ = value; - onChanged(); - } else { - pagingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder setPaging( - org.sonarqube.ws.Common.Paging.Builder builderForValue) { - if (pagingBuilder_ == null) { - paging_ = builderForValue.build(); - onChanged(); - } else { - pagingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder mergePaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - paging_ != null && - paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) { - paging_ = - org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial(); - } else { - paging_ = value; - } - onChanged(); - } else { - pagingBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder clearPaging() { - if (pagingBuilder_ == null) { - paging_ = null; - onChanged(); - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPagingFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - if (pagingBuilder_ != null) { - return pagingBuilder_.getMessageOrBuilder(); - } else { - return paging_ == null ? - org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> - getPagingFieldBuilder() { - if (pagingBuilder_ == null) { - pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>( - getPaging(), - getParentForChildren(), - isClean()); - paging_ = null; - } - return pagingBuilder_; - } - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder> tasksBuilder_; - - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public org.sonarqube.ws.WsCe.Task getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public Builder setTasks( - int index, org.sonarqube.ws.WsCe.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public Builder setTasks( - int index, org.sonarqube.ws.WsCe.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public Builder addTasks(org.sonarqube.ws.WsCe.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public Builder addTasks( - int index, org.sonarqube.ws.WsCe.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public Builder addTasks( - org.sonarqube.ws.WsCe.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public Builder addTasks( - int index, org.sonarqube.ws.WsCe.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public org.sonarqube.ws.WsCe.Task.Builder getTasksBuilder( - int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public org.sonarqube.ws.WsCe.TaskOrBuilder getTasksOrBuilder( - int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public org.sonarqube.ws.WsCe.Task.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder( - org.sonarqube.ws.WsCe.Task.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public org.sonarqube.ws.WsCe.Task.Builder addTasksBuilder( - int index) { - return getTasksFieldBuilder().addBuilder( - index, org.sonarqube.ws.WsCe.Task.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.ce.Task tasks = 2; - */ - public java.util.List - getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder>( - tasks_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.ce.ActivityResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.ce.ActivityResponse) - private static final org.sonarqube.ws.WsCe.ActivityResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsCe.ActivityResponse(); - } - - public static org.sonarqube.ws.WsCe.ActivityResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ActivityResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ActivityResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsCe.ActivityResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.ce.ProjectResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - java.util.List - getQueueList(); - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - org.sonarqube.ws.WsCe.Task getQueue(int index); - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - int getQueueCount(); - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - java.util.List - getQueueOrBuilderList(); - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - org.sonarqube.ws.WsCe.TaskOrBuilder getQueueOrBuilder( - int index); - - /** - * optional .sonarqube.ws.ce.Task current = 2; - */ - boolean hasCurrent(); - /** - * optional .sonarqube.ws.ce.Task current = 2; - */ - org.sonarqube.ws.WsCe.Task getCurrent(); - /** - * optional .sonarqube.ws.ce.Task current = 2; - */ - org.sonarqube.ws.WsCe.TaskOrBuilder getCurrentOrBuilder(); - } - /** - * Protobuf type {@code sonarqube.ws.ce.ProjectResponse} - * - *
-   * GET api/ce/project
-   * 
- */ - public static final class ProjectResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.ce.ProjectResponse) - ProjectResponseOrBuilder { - // Use ProjectResponse.newBuilder() to construct. - private ProjectResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private ProjectResponse() { - queue_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - queue_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - queue_.add(input.readMessage(org.sonarqube.ws.WsCe.Task.PARSER, extensionRegistry)); - break; - } - case 18: { - org.sonarqube.ws.WsCe.Task.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = current_.toBuilder(); - } - current_ = input.readMessage(org.sonarqube.ws.WsCe.Task.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(current_); - current_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - queue_ = java.util.Collections.unmodifiableList(queue_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_ProjectResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_ProjectResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsCe.ProjectResponse.class, org.sonarqube.ws.WsCe.ProjectResponse.Builder.class); - } - - private int bitField0_; - public static final int QUEUE_FIELD_NUMBER = 1; - private java.util.List queue_; - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public java.util.List getQueueList() { - return queue_; - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public java.util.List - getQueueOrBuilderList() { - return queue_; - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public int getQueueCount() { - return queue_.size(); - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public org.sonarqube.ws.WsCe.Task getQueue(int index) { - return queue_.get(index); - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public org.sonarqube.ws.WsCe.TaskOrBuilder getQueueOrBuilder( - int index) { - return queue_.get(index); - } - - public static final int CURRENT_FIELD_NUMBER = 2; - private org.sonarqube.ws.WsCe.Task current_; - /** - * optional .sonarqube.ws.ce.Task current = 2; - */ - public boolean hasCurrent() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.ce.Task current = 2; - */ - public org.sonarqube.ws.WsCe.Task getCurrent() { - return current_ == null ? org.sonarqube.ws.WsCe.Task.getDefaultInstance() : current_; - } - /** - * optional .sonarqube.ws.ce.Task current = 2; - */ - public org.sonarqube.ws.WsCe.TaskOrBuilder getCurrentOrBuilder() { - return current_ == null ? org.sonarqube.ws.WsCe.Task.getDefaultInstance() : current_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < queue_.size(); i++) { - output.writeMessage(1, queue_.get(i)); - } - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(2, getCurrent()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < queue_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, queue_.get(i)); - } - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCurrent()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsCe.ProjectResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsCe.ProjectResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.ProjectResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsCe.ProjectResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.ProjectResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsCe.ProjectResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.ProjectResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsCe.ProjectResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.ProjectResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsCe.ProjectResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsCe.ProjectResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.ce.ProjectResponse} - * - *
-     * GET api/ce/project
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.ce.ProjectResponse) - org.sonarqube.ws.WsCe.ProjectResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_ProjectResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_ProjectResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsCe.ProjectResponse.class, org.sonarqube.ws.WsCe.ProjectResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.WsCe.ProjectResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getQueueFieldBuilder(); - getCurrentFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (queueBuilder_ == null) { - queue_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - queueBuilder_.clear(); - } - if (currentBuilder_ == null) { - current_ = null; - } else { - currentBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_ProjectResponse_descriptor; - } - - public org.sonarqube.ws.WsCe.ProjectResponse getDefaultInstanceForType() { - return org.sonarqube.ws.WsCe.ProjectResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.WsCe.ProjectResponse build() { - org.sonarqube.ws.WsCe.ProjectResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsCe.ProjectResponse buildPartial() { - org.sonarqube.ws.WsCe.ProjectResponse result = new org.sonarqube.ws.WsCe.ProjectResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (queueBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - queue_ = java.util.Collections.unmodifiableList(queue_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.queue_ = queue_; - } else { - result.queue_ = queueBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000001; - } - if (currentBuilder_ == null) { - result.current_ = current_; - } else { - result.current_ = currentBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsCe.ProjectResponse) { - return mergeFrom((org.sonarqube.ws.WsCe.ProjectResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsCe.ProjectResponse other) { - if (other == org.sonarqube.ws.WsCe.ProjectResponse.getDefaultInstance()) return this; - if (queueBuilder_ == null) { - if (!other.queue_.isEmpty()) { - if (queue_.isEmpty()) { - queue_ = other.queue_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureQueueIsMutable(); - queue_.addAll(other.queue_); - } - onChanged(); - } - } else { - if (!other.queue_.isEmpty()) { - if (queueBuilder_.isEmpty()) { - queueBuilder_.dispose(); - queueBuilder_ = null; - queue_ = other.queue_; - bitField0_ = (bitField0_ & ~0x00000001); - queueBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getQueueFieldBuilder() : null; - } else { - queueBuilder_.addAllMessages(other.queue_); - } - } - } - if (other.hasCurrent()) { - mergeCurrent(other.getCurrent()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsCe.ProjectResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsCe.ProjectResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List queue_ = - java.util.Collections.emptyList(); - private void ensureQueueIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - queue_ = new java.util.ArrayList(queue_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder> queueBuilder_; - - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public java.util.List getQueueList() { - if (queueBuilder_ == null) { - return java.util.Collections.unmodifiableList(queue_); - } else { - return queueBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public int getQueueCount() { - if (queueBuilder_ == null) { - return queue_.size(); - } else { - return queueBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public org.sonarqube.ws.WsCe.Task getQueue(int index) { - if (queueBuilder_ == null) { - return queue_.get(index); - } else { - return queueBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public Builder setQueue( - int index, org.sonarqube.ws.WsCe.Task value) { - if (queueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueueIsMutable(); - queue_.set(index, value); - onChanged(); - } else { - queueBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public Builder setQueue( - int index, org.sonarqube.ws.WsCe.Task.Builder builderForValue) { - if (queueBuilder_ == null) { - ensureQueueIsMutable(); - queue_.set(index, builderForValue.build()); - onChanged(); - } else { - queueBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public Builder addQueue(org.sonarqube.ws.WsCe.Task value) { - if (queueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueueIsMutable(); - queue_.add(value); - onChanged(); - } else { - queueBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public Builder addQueue( - int index, org.sonarqube.ws.WsCe.Task value) { - if (queueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueueIsMutable(); - queue_.add(index, value); - onChanged(); - } else { - queueBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public Builder addQueue( - org.sonarqube.ws.WsCe.Task.Builder builderForValue) { - if (queueBuilder_ == null) { - ensureQueueIsMutable(); - queue_.add(builderForValue.build()); - onChanged(); - } else { - queueBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public Builder addQueue( - int index, org.sonarqube.ws.WsCe.Task.Builder builderForValue) { - if (queueBuilder_ == null) { - ensureQueueIsMutable(); - queue_.add(index, builderForValue.build()); - onChanged(); - } else { - queueBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public Builder addAllQueue( - java.lang.Iterable values) { - if (queueBuilder_ == null) { - ensureQueueIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, queue_); - onChanged(); - } else { - queueBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public Builder clearQueue() { - if (queueBuilder_ == null) { - queue_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - queueBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public Builder removeQueue(int index) { - if (queueBuilder_ == null) { - ensureQueueIsMutable(); - queue_.remove(index); - onChanged(); - } else { - queueBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public org.sonarqube.ws.WsCe.Task.Builder getQueueBuilder( - int index) { - return getQueueFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public org.sonarqube.ws.WsCe.TaskOrBuilder getQueueOrBuilder( - int index) { - if (queueBuilder_ == null) { - return queue_.get(index); } else { - return queueBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public java.util.List - getQueueOrBuilderList() { - if (queueBuilder_ != null) { - return queueBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(queue_); - } - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public org.sonarqube.ws.WsCe.Task.Builder addQueueBuilder() { - return getQueueFieldBuilder().addBuilder( - org.sonarqube.ws.WsCe.Task.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public org.sonarqube.ws.WsCe.Task.Builder addQueueBuilder( - int index) { - return getQueueFieldBuilder().addBuilder( - index, org.sonarqube.ws.WsCe.Task.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.ce.Task queue = 1; - */ - public java.util.List - getQueueBuilderList() { - return getQueueFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder> - getQueueFieldBuilder() { - if (queueBuilder_ == null) { - queueBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder>( - queue_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - queue_ = null; - } - return queueBuilder_; - } - - private org.sonarqube.ws.WsCe.Task current_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder> currentBuilder_; - /** - * optional .sonarqube.ws.ce.Task current = 2; - */ - public boolean hasCurrent() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional .sonarqube.ws.ce.Task current = 2; - */ - public org.sonarqube.ws.WsCe.Task getCurrent() { - if (currentBuilder_ == null) { - return current_ == null ? org.sonarqube.ws.WsCe.Task.getDefaultInstance() : current_; - } else { - return currentBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.ce.Task current = 2; - */ - public Builder setCurrent(org.sonarqube.ws.WsCe.Task value) { - if (currentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - current_ = value; - onChanged(); - } else { - currentBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .sonarqube.ws.ce.Task current = 2; - */ - public Builder setCurrent( - org.sonarqube.ws.WsCe.Task.Builder builderForValue) { - if (currentBuilder_ == null) { - current_ = builderForValue.build(); - onChanged(); - } else { - currentBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .sonarqube.ws.ce.Task current = 2; - */ - public Builder mergeCurrent(org.sonarqube.ws.WsCe.Task value) { - if (currentBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - current_ != null && - current_ != org.sonarqube.ws.WsCe.Task.getDefaultInstance()) { - current_ = - org.sonarqube.ws.WsCe.Task.newBuilder(current_).mergeFrom(value).buildPartial(); - } else { - current_ = value; - } - onChanged(); - } else { - currentBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * optional .sonarqube.ws.ce.Task current = 2; - */ - public Builder clearCurrent() { - if (currentBuilder_ == null) { - current_ = null; - onChanged(); - } else { - currentBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * optional .sonarqube.ws.ce.Task current = 2; - */ - public org.sonarqube.ws.WsCe.Task.Builder getCurrentBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getCurrentFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.ce.Task current = 2; - */ - public org.sonarqube.ws.WsCe.TaskOrBuilder getCurrentOrBuilder() { - if (currentBuilder_ != null) { - return currentBuilder_.getMessageOrBuilder(); - } else { - return current_ == null ? - org.sonarqube.ws.WsCe.Task.getDefaultInstance() : current_; - } - } - /** - * optional .sonarqube.ws.ce.Task current = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder> - getCurrentFieldBuilder() { - if (currentBuilder_ == null) { - currentBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.WsCe.Task, org.sonarqube.ws.WsCe.Task.Builder, org.sonarqube.ws.WsCe.TaskOrBuilder>( - getCurrent(), - getParentForChildren(), - isClean()); - current_ = null; - } - return currentBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.ce.ProjectResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.ce.ProjectResponse) - private static final org.sonarqube.ws.WsCe.ProjectResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsCe.ProjectResponse(); - } - - public static org.sonarqube.ws.WsCe.ProjectResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ProjectResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new ProjectResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsCe.ProjectResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.ce.Task) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string id = 1; - */ - boolean hasId(); - /** - * optional string id = 1; - */ - java.lang.String getId(); - /** - * optional string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * optional string type = 2; - */ - boolean hasType(); - /** - * optional string type = 2; - */ - java.lang.String getType(); - /** - * optional string type = 2; - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - * optional string componentId = 3; - */ - boolean hasComponentId(); - /** - * optional string componentId = 3; - */ - java.lang.String getComponentId(); - /** - * optional string componentId = 3; - */ - com.google.protobuf.ByteString - getComponentIdBytes(); - - /** - * optional string componentKey = 4; - */ - boolean hasComponentKey(); - /** - * optional string componentKey = 4; - */ - java.lang.String getComponentKey(); - /** - * optional string componentKey = 4; - */ - com.google.protobuf.ByteString - getComponentKeyBytes(); - - /** - * optional string componentName = 5; - */ - boolean hasComponentName(); - /** - * optional string componentName = 5; - */ - java.lang.String getComponentName(); - /** - * optional string componentName = 5; - */ - com.google.protobuf.ByteString - getComponentNameBytes(); - - /** - * optional string componentQualifier = 6; - */ - boolean hasComponentQualifier(); - /** - * optional string componentQualifier = 6; - */ - java.lang.String getComponentQualifier(); - /** - * optional string componentQualifier = 6; - */ - com.google.protobuf.ByteString - getComponentQualifierBytes(); - - /** - * optional .sonarqube.ws.ce.TaskStatus status = 7; - */ - boolean hasStatus(); - /** - * optional .sonarqube.ws.ce.TaskStatus status = 7; - */ - org.sonarqube.ws.WsCe.TaskStatus getStatus(); - - /** - * optional string submittedAt = 8; - */ - boolean hasSubmittedAt(); - /** - * optional string submittedAt = 8; - */ - java.lang.String getSubmittedAt(); - /** - * optional string submittedAt = 8; - */ - com.google.protobuf.ByteString - getSubmittedAtBytes(); - - /** - * optional string submitterLogin = 9; - */ - boolean hasSubmitterLogin(); - /** - * optional string submitterLogin = 9; - */ - java.lang.String getSubmitterLogin(); - /** - * optional string submitterLogin = 9; - */ - com.google.protobuf.ByteString - getSubmitterLoginBytes(); - - /** - * optional string startedAt = 10; - */ - boolean hasStartedAt(); - /** - * optional string startedAt = 10; - */ - java.lang.String getStartedAt(); - /** - * optional string startedAt = 10; - */ - com.google.protobuf.ByteString - getStartedAtBytes(); - - /** - * optional string executedAt = 11; - */ - boolean hasExecutedAt(); - /** - * optional string executedAt = 11; - */ - java.lang.String getExecutedAt(); - /** - * optional string executedAt = 11; - */ - com.google.protobuf.ByteString - getExecutedAtBytes(); - - /** - * optional bool isLastExecuted = 12; - */ - boolean hasIsLastExecuted(); - /** - * optional bool isLastExecuted = 12; - */ - boolean getIsLastExecuted(); - - /** - * optional int64 executionTimeMs = 13; - */ - boolean hasExecutionTimeMs(); - /** - * optional int64 executionTimeMs = 13; - */ - long getExecutionTimeMs(); - - /** - * optional bool logs = 14; - */ - boolean hasLogs(); - /** - * optional bool logs = 14; - */ - boolean getLogs(); - } - /** - * Protobuf type {@code sonarqube.ws.ce.Task} - */ - public static final class Task extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.ce.Task) - TaskOrBuilder { - // Use Task.newBuilder() to construct. - private Task(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Task() { - id_ = ""; - type_ = ""; - componentId_ = ""; - componentKey_ = ""; - componentName_ = ""; - componentQualifier_ = ""; - status_ = 0; - submittedAt_ = ""; - submitterLogin_ = ""; - startedAt_ = ""; - executedAt_ = ""; - isLastExecuted_ = false; - executionTimeMs_ = 0L; - logs_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Task( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - id_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - type_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - componentId_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - componentKey_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - componentName_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - componentQualifier_ = bs; - break; - } - case 56: { - int rawValue = input.readEnum(); - org.sonarqube.ws.WsCe.TaskStatus value = org.sonarqube.ws.WsCe.TaskStatus.valueOf(rawValue); - if (value == null) { - unknownFields.mergeVarintField(7, rawValue); - } else { - bitField0_ |= 0x00000040; - status_ = rawValue; - } - break; - } - case 66: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000080; - submittedAt_ = bs; - break; - } - case 74: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000100; - submitterLogin_ = bs; - break; - } - case 82: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000200; - startedAt_ = bs; - break; - } - case 90: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000400; - executedAt_ = bs; - break; - } - case 96: { - bitField0_ |= 0x00000800; - isLastExecuted_ = input.readBool(); - break; - } - case 104: { - bitField0_ |= 0x00001000; - executionTimeMs_ = input.readInt64(); - break; - } - case 112: { - bitField0_ |= 0x00002000; - logs_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_Task_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_Task_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsCe.Task.class, org.sonarqube.ws.WsCe.Task.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object type_; - /** - * optional string type = 2; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string type = 2; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - type_ = s; - } - return s; - } - } - /** - * optional string type = 2; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMPONENTID_FIELD_NUMBER = 3; - private volatile java.lang.Object componentId_; - /** - * optional string componentId = 3; - */ - public boolean hasComponentId() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string componentId = 3; - */ - public java.lang.String getComponentId() { - java.lang.Object ref = componentId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - componentId_ = s; - } - return s; - } - } - /** - * optional string componentId = 3; - */ - public com.google.protobuf.ByteString - getComponentIdBytes() { - java.lang.Object ref = componentId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - componentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMPONENTKEY_FIELD_NUMBER = 4; - private volatile java.lang.Object componentKey_; - /** - * optional string componentKey = 4; - */ - public boolean hasComponentKey() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string componentKey = 4; - */ - public java.lang.String getComponentKey() { - java.lang.Object ref = componentKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - componentKey_ = s; - } - return s; - } - } - /** - * optional string componentKey = 4; - */ - public com.google.protobuf.ByteString - getComponentKeyBytes() { - java.lang.Object ref = componentKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - componentKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMPONENTNAME_FIELD_NUMBER = 5; - private volatile java.lang.Object componentName_; - /** - * optional string componentName = 5; - */ - public boolean hasComponentName() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string componentName = 5; - */ - public java.lang.String getComponentName() { - java.lang.Object ref = componentName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - componentName_ = s; - } - return s; - } - } - /** - * optional string componentName = 5; - */ - public com.google.protobuf.ByteString - getComponentNameBytes() { - java.lang.Object ref = componentName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - componentName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMPONENTQUALIFIER_FIELD_NUMBER = 6; - private volatile java.lang.Object componentQualifier_; - /** - * optional string componentQualifier = 6; - */ - public boolean hasComponentQualifier() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string componentQualifier = 6; - */ - public java.lang.String getComponentQualifier() { - java.lang.Object ref = componentQualifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - componentQualifier_ = s; - } - return s; - } - } - /** - * optional string componentQualifier = 6; - */ - public com.google.protobuf.ByteString - getComponentQualifierBytes() { - java.lang.Object ref = componentQualifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - componentQualifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 7; - private int status_; - /** - * optional .sonarqube.ws.ce.TaskStatus status = 7; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional .sonarqube.ws.ce.TaskStatus status = 7; - */ - public org.sonarqube.ws.WsCe.TaskStatus getStatus() { - org.sonarqube.ws.WsCe.TaskStatus result = org.sonarqube.ws.WsCe.TaskStatus.valueOf(status_); - return result == null ? org.sonarqube.ws.WsCe.TaskStatus.PENDING : result; - } - - public static final int SUBMITTEDAT_FIELD_NUMBER = 8; - private volatile java.lang.Object submittedAt_; - /** - * optional string submittedAt = 8; - */ - public boolean hasSubmittedAt() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional string submittedAt = 8; - */ - public java.lang.String getSubmittedAt() { - java.lang.Object ref = submittedAt_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - submittedAt_ = s; - } - return s; - } - } - /** - * optional string submittedAt = 8; - */ - public com.google.protobuf.ByteString - getSubmittedAtBytes() { - java.lang.Object ref = submittedAt_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - submittedAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBMITTERLOGIN_FIELD_NUMBER = 9; - private volatile java.lang.Object submitterLogin_; - /** - * optional string submitterLogin = 9; - */ - public boolean hasSubmitterLogin() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional string submitterLogin = 9; - */ - public java.lang.String getSubmitterLogin() { - java.lang.Object ref = submitterLogin_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - submitterLogin_ = s; - } - return s; - } - } - /** - * optional string submitterLogin = 9; - */ - public com.google.protobuf.ByteString - getSubmitterLoginBytes() { - java.lang.Object ref = submitterLogin_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - submitterLogin_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STARTEDAT_FIELD_NUMBER = 10; - private volatile java.lang.Object startedAt_; - /** - * optional string startedAt = 10; - */ - public boolean hasStartedAt() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional string startedAt = 10; - */ - public java.lang.String getStartedAt() { - java.lang.Object ref = startedAt_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startedAt_ = s; - } - return s; - } - } - /** - * optional string startedAt = 10; - */ - public com.google.protobuf.ByteString - getStartedAtBytes() { - java.lang.Object ref = startedAt_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startedAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXECUTEDAT_FIELD_NUMBER = 11; - private volatile java.lang.Object executedAt_; - /** - * optional string executedAt = 11; - */ - public boolean hasExecutedAt() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional string executedAt = 11; - */ - public java.lang.String getExecutedAt() { - java.lang.Object ref = executedAt_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - executedAt_ = s; - } - return s; - } - } - /** - * optional string executedAt = 11; - */ - public com.google.protobuf.ByteString - getExecutedAtBytes() { - java.lang.Object ref = executedAt_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - executedAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ISLASTEXECUTED_FIELD_NUMBER = 12; - private boolean isLastExecuted_; - /** - * optional bool isLastExecuted = 12; - */ - public boolean hasIsLastExecuted() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional bool isLastExecuted = 12; - */ - public boolean getIsLastExecuted() { - return isLastExecuted_; - } - - public static final int EXECUTIONTIMEMS_FIELD_NUMBER = 13; - private long executionTimeMs_; - /** - * optional int64 executionTimeMs = 13; - */ - public boolean hasExecutionTimeMs() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * optional int64 executionTimeMs = 13; - */ - public long getExecutionTimeMs() { - return executionTimeMs_; - } - - public static final int LOGS_FIELD_NUMBER = 14; - private boolean logs_; - /** - * optional bool logs = 14; - */ - public boolean hasLogs() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - /** - * optional bool logs = 14; - */ - public boolean getLogs() { - return logs_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getTypeBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getComponentIdBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getComponentKeyBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getComponentNameBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getComponentQualifierBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeEnum(7, status_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeBytes(8, getSubmittedAtBytes()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeBytes(9, getSubmitterLoginBytes()); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeBytes(10, getStartedAtBytes()); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeBytes(11, getExecutedAtBytes()); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeBool(12, isLastExecuted_); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeInt64(13, executionTimeMs_); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeBool(14, logs_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getTypeBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getComponentIdBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getComponentKeyBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getComponentNameBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getComponentQualifierBytes()); - } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, status_); - } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(8, getSubmittedAtBytes()); - } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, getSubmitterLoginBytes()); - } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(10, getStartedAtBytes()); - } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(11, getExecutedAtBytes()); - } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, isLastExecuted_); - } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(13, executionTimeMs_); - } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, logs_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsCe.Task parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsCe.Task parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.Task parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsCe.Task parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.Task parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsCe.Task parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.Task parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsCe.Task parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsCe.Task parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsCe.Task parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsCe.Task prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.ce.Task} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.ce.Task) - org.sonarqube.ws.WsCe.TaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_Task_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_Task_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsCe.Task.class, org.sonarqube.ws.WsCe.Task.Builder.class); - } - - // Construct using org.sonarqube.ws.WsCe.Task.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - type_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - componentId_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - componentKey_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - componentName_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - componentQualifier_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - status_ = 0; - bitField0_ = (bitField0_ & ~0x00000040); - submittedAt_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); - submitterLogin_ = ""; - bitField0_ = (bitField0_ & ~0x00000100); - startedAt_ = ""; - bitField0_ = (bitField0_ & ~0x00000200); - executedAt_ = ""; - bitField0_ = (bitField0_ & ~0x00000400); - isLastExecuted_ = false; - bitField0_ = (bitField0_ & ~0x00000800); - executionTimeMs_ = 0L; - bitField0_ = (bitField0_ & ~0x00001000); - logs_ = false; - bitField0_ = (bitField0_ & ~0x00002000); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsCe.internal_static_sonarqube_ws_ce_Task_descriptor; - } - - public org.sonarqube.ws.WsCe.Task getDefaultInstanceForType() { - return org.sonarqube.ws.WsCe.Task.getDefaultInstance(); - } - - public org.sonarqube.ws.WsCe.Task build() { - org.sonarqube.ws.WsCe.Task result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsCe.Task buildPartial() { - org.sonarqube.ws.WsCe.Task result = new org.sonarqube.ws.WsCe.Task(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.type_ = type_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.componentId_ = componentId_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.componentKey_ = componentKey_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.componentName_ = componentName_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.componentQualifier_ = componentQualifier_; - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000040; - } - result.status_ = status_; - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000080; - } - result.submittedAt_ = submittedAt_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000100; - } - result.submitterLogin_ = submitterLogin_; - if (((from_bitField0_ & 0x00000200) == 0x00000200)) { - to_bitField0_ |= 0x00000200; - } - result.startedAt_ = startedAt_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000400; - } - result.executedAt_ = executedAt_; - if (((from_bitField0_ & 0x00000800) == 0x00000800)) { - to_bitField0_ |= 0x00000800; - } - result.isLastExecuted_ = isLastExecuted_; - if (((from_bitField0_ & 0x00001000) == 0x00001000)) { - to_bitField0_ |= 0x00001000; - } - result.executionTimeMs_ = executionTimeMs_; - if (((from_bitField0_ & 0x00002000) == 0x00002000)) { - to_bitField0_ |= 0x00002000; - } - result.logs_ = logs_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsCe.Task) { - return mergeFrom((org.sonarqube.ws.WsCe.Task)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsCe.Task other) { - if (other == org.sonarqube.ws.WsCe.Task.getDefaultInstance()) return this; - if (other.hasId()) { - bitField0_ |= 0x00000001; - id_ = other.id_; - onChanged(); - } - if (other.hasType()) { - bitField0_ |= 0x00000002; - type_ = other.type_; - onChanged(); - } - if (other.hasComponentId()) { - bitField0_ |= 0x00000004; - componentId_ = other.componentId_; - onChanged(); - } - if (other.hasComponentKey()) { - bitField0_ |= 0x00000008; - componentKey_ = other.componentKey_; - onChanged(); - } - if (other.hasComponentName()) { - bitField0_ |= 0x00000010; - componentName_ = other.componentName_; - onChanged(); - } - if (other.hasComponentQualifier()) { - bitField0_ |= 0x00000020; - componentQualifier_ = other.componentQualifier_; - onChanged(); - } - if (other.hasStatus()) { - setStatus(other.getStatus()); - } - if (other.hasSubmittedAt()) { - bitField0_ |= 0x00000080; - submittedAt_ = other.submittedAt_; - onChanged(); - } - if (other.hasSubmitterLogin()) { - bitField0_ |= 0x00000100; - submitterLogin_ = other.submitterLogin_; - onChanged(); - } - if (other.hasStartedAt()) { - bitField0_ |= 0x00000200; - startedAt_ = other.startedAt_; - onChanged(); - } - if (other.hasExecutedAt()) { - bitField0_ |= 0x00000400; - executedAt_ = other.executedAt_; - onChanged(); - } - if (other.hasIsLastExecuted()) { - setIsLastExecuted(other.getIsLastExecuted()); - } - if (other.hasExecutionTimeMs()) { - setExecutionTimeMs(other.getExecutionTimeMs()); - } - if (other.hasLogs()) { - setLogs(other.getLogs()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsCe.Task parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsCe.Task) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object type_ = ""; - /** - * optional string type = 2; - */ - public boolean hasType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string type = 2; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - type_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string type = 2; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string type = 2; - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - type_ = value; - onChanged(); - return this; - } - /** - * optional string type = 2; - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000002); - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - * optional string type = 2; - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - type_ = value; - onChanged(); - return this; - } - - private java.lang.Object componentId_ = ""; - /** - * optional string componentId = 3; - */ - public boolean hasComponentId() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string componentId = 3; - */ - public java.lang.String getComponentId() { - java.lang.Object ref = componentId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - componentId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string componentId = 3; - */ - public com.google.protobuf.ByteString - getComponentIdBytes() { - java.lang.Object ref = componentId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - componentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string componentId = 3; - */ - public Builder setComponentId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - componentId_ = value; - onChanged(); - return this; - } - /** - * optional string componentId = 3; - */ - public Builder clearComponentId() { - bitField0_ = (bitField0_ & ~0x00000004); - componentId_ = getDefaultInstance().getComponentId(); - onChanged(); - return this; - } - /** - * optional string componentId = 3; - */ - public Builder setComponentIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - componentId_ = value; - onChanged(); - return this; - } - - private java.lang.Object componentKey_ = ""; - /** - * optional string componentKey = 4; - */ - public boolean hasComponentKey() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string componentKey = 4; - */ - public java.lang.String getComponentKey() { - java.lang.Object ref = componentKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - componentKey_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string componentKey = 4; - */ - public com.google.protobuf.ByteString - getComponentKeyBytes() { - java.lang.Object ref = componentKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - componentKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string componentKey = 4; - */ - public Builder setComponentKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - componentKey_ = value; - onChanged(); - return this; - } - /** - * optional string componentKey = 4; - */ - public Builder clearComponentKey() { - bitField0_ = (bitField0_ & ~0x00000008); - componentKey_ = getDefaultInstance().getComponentKey(); - onChanged(); - return this; - } - /** - * optional string componentKey = 4; - */ - public Builder setComponentKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - componentKey_ = value; - onChanged(); - return this; - } - - private java.lang.Object componentName_ = ""; - /** - * optional string componentName = 5; - */ - public boolean hasComponentName() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string componentName = 5; - */ - public java.lang.String getComponentName() { - java.lang.Object ref = componentName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - componentName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string componentName = 5; - */ - public com.google.protobuf.ByteString - getComponentNameBytes() { - java.lang.Object ref = componentName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - componentName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string componentName = 5; - */ - public Builder setComponentName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - componentName_ = value; - onChanged(); - return this; - } - /** - * optional string componentName = 5; - */ - public Builder clearComponentName() { - bitField0_ = (bitField0_ & ~0x00000010); - componentName_ = getDefaultInstance().getComponentName(); - onChanged(); - return this; - } - /** - * optional string componentName = 5; - */ - public Builder setComponentNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - componentName_ = value; - onChanged(); - return this; - } - - private java.lang.Object componentQualifier_ = ""; - /** - * optional string componentQualifier = 6; - */ - public boolean hasComponentQualifier() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string componentQualifier = 6; - */ - public java.lang.String getComponentQualifier() { - java.lang.Object ref = componentQualifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - componentQualifier_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string componentQualifier = 6; - */ - public com.google.protobuf.ByteString - getComponentQualifierBytes() { - java.lang.Object ref = componentQualifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - componentQualifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string componentQualifier = 6; - */ - public Builder setComponentQualifier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - componentQualifier_ = value; - onChanged(); - return this; - } - /** - * optional string componentQualifier = 6; - */ - public Builder clearComponentQualifier() { - bitField0_ = (bitField0_ & ~0x00000020); - componentQualifier_ = getDefaultInstance().getComponentQualifier(); - onChanged(); - return this; - } - /** - * optional string componentQualifier = 6; - */ - public Builder setComponentQualifierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - componentQualifier_ = value; - onChanged(); - return this; - } - - private int status_ = 0; - /** - * optional .sonarqube.ws.ce.TaskStatus status = 7; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - * optional .sonarqube.ws.ce.TaskStatus status = 7; - */ - public org.sonarqube.ws.WsCe.TaskStatus getStatus() { - org.sonarqube.ws.WsCe.TaskStatus result = org.sonarqube.ws.WsCe.TaskStatus.valueOf(status_); - return result == null ? org.sonarqube.ws.WsCe.TaskStatus.PENDING : result; - } - /** - * optional .sonarqube.ws.ce.TaskStatus status = 7; - */ - public Builder setStatus(org.sonarqube.ws.WsCe.TaskStatus value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - status_ = value.getNumber(); - onChanged(); - return this; - } - /** - * optional .sonarqube.ws.ce.TaskStatus status = 7; - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000040); - status_ = 0; - onChanged(); - return this; - } - - private java.lang.Object submittedAt_ = ""; - /** - * optional string submittedAt = 8; - */ - public boolean hasSubmittedAt() { - return ((bitField0_ & 0x00000080) == 0x00000080); - } - /** - * optional string submittedAt = 8; - */ - public java.lang.String getSubmittedAt() { - java.lang.Object ref = submittedAt_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - submittedAt_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string submittedAt = 8; - */ - public com.google.protobuf.ByteString - getSubmittedAtBytes() { - java.lang.Object ref = submittedAt_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - submittedAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string submittedAt = 8; - */ - public Builder setSubmittedAt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - submittedAt_ = value; - onChanged(); - return this; - } - /** - * optional string submittedAt = 8; - */ - public Builder clearSubmittedAt() { - bitField0_ = (bitField0_ & ~0x00000080); - submittedAt_ = getDefaultInstance().getSubmittedAt(); - onChanged(); - return this; - } - /** - * optional string submittedAt = 8; - */ - public Builder setSubmittedAtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - submittedAt_ = value; - onChanged(); - return this; - } - - private java.lang.Object submitterLogin_ = ""; - /** - * optional string submitterLogin = 9; - */ - public boolean hasSubmitterLogin() { - return ((bitField0_ & 0x00000100) == 0x00000100); - } - /** - * optional string submitterLogin = 9; - */ - public java.lang.String getSubmitterLogin() { - java.lang.Object ref = submitterLogin_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - submitterLogin_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string submitterLogin = 9; - */ - public com.google.protobuf.ByteString - getSubmitterLoginBytes() { - java.lang.Object ref = submitterLogin_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - submitterLogin_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string submitterLogin = 9; - */ - public Builder setSubmitterLogin( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - submitterLogin_ = value; - onChanged(); - return this; - } - /** - * optional string submitterLogin = 9; - */ - public Builder clearSubmitterLogin() { - bitField0_ = (bitField0_ & ~0x00000100); - submitterLogin_ = getDefaultInstance().getSubmitterLogin(); - onChanged(); - return this; - } - /** - * optional string submitterLogin = 9; - */ - public Builder setSubmitterLoginBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000100; - submitterLogin_ = value; - onChanged(); - return this; - } - - private java.lang.Object startedAt_ = ""; - /** - * optional string startedAt = 10; - */ - public boolean hasStartedAt() { - return ((bitField0_ & 0x00000200) == 0x00000200); - } - /** - * optional string startedAt = 10; - */ - public java.lang.String getStartedAt() { - java.lang.Object ref = startedAt_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - startedAt_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string startedAt = 10; - */ - public com.google.protobuf.ByteString - getStartedAtBytes() { - java.lang.Object ref = startedAt_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startedAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string startedAt = 10; - */ - public Builder setStartedAt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - startedAt_ = value; - onChanged(); - return this; - } - /** - * optional string startedAt = 10; - */ - public Builder clearStartedAt() { - bitField0_ = (bitField0_ & ~0x00000200); - startedAt_ = getDefaultInstance().getStartedAt(); - onChanged(); - return this; - } - /** - * optional string startedAt = 10; - */ - public Builder setStartedAtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - startedAt_ = value; - onChanged(); - return this; - } - - private java.lang.Object executedAt_ = ""; - /** - * optional string executedAt = 11; - */ - public boolean hasExecutedAt() { - return ((bitField0_ & 0x00000400) == 0x00000400); - } - /** - * optional string executedAt = 11; - */ - public java.lang.String getExecutedAt() { - java.lang.Object ref = executedAt_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - executedAt_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string executedAt = 11; - */ - public com.google.protobuf.ByteString - getExecutedAtBytes() { - java.lang.Object ref = executedAt_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - executedAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string executedAt = 11; - */ - public Builder setExecutedAt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - executedAt_ = value; - onChanged(); - return this; - } - /** - * optional string executedAt = 11; - */ - public Builder clearExecutedAt() { - bitField0_ = (bitField0_ & ~0x00000400); - executedAt_ = getDefaultInstance().getExecutedAt(); - onChanged(); - return this; - } - /** - * optional string executedAt = 11; - */ - public Builder setExecutedAtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - executedAt_ = value; - onChanged(); - return this; - } - - private boolean isLastExecuted_ ; - /** - * optional bool isLastExecuted = 12; - */ - public boolean hasIsLastExecuted() { - return ((bitField0_ & 0x00000800) == 0x00000800); - } - /** - * optional bool isLastExecuted = 12; - */ - public boolean getIsLastExecuted() { - return isLastExecuted_; - } - /** - * optional bool isLastExecuted = 12; - */ - public Builder setIsLastExecuted(boolean value) { - bitField0_ |= 0x00000800; - isLastExecuted_ = value; - onChanged(); - return this; - } - /** - * optional bool isLastExecuted = 12; - */ - public Builder clearIsLastExecuted() { - bitField0_ = (bitField0_ & ~0x00000800); - isLastExecuted_ = false; - onChanged(); - return this; - } - - private long executionTimeMs_ ; - /** - * optional int64 executionTimeMs = 13; - */ - public boolean hasExecutionTimeMs() { - return ((bitField0_ & 0x00001000) == 0x00001000); - } - /** - * optional int64 executionTimeMs = 13; - */ - public long getExecutionTimeMs() { - return executionTimeMs_; - } - /** - * optional int64 executionTimeMs = 13; - */ - public Builder setExecutionTimeMs(long value) { - bitField0_ |= 0x00001000; - executionTimeMs_ = value; - onChanged(); - return this; - } - /** - * optional int64 executionTimeMs = 13; - */ - public Builder clearExecutionTimeMs() { - bitField0_ = (bitField0_ & ~0x00001000); - executionTimeMs_ = 0L; - onChanged(); - return this; - } - - private boolean logs_ ; - /** - * optional bool logs = 14; - */ - public boolean hasLogs() { - return ((bitField0_ & 0x00002000) == 0x00002000); - } - /** - * optional bool logs = 14; - */ - public boolean getLogs() { - return logs_; - } - /** - * optional bool logs = 14; - */ - public Builder setLogs(boolean value) { - bitField0_ |= 0x00002000; - logs_ = value; - onChanged(); - return this; - } - /** - * optional bool logs = 14; - */ - public Builder clearLogs() { - bitField0_ = (bitField0_ & ~0x00002000); - logs_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.ce.Task) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.ce.Task) - private static final org.sonarqube.ws.WsCe.Task DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsCe.Task(); - } - - public static org.sonarqube.ws.WsCe.Task getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Task parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Task(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsCe.Task getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_ce_SubmitResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_ce_SubmitResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_ce_TaskResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_ce_TaskResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_ce_QueueResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_ce_QueueResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_ce_ActivityResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_ce_ActivityResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_ce_ProjectResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_ce_ProjectResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_ce_Task_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_ce_Task_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\013ws-ce.proto\022\017sonarqube.ws.ce\032\020ws-commo" + - "ns.proto\"3\n\016SubmitResponse\022\016\n\006taskId\030\001 \001" + - "(\t\022\021\n\tprojectId\030\002 \001(\t\"3\n\014TaskResponse\022#\n" + - "\004task\030\001 \001(\0132\025.sonarqube.ws.ce.Task\"5\n\rQu" + - "eueResponse\022$\n\005tasks\030\001 \003(\0132\025.sonarqube.w" + - "s.ce.Task\"f\n\020ActivityResponse\022,\n\006paging\030" + - "\001 \001(\0132\034.sonarqube.ws.commons.Paging\022$\n\005t" + - "asks\030\002 \003(\0132\025.sonarqube.ws.ce.Task\"_\n\017Pro" + - "jectResponse\022$\n\005queue\030\001 \003(\0132\025.sonarqube." + - "ws.ce.Task\022&\n\007current\030\002 \001(\0132\025.sonarqube.", - "ws.ce.Task\"\276\002\n\004Task\022\n\n\002id\030\001 \001(\t\022\014\n\004type\030" + - "\002 \001(\t\022\023\n\013componentId\030\003 \001(\t\022\024\n\014componentK" + - "ey\030\004 \001(\t\022\025\n\rcomponentName\030\005 \001(\t\022\032\n\022compo" + - "nentQualifier\030\006 \001(\t\022+\n\006status\030\007 \001(\0162\033.so" + - "narqube.ws.ce.TaskStatus\022\023\n\013submittedAt\030" + - "\010 \001(\t\022\026\n\016submitterLogin\030\t \001(\t\022\021\n\tstarted" + - "At\030\n \001(\t\022\022\n\nexecutedAt\030\013 \001(\t\022\026\n\016isLastEx" + - "ecuted\030\014 \001(\010\022\027\n\017executionTimeMs\030\r \001(\003\022\014\n" + - "\004logs\030\016 \001(\010*Q\n\nTaskStatus\022\013\n\007PENDING\020\000\022\017" + - "\n\013IN_PROGRESS\020\001\022\013\n\007SUCCESS\020\002\022\n\n\006FAILED\020\003", - "\022\014\n\010CANCELED\020\004B\032\n\020org.sonarqube.wsB\004WsCe" + - "H\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.sonarqube.ws.Common.getDescriptor(), - }, assigner); - internal_static_sonarqube_ws_ce_SubmitResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_sonarqube_ws_ce_SubmitResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_ce_SubmitResponse_descriptor, - new java.lang.String[] { "TaskId", "ProjectId", }); - internal_static_sonarqube_ws_ce_TaskResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_sonarqube_ws_ce_TaskResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_ce_TaskResponse_descriptor, - new java.lang.String[] { "Task", }); - internal_static_sonarqube_ws_ce_QueueResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_sonarqube_ws_ce_QueueResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_ce_QueueResponse_descriptor, - new java.lang.String[] { "Tasks", }); - internal_static_sonarqube_ws_ce_ActivityResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_sonarqube_ws_ce_ActivityResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_ce_ActivityResponse_descriptor, - new java.lang.String[] { "Paging", "Tasks", }); - internal_static_sonarqube_ws_ce_ProjectResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_sonarqube_ws_ce_ProjectResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_ce_ProjectResponse_descriptor, - new java.lang.String[] { "Queue", "Current", }); - internal_static_sonarqube_ws_ce_Task_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_sonarqube_ws_ce_Task_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_ce_Task_descriptor, - new java.lang.String[] { "Id", "Type", "ComponentId", "ComponentKey", "ComponentName", "ComponentQualifier", "Status", "SubmittedAt", "SubmitterLogin", "StartedAt", "ExecutedAt", "IsLastExecuted", "ExecutionTimeMs", "Logs", }); - org.sonarqube.ws.Common.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsComponents.java b/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsComponents.java deleted file mode 100644 index 67a2de003dc..00000000000 --- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsComponents.java +++ /dev/null @@ -1,1884 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ws-components.proto - -package org.sonarqube.ws; - -public final class WsComponents { - private WsComponents() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface WsSearchResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.component.WsSearchResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - boolean hasPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - org.sonarqube.ws.Common.Paging getPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder(); - - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - java.util.List - getComponentsList(); - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - org.sonarqube.ws.WsComponents.WsSearchResponse.Component getComponents(int index); - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - int getComponentsCount(); - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - java.util.List - getComponentsOrBuilderList(); - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - org.sonarqube.ws.WsComponents.WsSearchResponse.ComponentOrBuilder getComponentsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.component.WsSearchResponse} - * - *
-   * WS api/components/search
-   * 
- */ - public static final class WsSearchResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.component.WsSearchResponse) - WsSearchResponseOrBuilder { - // Use WsSearchResponse.newBuilder() to construct. - private WsSearchResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsSearchResponse() { - components_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsSearchResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.sonarqube.ws.Common.Paging.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = paging_.toBuilder(); - } - paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(paging_); - paging_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - components_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - components_.add(input.readMessage(org.sonarqube.ws.WsComponents.WsSearchResponse.Component.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - components_ = java.util.Collections.unmodifiableList(components_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsComponents.internal_static_sonarqube_ws_component_WsSearchResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsComponents.internal_static_sonarqube_ws_component_WsSearchResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsComponents.WsSearchResponse.class, org.sonarqube.ws.WsComponents.WsSearchResponse.Builder.class); - } - - public interface ComponentOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.component.WsSearchResponse.Component) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string id = 1; - */ - boolean hasId(); - /** - * optional string id = 1; - */ - java.lang.String getId(); - /** - * optional string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * optional string key = 2; - */ - boolean hasKey(); - /** - * optional string key = 2; - */ - java.lang.String getKey(); - /** - * optional string key = 2; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string qualifier = 3; - */ - boolean hasQualifier(); - /** - * optional string qualifier = 3; - */ - java.lang.String getQualifier(); - /** - * optional string qualifier = 3; - */ - com.google.protobuf.ByteString - getQualifierBytes(); - - /** - * optional string name = 4; - */ - boolean hasName(); - /** - * optional string name = 4; - */ - java.lang.String getName(); - /** - * optional string name = 4; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.component.WsSearchResponse.Component} - */ - public static final class Component extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.component.WsSearchResponse.Component) - ComponentOrBuilder { - // Use Component.newBuilder() to construct. - private Component(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Component() { - id_ = ""; - key_ = ""; - qualifier_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Component( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - id_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - key_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - qualifier_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - name_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsComponents.internal_static_sonarqube_ws_component_WsSearchResponse_Component_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsComponents.internal_static_sonarqube_ws_component_WsSearchResponse_Component_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsComponents.WsSearchResponse.Component.class, org.sonarqube.ws.WsComponents.WsSearchResponse.Component.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - * optional string key = 2; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUALIFIER_FIELD_NUMBER = 3; - private volatile java.lang.Object qualifier_; - /** - * optional string qualifier = 3; - */ - public boolean hasQualifier() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string qualifier = 3; - */ - public java.lang.String getQualifier() { - java.lang.Object ref = qualifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - qualifier_ = s; - } - return s; - } - } - /** - * optional string qualifier = 3; - */ - public com.google.protobuf.ByteString - getQualifierBytes() { - java.lang.Object ref = qualifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - qualifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - * optional string name = 4; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string name = 4; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 4; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getQualifierBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getNameBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getQualifierBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getNameBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsComponents.WsSearchResponse.Component parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse.Component parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse.Component parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse.Component parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse.Component parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse.Component parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse.Component parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse.Component parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse.Component parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse.Component parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsComponents.WsSearchResponse.Component prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.component.WsSearchResponse.Component} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.component.WsSearchResponse.Component) - org.sonarqube.ws.WsComponents.WsSearchResponse.ComponentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsComponents.internal_static_sonarqube_ws_component_WsSearchResponse_Component_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsComponents.internal_static_sonarqube_ws_component_WsSearchResponse_Component_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsComponents.WsSearchResponse.Component.class, org.sonarqube.ws.WsComponents.WsSearchResponse.Component.Builder.class); - } - - // Construct using org.sonarqube.ws.WsComponents.WsSearchResponse.Component.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - qualifier_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsComponents.internal_static_sonarqube_ws_component_WsSearchResponse_Component_descriptor; - } - - public org.sonarqube.ws.WsComponents.WsSearchResponse.Component getDefaultInstanceForType() { - return org.sonarqube.ws.WsComponents.WsSearchResponse.Component.getDefaultInstance(); - } - - public org.sonarqube.ws.WsComponents.WsSearchResponse.Component build() { - org.sonarqube.ws.WsComponents.WsSearchResponse.Component result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsComponents.WsSearchResponse.Component buildPartial() { - org.sonarqube.ws.WsComponents.WsSearchResponse.Component result = new org.sonarqube.ws.WsComponents.WsSearchResponse.Component(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.qualifier_ = qualifier_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.name_ = name_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsComponents.WsSearchResponse.Component) { - return mergeFrom((org.sonarqube.ws.WsComponents.WsSearchResponse.Component)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsComponents.WsSearchResponse.Component other) { - if (other == org.sonarqube.ws.WsComponents.WsSearchResponse.Component.getDefaultInstance()) return this; - if (other.hasId()) { - bitField0_ |= 0x00000001; - id_ = other.id_; - onChanged(); - } - if (other.hasKey()) { - bitField0_ |= 0x00000002; - key_ = other.key_; - onChanged(); - } - if (other.hasQualifier()) { - bitField0_ |= 0x00000004; - qualifier_ = other.qualifier_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000008; - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsComponents.WsSearchResponse.Component parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsComponents.WsSearchResponse.Component) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - * optional string key = 2; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 2; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 2; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000002); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 2; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object qualifier_ = ""; - /** - * optional string qualifier = 3; - */ - public boolean hasQualifier() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string qualifier = 3; - */ - public java.lang.String getQualifier() { - java.lang.Object ref = qualifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - qualifier_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string qualifier = 3; - */ - public com.google.protobuf.ByteString - getQualifierBytes() { - java.lang.Object ref = qualifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - qualifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string qualifier = 3; - */ - public Builder setQualifier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - qualifier_ = value; - onChanged(); - return this; - } - /** - * optional string qualifier = 3; - */ - public Builder clearQualifier() { - bitField0_ = (bitField0_ & ~0x00000004); - qualifier_ = getDefaultInstance().getQualifier(); - onChanged(); - return this; - } - /** - * optional string qualifier = 3; - */ - public Builder setQualifierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - qualifier_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 4; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string name = 4; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 4; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 4; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 4; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000008); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 4; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - name_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.component.WsSearchResponse.Component) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.component.WsSearchResponse.Component) - private static final org.sonarqube.ws.WsComponents.WsSearchResponse.Component DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsComponents.WsSearchResponse.Component(); - } - - public static org.sonarqube.ws.WsComponents.WsSearchResponse.Component getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Component parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Component(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsComponents.WsSearchResponse.Component getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int PAGING_FIELD_NUMBER = 1; - private org.sonarqube.ws.Common.Paging paging_; - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - - public static final int COMPONENTS_FIELD_NUMBER = 2; - private java.util.List components_; - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public java.util.List getComponentsList() { - return components_; - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public java.util.List - getComponentsOrBuilderList() { - return components_; - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public int getComponentsCount() { - return components_.size(); - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public org.sonarqube.ws.WsComponents.WsSearchResponse.Component getComponents(int index) { - return components_.get(index); - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public org.sonarqube.ws.WsComponents.WsSearchResponse.ComponentOrBuilder getComponentsOrBuilder( - int index) { - return components_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getPaging()); - } - for (int i = 0; i < components_.size(); i++) { - output.writeMessage(2, components_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPaging()); - } - for (int i = 0; i < components_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, components_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsComponents.WsSearchResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsComponents.WsSearchResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsComponents.WsSearchResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.component.WsSearchResponse} - * - *
-     * WS api/components/search
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.component.WsSearchResponse) - org.sonarqube.ws.WsComponents.WsSearchResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsComponents.internal_static_sonarqube_ws_component_WsSearchResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsComponents.internal_static_sonarqube_ws_component_WsSearchResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsComponents.WsSearchResponse.class, org.sonarqube.ws.WsComponents.WsSearchResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.WsComponents.WsSearchResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPagingFieldBuilder(); - getComponentsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (pagingBuilder_ == null) { - paging_ = null; - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (componentsBuilder_ == null) { - components_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - componentsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsComponents.internal_static_sonarqube_ws_component_WsSearchResponse_descriptor; - } - - public org.sonarqube.ws.WsComponents.WsSearchResponse getDefaultInstanceForType() { - return org.sonarqube.ws.WsComponents.WsSearchResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.WsComponents.WsSearchResponse build() { - org.sonarqube.ws.WsComponents.WsSearchResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsComponents.WsSearchResponse buildPartial() { - org.sonarqube.ws.WsComponents.WsSearchResponse result = new org.sonarqube.ws.WsComponents.WsSearchResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (pagingBuilder_ == null) { - result.paging_ = paging_; - } else { - result.paging_ = pagingBuilder_.build(); - } - if (componentsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - components_ = java.util.Collections.unmodifiableList(components_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.components_ = components_; - } else { - result.components_ = componentsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsComponents.WsSearchResponse) { - return mergeFrom((org.sonarqube.ws.WsComponents.WsSearchResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsComponents.WsSearchResponse other) { - if (other == org.sonarqube.ws.WsComponents.WsSearchResponse.getDefaultInstance()) return this; - if (other.hasPaging()) { - mergePaging(other.getPaging()); - } - if (componentsBuilder_ == null) { - if (!other.components_.isEmpty()) { - if (components_.isEmpty()) { - components_ = other.components_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureComponentsIsMutable(); - components_.addAll(other.components_); - } - onChanged(); - } - } else { - if (!other.components_.isEmpty()) { - if (componentsBuilder_.isEmpty()) { - componentsBuilder_.dispose(); - componentsBuilder_ = null; - components_ = other.components_; - bitField0_ = (bitField0_ & ~0x00000002); - componentsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getComponentsFieldBuilder() : null; - } else { - componentsBuilder_.addAllMessages(other.components_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsComponents.WsSearchResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsComponents.WsSearchResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.Common.Paging paging_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_; - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - if (pagingBuilder_ == null) { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } else { - return pagingBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder setPaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - paging_ = value; - onChanged(); - } else { - pagingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder setPaging( - org.sonarqube.ws.Common.Paging.Builder builderForValue) { - if (pagingBuilder_ == null) { - paging_ = builderForValue.build(); - onChanged(); - } else { - pagingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder mergePaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - paging_ != null && - paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) { - paging_ = - org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial(); - } else { - paging_ = value; - } - onChanged(); - } else { - pagingBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder clearPaging() { - if (pagingBuilder_ == null) { - paging_ = null; - onChanged(); - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPagingFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - if (pagingBuilder_ != null) { - return pagingBuilder_.getMessageOrBuilder(); - } else { - return paging_ == null ? - org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> - getPagingFieldBuilder() { - if (pagingBuilder_ == null) { - pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>( - getPaging(), - getParentForChildren(), - isClean()); - paging_ = null; - } - return pagingBuilder_; - } - - private java.util.List components_ = - java.util.Collections.emptyList(); - private void ensureComponentsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - components_ = new java.util.ArrayList(components_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsComponents.WsSearchResponse.Component, org.sonarqube.ws.WsComponents.WsSearchResponse.Component.Builder, org.sonarqube.ws.WsComponents.WsSearchResponse.ComponentOrBuilder> componentsBuilder_; - - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public java.util.List getComponentsList() { - if (componentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(components_); - } else { - return componentsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public int getComponentsCount() { - if (componentsBuilder_ == null) { - return components_.size(); - } else { - return componentsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public org.sonarqube.ws.WsComponents.WsSearchResponse.Component getComponents(int index) { - if (componentsBuilder_ == null) { - return components_.get(index); - } else { - return componentsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public Builder setComponents( - int index, org.sonarqube.ws.WsComponents.WsSearchResponse.Component value) { - if (componentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentsIsMutable(); - components_.set(index, value); - onChanged(); - } else { - componentsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public Builder setComponents( - int index, org.sonarqube.ws.WsComponents.WsSearchResponse.Component.Builder builderForValue) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - components_.set(index, builderForValue.build()); - onChanged(); - } else { - componentsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public Builder addComponents(org.sonarqube.ws.WsComponents.WsSearchResponse.Component value) { - if (componentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentsIsMutable(); - components_.add(value); - onChanged(); - } else { - componentsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public Builder addComponents( - int index, org.sonarqube.ws.WsComponents.WsSearchResponse.Component value) { - if (componentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureComponentsIsMutable(); - components_.add(index, value); - onChanged(); - } else { - componentsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public Builder addComponents( - org.sonarqube.ws.WsComponents.WsSearchResponse.Component.Builder builderForValue) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - components_.add(builderForValue.build()); - onChanged(); - } else { - componentsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public Builder addComponents( - int index, org.sonarqube.ws.WsComponents.WsSearchResponse.Component.Builder builderForValue) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - components_.add(index, builderForValue.build()); - onChanged(); - } else { - componentsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public Builder addAllComponents( - java.lang.Iterable values) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, components_); - onChanged(); - } else { - componentsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public Builder clearComponents() { - if (componentsBuilder_ == null) { - components_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - componentsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public Builder removeComponents(int index) { - if (componentsBuilder_ == null) { - ensureComponentsIsMutable(); - components_.remove(index); - onChanged(); - } else { - componentsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public org.sonarqube.ws.WsComponents.WsSearchResponse.Component.Builder getComponentsBuilder( - int index) { - return getComponentsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public org.sonarqube.ws.WsComponents.WsSearchResponse.ComponentOrBuilder getComponentsOrBuilder( - int index) { - if (componentsBuilder_ == null) { - return components_.get(index); } else { - return componentsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public java.util.List - getComponentsOrBuilderList() { - if (componentsBuilder_ != null) { - return componentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(components_); - } - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public org.sonarqube.ws.WsComponents.WsSearchResponse.Component.Builder addComponentsBuilder() { - return getComponentsFieldBuilder().addBuilder( - org.sonarqube.ws.WsComponents.WsSearchResponse.Component.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public org.sonarqube.ws.WsComponents.WsSearchResponse.Component.Builder addComponentsBuilder( - int index) { - return getComponentsFieldBuilder().addBuilder( - index, org.sonarqube.ws.WsComponents.WsSearchResponse.Component.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.component.WsSearchResponse.Component components = 2; - */ - public java.util.List - getComponentsBuilderList() { - return getComponentsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsComponents.WsSearchResponse.Component, org.sonarqube.ws.WsComponents.WsSearchResponse.Component.Builder, org.sonarqube.ws.WsComponents.WsSearchResponse.ComponentOrBuilder> - getComponentsFieldBuilder() { - if (componentsBuilder_ == null) { - componentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsComponents.WsSearchResponse.Component, org.sonarqube.ws.WsComponents.WsSearchResponse.Component.Builder, org.sonarqube.ws.WsComponents.WsSearchResponse.ComponentOrBuilder>( - components_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - components_ = null; - } - return componentsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.component.WsSearchResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.component.WsSearchResponse) - private static final org.sonarqube.ws.WsComponents.WsSearchResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsComponents.WsSearchResponse(); - } - - public static org.sonarqube.ws.WsComponents.WsSearchResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsSearchResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsSearchResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsComponents.WsSearchResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_component_WsSearchResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_component_WsSearchResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_component_WsSearchResponse_Component_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_component_WsSearchResponse_Component_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\023ws-components.proto\022\026sonarqube.ws.comp" + - "onent\032\020ws-commons.proto\"\317\001\n\020WsSearchResp" + - "onse\022,\n\006paging\030\001 \001(\0132\034.sonarqube.ws.comm" + - "ons.Paging\022F\n\ncomponents\030\002 \003(\01322.sonarqu" + - "be.ws.component.WsSearchResponse.Compone" + - "nt\032E\n\tComponent\022\n\n\002id\030\001 \001(\t\022\013\n\003key\030\002 \001(\t" + - "\022\021\n\tqualifier\030\003 \001(\t\022\014\n\004name\030\004 \001(\tB\"\n\020org" + - ".sonarqube.wsB\014WsComponentsH\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.sonarqube.ws.Common.getDescriptor(), - }, assigner); - internal_static_sonarqube_ws_component_WsSearchResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_sonarqube_ws_component_WsSearchResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_component_WsSearchResponse_descriptor, - new java.lang.String[] { "Paging", "Components", }); - internal_static_sonarqube_ws_component_WsSearchResponse_Component_descriptor = - internal_static_sonarqube_ws_component_WsSearchResponse_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_component_WsSearchResponse_Component_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_component_WsSearchResponse_Component_descriptor, - new java.lang.String[] { "Id", "Key", "Qualifier", "Name", }); - org.sonarqube.ws.Common.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsPermissions.java b/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsPermissions.java deleted file mode 100644 index 97df54a7bba..00000000000 --- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/WsPermissions.java +++ /dev/null @@ -1,12590 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: ws-permissions.proto - -package org.sonarqube.ws; - -public final class WsPermissions { - private WsPermissions() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - } - public interface WsUsersResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsUsersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - boolean hasPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - org.sonarqube.ws.Common.Paging getPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder(); - - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - java.util.List - getUsersList(); - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - org.sonarqube.ws.WsPermissions.User getUsers(int index); - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - int getUsersCount(); - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - java.util.List - getUsersOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - org.sonarqube.ws.WsPermissions.UserOrBuilder getUsersOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsUsersResponse} - * - *
-   * WS api/permissions/users for internal use only
-   * and WS api/permissions/template_users for internal use only
-   * 
- */ - public static final class WsUsersResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsUsersResponse) - WsUsersResponseOrBuilder { - // Use WsUsersResponse.newBuilder() to construct. - private WsUsersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsUsersResponse() { - users_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsUsersResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.sonarqube.ws.Common.Paging.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = paging_.toBuilder(); - } - paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(paging_); - paging_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - users_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - users_.add(input.readMessage(org.sonarqube.ws.WsPermissions.User.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - users_ = java.util.Collections.unmodifiableList(users_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsUsersResponse.class, org.sonarqube.ws.WsPermissions.WsUsersResponse.Builder.class); - } - - private int bitField0_; - public static final int PAGING_FIELD_NUMBER = 1; - private org.sonarqube.ws.Common.Paging paging_; - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - - public static final int USERS_FIELD_NUMBER = 2; - private java.util.List users_; - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public java.util.List getUsersList() { - return users_; - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public java.util.List - getUsersOrBuilderList() { - return users_; - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public int getUsersCount() { - return users_.size(); - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public org.sonarqube.ws.WsPermissions.User getUsers(int index) { - return users_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public org.sonarqube.ws.WsPermissions.UserOrBuilder getUsersOrBuilder( - int index) { - return users_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getPaging()); - } - for (int i = 0; i < users_.size(); i++) { - output.writeMessage(2, users_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPaging()); - } - for (int i = 0; i < users_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, users_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsUsersResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsUsersResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsUsersResponse} - * - *
-     * WS api/permissions/users for internal use only
-     * and WS api/permissions/template_users for internal use only
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsUsersResponse) - org.sonarqube.ws.WsPermissions.WsUsersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsUsersResponse.class, org.sonarqube.ws.WsPermissions.WsUsersResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.WsPermissions.WsUsersResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPagingFieldBuilder(); - getUsersFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (pagingBuilder_ == null) { - paging_ = null; - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (usersBuilder_ == null) { - users_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - usersBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor; - } - - public org.sonarqube.ws.WsPermissions.WsUsersResponse getDefaultInstanceForType() { - return org.sonarqube.ws.WsPermissions.WsUsersResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.WsPermissions.WsUsersResponse build() { - org.sonarqube.ws.WsPermissions.WsUsersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsPermissions.WsUsersResponse buildPartial() { - org.sonarqube.ws.WsPermissions.WsUsersResponse result = new org.sonarqube.ws.WsPermissions.WsUsersResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (pagingBuilder_ == null) { - result.paging_ = paging_; - } else { - result.paging_ = pagingBuilder_.build(); - } - if (usersBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - users_ = java.util.Collections.unmodifiableList(users_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.users_ = users_; - } else { - result.users_ = usersBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsPermissions.WsUsersResponse) { - return mergeFrom((org.sonarqube.ws.WsPermissions.WsUsersResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsUsersResponse other) { - if (other == org.sonarqube.ws.WsPermissions.WsUsersResponse.getDefaultInstance()) return this; - if (other.hasPaging()) { - mergePaging(other.getPaging()); - } - if (usersBuilder_ == null) { - if (!other.users_.isEmpty()) { - if (users_.isEmpty()) { - users_ = other.users_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureUsersIsMutable(); - users_.addAll(other.users_); - } - onChanged(); - } - } else { - if (!other.users_.isEmpty()) { - if (usersBuilder_.isEmpty()) { - usersBuilder_.dispose(); - usersBuilder_ = null; - users_ = other.users_; - bitField0_ = (bitField0_ & ~0x00000002); - usersBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getUsersFieldBuilder() : null; - } else { - usersBuilder_.addAllMessages(other.users_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsPermissions.WsUsersResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsPermissions.WsUsersResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.Common.Paging paging_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_; - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - if (pagingBuilder_ == null) { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } else { - return pagingBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder setPaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - paging_ = value; - onChanged(); - } else { - pagingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder setPaging( - org.sonarqube.ws.Common.Paging.Builder builderForValue) { - if (pagingBuilder_ == null) { - paging_ = builderForValue.build(); - onChanged(); - } else { - pagingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder mergePaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - paging_ != null && - paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) { - paging_ = - org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial(); - } else { - paging_ = value; - } - onChanged(); - } else { - pagingBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder clearPaging() { - if (pagingBuilder_ == null) { - paging_ = null; - onChanged(); - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPagingFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - if (pagingBuilder_ != null) { - return pagingBuilder_.getMessageOrBuilder(); - } else { - return paging_ == null ? - org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> - getPagingFieldBuilder() { - if (pagingBuilder_ == null) { - pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>( - getPaging(), - getParentForChildren(), - isClean()); - paging_ = null; - } - return pagingBuilder_; - } - - private java.util.List users_ = - java.util.Collections.emptyList(); - private void ensureUsersIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - users_ = new java.util.ArrayList(users_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.User, org.sonarqube.ws.WsPermissions.User.Builder, org.sonarqube.ws.WsPermissions.UserOrBuilder> usersBuilder_; - - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public java.util.List getUsersList() { - if (usersBuilder_ == null) { - return java.util.Collections.unmodifiableList(users_); - } else { - return usersBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public int getUsersCount() { - if (usersBuilder_ == null) { - return users_.size(); - } else { - return usersBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public org.sonarqube.ws.WsPermissions.User getUsers(int index) { - if (usersBuilder_ == null) { - return users_.get(index); - } else { - return usersBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public Builder setUsers( - int index, org.sonarqube.ws.WsPermissions.User value) { - if (usersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUsersIsMutable(); - users_.set(index, value); - onChanged(); - } else { - usersBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public Builder setUsers( - int index, org.sonarqube.ws.WsPermissions.User.Builder builderForValue) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.set(index, builderForValue.build()); - onChanged(); - } else { - usersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public Builder addUsers(org.sonarqube.ws.WsPermissions.User value) { - if (usersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUsersIsMutable(); - users_.add(value); - onChanged(); - } else { - usersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public Builder addUsers( - int index, org.sonarqube.ws.WsPermissions.User value) { - if (usersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUsersIsMutable(); - users_.add(index, value); - onChanged(); - } else { - usersBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public Builder addUsers( - org.sonarqube.ws.WsPermissions.User.Builder builderForValue) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.add(builderForValue.build()); - onChanged(); - } else { - usersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public Builder addUsers( - int index, org.sonarqube.ws.WsPermissions.User.Builder builderForValue) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.add(index, builderForValue.build()); - onChanged(); - } else { - usersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public Builder addAllUsers( - java.lang.Iterable values) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, users_); - onChanged(); - } else { - usersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public Builder clearUsers() { - if (usersBuilder_ == null) { - users_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - usersBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public Builder removeUsers(int index) { - if (usersBuilder_ == null) { - ensureUsersIsMutable(); - users_.remove(index); - onChanged(); - } else { - usersBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public org.sonarqube.ws.WsPermissions.User.Builder getUsersBuilder( - int index) { - return getUsersFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public org.sonarqube.ws.WsPermissions.UserOrBuilder getUsersOrBuilder( - int index) { - if (usersBuilder_ == null) { - return users_.get(index); } else { - return usersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public java.util.List - getUsersOrBuilderList() { - if (usersBuilder_ != null) { - return usersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(users_); - } - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public org.sonarqube.ws.WsPermissions.User.Builder addUsersBuilder() { - return getUsersFieldBuilder().addBuilder( - org.sonarqube.ws.WsPermissions.User.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public org.sonarqube.ws.WsPermissions.User.Builder addUsersBuilder( - int index) { - return getUsersFieldBuilder().addBuilder( - index, org.sonarqube.ws.WsPermissions.User.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.User users = 2; - */ - public java.util.List - getUsersBuilderList() { - return getUsersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.User, org.sonarqube.ws.WsPermissions.User.Builder, org.sonarqube.ws.WsPermissions.UserOrBuilder> - getUsersFieldBuilder() { - if (usersBuilder_ == null) { - usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.User, org.sonarqube.ws.WsPermissions.User.Builder, org.sonarqube.ws.WsPermissions.UserOrBuilder>( - users_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - users_ = null; - } - return usersBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsUsersResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsUsersResponse) - private static final org.sonarqube.ws.WsPermissions.WsUsersResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsUsersResponse(); - } - - public static org.sonarqube.ws.WsPermissions.WsUsersResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsUsersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsUsersResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsPermissions.WsUsersResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WsGroupsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsGroupsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - boolean hasPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - org.sonarqube.ws.Common.Paging getPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder(); - - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - java.util.List - getGroupsList(); - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - org.sonarqube.ws.WsPermissions.Group getGroups(int index); - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - int getGroupsCount(); - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - java.util.List - getGroupsOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - org.sonarqube.ws.WsPermissions.GroupOrBuilder getGroupsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsGroupsResponse} - * - *
-   * WS api/permissions/groups for internal use only
-   * and WS api/permissions/template_groups for internal use only
-   * 
- */ - public static final class WsGroupsResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsGroupsResponse) - WsGroupsResponseOrBuilder { - // Use WsGroupsResponse.newBuilder() to construct. - private WsGroupsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsGroupsResponse() { - groups_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsGroupsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.sonarqube.ws.Common.Paging.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = paging_.toBuilder(); - } - paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(paging_); - paging_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - groups_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - groups_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Group.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - groups_ = java.util.Collections.unmodifiableList(groups_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsGroupsResponse.class, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Builder.class); - } - - private int bitField0_; - public static final int PAGING_FIELD_NUMBER = 1; - private org.sonarqube.ws.Common.Paging paging_; - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - - public static final int GROUPS_FIELD_NUMBER = 2; - private java.util.List groups_; - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public java.util.List getGroupsList() { - return groups_; - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public java.util.List - getGroupsOrBuilderList() { - return groups_; - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public int getGroupsCount() { - return groups_.size(); - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public org.sonarqube.ws.WsPermissions.Group getGroups(int index) { - return groups_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public org.sonarqube.ws.WsPermissions.GroupOrBuilder getGroupsOrBuilder( - int index) { - return groups_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getPaging()); - } - for (int i = 0; i < groups_.size(); i++) { - output.writeMessage(2, groups_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPaging()); - } - for (int i = 0; i < groups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, groups_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsGroupsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsGroupsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsGroupsResponse} - * - *
-     * WS api/permissions/groups for internal use only
-     * and WS api/permissions/template_groups for internal use only
-     * 
- */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsGroupsResponse) - org.sonarqube.ws.WsPermissions.WsGroupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsGroupsResponse.class, org.sonarqube.ws.WsPermissions.WsGroupsResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.WsPermissions.WsGroupsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPagingFieldBuilder(); - getGroupsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (pagingBuilder_ == null) { - paging_ = null; - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (groupsBuilder_ == null) { - groups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - groupsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor; - } - - public org.sonarqube.ws.WsPermissions.WsGroupsResponse getDefaultInstanceForType() { - return org.sonarqube.ws.WsPermissions.WsGroupsResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.WsPermissions.WsGroupsResponse build() { - org.sonarqube.ws.WsPermissions.WsGroupsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsPermissions.WsGroupsResponse buildPartial() { - org.sonarqube.ws.WsPermissions.WsGroupsResponse result = new org.sonarqube.ws.WsPermissions.WsGroupsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (pagingBuilder_ == null) { - result.paging_ = paging_; - } else { - result.paging_ = pagingBuilder_.build(); - } - if (groupsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - groups_ = java.util.Collections.unmodifiableList(groups_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.groups_ = groups_; - } else { - result.groups_ = groupsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsPermissions.WsGroupsResponse) { - return mergeFrom((org.sonarqube.ws.WsPermissions.WsGroupsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsGroupsResponse other) { - if (other == org.sonarqube.ws.WsPermissions.WsGroupsResponse.getDefaultInstance()) return this; - if (other.hasPaging()) { - mergePaging(other.getPaging()); - } - if (groupsBuilder_ == null) { - if (!other.groups_.isEmpty()) { - if (groups_.isEmpty()) { - groups_ = other.groups_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureGroupsIsMutable(); - groups_.addAll(other.groups_); - } - onChanged(); - } - } else { - if (!other.groups_.isEmpty()) { - if (groupsBuilder_.isEmpty()) { - groupsBuilder_.dispose(); - groupsBuilder_ = null; - groups_ = other.groups_; - bitField0_ = (bitField0_ & ~0x00000002); - groupsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getGroupsFieldBuilder() : null; - } else { - groupsBuilder_.addAllMessages(other.groups_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsPermissions.WsGroupsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsPermissions.WsGroupsResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.Common.Paging paging_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_; - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - if (pagingBuilder_ == null) { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } else { - return pagingBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder setPaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - paging_ = value; - onChanged(); - } else { - pagingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder setPaging( - org.sonarqube.ws.Common.Paging.Builder builderForValue) { - if (pagingBuilder_ == null) { - paging_ = builderForValue.build(); - onChanged(); - } else { - pagingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder mergePaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - paging_ != null && - paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) { - paging_ = - org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial(); - } else { - paging_ = value; - } - onChanged(); - } else { - pagingBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder clearPaging() { - if (pagingBuilder_ == null) { - paging_ = null; - onChanged(); - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPagingFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - if (pagingBuilder_ != null) { - return pagingBuilder_.getMessageOrBuilder(); - } else { - return paging_ == null ? - org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> - getPagingFieldBuilder() { - if (pagingBuilder_ == null) { - pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>( - getPaging(), - getParentForChildren(), - isClean()); - paging_ = null; - } - return pagingBuilder_; - } - - private java.util.List groups_ = - java.util.Collections.emptyList(); - private void ensureGroupsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - groups_ = new java.util.ArrayList(groups_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Group, org.sonarqube.ws.WsPermissions.Group.Builder, org.sonarqube.ws.WsPermissions.GroupOrBuilder> groupsBuilder_; - - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public java.util.List getGroupsList() { - if (groupsBuilder_ == null) { - return java.util.Collections.unmodifiableList(groups_); - } else { - return groupsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public int getGroupsCount() { - if (groupsBuilder_ == null) { - return groups_.size(); - } else { - return groupsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public org.sonarqube.ws.WsPermissions.Group getGroups(int index) { - if (groupsBuilder_ == null) { - return groups_.get(index); - } else { - return groupsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public Builder setGroups( - int index, org.sonarqube.ws.WsPermissions.Group value) { - if (groupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupsIsMutable(); - groups_.set(index, value); - onChanged(); - } else { - groupsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public Builder setGroups( - int index, org.sonarqube.ws.WsPermissions.Group.Builder builderForValue) { - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); - groups_.set(index, builderForValue.build()); - onChanged(); - } else { - groupsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public Builder addGroups(org.sonarqube.ws.WsPermissions.Group value) { - if (groupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupsIsMutable(); - groups_.add(value); - onChanged(); - } else { - groupsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public Builder addGroups( - int index, org.sonarqube.ws.WsPermissions.Group value) { - if (groupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupsIsMutable(); - groups_.add(index, value); - onChanged(); - } else { - groupsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public Builder addGroups( - org.sonarqube.ws.WsPermissions.Group.Builder builderForValue) { - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); - groups_.add(builderForValue.build()); - onChanged(); - } else { - groupsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public Builder addGroups( - int index, org.sonarqube.ws.WsPermissions.Group.Builder builderForValue) { - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); - groups_.add(index, builderForValue.build()); - onChanged(); - } else { - groupsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public Builder addAllGroups( - java.lang.Iterable values) { - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, groups_); - onChanged(); - } else { - groupsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public Builder clearGroups() { - if (groupsBuilder_ == null) { - groups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - groupsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public Builder removeGroups(int index) { - if (groupsBuilder_ == null) { - ensureGroupsIsMutable(); - groups_.remove(index); - onChanged(); - } else { - groupsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public org.sonarqube.ws.WsPermissions.Group.Builder getGroupsBuilder( - int index) { - return getGroupsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public org.sonarqube.ws.WsPermissions.GroupOrBuilder getGroupsOrBuilder( - int index) { - if (groupsBuilder_ == null) { - return groups_.get(index); } else { - return groupsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public java.util.List - getGroupsOrBuilderList() { - if (groupsBuilder_ != null) { - return groupsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(groups_); - } - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public org.sonarqube.ws.WsPermissions.Group.Builder addGroupsBuilder() { - return getGroupsFieldBuilder().addBuilder( - org.sonarqube.ws.WsPermissions.Group.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public org.sonarqube.ws.WsPermissions.Group.Builder addGroupsBuilder( - int index) { - return getGroupsFieldBuilder().addBuilder( - index, org.sonarqube.ws.WsPermissions.Group.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Group groups = 2; - */ - public java.util.List - getGroupsBuilderList() { - return getGroupsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Group, org.sonarqube.ws.WsPermissions.Group.Builder, org.sonarqube.ws.WsPermissions.GroupOrBuilder> - getGroupsFieldBuilder() { - if (groupsBuilder_ == null) { - groupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Group, org.sonarqube.ws.WsPermissions.Group.Builder, org.sonarqube.ws.WsPermissions.GroupOrBuilder>( - groups_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - groups_ = null; - } - return groupsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsGroupsResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsGroupsResponse) - private static final org.sonarqube.ws.WsPermissions.WsGroupsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsGroupsResponse(); - } - - public static org.sonarqube.ws.WsPermissions.WsGroupsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsGroupsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsGroupsResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsPermissions.WsGroupsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WsSearchGlobalPermissionsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - java.util.List - getPermissionsList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - org.sonarqube.ws.WsPermissions.Permission getPermissions(int index); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - int getPermissionsCount(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - java.util.List - getPermissionsOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse} - */ - public static final class WsSearchGlobalPermissionsResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse) - WsSearchGlobalPermissionsResponseOrBuilder { - // Use WsSearchGlobalPermissionsResponse.newBuilder() to construct. - private WsSearchGlobalPermissionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsSearchGlobalPermissionsResponse() { - permissions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsSearchGlobalPermissionsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - permissions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - permissions_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Permission.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.class, org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.Builder.class); - } - - public static final int PERMISSIONS_FIELD_NUMBER = 1; - private java.util.List permissions_; - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public java.util.List getPermissionsList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public java.util.List - getPermissionsOrBuilderList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public int getPermissionsCount() { - return permissions_.size(); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { - return permissions_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - return permissions_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < permissions_.size(); i++) { - output.writeMessage(1, permissions_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < permissions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, permissions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse) - org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.class, org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPermissionsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - permissionsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor; - } - - public org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse getDefaultInstanceForType() { - return org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse build() { - org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse buildPartial() { - org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse result = new org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse(this); - int from_bitField0_ = bitField0_; - if (permissionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.permissions_ = permissions_; - } else { - result.permissions_ = permissionsBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse) { - return mergeFrom((org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse other) { - if (other == org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse.getDefaultInstance()) return this; - if (permissionsBuilder_ == null) { - if (!other.permissions_.isEmpty()) { - if (permissions_.isEmpty()) { - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePermissionsIsMutable(); - permissions_.addAll(other.permissions_); - } - onChanged(); - } - } else { - if (!other.permissions_.isEmpty()) { - if (permissionsBuilder_.isEmpty()) { - permissionsBuilder_.dispose(); - permissionsBuilder_ = null; - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000001); - permissionsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getPermissionsFieldBuilder() : null; - } else { - permissionsBuilder_.addAllMessages(other.permissions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List permissions_ = - java.util.Collections.emptyList(); - private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - permissions_ = new java.util.ArrayList(permissions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> permissionsBuilder_; - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public java.util.List getPermissionsList() { - if (permissionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(permissions_); - } else { - return permissionsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public int getPermissionsCount() { - if (permissionsBuilder_ == null) { - return permissions_.size(); - } else { - return permissionsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); - } else { - return permissionsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.set(index, value); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.set(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder addPermissions(org.sonarqube.ws.WsPermissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(value); - onChanged(); - } else { - permissionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(index, value); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder addPermissions( - org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder addAllPermissions( - java.lang.Iterable values) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); - onChanged(); - } else { - permissionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder clearPermissions() { - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - permissionsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public Builder removePermissions(int index) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.remove(index); - onChanged(); - } else { - permissionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public org.sonarqube.ws.WsPermissions.Permission.Builder getPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); } else { - return permissionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public java.util.List - getPermissionsOrBuilderList() { - if (permissionsBuilder_ != null) { - return permissionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(permissions_); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder() { - return getPermissionsFieldBuilder().addBuilder( - org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().addBuilder( - index, org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 1; - */ - public java.util.List - getPermissionsBuilderList() { - return getPermissionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> - getPermissionsFieldBuilder() { - if (permissionsBuilder_ == null) { - permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>( - permissions_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - permissions_ = null; - } - return permissionsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse) - private static final org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse(); - } - - public static org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsSearchGlobalPermissionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsSearchGlobalPermissionsResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsPermissions.WsSearchGlobalPermissionsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WsSearchProjectPermissionsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - boolean hasPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - org.sonarqube.ws.Common.Paging getPaging(); - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder(); - - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - java.util.List - getProjectsList(); - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project getProjects(int index); - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - int getProjectsCount(); - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - java.util.List - getProjectsOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder getProjectsOrBuilder( - int index); - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - java.util.List - getPermissionsList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - org.sonarqube.ws.WsPermissions.Permission getPermissions(int index); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - int getPermissionsCount(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - java.util.List - getPermissionsOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsSearchProjectPermissionsResponse} - */ - public static final class WsSearchProjectPermissionsResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse) - WsSearchProjectPermissionsResponseOrBuilder { - // Use WsSearchProjectPermissionsResponse.newBuilder() to construct. - private WsSearchProjectPermissionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsSearchProjectPermissionsResponse() { - projects_ = java.util.Collections.emptyList(); - permissions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsSearchProjectPermissionsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.sonarqube.ws.Common.Paging.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = paging_.toBuilder(); - } - paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(paging_); - paging_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - projects_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - projects_.add(input.readMessage(org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.PARSER, extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - permissions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - permissions_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Permission.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - projects_ = java.util.Collections.unmodifiableList(projects_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.class, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Builder.class); - } - - public interface ProjectOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string id = 1; - */ - boolean hasId(); - /** - * optional string id = 1; - */ - java.lang.String getId(); - /** - * optional string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * optional string key = 2; - */ - boolean hasKey(); - /** - * optional string key = 2; - */ - java.lang.String getKey(); - /** - * optional string key = 2; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string qualifier = 3; - */ - boolean hasQualifier(); - /** - * optional string qualifier = 3; - */ - java.lang.String getQualifier(); - /** - * optional string qualifier = 3; - */ - com.google.protobuf.ByteString - getQualifierBytes(); - - /** - * optional string name = 4; - */ - boolean hasName(); - /** - * optional string name = 4; - */ - java.lang.String getName(); - /** - * optional string name = 4; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - java.util.List - getPermissionsList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - org.sonarqube.ws.WsPermissions.Permission getPermissions(int index); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - int getPermissionsCount(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - java.util.List - getPermissionsOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project} - */ - public static final class Project extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project) - ProjectOrBuilder { - // Use Project.newBuilder() to construct. - private Project(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Project() { - id_ = ""; - key_ = ""; - qualifier_ = ""; - name_ = ""; - permissions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Project( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - id_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - key_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - qualifier_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - name_ = bs; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - permissions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - permissions_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Permission.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.class, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object key_; - /** - * optional string key = 2; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUALIFIER_FIELD_NUMBER = 3; - private volatile java.lang.Object qualifier_; - /** - * optional string qualifier = 3; - */ - public boolean hasQualifier() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string qualifier = 3; - */ - public java.lang.String getQualifier() { - java.lang.Object ref = qualifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - qualifier_ = s; - } - return s; - } - } - /** - * optional string qualifier = 3; - */ - public com.google.protobuf.ByteString - getQualifierBytes() { - java.lang.Object ref = qualifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - qualifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - * optional string name = 4; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string name = 4; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 4; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PERMISSIONS_FIELD_NUMBER = 5; - private java.util.List permissions_; - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public java.util.List getPermissionsList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public java.util.List - getPermissionsOrBuilderList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public int getPermissionsCount() { - return permissions_.size(); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { - return permissions_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - return permissions_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getQualifierBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getNameBytes()); - } - for (int i = 0; i < permissions_.size(); i++) { - output.writeMessage(5, permissions_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getKeyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getQualifierBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getNameBytes()); - } - for (int i = 0; i < permissions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, permissions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project) - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.class, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder.class); - } - - // Construct using org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPermissionsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - qualifier_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - permissionsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor; - } - - public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project getDefaultInstanceForType() { - return org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.getDefaultInstance(); - } - - public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project build() { - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project buildPartial() { - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project result = new org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.qualifier_ = qualifier_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.name_ = name_; - if (permissionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) == 0x00000010)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.permissions_ = permissions_; - } else { - result.permissions_ = permissionsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project) { - return mergeFrom((org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project other) { - if (other == org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.getDefaultInstance()) return this; - if (other.hasId()) { - bitField0_ |= 0x00000001; - id_ = other.id_; - onChanged(); - } - if (other.hasKey()) { - bitField0_ |= 0x00000002; - key_ = other.key_; - onChanged(); - } - if (other.hasQualifier()) { - bitField0_ |= 0x00000004; - qualifier_ = other.qualifier_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000008; - name_ = other.name_; - onChanged(); - } - if (permissionsBuilder_ == null) { - if (!other.permissions_.isEmpty()) { - if (permissions_.isEmpty()) { - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensurePermissionsIsMutable(); - permissions_.addAll(other.permissions_); - } - onChanged(); - } - } else { - if (!other.permissions_.isEmpty()) { - if (permissionsBuilder_.isEmpty()) { - permissionsBuilder_.dispose(); - permissionsBuilder_ = null; - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000010); - permissionsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getPermissionsFieldBuilder() : null; - } else { - permissionsBuilder_.addAllMessages(other.permissions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - * optional string key = 2; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string key = 2; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 2; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 2; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 2; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000002); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 2; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object qualifier_ = ""; - /** - * optional string qualifier = 3; - */ - public boolean hasQualifier() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string qualifier = 3; - */ - public java.lang.String getQualifier() { - java.lang.Object ref = qualifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - qualifier_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string qualifier = 3; - */ - public com.google.protobuf.ByteString - getQualifierBytes() { - java.lang.Object ref = qualifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - qualifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string qualifier = 3; - */ - public Builder setQualifier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - qualifier_ = value; - onChanged(); - return this; - } - /** - * optional string qualifier = 3; - */ - public Builder clearQualifier() { - bitField0_ = (bitField0_ & ~0x00000004); - qualifier_ = getDefaultInstance().getQualifier(); - onChanged(); - return this; - } - /** - * optional string qualifier = 3; - */ - public Builder setQualifierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - qualifier_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 4; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string name = 4; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 4; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 4; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 4; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000008); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 4; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - name_ = value; - onChanged(); - return this; - } - - private java.util.List permissions_ = - java.util.Collections.emptyList(); - private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - permissions_ = new java.util.ArrayList(permissions_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> permissionsBuilder_; - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public java.util.List getPermissionsList() { - if (permissionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(permissions_); - } else { - return permissionsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public int getPermissionsCount() { - if (permissionsBuilder_ == null) { - return permissions_.size(); - } else { - return permissionsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); - } else { - return permissionsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.set(index, value); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.set(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder addPermissions(org.sonarqube.ws.WsPermissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(value); - onChanged(); - } else { - permissionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(index, value); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder addPermissions( - org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder addAllPermissions( - java.lang.Iterable values) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); - onChanged(); - } else { - permissionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder clearPermissions() { - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - permissionsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public Builder removePermissions(int index) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.remove(index); - onChanged(); - } else { - permissionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public org.sonarqube.ws.WsPermissions.Permission.Builder getPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); } else { - return permissionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public java.util.List - getPermissionsOrBuilderList() { - if (permissionsBuilder_ != null) { - return permissionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(permissions_); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder() { - return getPermissionsFieldBuilder().addBuilder( - org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().addBuilder( - index, org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 5; - */ - public java.util.List - getPermissionsBuilderList() { - return getPermissionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> - getPermissionsFieldBuilder() { - if (permissionsBuilder_ == null) { - permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>( - permissions_, - ((bitField0_ & 0x00000010) == 0x00000010), - getParentForChildren(), - isClean()); - permissions_ = null; - } - return permissionsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project) - private static final org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project(); - } - - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Project parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Project(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int PAGING_FIELD_NUMBER = 1; - private org.sonarqube.ws.Common.Paging paging_; - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - - public static final int PROJECTS_FIELD_NUMBER = 2; - private java.util.List projects_; - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public java.util.List getProjectsList() { - return projects_; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public java.util.List - getProjectsOrBuilderList() { - return projects_; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public int getProjectsCount() { - return projects_.size(); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project getProjects(int index) { - return projects_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder getProjectsOrBuilder( - int index) { - return projects_.get(index); - } - - public static final int PERMISSIONS_FIELD_NUMBER = 3; - private java.util.List permissions_; - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List getPermissionsList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List - getPermissionsOrBuilderList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public int getPermissionsCount() { - return permissions_.size(); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { - return permissions_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - return permissions_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getPaging()); - } - for (int i = 0; i < projects_.size(); i++) { - output.writeMessage(2, projects_.get(i)); - } - for (int i = 0; i < permissions_.size(); i++) { - output.writeMessage(3, permissions_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPaging()); - } - for (int i = 0; i < projects_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, projects_.get(i)); - } - for (int i = 0; i < permissions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, permissions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsSearchProjectPermissionsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse) - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.class, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPagingFieldBuilder(); - getProjectsFieldBuilder(); - getPermissionsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (pagingBuilder_ == null) { - paging_ = null; - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (projectsBuilder_ == null) { - projects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - projectsBuilder_.clear(); - } - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - permissionsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor; - } - - public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse getDefaultInstanceForType() { - return org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse build() { - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse buildPartial() { - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse result = new org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (pagingBuilder_ == null) { - result.paging_ = paging_; - } else { - result.paging_ = pagingBuilder_.build(); - } - if (projectsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - projects_ = java.util.Collections.unmodifiableList(projects_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.projects_ = projects_; - } else { - result.projects_ = projectsBuilder_.build(); - } - if (permissionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.permissions_ = permissions_; - } else { - result.permissions_ = permissionsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse) { - return mergeFrom((org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse other) { - if (other == org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.getDefaultInstance()) return this; - if (other.hasPaging()) { - mergePaging(other.getPaging()); - } - if (projectsBuilder_ == null) { - if (!other.projects_.isEmpty()) { - if (projects_.isEmpty()) { - projects_ = other.projects_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureProjectsIsMutable(); - projects_.addAll(other.projects_); - } - onChanged(); - } - } else { - if (!other.projects_.isEmpty()) { - if (projectsBuilder_.isEmpty()) { - projectsBuilder_.dispose(); - projectsBuilder_ = null; - projects_ = other.projects_; - bitField0_ = (bitField0_ & ~0x00000002); - projectsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getProjectsFieldBuilder() : null; - } else { - projectsBuilder_.addAllMessages(other.projects_); - } - } - } - if (permissionsBuilder_ == null) { - if (!other.permissions_.isEmpty()) { - if (permissions_.isEmpty()) { - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePermissionsIsMutable(); - permissions_.addAll(other.permissions_); - } - onChanged(); - } - } else { - if (!other.permissions_.isEmpty()) { - if (permissionsBuilder_.isEmpty()) { - permissionsBuilder_.dispose(); - permissionsBuilder_ = null; - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000004); - permissionsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getPermissionsFieldBuilder() : null; - } else { - permissionsBuilder_.addAllMessages(other.permissions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.Common.Paging paging_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_; - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public boolean hasPaging() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging getPaging() { - if (pagingBuilder_ == null) { - return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } else { - return pagingBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder setPaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - paging_ = value; - onChanged(); - } else { - pagingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder setPaging( - org.sonarqube.ws.Common.Paging.Builder builderForValue) { - if (pagingBuilder_ == null) { - paging_ = builderForValue.build(); - onChanged(); - } else { - pagingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder mergePaging(org.sonarqube.ws.Common.Paging value) { - if (pagingBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - paging_ != null && - paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) { - paging_ = - org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial(); - } else { - paging_ = value; - } - onChanged(); - } else { - pagingBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public Builder clearPaging() { - if (pagingBuilder_ == null) { - paging_ = null; - onChanged(); - } else { - pagingBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPagingFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() { - if (pagingBuilder_ != null) { - return pagingBuilder_.getMessageOrBuilder(); - } else { - return paging_ == null ? - org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_; - } - } - /** - * optional .sonarqube.ws.commons.Paging paging = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> - getPagingFieldBuilder() { - if (pagingBuilder_ == null) { - pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>( - getPaging(), - getParentForChildren(), - isClean()); - paging_ = null; - } - return pagingBuilder_; - } - - private java.util.List projects_ = - java.util.Collections.emptyList(); - private void ensureProjectsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - projects_ = new java.util.ArrayList(projects_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder> projectsBuilder_; - - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public java.util.List getProjectsList() { - if (projectsBuilder_ == null) { - return java.util.Collections.unmodifiableList(projects_); - } else { - return projectsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public int getProjectsCount() { - if (projectsBuilder_ == null) { - return projects_.size(); - } else { - return projectsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project getProjects(int index) { - if (projectsBuilder_ == null) { - return projects_.get(index); - } else { - return projectsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder setProjects( - int index, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project value) { - if (projectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); - projects_.set(index, value); - onChanged(); - } else { - projectsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder setProjects( - int index, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.set(index, builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder addProjects(org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project value) { - if (projectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); - projects_.add(value); - onChanged(); - } else { - projectsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder addProjects( - int index, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project value) { - if (projectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); - projects_.add(index, value); - onChanged(); - } else { - projectsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder addProjects( - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.add(builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder addProjects( - int index, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.add(index, builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder addAllProjects( - java.lang.Iterable values) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, projects_); - onChanged(); - } else { - projectsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder clearProjects() { - if (projectsBuilder_ == null) { - projects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - projectsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public Builder removeProjects(int index) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.remove(index); - onChanged(); - } else { - projectsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder getProjectsBuilder( - int index) { - return getProjectsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder getProjectsOrBuilder( - int index) { - if (projectsBuilder_ == null) { - return projects_.get(index); } else { - return projectsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public java.util.List - getProjectsOrBuilderList() { - if (projectsBuilder_ != null) { - return projectsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(projects_); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder addProjectsBuilder() { - return getProjectsFieldBuilder().addBuilder( - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder addProjectsBuilder( - int index) { - return getProjectsFieldBuilder().addBuilder( - index, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2; - */ - public java.util.List - getProjectsBuilderList() { - return getProjectsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder> - getProjectsFieldBuilder() { - if (projectsBuilder_ == null) { - projectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.Project.Builder, org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder>( - projects_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - projects_ = null; - } - return projectsBuilder_; - } - - private java.util.List permissions_ = - java.util.Collections.emptyList(); - private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - permissions_ = new java.util.ArrayList(permissions_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> permissionsBuilder_; - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List getPermissionsList() { - if (permissionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(permissions_); - } else { - return permissionsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public int getPermissionsCount() { - if (permissionsBuilder_ == null) { - return permissions_.size(); - } else { - return permissionsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); - } else { - return permissionsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.set(index, value); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.set(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addPermissions(org.sonarqube.ws.WsPermissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(value); - onChanged(); - } else { - permissionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(index, value); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addPermissions( - org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addAllPermissions( - java.lang.Iterable values) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); - onChanged(); - } else { - permissionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder clearPermissions() { - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - permissionsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder removePermissions(int index) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.remove(index); - onChanged(); - } else { - permissionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.WsPermissions.Permission.Builder getPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); } else { - return permissionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List - getPermissionsOrBuilderList() { - if (permissionsBuilder_ != null) { - return permissionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(permissions_); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder() { - return getPermissionsFieldBuilder().addBuilder( - org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().addBuilder( - index, org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List - getPermissionsBuilderList() { - return getPermissionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> - getPermissionsFieldBuilder() { - if (permissionsBuilder_ == null) { - permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>( - permissions_, - ((bitField0_ & 0x00000004) == 0x00000004), - getParentForChildren(), - isClean()); - permissions_ = null; - } - return permissionsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse) - private static final org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse(); - } - - public static org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsSearchProjectPermissionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsSearchProjectPermissionsResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsPermissions.WsSearchProjectPermissionsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WsCreatePermissionTemplateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - boolean hasPermissionTemplate(); - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplate(); - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder(); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsCreatePermissionTemplateResponse} - */ - public static final class WsCreatePermissionTemplateResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse) - WsCreatePermissionTemplateResponseOrBuilder { - // Use WsCreatePermissionTemplateResponse.newBuilder() to construct. - private WsCreatePermissionTemplateResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsCreatePermissionTemplateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsCreatePermissionTemplateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = permissionTemplate_.toBuilder(); - } - permissionTemplate_ = input.readMessage(org.sonarqube.ws.WsPermissions.PermissionTemplate.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permissionTemplate_); - permissionTemplate_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse.class, org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse.Builder.class); - } - - private int bitField0_; - public static final int PERMISSIONTEMPLATE_FIELD_NUMBER = 1; - private org.sonarqube.ws.WsPermissions.PermissionTemplate permissionTemplate_; - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public boolean hasPermissionTemplate() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplate() { - return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() { - return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getPermissionTemplate()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPermissionTemplate()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsCreatePermissionTemplateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse) - org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse.class, org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPermissionTemplateFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (permissionTemplateBuilder_ == null) { - permissionTemplate_ = null; - } else { - permissionTemplateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor; - } - - public org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse getDefaultInstanceForType() { - return org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse build() { - org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse buildPartial() { - org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse result = new org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (permissionTemplateBuilder_ == null) { - result.permissionTemplate_ = permissionTemplate_; - } else { - result.permissionTemplate_ = permissionTemplateBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse) { - return mergeFrom((org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse other) { - if (other == org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse.getDefaultInstance()) return this; - if (other.hasPermissionTemplate()) { - mergePermissionTemplate(other.getPermissionTemplate()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.WsPermissions.PermissionTemplate permissionTemplate_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder> permissionTemplateBuilder_; - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public boolean hasPermissionTemplate() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplate() { - if (permissionTemplateBuilder_ == null) { - return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; - } else { - return permissionTemplateBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public Builder setPermissionTemplate(org.sonarqube.ws.WsPermissions.PermissionTemplate value) { - if (permissionTemplateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - permissionTemplate_ = value; - onChanged(); - } else { - permissionTemplateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public Builder setPermissionTemplate( - org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder builderForValue) { - if (permissionTemplateBuilder_ == null) { - permissionTemplate_ = builderForValue.build(); - onChanged(); - } else { - permissionTemplateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public Builder mergePermissionTemplate(org.sonarqube.ws.WsPermissions.PermissionTemplate value) { - if (permissionTemplateBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - permissionTemplate_ != null && - permissionTemplate_ != org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance()) { - permissionTemplate_ = - org.sonarqube.ws.WsPermissions.PermissionTemplate.newBuilder(permissionTemplate_).mergeFrom(value).buildPartial(); - } else { - permissionTemplate_ = value; - } - onChanged(); - } else { - permissionTemplateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public Builder clearPermissionTemplate() { - if (permissionTemplateBuilder_ == null) { - permissionTemplate_ = null; - onChanged(); - } else { - permissionTemplateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder getPermissionTemplateBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPermissionTemplateFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() { - if (permissionTemplateBuilder_ != null) { - return permissionTemplateBuilder_.getMessageOrBuilder(); - } else { - return permissionTemplate_ == null ? - org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; - } - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder> - getPermissionTemplateFieldBuilder() { - if (permissionTemplateBuilder_ == null) { - permissionTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder>( - getPermissionTemplate(), - getParentForChildren(), - isClean()); - permissionTemplate_ = null; - } - return permissionTemplateBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse) - private static final org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse(); - } - - public static org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsCreatePermissionTemplateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsCreatePermissionTemplateResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsPermissions.WsCreatePermissionTemplateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WsUpdatePermissionTemplateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - boolean hasPermissionTemplate(); - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplate(); - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder(); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse} - */ - public static final class WsUpdatePermissionTemplateResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse) - WsUpdatePermissionTemplateResponseOrBuilder { - // Use WsUpdatePermissionTemplateResponse.newBuilder() to construct. - private WsUpdatePermissionTemplateResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsUpdatePermissionTemplateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsUpdatePermissionTemplateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = permissionTemplate_.toBuilder(); - } - permissionTemplate_ = input.readMessage(org.sonarqube.ws.WsPermissions.PermissionTemplate.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permissionTemplate_); - permissionTemplate_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse.class, org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse.Builder.class); - } - - private int bitField0_; - public static final int PERMISSIONTEMPLATE_FIELD_NUMBER = 1; - private org.sonarqube.ws.WsPermissions.PermissionTemplate permissionTemplate_; - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public boolean hasPermissionTemplate() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplate() { - return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() { - return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getPermissionTemplate()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPermissionTemplate()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse) - org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse.class, org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPermissionTemplateFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (permissionTemplateBuilder_ == null) { - permissionTemplate_ = null; - } else { - permissionTemplateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor; - } - - public org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse getDefaultInstanceForType() { - return org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse build() { - org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse buildPartial() { - org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse result = new org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (permissionTemplateBuilder_ == null) { - result.permissionTemplate_ = permissionTemplate_; - } else { - result.permissionTemplate_ = permissionTemplateBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse) { - return mergeFrom((org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse other) { - if (other == org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse.getDefaultInstance()) return this; - if (other.hasPermissionTemplate()) { - mergePermissionTemplate(other.getPermissionTemplate()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private org.sonarqube.ws.WsPermissions.PermissionTemplate permissionTemplate_ = null; - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder> permissionTemplateBuilder_; - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public boolean hasPermissionTemplate() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplate() { - if (permissionTemplateBuilder_ == null) { - return permissionTemplate_ == null ? org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; - } else { - return permissionTemplateBuilder_.getMessage(); - } - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public Builder setPermissionTemplate(org.sonarqube.ws.WsPermissions.PermissionTemplate value) { - if (permissionTemplateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - permissionTemplate_ = value; - onChanged(); - } else { - permissionTemplateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public Builder setPermissionTemplate( - org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder builderForValue) { - if (permissionTemplateBuilder_ == null) { - permissionTemplate_ = builderForValue.build(); - onChanged(); - } else { - permissionTemplateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public Builder mergePermissionTemplate(org.sonarqube.ws.WsPermissions.PermissionTemplate value) { - if (permissionTemplateBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - permissionTemplate_ != null && - permissionTemplate_ != org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance()) { - permissionTemplate_ = - org.sonarqube.ws.WsPermissions.PermissionTemplate.newBuilder(permissionTemplate_).mergeFrom(value).buildPartial(); - } else { - permissionTemplate_ = value; - } - onChanged(); - } else { - permissionTemplateBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public Builder clearPermissionTemplate() { - if (permissionTemplateBuilder_ == null) { - permissionTemplate_ = null; - onChanged(); - } else { - permissionTemplateBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder getPermissionTemplateBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPermissionTemplateFieldBuilder().getBuilder(); - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() { - if (permissionTemplateBuilder_ != null) { - return permissionTemplateBuilder_.getMessageOrBuilder(); - } else { - return permissionTemplate_ == null ? - org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_; - } - } - /** - * optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder> - getPermissionTemplateFieldBuilder() { - if (permissionTemplateBuilder_ == null) { - permissionTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilder< - org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder>( - getPermissionTemplate(), - getParentForChildren(), - isClean()); - permissionTemplate_ = null; - } - return permissionTemplateBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse) - private static final org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse(); - } - - public static org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsUpdatePermissionTemplateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsUpdatePermissionTemplateResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsPermissions.WsUpdatePermissionTemplateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WsSearchTemplatesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchTemplatesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - java.util.List - getPermissionTemplatesList(); - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplates(int index); - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - int getPermissionTemplatesCount(); - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - java.util.List - getPermissionTemplatesOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplatesOrBuilder( - int index); - - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - java.util.List - getDefaultTemplatesList(); - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultTemplates(int index); - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - int getDefaultTemplatesCount(); - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - java.util.List - getDefaultTemplatesOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder getDefaultTemplatesOrBuilder( - int index); - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - java.util.List - getPermissionsList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - org.sonarqube.ws.WsPermissions.Permission getPermissions(int index); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - int getPermissionsCount(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - java.util.List - getPermissionsOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsSearchTemplatesResponse} - */ - public static final class WsSearchTemplatesResponse extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse) - WsSearchTemplatesResponseOrBuilder { - // Use WsSearchTemplatesResponse.newBuilder() to construct. - private WsSearchTemplatesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private WsSearchTemplatesResponse() { - permissionTemplates_ = java.util.Collections.emptyList(); - defaultTemplates_ = java.util.Collections.emptyList(); - permissions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WsSearchTemplatesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - permissionTemplates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - permissionTemplates_.add(input.readMessage(org.sonarqube.ws.WsPermissions.PermissionTemplate.PARSER, extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - defaultTemplates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - defaultTemplates_.add(input.readMessage(org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.PARSER, extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - permissions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - permissions_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Permission.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - permissionTemplates_ = java.util.Collections.unmodifiableList(permissionTemplates_); - } - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - defaultTemplates_ = java.util.Collections.unmodifiableList(defaultTemplates_); - } - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.class, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.Builder.class); - } - - public interface TemplateIdQualifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string templateId = 1; - */ - boolean hasTemplateId(); - /** - * optional string templateId = 1; - */ - java.lang.String getTemplateId(); - /** - * optional string templateId = 1; - */ - com.google.protobuf.ByteString - getTemplateIdBytes(); - - /** - * optional string qualifier = 2; - */ - boolean hasQualifier(); - /** - * optional string qualifier = 2; - */ - java.lang.String getQualifier(); - /** - * optional string qualifier = 2; - */ - com.google.protobuf.ByteString - getQualifierBytes(); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier} - */ - public static final class TemplateIdQualifier extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier) - TemplateIdQualifierOrBuilder { - // Use TemplateIdQualifier.newBuilder() to construct. - private TemplateIdQualifier(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private TemplateIdQualifier() { - templateId_ = ""; - qualifier_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TemplateIdQualifier( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - templateId_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - qualifier_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.class, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder.class); - } - - private int bitField0_; - public static final int TEMPLATEID_FIELD_NUMBER = 1; - private volatile java.lang.Object templateId_; - /** - * optional string templateId = 1; - */ - public boolean hasTemplateId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string templateId = 1; - */ - public java.lang.String getTemplateId() { - java.lang.Object ref = templateId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - templateId_ = s; - } - return s; - } - } - /** - * optional string templateId = 1; - */ - public com.google.protobuf.ByteString - getTemplateIdBytes() { - java.lang.Object ref = templateId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - templateId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUALIFIER_FIELD_NUMBER = 2; - private volatile java.lang.Object qualifier_; - /** - * optional string qualifier = 2; - */ - public boolean hasQualifier() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string qualifier = 2; - */ - public java.lang.String getQualifier() { - java.lang.Object ref = qualifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - qualifier_ = s; - } - return s; - } - } - /** - * optional string qualifier = 2; - */ - public com.google.protobuf.ByteString - getQualifierBytes() { - java.lang.Object ref = qualifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - qualifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getTemplateIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getQualifierBytes()); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getTemplateIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getQualifierBytes()); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier) - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.class, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder.class); - } - - // Construct using org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - templateId_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - qualifier_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor; - } - - public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultInstanceForType() { - return org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.getDefaultInstance(); - } - - public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier build() { - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier buildPartial() { - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier result = new org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.templateId_ = templateId_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.qualifier_ = qualifier_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier) { - return mergeFrom((org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier other) { - if (other == org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.getDefaultInstance()) return this; - if (other.hasTemplateId()) { - bitField0_ |= 0x00000001; - templateId_ = other.templateId_; - onChanged(); - } - if (other.hasQualifier()) { - bitField0_ |= 0x00000002; - qualifier_ = other.qualifier_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object templateId_ = ""; - /** - * optional string templateId = 1; - */ - public boolean hasTemplateId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string templateId = 1; - */ - public java.lang.String getTemplateId() { - java.lang.Object ref = templateId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - templateId_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string templateId = 1; - */ - public com.google.protobuf.ByteString - getTemplateIdBytes() { - java.lang.Object ref = templateId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - templateId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string templateId = 1; - */ - public Builder setTemplateId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - templateId_ = value; - onChanged(); - return this; - } - /** - * optional string templateId = 1; - */ - public Builder clearTemplateId() { - bitField0_ = (bitField0_ & ~0x00000001); - templateId_ = getDefaultInstance().getTemplateId(); - onChanged(); - return this; - } - /** - * optional string templateId = 1; - */ - public Builder setTemplateIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - templateId_ = value; - onChanged(); - return this; - } - - private java.lang.Object qualifier_ = ""; - /** - * optional string qualifier = 2; - */ - public boolean hasQualifier() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string qualifier = 2; - */ - public java.lang.String getQualifier() { - java.lang.Object ref = qualifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - qualifier_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string qualifier = 2; - */ - public com.google.protobuf.ByteString - getQualifierBytes() { - java.lang.Object ref = qualifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - qualifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string qualifier = 2; - */ - public Builder setQualifier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - qualifier_ = value; - onChanged(); - return this; - } - /** - * optional string qualifier = 2; - */ - public Builder clearQualifier() { - bitField0_ = (bitField0_ & ~0x00000002); - qualifier_ = getDefaultInstance().getQualifier(); - onChanged(); - return this; - } - /** - * optional string qualifier = 2; - */ - public Builder setQualifierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - qualifier_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier) - private static final org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier(); - } - - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TemplateIdQualifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new TemplateIdQualifier(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int PERMISSIONTEMPLATES_FIELD_NUMBER = 1; - private java.util.List permissionTemplates_; - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public java.util.List getPermissionTemplatesList() { - return permissionTemplates_; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public java.util.List - getPermissionTemplatesOrBuilderList() { - return permissionTemplates_; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public int getPermissionTemplatesCount() { - return permissionTemplates_.size(); - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplates(int index) { - return permissionTemplates_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplatesOrBuilder( - int index) { - return permissionTemplates_.get(index); - } - - public static final int DEFAULTTEMPLATES_FIELD_NUMBER = 2; - private java.util.List defaultTemplates_; - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public java.util.List getDefaultTemplatesList() { - return defaultTemplates_; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public java.util.List - getDefaultTemplatesOrBuilderList() { - return defaultTemplates_; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public int getDefaultTemplatesCount() { - return defaultTemplates_.size(); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultTemplates(int index) { - return defaultTemplates_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder getDefaultTemplatesOrBuilder( - int index) { - return defaultTemplates_.get(index); - } - - public static final int PERMISSIONS_FIELD_NUMBER = 3; - private java.util.List permissions_; - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List getPermissionsList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List - getPermissionsOrBuilderList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public int getPermissionsCount() { - return permissions_.size(); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { - return permissions_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - return permissions_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < permissionTemplates_.size(); i++) { - output.writeMessage(1, permissionTemplates_.get(i)); - } - for (int i = 0; i < defaultTemplates_.size(); i++) { - output.writeMessage(2, defaultTemplates_.get(i)); - } - for (int i = 0; i < permissions_.size(); i++) { - output.writeMessage(3, permissions_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < permissionTemplates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, permissionTemplates_.get(i)); - } - for (int i = 0; i < defaultTemplates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, defaultTemplates_.get(i)); - } - for (int i = 0; i < permissions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, permissions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.permissions.WsSearchTemplatesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse) - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.class, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.Builder.class); - } - - // Construct using org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPermissionTemplatesFieldBuilder(); - getDefaultTemplatesFieldBuilder(); - getPermissionsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - if (permissionTemplatesBuilder_ == null) { - permissionTemplates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - permissionTemplatesBuilder_.clear(); - } - if (defaultTemplatesBuilder_ == null) { - defaultTemplates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - defaultTemplatesBuilder_.clear(); - } - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - permissionsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor; - } - - public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse getDefaultInstanceForType() { - return org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.getDefaultInstance(); - } - - public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse build() { - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse buildPartial() { - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse result = new org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse(this); - int from_bitField0_ = bitField0_; - if (permissionTemplatesBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - permissionTemplates_ = java.util.Collections.unmodifiableList(permissionTemplates_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.permissionTemplates_ = permissionTemplates_; - } else { - result.permissionTemplates_ = permissionTemplatesBuilder_.build(); - } - if (defaultTemplatesBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - defaultTemplates_ = java.util.Collections.unmodifiableList(defaultTemplates_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.defaultTemplates_ = defaultTemplates_; - } else { - result.defaultTemplates_ = defaultTemplatesBuilder_.build(); - } - if (permissionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.permissions_ = permissions_; - } else { - result.permissions_ = permissionsBuilder_.build(); - } - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse) { - return mergeFrom((org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse other) { - if (other == org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.getDefaultInstance()) return this; - if (permissionTemplatesBuilder_ == null) { - if (!other.permissionTemplates_.isEmpty()) { - if (permissionTemplates_.isEmpty()) { - permissionTemplates_ = other.permissionTemplates_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePermissionTemplatesIsMutable(); - permissionTemplates_.addAll(other.permissionTemplates_); - } - onChanged(); - } - } else { - if (!other.permissionTemplates_.isEmpty()) { - if (permissionTemplatesBuilder_.isEmpty()) { - permissionTemplatesBuilder_.dispose(); - permissionTemplatesBuilder_ = null; - permissionTemplates_ = other.permissionTemplates_; - bitField0_ = (bitField0_ & ~0x00000001); - permissionTemplatesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getPermissionTemplatesFieldBuilder() : null; - } else { - permissionTemplatesBuilder_.addAllMessages(other.permissionTemplates_); - } - } - } - if (defaultTemplatesBuilder_ == null) { - if (!other.defaultTemplates_.isEmpty()) { - if (defaultTemplates_.isEmpty()) { - defaultTemplates_ = other.defaultTemplates_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDefaultTemplatesIsMutable(); - defaultTemplates_.addAll(other.defaultTemplates_); - } - onChanged(); - } - } else { - if (!other.defaultTemplates_.isEmpty()) { - if (defaultTemplatesBuilder_.isEmpty()) { - defaultTemplatesBuilder_.dispose(); - defaultTemplatesBuilder_ = null; - defaultTemplates_ = other.defaultTemplates_; - bitField0_ = (bitField0_ & ~0x00000002); - defaultTemplatesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getDefaultTemplatesFieldBuilder() : null; - } else { - defaultTemplatesBuilder_.addAllMessages(other.defaultTemplates_); - } - } - } - if (permissionsBuilder_ == null) { - if (!other.permissions_.isEmpty()) { - if (permissions_.isEmpty()) { - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePermissionsIsMutable(); - permissions_.addAll(other.permissions_); - } - onChanged(); - } - } else { - if (!other.permissions_.isEmpty()) { - if (permissionsBuilder_.isEmpty()) { - permissionsBuilder_.dispose(); - permissionsBuilder_ = null; - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000004); - permissionsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getPermissionsFieldBuilder() : null; - } else { - permissionsBuilder_.addAllMessages(other.permissions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List permissionTemplates_ = - java.util.Collections.emptyList(); - private void ensurePermissionTemplatesIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - permissionTemplates_ = new java.util.ArrayList(permissionTemplates_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder> permissionTemplatesBuilder_; - - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public java.util.List getPermissionTemplatesList() { - if (permissionTemplatesBuilder_ == null) { - return java.util.Collections.unmodifiableList(permissionTemplates_); - } else { - return permissionTemplatesBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public int getPermissionTemplatesCount() { - if (permissionTemplatesBuilder_ == null) { - return permissionTemplates_.size(); - } else { - return permissionTemplatesBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplate getPermissionTemplates(int index) { - if (permissionTemplatesBuilder_ == null) { - return permissionTemplates_.get(index); - } else { - return permissionTemplatesBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder setPermissionTemplates( - int index, org.sonarqube.ws.WsPermissions.PermissionTemplate value) { - if (permissionTemplatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionTemplatesIsMutable(); - permissionTemplates_.set(index, value); - onChanged(); - } else { - permissionTemplatesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder setPermissionTemplates( - int index, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder builderForValue) { - if (permissionTemplatesBuilder_ == null) { - ensurePermissionTemplatesIsMutable(); - permissionTemplates_.set(index, builderForValue.build()); - onChanged(); - } else { - permissionTemplatesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder addPermissionTemplates(org.sonarqube.ws.WsPermissions.PermissionTemplate value) { - if (permissionTemplatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionTemplatesIsMutable(); - permissionTemplates_.add(value); - onChanged(); - } else { - permissionTemplatesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder addPermissionTemplates( - int index, org.sonarqube.ws.WsPermissions.PermissionTemplate value) { - if (permissionTemplatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionTemplatesIsMutable(); - permissionTemplates_.add(index, value); - onChanged(); - } else { - permissionTemplatesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder addPermissionTemplates( - org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder builderForValue) { - if (permissionTemplatesBuilder_ == null) { - ensurePermissionTemplatesIsMutable(); - permissionTemplates_.add(builderForValue.build()); - onChanged(); - } else { - permissionTemplatesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder addPermissionTemplates( - int index, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder builderForValue) { - if (permissionTemplatesBuilder_ == null) { - ensurePermissionTemplatesIsMutable(); - permissionTemplates_.add(index, builderForValue.build()); - onChanged(); - } else { - permissionTemplatesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder addAllPermissionTemplates( - java.lang.Iterable values) { - if (permissionTemplatesBuilder_ == null) { - ensurePermissionTemplatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissionTemplates_); - onChanged(); - } else { - permissionTemplatesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder clearPermissionTemplates() { - if (permissionTemplatesBuilder_ == null) { - permissionTemplates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - permissionTemplatesBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public Builder removePermissionTemplates(int index) { - if (permissionTemplatesBuilder_ == null) { - ensurePermissionTemplatesIsMutable(); - permissionTemplates_.remove(index); - onChanged(); - } else { - permissionTemplatesBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder getPermissionTemplatesBuilder( - int index) { - return getPermissionTemplatesFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder getPermissionTemplatesOrBuilder( - int index) { - if (permissionTemplatesBuilder_ == null) { - return permissionTemplates_.get(index); } else { - return permissionTemplatesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public java.util.List - getPermissionTemplatesOrBuilderList() { - if (permissionTemplatesBuilder_ != null) { - return permissionTemplatesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(permissionTemplates_); - } - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder addPermissionTemplatesBuilder() { - return getPermissionTemplatesFieldBuilder().addBuilder( - org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder addPermissionTemplatesBuilder( - int index) { - return getPermissionTemplatesFieldBuilder().addBuilder( - index, org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1; - */ - public java.util.List - getPermissionTemplatesBuilderList() { - return getPermissionTemplatesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder> - getPermissionTemplatesFieldBuilder() { - if (permissionTemplatesBuilder_ == null) { - permissionTemplatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.PermissionTemplate, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder, org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder>( - permissionTemplates_, - ((bitField0_ & 0x00000001) == 0x00000001), - getParentForChildren(), - isClean()); - permissionTemplates_ = null; - } - return permissionTemplatesBuilder_; - } - - private java.util.List defaultTemplates_ = - java.util.Collections.emptyList(); - private void ensureDefaultTemplatesIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - defaultTemplates_ = new java.util.ArrayList(defaultTemplates_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder> defaultTemplatesBuilder_; - - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public java.util.List getDefaultTemplatesList() { - if (defaultTemplatesBuilder_ == null) { - return java.util.Collections.unmodifiableList(defaultTemplates_); - } else { - return defaultTemplatesBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public int getDefaultTemplatesCount() { - if (defaultTemplatesBuilder_ == null) { - return defaultTemplates_.size(); - } else { - return defaultTemplatesBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultTemplates(int index) { - if (defaultTemplatesBuilder_ == null) { - return defaultTemplates_.get(index); - } else { - return defaultTemplatesBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder setDefaultTemplates( - int index, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier value) { - if (defaultTemplatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDefaultTemplatesIsMutable(); - defaultTemplates_.set(index, value); - onChanged(); - } else { - defaultTemplatesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder setDefaultTemplates( - int index, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder builderForValue) { - if (defaultTemplatesBuilder_ == null) { - ensureDefaultTemplatesIsMutable(); - defaultTemplates_.set(index, builderForValue.build()); - onChanged(); - } else { - defaultTemplatesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder addDefaultTemplates(org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier value) { - if (defaultTemplatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDefaultTemplatesIsMutable(); - defaultTemplates_.add(value); - onChanged(); - } else { - defaultTemplatesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder addDefaultTemplates( - int index, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier value) { - if (defaultTemplatesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDefaultTemplatesIsMutable(); - defaultTemplates_.add(index, value); - onChanged(); - } else { - defaultTemplatesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder addDefaultTemplates( - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder builderForValue) { - if (defaultTemplatesBuilder_ == null) { - ensureDefaultTemplatesIsMutable(); - defaultTemplates_.add(builderForValue.build()); - onChanged(); - } else { - defaultTemplatesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder addDefaultTemplates( - int index, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder builderForValue) { - if (defaultTemplatesBuilder_ == null) { - ensureDefaultTemplatesIsMutable(); - defaultTemplates_.add(index, builderForValue.build()); - onChanged(); - } else { - defaultTemplatesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder addAllDefaultTemplates( - java.lang.Iterable values) { - if (defaultTemplatesBuilder_ == null) { - ensureDefaultTemplatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, defaultTemplates_); - onChanged(); - } else { - defaultTemplatesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder clearDefaultTemplates() { - if (defaultTemplatesBuilder_ == null) { - defaultTemplates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - defaultTemplatesBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public Builder removeDefaultTemplates(int index) { - if (defaultTemplatesBuilder_ == null) { - ensureDefaultTemplatesIsMutable(); - defaultTemplates_.remove(index); - onChanged(); - } else { - defaultTemplatesBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder getDefaultTemplatesBuilder( - int index) { - return getDefaultTemplatesFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder getDefaultTemplatesOrBuilder( - int index) { - if (defaultTemplatesBuilder_ == null) { - return defaultTemplates_.get(index); } else { - return defaultTemplatesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public java.util.List - getDefaultTemplatesOrBuilderList() { - if (defaultTemplatesBuilder_ != null) { - return defaultTemplatesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(defaultTemplates_); - } - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder addDefaultTemplatesBuilder() { - return getDefaultTemplatesFieldBuilder().addBuilder( - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder addDefaultTemplatesBuilder( - int index) { - return getDefaultTemplatesFieldBuilder().addBuilder( - index, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2; - */ - public java.util.List - getDefaultTemplatesBuilderList() { - return getDefaultTemplatesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder> - getDefaultTemplatesFieldBuilder() { - if (defaultTemplatesBuilder_ == null) { - defaultTemplatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder, org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder>( - defaultTemplates_, - ((bitField0_ & 0x00000002) == 0x00000002), - getParentForChildren(), - isClean()); - defaultTemplates_ = null; - } - return defaultTemplatesBuilder_; - } - - private java.util.List permissions_ = - java.util.Collections.emptyList(); - private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - permissions_ = new java.util.ArrayList(permissions_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> permissionsBuilder_; - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List getPermissionsList() { - if (permissionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(permissions_); - } else { - return permissionsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public int getPermissionsCount() { - if (permissionsBuilder_ == null) { - return permissions_.size(); - } else { - return permissionsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); - } else { - return permissionsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.set(index, value); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.set(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addPermissions(org.sonarqube.ws.WsPermissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(value); - onChanged(); - } else { - permissionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(index, value); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addPermissions( - org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder addAllPermissions( - java.lang.Iterable values) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); - onChanged(); - } else { - permissionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder clearPermissions() { - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - permissionsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public Builder removePermissions(int index) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.remove(index); - onChanged(); - } else { - permissionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.WsPermissions.Permission.Builder getPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); } else { - return permissionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List - getPermissionsOrBuilderList() { - if (permissionsBuilder_ != null) { - return permissionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(permissions_); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder() { - return getPermissionsFieldBuilder().addBuilder( - org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().addBuilder( - index, org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 3; - */ - public java.util.List - getPermissionsBuilderList() { - return getPermissionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> - getPermissionsFieldBuilder() { - if (permissionsBuilder_ == null) { - permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>( - permissions_, - ((bitField0_ & 0x00000004) == 0x00000004), - getParentForChildren(), - isClean()); - permissions_ = null; - } - return permissionsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse) - private static final org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse(); - } - - public static org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public WsSearchTemplatesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new WsSearchTemplatesResponse(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsPermissions.WsSearchTemplatesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PermissionOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.Permission) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string key = 1; - */ - boolean hasKey(); - /** - * optional string key = 1; - */ - java.lang.String getKey(); - /** - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string description = 3; - */ - boolean hasDescription(); - /** - * optional string description = 3; - */ - java.lang.String getDescription(); - /** - * optional string description = 3; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - * optional int32 usersCount = 4; - */ - boolean hasUsersCount(); - /** - * optional int32 usersCount = 4; - */ - int getUsersCount(); - - /** - * optional int32 groupsCount = 5; - */ - boolean hasGroupsCount(); - /** - * optional int32 groupsCount = 5; - */ - int getGroupsCount(); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.Permission} - */ - public static final class Permission extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.Permission) - PermissionOrBuilder { - // Use Permission.newBuilder() to construct. - private Permission(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Permission() { - key_ = ""; - name_ = ""; - description_ = ""; - usersCount_ = 0; - groupsCount_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Permission( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - description_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - usersCount_ = input.readInt32(); - break; - } - case 40: { - bitField0_ |= 0x00000010; - groupsCount_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Permission_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.Permission.class, org.sonarqube.ws.WsPermissions.Permission.Builder.class); - } - - private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - * optional string description = 3; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } - } - /** - * optional string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USERSCOUNT_FIELD_NUMBER = 4; - private int usersCount_; - /** - * optional int32 usersCount = 4; - */ - public boolean hasUsersCount() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 usersCount = 4; - */ - public int getUsersCount() { - return usersCount_; - } - - public static final int GROUPSCOUNT_FIELD_NUMBER = 5; - private int groupsCount_; - /** - * optional int32 groupsCount = 5; - */ - public boolean hasGroupsCount() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 groupsCount = 5; - */ - public int getGroupsCount() { - return groupsCount_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getDescriptionBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeInt32(4, usersCount_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeInt32(5, groupsCount_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getKeyBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getDescriptionBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, usersCount_); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, groupsCount_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsPermissions.Permission parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.Permission parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.Permission parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.Permission parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.Permission parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.Permission parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.Permission parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsPermissions.Permission parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.Permission parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.Permission parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsPermissions.Permission prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.permissions.Permission} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.Permission) - org.sonarqube.ws.WsPermissions.PermissionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Permission_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.Permission.class, org.sonarqube.ws.WsPermissions.Permission.Builder.class); - } - - // Construct using org.sonarqube.ws.WsPermissions.Permission.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - key_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - description_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - usersCount_ = 0; - bitField0_ = (bitField0_ & ~0x00000008); - groupsCount_ = 0; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Permission_descriptor; - } - - public org.sonarqube.ws.WsPermissions.Permission getDefaultInstanceForType() { - return org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance(); - } - - public org.sonarqube.ws.WsPermissions.Permission build() { - org.sonarqube.ws.WsPermissions.Permission result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsPermissions.Permission buildPartial() { - org.sonarqube.ws.WsPermissions.Permission result = new org.sonarqube.ws.WsPermissions.Permission(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.description_ = description_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.usersCount_ = usersCount_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.groupsCount_ = groupsCount_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsPermissions.Permission) { - return mergeFrom((org.sonarqube.ws.WsPermissions.Permission)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsPermissions.Permission other) { - if (other == org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()) return this; - if (other.hasKey()) { - bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasDescription()) { - bitField0_ |= 0x00000004; - description_ = other.description_; - onChanged(); - } - if (other.hasUsersCount()) { - setUsersCount(other.getUsersCount()); - } - if (other.hasGroupsCount()) { - setGroupsCount(other.getGroupsCount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsPermissions.Permission parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsPermissions.Permission) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object key_ = ""; - /** - * optional string key = 1; - */ - public boolean hasKey() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder clearKey() { - bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * optional string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * optional string description = 3; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string description = 3; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - description_ = value; - onChanged(); - return this; - } - /** - * optional string description = 3; - */ - public Builder clearDescription() { - bitField0_ = (bitField0_ & ~0x00000004); - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * optional string description = 3; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - description_ = value; - onChanged(); - return this; - } - - private int usersCount_ ; - /** - * optional int32 usersCount = 4; - */ - public boolean hasUsersCount() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional int32 usersCount = 4; - */ - public int getUsersCount() { - return usersCount_; - } - /** - * optional int32 usersCount = 4; - */ - public Builder setUsersCount(int value) { - bitField0_ |= 0x00000008; - usersCount_ = value; - onChanged(); - return this; - } - /** - * optional int32 usersCount = 4; - */ - public Builder clearUsersCount() { - bitField0_ = (bitField0_ & ~0x00000008); - usersCount_ = 0; - onChanged(); - return this; - } - - private int groupsCount_ ; - /** - * optional int32 groupsCount = 5; - */ - public boolean hasGroupsCount() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional int32 groupsCount = 5; - */ - public int getGroupsCount() { - return groupsCount_; - } - /** - * optional int32 groupsCount = 5; - */ - public Builder setGroupsCount(int value) { - bitField0_ |= 0x00000010; - groupsCount_ = value; - onChanged(); - return this; - } - /** - * optional int32 groupsCount = 5; - */ - public Builder clearGroupsCount() { - bitField0_ = (bitField0_ & ~0x00000010); - groupsCount_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.Permission) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.Permission) - private static final org.sonarqube.ws.WsPermissions.Permission DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.Permission(); - } - - public static org.sonarqube.ws.WsPermissions.Permission getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Permission parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Permission(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsPermissions.Permission getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PermissionTemplateOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.PermissionTemplate) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string id = 1; - */ - boolean hasId(); - /** - * optional string id = 1; - */ - java.lang.String getId(); - /** - * optional string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string description = 3; - */ - boolean hasDescription(); - /** - * optional string description = 3; - */ - java.lang.String getDescription(); - /** - * optional string description = 3; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - * optional string projectKeyPattern = 4; - */ - boolean hasProjectKeyPattern(); - /** - * optional string projectKeyPattern = 4; - */ - java.lang.String getProjectKeyPattern(); - /** - * optional string projectKeyPattern = 4; - */ - com.google.protobuf.ByteString - getProjectKeyPatternBytes(); - - /** - * optional string createdAt = 5; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - boolean hasCreatedAt(); - /** - * optional string createdAt = 5; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - java.lang.String getCreatedAt(); - /** - * optional string createdAt = 5; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - com.google.protobuf.ByteString - getCreatedAtBytes(); - - /** - * optional string updatedAt = 6; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - boolean hasUpdatedAt(); - /** - * optional string updatedAt = 6; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - java.lang.String getUpdatedAt(); - /** - * optional string updatedAt = 6; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - com.google.protobuf.ByteString - getUpdatedAtBytes(); - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - java.util.List - getPermissionsList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - org.sonarqube.ws.WsPermissions.Permission getPermissions(int index); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - int getPermissionsCount(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - java.util.List - getPermissionsOrBuilderList(); - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( - int index); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.PermissionTemplate} - */ - public static final class PermissionTemplate extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.PermissionTemplate) - PermissionTemplateOrBuilder { - // Use PermissionTemplate.newBuilder() to construct. - private PermissionTemplate(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private PermissionTemplate() { - id_ = ""; - name_ = ""; - description_ = ""; - projectKeyPattern_ = ""; - createdAt_ = ""; - updatedAt_ = ""; - permissions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PermissionTemplate( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - id_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - description_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - projectKeyPattern_ = bs; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - createdAt_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - updatedAt_ = bs; - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - permissions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - permissions_.add(input.readMessage(org.sonarqube.ws.WsPermissions.Permission.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.PermissionTemplate.class, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - * optional string description = 3; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } - } - /** - * optional string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROJECTKEYPATTERN_FIELD_NUMBER = 4; - private volatile java.lang.Object projectKeyPattern_; - /** - * optional string projectKeyPattern = 4; - */ - public boolean hasProjectKeyPattern() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string projectKeyPattern = 4; - */ - public java.lang.String getProjectKeyPattern() { - java.lang.Object ref = projectKeyPattern_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - projectKeyPattern_ = s; - } - return s; - } - } - /** - * optional string projectKeyPattern = 4; - */ - public com.google.protobuf.ByteString - getProjectKeyPatternBytes() { - java.lang.Object ref = projectKeyPattern_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectKeyPattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATEDAT_FIELD_NUMBER = 5; - private volatile java.lang.Object createdAt_; - /** - * optional string createdAt = 5; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - public boolean hasCreatedAt() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string createdAt = 5; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - public java.lang.String getCreatedAt() { - java.lang.Object ref = createdAt_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - createdAt_ = s; - } - return s; - } - } - /** - * optional string createdAt = 5; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - public com.google.protobuf.ByteString - getCreatedAtBytes() { - java.lang.Object ref = createdAt_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - createdAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UPDATEDAT_FIELD_NUMBER = 6; - private volatile java.lang.Object updatedAt_; - /** - * optional string updatedAt = 6; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - public boolean hasUpdatedAt() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string updatedAt = 6; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - public java.lang.String getUpdatedAt() { - java.lang.Object ref = updatedAt_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - updatedAt_ = s; - } - return s; - } - } - /** - * optional string updatedAt = 6; - * - *
-     * ex: 2015-08-25T16:18:48+0200
-     * 
- */ - public com.google.protobuf.ByteString - getUpdatedAtBytes() { - java.lang.Object ref = updatedAt_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - updatedAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PERMISSIONS_FIELD_NUMBER = 7; - private java.util.List permissions_; - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public java.util.List getPermissionsList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public java.util.List - getPermissionsOrBuilderList() { - return permissions_; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public int getPermissionsCount() { - return permissions_.size(); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { - return permissions_.get(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - return permissions_.get(index); - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getDescriptionBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getProjectKeyPatternBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeBytes(5, getCreatedAtBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getUpdatedAtBytes()); - } - for (int i = 0; i < permissions_.size(); i++) { - output.writeMessage(7, permissions_.get(i)); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getDescriptionBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getProjectKeyPatternBytes()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, getCreatedAtBytes()); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getUpdatedAtBytes()); - } - for (int i = 0; i < permissions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, permissions_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.PermissionTemplate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsPermissions.PermissionTemplate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.permissions.PermissionTemplate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.PermissionTemplate) - org.sonarqube.ws.WsPermissions.PermissionTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.PermissionTemplate.class, org.sonarqube.ws.WsPermissions.PermissionTemplate.Builder.class); - } - - // Construct using org.sonarqube.ws.WsPermissions.PermissionTemplate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - getPermissionsFieldBuilder(); - } - } - public Builder clear() { - super.clear(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - description_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - projectKeyPattern_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - createdAt_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - updatedAt_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - permissionsBuilder_.clear(); - } - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor; - } - - public org.sonarqube.ws.WsPermissions.PermissionTemplate getDefaultInstanceForType() { - return org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance(); - } - - public org.sonarqube.ws.WsPermissions.PermissionTemplate build() { - org.sonarqube.ws.WsPermissions.PermissionTemplate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsPermissions.PermissionTemplate buildPartial() { - org.sonarqube.ws.WsPermissions.PermissionTemplate result = new org.sonarqube.ws.WsPermissions.PermissionTemplate(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.description_ = description_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.projectKeyPattern_ = projectKeyPattern_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.createdAt_ = createdAt_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; - } - result.updatedAt_ = updatedAt_; - if (permissionsBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.permissions_ = permissions_; - } else { - result.permissions_ = permissionsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsPermissions.PermissionTemplate) { - return mergeFrom((org.sonarqube.ws.WsPermissions.PermissionTemplate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsPermissions.PermissionTemplate other) { - if (other == org.sonarqube.ws.WsPermissions.PermissionTemplate.getDefaultInstance()) return this; - if (other.hasId()) { - bitField0_ |= 0x00000001; - id_ = other.id_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasDescription()) { - bitField0_ |= 0x00000004; - description_ = other.description_; - onChanged(); - } - if (other.hasProjectKeyPattern()) { - bitField0_ |= 0x00000008; - projectKeyPattern_ = other.projectKeyPattern_; - onChanged(); - } - if (other.hasCreatedAt()) { - bitField0_ |= 0x00000010; - createdAt_ = other.createdAt_; - onChanged(); - } - if (other.hasUpdatedAt()) { - bitField0_ |= 0x00000020; - updatedAt_ = other.updatedAt_; - onChanged(); - } - if (permissionsBuilder_ == null) { - if (!other.permissions_.isEmpty()) { - if (permissions_.isEmpty()) { - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensurePermissionsIsMutable(); - permissions_.addAll(other.permissions_); - } - onChanged(); - } - } else { - if (!other.permissions_.isEmpty()) { - if (permissionsBuilder_.isEmpty()) { - permissionsBuilder_.dispose(); - permissionsBuilder_ = null; - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000040); - permissionsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? - getPermissionsFieldBuilder() : null; - } else { - permissionsBuilder_.addAllMessages(other.permissions_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsPermissions.PermissionTemplate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsPermissions.PermissionTemplate) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * optional string description = 3; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string description = 3; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - description_ = value; - onChanged(); - return this; - } - /** - * optional string description = 3; - */ - public Builder clearDescription() { - bitField0_ = (bitField0_ & ~0x00000004); - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * optional string description = 3; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - description_ = value; - onChanged(); - return this; - } - - private java.lang.Object projectKeyPattern_ = ""; - /** - * optional string projectKeyPattern = 4; - */ - public boolean hasProjectKeyPattern() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional string projectKeyPattern = 4; - */ - public java.lang.String getProjectKeyPattern() { - java.lang.Object ref = projectKeyPattern_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - projectKeyPattern_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string projectKeyPattern = 4; - */ - public com.google.protobuf.ByteString - getProjectKeyPatternBytes() { - java.lang.Object ref = projectKeyPattern_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectKeyPattern_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string projectKeyPattern = 4; - */ - public Builder setProjectKeyPattern( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - projectKeyPattern_ = value; - onChanged(); - return this; - } - /** - * optional string projectKeyPattern = 4; - */ - public Builder clearProjectKeyPattern() { - bitField0_ = (bitField0_ & ~0x00000008); - projectKeyPattern_ = getDefaultInstance().getProjectKeyPattern(); - onChanged(); - return this; - } - /** - * optional string projectKeyPattern = 4; - */ - public Builder setProjectKeyPatternBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - projectKeyPattern_ = value; - onChanged(); - return this; - } - - private java.lang.Object createdAt_ = ""; - /** - * optional string createdAt = 5; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public boolean hasCreatedAt() { - return ((bitField0_ & 0x00000010) == 0x00000010); - } - /** - * optional string createdAt = 5; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public java.lang.String getCreatedAt() { - java.lang.Object ref = createdAt_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - createdAt_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string createdAt = 5; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public com.google.protobuf.ByteString - getCreatedAtBytes() { - java.lang.Object ref = createdAt_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - createdAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string createdAt = 5; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public Builder setCreatedAt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - createdAt_ = value; - onChanged(); - return this; - } - /** - * optional string createdAt = 5; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public Builder clearCreatedAt() { - bitField0_ = (bitField0_ & ~0x00000010); - createdAt_ = getDefaultInstance().getCreatedAt(); - onChanged(); - return this; - } - /** - * optional string createdAt = 5; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public Builder setCreatedAtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - createdAt_ = value; - onChanged(); - return this; - } - - private java.lang.Object updatedAt_ = ""; - /** - * optional string updatedAt = 6; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public boolean hasUpdatedAt() { - return ((bitField0_ & 0x00000020) == 0x00000020); - } - /** - * optional string updatedAt = 6; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public java.lang.String getUpdatedAt() { - java.lang.Object ref = updatedAt_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - updatedAt_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string updatedAt = 6; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public com.google.protobuf.ByteString - getUpdatedAtBytes() { - java.lang.Object ref = updatedAt_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - updatedAt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string updatedAt = 6; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public Builder setUpdatedAt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - updatedAt_ = value; - onChanged(); - return this; - } - /** - * optional string updatedAt = 6; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public Builder clearUpdatedAt() { - bitField0_ = (bitField0_ & ~0x00000020); - updatedAt_ = getDefaultInstance().getUpdatedAt(); - onChanged(); - return this; - } - /** - * optional string updatedAt = 6; - * - *
-       * ex: 2015-08-25T16:18:48+0200
-       * 
- */ - public Builder setUpdatedAtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - updatedAt_ = value; - onChanged(); - return this; - } - - private java.util.List permissions_ = - java.util.Collections.emptyList(); - private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { - permissions_ = new java.util.ArrayList(permissions_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> permissionsBuilder_; - - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public java.util.List getPermissionsList() { - if (permissionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(permissions_); - } else { - return permissionsBuilder_.getMessageList(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public int getPermissionsCount() { - if (permissionsBuilder_ == null) { - return permissions_.size(); - } else { - return permissionsBuilder_.getCount(); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public org.sonarqube.ws.WsPermissions.Permission getPermissions(int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); - } else { - return permissionsBuilder_.getMessage(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.set(index, value); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public Builder setPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.set(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public Builder addPermissions(org.sonarqube.ws.WsPermissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(value); - onChanged(); - } else { - permissionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(index, value); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public Builder addPermissions( - org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public Builder addPermissions( - int index, org.sonarqube.ws.WsPermissions.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public Builder addAllPermissions( - java.lang.Iterable values) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); - onChanged(); - } else { - permissionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public Builder clearPermissions() { - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - permissionsBuilder_.clear(); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public Builder removePermissions(int index) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.remove(index); - onChanged(); - } else { - permissionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public org.sonarqube.ws.WsPermissions.Permission.Builder getPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().getBuilder(index); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public org.sonarqube.ws.WsPermissions.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); } else { - return permissionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public java.util.List - getPermissionsOrBuilderList() { - if (permissionsBuilder_ != null) { - return permissionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(permissions_); - } - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder() { - return getPermissionsFieldBuilder().addBuilder( - org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public org.sonarqube.ws.WsPermissions.Permission.Builder addPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().addBuilder( - index, org.sonarqube.ws.WsPermissions.Permission.getDefaultInstance()); - } - /** - * repeated .sonarqube.ws.permissions.Permission permissions = 7; - */ - public java.util.List - getPermissionsBuilderList() { - return getPermissionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder> - getPermissionsFieldBuilder() { - if (permissionsBuilder_ == null) { - permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - org.sonarqube.ws.WsPermissions.Permission, org.sonarqube.ws.WsPermissions.Permission.Builder, org.sonarqube.ws.WsPermissions.PermissionOrBuilder>( - permissions_, - ((bitField0_ & 0x00000040) == 0x00000040), - getParentForChildren(), - isClean()); - permissions_ = null; - } - return permissionsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.PermissionTemplate) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.PermissionTemplate) - private static final org.sonarqube.ws.WsPermissions.PermissionTemplate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.PermissionTemplate(); - } - - public static org.sonarqube.ws.WsPermissions.PermissionTemplate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PermissionTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new PermissionTemplate(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsPermissions.PermissionTemplate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UserOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.User) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string login = 1; - */ - boolean hasLogin(); - /** - * optional string login = 1; - */ - java.lang.String getLogin(); - /** - * optional string login = 1; - */ - com.google.protobuf.ByteString - getLoginBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string email = 3; - */ - boolean hasEmail(); - /** - * optional string email = 3; - */ - java.lang.String getEmail(); - /** - * optional string email = 3; - */ - com.google.protobuf.ByteString - getEmailBytes(); - - /** - * optional bool selected = 4; - */ - boolean hasSelected(); - /** - * optional bool selected = 4; - */ - boolean getSelected(); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.User} - */ - public static final class User extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.User) - UserOrBuilder { - // Use User.newBuilder() to construct. - private User(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private User() { - login_ = ""; - name_ = ""; - email_ = ""; - selected_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private User( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - login_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - email_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - selected_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_User_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_User_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.User.class, org.sonarqube.ws.WsPermissions.User.Builder.class); - } - - private int bitField0_; - public static final int LOGIN_FIELD_NUMBER = 1; - private volatile java.lang.Object login_; - /** - * optional string login = 1; - */ - public boolean hasLogin() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string login = 1; - */ - public java.lang.String getLogin() { - java.lang.Object ref = login_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - login_ = s; - } - return s; - } - } - /** - * optional string login = 1; - */ - public com.google.protobuf.ByteString - getLoginBytes() { - java.lang.Object ref = login_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - login_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EMAIL_FIELD_NUMBER = 3; - private volatile java.lang.Object email_; - /** - * optional string email = 3; - */ - public boolean hasEmail() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string email = 3; - */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - email_ = s; - } - return s; - } - } - /** - * optional string email = 3; - */ - public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SELECTED_FIELD_NUMBER = 4; - private boolean selected_; - /** - * optional bool selected = 4; - */ - public boolean hasSelected() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool selected = 4; - */ - public boolean getSelected() { - return selected_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getLoginBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getEmailBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBool(4, selected_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getLoginBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getEmailBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, selected_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsPermissions.User parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.User parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.User parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.User parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.User parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.User parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.User parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsPermissions.User parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.User parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.User parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsPermissions.User prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.permissions.User} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.User) - org.sonarqube.ws.WsPermissions.UserOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_User_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_User_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.User.class, org.sonarqube.ws.WsPermissions.User.Builder.class); - } - - // Construct using org.sonarqube.ws.WsPermissions.User.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - login_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - email_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - selected_ = false; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_User_descriptor; - } - - public org.sonarqube.ws.WsPermissions.User getDefaultInstanceForType() { - return org.sonarqube.ws.WsPermissions.User.getDefaultInstance(); - } - - public org.sonarqube.ws.WsPermissions.User build() { - org.sonarqube.ws.WsPermissions.User result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsPermissions.User buildPartial() { - org.sonarqube.ws.WsPermissions.User result = new org.sonarqube.ws.WsPermissions.User(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.login_ = login_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.email_ = email_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.selected_ = selected_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsPermissions.User) { - return mergeFrom((org.sonarqube.ws.WsPermissions.User)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsPermissions.User other) { - if (other == org.sonarqube.ws.WsPermissions.User.getDefaultInstance()) return this; - if (other.hasLogin()) { - bitField0_ |= 0x00000001; - login_ = other.login_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasEmail()) { - bitField0_ |= 0x00000004; - email_ = other.email_; - onChanged(); - } - if (other.hasSelected()) { - setSelected(other.getSelected()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsPermissions.User parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsPermissions.User) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object login_ = ""; - /** - * optional string login = 1; - */ - public boolean hasLogin() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string login = 1; - */ - public java.lang.String getLogin() { - java.lang.Object ref = login_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - login_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string login = 1; - */ - public com.google.protobuf.ByteString - getLoginBytes() { - java.lang.Object ref = login_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - login_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string login = 1; - */ - public Builder setLogin( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - login_ = value; - onChanged(); - return this; - } - /** - * optional string login = 1; - */ - public Builder clearLogin() { - bitField0_ = (bitField0_ & ~0x00000001); - login_ = getDefaultInstance().getLogin(); - onChanged(); - return this; - } - /** - * optional string login = 1; - */ - public Builder setLoginBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - login_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object email_ = ""; - /** - * optional string email = 3; - */ - public boolean hasEmail() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string email = 3; - */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - email_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string email = 3; - */ - public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string email = 3; - */ - public Builder setEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - email_ = value; - onChanged(); - return this; - } - /** - * optional string email = 3; - */ - public Builder clearEmail() { - bitField0_ = (bitField0_ & ~0x00000004); - email_ = getDefaultInstance().getEmail(); - onChanged(); - return this; - } - /** - * optional string email = 3; - */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - email_ = value; - onChanged(); - return this; - } - - private boolean selected_ ; - /** - * optional bool selected = 4; - */ - public boolean hasSelected() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool selected = 4; - */ - public boolean getSelected() { - return selected_; - } - /** - * optional bool selected = 4; - */ - public Builder setSelected(boolean value) { - bitField0_ |= 0x00000008; - selected_ = value; - onChanged(); - return this; - } - /** - * optional bool selected = 4; - */ - public Builder clearSelected() { - bitField0_ = (bitField0_ & ~0x00000008); - selected_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.User) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.User) - private static final org.sonarqube.ws.WsPermissions.User DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.User(); - } - - public static org.sonarqube.ws.WsPermissions.User getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public User parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new User(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsPermissions.User getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GroupOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.Group) - com.google.protobuf.MessageOrBuilder { - - /** - * optional string id = 1; - */ - boolean hasId(); - /** - * optional string id = 1; - */ - java.lang.String getId(); - /** - * optional string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * optional string name = 2; - */ - boolean hasName(); - /** - * optional string name = 2; - */ - java.lang.String getName(); - /** - * optional string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * optional string description = 3; - */ - boolean hasDescription(); - /** - * optional string description = 3; - */ - java.lang.String getDescription(); - /** - * optional string description = 3; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - * optional bool selected = 4; - */ - boolean hasSelected(); - /** - * optional bool selected = 4; - */ - boolean getSelected(); - } - /** - * Protobuf type {@code sonarqube.ws.permissions.Group} - */ - public static final class Group extends - com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.Group) - GroupOrBuilder { - // Use Group.newBuilder() to construct. - private Group(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - private Group() { - id_ = ""; - name_ = ""; - description_ = ""; - selected_ = false; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Group( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) { - this(); - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFields, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - id_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - name_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - description_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - selected_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw new RuntimeException(e.setUnfinishedMessage(this)); - } catch (java.io.IOException e) { - throw new RuntimeException( - new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this)); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Group_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Group_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.Group.class, org.sonarqube.ws.WsPermissions.Group.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - * optional string description = 3; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } - } - /** - * optional string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SELECTED_FIELD_NUMBER = 4; - private boolean selected_; - /** - * optional bool selected = 4; - */ - public boolean hasSelected() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool selected = 4; - */ - public boolean getSelected() { - return selected_; - } - - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getDescriptionBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBool(4, selected_); - } - unknownFields.writeTo(output); - } - - private int memoizedSerializedSize = -1; - public int getSerializedSize() { - int size = memoizedSerializedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getIdBytes()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getNameBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getDescriptionBytes()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, selected_); - } - size += unknownFields.getSerializedSize(); - memoizedSerializedSize = size; - return size; - } - - private static final long serialVersionUID = 0L; - public static org.sonarqube.ws.WsPermissions.Group parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.Group parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.Group parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.sonarqube.ws.WsPermissions.Group parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.Group parseFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.Group parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.Group parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); - } - public static org.sonarqube.ws.WsPermissions.Group parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); - } - public static org.sonarqube.ws.WsPermissions.Group parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return PARSER.parseFrom(input); - } - public static org.sonarqube.ws.WsPermissions.Group parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); - } - - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.sonarqube.ws.WsPermissions.Group prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code sonarqube.ws.permissions.Group} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.Group) - org.sonarqube.ws.WsPermissions.GroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Group_descriptor; - } - - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Group_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.sonarqube.ws.WsPermissions.Group.class, org.sonarqube.ws.WsPermissions.Group.Builder.class); - } - - // Construct using org.sonarqube.ws.WsPermissions.Group.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - } - } - public Builder clear() { - super.clear(); - id_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - description_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - selected_ = false; - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.sonarqube.ws.WsPermissions.internal_static_sonarqube_ws_permissions_Group_descriptor; - } - - public org.sonarqube.ws.WsPermissions.Group getDefaultInstanceForType() { - return org.sonarqube.ws.WsPermissions.Group.getDefaultInstance(); - } - - public org.sonarqube.ws.WsPermissions.Group build() { - org.sonarqube.ws.WsPermissions.Group result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - public org.sonarqube.ws.WsPermissions.Group buildPartial() { - org.sonarqube.ws.WsPermissions.Group result = new org.sonarqube.ws.WsPermissions.Group(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.id_ = id_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.description_ = description_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - result.selected_ = selected_; - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.sonarqube.ws.WsPermissions.Group) { - return mergeFrom((org.sonarqube.ws.WsPermissions.Group)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.sonarqube.ws.WsPermissions.Group other) { - if (other == org.sonarqube.ws.WsPermissions.Group.getDefaultInstance()) return this; - if (other.hasId()) { - bitField0_ |= 0x00000001; - id_ = other.id_; - onChanged(); - } - if (other.hasName()) { - bitField0_ |= 0x00000002; - name_ = other.name_; - onChanged(); - } - if (other.hasDescription()) { - bitField0_ |= 0x00000004; - description_ = other.description_; - onChanged(); - } - if (other.hasSelected()) { - setSelected(other.getSelected()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - public final boolean isInitialized() { - return true; - } - - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - org.sonarqube.ws.WsPermissions.Group parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (org.sonarqube.ws.WsPermissions.Group) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - * optional string id = 1; - */ - public boolean hasId() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * optional string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - id_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder clearId() { - bitField0_ = (bitField0_ & ~0x00000001); - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - * optional string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * optional string name = 2; - */ - public boolean hasName() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - * optional string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000002); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * optional string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - * optional string description = 3; - */ - public boolean hasDescription() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string description = 3; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - description_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string description = 3; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string description = 3; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - description_ = value; - onChanged(); - return this; - } - /** - * optional string description = 3; - */ - public Builder clearDescription() { - bitField0_ = (bitField0_ & ~0x00000004); - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * optional string description = 3; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - description_ = value; - onChanged(); - return this; - } - - private boolean selected_ ; - /** - * optional bool selected = 4; - */ - public boolean hasSelected() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - * optional bool selected = 4; - */ - public boolean getSelected() { - return selected_; - } - /** - * optional bool selected = 4; - */ - public Builder setSelected(boolean value) { - bitField0_ |= 0x00000008; - selected_ = value; - onChanged(); - return this; - } - /** - * optional bool selected = 4; - */ - public Builder clearSelected() { - bitField0_ = (bitField0_ & ~0x00000008); - selected_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.Group) - } - - // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.Group) - private static final org.sonarqube.ws.WsPermissions.Group DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.sonarqube.ws.WsPermissions.Group(); - } - - public static org.sonarqube.ws.WsPermissions.Group getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - public static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Group parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - try { - return new Group(input, extensionRegistry); - } catch (RuntimeException e) { - if (e.getCause() instanceof - com.google.protobuf.InvalidProtocolBufferException) { - throw (com.google.protobuf.InvalidProtocolBufferException) - e.getCause(); - } - throw e; - } - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - public org.sonarqube.ws.WsPermissions.Group getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsUsersResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_Permission_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_User_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_User_fieldAccessorTable; - private static com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_permissions_Group_descriptor; - private static - com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_sonarqube_ws_permissions_Group_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\024ws-permissions.proto\022\030sonarqube.ws.per" + - "missions\032\020ws-commons.proto\"n\n\017WsUsersRes" + - "ponse\022,\n\006paging\030\001 \001(\0132\034.sonarqube.ws.com" + - "mons.Paging\022-\n\005users\030\002 \003(\0132\036.sonarqube.w" + - "s.permissions.User\"q\n\020WsGroupsResponse\022," + - "\n\006paging\030\001 \001(\0132\034.sonarqube.ws.commons.Pa" + - "ging\022/\n\006groups\030\002 \003(\0132\037.sonarqube.ws.perm" + - "issions.Group\"^\n!WsSearchGlobalPermissio" + - "nsResponse\0229\n\013permissions\030\001 \003(\0132$.sonarq" + - "ube.ws.permissions.Permission\"\345\002\n\"WsSear", - "chProjectPermissionsResponse\022,\n\006paging\030\001" + - " \001(\0132\034.sonarqube.ws.commons.Paging\022V\n\010pr" + - "ojects\030\002 \003(\0132D.sonarqube.ws.permissions." + - "WsSearchProjectPermissionsResponse.Proje" + - "ct\0229\n\013permissions\030\003 \003(\0132$.sonarqube.ws.p" + - "ermissions.Permission\032~\n\007Project\022\n\n\002id\030\001" + - " \001(\t\022\013\n\003key\030\002 \001(\t\022\021\n\tqualifier\030\003 \001(\t\022\014\n\004" + - "name\030\004 \001(\t\0229\n\013permissions\030\005 \003(\0132$.sonarq" + - "ube.ws.permissions.Permission\"n\n\"WsCreat" + - "ePermissionTemplateResponse\022H\n\022permissio", - "nTemplate\030\001 \001(\0132,.sonarqube.ws.permissio" + - "ns.PermissionTemplate\"n\n\"WsUpdatePermiss" + - "ionTemplateResponse\022H\n\022permissionTemplat" + - "e\030\001 \001(\0132,.sonarqube.ws.permissions.Permi" + - "ssionTemplate\"\302\002\n\031WsSearchTemplatesRespo" + - "nse\022I\n\023permissionTemplates\030\001 \003(\0132,.sonar" + - "qube.ws.permissions.PermissionTemplate\022a" + - "\n\020defaultTemplates\030\002 \003(\0132G.sonarqube.ws." + - "permissions.WsSearchTemplatesResponse.Te" + - "mplateIdQualifier\0229\n\013permissions\030\003 \003(\0132$", - ".sonarqube.ws.permissions.Permission\032<\n\023" + - "TemplateIdQualifier\022\022\n\ntemplateId\030\001 \001(\t\022" + - "\021\n\tqualifier\030\002 \001(\t\"e\n\nPermission\022\013\n\003key\030" + - "\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t" + - "\022\022\n\nusersCount\030\004 \001(\005\022\023\n\013groupsCount\030\005 \001(" + - "\005\"\277\001\n\022PermissionTemplate\022\n\n\002id\030\001 \001(\t\022\014\n\004" + - "name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\031\n\021proje" + - "ctKeyPattern\030\004 \001(\t\022\021\n\tcreatedAt\030\005 \001(\t\022\021\n" + - "\tupdatedAt\030\006 \001(\t\0229\n\013permissions\030\007 \003(\0132$." + - "sonarqube.ws.permissions.Permission\"D\n\004U", - "ser\022\r\n\005login\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\r\n\005emai" + - "l\030\003 \001(\t\022\020\n\010selected\030\004 \001(\010\"H\n\005Group\022\n\n\002id" + - "\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\023\n\013description\030\003 \001(" + - "\t\022\020\n\010selected\030\004 \001(\010B#\n\020org.sonarqube.wsB" + - "\rWsPermissionsH\001" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - org.sonarqube.ws.Common.getDescriptor(), - }, assigner); - internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_sonarqube_ws_permissions_WsUsersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor, - new java.lang.String[] { "Paging", "Users", }); - internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor, - new java.lang.String[] { "Paging", "Groups", }); - internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor, - new java.lang.String[] { "Permissions", }); - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor, - new java.lang.String[] { "Paging", "Projects", "Permissions", }); - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor = - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor, - new java.lang.String[] { "Id", "Key", "Qualifier", "Name", "Permissions", }); - internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor, - new java.lang.String[] { "PermissionTemplate", }); - internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor, - new java.lang.String[] { "PermissionTemplate", }); - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor, - new java.lang.String[] { "PermissionTemplates", "DefaultTemplates", "Permissions", }); - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor = - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor, - new java.lang.String[] { "TemplateId", "Qualifier", }); - internal_static_sonarqube_ws_permissions_Permission_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_Permission_descriptor, - new java.lang.String[] { "Key", "Name", "Description", "UsersCount", "GroupsCount", }); - internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor, - new java.lang.String[] { "Id", "Name", "Description", "ProjectKeyPattern", "CreatedAt", "UpdatedAt", "Permissions", }); - internal_static_sonarqube_ws_permissions_User_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_sonarqube_ws_permissions_User_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_User_descriptor, - new java.lang.String[] { "Login", "Name", "Email", "Selected", }); - internal_static_sonarqube_ws_permissions_Group_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_sonarqube_ws_permissions_Group_fieldAccessorTable = new - com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_permissions_Group_descriptor, - new java.lang.String[] { "Id", "Name", "Description", "Selected", }); - org.sonarqube.ws.Common.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}