diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-09-16 15:10:22 +0200 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-09-17 11:36:12 +0200 |
commit | e7b45f77f155d73d1563c1c06e0b91b871ea65c8 (patch) | |
tree | bcff0eaaf38926029d82d4810c0aff3f92f2aa7c /sonar-ws | |
parent | 36d08a1ef549c18bfa1637795370160e1793762e (diff) | |
download | sonarqube-e7b45f77f155d73d1563c1c06e0b91b871ea65c8.tar.gz sonarqube-e7b45f77f155d73d1563c1c06e0b91b871ea65c8.zip |
SONAR-6822 WS rules/search from json to protobuf
Diffstat (limited to 'sonar-ws')
-rw-r--r-- | sonar-ws/src/main/gen-java/org/sonarqube/ws/QualityProfiles.java | 422 | ||||
-rw-r--r-- | sonar-ws/src/main/gen-java/org/sonarqube/ws/Rules.java | 16120 | ||||
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-qualityprofiles.proto | 4 | ||||
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-rules.proto | 116 |
4 files changed, 16438 insertions, 224 deletions
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 index c606ae3cbaa..d684d8faf62 100644 --- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/QualityProfiles.java +++ b/sonar-ws/src/main/gen-java/org/sonarqube/ws/QualityProfiles.java @@ -9,71 +9,61 @@ public final class QualityProfiles { com.google.protobuf.ExtensionRegistry registry) { } public interface WsSearchResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.WsSearchResponse) + // @@protoc_insertion_point(interface_extends:sonarqube.ws.qualityprofiles.WsSearchResponse) com.google.protobuf.MessageOrBuilder { /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ java.util.List<org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile> getProfilesList(); /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile getProfiles(int index); /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ int getProfilesCount(); /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ java.util.List<? extends org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfileOrBuilder> getProfilesOrBuilderList(); /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfileOrBuilder getProfilesOrBuilder( int index); } /** - * Protobuf type {@code sonarqube.ws.rules.WsSearchResponse} + * Protobuf type {@code sonarqube.ws.qualityprofiles.WsSearchResponse} * * <pre> * WS api/qualityprofiles/search * </pre> */ - public static final class WsSearchResponse extends + public static final class WsSearchResponse extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.WsSearchResponse) + // @@protoc_insertion_point(message_implements:sonarqube.ws.qualityprofiles.WsSearchResponse) WsSearchResponseOrBuilder { // Use WsSearchResponse.newBuilder() to construct. - private WsSearchResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) { + private WsSearchResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); } - private WsSearchResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final WsSearchResponse defaultInstance; - public static WsSearchResponse getDefaultInstance() { - return defaultInstance; - } - - public WsSearchResponse getDefaultInstanceForType() { - return defaultInstance; + private WsSearchResponse() { + profiles_ = java.util.Collections.emptyList(); } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private WsSearchResponse( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -103,10 +93,11 @@ public final class QualityProfiles { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); + throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { profiles_ = java.util.Collections.unmodifiableList(profiles_); @@ -117,33 +108,18 @@ public final class QualityProfiles { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_rules_WsSearchResponse_descriptor; + 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_rules_WsSearchResponse_fieldAccessorTable + 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 static com.google.protobuf.Parser<WsSearchResponse> PARSER = - new com.google.protobuf.AbstractParser<WsSearchResponse>() { - public WsSearchResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WsSearchResponse(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser<WsSearchResponse> getParserForType() { - return PARSER; - } - public interface QualityProfileOrBuilder extends - // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.WsSearchResponse.QualityProfile) + // @@protoc_insertion_point(interface_extends:sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile) com.google.protobuf.MessageOrBuilder { /** @@ -281,39 +257,39 @@ public final class QualityProfiles { getRulesUpdatedAtBytes(); } /** - * Protobuf type {@code sonarqube.ws.rules.WsSearchResponse.QualityProfile} + * Protobuf type {@code sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile} */ - public static final class QualityProfile extends + public static final class QualityProfile extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:sonarqube.ws.rules.WsSearchResponse.QualityProfile) + // @@protoc_insertion_point(message_implements:sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile) QualityProfileOrBuilder { // Use QualityProfile.newBuilder() to construct. - private QualityProfile(com.google.protobuf.GeneratedMessage.Builder<?> builder) { + private QualityProfile(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private QualityProfile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } - - private static final QualityProfile defaultInstance; - public static QualityProfile getDefaultInstance() { - return defaultInstance; } - - public QualityProfile getDefaultInstanceForType() { - return defaultInstance; + private QualityProfile() { + key_ = ""; + name_ = ""; + language_ = ""; + languageName_ = ""; + isInherited_ = false; + parentKey_ = ""; + parentName_ = ""; + isDefault_ = false; + activeRuleCount_ = 0L; + projectCount_ = 0L; + rulesUpdatedAt_ = ""; } - private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + getUnknownFields() { return this.unknownFields; } private QualityProfile( com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); + com.google.protobuf.ExtensionRegistryLite extensionRegistry) { + this(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); @@ -397,10 +373,11 @@ public final class QualityProfiles { } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); + throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); + throw new RuntimeException( + new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this)); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -408,34 +385,19 @@ public final class QualityProfiles { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_rules_WsSearchResponse_QualityProfile_descriptor; + 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_rules_WsSearchResponse_QualityProfile_fieldAccessorTable + 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); } - public static com.google.protobuf.Parser<QualityProfile> PARSER = - new com.google.protobuf.AbstractParser<QualityProfile>() { - public QualityProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QualityProfile(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser<QualityProfile> getParserForType() { - return PARSER; - } - private int bitField0_; public static final int KEY_FIELD_NUMBER = 1; - private java.lang.Object key_; + private volatile java.lang.Object key_; /** * <code>optional string key = 1;</code> */ @@ -477,7 +439,7 @@ public final class QualityProfiles { } public static final int NAME_FIELD_NUMBER = 2; - private java.lang.Object name_; + private volatile java.lang.Object name_; /** * <code>optional string name = 2;</code> */ @@ -519,7 +481,7 @@ public final class QualityProfiles { } public static final int LANGUAGE_FIELD_NUMBER = 3; - private java.lang.Object language_; + private volatile java.lang.Object language_; /** * <code>optional string language = 3;</code> */ @@ -561,7 +523,7 @@ public final class QualityProfiles { } public static final int LANGUAGENAME_FIELD_NUMBER = 4; - private java.lang.Object languageName_; + private volatile java.lang.Object languageName_; /** * <code>optional string languageName = 4;</code> */ @@ -618,7 +580,7 @@ public final class QualityProfiles { } public static final int PARENTKEY_FIELD_NUMBER = 6; - private java.lang.Object parentKey_; + private volatile java.lang.Object parentKey_; /** * <code>optional string parentKey = 6;</code> */ @@ -660,7 +622,7 @@ public final class QualityProfiles { } public static final int PARENTNAME_FIELD_NUMBER = 7; - private java.lang.Object parentName_; + private volatile java.lang.Object parentName_; /** * <code>optional string parentName = 7;</code> */ @@ -747,7 +709,7 @@ public final class QualityProfiles { } public static final int RULESUPDATEDAT_FIELD_NUMBER = 11; - private java.lang.Object rulesUpdatedAt_; + private volatile java.lang.Object rulesUpdatedAt_; /** * <code>optional string rulesUpdatedAt = 11;</code> */ @@ -788,19 +750,6 @@ public final class QualityProfiles { } } - private void initFields() { - key_ = ""; - name_ = ""; - language_ = ""; - languageName_ = ""; - isInherited_ = false; - parentKey_ = ""; - parentName_ = ""; - isDefault_ = false; - activeRuleCount_ = 0L; - projectCount_ = 0L; - rulesUpdatedAt_ = ""; - } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -813,7 +762,6 @@ public final class QualityProfiles { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getKeyBytes()); } @@ -847,7 +795,7 @@ public final class QualityProfiles { if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBytes(11, getRulesUpdatedAtBytes()); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } private int memoizedSerializedSize = -1; @@ -900,18 +848,12 @@ public final class QualityProfiles { size += com.google.protobuf.CodedOutputStream .computeBytesSize(11, getRulesUpdatedAtBytes()); } - size += getUnknownFields().getSerializedSize(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -965,12 +907,17 @@ public final class QualityProfiles { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } 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 newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -979,20 +926,20 @@ public final class QualityProfiles { return builder; } /** - * Protobuf type {@code sonarqube.ws.rules.WsSearchResponse.QualityProfile} + * Protobuf type {@code sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.WsSearchResponse.QualityProfile) + // @@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_rules_WsSearchResponse_QualityProfile_descriptor; + 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_rules_WsSearchResponse_QualityProfile_fieldAccessorTable + 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); } @@ -1011,10 +958,6 @@ public final class QualityProfiles { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); key_ = ""; @@ -1042,13 +985,9 @@ public final class QualityProfiles { return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_rules_WsSearchResponse_QualityProfile_descriptor; + return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_QualityProfile_descriptor; } public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile getDefaultInstanceForType() { @@ -1174,7 +1113,8 @@ public final class QualityProfiles { rulesUpdatedAt_ = other.rulesUpdatedAt_; onChanged(); } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } @@ -1861,55 +1801,84 @@ public final class QualityProfiles { return this; } - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.WsSearchResponse.QualityProfile) + // @@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 { - defaultInstance = new QualityProfile(true); - defaultInstance.initFields(); + 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<QualityProfile> PARSER = + new com.google.protobuf.AbstractParser<QualityProfile>() { + 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<QualityProfile> getParserForType() { + return PARSER; + } + + public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.WsSearchResponse.QualityProfile) } public static final int PROFILES_FIELD_NUMBER = 1; private java.util.List<org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile> profiles_; /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public java.util.List<org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile> getProfilesList() { return profiles_; } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public java.util.List<? extends org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfileOrBuilder> getProfilesOrBuilderList() { return profiles_; } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public int getProfilesCount() { return profiles_.size(); } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile getProfiles(int index) { return profiles_.get(index); } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfileOrBuilder getProfilesOrBuilder( int index) { return profiles_.get(index); } - private void initFields() { - profiles_ = java.util.Collections.emptyList(); - } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1922,11 +1891,10 @@ public final class QualityProfiles { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); for (int i = 0; i < profiles_.size(); i++) { output.writeMessage(1, profiles_.get(i)); } - getUnknownFields().writeTo(output); + unknownFields.writeTo(output); } private int memoizedSerializedSize = -1; @@ -1939,18 +1907,12 @@ public final class QualityProfiles { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, profiles_.get(i)); } - size += getUnknownFields().getSerializedSize(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; - @java.lang.Override - protected java.lang.Object writeReplace() - throws java.io.ObjectStreamException { - return super.writeReplace(); - } - public static org.sonarqube.ws.QualityProfiles.WsSearchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2004,12 +1966,17 @@ public final class QualityProfiles { return PARSER.parseFrom(input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } public static Builder newBuilder(org.sonarqube.ws.QualityProfiles.WsSearchResponse prototype) { - return newBuilder().mergeFrom(prototype); + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } - public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( @@ -2018,7 +1985,7 @@ public final class QualityProfiles { return builder; } /** - * Protobuf type {@code sonarqube.ws.rules.WsSearchResponse} + * Protobuf type {@code sonarqube.ws.qualityprofiles.WsSearchResponse} * * <pre> * WS api/qualityprofiles/search @@ -2026,16 +1993,16 @@ public final class QualityProfiles { */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements - // @@protoc_insertion_point(builder_implements:sonarqube.ws.rules.WsSearchResponse) + // @@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_rules_WsSearchResponse_descriptor; + 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_rules_WsSearchResponse_fieldAccessorTable + 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); } @@ -2055,10 +2022,6 @@ public final class QualityProfiles { getProfilesFieldBuilder(); } } - private static Builder create() { - return new Builder(); - } - public Builder clear() { super.clear(); if (profilesBuilder_ == null) { @@ -2070,13 +2033,9 @@ public final class QualityProfiles { return this; } - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_rules_WsSearchResponse_descriptor; + return org.sonarqube.ws.QualityProfiles.internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_descriptor; } public org.sonarqube.ws.QualityProfiles.WsSearchResponse getDefaultInstanceForType() { @@ -2144,7 +2103,8 @@ public final class QualityProfiles { } } } - this.mergeUnknownFields(other.getUnknownFields()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); return this; } @@ -2184,7 +2144,7 @@ public final class QualityProfiles { org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfileOrBuilder> profilesBuilder_; /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public java.util.List<org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile> getProfilesList() { if (profilesBuilder_ == null) { @@ -2194,7 +2154,7 @@ public final class QualityProfiles { } } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public int getProfilesCount() { if (profilesBuilder_ == null) { @@ -2204,7 +2164,7 @@ public final class QualityProfiles { } } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile getProfiles(int index) { if (profilesBuilder_ == null) { @@ -2214,7 +2174,7 @@ public final class QualityProfiles { } } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public Builder setProfiles( int index, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile value) { @@ -2231,7 +2191,7 @@ public final class QualityProfiles { return this; } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public Builder setProfiles( int index, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder builderForValue) { @@ -2245,7 +2205,7 @@ public final class QualityProfiles { return this; } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public Builder addProfiles(org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile value) { if (profilesBuilder_ == null) { @@ -2261,7 +2221,7 @@ public final class QualityProfiles { return this; } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public Builder addProfiles( int index, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile value) { @@ -2278,7 +2238,7 @@ public final class QualityProfiles { return this; } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public Builder addProfiles( org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder builderForValue) { @@ -2292,7 +2252,7 @@ public final class QualityProfiles { return this; } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public Builder addProfiles( int index, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder builderForValue) { @@ -2306,7 +2266,7 @@ public final class QualityProfiles { return this; } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public Builder addAllProfiles( java.lang.Iterable<? extends org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile> values) { @@ -2321,7 +2281,7 @@ public final class QualityProfiles { return this; } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public Builder clearProfiles() { if (profilesBuilder_ == null) { @@ -2334,7 +2294,7 @@ public final class QualityProfiles { return this; } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public Builder removeProfiles(int index) { if (profilesBuilder_ == null) { @@ -2347,14 +2307,14 @@ public final class QualityProfiles { return this; } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder getProfilesBuilder( int index) { return getProfilesFieldBuilder().getBuilder(index); } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfileOrBuilder getProfilesOrBuilder( int index) { @@ -2364,7 +2324,7 @@ public final class QualityProfiles { } } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public java.util.List<? extends org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfileOrBuilder> getProfilesOrBuilderList() { @@ -2375,14 +2335,14 @@ public final class QualityProfiles { } } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder addProfilesBuilder() { return getProfilesFieldBuilder().addBuilder( org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.getDefaultInstance()); } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder addProfilesBuilder( int index) { @@ -2390,7 +2350,7 @@ public final class QualityProfiles { index, org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.getDefaultInstance()); } /** - * <code>repeated .sonarqube.ws.rules.WsSearchResponse.QualityProfile profiles = 1;</code> + * <code>repeated .sonarqube.ws.qualityprofiles.WsSearchResponse.QualityProfile profiles = 1;</code> */ public java.util.List<org.sonarqube.ws.QualityProfiles.WsSearchResponse.QualityProfile.Builder> getProfilesBuilderList() { @@ -2411,27 +2371,59 @@ public final class QualityProfiles { return profilesBuilder_; } - // @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.WsSearchResponse) + // @@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 { - defaultInstance = new WsSearchResponse(true); - defaultInstance.initFields(); + 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<WsSearchResponse> PARSER = + new com.google.protobuf.AbstractParser<WsSearchResponse>() { + 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<WsSearchResponse> getParserForType() { + return PARSER; + } + + public org.sonarqube.ws.QualityProfiles.WsSearchResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.WsSearchResponse) } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_WsSearchResponse_descriptor; + 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_rules_WsSearchResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_sonarqube_ws_rules_WsSearchResponse_QualityProfile_descriptor; + 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_rules_WsSearchResponse_QualityProfile_fieldAccessorTable; + internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_QualityProfile_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -2441,17 +2433,17 @@ public final class QualityProfiles { descriptor; static { java.lang.String[] descriptorData = { - "\n\030ws-qualityprofiles.proto\022\022sonarqube.ws" + - ".rules\"\305\002\n\020WsSearchResponse\022E\n\010profiles\030" + - "\001 \003(\01323.sonarqube.ws.rules.WsSearchRespo" + - "nse.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\017activeRuleCou" + - "nt\030\t \001(\003\022\024\n\014projectCount\030\n \001(\003\022\026\n\016rulesU" + - "pdatedAt\030\013 \001(\tB%\n\020org.sonarqube.wsB\017Qual", - "ityProfilesH\001" + "\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() { @@ -2465,17 +2457,17 @@ public final class QualityProfiles { .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); - internal_static_sonarqube_ws_rules_WsSearchResponse_descriptor = + internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_descriptor = getDescriptor().getMessageTypes().get(0); - internal_static_sonarqube_ws_rules_WsSearchResponse_fieldAccessorTable = new + internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_sonarqube_ws_rules_WsSearchResponse_descriptor, + internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_descriptor, new java.lang.String[] { "Profiles", }); - internal_static_sonarqube_ws_rules_WsSearchResponse_QualityProfile_descriptor = - internal_static_sonarqube_ws_rules_WsSearchResponse_descriptor.getNestedTypes().get(0); - internal_static_sonarqube_ws_rules_WsSearchResponse_QualityProfile_fieldAccessorTable = new + 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_rules_WsSearchResponse_QualityProfile_descriptor, + internal_static_sonarqube_ws_qualityprofiles_WsSearchResponse_QualityProfile_descriptor, new java.lang.String[] { "Key", "Name", "Language", "LanguageName", "IsInherited", "ParentKey", "ParentName", "IsDefault", "ActiveRuleCount", "ProjectCount", "RulesUpdatedAt", }); } 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 index 42bacfc188a..e39a5897ffe 100644 --- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Rules.java +++ b/sonar-ws/src/main/gen-java/org/sonarqube/ws/Rules.java @@ -1631,6 +1631,15873 @@ public final class Rules { } + public interface SearchResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.SearchResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * <code>optional int64 total = 1;</code> + */ + boolean hasTotal(); + /** + * <code>optional int64 total = 1;</code> + */ + long getTotal(); + + /** + * <code>optional int32 p = 2;</code> + */ + boolean hasP(); + /** + * <code>optional int32 p = 2;</code> + */ + int getP(); + + /** + * <code>optional int64 ps = 3;</code> + */ + boolean hasPs(); + /** + * <code>optional int64 ps = 3;</code> + */ + long getPs(); + + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + java.util.List<org.sonarqube.ws.Rules.Rule> + getRulesList(); + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + org.sonarqube.ws.Rules.Rule getRules(int index); + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + int getRulesCount(); + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + java.util.List<? extends org.sonarqube.ws.Rules.RuleOrBuilder> + getRulesOrBuilderList(); + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + org.sonarqube.ws.Rules.RuleOrBuilder getRulesOrBuilder( + int index); + + /** + * <code>optional .sonarqube.ws.rules.Actives actives = 5;</code> + */ + boolean hasActives(); + /** + * <code>optional .sonarqube.ws.rules.Actives actives = 5;</code> + */ + org.sonarqube.ws.Rules.Actives getActives(); + /** + * <code>optional .sonarqube.ws.rules.Actives actives = 5;</code> + */ + org.sonarqube.ws.Rules.ActivesOrBuilder getActivesOrBuilder(); + + /** + * <code>optional .sonarqube.ws.rules.QProfiles qProfiles = 6;</code> + */ + boolean hasQProfiles(); + /** + * <code>optional .sonarqube.ws.rules.QProfiles qProfiles = 6;</code> + */ + org.sonarqube.ws.Rules.QProfiles getQProfiles(); + /** + * <code>optional .sonarqube.ws.rules.QProfiles qProfiles = 6;</code> + */ + org.sonarqube.ws.Rules.QProfilesOrBuilder getQProfilesOrBuilder(); + + /** + * <code>optional .sonarqube.ws.commons.Facets facets = 7;</code> + */ + boolean hasFacets(); + /** + * <code>optional .sonarqube.ws.commons.Facets facets = 7;</code> + */ + org.sonarqube.ws.Common.Facets getFacets(); + /** + * <code>optional .sonarqube.ws.commons.Facets facets = 7;</code> + */ + org.sonarqube.ws.Common.FacetsOrBuilder getFacetsOrBuilder(); + } + /** + * Protobuf type {@code sonarqube.ws.rules.SearchResponse} + * + * <pre> + * WS api/rules/search + * </pre> + */ + 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<org.sonarqube.ws.Rules.Rule>(); + 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_; + /** + * <code>optional int64 total = 1;</code> + */ + public boolean hasTotal() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional int64 total = 1;</code> + */ + public long getTotal() { + return total_; + } + + public static final int P_FIELD_NUMBER = 2; + private int p_; + /** + * <code>optional int32 p = 2;</code> + */ + public boolean hasP() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional int32 p = 2;</code> + */ + public int getP() { + return p_; + } + + public static final int PS_FIELD_NUMBER = 3; + private long ps_; + /** + * <code>optional int64 ps = 3;</code> + */ + public boolean hasPs() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * <code>optional int64 ps = 3;</code> + */ + public long getPs() { + return ps_; + } + + public static final int RULES_FIELD_NUMBER = 4; + private java.util.List<org.sonarqube.ws.Rules.Rule> rules_; + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + public java.util.List<org.sonarqube.ws.Rules.Rule> getRulesList() { + return rules_; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + public java.util.List<? extends org.sonarqube.ws.Rules.RuleOrBuilder> + getRulesOrBuilderList() { + return rules_; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + public int getRulesCount() { + return rules_.size(); + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + public org.sonarqube.ws.Rules.Rule getRules(int index) { + return rules_.get(index); + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + 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_; + /** + * <code>optional .sonarqube.ws.rules.Actives actives = 5;</code> + */ + public boolean hasActives() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * <code>optional .sonarqube.ws.rules.Actives actives = 5;</code> + */ + public org.sonarqube.ws.Rules.Actives getActives() { + return actives_ == null ? org.sonarqube.ws.Rules.Actives.getDefaultInstance() : actives_; + } + /** + * <code>optional .sonarqube.ws.rules.Actives actives = 5;</code> + */ + 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_; + /** + * <code>optional .sonarqube.ws.rules.QProfiles qProfiles = 6;</code> + */ + public boolean hasQProfiles() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * <code>optional .sonarqube.ws.rules.QProfiles qProfiles = 6;</code> + */ + public org.sonarqube.ws.Rules.QProfiles getQProfiles() { + return qProfiles_ == null ? org.sonarqube.ws.Rules.QProfiles.getDefaultInstance() : qProfiles_; + } + /** + * <code>optional .sonarqube.ws.rules.QProfiles qProfiles = 6;</code> + */ + 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_; + /** + * <code>optional .sonarqube.ws.commons.Facets facets = 7;</code> + */ + public boolean hasFacets() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * <code>optional .sonarqube.ws.commons.Facets facets = 7;</code> + */ + public org.sonarqube.ws.Common.Facets getFacets() { + return facets_ == null ? org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_; + } + /** + * <code>optional .sonarqube.ws.commons.Facets facets = 7;</code> + */ + 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} + * + * <pre> + * WS api/rules/search + * </pre> + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder<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_ ; + /** + * <code>optional int64 total = 1;</code> + */ + public boolean hasTotal() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional int64 total = 1;</code> + */ + public long getTotal() { + return total_; + } + /** + * <code>optional int64 total = 1;</code> + */ + public Builder setTotal(long value) { + bitField0_ |= 0x00000001; + total_ = value; + onChanged(); + return this; + } + /** + * <code>optional int64 total = 1;</code> + */ + public Builder clearTotal() { + bitField0_ = (bitField0_ & ~0x00000001); + total_ = 0L; + onChanged(); + return this; + } + + private int p_ ; + /** + * <code>optional int32 p = 2;</code> + */ + public boolean hasP() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional int32 p = 2;</code> + */ + public int getP() { + return p_; + } + /** + * <code>optional int32 p = 2;</code> + */ + public Builder setP(int value) { + bitField0_ |= 0x00000002; + p_ = value; + onChanged(); + return this; + } + /** + * <code>optional int32 p = 2;</code> + */ + public Builder clearP() { + bitField0_ = (bitField0_ & ~0x00000002); + p_ = 0; + onChanged(); + return this; + } + + private long ps_ ; + /** + * <code>optional int64 ps = 3;</code> + */ + public boolean hasPs() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * <code>optional int64 ps = 3;</code> + */ + public long getPs() { + return ps_; + } + /** + * <code>optional int64 ps = 3;</code> + */ + public Builder setPs(long value) { + bitField0_ |= 0x00000004; + ps_ = value; + onChanged(); + return this; + } + /** + * <code>optional int64 ps = 3;</code> + */ + public Builder clearPs() { + bitField0_ = (bitField0_ & ~0x00000004); + ps_ = 0L; + onChanged(); + return this; + } + + private java.util.List<org.sonarqube.ws.Rules.Rule> rules_ = + java.util.Collections.emptyList(); + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + rules_ = new java.util.ArrayList<org.sonarqube.ws.Rules.Rule>(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_; + + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + public java.util.List<org.sonarqube.ws.Rules.Rule> getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + public org.sonarqube.ws.Rules.Rule getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + public Builder addAllRules( + java.lang.Iterable<? extends org.sonarqube.ws.Rules.Rule> values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + public org.sonarqube.ws.Rules.Rule.Builder getRulesBuilder( + int index) { + return getRulesFieldBuilder().getBuilder(index); + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + public org.sonarqube.ws.Rules.RuleOrBuilder getRulesOrBuilder( + int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + public java.util.List<? extends org.sonarqube.ws.Rules.RuleOrBuilder> + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + public org.sonarqube.ws.Rules.Rule.Builder addRulesBuilder() { + return getRulesFieldBuilder().addBuilder( + org.sonarqube.ws.Rules.Rule.getDefaultInstance()); + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + public org.sonarqube.ws.Rules.Rule.Builder addRulesBuilder( + int index) { + return getRulesFieldBuilder().addBuilder( + index, org.sonarqube.ws.Rules.Rule.getDefaultInstance()); + } + /** + * <code>repeated .sonarqube.ws.rules.Rule rules = 4;</code> + */ + public java.util.List<org.sonarqube.ws.Rules.Rule.Builder> + 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_; + /** + * <code>optional .sonarqube.ws.rules.Actives actives = 5;</code> + */ + public boolean hasActives() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * <code>optional .sonarqube.ws.rules.Actives actives = 5;</code> + */ + public org.sonarqube.ws.Rules.Actives getActives() { + if (activesBuilder_ == null) { + return actives_ == null ? org.sonarqube.ws.Rules.Actives.getDefaultInstance() : actives_; + } else { + return activesBuilder_.getMessage(); + } + } + /** + * <code>optional .sonarqube.ws.rules.Actives actives = 5;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Actives actives = 5;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Actives actives = 5;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Actives actives = 5;</code> + */ + public Builder clearActives() { + if (activesBuilder_ == null) { + actives_ = null; + onChanged(); + } else { + activesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + /** + * <code>optional .sonarqube.ws.rules.Actives actives = 5;</code> + */ + public org.sonarqube.ws.Rules.Actives.Builder getActivesBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getActivesFieldBuilder().getBuilder(); + } + /** + * <code>optional .sonarqube.ws.rules.Actives actives = 5;</code> + */ + public org.sonarqube.ws.Rules.ActivesOrBuilder getActivesOrBuilder() { + if (activesBuilder_ != null) { + return activesBuilder_.getMessageOrBuilder(); + } else { + return actives_ == null ? + org.sonarqube.ws.Rules.Actives.getDefaultInstance() : actives_; + } + } + /** + * <code>optional .sonarqube.ws.rules.Actives actives = 5;</code> + */ + 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_; + /** + * <code>optional .sonarqube.ws.rules.QProfiles qProfiles = 6;</code> + */ + public boolean hasQProfiles() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * <code>optional .sonarqube.ws.rules.QProfiles qProfiles = 6;</code> + */ + public org.sonarqube.ws.Rules.QProfiles getQProfiles() { + if (qProfilesBuilder_ == null) { + return qProfiles_ == null ? org.sonarqube.ws.Rules.QProfiles.getDefaultInstance() : qProfiles_; + } else { + return qProfilesBuilder_.getMessage(); + } + } + /** + * <code>optional .sonarqube.ws.rules.QProfiles qProfiles = 6;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.QProfiles qProfiles = 6;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.QProfiles qProfiles = 6;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.QProfiles qProfiles = 6;</code> + */ + public Builder clearQProfiles() { + if (qProfilesBuilder_ == null) { + qProfiles_ = null; + onChanged(); + } else { + qProfilesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + /** + * <code>optional .sonarqube.ws.rules.QProfiles qProfiles = 6;</code> + */ + public org.sonarqube.ws.Rules.QProfiles.Builder getQProfilesBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getQProfilesFieldBuilder().getBuilder(); + } + /** + * <code>optional .sonarqube.ws.rules.QProfiles qProfiles = 6;</code> + */ + public org.sonarqube.ws.Rules.QProfilesOrBuilder getQProfilesOrBuilder() { + if (qProfilesBuilder_ != null) { + return qProfilesBuilder_.getMessageOrBuilder(); + } else { + return qProfiles_ == null ? + org.sonarqube.ws.Rules.QProfiles.getDefaultInstance() : qProfiles_; + } + } + /** + * <code>optional .sonarqube.ws.rules.QProfiles qProfiles = 6;</code> + */ + 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_; + /** + * <code>optional .sonarqube.ws.commons.Facets facets = 7;</code> + */ + public boolean hasFacets() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * <code>optional .sonarqube.ws.commons.Facets facets = 7;</code> + */ + public org.sonarqube.ws.Common.Facets getFacets() { + if (facetsBuilder_ == null) { + return facets_ == null ? org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_; + } else { + return facetsBuilder_.getMessage(); + } + } + /** + * <code>optional .sonarqube.ws.commons.Facets facets = 7;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.commons.Facets facets = 7;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.commons.Facets facets = 7;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.commons.Facets facets = 7;</code> + */ + public Builder clearFacets() { + if (facetsBuilder_ == null) { + facets_ = null; + onChanged(); + } else { + facetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + /** + * <code>optional .sonarqube.ws.commons.Facets facets = 7;</code> + */ + public org.sonarqube.ws.Common.Facets.Builder getFacetsBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getFacetsFieldBuilder().getBuilder(); + } + /** + * <code>optional .sonarqube.ws.commons.Facets facets = 7;</code> + */ + public org.sonarqube.ws.Common.FacetsOrBuilder getFacetsOrBuilder() { + if (facetsBuilder_ != null) { + return facetsBuilder_.getMessageOrBuilder(); + } else { + return facets_ == null ? + org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_; + } + } + /** + * <code>optional .sonarqube.ws.commons.Facets facets = 7;</code> + */ + 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<SearchResponse> PARSER = + new com.google.protobuf.AbstractParser<SearchResponse>() { + 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<SearchResponse> 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 { + + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + boolean hasRule(); + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + org.sonarqube.ws.Rules.Rule getRule(); + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + org.sonarqube.ws.Rules.RuleOrBuilder getRuleOrBuilder(); + + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + java.util.List<org.sonarqube.ws.Rules.Active> + getActivesList(); + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + org.sonarqube.ws.Rules.Active getActives(int index); + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + int getActivesCount(); + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + java.util.List<? extends org.sonarqube.ws.Rules.ActiveOrBuilder> + getActivesOrBuilderList(); + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + org.sonarqube.ws.Rules.ActiveOrBuilder getActivesOrBuilder( + int index); + } + /** + * Protobuf type {@code sonarqube.ws.rules.ShowResponse} + * + * <pre> + *WS api/rules/show + * </pre> + */ + 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<org.sonarqube.ws.Rules.Active>(); + 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_; + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public boolean hasRule() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public org.sonarqube.ws.Rules.Rule getRule() { + return rule_ == null ? org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + 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<org.sonarqube.ws.Rules.Active> actives_; + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + public java.util.List<org.sonarqube.ws.Rules.Active> getActivesList() { + return actives_; + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + public java.util.List<? extends org.sonarqube.ws.Rules.ActiveOrBuilder> + getActivesOrBuilderList() { + return actives_; + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + public int getActivesCount() { + return actives_.size(); + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + public org.sonarqube.ws.Rules.Active getActives(int index) { + return actives_.get(index); + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + 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} + * + * <pre> + *WS api/rules/show + * </pre> + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder<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_; + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public boolean hasRule() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public org.sonarqube.ws.Rules.Rule getRule() { + if (ruleBuilder_ == null) { + return rule_ == null ? org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; + } else { + return ruleBuilder_.getMessage(); + } + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public Builder clearRule() { + if (ruleBuilder_ == null) { + rule_ = null; + onChanged(); + } else { + ruleBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public org.sonarqube.ws.Rules.Rule.Builder getRuleBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRuleFieldBuilder().getBuilder(); + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public org.sonarqube.ws.Rules.RuleOrBuilder getRuleOrBuilder() { + if (ruleBuilder_ != null) { + return ruleBuilder_.getMessageOrBuilder(); + } else { + return rule_ == null ? + org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; + } + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + 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<org.sonarqube.ws.Rules.Active> actives_ = + java.util.Collections.emptyList(); + private void ensureActivesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + actives_ = new java.util.ArrayList<org.sonarqube.ws.Rules.Active>(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_; + + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + public java.util.List<org.sonarqube.ws.Rules.Active> getActivesList() { + if (activesBuilder_ == null) { + return java.util.Collections.unmodifiableList(actives_); + } else { + return activesBuilder_.getMessageList(); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + public int getActivesCount() { + if (activesBuilder_ == null) { + return actives_.size(); + } else { + return activesBuilder_.getCount(); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + public org.sonarqube.ws.Rules.Active getActives(int index) { + if (activesBuilder_ == null) { + return actives_.get(index); + } else { + return activesBuilder_.getMessage(index); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + public Builder addAllActives( + java.lang.Iterable<? extends org.sonarqube.ws.Rules.Active> values) { + if (activesBuilder_ == null) { + ensureActivesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, actives_); + onChanged(); + } else { + activesBuilder_.addAllMessages(values); + } + return this; + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + public Builder clearActives() { + if (activesBuilder_ == null) { + actives_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + activesBuilder_.clear(); + } + return this; + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + public Builder removeActives(int index) { + if (activesBuilder_ == null) { + ensureActivesIsMutable(); + actives_.remove(index); + onChanged(); + } else { + activesBuilder_.remove(index); + } + return this; + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + public org.sonarqube.ws.Rules.Active.Builder getActivesBuilder( + int index) { + return getActivesFieldBuilder().getBuilder(index); + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + public org.sonarqube.ws.Rules.ActiveOrBuilder getActivesOrBuilder( + int index) { + if (activesBuilder_ == null) { + return actives_.get(index); } else { + return activesBuilder_.getMessageOrBuilder(index); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + public java.util.List<? extends org.sonarqube.ws.Rules.ActiveOrBuilder> + getActivesOrBuilderList() { + if (activesBuilder_ != null) { + return activesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(actives_); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + public org.sonarqube.ws.Rules.Active.Builder addActivesBuilder() { + return getActivesFieldBuilder().addBuilder( + org.sonarqube.ws.Rules.Active.getDefaultInstance()); + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + public org.sonarqube.ws.Rules.Active.Builder addActivesBuilder( + int index) { + return getActivesFieldBuilder().addBuilder( + index, org.sonarqube.ws.Rules.Active.getDefaultInstance()); + } + /** + * <code>repeated .sonarqube.ws.rules.Active actives = 3;</code> + */ + public java.util.List<org.sonarqube.ws.Rules.Active.Builder> + 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<ShowResponse> PARSER = + new com.google.protobuf.AbstractParser<ShowResponse>() { + 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<ShowResponse> 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 { + + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + boolean hasRule(); + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + org.sonarqube.ws.Rules.Rule getRule(); + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + org.sonarqube.ws.Rules.RuleOrBuilder getRuleOrBuilder(); + } + /** + * Protobuf type {@code sonarqube.ws.rules.CreateResponse} + * + * <pre> + *WS api/rules/create + * </pre> + */ + 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_; + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public boolean hasRule() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public org.sonarqube.ws.Rules.Rule getRule() { + return rule_ == null ? org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + 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} + * + * <pre> + *WS api/rules/create + * </pre> + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder<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_; + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public boolean hasRule() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public org.sonarqube.ws.Rules.Rule getRule() { + if (ruleBuilder_ == null) { + return rule_ == null ? org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; + } else { + return ruleBuilder_.getMessage(); + } + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public Builder clearRule() { + if (ruleBuilder_ == null) { + rule_ = null; + onChanged(); + } else { + ruleBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public org.sonarqube.ws.Rules.Rule.Builder getRuleBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRuleFieldBuilder().getBuilder(); + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public org.sonarqube.ws.Rules.RuleOrBuilder getRuleOrBuilder() { + if (ruleBuilder_ != null) { + return ruleBuilder_.getMessageOrBuilder(); + } else { + return rule_ == null ? + org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; + } + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + 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<CreateResponse> PARSER = + new com.google.protobuf.AbstractParser<CreateResponse>() { + 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<CreateResponse> 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 { + + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + boolean hasRule(); + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + org.sonarqube.ws.Rules.Rule getRule(); + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + org.sonarqube.ws.Rules.RuleOrBuilder getRuleOrBuilder(); + } + /** + * Protobuf type {@code sonarqube.ws.rules.UpdateResponse} + * + * <pre> + *WS api/rules/update + * </pre> + */ + 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_; + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public boolean hasRule() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public org.sonarqube.ws.Rules.Rule getRule() { + return rule_ == null ? org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + 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} + * + * <pre> + *WS api/rules/update + * </pre> + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder<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_; + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public boolean hasRule() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public org.sonarqube.ws.Rules.Rule getRule() { + if (ruleBuilder_ == null) { + return rule_ == null ? org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; + } else { + return ruleBuilder_.getMessage(); + } + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public Builder clearRule() { + if (ruleBuilder_ == null) { + rule_ = null; + onChanged(); + } else { + ruleBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public org.sonarqube.ws.Rules.Rule.Builder getRuleBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRuleFieldBuilder().getBuilder(); + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + public org.sonarqube.ws.Rules.RuleOrBuilder getRuleOrBuilder() { + if (ruleBuilder_ != null) { + return ruleBuilder_.getMessageOrBuilder(); + } else { + return rule_ == null ? + org.sonarqube.ws.Rules.Rule.getDefaultInstance() : rule_; + } + } + /** + * <code>optional .sonarqube.ws.rules.Rule rule = 1;</code> + */ + 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<UpdateResponse> PARSER = + new com.google.protobuf.AbstractParser<UpdateResponse>() { + 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<UpdateResponse> 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 { + + /** + * <code>optional string key = 1;</code> + */ + boolean hasKey(); + /** + * <code>optional string key = 1;</code> + */ + java.lang.String getKey(); + /** + * <code>optional string key = 1;</code> + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * <code>optional string repo = 2;</code> + */ + boolean hasRepo(); + /** + * <code>optional string repo = 2;</code> + */ + java.lang.String getRepo(); + /** + * <code>optional string repo = 2;</code> + */ + com.google.protobuf.ByteString + getRepoBytes(); + + /** + * <code>optional string name = 3;</code> + */ + boolean hasName(); + /** + * <code>optional string name = 3;</code> + */ + java.lang.String getName(); + /** + * <code>optional string name = 3;</code> + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * <code>optional string createdAt = 4;</code> + */ + boolean hasCreatedAt(); + /** + * <code>optional string createdAt = 4;</code> + */ + java.lang.String getCreatedAt(); + /** + * <code>optional string createdAt = 4;</code> + */ + com.google.protobuf.ByteString + getCreatedAtBytes(); + + /** + * <code>optional string htmlDesc = 5;</code> + */ + boolean hasHtmlDesc(); + /** + * <code>optional string htmlDesc = 5;</code> + */ + java.lang.String getHtmlDesc(); + /** + * <code>optional string htmlDesc = 5;</code> + */ + com.google.protobuf.ByteString + getHtmlDescBytes(); + + /** + * <code>optional string htmlNote = 6;</code> + */ + boolean hasHtmlNote(); + /** + * <code>optional string htmlNote = 6;</code> + */ + java.lang.String getHtmlNote(); + /** + * <code>optional string htmlNote = 6;</code> + */ + com.google.protobuf.ByteString + getHtmlNoteBytes(); + + /** + * <code>optional string mdDesc = 7;</code> + */ + boolean hasMdDesc(); + /** + * <code>optional string mdDesc = 7;</code> + */ + java.lang.String getMdDesc(); + /** + * <code>optional string mdDesc = 7;</code> + */ + com.google.protobuf.ByteString + getMdDescBytes(); + + /** + * <code>optional string mdNote = 8;</code> + */ + boolean hasMdNote(); + /** + * <code>optional string mdNote = 8;</code> + */ + java.lang.String getMdNote(); + /** + * <code>optional string mdNote = 8;</code> + */ + com.google.protobuf.ByteString + getMdNoteBytes(); + + /** + * <code>optional string noteLogin = 9;</code> + */ + boolean hasNoteLogin(); + /** + * <code>optional string noteLogin = 9;</code> + */ + java.lang.String getNoteLogin(); + /** + * <code>optional string noteLogin = 9;</code> + */ + com.google.protobuf.ByteString + getNoteLoginBytes(); + + /** + * <code>optional string severity = 10;</code> + */ + boolean hasSeverity(); + /** + * <code>optional string severity = 10;</code> + */ + java.lang.String getSeverity(); + /** + * <code>optional string severity = 10;</code> + */ + com.google.protobuf.ByteString + getSeverityBytes(); + + /** + * <code>optional .sonarqube.ws.commons.RuleStatus status = 11;</code> + */ + boolean hasStatus(); + /** + * <code>optional .sonarqube.ws.commons.RuleStatus status = 11;</code> + */ + org.sonarqube.ws.Common.RuleStatus getStatus(); + + /** + * <code>optional string internalKey = 12;</code> + */ + boolean hasInternalKey(); + /** + * <code>optional string internalKey = 12;</code> + */ + java.lang.String getInternalKey(); + /** + * <code>optional string internalKey = 12;</code> + */ + com.google.protobuf.ByteString + getInternalKeyBytes(); + + /** + * <code>optional bool isTemplate = 13;</code> + */ + boolean hasIsTemplate(); + /** + * <code>optional bool isTemplate = 13;</code> + */ + boolean getIsTemplate(); + + /** + * <code>optional string templateKey = 14;</code> + */ + boolean hasTemplateKey(); + /** + * <code>optional string templateKey = 14;</code> + */ + java.lang.String getTemplateKey(); + /** + * <code>optional string templateKey = 14;</code> + */ + com.google.protobuf.ByteString + getTemplateKeyBytes(); + + /** + * <code>optional .sonarqube.ws.rules.Tags tags = 15;</code> + */ + boolean hasTags(); + /** + * <code>optional .sonarqube.ws.rules.Tags tags = 15;</code> + */ + org.sonarqube.ws.Rules.Tags getTags(); + /** + * <code>optional .sonarqube.ws.rules.Tags tags = 15;</code> + */ + org.sonarqube.ws.Rules.TagsOrBuilder getTagsOrBuilder(); + + /** + * <code>optional .sonarqube.ws.rules.SysTags sysTags = 16;</code> + */ + boolean hasSysTags(); + /** + * <code>optional .sonarqube.ws.rules.SysTags sysTags = 16;</code> + */ + org.sonarqube.ws.Rules.SysTags getSysTags(); + /** + * <code>optional .sonarqube.ws.rules.SysTags sysTags = 16;</code> + */ + org.sonarqube.ws.Rules.SysTagsOrBuilder getSysTagsOrBuilder(); + + /** + * <code>optional string lang = 19;</code> + */ + boolean hasLang(); + /** + * <code>optional string lang = 19;</code> + */ + java.lang.String getLang(); + /** + * <code>optional string lang = 19;</code> + */ + com.google.protobuf.ByteString + getLangBytes(); + + /** + * <code>optional string langName = 20;</code> + */ + boolean hasLangName(); + /** + * <code>optional string langName = 20;</code> + */ + java.lang.String getLangName(); + /** + * <code>optional string langName = 20;</code> + */ + com.google.protobuf.ByteString + getLangNameBytes(); + + /** + * <code>optional .sonarqube.ws.rules.Rule.Params params = 21;</code> + */ + boolean hasParams(); + /** + * <code>optional .sonarqube.ws.rules.Rule.Params params = 21;</code> + */ + org.sonarqube.ws.Rules.Rule.Params getParams(); + /** + * <code>optional .sonarqube.ws.rules.Rule.Params params = 21;</code> + */ + org.sonarqube.ws.Rules.Rule.ParamsOrBuilder getParamsOrBuilder(); + + /** + * <code>optional string defaultDebtChar = 23;</code> + * + * <pre> + * debt fields + * </pre> + */ + boolean hasDefaultDebtChar(); + /** + * <code>optional string defaultDebtChar = 23;</code> + * + * <pre> + * debt fields + * </pre> + */ + java.lang.String getDefaultDebtChar(); + /** + * <code>optional string defaultDebtChar = 23;</code> + * + * <pre> + * debt fields + * </pre> + */ + com.google.protobuf.ByteString + getDefaultDebtCharBytes(); + + /** + * <code>optional string defaultDebtSubChar = 24;</code> + */ + boolean hasDefaultDebtSubChar(); + /** + * <code>optional string defaultDebtSubChar = 24;</code> + */ + java.lang.String getDefaultDebtSubChar(); + /** + * <code>optional string defaultDebtSubChar = 24;</code> + */ + com.google.protobuf.ByteString + getDefaultDebtSubCharBytes(); + + /** + * <code>optional string debtChar = 25;</code> + */ + boolean hasDebtChar(); + /** + * <code>optional string debtChar = 25;</code> + */ + java.lang.String getDebtChar(); + /** + * <code>optional string debtChar = 25;</code> + */ + com.google.protobuf.ByteString + getDebtCharBytes(); + + /** + * <code>optional string debtSubChar = 26;</code> + */ + boolean hasDebtSubChar(); + /** + * <code>optional string debtSubChar = 26;</code> + */ + java.lang.String getDebtSubChar(); + /** + * <code>optional string debtSubChar = 26;</code> + */ + com.google.protobuf.ByteString + getDebtSubCharBytes(); + + /** + * <code>optional string debtCharName = 27;</code> + */ + boolean hasDebtCharName(); + /** + * <code>optional string debtCharName = 27;</code> + */ + java.lang.String getDebtCharName(); + /** + * <code>optional string debtCharName = 27;</code> + */ + com.google.protobuf.ByteString + getDebtCharNameBytes(); + + /** + * <code>optional string debtSubCharName = 28;</code> + */ + boolean hasDebtSubCharName(); + /** + * <code>optional string debtSubCharName = 28;</code> + */ + java.lang.String getDebtSubCharName(); + /** + * <code>optional string debtSubCharName = 28;</code> + */ + com.google.protobuf.ByteString + getDebtSubCharNameBytes(); + + /** + * <code>optional string defaultDebtRemFnType = 29;</code> + */ + boolean hasDefaultDebtRemFnType(); + /** + * <code>optional string defaultDebtRemFnType = 29;</code> + */ + java.lang.String getDefaultDebtRemFnType(); + /** + * <code>optional string defaultDebtRemFnType = 29;</code> + */ + com.google.protobuf.ByteString + getDefaultDebtRemFnTypeBytes(); + + /** + * <code>optional string defaultDebtRemFnCoeff = 30;</code> + */ + boolean hasDefaultDebtRemFnCoeff(); + /** + * <code>optional string defaultDebtRemFnCoeff = 30;</code> + */ + java.lang.String getDefaultDebtRemFnCoeff(); + /** + * <code>optional string defaultDebtRemFnCoeff = 30;</code> + */ + com.google.protobuf.ByteString + getDefaultDebtRemFnCoeffBytes(); + + /** + * <code>optional string defaultDebtRemFnOffset = 31;</code> + */ + boolean hasDefaultDebtRemFnOffset(); + /** + * <code>optional string defaultDebtRemFnOffset = 31;</code> + */ + java.lang.String getDefaultDebtRemFnOffset(); + /** + * <code>optional string defaultDebtRemFnOffset = 31;</code> + */ + com.google.protobuf.ByteString + getDefaultDebtRemFnOffsetBytes(); + + /** + * <code>optional string effortToFixDescription = 32;</code> + */ + boolean hasEffortToFixDescription(); + /** + * <code>optional string effortToFixDescription = 32;</code> + */ + java.lang.String getEffortToFixDescription(); + /** + * <code>optional string effortToFixDescription = 32;</code> + */ + com.google.protobuf.ByteString + getEffortToFixDescriptionBytes(); + + /** + * <code>optional bool debtOverloaded = 33;</code> + */ + boolean hasDebtOverloaded(); + /** + * <code>optional bool debtOverloaded = 33;</code> + */ + boolean getDebtOverloaded(); + + /** + * <code>optional string debtRemFnType = 34;</code> + */ + boolean hasDebtRemFnType(); + /** + * <code>optional string debtRemFnType = 34;</code> + */ + java.lang.String getDebtRemFnType(); + /** + * <code>optional string debtRemFnType = 34;</code> + */ + com.google.protobuf.ByteString + getDebtRemFnTypeBytes(); + + /** + * <code>optional string debtRemFnCoeff = 35;</code> + */ + boolean hasDebtRemFnCoeff(); + /** + * <code>optional string debtRemFnCoeff = 35;</code> + */ + java.lang.String getDebtRemFnCoeff(); + /** + * <code>optional string debtRemFnCoeff = 35;</code> + */ + com.google.protobuf.ByteString + getDebtRemFnCoeffBytes(); + + /** + * <code>optional string debtRemFnOffset = 36;</code> + */ + boolean hasDebtRemFnOffset(); + /** + * <code>optional string debtRemFnOffset = 36;</code> + */ + java.lang.String getDebtRemFnOffset(); + /** + * <code>optional string debtRemFnOffset = 36;</code> + */ + 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 { + + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + java.util.List<org.sonarqube.ws.Rules.Rule.Param> + getParamsList(); + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + org.sonarqube.ws.Rules.Rule.Param getParams(int index); + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + int getParamsCount(); + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + java.util.List<? extends org.sonarqube.ws.Rules.Rule.ParamOrBuilder> + getParamsOrBuilderList(); + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + 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<org.sonarqube.ws.Rules.Rule.Param>(); + 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<org.sonarqube.ws.Rules.Rule.Param> params_; + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + public java.util.List<org.sonarqube.ws.Rules.Rule.Param> getParamsList() { + return params_; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + public java.util.List<? extends org.sonarqube.ws.Rules.Rule.ParamOrBuilder> + getParamsOrBuilderList() { + return params_; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + public int getParamsCount() { + return params_.size(); + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + public org.sonarqube.ws.Rules.Rule.Param getParams(int index) { + return params_.get(index); + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + 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<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<org.sonarqube.ws.Rules.Rule.Param> params_ = + java.util.Collections.emptyList(); + private void ensureParamsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + params_ = new java.util.ArrayList<org.sonarqube.ws.Rules.Rule.Param>(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_; + + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + public java.util.List<org.sonarqube.ws.Rules.Rule.Param> getParamsList() { + if (paramsBuilder_ == null) { + return java.util.Collections.unmodifiableList(params_); + } else { + return paramsBuilder_.getMessageList(); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + public int getParamsCount() { + if (paramsBuilder_ == null) { + return params_.size(); + } else { + return paramsBuilder_.getCount(); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + public org.sonarqube.ws.Rules.Rule.Param getParams(int index) { + if (paramsBuilder_ == null) { + return params_.get(index); + } else { + return paramsBuilder_.getMessage(index); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + public Builder addAllParams( + java.lang.Iterable<? extends org.sonarqube.ws.Rules.Rule.Param> values) { + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, params_); + onChanged(); + } else { + paramsBuilder_.addAllMessages(values); + } + return this; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + public Builder clearParams() { + if (paramsBuilder_ == null) { + params_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + paramsBuilder_.clear(); + } + return this; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + public Builder removeParams(int index) { + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + params_.remove(index); + onChanged(); + } else { + paramsBuilder_.remove(index); + } + return this; + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + public org.sonarqube.ws.Rules.Rule.Param.Builder getParamsBuilder( + int index) { + return getParamsFieldBuilder().getBuilder(index); + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + public org.sonarqube.ws.Rules.Rule.ParamOrBuilder getParamsOrBuilder( + int index) { + if (paramsBuilder_ == null) { + return params_.get(index); } else { + return paramsBuilder_.getMessageOrBuilder(index); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + public java.util.List<? extends org.sonarqube.ws.Rules.Rule.ParamOrBuilder> + getParamsOrBuilderList() { + if (paramsBuilder_ != null) { + return paramsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(params_); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + public org.sonarqube.ws.Rules.Rule.Param.Builder addParamsBuilder() { + return getParamsFieldBuilder().addBuilder( + org.sonarqube.ws.Rules.Rule.Param.getDefaultInstance()); + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + public org.sonarqube.ws.Rules.Rule.Param.Builder addParamsBuilder( + int index) { + return getParamsFieldBuilder().addBuilder( + index, org.sonarqube.ws.Rules.Rule.Param.getDefaultInstance()); + } + /** + * <code>repeated .sonarqube.ws.rules.Rule.Param params = 1;</code> + */ + public java.util.List<org.sonarqube.ws.Rules.Rule.Param.Builder> + 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<Params> PARSER = + new com.google.protobuf.AbstractParser<Params>() { + 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<Params> 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 { + + /** + * <code>optional string key = 1;</code> + */ + boolean hasKey(); + /** + * <code>optional string key = 1;</code> + */ + java.lang.String getKey(); + /** + * <code>optional string key = 1;</code> + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * <code>optional string htmlDesc = 2;</code> + */ + boolean hasHtmlDesc(); + /** + * <code>optional string htmlDesc = 2;</code> + */ + java.lang.String getHtmlDesc(); + /** + * <code>optional string htmlDesc = 2;</code> + */ + com.google.protobuf.ByteString + getHtmlDescBytes(); + + /** + * <code>optional string defaultValue = 3;</code> + */ + boolean hasDefaultValue(); + /** + * <code>optional string defaultValue = 3;</code> + */ + java.lang.String getDefaultValue(); + /** + * <code>optional string defaultValue = 3;</code> + */ + com.google.protobuf.ByteString + getDefaultValueBytes(); + + /** + * <code>optional string type = 4;</code> + */ + boolean hasType(); + /** + * <code>optional string type = 4;</code> + */ + java.lang.String getType(); + /** + * <code>optional string type = 4;</code> + */ + 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_; + /** + * <code>optional string key = 1;</code> + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string key = 1;</code> + */ + 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; + } + } + /** + * <code>optional string key = 1;</code> + */ + 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_; + /** + * <code>optional string htmlDesc = 2;</code> + */ + public boolean hasHtmlDesc() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional string htmlDesc = 2;</code> + */ + 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; + } + } + /** + * <code>optional string htmlDesc = 2;</code> + */ + 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_; + /** + * <code>optional string defaultValue = 3;</code> + */ + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * <code>optional string defaultValue = 3;</code> + */ + 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; + } + } + /** + * <code>optional string defaultValue = 3;</code> + */ + 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_; + /** + * <code>optional string type = 4;</code> + */ + public boolean hasType() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * <code>optional string type = 4;</code> + */ + 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; + } + } + /** + * <code>optional string type = 4;</code> + */ + 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<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_ = ""; + /** + * <code>optional string key = 1;</code> + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string key = 1;</code> + */ + 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; + } + } + /** + * <code>optional string key = 1;</code> + */ + 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; + } + } + /** + * <code>optional string key = 1;</code> + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; + } + /** + * <code>optional string key = 1;</code> + */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000001); + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * <code>optional string key = 1;</code> + */ + 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_ = ""; + /** + * <code>optional string htmlDesc = 2;</code> + */ + public boolean hasHtmlDesc() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional string htmlDesc = 2;</code> + */ + 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; + } + } + /** + * <code>optional string htmlDesc = 2;</code> + */ + 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; + } + } + /** + * <code>optional string htmlDesc = 2;</code> + */ + public Builder setHtmlDesc( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + htmlDesc_ = value; + onChanged(); + return this; + } + /** + * <code>optional string htmlDesc = 2;</code> + */ + public Builder clearHtmlDesc() { + bitField0_ = (bitField0_ & ~0x00000002); + htmlDesc_ = getDefaultInstance().getHtmlDesc(); + onChanged(); + return this; + } + /** + * <code>optional string htmlDesc = 2;</code> + */ + 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_ = ""; + /** + * <code>optional string defaultValue = 3;</code> + */ + public boolean hasDefaultValue() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * <code>optional string defaultValue = 3;</code> + */ + 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; + } + } + /** + * <code>optional string defaultValue = 3;</code> + */ + 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; + } + } + /** + * <code>optional string defaultValue = 3;</code> + */ + public Builder setDefaultValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + defaultValue_ = value; + onChanged(); + return this; + } + /** + * <code>optional string defaultValue = 3;</code> + */ + public Builder clearDefaultValue() { + bitField0_ = (bitField0_ & ~0x00000004); + defaultValue_ = getDefaultInstance().getDefaultValue(); + onChanged(); + return this; + } + /** + * <code>optional string defaultValue = 3;</code> + */ + 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_ = ""; + /** + * <code>optional string type = 4;</code> + */ + public boolean hasType() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * <code>optional string type = 4;</code> + */ + 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; + } + } + /** + * <code>optional string type = 4;</code> + */ + 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; + } + } + /** + * <code>optional string type = 4;</code> + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + type_ = value; + onChanged(); + return this; + } + /** + * <code>optional string type = 4;</code> + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000008); + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + * <code>optional string type = 4;</code> + */ + 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<Param> PARSER = + new com.google.protobuf.AbstractParser<Param>() { + 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<Param> 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_; + /** + * <code>optional string key = 1;</code> + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string key = 1;</code> + */ + 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; + } + } + /** + * <code>optional string key = 1;</code> + */ + 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_; + /** + * <code>optional string repo = 2;</code> + */ + public boolean hasRepo() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional string repo = 2;</code> + */ + 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; + } + } + /** + * <code>optional string repo = 2;</code> + */ + 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_; + /** + * <code>optional string name = 3;</code> + */ + public boolean hasName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * <code>optional string name = 3;</code> + */ + 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; + } + } + /** + * <code>optional string name = 3;</code> + */ + 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_; + /** + * <code>optional string createdAt = 4;</code> + */ + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * <code>optional string createdAt = 4;</code> + */ + 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; + } + } + /** + * <code>optional string createdAt = 4;</code> + */ + 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_; + /** + * <code>optional string htmlDesc = 5;</code> + */ + public boolean hasHtmlDesc() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * <code>optional string htmlDesc = 5;</code> + */ + 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; + } + } + /** + * <code>optional string htmlDesc = 5;</code> + */ + 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_; + /** + * <code>optional string htmlNote = 6;</code> + */ + public boolean hasHtmlNote() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * <code>optional string htmlNote = 6;</code> + */ + 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; + } + } + /** + * <code>optional string htmlNote = 6;</code> + */ + 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_; + /** + * <code>optional string mdDesc = 7;</code> + */ + public boolean hasMdDesc() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * <code>optional string mdDesc = 7;</code> + */ + 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; + } + } + /** + * <code>optional string mdDesc = 7;</code> + */ + 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_; + /** + * <code>optional string mdNote = 8;</code> + */ + public boolean hasMdNote() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * <code>optional string mdNote = 8;</code> + */ + 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; + } + } + /** + * <code>optional string mdNote = 8;</code> + */ + 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_; + /** + * <code>optional string noteLogin = 9;</code> + */ + public boolean hasNoteLogin() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * <code>optional string noteLogin = 9;</code> + */ + 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; + } + } + /** + * <code>optional string noteLogin = 9;</code> + */ + 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_; + /** + * <code>optional string severity = 10;</code> + */ + public boolean hasSeverity() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + /** + * <code>optional string severity = 10;</code> + */ + 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; + } + } + /** + * <code>optional string severity = 10;</code> + */ + 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_; + /** + * <code>optional .sonarqube.ws.commons.RuleStatus status = 11;</code> + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * <code>optional .sonarqube.ws.commons.RuleStatus status = 11;</code> + */ + 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_; + /** + * <code>optional string internalKey = 12;</code> + */ + public boolean hasInternalKey() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + /** + * <code>optional string internalKey = 12;</code> + */ + 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; + } + } + /** + * <code>optional string internalKey = 12;</code> + */ + 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_; + /** + * <code>optional bool isTemplate = 13;</code> + */ + public boolean hasIsTemplate() { + return ((bitField0_ & 0x00001000) == 0x00001000); + } + /** + * <code>optional bool isTemplate = 13;</code> + */ + public boolean getIsTemplate() { + return isTemplate_; + } + + public static final int TEMPLATEKEY_FIELD_NUMBER = 14; + private volatile java.lang.Object templateKey_; + /** + * <code>optional string templateKey = 14;</code> + */ + public boolean hasTemplateKey() { + return ((bitField0_ & 0x00002000) == 0x00002000); + } + /** + * <code>optional string templateKey = 14;</code> + */ + 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; + } + } + /** + * <code>optional string templateKey = 14;</code> + */ + 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_; + /** + * <code>optional .sonarqube.ws.rules.Tags tags = 15;</code> + */ + public boolean hasTags() { + return ((bitField0_ & 0x00004000) == 0x00004000); + } + /** + * <code>optional .sonarqube.ws.rules.Tags tags = 15;</code> + */ + public org.sonarqube.ws.Rules.Tags getTags() { + return tags_ == null ? org.sonarqube.ws.Rules.Tags.getDefaultInstance() : tags_; + } + /** + * <code>optional .sonarqube.ws.rules.Tags tags = 15;</code> + */ + 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_; + /** + * <code>optional .sonarqube.ws.rules.SysTags sysTags = 16;</code> + */ + public boolean hasSysTags() { + return ((bitField0_ & 0x00008000) == 0x00008000); + } + /** + * <code>optional .sonarqube.ws.rules.SysTags sysTags = 16;</code> + */ + public org.sonarqube.ws.Rules.SysTags getSysTags() { + return sysTags_ == null ? org.sonarqube.ws.Rules.SysTags.getDefaultInstance() : sysTags_; + } + /** + * <code>optional .sonarqube.ws.rules.SysTags sysTags = 16;</code> + */ + 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_; + /** + * <code>optional string lang = 19;</code> + */ + public boolean hasLang() { + return ((bitField0_ & 0x00010000) == 0x00010000); + } + /** + * <code>optional string lang = 19;</code> + */ + 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; + } + } + /** + * <code>optional string lang = 19;</code> + */ + 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_; + /** + * <code>optional string langName = 20;</code> + */ + public boolean hasLangName() { + return ((bitField0_ & 0x00020000) == 0x00020000); + } + /** + * <code>optional string langName = 20;</code> + */ + 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; + } + } + /** + * <code>optional string langName = 20;</code> + */ + 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_; + /** + * <code>optional .sonarqube.ws.rules.Rule.Params params = 21;</code> + */ + public boolean hasParams() { + return ((bitField0_ & 0x00040000) == 0x00040000); + } + /** + * <code>optional .sonarqube.ws.rules.Rule.Params params = 21;</code> + */ + public org.sonarqube.ws.Rules.Rule.Params getParams() { + return params_ == null ? org.sonarqube.ws.Rules.Rule.Params.getDefaultInstance() : params_; + } + /** + * <code>optional .sonarqube.ws.rules.Rule.Params params = 21;</code> + */ + 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_; + /** + * <code>optional string defaultDebtChar = 23;</code> + * + * <pre> + * debt fields + * </pre> + */ + public boolean hasDefaultDebtChar() { + return ((bitField0_ & 0x00080000) == 0x00080000); + } + /** + * <code>optional string defaultDebtChar = 23;</code> + * + * <pre> + * debt fields + * </pre> + */ + 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; + } + } + /** + * <code>optional string defaultDebtChar = 23;</code> + * + * <pre> + * debt fields + * </pre> + */ + 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_; + /** + * <code>optional string defaultDebtSubChar = 24;</code> + */ + public boolean hasDefaultDebtSubChar() { + return ((bitField0_ & 0x00100000) == 0x00100000); + } + /** + * <code>optional string defaultDebtSubChar = 24;</code> + */ + 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; + } + } + /** + * <code>optional string defaultDebtSubChar = 24;</code> + */ + 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_; + /** + * <code>optional string debtChar = 25;</code> + */ + public boolean hasDebtChar() { + return ((bitField0_ & 0x00200000) == 0x00200000); + } + /** + * <code>optional string debtChar = 25;</code> + */ + 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; + } + } + /** + * <code>optional string debtChar = 25;</code> + */ + 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_; + /** + * <code>optional string debtSubChar = 26;</code> + */ + public boolean hasDebtSubChar() { + return ((bitField0_ & 0x00400000) == 0x00400000); + } + /** + * <code>optional string debtSubChar = 26;</code> + */ + 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; + } + } + /** + * <code>optional string debtSubChar = 26;</code> + */ + 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_; + /** + * <code>optional string debtCharName = 27;</code> + */ + public boolean hasDebtCharName() { + return ((bitField0_ & 0x00800000) == 0x00800000); + } + /** + * <code>optional string debtCharName = 27;</code> + */ + 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; + } + } + /** + * <code>optional string debtCharName = 27;</code> + */ + 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_; + /** + * <code>optional string debtSubCharName = 28;</code> + */ + public boolean hasDebtSubCharName() { + return ((bitField0_ & 0x01000000) == 0x01000000); + } + /** + * <code>optional string debtSubCharName = 28;</code> + */ + 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; + } + } + /** + * <code>optional string debtSubCharName = 28;</code> + */ + 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_; + /** + * <code>optional string defaultDebtRemFnType = 29;</code> + */ + public boolean hasDefaultDebtRemFnType() { + return ((bitField0_ & 0x02000000) == 0x02000000); + } + /** + * <code>optional string defaultDebtRemFnType = 29;</code> + */ + 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; + } + } + /** + * <code>optional string defaultDebtRemFnType = 29;</code> + */ + 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_; + /** + * <code>optional string defaultDebtRemFnCoeff = 30;</code> + */ + public boolean hasDefaultDebtRemFnCoeff() { + return ((bitField0_ & 0x04000000) == 0x04000000); + } + /** + * <code>optional string defaultDebtRemFnCoeff = 30;</code> + */ + 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; + } + } + /** + * <code>optional string defaultDebtRemFnCoeff = 30;</code> + */ + 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_; + /** + * <code>optional string defaultDebtRemFnOffset = 31;</code> + */ + public boolean hasDefaultDebtRemFnOffset() { + return ((bitField0_ & 0x08000000) == 0x08000000); + } + /** + * <code>optional string defaultDebtRemFnOffset = 31;</code> + */ + 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; + } + } + /** + * <code>optional string defaultDebtRemFnOffset = 31;</code> + */ + 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_; + /** + * <code>optional string effortToFixDescription = 32;</code> + */ + public boolean hasEffortToFixDescription() { + return ((bitField0_ & 0x10000000) == 0x10000000); + } + /** + * <code>optional string effortToFixDescription = 32;</code> + */ + 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; + } + } + /** + * <code>optional string effortToFixDescription = 32;</code> + */ + 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_; + /** + * <code>optional bool debtOverloaded = 33;</code> + */ + public boolean hasDebtOverloaded() { + return ((bitField0_ & 0x20000000) == 0x20000000); + } + /** + * <code>optional bool debtOverloaded = 33;</code> + */ + public boolean getDebtOverloaded() { + return debtOverloaded_; + } + + public static final int DEBTREMFNTYPE_FIELD_NUMBER = 34; + private volatile java.lang.Object debtRemFnType_; + /** + * <code>optional string debtRemFnType = 34;</code> + */ + public boolean hasDebtRemFnType() { + return ((bitField0_ & 0x40000000) == 0x40000000); + } + /** + * <code>optional string debtRemFnType = 34;</code> + */ + 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; + } + } + /** + * <code>optional string debtRemFnType = 34;</code> + */ + 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_; + /** + * <code>optional string debtRemFnCoeff = 35;</code> + */ + public boolean hasDebtRemFnCoeff() { + return ((bitField0_ & 0x80000000) == 0x80000000); + } + /** + * <code>optional string debtRemFnCoeff = 35;</code> + */ + 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; + } + } + /** + * <code>optional string debtRemFnCoeff = 35;</code> + */ + 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_; + /** + * <code>optional string debtRemFnOffset = 36;</code> + */ + public boolean hasDebtRemFnOffset() { + return ((bitField1_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string debtRemFnOffset = 36;</code> + */ + 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; + } + } + /** + * <code>optional string debtRemFnOffset = 36;</code> + */ + 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<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_ = ""; + /** + * <code>optional string key = 1;</code> + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string key = 1;</code> + */ + 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; + } + } + /** + * <code>optional string key = 1;</code> + */ + 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; + } + } + /** + * <code>optional string key = 1;</code> + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; + } + /** + * <code>optional string key = 1;</code> + */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000001); + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * <code>optional string key = 1;</code> + */ + 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_ = ""; + /** + * <code>optional string repo = 2;</code> + */ + public boolean hasRepo() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional string repo = 2;</code> + */ + 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; + } + } + /** + * <code>optional string repo = 2;</code> + */ + 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; + } + } + /** + * <code>optional string repo = 2;</code> + */ + public Builder setRepo( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + repo_ = value; + onChanged(); + return this; + } + /** + * <code>optional string repo = 2;</code> + */ + public Builder clearRepo() { + bitField0_ = (bitField0_ & ~0x00000002); + repo_ = getDefaultInstance().getRepo(); + onChanged(); + return this; + } + /** + * <code>optional string repo = 2;</code> + */ + 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_ = ""; + /** + * <code>optional string name = 3;</code> + */ + public boolean hasName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * <code>optional string name = 3;</code> + */ + 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; + } + } + /** + * <code>optional string name = 3;</code> + */ + 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; + } + } + /** + * <code>optional string name = 3;</code> + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + name_ = value; + onChanged(); + return this; + } + /** + * <code>optional string name = 3;</code> + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000004); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * <code>optional string name = 3;</code> + */ + 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_ = ""; + /** + * <code>optional string createdAt = 4;</code> + */ + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * <code>optional string createdAt = 4;</code> + */ + 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; + } + } + /** + * <code>optional string createdAt = 4;</code> + */ + 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; + } + } + /** + * <code>optional string createdAt = 4;</code> + */ + public Builder setCreatedAt( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + createdAt_ = value; + onChanged(); + return this; + } + /** + * <code>optional string createdAt = 4;</code> + */ + public Builder clearCreatedAt() { + bitField0_ = (bitField0_ & ~0x00000008); + createdAt_ = getDefaultInstance().getCreatedAt(); + onChanged(); + return this; + } + /** + * <code>optional string createdAt = 4;</code> + */ + 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_ = ""; + /** + * <code>optional string htmlDesc = 5;</code> + */ + public boolean hasHtmlDesc() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * <code>optional string htmlDesc = 5;</code> + */ + 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; + } + } + /** + * <code>optional string htmlDesc = 5;</code> + */ + 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; + } + } + /** + * <code>optional string htmlDesc = 5;</code> + */ + public Builder setHtmlDesc( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + htmlDesc_ = value; + onChanged(); + return this; + } + /** + * <code>optional string htmlDesc = 5;</code> + */ + public Builder clearHtmlDesc() { + bitField0_ = (bitField0_ & ~0x00000010); + htmlDesc_ = getDefaultInstance().getHtmlDesc(); + onChanged(); + return this; + } + /** + * <code>optional string htmlDesc = 5;</code> + */ + 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_ = ""; + /** + * <code>optional string htmlNote = 6;</code> + */ + public boolean hasHtmlNote() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * <code>optional string htmlNote = 6;</code> + */ + 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; + } + } + /** + * <code>optional string htmlNote = 6;</code> + */ + 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; + } + } + /** + * <code>optional string htmlNote = 6;</code> + */ + public Builder setHtmlNote( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + htmlNote_ = value; + onChanged(); + return this; + } + /** + * <code>optional string htmlNote = 6;</code> + */ + public Builder clearHtmlNote() { + bitField0_ = (bitField0_ & ~0x00000020); + htmlNote_ = getDefaultInstance().getHtmlNote(); + onChanged(); + return this; + } + /** + * <code>optional string htmlNote = 6;</code> + */ + 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_ = ""; + /** + * <code>optional string mdDesc = 7;</code> + */ + public boolean hasMdDesc() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * <code>optional string mdDesc = 7;</code> + */ + 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; + } + } + /** + * <code>optional string mdDesc = 7;</code> + */ + 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; + } + } + /** + * <code>optional string mdDesc = 7;</code> + */ + public Builder setMdDesc( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + mdDesc_ = value; + onChanged(); + return this; + } + /** + * <code>optional string mdDesc = 7;</code> + */ + public Builder clearMdDesc() { + bitField0_ = (bitField0_ & ~0x00000040); + mdDesc_ = getDefaultInstance().getMdDesc(); + onChanged(); + return this; + } + /** + * <code>optional string mdDesc = 7;</code> + */ + 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_ = ""; + /** + * <code>optional string mdNote = 8;</code> + */ + public boolean hasMdNote() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * <code>optional string mdNote = 8;</code> + */ + 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; + } + } + /** + * <code>optional string mdNote = 8;</code> + */ + 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; + } + } + /** + * <code>optional string mdNote = 8;</code> + */ + public Builder setMdNote( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + mdNote_ = value; + onChanged(); + return this; + } + /** + * <code>optional string mdNote = 8;</code> + */ + public Builder clearMdNote() { + bitField0_ = (bitField0_ & ~0x00000080); + mdNote_ = getDefaultInstance().getMdNote(); + onChanged(); + return this; + } + /** + * <code>optional string mdNote = 8;</code> + */ + 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_ = ""; + /** + * <code>optional string noteLogin = 9;</code> + */ + public boolean hasNoteLogin() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * <code>optional string noteLogin = 9;</code> + */ + 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; + } + } + /** + * <code>optional string noteLogin = 9;</code> + */ + 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; + } + } + /** + * <code>optional string noteLogin = 9;</code> + */ + public Builder setNoteLogin( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + noteLogin_ = value; + onChanged(); + return this; + } + /** + * <code>optional string noteLogin = 9;</code> + */ + public Builder clearNoteLogin() { + bitField0_ = (bitField0_ & ~0x00000100); + noteLogin_ = getDefaultInstance().getNoteLogin(); + onChanged(); + return this; + } + /** + * <code>optional string noteLogin = 9;</code> + */ + 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_ = ""; + /** + * <code>optional string severity = 10;</code> + */ + public boolean hasSeverity() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + /** + * <code>optional string severity = 10;</code> + */ + 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; + } + } + /** + * <code>optional string severity = 10;</code> + */ + 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; + } + } + /** + * <code>optional string severity = 10;</code> + */ + public Builder setSeverity( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + severity_ = value; + onChanged(); + return this; + } + /** + * <code>optional string severity = 10;</code> + */ + public Builder clearSeverity() { + bitField0_ = (bitField0_ & ~0x00000200); + severity_ = getDefaultInstance().getSeverity(); + onChanged(); + return this; + } + /** + * <code>optional string severity = 10;</code> + */ + 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; + /** + * <code>optional .sonarqube.ws.commons.RuleStatus status = 11;</code> + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * <code>optional .sonarqube.ws.commons.RuleStatus status = 11;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.commons.RuleStatus status = 11;</code> + */ + public Builder setStatus(org.sonarqube.ws.Common.RuleStatus value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + status_ = value.getNumber(); + onChanged(); + return this; + } + /** + * <code>optional .sonarqube.ws.commons.RuleStatus status = 11;</code> + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000400); + status_ = 0; + onChanged(); + return this; + } + + private java.lang.Object internalKey_ = ""; + /** + * <code>optional string internalKey = 12;</code> + */ + public boolean hasInternalKey() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + /** + * <code>optional string internalKey = 12;</code> + */ + 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; + } + } + /** + * <code>optional string internalKey = 12;</code> + */ + 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; + } + } + /** + * <code>optional string internalKey = 12;</code> + */ + public Builder setInternalKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + internalKey_ = value; + onChanged(); + return this; + } + /** + * <code>optional string internalKey = 12;</code> + */ + public Builder clearInternalKey() { + bitField0_ = (bitField0_ & ~0x00000800); + internalKey_ = getDefaultInstance().getInternalKey(); + onChanged(); + return this; + } + /** + * <code>optional string internalKey = 12;</code> + */ + public Builder setInternalKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + internalKey_ = value; + onChanged(); + return this; + } + + private boolean isTemplate_ ; + /** + * <code>optional bool isTemplate = 13;</code> + */ + public boolean hasIsTemplate() { + return ((bitField0_ & 0x00001000) == 0x00001000); + } + /** + * <code>optional bool isTemplate = 13;</code> + */ + public boolean getIsTemplate() { + return isTemplate_; + } + /** + * <code>optional bool isTemplate = 13;</code> + */ + public Builder setIsTemplate(boolean value) { + bitField0_ |= 0x00001000; + isTemplate_ = value; + onChanged(); + return this; + } + /** + * <code>optional bool isTemplate = 13;</code> + */ + public Builder clearIsTemplate() { + bitField0_ = (bitField0_ & ~0x00001000); + isTemplate_ = false; + onChanged(); + return this; + } + + private java.lang.Object templateKey_ = ""; + /** + * <code>optional string templateKey = 14;</code> + */ + public boolean hasTemplateKey() { + return ((bitField0_ & 0x00002000) == 0x00002000); + } + /** + * <code>optional string templateKey = 14;</code> + */ + 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; + } + } + /** + * <code>optional string templateKey = 14;</code> + */ + 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; + } + } + /** + * <code>optional string templateKey = 14;</code> + */ + public Builder setTemplateKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00002000; + templateKey_ = value; + onChanged(); + return this; + } + /** + * <code>optional string templateKey = 14;</code> + */ + public Builder clearTemplateKey() { + bitField0_ = (bitField0_ & ~0x00002000); + templateKey_ = getDefaultInstance().getTemplateKey(); + onChanged(); + return this; + } + /** + * <code>optional string templateKey = 14;</code> + */ + 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_; + /** + * <code>optional .sonarqube.ws.rules.Tags tags = 15;</code> + */ + public boolean hasTags() { + return ((bitField0_ & 0x00004000) == 0x00004000); + } + /** + * <code>optional .sonarqube.ws.rules.Tags tags = 15;</code> + */ + public org.sonarqube.ws.Rules.Tags getTags() { + if (tagsBuilder_ == null) { + return tags_ == null ? org.sonarqube.ws.Rules.Tags.getDefaultInstance() : tags_; + } else { + return tagsBuilder_.getMessage(); + } + } + /** + * <code>optional .sonarqube.ws.rules.Tags tags = 15;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Tags tags = 15;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Tags tags = 15;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Tags tags = 15;</code> + */ + public Builder clearTags() { + if (tagsBuilder_ == null) { + tags_ = null; + onChanged(); + } else { + tagsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); + return this; + } + /** + * <code>optional .sonarqube.ws.rules.Tags tags = 15;</code> + */ + public org.sonarqube.ws.Rules.Tags.Builder getTagsBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getTagsFieldBuilder().getBuilder(); + } + /** + * <code>optional .sonarqube.ws.rules.Tags tags = 15;</code> + */ + public org.sonarqube.ws.Rules.TagsOrBuilder getTagsOrBuilder() { + if (tagsBuilder_ != null) { + return tagsBuilder_.getMessageOrBuilder(); + } else { + return tags_ == null ? + org.sonarqube.ws.Rules.Tags.getDefaultInstance() : tags_; + } + } + /** + * <code>optional .sonarqube.ws.rules.Tags tags = 15;</code> + */ + 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_; + /** + * <code>optional .sonarqube.ws.rules.SysTags sysTags = 16;</code> + */ + public boolean hasSysTags() { + return ((bitField0_ & 0x00008000) == 0x00008000); + } + /** + * <code>optional .sonarqube.ws.rules.SysTags sysTags = 16;</code> + */ + public org.sonarqube.ws.Rules.SysTags getSysTags() { + if (sysTagsBuilder_ == null) { + return sysTags_ == null ? org.sonarqube.ws.Rules.SysTags.getDefaultInstance() : sysTags_; + } else { + return sysTagsBuilder_.getMessage(); + } + } + /** + * <code>optional .sonarqube.ws.rules.SysTags sysTags = 16;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.SysTags sysTags = 16;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.SysTags sysTags = 16;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.SysTags sysTags = 16;</code> + */ + public Builder clearSysTags() { + if (sysTagsBuilder_ == null) { + sysTags_ = null; + onChanged(); + } else { + sysTagsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00008000); + return this; + } + /** + * <code>optional .sonarqube.ws.rules.SysTags sysTags = 16;</code> + */ + public org.sonarqube.ws.Rules.SysTags.Builder getSysTagsBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getSysTagsFieldBuilder().getBuilder(); + } + /** + * <code>optional .sonarqube.ws.rules.SysTags sysTags = 16;</code> + */ + public org.sonarqube.ws.Rules.SysTagsOrBuilder getSysTagsOrBuilder() { + if (sysTagsBuilder_ != null) { + return sysTagsBuilder_.getMessageOrBuilder(); + } else { + return sysTags_ == null ? + org.sonarqube.ws.Rules.SysTags.getDefaultInstance() : sysTags_; + } + } + /** + * <code>optional .sonarqube.ws.rules.SysTags sysTags = 16;</code> + */ + 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_ = ""; + /** + * <code>optional string lang = 19;</code> + */ + public boolean hasLang() { + return ((bitField0_ & 0x00010000) == 0x00010000); + } + /** + * <code>optional string lang = 19;</code> + */ + 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; + } + } + /** + * <code>optional string lang = 19;</code> + */ + 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; + } + } + /** + * <code>optional string lang = 19;</code> + */ + public Builder setLang( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; + lang_ = value; + onChanged(); + return this; + } + /** + * <code>optional string lang = 19;</code> + */ + public Builder clearLang() { + bitField0_ = (bitField0_ & ~0x00010000); + lang_ = getDefaultInstance().getLang(); + onChanged(); + return this; + } + /** + * <code>optional string lang = 19;</code> + */ + 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_ = ""; + /** + * <code>optional string langName = 20;</code> + */ + public boolean hasLangName() { + return ((bitField0_ & 0x00020000) == 0x00020000); + } + /** + * <code>optional string langName = 20;</code> + */ + 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; + } + } + /** + * <code>optional string langName = 20;</code> + */ + 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; + } + } + /** + * <code>optional string langName = 20;</code> + */ + public Builder setLangName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; + langName_ = value; + onChanged(); + return this; + } + /** + * <code>optional string langName = 20;</code> + */ + public Builder clearLangName() { + bitField0_ = (bitField0_ & ~0x00020000); + langName_ = getDefaultInstance().getLangName(); + onChanged(); + return this; + } + /** + * <code>optional string langName = 20;</code> + */ + 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_; + /** + * <code>optional .sonarqube.ws.rules.Rule.Params params = 21;</code> + */ + public boolean hasParams() { + return ((bitField0_ & 0x00040000) == 0x00040000); + } + /** + * <code>optional .sonarqube.ws.rules.Rule.Params params = 21;</code> + */ + 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(); + } + } + /** + * <code>optional .sonarqube.ws.rules.Rule.Params params = 21;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Rule.Params params = 21;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Rule.Params params = 21;</code> + */ + 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; + } + /** + * <code>optional .sonarqube.ws.rules.Rule.Params params = 21;</code> + */ + public Builder clearParams() { + if (paramsBuilder_ == null) { + params_ = null; + onChanged(); + } else { + paramsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00040000); + return this; + } + /** + * <code>optional .sonarqube.ws.rules.Rule.Params params = 21;</code> + */ + public org.sonarqube.ws.Rules.Rule.Params.Builder getParamsBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getParamsFieldBuilder().getBuilder(); + } + /** + * <code>optional .sonarqube.ws.rules.Rule.Params params = 21;</code> + */ + 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_; + } + } + /** + * <code>optional .sonarqube.ws.rules.Rule.Params params = 21;</code> + */ + 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_ = ""; + /** + * <code>optional string defaultDebtChar = 23;</code> + * + * <pre> + * debt fields + * </pre> + */ + public boolean hasDefaultDebtChar() { + return ((bitField0_ & 0x00080000) == 0x00080000); + } + /** + * <code>optional string defaultDebtChar = 23;</code> + * + * <pre> + * debt fields + * </pre> + */ + 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; + } + } + /** + * <code>optional string defaultDebtChar = 23;</code> + * + * <pre> + * debt fields + * </pre> + */ + 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; + } + } + /** + * <code>optional string defaultDebtChar = 23;</code> + * + * <pre> + * debt fields + * </pre> + */ + public Builder setDefaultDebtChar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00080000; + defaultDebtChar_ = value; + onChanged(); + return this; + } + /** + * <code>optional string defaultDebtChar = 23;</code> + * + * <pre> + * debt fields + * </pre> + */ + public Builder clearDefaultDebtChar() { + bitField0_ = (bitField0_ & ~0x00080000); + defaultDebtChar_ = getDefaultInstance().getDefaultDebtChar(); + onChanged(); + return this; + } + /** + * <code>optional string defaultDebtChar = 23;</code> + * + * <pre> + * debt fields + * </pre> + */ + 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_ = ""; + /** + * <code>optional string defaultDebtSubChar = 24;</code> + */ + public boolean hasDefaultDebtSubChar() { + return ((bitField0_ & 0x00100000) == 0x00100000); + } + /** + * <code>optional string defaultDebtSubChar = 24;</code> + */ + 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; + } + } + /** + * <code>optional string defaultDebtSubChar = 24;</code> + */ + 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; + } + } + /** + * <code>optional string defaultDebtSubChar = 24;</code> + */ + public Builder setDefaultDebtSubChar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00100000; + defaultDebtSubChar_ = value; + onChanged(); + return this; + } + /** + * <code>optional string defaultDebtSubChar = 24;</code> + */ + public Builder clearDefaultDebtSubChar() { + bitField0_ = (bitField0_ & ~0x00100000); + defaultDebtSubChar_ = getDefaultInstance().getDefaultDebtSubChar(); + onChanged(); + return this; + } + /** + * <code>optional string defaultDebtSubChar = 24;</code> + */ + 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_ = ""; + /** + * <code>optional string debtChar = 25;</code> + */ + public boolean hasDebtChar() { + return ((bitField0_ & 0x00200000) == 0x00200000); + } + /** + * <code>optional string debtChar = 25;</code> + */ + 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; + } + } + /** + * <code>optional string debtChar = 25;</code> + */ + 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; + } + } + /** + * <code>optional string debtChar = 25;</code> + */ + public Builder setDebtChar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00200000; + debtChar_ = value; + onChanged(); + return this; + } + /** + * <code>optional string debtChar = 25;</code> + */ + public Builder clearDebtChar() { + bitField0_ = (bitField0_ & ~0x00200000); + debtChar_ = getDefaultInstance().getDebtChar(); + onChanged(); + return this; + } + /** + * <code>optional string debtChar = 25;</code> + */ + 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_ = ""; + /** + * <code>optional string debtSubChar = 26;</code> + */ + public boolean hasDebtSubChar() { + return ((bitField0_ & 0x00400000) == 0x00400000); + } + /** + * <code>optional string debtSubChar = 26;</code> + */ + 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; + } + } + /** + * <code>optional string debtSubChar = 26;</code> + */ + 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; + } + } + /** + * <code>optional string debtSubChar = 26;</code> + */ + public Builder setDebtSubChar( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00400000; + debtSubChar_ = value; + onChanged(); + return this; + } + /** + * <code>optional string debtSubChar = 26;</code> + */ + public Builder clearDebtSubChar() { + bitField0_ = (bitField0_ & ~0x00400000); + debtSubChar_ = getDefaultInstance().getDebtSubChar(); + onChanged(); + return this; + } + /** + * <code>optional string debtSubChar = 26;</code> + */ + 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_ = ""; + /** + * <code>optional string debtCharName = 27;</code> + */ + public boolean hasDebtCharName() { + return ((bitField0_ & 0x00800000) == 0x00800000); + } + /** + * <code>optional string debtCharName = 27;</code> + */ + 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; + } + } + /** + * <code>optional string debtCharName = 27;</code> + */ + 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; + } + } + /** + * <code>optional string debtCharName = 27;</code> + */ + public Builder setDebtCharName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00800000; + debtCharName_ = value; + onChanged(); + return this; + } + /** + * <code>optional string debtCharName = 27;</code> + */ + public Builder clearDebtCharName() { + bitField0_ = (bitField0_ & ~0x00800000); + debtCharName_ = getDefaultInstance().getDebtCharName(); + onChanged(); + return this; + } + /** + * <code>optional string debtCharName = 27;</code> + */ + 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_ = ""; + /** + * <code>optional string debtSubCharName = 28;</code> + */ + public boolean hasDebtSubCharName() { + return ((bitField0_ & 0x01000000) == 0x01000000); + } + /** + * <code>optional string debtSubCharName = 28;</code> + */ + 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; + } + } + /** + * <code>optional string debtSubCharName = 28;</code> + */ + 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; + } + } + /** + * <code>optional string debtSubCharName = 28;</code> + */ + public Builder setDebtSubCharName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x01000000; + debtSubCharName_ = value; + onChanged(); + return this; + } + /** + * <code>optional string debtSubCharName = 28;</code> + */ + public Builder clearDebtSubCharName() { + bitField0_ = (bitField0_ & ~0x01000000); + debtSubCharName_ = getDefaultInstance().getDebtSubCharName(); + onChanged(); + return this; + } + /** + * <code>optional string debtSubCharName = 28;</code> + */ + 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_ = ""; + /** + * <code>optional string defaultDebtRemFnType = 29;</code> + */ + public boolean hasDefaultDebtRemFnType() { + return ((bitField0_ & 0x02000000) == 0x02000000); + } + /** + * <code>optional string defaultDebtRemFnType = 29;</code> + */ + 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; + } + } + /** + * <code>optional string defaultDebtRemFnType = 29;</code> + */ + 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; + } + } + /** + * <code>optional string defaultDebtRemFnType = 29;</code> + */ + public Builder setDefaultDebtRemFnType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x02000000; + defaultDebtRemFnType_ = value; + onChanged(); + return this; + } + /** + * <code>optional string defaultDebtRemFnType = 29;</code> + */ + public Builder clearDefaultDebtRemFnType() { + bitField0_ = (bitField0_ & ~0x02000000); + defaultDebtRemFnType_ = getDefaultInstance().getDefaultDebtRemFnType(); + onChanged(); + return this; + } + /** + * <code>optional string defaultDebtRemFnType = 29;</code> + */ + 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_ = ""; + /** + * <code>optional string defaultDebtRemFnCoeff = 30;</code> + */ + public boolean hasDefaultDebtRemFnCoeff() { + return ((bitField0_ & 0x04000000) == 0x04000000); + } + /** + * <code>optional string defaultDebtRemFnCoeff = 30;</code> + */ + 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; + } + } + /** + * <code>optional string defaultDebtRemFnCoeff = 30;</code> + */ + 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; + } + } + /** + * <code>optional string defaultDebtRemFnCoeff = 30;</code> + */ + public Builder setDefaultDebtRemFnCoeff( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x04000000; + defaultDebtRemFnCoeff_ = value; + onChanged(); + return this; + } + /** + * <code>optional string defaultDebtRemFnCoeff = 30;</code> + */ + public Builder clearDefaultDebtRemFnCoeff() { + bitField0_ = (bitField0_ & ~0x04000000); + defaultDebtRemFnCoeff_ = getDefaultInstance().getDefaultDebtRemFnCoeff(); + onChanged(); + return this; + } + /** + * <code>optional string defaultDebtRemFnCoeff = 30;</code> + */ + 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_ = ""; + /** + * <code>optional string defaultDebtRemFnOffset = 31;</code> + */ + public boolean hasDefaultDebtRemFnOffset() { + return ((bitField0_ & 0x08000000) == 0x08000000); + } + /** + * <code>optional string defaultDebtRemFnOffset = 31;</code> + */ + 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; + } + } + /** + * <code>optional string defaultDebtRemFnOffset = 31;</code> + */ + 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; + } + } + /** + * <code>optional string defaultDebtRemFnOffset = 31;</code> + */ + public Builder setDefaultDebtRemFnOffset( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x08000000; + defaultDebtRemFnOffset_ = value; + onChanged(); + return this; + } + /** + * <code>optional string defaultDebtRemFnOffset = 31;</code> + */ + public Builder clearDefaultDebtRemFnOffset() { + bitField0_ = (bitField0_ & ~0x08000000); + defaultDebtRemFnOffset_ = getDefaultInstance().getDefaultDebtRemFnOffset(); + onChanged(); + return this; + } + /** + * <code>optional string defaultDebtRemFnOffset = 31;</code> + */ + 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_ = ""; + /** + * <code>optional string effortToFixDescription = 32;</code> + */ + public boolean hasEffortToFixDescription() { + return ((bitField0_ & 0x10000000) == 0x10000000); + } + /** + * <code>optional string effortToFixDescription = 32;</code> + */ + 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; + } + } + /** + * <code>optional string effortToFixDescription = 32;</code> + */ + 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; + } + } + /** + * <code>optional string effortToFixDescription = 32;</code> + */ + public Builder setEffortToFixDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x10000000; + effortToFixDescription_ = value; + onChanged(); + return this; + } + /** + * <code>optional string effortToFixDescription = 32;</code> + */ + public Builder clearEffortToFixDescription() { + bitField0_ = (bitField0_ & ~0x10000000); + effortToFixDescription_ = getDefaultInstance().getEffortToFixDescription(); + onChanged(); + return this; + } + /** + * <code>optional string effortToFixDescription = 32;</code> + */ + public Builder setEffortToFixDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x10000000; + effortToFixDescription_ = value; + onChanged(); + return this; + } + + private boolean debtOverloaded_ ; + /** + * <code>optional bool debtOverloaded = 33;</code> + */ + public boolean hasDebtOverloaded() { + return ((bitField0_ & 0x20000000) == 0x20000000); + } + /** + * <code>optional bool debtOverloaded = 33;</code> + */ + public boolean getDebtOverloaded() { + return debtOverloaded_; + } + /** + * <code>optional bool debtOverloaded = 33;</code> + */ + public Builder setDebtOverloaded(boolean value) { + bitField0_ |= 0x20000000; + debtOverloaded_ = value; + onChanged(); + return this; + } + /** + * <code>optional bool debtOverloaded = 33;</code> + */ + public Builder clearDebtOverloaded() { + bitField0_ = (bitField0_ & ~0x20000000); + debtOverloaded_ = false; + onChanged(); + return this; + } + + private java.lang.Object debtRemFnType_ = ""; + /** + * <code>optional string debtRemFnType = 34;</code> + */ + public boolean hasDebtRemFnType() { + return ((bitField0_ & 0x40000000) == 0x40000000); + } + /** + * <code>optional string debtRemFnType = 34;</code> + */ + 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; + } + } + /** + * <code>optional string debtRemFnType = 34;</code> + */ + 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; + } + } + /** + * <code>optional string debtRemFnType = 34;</code> + */ + public Builder setDebtRemFnType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x40000000; + debtRemFnType_ = value; + onChanged(); + return this; + } + /** + * <code>optional string debtRemFnType = 34;</code> + */ + public Builder clearDebtRemFnType() { + bitField0_ = (bitField0_ & ~0x40000000); + debtRemFnType_ = getDefaultInstance().getDebtRemFnType(); + onChanged(); + return this; + } + /** + * <code>optional string debtRemFnType = 34;</code> + */ + 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_ = ""; + /** + * <code>optional string debtRemFnCoeff = 35;</code> + */ + public boolean hasDebtRemFnCoeff() { + return ((bitField0_ & 0x80000000) == 0x80000000); + } + /** + * <code>optional string debtRemFnCoeff = 35;</code> + */ + 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; + } + } + /** + * <code>optional string debtRemFnCoeff = 35;</code> + */ + 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; + } + } + /** + * <code>optional string debtRemFnCoeff = 35;</code> + */ + public Builder setDebtRemFnCoeff( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x80000000; + debtRemFnCoeff_ = value; + onChanged(); + return this; + } + /** + * <code>optional string debtRemFnCoeff = 35;</code> + */ + public Builder clearDebtRemFnCoeff() { + bitField0_ = (bitField0_ & ~0x80000000); + debtRemFnCoeff_ = getDefaultInstance().getDebtRemFnCoeff(); + onChanged(); + return this; + } + /** + * <code>optional string debtRemFnCoeff = 35;</code> + */ + 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_ = ""; + /** + * <code>optional string debtRemFnOffset = 36;</code> + */ + public boolean hasDebtRemFnOffset() { + return ((bitField1_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string debtRemFnOffset = 36;</code> + */ + 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; + } + } + /** + * <code>optional string debtRemFnOffset = 36;</code> + */ + 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; + } + } + /** + * <code>optional string debtRemFnOffset = 36;</code> + */ + public Builder setDebtRemFnOffset( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000001; + debtRemFnOffset_ = value; + onChanged(); + return this; + } + /** + * <code>optional string debtRemFnOffset = 36;</code> + */ + public Builder clearDebtRemFnOffset() { + bitField1_ = (bitField1_ & ~0x00000001); + debtRemFnOffset_ = getDefaultInstance().getDebtRemFnOffset(); + onChanged(); + return this; + } + /** + * <code>optional string debtRemFnOffset = 36;</code> + */ + 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<Rule> PARSER = + new com.google.protobuf.AbstractParser<Rule>() { + 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<Rule> 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 { + + /** + * <code>repeated string sysTags = 1;</code> + */ + com.google.protobuf.ProtocolStringList + getSysTagsList(); + /** + * <code>repeated string sysTags = 1;</code> + */ + int getSysTagsCount(); + /** + * <code>repeated string sysTags = 1;</code> + */ + java.lang.String getSysTags(int index); + /** + * <code>repeated string sysTags = 1;</code> + */ + 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_; + /** + * <code>repeated string sysTags = 1;</code> + */ + public com.google.protobuf.ProtocolStringList + getSysTagsList() { + return sysTags_; + } + /** + * <code>repeated string sysTags = 1;</code> + */ + public int getSysTagsCount() { + return sysTags_.size(); + } + /** + * <code>repeated string sysTags = 1;</code> + */ + public java.lang.String getSysTags(int index) { + return sysTags_.get(index); + } + /** + * <code>repeated string sysTags = 1;</code> + */ + 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<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; + } + } + /** + * <code>repeated string sysTags = 1;</code> + */ + public com.google.protobuf.ProtocolStringList + getSysTagsList() { + return sysTags_.getUnmodifiableView(); + } + /** + * <code>repeated string sysTags = 1;</code> + */ + public int getSysTagsCount() { + return sysTags_.size(); + } + /** + * <code>repeated string sysTags = 1;</code> + */ + public java.lang.String getSysTags(int index) { + return sysTags_.get(index); + } + /** + * <code>repeated string sysTags = 1;</code> + */ + public com.google.protobuf.ByteString + getSysTagsBytes(int index) { + return sysTags_.getByteString(index); + } + /** + * <code>repeated string sysTags = 1;</code> + */ + public Builder setSysTags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSysTagsIsMutable(); + sysTags_.set(index, value); + onChanged(); + return this; + } + /** + * <code>repeated string sysTags = 1;</code> + */ + public Builder addSysTags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSysTagsIsMutable(); + sysTags_.add(value); + onChanged(); + return this; + } + /** + * <code>repeated string sysTags = 1;</code> + */ + public Builder addAllSysTags( + java.lang.Iterable<java.lang.String> values) { + ensureSysTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sysTags_); + onChanged(); + return this; + } + /** + * <code>repeated string sysTags = 1;</code> + */ + public Builder clearSysTags() { + sysTags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * <code>repeated string sysTags = 1;</code> + */ + 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<SysTags> PARSER = + new com.google.protobuf.AbstractParser<SysTags>() { + 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<SysTags> 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 { + + /** + * <code>repeated string tags = 1;</code> + */ + com.google.protobuf.ProtocolStringList + getTagsList(); + /** + * <code>repeated string tags = 1;</code> + */ + int getTagsCount(); + /** + * <code>repeated string tags = 1;</code> + */ + java.lang.String getTags(int index); + /** + * <code>repeated string tags = 1;</code> + */ + 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_; + /** + * <code>repeated string tags = 1;</code> + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_; + } + /** + * <code>repeated string tags = 1;</code> + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * <code>repeated string tags = 1;</code> + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * <code>repeated string tags = 1;</code> + */ + 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<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; + } + } + /** + * <code>repeated string tags = 1;</code> + */ + public com.google.protobuf.ProtocolStringList + getTagsList() { + return tags_.getUnmodifiableView(); + } + /** + * <code>repeated string tags = 1;</code> + */ + public int getTagsCount() { + return tags_.size(); + } + /** + * <code>repeated string tags = 1;</code> + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + /** + * <code>repeated string tags = 1;</code> + */ + public com.google.protobuf.ByteString + getTagsBytes(int index) { + return tags_.getByteString(index); + } + /** + * <code>repeated string tags = 1;</code> + */ + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + onChanged(); + return this; + } + /** + * <code>repeated string tags = 1;</code> + */ + public Builder addTags( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + onChanged(); + return this; + } + /** + * <code>repeated string tags = 1;</code> + */ + public Builder addAllTags( + java.lang.Iterable<java.lang.String> values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); + onChanged(); + return this; + } + /** + * <code>repeated string tags = 1;</code> + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * <code>repeated string tags = 1;</code> + */ + 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<Tags> PARSER = + new com.google.protobuf.AbstractParser<Tags>() { + 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<Tags> 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 { + + /** + * <code>map<string, .sonarqube.ws.rules.ActiveList> actives = 1;</code> + */ + java.util.Map<java.lang.String, org.sonarqube.ws.Rules.ActiveList> + 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<java.lang.String, org.sonarqube.ws.Rules.ActiveList> + 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 + .<java.lang.String, org.sonarqube.ws.Rules.ActiveList>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<java.lang.String, org.sonarqube.ws.Rules.ActiveList> + internalGetActives() { + if (actives_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ActivesDefaultEntryHolder.defaultEntry); + } + return actives_; + } + /** + * <code>map<string, .sonarqube.ws.rules.ActiveList> actives = 1;</code> + */ + + public java.util.Map<java.lang.String, org.sonarqube.ws.Rules.ActiveList> 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<java.lang.String, org.sonarqube.ws.Rules.ActiveList> entry + : internalGetActives().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, org.sonarqube.ws.Rules.ActiveList> + 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<java.lang.String, org.sonarqube.ws.Rules.ActiveList> entry + : internalGetActives().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, org.sonarqube.ws.Rules.ActiveList> + 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<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<java.lang.String, org.sonarqube.ws.Rules.ActiveList> + internalGetActives() { + if (actives_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ActivesDefaultEntryHolder.defaultEntry); + } + return actives_; + } + private com.google.protobuf.MapField<java.lang.String, org.sonarqube.ws.Rules.ActiveList> + internalGetMutableActives() { + onChanged();; + if (actives_ == null) { + actives_ = com.google.protobuf.MapField.newMapField( + ActivesDefaultEntryHolder.defaultEntry); + } + if (!actives_.isMutable()) { + actives_ = actives_.copy(); + } + return actives_; + } + /** + * <code>map<string, .sonarqube.ws.rules.ActiveList> actives = 1;</code> + */ + public java.util.Map<java.lang.String, org.sonarqube.ws.Rules.ActiveList> getActives() { + return internalGetActives().getMap(); + } + /** + * <code>map<string, .sonarqube.ws.rules.ActiveList> actives = 1;</code> + */ + public java.util.Map<java.lang.String, org.sonarqube.ws.Rules.ActiveList> + 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<Actives> PARSER = + new com.google.protobuf.AbstractParser<Actives>() { + 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<Actives> 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 { + + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + java.util.List<org.sonarqube.ws.Rules.Active> + getActiveListList(); + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + org.sonarqube.ws.Rules.Active getActiveList(int index); + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + int getActiveListCount(); + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + java.util.List<? extends org.sonarqube.ws.Rules.ActiveOrBuilder> + getActiveListOrBuilderList(); + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + 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<org.sonarqube.ws.Rules.Active>(); + 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<org.sonarqube.ws.Rules.Active> activeList_; + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + public java.util.List<org.sonarqube.ws.Rules.Active> getActiveListList() { + return activeList_; + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + public java.util.List<? extends org.sonarqube.ws.Rules.ActiveOrBuilder> + getActiveListOrBuilderList() { + return activeList_; + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + public int getActiveListCount() { + return activeList_.size(); + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + public org.sonarqube.ws.Rules.Active getActiveList(int index) { + return activeList_.get(index); + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + 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<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<org.sonarqube.ws.Rules.Active> activeList_ = + java.util.Collections.emptyList(); + private void ensureActiveListIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + activeList_ = new java.util.ArrayList<org.sonarqube.ws.Rules.Active>(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_; + + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + public java.util.List<org.sonarqube.ws.Rules.Active> getActiveListList() { + if (activeListBuilder_ == null) { + return java.util.Collections.unmodifiableList(activeList_); + } else { + return activeListBuilder_.getMessageList(); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + public int getActiveListCount() { + if (activeListBuilder_ == null) { + return activeList_.size(); + } else { + return activeListBuilder_.getCount(); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + public org.sonarqube.ws.Rules.Active getActiveList(int index) { + if (activeListBuilder_ == null) { + return activeList_.get(index); + } else { + return activeListBuilder_.getMessage(index); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + public Builder addAllActiveList( + java.lang.Iterable<? extends org.sonarqube.ws.Rules.Active> values) { + if (activeListBuilder_ == null) { + ensureActiveListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, activeList_); + onChanged(); + } else { + activeListBuilder_.addAllMessages(values); + } + return this; + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + public Builder clearActiveList() { + if (activeListBuilder_ == null) { + activeList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + activeListBuilder_.clear(); + } + return this; + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + public Builder removeActiveList(int index) { + if (activeListBuilder_ == null) { + ensureActiveListIsMutable(); + activeList_.remove(index); + onChanged(); + } else { + activeListBuilder_.remove(index); + } + return this; + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + public org.sonarqube.ws.Rules.Active.Builder getActiveListBuilder( + int index) { + return getActiveListFieldBuilder().getBuilder(index); + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + public org.sonarqube.ws.Rules.ActiveOrBuilder getActiveListOrBuilder( + int index) { + if (activeListBuilder_ == null) { + return activeList_.get(index); } else { + return activeListBuilder_.getMessageOrBuilder(index); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + public java.util.List<? extends org.sonarqube.ws.Rules.ActiveOrBuilder> + getActiveListOrBuilderList() { + if (activeListBuilder_ != null) { + return activeListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(activeList_); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + public org.sonarqube.ws.Rules.Active.Builder addActiveListBuilder() { + return getActiveListFieldBuilder().addBuilder( + org.sonarqube.ws.Rules.Active.getDefaultInstance()); + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + public org.sonarqube.ws.Rules.Active.Builder addActiveListBuilder( + int index) { + return getActiveListFieldBuilder().addBuilder( + index, org.sonarqube.ws.Rules.Active.getDefaultInstance()); + } + /** + * <code>repeated .sonarqube.ws.rules.Active activeList = 1;</code> + */ + public java.util.List<org.sonarqube.ws.Rules.Active.Builder> + 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<ActiveList> PARSER = + new com.google.protobuf.AbstractParser<ActiveList>() { + 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<ActiveList> 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 { + + /** + * <code>optional string qProfile = 1;</code> + */ + boolean hasQProfile(); + /** + * <code>optional string qProfile = 1;</code> + */ + java.lang.String getQProfile(); + /** + * <code>optional string qProfile = 1;</code> + */ + com.google.protobuf.ByteString + getQProfileBytes(); + + /** + * <code>optional string inherit = 2;</code> + */ + boolean hasInherit(); + /** + * <code>optional string inherit = 2;</code> + */ + java.lang.String getInherit(); + /** + * <code>optional string inherit = 2;</code> + */ + com.google.protobuf.ByteString + getInheritBytes(); + + /** + * <code>optional string severity = 3;</code> + */ + boolean hasSeverity(); + /** + * <code>optional string severity = 3;</code> + */ + java.lang.String getSeverity(); + /** + * <code>optional string severity = 3;</code> + */ + com.google.protobuf.ByteString + getSeverityBytes(); + + /** + * <code>optional string parent = 4;</code> + */ + boolean hasParent(); + /** + * <code>optional string parent = 4;</code> + */ + java.lang.String getParent(); + /** + * <code>optional string parent = 4;</code> + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + java.util.List<org.sonarqube.ws.Rules.Active.Param> + getParamsList(); + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + org.sonarqube.ws.Rules.Active.Param getParams(int index); + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + int getParamsCount(); + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + java.util.List<? extends org.sonarqube.ws.Rules.Active.ParamOrBuilder> + getParamsOrBuilderList(); + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + 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<org.sonarqube.ws.Rules.Active.Param>(); + 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 { + + /** + * <code>optional string key = 1;</code> + */ + boolean hasKey(); + /** + * <code>optional string key = 1;</code> + */ + java.lang.String getKey(); + /** + * <code>optional string key = 1;</code> + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * <code>optional string value = 2;</code> + */ + boolean hasValue(); + /** + * <code>optional string value = 2;</code> + */ + java.lang.String getValue(); + /** + * <code>optional string value = 2;</code> + */ + 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_; + /** + * <code>optional string key = 1;</code> + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string key = 1;</code> + */ + 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; + } + } + /** + * <code>optional string key = 1;</code> + */ + 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_; + /** + * <code>optional string value = 2;</code> + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional string value = 2;</code> + */ + 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; + } + } + /** + * <code>optional string value = 2;</code> + */ + 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<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_ = ""; + /** + * <code>optional string key = 1;</code> + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string key = 1;</code> + */ + 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; + } + } + /** + * <code>optional string key = 1;</code> + */ + 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; + } + } + /** + * <code>optional string key = 1;</code> + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; + } + /** + * <code>optional string key = 1;</code> + */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000001); + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * <code>optional string key = 1;</code> + */ + 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_ = ""; + /** + * <code>optional string value = 2;</code> + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional string value = 2;</code> + */ + 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; + } + } + /** + * <code>optional string value = 2;</code> + */ + 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; + } + } + /** + * <code>optional string value = 2;</code> + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + value_ = value; + onChanged(); + return this; + } + /** + * <code>optional string value = 2;</code> + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * <code>optional string value = 2;</code> + */ + 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<Param> PARSER = + new com.google.protobuf.AbstractParser<Param>() { + 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<Param> 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_; + /** + * <code>optional string qProfile = 1;</code> + */ + public boolean hasQProfile() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string qProfile = 1;</code> + */ + 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; + } + } + /** + * <code>optional string qProfile = 1;</code> + */ + 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_; + /** + * <code>optional string inherit = 2;</code> + */ + public boolean hasInherit() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional string inherit = 2;</code> + */ + 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; + } + } + /** + * <code>optional string inherit = 2;</code> + */ + 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_; + /** + * <code>optional string severity = 3;</code> + */ + public boolean hasSeverity() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * <code>optional string severity = 3;</code> + */ + 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; + } + } + /** + * <code>optional string severity = 3;</code> + */ + 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_; + /** + * <code>optional string parent = 4;</code> + */ + public boolean hasParent() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * <code>optional string parent = 4;</code> + */ + 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; + } + } + /** + * <code>optional string parent = 4;</code> + */ + 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<org.sonarqube.ws.Rules.Active.Param> params_; + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + public java.util.List<org.sonarqube.ws.Rules.Active.Param> getParamsList() { + return params_; + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + public java.util.List<? extends org.sonarqube.ws.Rules.Active.ParamOrBuilder> + getParamsOrBuilderList() { + return params_; + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + public int getParamsCount() { + return params_.size(); + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + public org.sonarqube.ws.Rules.Active.Param getParams(int index) { + return params_.get(index); + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + 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<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_ = ""; + /** + * <code>optional string qProfile = 1;</code> + */ + public boolean hasQProfile() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string qProfile = 1;</code> + */ + 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; + } + } + /** + * <code>optional string qProfile = 1;</code> + */ + 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; + } + } + /** + * <code>optional string qProfile = 1;</code> + */ + public Builder setQProfile( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + qProfile_ = value; + onChanged(); + return this; + } + /** + * <code>optional string qProfile = 1;</code> + */ + public Builder clearQProfile() { + bitField0_ = (bitField0_ & ~0x00000001); + qProfile_ = getDefaultInstance().getQProfile(); + onChanged(); + return this; + } + /** + * <code>optional string qProfile = 1;</code> + */ + 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_ = ""; + /** + * <code>optional string inherit = 2;</code> + */ + public boolean hasInherit() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional string inherit = 2;</code> + */ + 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; + } + } + /** + * <code>optional string inherit = 2;</code> + */ + 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; + } + } + /** + * <code>optional string inherit = 2;</code> + */ + public Builder setInherit( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + inherit_ = value; + onChanged(); + return this; + } + /** + * <code>optional string inherit = 2;</code> + */ + public Builder clearInherit() { + bitField0_ = (bitField0_ & ~0x00000002); + inherit_ = getDefaultInstance().getInherit(); + onChanged(); + return this; + } + /** + * <code>optional string inherit = 2;</code> + */ + 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_ = ""; + /** + * <code>optional string severity = 3;</code> + */ + public boolean hasSeverity() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * <code>optional string severity = 3;</code> + */ + 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; + } + } + /** + * <code>optional string severity = 3;</code> + */ + 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; + } + } + /** + * <code>optional string severity = 3;</code> + */ + public Builder setSeverity( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + severity_ = value; + onChanged(); + return this; + } + /** + * <code>optional string severity = 3;</code> + */ + public Builder clearSeverity() { + bitField0_ = (bitField0_ & ~0x00000004); + severity_ = getDefaultInstance().getSeverity(); + onChanged(); + return this; + } + /** + * <code>optional string severity = 3;</code> + */ + 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_ = ""; + /** + * <code>optional string parent = 4;</code> + */ + public boolean hasParent() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * <code>optional string parent = 4;</code> + */ + 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; + } + } + /** + * <code>optional string parent = 4;</code> + */ + 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; + } + } + /** + * <code>optional string parent = 4;</code> + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + parent_ = value; + onChanged(); + return this; + } + /** + * <code>optional string parent = 4;</code> + */ + public Builder clearParent() { + bitField0_ = (bitField0_ & ~0x00000008); + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * <code>optional string parent = 4;</code> + */ + 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<org.sonarqube.ws.Rules.Active.Param> params_ = + java.util.Collections.emptyList(); + private void ensureParamsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + params_ = new java.util.ArrayList<org.sonarqube.ws.Rules.Active.Param>(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_; + + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + public java.util.List<org.sonarqube.ws.Rules.Active.Param> getParamsList() { + if (paramsBuilder_ == null) { + return java.util.Collections.unmodifiableList(params_); + } else { + return paramsBuilder_.getMessageList(); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + public int getParamsCount() { + if (paramsBuilder_ == null) { + return params_.size(); + } else { + return paramsBuilder_.getCount(); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + public org.sonarqube.ws.Rules.Active.Param getParams(int index) { + if (paramsBuilder_ == null) { + return params_.get(index); + } else { + return paramsBuilder_.getMessage(index); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + 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; + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + public Builder addAllParams( + java.lang.Iterable<? extends org.sonarqube.ws.Rules.Active.Param> values) { + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, params_); + onChanged(); + } else { + paramsBuilder_.addAllMessages(values); + } + return this; + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + public Builder clearParams() { + if (paramsBuilder_ == null) { + params_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + paramsBuilder_.clear(); + } + return this; + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + public Builder removeParams(int index) { + if (paramsBuilder_ == null) { + ensureParamsIsMutable(); + params_.remove(index); + onChanged(); + } else { + paramsBuilder_.remove(index); + } + return this; + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + public org.sonarqube.ws.Rules.Active.Param.Builder getParamsBuilder( + int index) { + return getParamsFieldBuilder().getBuilder(index); + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + public org.sonarqube.ws.Rules.Active.ParamOrBuilder getParamsOrBuilder( + int index) { + if (paramsBuilder_ == null) { + return params_.get(index); } else { + return paramsBuilder_.getMessageOrBuilder(index); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + public java.util.List<? extends org.sonarqube.ws.Rules.Active.ParamOrBuilder> + getParamsOrBuilderList() { + if (paramsBuilder_ != null) { + return paramsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(params_); + } + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + public org.sonarqube.ws.Rules.Active.Param.Builder addParamsBuilder() { + return getParamsFieldBuilder().addBuilder( + org.sonarqube.ws.Rules.Active.Param.getDefaultInstance()); + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + public org.sonarqube.ws.Rules.Active.Param.Builder addParamsBuilder( + int index) { + return getParamsFieldBuilder().addBuilder( + index, org.sonarqube.ws.Rules.Active.Param.getDefaultInstance()); + } + /** + * <code>repeated .sonarqube.ws.rules.Active.Param params = 5;</code> + */ + public java.util.List<org.sonarqube.ws.Rules.Active.Param.Builder> + 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<Active> PARSER = + new com.google.protobuf.AbstractParser<Active>() { + 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<Active> 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 { + + /** + * <code>map<string, .sonarqube.ws.rules.QProfile> qProfiles = 1;</code> + */ + java.util.Map<java.lang.String, org.sonarqube.ws.Rules.QProfile> + 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<java.lang.String, org.sonarqube.ws.Rules.QProfile> + 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 + .<java.lang.String, org.sonarqube.ws.Rules.QProfile>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<java.lang.String, org.sonarqube.ws.Rules.QProfile> + internalGetQProfiles() { + if (qProfiles_ == null) { + return com.google.protobuf.MapField.emptyMapField( + QProfilesDefaultEntryHolder.defaultEntry); + } + return qProfiles_; + } + /** + * <code>map<string, .sonarqube.ws.rules.QProfile> qProfiles = 1;</code> + */ + + public java.util.Map<java.lang.String, org.sonarqube.ws.Rules.QProfile> 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<java.lang.String, org.sonarqube.ws.Rules.QProfile> entry + : internalGetQProfiles().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, org.sonarqube.ws.Rules.QProfile> + 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<java.lang.String, org.sonarqube.ws.Rules.QProfile> entry + : internalGetQProfiles().getMap().entrySet()) { + com.google.protobuf.MapEntry<java.lang.String, org.sonarqube.ws.Rules.QProfile> + 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<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<java.lang.String, org.sonarqube.ws.Rules.QProfile> + internalGetQProfiles() { + if (qProfiles_ == null) { + return com.google.protobuf.MapField.emptyMapField( + QProfilesDefaultEntryHolder.defaultEntry); + } + return qProfiles_; + } + private com.google.protobuf.MapField<java.lang.String, org.sonarqube.ws.Rules.QProfile> + internalGetMutableQProfiles() { + onChanged();; + if (qProfiles_ == null) { + qProfiles_ = com.google.protobuf.MapField.newMapField( + QProfilesDefaultEntryHolder.defaultEntry); + } + if (!qProfiles_.isMutable()) { + qProfiles_ = qProfiles_.copy(); + } + return qProfiles_; + } + /** + * <code>map<string, .sonarqube.ws.rules.QProfile> qProfiles = 1;</code> + */ + public java.util.Map<java.lang.String, org.sonarqube.ws.Rules.QProfile> getQProfiles() { + return internalGetQProfiles().getMap(); + } + /** + * <code>map<string, .sonarqube.ws.rules.QProfile> qProfiles = 1;</code> + */ + public java.util.Map<java.lang.String, org.sonarqube.ws.Rules.QProfile> + 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<QProfiles> PARSER = + new com.google.protobuf.AbstractParser<QProfiles>() { + 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<QProfiles> 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 { + + /** + * <code>optional string name = 1;</code> + */ + boolean hasName(); + /** + * <code>optional string name = 1;</code> + */ + java.lang.String getName(); + /** + * <code>optional string name = 1;</code> + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * <code>optional string lang = 2;</code> + */ + boolean hasLang(); + /** + * <code>optional string lang = 2;</code> + */ + java.lang.String getLang(); + /** + * <code>optional string lang = 2;</code> + */ + com.google.protobuf.ByteString + getLangBytes(); + + /** + * <code>optional string langName = 3;</code> + */ + boolean hasLangName(); + /** + * <code>optional string langName = 3;</code> + */ + java.lang.String getLangName(); + /** + * <code>optional string langName = 3;</code> + */ + com.google.protobuf.ByteString + getLangNameBytes(); + + /** + * <code>optional string parent = 4;</code> + */ + boolean hasParent(); + /** + * <code>optional string parent = 4;</code> + */ + java.lang.String getParent(); + /** + * <code>optional string parent = 4;</code> + */ + 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_; + /** + * <code>optional string name = 1;</code> + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string name = 1;</code> + */ + 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; + } + } + /** + * <code>optional string name = 1;</code> + */ + 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_; + /** + * <code>optional string lang = 2;</code> + */ + public boolean hasLang() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional string lang = 2;</code> + */ + 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; + } + } + /** + * <code>optional string lang = 2;</code> + */ + 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_; + /** + * <code>optional string langName = 3;</code> + */ + public boolean hasLangName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * <code>optional string langName = 3;</code> + */ + 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; + } + } + /** + * <code>optional string langName = 3;</code> + */ + 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_; + /** + * <code>optional string parent = 4;</code> + */ + public boolean hasParent() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * <code>optional string parent = 4;</code> + */ + 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; + } + } + /** + * <code>optional string parent = 4;</code> + */ + 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<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_ = ""; + /** + * <code>optional string name = 1;</code> + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * <code>optional string name = 1;</code> + */ + 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; + } + } + /** + * <code>optional string name = 1;</code> + */ + 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; + } + } + /** + * <code>optional string name = 1;</code> + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + * <code>optional string name = 1;</code> + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * <code>optional string name = 1;</code> + */ + 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_ = ""; + /** + * <code>optional string lang = 2;</code> + */ + public boolean hasLang() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * <code>optional string lang = 2;</code> + */ + 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; + } + } + /** + * <code>optional string lang = 2;</code> + */ + 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; + } + } + /** + * <code>optional string lang = 2;</code> + */ + public Builder setLang( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + lang_ = value; + onChanged(); + return this; + } + /** + * <code>optional string lang = 2;</code> + */ + public Builder clearLang() { + bitField0_ = (bitField0_ & ~0x00000002); + lang_ = getDefaultInstance().getLang(); + onChanged(); + return this; + } + /** + * <code>optional string lang = 2;</code> + */ + 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_ = ""; + /** + * <code>optional string langName = 3;</code> + */ + public boolean hasLangName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * <code>optional string langName = 3;</code> + */ + 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; + } + } + /** + * <code>optional string langName = 3;</code> + */ + 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; + } + } + /** + * <code>optional string langName = 3;</code> + */ + public Builder setLangName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + langName_ = value; + onChanged(); + return this; + } + /** + * <code>optional string langName = 3;</code> + */ + public Builder clearLangName() { + bitField0_ = (bitField0_ & ~0x00000004); + langName_ = getDefaultInstance().getLangName(); + onChanged(); + return this; + } + /** + * <code>optional string langName = 3;</code> + */ + 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_ = ""; + /** + * <code>optional string parent = 4;</code> + */ + public boolean hasParent() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * <code>optional string parent = 4;</code> + */ + 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; + } + } + /** + * <code>optional string parent = 4;</code> + */ + 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; + } + } + /** + * <code>optional string parent = 4;</code> + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + parent_ = value; + onChanged(); + return this; + } + /** + * <code>optional string parent = 4;</code> + */ + public Builder clearParent() { + bitField0_ = (bitField0_ & ~0x00000008); + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * <code>optional string parent = 4;</code> + */ + 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<QProfile> PARSER = + new com.google.protobuf.AbstractParser<QProfile>() { + 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<QProfile> 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 @@ -1641,6 +17508,91 @@ public final class Rules { 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() { @@ -1650,12 +17602,64 @@ public final class Rules { descriptor; static { java.lang.String[] descriptorData = { - "\n\016ws-rules.proto\022\022sonarqube.ws.rules\"\221\001\n" + - "\014ListResponse\0224\n\005rules\030\001 \003(\0132%.sonarqube" + - ".ws.rules.ListResponse.Rule\032K\n\004Rule\022\022\n\nr" + - "epository\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(\tB\033\n\020org.sonarqub" + - "e.wsB\005RulesH\001" + "\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() { @@ -1668,6 +17672,7 @@ public final class Rules { 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); @@ -1681,6 +17686,109 @@ public final class Rules { 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/protobuf/ws-qualityprofiles.proto b/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto index f3708259d24..25dd11c94fe 100644 --- a/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto +++ b/sonar-ws/src/main/protobuf/ws-qualityprofiles.proto @@ -18,12 +18,10 @@ syntax = "proto2"; -package sonarqube.ws.rules; +package sonarqube.ws.qualityprofiles; option java_package = "org.sonarqube.ws"; - option java_outer_classname = "QualityProfiles"; - option optimize_for = SPEED; // WS api/qualityprofiles/search diff --git a/sonar-ws/src/main/protobuf/ws-rules.proto b/sonar-ws/src/main/protobuf/ws-rules.proto index 43a04956ebb..300017003ed 100644 --- a/sonar-ws/src/main/protobuf/ws-rules.proto +++ b/sonar-ws/src/main/protobuf/ws-rules.proto @@ -20,6 +20,8 @@ syntax = "proto2"; package sonarqube.ws.rules; +import "ws-commons.proto"; + option java_package = "org.sonarqube.ws"; option java_outer_classname = "Rules"; option optimize_for = SPEED; @@ -35,5 +37,119 @@ message ListResponse { } repeated Rule rules = 1; +} + +// WS api/rules/search +message SearchResponse { + optional int64 total = 1; + optional int32 p = 2; + optional int64 ps = 3; + repeated Rule rules = 4; + optional Actives actives = 5; + optional QProfiles qProfiles = 6; + optional sonarqube.ws.commons.Facets facets = 7; +} + +//WS api/rules/show +message ShowResponse { + optional Rule rule = 1; + repeated Active actives = 3; +} + +//WS api/rules/create +message CreateResponse { + optional Rule rule = 1; +} + +//WS api/rules/update +message UpdateResponse { + optional Rule rule = 1; +} + +message Rule { + optional string key = 1; + optional string repo = 2; + optional string name = 3; + optional string createdAt = 4; + optional string htmlDesc = 5; + optional string htmlNote = 6; + optional string mdDesc = 7; + optional string mdNote = 8; + optional string noteLogin = 9; + optional string severity = 10; + optional sonarqube.ws.commons.RuleStatus status = 11; + optional string internalKey = 12; + optional bool isTemplate = 13; + optional string templateKey = 14; + optional Tags tags = 15; + optional SysTags sysTags = 16; + optional string lang = 19; + optional string langName = 20; + optional Params params = 21; + // debt fields + optional string defaultDebtChar = 23; + optional string defaultDebtSubChar = 24; + optional string debtChar = 25; + optional string debtSubChar = 26; + optional string debtCharName = 27; + optional string debtSubCharName = 28; + optional string defaultDebtRemFnType = 29; + optional string defaultDebtRemFnCoeff = 30; + optional string defaultDebtRemFnOffset = 31; + optional string effortToFixDescription = 32; + optional bool debtOverloaded = 33; + optional string debtRemFnType = 34; + optional string debtRemFnCoeff = 35; + optional string debtRemFnOffset = 36; + + message Params { + repeated Param params = 1; + } + + message Param { + optional string key = 1; + optional string htmlDesc = 2; + optional string defaultValue = 3; + optional string type = 4; + } +} + +message SysTags { + repeated string sysTags = 1; +} + +message Tags { + repeated string tags = 1; +} + +message Actives { + map<string, ActiveList> actives = 1; +} + +message ActiveList { + repeated Active activeList = 1; +} + +message Active { + optional string qProfile = 1; + optional string inherit = 2; + optional string severity = 3; + optional string parent = 4; + repeated Param params = 5; + + message Param { + optional string key = 1; + optional string value = 2; + } +} + +message QProfiles { + map<string,QProfile> qProfiles = 1; +} +message QProfile { + optional string name = 1; + optional string lang = 2; + optional string langName = 3; + optional string parent = 4; } |