aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-09-09 09:37:48 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-09-11 11:44:21 +0200
commit33a216e2071c028060d437fe2707b9e7012aae76 (patch)
tree4b52349f9a028aadde4e66d931ee38c55013d24d /sonar-ws
parent135df88fafd97a2fb78a9d7ec172fb8f39cdee3c (diff)
downloadsonarqube-33a216e2071c028060d437fe2707b9e7012aae76.tar.gz
sonarqube-33a216e2071c028060d437fe2707b9e7012aae76.zip
Upgrade protobuf lib to 3.0.0-beta-1
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/gen-java/org/sonarqube/ws/Common.java808
-rw-r--r--sonar-ws/src/main/gen-java/org/sonarqube/ws/Issues.java1418
-rw-r--r--sonar-ws/src/main/gen-java/org/sonarqube/ws/Permissions.java1779
-rw-r--r--sonar-ws/src/main/gen-java/org/sonarqube/ws/Rules.java258
4 files changed, 2080 insertions, 2183 deletions
diff --git a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Common.java b/sonar-ws/src/main/gen-java/org/sonarqube/ws/Common.java
index 910a5297e82..7483d52b914 100644
--- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Common.java
+++ b/sonar-ws/src/main/gen-java/org/sonarqube/ws/Common.java
@@ -57,7 +57,9 @@ public final class Common {
public static final int BLOCKER_VALUE = 4;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
public static Severity valueOf(int value) {
switch (value) {
@@ -158,7 +160,9 @@ public final class Common {
public static final int REMOVED_VALUE = 3;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
public static RuleStatus valueOf(int value) {
switch (value) {
@@ -251,37 +255,29 @@ public final class Common {
/**
* Protobuf type {@code sonarqube.ws.commons.Paging}
*/
- public static final class Paging extends
+ public static final class Paging extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Paging)
PagingOrBuilder {
// Use Paging.newBuilder() to construct.
- private Paging(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Paging(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Paging(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Paging defaultInstance;
- public static Paging getDefaultInstance() {
- return defaultInstance;
}
-
- public Paging getDefaultInstanceForType() {
- return defaultInstance;
+ private Paging() {
+ pageIndex_ = 0;
+ pageSize_ = 0;
+ total_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Paging(
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();
@@ -318,10 +314,11 @@ public final class Common {
}
}
} 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();
@@ -339,21 +336,6 @@ public final class Common {
org.sonarqube.ws.Common.Paging.class, org.sonarqube.ws.Common.Paging.Builder.class);
}
- public static com.google.protobuf.Parser<Paging> PARSER =
- new com.google.protobuf.AbstractParser<Paging>() {
- public Paging parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Paging(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Paging> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int PAGEINDEX_FIELD_NUMBER = 1;
private int pageIndex_;
@@ -400,11 +382,6 @@ public final class Common {
return total_;
}
- private void initFields() {
- pageIndex_ = 0;
- pageSize_ = 0;
- total_ = 0;
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -417,7 +394,6 @@ public final class Common {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, pageIndex_);
}
@@ -427,7 +403,7 @@ public final class Common {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeInt32(3, total_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -448,18 +424,12 @@ public final class Common {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, total_);
}
- 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.Common.Paging parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -513,12 +483,17 @@ public final class Common {
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.Common.Paging 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(
@@ -559,10 +534,6 @@ public final class Common {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
pageIndex_ = 0;
@@ -574,10 +545,6 @@ public final class Common {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Paging_descriptor;
@@ -636,7 +603,8 @@ public final class Common {
if (other.hasTotal()) {
setTotal(other.getTotal());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -762,12 +730,44 @@ public final class Common {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Paging)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Paging)
+ private static final org.sonarqube.ws.Common.Paging DEFAULT_INSTANCE;
static {
- defaultInstance = new Paging(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Paging();
+ }
+
+ public static org.sonarqube.ws.Common.Paging getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Paging> PARSER =
+ new com.google.protobuf.AbstractParser<Paging>() {
+ public Paging parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Paging(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Paging> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Common.Paging getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Paging)
}
public interface FacetOrBuilder extends
@@ -827,37 +827,28 @@ public final class Common {
/**
* Protobuf type {@code sonarqube.ws.commons.Facet}
*/
- public static final class Facet extends
+ public static final class Facet extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Facet)
FacetOrBuilder {
// Use Facet.newBuilder() to construct.
- private Facet(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Facet(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Facet(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Facet defaultInstance;
- public static Facet getDefaultInstance() {
- return defaultInstance;
- }
-
- public Facet getDefaultInstanceForType() {
- return defaultInstance;
+ private Facet() {
+ property_ = "";
+ values_ = 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 Facet(
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();
@@ -893,10 +884,11 @@ public final class Common {
}
}
} 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_ & 0x00000002) == 0x00000002)) {
values_ = java.util.Collections.unmodifiableList(values_);
@@ -917,24 +909,9 @@ public final class Common {
org.sonarqube.ws.Common.Facet.class, org.sonarqube.ws.Common.Facet.Builder.class);
}
- public static com.google.protobuf.Parser<Facet> PARSER =
- new com.google.protobuf.AbstractParser<Facet>() {
- public Facet parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Facet(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Facet> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int PROPERTY_FIELD_NUMBER = 1;
- private java.lang.Object property_;
+ private volatile java.lang.Object property_;
/**
* <code>optional string property = 1;</code>
*
@@ -1022,10 +999,6 @@ public final class Common {
return values_.get(index);
}
- private void initFields() {
- property_ = "";
- values_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -1038,14 +1011,13 @@ public final class Common {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getPropertyBytes());
}
for (int i = 0; i < values_.size(); i++) {
output.writeMessage(2, values_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -1062,18 +1034,12 @@ public final class Common {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, values_.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.Common.Facet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1127,12 +1093,17 @@ public final class Common {
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.Common.Facet 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(
@@ -1174,10 +1145,6 @@ public final class Common {
getValuesFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
property_ = "";
@@ -1191,10 +1158,6 @@ public final class Common {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facet_descriptor;
@@ -1276,7 +1239,8 @@ public final class Common {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -1646,12 +1610,44 @@ public final class Common {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Facet)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Facet)
+ private static final org.sonarqube.ws.Common.Facet DEFAULT_INSTANCE;
static {
- defaultInstance = new Facet(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Facet();
+ }
+
+ public static org.sonarqube.ws.Common.Facet getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Facet> PARSER =
+ new com.google.protobuf.AbstractParser<Facet>() {
+ public Facet parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Facet(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Facet> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Common.Facet getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Facet)
}
public interface FacetValueOrBuilder extends
@@ -1684,37 +1680,28 @@ public final class Common {
/**
* Protobuf type {@code sonarqube.ws.commons.FacetValue}
*/
- public static final class FacetValue extends
+ public static final class FacetValue extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.commons.FacetValue)
FacetValueOrBuilder {
// Use FacetValue.newBuilder() to construct.
- private FacetValue(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private FacetValue(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private FacetValue(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final FacetValue defaultInstance;
- public static FacetValue getDefaultInstance() {
- return defaultInstance;
- }
-
- public FacetValue getDefaultInstanceForType() {
- return defaultInstance;
+ private FacetValue() {
+ val_ = "";
+ count_ = 0L;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private FacetValue(
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();
@@ -1747,10 +1734,11 @@ public final class Common {
}
}
} 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();
@@ -1768,24 +1756,9 @@ public final class Common {
org.sonarqube.ws.Common.FacetValue.class, org.sonarqube.ws.Common.FacetValue.Builder.class);
}
- public static com.google.protobuf.Parser<FacetValue> PARSER =
- new com.google.protobuf.AbstractParser<FacetValue>() {
- public FacetValue parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new FacetValue(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<FacetValue> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int VAL_FIELD_NUMBER = 1;
- private java.lang.Object val_;
+ private volatile java.lang.Object val_;
/**
* <code>optional string val = 1;</code>
*/
@@ -1841,10 +1814,6 @@ public final class Common {
return count_;
}
- private void initFields() {
- val_ = "";
- count_ = 0L;
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -1857,14 +1826,13 @@ public final class Common {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getValBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeInt64(2, count_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -1881,18 +1849,12 @@ public final class Common {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, count_);
}
- 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.Common.FacetValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1946,12 +1908,17 @@ public final class Common {
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.Common.FacetValue 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(
@@ -1992,10 +1959,6 @@ public final class Common {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
val_ = "";
@@ -2005,10 +1968,6 @@ public final class Common {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_FacetValue_descriptor;
@@ -2062,7 +2021,8 @@ public final class Common {
if (other.hasCount()) {
setCount(other.getCount());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -2200,12 +2160,44 @@ public final class Common {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.FacetValue)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.FacetValue)
+ private static final org.sonarqube.ws.Common.FacetValue DEFAULT_INSTANCE;
static {
- defaultInstance = new FacetValue(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Common.FacetValue();
+ }
+
+ public static org.sonarqube.ws.Common.FacetValue getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<FacetValue> PARSER =
+ new com.google.protobuf.AbstractParser<FacetValue>() {
+ public FacetValue parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new FacetValue(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<FacetValue> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Common.FacetValue getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.FacetValue)
}
public interface RuleOrBuilder extends
@@ -2280,37 +2272,31 @@ public final class Common {
/**
* Protobuf type {@code sonarqube.ws.commons.Rule}
*/
- public static final class Rule extends
+ public static final class Rule extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Rule)
RuleOrBuilder {
// Use Rule.newBuilder() to construct.
- private Rule(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Rule(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Rule(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Rule defaultInstance;
- public static Rule getDefaultInstance() {
- return defaultInstance;
}
-
- public Rule getDefaultInstanceForType() {
- return defaultInstance;
+ private Rule() {
+ key_ = "";
+ name_ = "";
+ lang_ = "";
+ status_ = 0;
+ langName_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Rule(
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();
@@ -2354,7 +2340,7 @@ public final class Common {
unknownFields.mergeVarintField(4, rawValue);
} else {
bitField0_ |= 0x00000008;
- status_ = value;
+ status_ = rawValue;
}
break;
}
@@ -2367,10 +2353,11 @@ public final class Common {
}
}
} 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();
@@ -2388,24 +2375,9 @@ public final class Common {
org.sonarqube.ws.Common.Rule.class, org.sonarqube.ws.Common.Rule.Builder.class);
}
- public static 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 {
- return new Rule(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Rule> 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>
*/
@@ -2447,7 +2419,7 @@ public final class Common {
}
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>
*/
@@ -2489,7 +2461,7 @@ public final class Common {
}
public static final int LANG_FIELD_NUMBER = 3;
- private java.lang.Object lang_;
+ private volatile java.lang.Object lang_;
/**
* <code>optional string lang = 3;</code>
*/
@@ -2531,7 +2503,7 @@ public final class Common {
}
public static final int STATUS_FIELD_NUMBER = 4;
- private org.sonarqube.ws.Common.RuleStatus status_;
+ private int status_;
/**
* <code>optional .sonarqube.ws.commons.RuleStatus status = 4;</code>
*/
@@ -2542,11 +2514,12 @@ public final class Common {
* <code>optional .sonarqube.ws.commons.RuleStatus status = 4;</code>
*/
public org.sonarqube.ws.Common.RuleStatus getStatus() {
- return status_;
+ org.sonarqube.ws.Common.RuleStatus result = org.sonarqube.ws.Common.RuleStatus.valueOf(status_);
+ return result == null ? org.sonarqube.ws.Common.RuleStatus.BETA : result;
}
public static final int LANGNAME_FIELD_NUMBER = 5;
- private java.lang.Object langName_;
+ private volatile java.lang.Object langName_;
/**
* <code>optional string langName = 5;</code>
*/
@@ -2587,13 +2560,6 @@ public final class Common {
}
}
- private void initFields() {
- key_ = "";
- name_ = "";
- lang_ = "";
- status_ = org.sonarqube.ws.Common.RuleStatus.BETA;
- langName_ = "";
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -2606,7 +2572,6 @@ public final class Common {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getKeyBytes());
}
@@ -2617,12 +2582,12 @@ public final class Common {
output.writeBytes(3, getLangBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeEnum(4, status_.getNumber());
+ output.writeEnum(4, status_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, getLangNameBytes());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -2645,24 +2610,18 @@ public final class Common {
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(4, status_.getNumber());
+ .computeEnumSize(4, status_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getLangNameBytes());
}
- 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.Common.Rule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -2716,12 +2675,17 @@ public final class Common {
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.Common.Rule 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(
@@ -2762,10 +2726,6 @@ public final class Common {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
key_ = "";
@@ -2774,17 +2734,13 @@ public final class Common {
bitField0_ = (bitField0_ & ~0x00000002);
lang_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
- status_ = org.sonarqube.ws.Common.RuleStatus.BETA;
+ status_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
langName_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rule_descriptor;
@@ -2865,7 +2821,8 @@ public final class Common {
langName_ = other.langName_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -3120,7 +3077,7 @@ public final class Common {
return this;
}
- private org.sonarqube.ws.Common.RuleStatus status_ = org.sonarqube.ws.Common.RuleStatus.BETA;
+ private int status_ = 0;
/**
* <code>optional .sonarqube.ws.commons.RuleStatus status = 4;</code>
*/
@@ -3131,7 +3088,8 @@ public final class Common {
* <code>optional .sonarqube.ws.commons.RuleStatus status = 4;</code>
*/
public org.sonarqube.ws.Common.RuleStatus getStatus() {
- return status_;
+ 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 = 4;</code>
@@ -3141,7 +3099,7 @@ public final class Common {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
- status_ = value;
+ status_ = value.getNumber();
onChanged();
return this;
}
@@ -3150,7 +3108,7 @@ public final class Common {
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000008);
- status_ = org.sonarqube.ws.Common.RuleStatus.BETA;
+ status_ = 0;
onChanged();
return this;
}
@@ -3234,12 +3192,44 @@ public final class Common {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Rule)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Rule)
+ private static final org.sonarqube.ws.Common.Rule DEFAULT_INSTANCE;
static {
- defaultInstance = new Rule(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Rule();
+ }
+
+ public static org.sonarqube.ws.Common.Rule getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<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.Common.Rule getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Rule)
}
public interface UserOrBuilder extends
@@ -3300,37 +3290,30 @@ public final class Common {
/**
* Protobuf type {@code sonarqube.ws.commons.User}
*/
- public static final class User extends
+ public static final class User extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.commons.User)
UserOrBuilder {
// Use User.newBuilder() to construct.
- private User(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private User(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private User(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final User defaultInstance;
- public static User getDefaultInstance() {
- return defaultInstance;
}
-
- public User getDefaultInstanceForType() {
- return defaultInstance;
+ private User() {
+ login_ = "";
+ name_ = "";
+ email_ = "";
+ active_ = false;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private User(
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();
@@ -3375,10 +3358,11 @@ public final class Common {
}
}
} 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();
@@ -3396,24 +3380,9 @@ public final class Common {
org.sonarqube.ws.Common.User.class, org.sonarqube.ws.Common.User.Builder.class);
}
- public static com.google.protobuf.Parser<User> PARSER =
- new com.google.protobuf.AbstractParser<User>() {
- public User parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new User(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<User> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int LOGIN_FIELD_NUMBER = 1;
- private java.lang.Object login_;
+ private volatile java.lang.Object login_;
/**
* <code>optional string login = 1;</code>
*/
@@ -3455,7 +3424,7 @@ public final class Common {
}
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>
*/
@@ -3497,7 +3466,7 @@ public final class Common {
}
public static final int EMAIL_FIELD_NUMBER = 3;
- private java.lang.Object email_;
+ private volatile java.lang.Object email_;
/**
* <code>optional string email = 3;</code>
*/
@@ -3553,12 +3522,6 @@ public final class Common {
return active_;
}
- private void initFields() {
- login_ = "";
- name_ = "";
- email_ = "";
- active_ = false;
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -3571,7 +3534,6 @@ public final class Common {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getLoginBytes());
}
@@ -3584,7 +3546,7 @@ public final class Common {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, active_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -3609,18 +3571,12 @@ public final class Common {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, active_);
}
- 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.Common.User parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -3674,12 +3630,17 @@ public final class Common {
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.Common.User 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(
@@ -3720,10 +3681,6 @@ public final class Common {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
login_ = "";
@@ -3737,10 +3694,6 @@ public final class Common {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_User_descriptor;
@@ -3812,7 +3765,8 @@ public final class Common {
if (other.hasActive()) {
setActive(other.getActive());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -4102,12 +4056,44 @@ public final class Common {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.User)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.User)
+ private static final org.sonarqube.ws.Common.User DEFAULT_INSTANCE;
static {
- defaultInstance = new User(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Common.User();
+ }
+
+ public static org.sonarqube.ws.Common.User getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<User> PARSER =
+ new com.google.protobuf.AbstractParser<User>() {
+ public User parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new User(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<User> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Common.User getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.User)
}
public interface TextRangeOrBuilder extends
@@ -4189,37 +4175,30 @@ public final class Common {
* Lines start at 1 and line offsets start at 0
* </pre>
*/
- public static final class TextRange extends
+ public static final class TextRange extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.commons.TextRange)
TextRangeOrBuilder {
// Use TextRange.newBuilder() to construct.
- private TextRange(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private TextRange(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private TextRange(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final TextRange defaultInstance;
- public static TextRange getDefaultInstance() {
- return defaultInstance;
- }
-
- public TextRange getDefaultInstanceForType() {
- return defaultInstance;
+ private TextRange() {
+ startLine_ = 0;
+ endLine_ = 0;
+ startOffset_ = 0;
+ endOffset_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private TextRange(
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();
@@ -4261,10 +4240,11 @@ public final class Common {
}
}
} 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();
@@ -4282,21 +4262,6 @@ public final class Common {
org.sonarqube.ws.Common.TextRange.class, org.sonarqube.ws.Common.TextRange.Builder.class);
}
- public static com.google.protobuf.Parser<TextRange> PARSER =
- new com.google.protobuf.AbstractParser<TextRange>() {
- public TextRange parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new TextRange(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<TextRange> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int STARTLINE_FIELD_NUMBER = 1;
private int startLine_;
@@ -4390,12 +4355,6 @@ public final class Common {
return endOffset_;
}
- private void initFields() {
- startLine_ = 0;
- endLine_ = 0;
- startOffset_ = 0;
- endOffset_ = 0;
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -4408,7 +4367,6 @@ public final class Common {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt32(1, startLine_);
}
@@ -4421,7 +4379,7 @@ public final class Common {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeInt32(4, endOffset_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -4446,18 +4404,12 @@ public final class Common {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, endOffset_);
}
- 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.Common.TextRange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -4511,12 +4463,17 @@ public final class Common {
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.Common.TextRange 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(
@@ -4561,10 +4518,6 @@ public final class Common {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
startLine_ = 0;
@@ -4578,10 +4531,6 @@ public final class Common {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_TextRange_descriptor;
@@ -4647,7 +4596,8 @@ public final class Common {
if (other.hasEndOffset()) {
setEndOffset(other.getEndOffset());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -4869,40 +4819,72 @@ public final class Common {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.TextRange)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.TextRange)
+ private static final org.sonarqube.ws.Common.TextRange DEFAULT_INSTANCE;
static {
- defaultInstance = new TextRange(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Common.TextRange();
+ }
+
+ public static org.sonarqube.ws.Common.TextRange getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<TextRange> PARSER =
+ new com.google.protobuf.AbstractParser<TextRange>() {
+ public TextRange parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new TextRange(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<TextRange> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Common.TextRange getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.TextRange)
}
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_commons_Paging_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_commons_Paging_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_commons_Facet_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_commons_Facet_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_commons_FacetValue_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_commons_FacetValue_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_commons_Rule_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_commons_Rule_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_commons_User_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_commons_User_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_commons_TextRange_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
diff --git a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Issues.java b/sonar-ws/src/main/gen-java/org/sonarqube/ws/Issues.java
index a53e9de74f1..413930f7f09 100644
--- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Issues.java
+++ b/sonar-ws/src/main/gen-java/org/sonarqube/ws/Issues.java
@@ -289,37 +289,42 @@ public final class Issues {
* Response of GET api/issues/search
* </pre>
*/
- public static final class Search extends
+ public static final class Search extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Search)
SearchOrBuilder {
// Use Search.newBuilder() to construct.
- private Search(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Search(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Search(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Search defaultInstance;
- public static Search getDefaultInstance() {
- return defaultInstance;
- }
-
- public Search getDefaultInstanceForType() {
- return defaultInstance;
+ private Search() {
+ total_ = 0L;
+ p_ = 0L;
+ ps_ = 0;
+ debtTotal_ = 0L;
+ issues_ = java.util.Collections.emptyList();
+ components_ = java.util.Collections.emptyList();
+ rulesPresentIfEmpty_ = false;
+ rules_ = java.util.Collections.emptyList();
+ usersPresentIfEmpty_ = false;
+ users_ = java.util.Collections.emptyList();
+ actionPlansPresentIfEmpty_ = false;
+ actionPlans_ = java.util.Collections.emptyList();
+ languagesPresentIfEmpty_ = false;
+ languages_ = java.util.Collections.emptyList();
+ facetsPresentIfEmpty_ = false;
+ facets_ = 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 Search(
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();
@@ -455,10 +460,11 @@ public final class Issues {
}
}
} 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_ & 0x00000020) == 0x00000020)) {
issues_ = java.util.Collections.unmodifiableList(issues_);
@@ -497,21 +503,6 @@ public final class Issues {
org.sonarqube.ws.Issues.Search.class, org.sonarqube.ws.Issues.Search.Builder.class);
}
- public static com.google.protobuf.Parser<Search> PARSER =
- new com.google.protobuf.AbstractParser<Search>() {
- public Search parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Search(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Search> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int TOTAL_FIELD_NUMBER = 1;
private long total_;
@@ -570,13 +561,13 @@ public final class Issues {
* <code>optional .sonarqube.ws.commons.Paging paging = 4;</code>
*/
public org.sonarqube.ws.Common.Paging getPaging() {
- return paging_;
+ return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
}
/**
* <code>optional .sonarqube.ws.commons.Paging paging = 4;</code>
*/
public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
- return paging_;
+ return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
}
public static final int DEBTTOTAL_FIELD_NUMBER = 5;
@@ -922,25 +913,6 @@ public final class Issues {
return facets_.get(index);
}
- private void initFields() {
- total_ = 0L;
- p_ = 0L;
- ps_ = 0;
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
- debtTotal_ = 0L;
- issues_ = java.util.Collections.emptyList();
- components_ = java.util.Collections.emptyList();
- rulesPresentIfEmpty_ = false;
- rules_ = java.util.Collections.emptyList();
- usersPresentIfEmpty_ = false;
- users_ = java.util.Collections.emptyList();
- actionPlansPresentIfEmpty_ = false;
- actionPlans_ = java.util.Collections.emptyList();
- languagesPresentIfEmpty_ = false;
- languages_ = java.util.Collections.emptyList();
- facetsPresentIfEmpty_ = false;
- facets_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -953,7 +925,6 @@ public final class Issues {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, total_);
}
@@ -964,7 +935,7 @@ public final class Issues {
output.writeInt32(3, ps_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeMessage(4, paging_);
+ output.writeMessage(4, getPaging());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt64(5, debtTotal_);
@@ -1005,7 +976,7 @@ public final class Issues {
for (int i = 0; i < facets_.size(); i++) {
output.writeMessage(17, facets_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -1028,7 +999,7 @@ public final class Issues {
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, paging_);
+ .computeMessageSize(4, getPaging());
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
@@ -1082,18 +1053,12 @@ public final class Issues {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, facets_.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.Issues.Search parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1147,12 +1112,17 @@ public final class Issues {
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.Issues.Search 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(
@@ -1205,10 +1175,6 @@ public final class Issues {
getFacetsFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
total_ = 0L;
@@ -1218,7 +1184,7 @@ public final class Issues {
ps_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
if (pagingBuilder_ == null) {
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ paging_ = null;
} else {
pagingBuilder_.clear();
}
@@ -1280,10 +1246,6 @@ public final class Issues {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Search_descriptor;
@@ -1640,7 +1602,8 @@ public final class Issues {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -1763,7 +1726,7 @@ public final class Issues {
return this;
}
- private org.sonarqube.ws.Common.Paging paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ private org.sonarqube.ws.Common.Paging paging_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_;
/**
@@ -1777,7 +1740,7 @@ public final class Issues {
*/
public org.sonarqube.ws.Common.Paging getPaging() {
if (pagingBuilder_ == null) {
- return paging_;
+ return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
} else {
return pagingBuilder_.getMessage();
}
@@ -1818,6 +1781,7 @@ public final class Issues {
public Builder mergePaging(org.sonarqube.ws.Common.Paging value) {
if (pagingBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
+ paging_ != null &&
paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) {
paging_ =
org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial();
@@ -1836,7 +1800,7 @@ public final class Issues {
*/
public Builder clearPaging() {
if (pagingBuilder_ == null) {
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ paging_ = null;
onChanged();
} else {
pagingBuilder_.clear();
@@ -1859,7 +1823,8 @@ public final class Issues {
if (pagingBuilder_ != null) {
return pagingBuilder_.getMessageOrBuilder();
} else {
- return paging_;
+ return paging_ == null ?
+ org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
}
}
/**
@@ -3770,12 +3735,44 @@ public final class Issues {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Search)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Search)
+ private static final org.sonarqube.ws.Issues.Search DEFAULT_INSTANCE;
static {
- defaultInstance = new Search(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Search();
+ }
+
+ public static org.sonarqube.ws.Issues.Search getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Search> PARSER =
+ new com.google.protobuf.AbstractParser<Search>() {
+ public Search parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Search(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Search> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Issues.Search getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Search)
}
public interface OperationOrBuilder extends
@@ -3898,37 +3895,30 @@ public final class Issues {
* Response of most of POST/issues/{operation}, for instance assign, add_comment and set_severity
* </pre>
*/
- public static final class Operation extends
+ public static final class Operation extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Operation)
OperationOrBuilder {
// Use Operation.newBuilder() to construct.
- private Operation(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Operation(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Operation(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Operation defaultInstance;
- public static Operation getDefaultInstance() {
- return defaultInstance;
- }
-
- public Operation getDefaultInstanceForType() {
- return defaultInstance;
+ private Operation() {
+ components_ = java.util.Collections.emptyList();
+ rules_ = java.util.Collections.emptyList();
+ users_ = java.util.Collections.emptyList();
+ actionPlans_ = 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 Operation(
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();
@@ -3995,10 +3985,11 @@ public final class Issues {
}
}
} 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_ & 0x00000002) == 0x00000002)) {
components_ = java.util.Collections.unmodifiableList(components_);
@@ -4028,21 +4019,6 @@ public final class Issues {
org.sonarqube.ws.Issues.Operation.class, org.sonarqube.ws.Issues.Operation.Builder.class);
}
- public static com.google.protobuf.Parser<Operation> PARSER =
- new com.google.protobuf.AbstractParser<Operation>() {
- public Operation parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Operation(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Operation> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int ISSUE_FIELD_NUMBER = 1;
private org.sonarqube.ws.Issues.Issue issue_;
@@ -4056,13 +4032,13 @@ public final class Issues {
* <code>optional .sonarqube.ws.issues.Issue issue = 1;</code>
*/
public org.sonarqube.ws.Issues.Issue getIssue() {
- return issue_;
+ return issue_ == null ? org.sonarqube.ws.Issues.Issue.getDefaultInstance() : issue_;
}
/**
* <code>optional .sonarqube.ws.issues.Issue issue = 1;</code>
*/
public org.sonarqube.ws.Issues.IssueOrBuilder getIssueOrBuilder() {
- return issue_;
+ return issue_ == null ? org.sonarqube.ws.Issues.Issue.getDefaultInstance() : issue_;
}
public static final int COMPONENTS_FIELD_NUMBER = 2;
@@ -4205,13 +4181,6 @@ public final class Issues {
return actionPlans_.get(index);
}
- private void initFields() {
- issue_ = org.sonarqube.ws.Issues.Issue.getDefaultInstance();
- components_ = java.util.Collections.emptyList();
- rules_ = java.util.Collections.emptyList();
- users_ = java.util.Collections.emptyList();
- actionPlans_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -4224,9 +4193,8 @@ public final class Issues {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, issue_);
+ output.writeMessage(1, getIssue());
}
for (int i = 0; i < components_.size(); i++) {
output.writeMessage(2, components_.get(i));
@@ -4240,7 +4208,7 @@ public final class Issues {
for (int i = 0; i < actionPlans_.size(); i++) {
output.writeMessage(5, actionPlans_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -4251,7 +4219,7 @@ public final class Issues {
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, issue_);
+ .computeMessageSize(1, getIssue());
}
for (int i = 0; i < components_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
@@ -4269,18 +4237,12 @@ public final class Issues {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, actionPlans_.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.Issues.Operation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -4334,12 +4296,17 @@ public final class Issues {
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.Issues.Operation 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(
@@ -4389,14 +4356,10 @@ public final class Issues {
getActionPlansFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
if (issueBuilder_ == null) {
- issue_ = org.sonarqube.ws.Issues.Issue.getDefaultInstance();
+ issue_ = null;
} else {
issueBuilder_.clear();
}
@@ -4428,10 +4391,6 @@ public final class Issues {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Operation_descriptor;
@@ -4620,7 +4579,8 @@ public final class Issues {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -4647,7 +4607,7 @@ public final class Issues {
}
private int bitField0_;
- private org.sonarqube.ws.Issues.Issue issue_ = org.sonarqube.ws.Issues.Issue.getDefaultInstance();
+ private org.sonarqube.ws.Issues.Issue issue_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.Issues.Issue, org.sonarqube.ws.Issues.Issue.Builder, org.sonarqube.ws.Issues.IssueOrBuilder> issueBuilder_;
/**
@@ -4661,7 +4621,7 @@ public final class Issues {
*/
public org.sonarqube.ws.Issues.Issue getIssue() {
if (issueBuilder_ == null) {
- return issue_;
+ return issue_ == null ? org.sonarqube.ws.Issues.Issue.getDefaultInstance() : issue_;
} else {
return issueBuilder_.getMessage();
}
@@ -4702,6 +4662,7 @@ public final class Issues {
public Builder mergeIssue(org.sonarqube.ws.Issues.Issue value) {
if (issueBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ issue_ != null &&
issue_ != org.sonarqube.ws.Issues.Issue.getDefaultInstance()) {
issue_ =
org.sonarqube.ws.Issues.Issue.newBuilder(issue_).mergeFrom(value).buildPartial();
@@ -4720,7 +4681,7 @@ public final class Issues {
*/
public Builder clearIssue() {
if (issueBuilder_ == null) {
- issue_ = org.sonarqube.ws.Issues.Issue.getDefaultInstance();
+ issue_ = null;
onChanged();
} else {
issueBuilder_.clear();
@@ -4743,7 +4704,8 @@ public final class Issues {
if (issueBuilder_ != null) {
return issueBuilder_.getMessageOrBuilder();
} else {
- return issue_;
+ return issue_ == null ?
+ org.sonarqube.ws.Issues.Issue.getDefaultInstance() : issue_;
}
}
/**
@@ -5726,12 +5688,44 @@ public final class Issues {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Operation)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Operation)
+ private static final org.sonarqube.ws.Issues.Operation DEFAULT_INSTANCE;
static {
- defaultInstance = new Operation(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Operation();
+ }
+
+ public static org.sonarqube.ws.Issues.Operation getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Operation> PARSER =
+ new com.google.protobuf.AbstractParser<Operation>() {
+ public Operation parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Operation(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Operation> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Issues.Operation getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Operation)
}
public interface IssueOrBuilder extends
@@ -6188,37 +6182,55 @@ public final class Issues {
/**
* Protobuf type {@code sonarqube.ws.issues.Issue}
*/
- public static final class Issue extends
+ public static final class Issue extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Issue)
IssueOrBuilder {
// Use Issue.newBuilder() to construct.
- private Issue(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Issue(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Issue(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Issue defaultInstance;
- public static Issue getDefaultInstance() {
- return defaultInstance;
- }
-
- public Issue getDefaultInstanceForType() {
- return defaultInstance;
+ private Issue() {
+ key_ = "";
+ rule_ = "";
+ severity_ = 0;
+ component_ = "";
+ componentId_ = 0L;
+ project_ = "";
+ subProject_ = "";
+ line_ = 0;
+ flows_ = java.util.Collections.emptyList();
+ resolution_ = "";
+ status_ = "";
+ message_ = "";
+ debt_ = "";
+ assignee_ = "";
+ reporter_ = "";
+ author_ = "";
+ actionPlan_ = "";
+ tagsPresentIfEmpty_ = false;
+ tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ transitionsPresentIfEmpty_ = false;
+ transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ actionsPresentIfEmpty_ = false;
+ actions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ commentsPresentIfEmpty_ = false;
+ comments_ = java.util.Collections.emptyList();
+ creationDate_ = "";
+ updateDate_ = "";
+ fUpdateAge_ = "";
+ closeDate_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Issue(
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();
@@ -6256,7 +6268,7 @@ public final class Issues {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
- severity_ = value;
+ severity_ = rawValue;
}
break;
}
@@ -6439,10 +6451,11 @@ public final class Issues {
}
}
} 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_ & 0x00000200) == 0x00000200)) {
flows_ = java.util.Collections.unmodifiableList(flows_);
@@ -6475,24 +6488,9 @@ public final class Issues {
org.sonarqube.ws.Issues.Issue.class, org.sonarqube.ws.Issues.Issue.Builder.class);
}
- public static com.google.protobuf.Parser<Issue> PARSER =
- new com.google.protobuf.AbstractParser<Issue>() {
- public Issue parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Issue(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Issue> 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>
*/
@@ -6534,7 +6532,7 @@ public final class Issues {
}
public static final int RULE_FIELD_NUMBER = 2;
- private java.lang.Object rule_;
+ private volatile java.lang.Object rule_;
/**
* <code>optional string rule = 2;</code>
*/
@@ -6576,7 +6574,7 @@ public final class Issues {
}
public static final int SEVERITY_FIELD_NUMBER = 3;
- private org.sonarqube.ws.Common.Severity severity_;
+ private int severity_;
/**
* <code>optional .sonarqube.ws.commons.Severity severity = 3;</code>
*/
@@ -6587,11 +6585,12 @@ public final class Issues {
* <code>optional .sonarqube.ws.commons.Severity severity = 3;</code>
*/
public org.sonarqube.ws.Common.Severity getSeverity() {
- return severity_;
+ org.sonarqube.ws.Common.Severity result = org.sonarqube.ws.Common.Severity.valueOf(severity_);
+ return result == null ? org.sonarqube.ws.Common.Severity.INFO : result;
}
public static final int COMPONENT_FIELD_NUMBER = 4;
- private java.lang.Object component_;
+ private volatile java.lang.Object component_;
/**
* <code>optional string component = 4;</code>
*/
@@ -6648,7 +6647,7 @@ public final class Issues {
}
public static final int PROJECT_FIELD_NUMBER = 6;
- private java.lang.Object project_;
+ private volatile java.lang.Object project_;
/**
* <code>optional string project = 6;</code>
*/
@@ -6690,7 +6689,7 @@ public final class Issues {
}
public static final int SUBPROJECT_FIELD_NUMBER = 7;
- private java.lang.Object subProject_;
+ private volatile java.lang.Object subProject_;
/**
* <code>optional string subProject = 7;</code>
*/
@@ -6758,13 +6757,13 @@ public final class Issues {
* <code>optional .sonarqube.ws.commons.TextRange textRange = 9;</code>
*/
public org.sonarqube.ws.Common.TextRange getTextRange() {
- return textRange_;
+ return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_;
}
/**
* <code>optional .sonarqube.ws.commons.TextRange textRange = 9;</code>
*/
public org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder() {
- return textRange_;
+ return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_;
}
public static final int FLOWS_FIELD_NUMBER = 10;
@@ -6803,7 +6802,7 @@ public final class Issues {
}
public static final int RESOLUTION_FIELD_NUMBER = 11;
- private java.lang.Object resolution_;
+ private volatile java.lang.Object resolution_;
/**
* <code>optional string resolution = 11;</code>
*/
@@ -6845,7 +6844,7 @@ public final class Issues {
}
public static final int STATUS_FIELD_NUMBER = 12;
- private java.lang.Object status_;
+ private volatile java.lang.Object status_;
/**
* <code>optional string status = 12;</code>
*/
@@ -6887,7 +6886,7 @@ public final class Issues {
}
public static final int MESSAGE_FIELD_NUMBER = 13;
- private java.lang.Object message_;
+ private volatile java.lang.Object message_;
/**
* <code>optional string message = 13;</code>
*/
@@ -6929,7 +6928,7 @@ public final class Issues {
}
public static final int DEBT_FIELD_NUMBER = 14;
- private java.lang.Object debt_;
+ private volatile java.lang.Object debt_;
/**
* <code>optional string debt = 14;</code>
*/
@@ -6971,7 +6970,7 @@ public final class Issues {
}
public static final int ASSIGNEE_FIELD_NUMBER = 15;
- private java.lang.Object assignee_;
+ private volatile java.lang.Object assignee_;
/**
* <code>optional string assignee = 15;</code>
*/
@@ -7013,7 +7012,7 @@ public final class Issues {
}
public static final int REPORTER_FIELD_NUMBER = 16;
- private java.lang.Object reporter_;
+ private volatile java.lang.Object reporter_;
/**
* <code>optional string reporter = 16;</code>
*/
@@ -7055,7 +7054,7 @@ public final class Issues {
}
public static final int AUTHOR_FIELD_NUMBER = 17;
- private java.lang.Object author_;
+ private volatile java.lang.Object author_;
/**
* <code>optional string author = 17;</code>
*
@@ -7109,7 +7108,7 @@ public final class Issues {
}
public static final int ACTIONPLAN_FIELD_NUMBER = 18;
- private java.lang.Object actionPlan_;
+ private volatile java.lang.Object actionPlan_;
/**
* <code>optional string actionPlan = 18;</code>
*/
@@ -7349,7 +7348,7 @@ public final class Issues {
}
public static final int CREATIONDATE_FIELD_NUMBER = 27;
- private java.lang.Object creationDate_;
+ private volatile java.lang.Object creationDate_;
/**
* <code>optional string creationDate = 27;</code>
*/
@@ -7391,7 +7390,7 @@ public final class Issues {
}
public static final int UPDATEDATE_FIELD_NUMBER = 28;
- private java.lang.Object updateDate_;
+ private volatile java.lang.Object updateDate_;
/**
* <code>optional string updateDate = 28;</code>
*/
@@ -7433,7 +7432,7 @@ public final class Issues {
}
public static final int FUPDATEAGE_FIELD_NUMBER = 29;
- private java.lang.Object fUpdateAge_;
+ private volatile java.lang.Object fUpdateAge_;
/**
* <code>optional string fUpdateAge = 29;</code>
*/
@@ -7475,7 +7474,7 @@ public final class Issues {
}
public static final int CLOSEDATE_FIELD_NUMBER = 30;
- private java.lang.Object closeDate_;
+ private volatile java.lang.Object closeDate_;
/**
* <code>optional string closeDate = 30;</code>
*/
@@ -7516,38 +7515,6 @@ public final class Issues {
}
}
- private void initFields() {
- key_ = "";
- rule_ = "";
- severity_ = org.sonarqube.ws.Common.Severity.INFO;
- component_ = "";
- componentId_ = 0L;
- project_ = "";
- subProject_ = "";
- line_ = 0;
- textRange_ = org.sonarqube.ws.Common.TextRange.getDefaultInstance();
- flows_ = java.util.Collections.emptyList();
- resolution_ = "";
- status_ = "";
- message_ = "";
- debt_ = "";
- assignee_ = "";
- reporter_ = "";
- author_ = "";
- actionPlan_ = "";
- tagsPresentIfEmpty_ = false;
- tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- transitionsPresentIfEmpty_ = false;
- transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- actionsPresentIfEmpty_ = false;
- actions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- commentsPresentIfEmpty_ = false;
- comments_ = java.util.Collections.emptyList();
- creationDate_ = "";
- updateDate_ = "";
- fUpdateAge_ = "";
- closeDate_ = "";
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -7560,7 +7527,6 @@ public final class Issues {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getKeyBytes());
}
@@ -7568,7 +7534,7 @@ public final class Issues {
output.writeBytes(2, getRuleBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeEnum(3, severity_.getNumber());
+ output.writeEnum(3, severity_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getComponentBytes());
@@ -7586,7 +7552,7 @@ public final class Issues {
output.writeInt32(8, line_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
- output.writeMessage(9, textRange_);
+ output.writeMessage(9, getTextRange());
}
for (int i = 0; i < flows_.size(); i++) {
output.writeMessage(10, flows_.get(i));
@@ -7651,7 +7617,7 @@ public final class Issues {
if (((bitField0_ & 0x01000000) == 0x01000000)) {
output.writeBytes(30, getCloseDateBytes());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -7670,7 +7636,7 @@ public final class Issues {
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(3, severity_.getNumber());
+ .computeEnumSize(3, severity_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
@@ -7694,7 +7660,7 @@ public final class Issues {
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(9, textRange_);
+ .computeMessageSize(9, getTextRange());
}
for (int i = 0; i < flows_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
@@ -7795,18 +7761,12 @@ public final class Issues {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(30, getCloseDateBytes());
}
- 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.Issues.Issue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -7860,12 +7820,17 @@ public final class Issues {
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.Issues.Issue 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(
@@ -7909,17 +7874,13 @@ public final class Issues {
getCommentsFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
key_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
rule_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
- severity_ = org.sonarqube.ws.Common.Severity.INFO;
+ severity_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
component_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
@@ -7932,7 +7893,7 @@ public final class Issues {
line_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
if (textRangeBuilder_ == null) {
- textRange_ = org.sonarqube.ws.Common.TextRange.getDefaultInstance();
+ textRange_ = null;
} else {
textRangeBuilder_.clear();
}
@@ -7990,10 +7951,6 @@ public final class Issues {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Issue_descriptor;
@@ -8359,7 +8316,8 @@ public final class Issues {
closeDate_ = other.closeDate_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -8538,7 +8496,7 @@ public final class Issues {
return this;
}
- private org.sonarqube.ws.Common.Severity severity_ = org.sonarqube.ws.Common.Severity.INFO;
+ private int severity_ = 0;
/**
* <code>optional .sonarqube.ws.commons.Severity severity = 3;</code>
*/
@@ -8549,7 +8507,8 @@ public final class Issues {
* <code>optional .sonarqube.ws.commons.Severity severity = 3;</code>
*/
public org.sonarqube.ws.Common.Severity getSeverity() {
- return severity_;
+ org.sonarqube.ws.Common.Severity result = org.sonarqube.ws.Common.Severity.valueOf(severity_);
+ return result == null ? org.sonarqube.ws.Common.Severity.INFO : result;
}
/**
* <code>optional .sonarqube.ws.commons.Severity severity = 3;</code>
@@ -8559,7 +8518,7 @@ public final class Issues {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
- severity_ = value;
+ severity_ = value.getNumber();
onChanged();
return this;
}
@@ -8568,7 +8527,7 @@ public final class Issues {
*/
public Builder clearSeverity() {
bitField0_ = (bitField0_ & ~0x00000004);
- severity_ = org.sonarqube.ws.Common.Severity.INFO;
+ severity_ = 0;
onChanged();
return this;
}
@@ -8865,7 +8824,7 @@ public final class Issues {
return this;
}
- private org.sonarqube.ws.Common.TextRange textRange_ = org.sonarqube.ws.Common.TextRange.getDefaultInstance();
+ private org.sonarqube.ws.Common.TextRange textRange_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder> textRangeBuilder_;
/**
@@ -8879,7 +8838,7 @@ public final class Issues {
*/
public org.sonarqube.ws.Common.TextRange getTextRange() {
if (textRangeBuilder_ == null) {
- return textRange_;
+ return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_;
} else {
return textRangeBuilder_.getMessage();
}
@@ -8920,6 +8879,7 @@ public final class Issues {
public Builder mergeTextRange(org.sonarqube.ws.Common.TextRange value) {
if (textRangeBuilder_ == null) {
if (((bitField0_ & 0x00000100) == 0x00000100) &&
+ textRange_ != null &&
textRange_ != org.sonarqube.ws.Common.TextRange.getDefaultInstance()) {
textRange_ =
org.sonarqube.ws.Common.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial();
@@ -8938,7 +8898,7 @@ public final class Issues {
*/
public Builder clearTextRange() {
if (textRangeBuilder_ == null) {
- textRange_ = org.sonarqube.ws.Common.TextRange.getDefaultInstance();
+ textRange_ = null;
onChanged();
} else {
textRangeBuilder_.clear();
@@ -8961,7 +8921,8 @@ public final class Issues {
if (textRangeBuilder_ != null) {
return textRangeBuilder_.getMessageOrBuilder();
} else {
- return textRange_;
+ return textRange_ == null ?
+ org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_;
}
}
/**
@@ -10839,12 +10800,44 @@ public final class Issues {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Issue)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Issue)
+ private static final org.sonarqube.ws.Issues.Issue DEFAULT_INSTANCE;
static {
- defaultInstance = new Issue(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Issue();
+ }
+
+ public static org.sonarqube.ws.Issues.Issue getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Issue> PARSER =
+ new com.google.protobuf.AbstractParser<Issue>() {
+ public Issue parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Issue(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Issue> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Issues.Issue getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Issue)
}
public interface FlowOrBuilder extends
@@ -10878,37 +10871,27 @@ public final class Issues {
/**
* Protobuf type {@code sonarqube.ws.issues.Flow}
*/
- public static final class Flow extends
+ public static final class Flow extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Flow)
FlowOrBuilder {
// Use Flow.newBuilder() to construct.
- private Flow(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Flow(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Flow(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Flow defaultInstance;
- public static Flow getDefaultInstance() {
- return defaultInstance;
- }
-
- public Flow getDefaultInstanceForType() {
- return defaultInstance;
+ private Flow() {
+ locations_ = 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 Flow(
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();
@@ -10938,10 +10921,11 @@ public final class Issues {
}
}
} 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)) {
locations_ = java.util.Collections.unmodifiableList(locations_);
@@ -10962,21 +10946,6 @@ public final class Issues {
org.sonarqube.ws.Issues.Flow.class, org.sonarqube.ws.Issues.Flow.Builder.class);
}
- public static com.google.protobuf.Parser<Flow> PARSER =
- new com.google.protobuf.AbstractParser<Flow>() {
- public Flow parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Flow(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Flow> getParserForType() {
- return PARSER;
- }
-
public static final int LOCATIONS_FIELD_NUMBER = 1;
private java.util.List<org.sonarqube.ws.Issues.Location> locations_;
/**
@@ -11012,9 +10981,6 @@ public final class Issues {
return locations_.get(index);
}
- private void initFields() {
- locations_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -11027,11 +10993,10 @@ public final class Issues {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < locations_.size(); i++) {
output.writeMessage(1, locations_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -11044,18 +11009,12 @@ public final class Issues {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, locations_.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.Issues.Flow parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -11109,12 +11068,17 @@ public final class Issues {
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.Issues.Flow 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(
@@ -11156,10 +11120,6 @@ public final class Issues {
getLocationsFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
if (locationsBuilder_ == null) {
@@ -11171,10 +11131,6 @@ public final class Issues {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Flow_descriptor;
@@ -11245,7 +11201,8 @@ public final class Issues {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -11515,12 +11472,44 @@ public final class Issues {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Flow)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Flow)
+ private static final org.sonarqube.ws.Issues.Flow DEFAULT_INSTANCE;
static {
- defaultInstance = new Flow(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Flow();
+ }
+
+ public static org.sonarqube.ws.Issues.Flow getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Flow> PARSER =
+ new com.google.protobuf.AbstractParser<Flow>() {
+ public Flow parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Flow(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Flow> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Issues.Flow getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Flow)
}
public interface LocationOrBuilder extends
@@ -11583,37 +11572,28 @@ public final class Issues {
/**
* Protobuf type {@code sonarqube.ws.issues.Location}
*/
- public static final class Location extends
+ public static final class Location extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Location)
LocationOrBuilder {
// Use Location.newBuilder() to construct.
- private Location(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Location(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Location(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Location defaultInstance;
- public static Location getDefaultInstance() {
- return defaultInstance;
}
-
- public Location getDefaultInstanceForType() {
- return defaultInstance;
+ private Location() {
+ componentId_ = "";
+ msg_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Location(
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();
@@ -11660,10 +11640,11 @@ public final class Issues {
}
}
} 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();
@@ -11681,24 +11662,9 @@ public final class Issues {
org.sonarqube.ws.Issues.Location.class, org.sonarqube.ws.Issues.Location.Builder.class);
}
- public static com.google.protobuf.Parser<Location> PARSER =
- new com.google.protobuf.AbstractParser<Location>() {
- public Location parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Location(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Location> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int COMPONENTID_FIELD_NUMBER = 1;
- private java.lang.Object componentId_;
+ private volatile java.lang.Object componentId_;
/**
* <code>optional string componentId = 1;</code>
*/
@@ -11759,7 +11725,7 @@ public final class Issues {
* </pre>
*/
public org.sonarqube.ws.Common.TextRange getTextRange() {
- return textRange_;
+ return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_;
}
/**
* <code>optional .sonarqube.ws.commons.TextRange textRange = 2;</code>
@@ -11769,11 +11735,11 @@ public final class Issues {
* </pre>
*/
public org.sonarqube.ws.Common.TextRangeOrBuilder getTextRangeOrBuilder() {
- return textRange_;
+ return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_;
}
public static final int MSG_FIELD_NUMBER = 3;
- private java.lang.Object msg_;
+ private volatile java.lang.Object msg_;
/**
* <code>optional string msg = 3;</code>
*/
@@ -11814,11 +11780,6 @@ public final class Issues {
}
}
- private void initFields() {
- componentId_ = "";
- textRange_ = org.sonarqube.ws.Common.TextRange.getDefaultInstance();
- msg_ = "";
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -11831,17 +11792,16 @@ public final class Issues {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getComponentIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, textRange_);
+ output.writeMessage(2, getTextRange());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getMsgBytes());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -11856,24 +11816,18 @@ public final class Issues {
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, textRange_);
+ .computeMessageSize(2, getTextRange());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getMsgBytes());
}
- 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.Issues.Location parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -11927,12 +11881,17 @@ public final class Issues {
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.Issues.Location 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(
@@ -11974,16 +11933,12 @@ public final class Issues {
getTextRangeFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
componentId_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (textRangeBuilder_ == null) {
- textRange_ = org.sonarqube.ws.Common.TextRange.getDefaultInstance();
+ textRange_ = null;
} else {
textRangeBuilder_.clear();
}
@@ -11993,10 +11948,6 @@ public final class Issues {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Location_descriptor;
@@ -12063,7 +12014,8 @@ public final class Issues {
msg_ = other.msg_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -12166,7 +12118,7 @@ public final class Issues {
return this;
}
- private org.sonarqube.ws.Common.TextRange textRange_ = org.sonarqube.ws.Common.TextRange.getDefaultInstance();
+ private org.sonarqube.ws.Common.TextRange textRange_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.Common.TextRange, org.sonarqube.ws.Common.TextRange.Builder, org.sonarqube.ws.Common.TextRangeOrBuilder> textRangeBuilder_;
/**
@@ -12188,7 +12140,7 @@ public final class Issues {
*/
public org.sonarqube.ws.Common.TextRange getTextRange() {
if (textRangeBuilder_ == null) {
- return textRange_;
+ return textRange_ == null ? org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_;
} else {
return textRangeBuilder_.getMessage();
}
@@ -12241,6 +12193,7 @@ public final class Issues {
public Builder mergeTextRange(org.sonarqube.ws.Common.TextRange value) {
if (textRangeBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
+ textRange_ != null &&
textRange_ != org.sonarqube.ws.Common.TextRange.getDefaultInstance()) {
textRange_ =
org.sonarqube.ws.Common.TextRange.newBuilder(textRange_).mergeFrom(value).buildPartial();
@@ -12263,7 +12216,7 @@ public final class Issues {
*/
public Builder clearTextRange() {
if (textRangeBuilder_ == null) {
- textRange_ = org.sonarqube.ws.Common.TextRange.getDefaultInstance();
+ textRange_ = null;
onChanged();
} else {
textRangeBuilder_.clear();
@@ -12294,7 +12247,8 @@ public final class Issues {
if (textRangeBuilder_ != null) {
return textRangeBuilder_.getMessageOrBuilder();
} else {
- return textRange_;
+ return textRange_ == null ?
+ org.sonarqube.ws.Common.TextRange.getDefaultInstance() : textRange_;
}
}
/**
@@ -12397,12 +12351,44 @@ public final class Issues {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Location)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Location)
+ private static final org.sonarqube.ws.Issues.Location DEFAULT_INSTANCE;
static {
- defaultInstance = new Location(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Location();
+ }
+
+ public static org.sonarqube.ws.Issues.Location getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Location> PARSER =
+ new com.google.protobuf.AbstractParser<Location>() {
+ public Location parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Location(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Location> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Issues.Location getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Location)
}
public interface CommentOrBuilder extends
@@ -12555,37 +12541,34 @@ public final class Issues {
/**
* Protobuf type {@code sonarqube.ws.issues.Comment}
*/
- public static final class Comment extends
+ public static final class Comment extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Comment)
CommentOrBuilder {
// Use Comment.newBuilder() to construct.
- private Comment(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Comment(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Comment(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Comment defaultInstance;
- public static Comment getDefaultInstance() {
- return defaultInstance;
}
-
- public Comment getDefaultInstanceForType() {
- return defaultInstance;
+ private Comment() {
+ key_ = "";
+ login_ = "";
+ email_ = "";
+ userName_ = "";
+ htmlText_ = "";
+ markdown_ = "";
+ updatable_ = false;
+ createdAt_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Comment(
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();
@@ -12654,10 +12637,11 @@ public final class Issues {
}
}
} 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();
@@ -12675,24 +12659,9 @@ public final class Issues {
org.sonarqube.ws.Issues.Comment.class, org.sonarqube.ws.Issues.Comment.Builder.class);
}
- public static com.google.protobuf.Parser<Comment> PARSER =
- new com.google.protobuf.AbstractParser<Comment>() {
- public Comment parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Comment(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Comment> 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>
*/
@@ -12734,7 +12703,7 @@ public final class Issues {
}
public static final int LOGIN_FIELD_NUMBER = 2;
- private java.lang.Object login_;
+ private volatile java.lang.Object login_;
/**
* <code>optional string login = 2;</code>
*/
@@ -12776,7 +12745,7 @@ public final class Issues {
}
public static final int EMAIL_FIELD_NUMBER = 3;
- private java.lang.Object email_;
+ private volatile java.lang.Object email_;
/**
* <code>optional string email = 3;</code>
*
@@ -12830,7 +12799,7 @@ public final class Issues {
}
public static final int USERNAME_FIELD_NUMBER = 4;
- private java.lang.Object userName_;
+ private volatile java.lang.Object userName_;
/**
* <code>optional string userName = 4;</code>
*
@@ -12884,7 +12853,7 @@ public final class Issues {
}
public static final int HTMLTEXT_FIELD_NUMBER = 5;
- private java.lang.Object htmlText_;
+ private volatile java.lang.Object htmlText_;
/**
* <code>optional string htmlText = 5;</code>
*/
@@ -12926,7 +12895,7 @@ public final class Issues {
}
public static final int MARKDOWN_FIELD_NUMBER = 6;
- private java.lang.Object markdown_;
+ private volatile java.lang.Object markdown_;
/**
* <code>optional string markdown = 6;</code>
*
@@ -12995,7 +12964,7 @@ public final class Issues {
}
public static final int CREATEDAT_FIELD_NUMBER = 8;
- private java.lang.Object createdAt_;
+ private volatile java.lang.Object createdAt_;
/**
* <code>optional string createdAt = 8;</code>
*/
@@ -13036,16 +13005,6 @@ public final class Issues {
}
}
- private void initFields() {
- key_ = "";
- login_ = "";
- email_ = "";
- userName_ = "";
- htmlText_ = "";
- markdown_ = "";
- updatable_ = false;
- createdAt_ = "";
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -13058,7 +13017,6 @@ public final class Issues {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getKeyBytes());
}
@@ -13083,7 +13041,7 @@ public final class Issues {
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeBytes(8, getCreatedAtBytes());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -13124,18 +13082,12 @@ public final class Issues {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(8, getCreatedAtBytes());
}
- 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.Issues.Comment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -13189,12 +13141,17 @@ public final class Issues {
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.Issues.Comment 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(
@@ -13235,10 +13192,6 @@ public final class Issues {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
key_ = "";
@@ -13260,10 +13213,6 @@ public final class Issues {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comment_descriptor;
@@ -13371,7 +13320,8 @@ public final class Issues {
createdAt_ = other.createdAt_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -14037,12 +13987,44 @@ public final class Issues {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Comment)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Comment)
+ private static final org.sonarqube.ws.Issues.Comment DEFAULT_INSTANCE;
static {
- defaultInstance = new Comment(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Comment();
+ }
+
+ public static org.sonarqube.ws.Issues.Comment getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Comment> PARSER =
+ new com.google.protobuf.AbstractParser<Comment>() {
+ public Comment parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Comment(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Comment> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Issues.Comment getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Comment)
}
public interface ActionPlanOrBuilder extends
@@ -14146,37 +14128,31 @@ public final class Issues {
/**
* Protobuf type {@code sonarqube.ws.issues.ActionPlan}
*/
- public static final class ActionPlan extends
+ public static final class ActionPlan extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.issues.ActionPlan)
ActionPlanOrBuilder {
// Use ActionPlan.newBuilder() to construct.
- private ActionPlan(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ActionPlan(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private ActionPlan(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ActionPlan defaultInstance;
- public static ActionPlan getDefaultInstance() {
- return defaultInstance;
}
-
- public ActionPlan getDefaultInstanceForType() {
- return defaultInstance;
+ private ActionPlan() {
+ key_ = "";
+ name_ = "";
+ status_ = "";
+ deadLine_ = "";
+ project_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private ActionPlan(
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();
@@ -14228,10 +14204,11 @@ public final class Issues {
}
}
} 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();
@@ -14249,24 +14226,9 @@ public final class Issues {
org.sonarqube.ws.Issues.ActionPlan.class, org.sonarqube.ws.Issues.ActionPlan.Builder.class);
}
- public static com.google.protobuf.Parser<ActionPlan> PARSER =
- new com.google.protobuf.AbstractParser<ActionPlan>() {
- public ActionPlan parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new ActionPlan(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<ActionPlan> 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>
*/
@@ -14308,7 +14270,7 @@ public final class Issues {
}
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>
*/
@@ -14350,7 +14312,7 @@ public final class Issues {
}
public static final int STATUS_FIELD_NUMBER = 3;
- private java.lang.Object status_;
+ private volatile java.lang.Object status_;
/**
* <code>optional string status = 3;</code>
*
@@ -14404,7 +14366,7 @@ public final class Issues {
}
public static final int DEADLINE_FIELD_NUMBER = 4;
- private java.lang.Object deadLine_;
+ private volatile java.lang.Object deadLine_;
/**
* <code>optional string deadLine = 4;</code>
*/
@@ -14446,7 +14408,7 @@ public final class Issues {
}
public static final int PROJECT_FIELD_NUMBER = 5;
- private java.lang.Object project_;
+ private volatile java.lang.Object project_;
/**
* <code>optional string project = 5;</code>
*
@@ -14499,13 +14461,6 @@ public final class Issues {
}
}
- private void initFields() {
- key_ = "";
- name_ = "";
- status_ = "";
- deadLine_ = "";
- project_ = "";
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -14518,7 +14473,6 @@ public final class Issues {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getKeyBytes());
}
@@ -14534,7 +14488,7 @@ public final class Issues {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeBytes(5, getProjectBytes());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -14563,18 +14517,12 @@ public final class Issues {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(5, getProjectBytes());
}
- 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.Issues.ActionPlan parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -14628,12 +14576,17 @@ public final class Issues {
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.Issues.ActionPlan 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(
@@ -14674,10 +14627,6 @@ public final class Issues {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
key_ = "";
@@ -14693,10 +14642,6 @@ public final class Issues {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlan_descriptor;
@@ -14779,7 +14724,8 @@ public final class Issues {
project_ = other.project_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -15237,12 +15183,44 @@ public final class Issues {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.ActionPlan)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.ActionPlan)
+ private static final org.sonarqube.ws.Issues.ActionPlan DEFAULT_INSTANCE;
static {
- defaultInstance = new ActionPlan(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.ActionPlan();
+ }
+
+ public static org.sonarqube.ws.Issues.ActionPlan getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<ActionPlan> PARSER =
+ new com.google.protobuf.AbstractParser<ActionPlan>() {
+ public ActionPlan parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new ActionPlan(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<ActionPlan> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Issues.ActionPlan getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.ActionPlan)
}
public interface LanguageOrBuilder extends
@@ -15280,37 +15258,28 @@ public final class Issues {
/**
* Protobuf type {@code sonarqube.ws.issues.Language}
*/
- public static final class Language extends
+ public static final class Language extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Language)
LanguageOrBuilder {
// Use Language.newBuilder() to construct.
- private Language(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Language(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Language(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Language defaultInstance;
- public static Language getDefaultInstance() {
- return defaultInstance;
}
-
- public Language getDefaultInstanceForType() {
- return defaultInstance;
+ private Language() {
+ key_ = "";
+ name_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Language(
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();
@@ -15344,10 +15313,11 @@ public final class Issues {
}
}
} 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();
@@ -15365,24 +15335,9 @@ public final class Issues {
org.sonarqube.ws.Issues.Language.class, org.sonarqube.ws.Issues.Language.Builder.class);
}
- public static com.google.protobuf.Parser<Language> PARSER =
- new com.google.protobuf.AbstractParser<Language>() {
- public Language parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Language(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Language> 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>
*/
@@ -15424,7 +15379,7 @@ public final class Issues {
}
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>
*/
@@ -15465,10 +15420,6 @@ public final class Issues {
}
}
- private void initFields() {
- key_ = "";
- name_ = "";
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -15481,14 +15432,13 @@ public final class Issues {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getKeyBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getNameBytes());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -15505,18 +15455,12 @@ public final class Issues {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getNameBytes());
}
- 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.Issues.Language parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -15570,12 +15514,17 @@ public final class Issues {
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.Issues.Language 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(
@@ -15616,10 +15565,6 @@ public final class Issues {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
key_ = "";
@@ -15629,10 +15574,6 @@ public final class Issues {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Language_descriptor;
@@ -15688,7 +15629,8 @@ public final class Issues {
name_ = other.name_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -15870,12 +15812,44 @@ public final class Issues {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Language)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Language)
+ private static final org.sonarqube.ws.Issues.Language DEFAULT_INSTANCE;
static {
- defaultInstance = new Language(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Language();
+ }
+
+ public static org.sonarqube.ws.Issues.Language getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Language> PARSER =
+ new com.google.protobuf.AbstractParser<Language>() {
+ public Language parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Language(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Language> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Issues.Language getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Language)
}
public interface ComponentOrBuilder extends
@@ -16005,37 +15979,36 @@ public final class Issues {
/**
* Protobuf type {@code sonarqube.ws.issues.Component}
*/
- public static final class Component extends
+ public static final class Component extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Component)
ComponentOrBuilder {
// Use Component.newBuilder() to construct.
- private Component(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Component(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Component(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Component defaultInstance;
- public static Component getDefaultInstance() {
- return defaultInstance;
}
-
- public Component getDefaultInstanceForType() {
- return defaultInstance;
+ private Component() {
+ id_ = 0L;
+ key_ = "";
+ uuid_ = "";
+ enabled_ = false;
+ qualifier_ = "";
+ name_ = "";
+ longName_ = "";
+ path_ = "";
+ projectId_ = 0L;
+ subProjectId_ = 0L;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Component(
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();
@@ -16113,10 +16086,11 @@ public final class Issues {
}
}
} 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();
@@ -16134,21 +16108,6 @@ public final class Issues {
org.sonarqube.ws.Issues.Component.class, org.sonarqube.ws.Issues.Component.Builder.class);
}
- public static com.google.protobuf.Parser<Component> PARSER =
- new com.google.protobuf.AbstractParser<Component>() {
- public Component parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Component(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Component> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private long id_;
@@ -16166,7 +16125,7 @@ public final class Issues {
}
public static final int KEY_FIELD_NUMBER = 2;
- private java.lang.Object key_;
+ private volatile java.lang.Object key_;
/**
* <code>optional string key = 2;</code>
*/
@@ -16208,7 +16167,7 @@ public final class Issues {
}
public static final int UUID_FIELD_NUMBER = 3;
- private java.lang.Object uuid_;
+ private volatile java.lang.Object uuid_;
/**
* <code>optional string uuid = 3;</code>
*/
@@ -16265,7 +16224,7 @@ public final class Issues {
}
public static final int QUALIFIER_FIELD_NUMBER = 5;
- private java.lang.Object qualifier_;
+ private volatile java.lang.Object qualifier_;
/**
* <code>optional string qualifier = 5;</code>
*/
@@ -16307,7 +16266,7 @@ public final class Issues {
}
public static final int NAME_FIELD_NUMBER = 6;
- private java.lang.Object name_;
+ private volatile java.lang.Object name_;
/**
* <code>optional string name = 6;</code>
*/
@@ -16349,7 +16308,7 @@ public final class Issues {
}
public static final int LONGNAME_FIELD_NUMBER = 7;
- private java.lang.Object longName_;
+ private volatile java.lang.Object longName_;
/**
* <code>optional string longName = 7;</code>
*/
@@ -16391,7 +16350,7 @@ public final class Issues {
}
public static final int PATH_FIELD_NUMBER = 8;
- private java.lang.Object path_;
+ private volatile java.lang.Object path_;
/**
* <code>optional string path = 8;</code>
*/
@@ -16462,18 +16421,6 @@ public final class Issues {
return subProjectId_;
}
- private void initFields() {
- id_ = 0L;
- key_ = "";
- uuid_ = "";
- enabled_ = false;
- qualifier_ = "";
- name_ = "";
- longName_ = "";
- path_ = "";
- projectId_ = 0L;
- subProjectId_ = 0L;
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -16486,7 +16433,6 @@ public final class Issues {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeInt64(1, id_);
}
@@ -16517,7 +16463,7 @@ public final class Issues {
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeInt64(10, subProjectId_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -16566,18 +16512,12 @@ public final class Issues {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(10, subProjectId_);
}
- 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.Issues.Component parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -16631,12 +16571,17 @@ public final class Issues {
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.Issues.Component 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(
@@ -16677,10 +16622,6 @@ public final class Issues {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
id_ = 0L;
@@ -16706,10 +16647,6 @@ public final class Issues {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Component_descriptor;
@@ -16829,7 +16766,8 @@ public final class Issues {
if (other.hasSubProjectId()) {
setSubProjectId(other.getSubProjectId());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -17443,55 +17381,87 @@ public final class Issues {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Component)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Component)
+ private static final org.sonarqube.ws.Issues.Component DEFAULT_INSTANCE;
static {
- defaultInstance = new Component(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Component();
+ }
+
+ public static org.sonarqube.ws.Issues.Component getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Component> PARSER =
+ new com.google.protobuf.AbstractParser<Component>() {
+ public Component parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Component(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Component> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Issues.Component getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Component)
}
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_issues_Search_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_issues_Search_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_issues_Operation_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_issues_Operation_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_issues_Issue_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_issues_Issue_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_issues_Flow_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_issues_Flow_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_issues_Location_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_issues_Location_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_issues_Comment_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_issues_Comment_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_issues_ActionPlan_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_issues_ActionPlan_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_issues_Language_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_issues_Language_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_issues_Component_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
diff --git a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Permissions.java b/sonar-ws/src/main/gen-java/org/sonarqube/ws/Permissions.java
index 2378caf9e5b..7564f76c760 100644
--- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Permissions.java
+++ b/sonar-ws/src/main/gen-java/org/sonarqube/ws/Permissions.java
@@ -56,37 +56,27 @@ public final class Permissions {
* WS api/permissions/users for internal use only
* </pre>
*/
- public static final class WsUsersResponse extends
+ public static final class WsUsersResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsUsersResponse)
WsUsersResponseOrBuilder {
// Use WsUsersResponse.newBuilder() to construct.
- private WsUsersResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private WsUsersResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private WsUsersResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final WsUsersResponse defaultInstance;
- public static WsUsersResponse getDefaultInstance() {
- return defaultInstance;
- }
-
- public WsUsersResponse getDefaultInstanceForType() {
- return defaultInstance;
+ private WsUsersResponse() {
+ users_ = 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 WsUsersResponse(
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();
@@ -129,10 +119,11 @@ public final class Permissions {
}
}
} 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_ & 0x00000002) == 0x00000002)) {
users_ = java.util.Collections.unmodifiableList(users_);
@@ -153,21 +144,6 @@ public final class Permissions {
org.sonarqube.ws.Permissions.WsUsersResponse.class, org.sonarqube.ws.Permissions.WsUsersResponse.Builder.class);
}
- public static com.google.protobuf.Parser<WsUsersResponse> PARSER =
- new com.google.protobuf.AbstractParser<WsUsersResponse>() {
- public WsUsersResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new WsUsersResponse(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<WsUsersResponse> getParserForType() {
- return PARSER;
- }
-
public interface UserOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsUsersResponse.User)
com.google.protobuf.MessageOrBuilder {
@@ -226,37 +202,30 @@ public final class Permissions {
/**
* Protobuf type {@code sonarqube.ws.permissions.WsUsersResponse.User}
*/
- public static final class User extends
+ public static final class User extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsUsersResponse.User)
UserOrBuilder {
// Use User.newBuilder() to construct.
- private User(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private User(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private User(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final User defaultInstance;
- public static User getDefaultInstance() {
- return defaultInstance;
}
-
- public User getDefaultInstanceForType() {
- return defaultInstance;
+ private User() {
+ login_ = "";
+ name_ = "";
+ email_ = "";
+ selected_ = false;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private User(
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();
@@ -301,10 +270,11 @@ public final class Permissions {
}
}
} 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();
@@ -322,24 +292,9 @@ public final class Permissions {
org.sonarqube.ws.Permissions.WsUsersResponse.User.class, org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder.class);
}
- public static com.google.protobuf.Parser<User> PARSER =
- new com.google.protobuf.AbstractParser<User>() {
- public User parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new User(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<User> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int LOGIN_FIELD_NUMBER = 1;
- private java.lang.Object login_;
+ private volatile java.lang.Object login_;
/**
* <code>optional string login = 1;</code>
*/
@@ -381,7 +336,7 @@ public final class Permissions {
}
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>
*/
@@ -423,7 +378,7 @@ public final class Permissions {
}
public static final int EMAIL_FIELD_NUMBER = 3;
- private java.lang.Object email_;
+ private volatile java.lang.Object email_;
/**
* <code>optional string email = 3;</code>
*/
@@ -479,12 +434,6 @@ public final class Permissions {
return selected_;
}
- private void initFields() {
- login_ = "";
- name_ = "";
- email_ = "";
- selected_ = false;
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -497,7 +446,6 @@ public final class Permissions {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getLoginBytes());
}
@@ -510,7 +458,7 @@ public final class Permissions {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, selected_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -535,18 +483,12 @@ public final class Permissions {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, selected_);
}
- 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.Permissions.WsUsersResponse.User parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -600,12 +542,17 @@ public final class Permissions {
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.Permissions.WsUsersResponse.User 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(
@@ -646,10 +593,6 @@ public final class Permissions {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
login_ = "";
@@ -663,10 +606,6 @@ public final class Permissions {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor;
@@ -738,7 +677,8 @@ public final class Permissions {
if (other.hasSelected()) {
setSelected(other.getSelected());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -1028,12 +968,44 @@ public final class Permissions {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsUsersResponse.User)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsUsersResponse.User)
+ private static final org.sonarqube.ws.Permissions.WsUsersResponse.User DEFAULT_INSTANCE;
static {
- defaultInstance = new User(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsUsersResponse.User();
+ }
+
+ public static org.sonarqube.ws.Permissions.WsUsersResponse.User getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<User> PARSER =
+ new com.google.protobuf.AbstractParser<User>() {
+ public User parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new User(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<User> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Permissions.WsUsersResponse.User getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsUsersResponse.User)
}
private int bitField0_;
@@ -1049,13 +1021,13 @@ public final class Permissions {
* <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
*/
public org.sonarqube.ws.Common.Paging getPaging() {
- return paging_;
+ return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
}
/**
* <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
*/
public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
- return paging_;
+ return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
}
public static final int USERS_FIELD_NUMBER = 2;
@@ -1093,10 +1065,6 @@ public final class Permissions {
return users_.get(index);
}
- private void initFields() {
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
- users_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -1109,14 +1077,13 @@ public final class Permissions {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, paging_);
+ output.writeMessage(1, getPaging());
}
for (int i = 0; i < users_.size(); i++) {
output.writeMessage(2, users_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -1127,24 +1094,18 @@ public final class Permissions {
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, paging_);
+ .computeMessageSize(1, getPaging());
}
for (int i = 0; i < users_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, users_.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.Permissions.WsUsersResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1198,12 +1159,17 @@ public final class Permissions {
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.Permissions.WsUsersResponse 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(
@@ -1250,14 +1216,10 @@ public final class Permissions {
getUsersFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
if (pagingBuilder_ == null) {
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ paging_ = null;
} else {
pagingBuilder_.clear();
}
@@ -1271,10 +1233,6 @@ public final class Permissions {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor;
@@ -1358,7 +1316,8 @@ public final class Permissions {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -1385,7 +1344,7 @@ public final class Permissions {
}
private int bitField0_;
- private org.sonarqube.ws.Common.Paging paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ private org.sonarqube.ws.Common.Paging paging_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_;
/**
@@ -1399,7 +1358,7 @@ public final class Permissions {
*/
public org.sonarqube.ws.Common.Paging getPaging() {
if (pagingBuilder_ == null) {
- return paging_;
+ return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
} else {
return pagingBuilder_.getMessage();
}
@@ -1440,6 +1399,7 @@ public final class Permissions {
public Builder mergePaging(org.sonarqube.ws.Common.Paging value) {
if (pagingBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ paging_ != null &&
paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) {
paging_ =
org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial();
@@ -1458,7 +1418,7 @@ public final class Permissions {
*/
public Builder clearPaging() {
if (pagingBuilder_ == null) {
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ paging_ = null;
onChanged();
} else {
pagingBuilder_.clear();
@@ -1481,7 +1441,8 @@ public final class Permissions {
if (pagingBuilder_ != null) {
return pagingBuilder_.getMessageOrBuilder();
} else {
- return paging_;
+ return paging_ == null ?
+ org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
}
}
/**
@@ -1744,12 +1705,44 @@ public final class Permissions {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsUsersResponse)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsUsersResponse)
+ private static final org.sonarqube.ws.Permissions.WsUsersResponse DEFAULT_INSTANCE;
static {
- defaultInstance = new WsUsersResponse(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsUsersResponse();
+ }
+
+ public static org.sonarqube.ws.Permissions.WsUsersResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<WsUsersResponse> PARSER =
+ new com.google.protobuf.AbstractParser<WsUsersResponse>() {
+ public WsUsersResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new WsUsersResponse(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<WsUsersResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Permissions.WsUsersResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsUsersResponse)
}
public interface WsGroupsResponseOrBuilder extends
@@ -1800,37 +1793,27 @@ public final class Permissions {
* WS api/permissions/groups for internal use only
* </pre>
*/
- public static final class WsGroupsResponse extends
+ public static final class WsGroupsResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsGroupsResponse)
WsGroupsResponseOrBuilder {
// Use WsGroupsResponse.newBuilder() to construct.
- private WsGroupsResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private WsGroupsResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private WsGroupsResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final WsGroupsResponse defaultInstance;
- public static WsGroupsResponse getDefaultInstance() {
- return defaultInstance;
- }
-
- public WsGroupsResponse getDefaultInstanceForType() {
- return defaultInstance;
+ private WsGroupsResponse() {
+ groups_ = 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 WsGroupsResponse(
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();
@@ -1873,10 +1856,11 @@ public final class Permissions {
}
}
} 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_ & 0x00000002) == 0x00000002)) {
groups_ = java.util.Collections.unmodifiableList(groups_);
@@ -1897,21 +1881,6 @@ public final class Permissions {
org.sonarqube.ws.Permissions.WsGroupsResponse.class, org.sonarqube.ws.Permissions.WsGroupsResponse.Builder.class);
}
- public static com.google.protobuf.Parser<WsGroupsResponse> PARSER =
- new com.google.protobuf.AbstractParser<WsGroupsResponse>() {
- public WsGroupsResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new WsGroupsResponse(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<WsGroupsResponse> getParserForType() {
- return PARSER;
- }
-
public interface GroupOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsGroupsResponse.Group)
com.google.protobuf.MessageOrBuilder {
@@ -1970,37 +1939,30 @@ public final class Permissions {
/**
* Protobuf type {@code sonarqube.ws.permissions.WsGroupsResponse.Group}
*/
- public static final class Group extends
+ public static final class Group extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsGroupsResponse.Group)
GroupOrBuilder {
// Use Group.newBuilder() to construct.
- private Group(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Group(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Group(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Group defaultInstance;
- public static Group getDefaultInstance() {
- return defaultInstance;
}
-
- public Group getDefaultInstanceForType() {
- return defaultInstance;
+ private Group() {
+ id_ = "";
+ name_ = "";
+ description_ = "";
+ selected_ = false;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Group(
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();
@@ -2045,10 +2007,11 @@ public final class Permissions {
}
}
} 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();
@@ -2066,24 +2029,9 @@ public final class Permissions {
org.sonarqube.ws.Permissions.WsGroupsResponse.Group.class, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder.class);
}
- public static com.google.protobuf.Parser<Group> PARSER =
- new com.google.protobuf.AbstractParser<Group>() {
- public Group parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Group(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Group> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
- private java.lang.Object id_;
+ private volatile java.lang.Object id_;
/**
* <code>optional string id = 1;</code>
*/
@@ -2125,7 +2073,7 @@ public final class Permissions {
}
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>
*/
@@ -2167,7 +2115,7 @@ public final class Permissions {
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
- private java.lang.Object description_;
+ private volatile java.lang.Object description_;
/**
* <code>optional string description = 3;</code>
*/
@@ -2223,12 +2171,6 @@ public final class Permissions {
return selected_;
}
- private void initFields() {
- id_ = "";
- name_ = "";
- description_ = "";
- selected_ = false;
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -2241,7 +2183,6 @@ public final class Permissions {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIdBytes());
}
@@ -2254,7 +2195,7 @@ public final class Permissions {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, selected_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -2279,18 +2220,12 @@ public final class Permissions {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, selected_);
}
- 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.Permissions.WsGroupsResponse.Group parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -2344,12 +2279,17 @@ public final class Permissions {
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.Permissions.WsGroupsResponse.Group 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(
@@ -2390,10 +2330,6 @@ public final class Permissions {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
id_ = "";
@@ -2407,10 +2343,6 @@ public final class Permissions {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor;
@@ -2482,7 +2414,8 @@ public final class Permissions {
if (other.hasSelected()) {
setSelected(other.getSelected());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -2772,12 +2705,44 @@ public final class Permissions {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsGroupsResponse.Group)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsGroupsResponse.Group)
+ private static final org.sonarqube.ws.Permissions.WsGroupsResponse.Group DEFAULT_INSTANCE;
static {
- defaultInstance = new Group(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsGroupsResponse.Group();
+ }
+
+ public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Group> PARSER =
+ new com.google.protobuf.AbstractParser<Group>() {
+ public Group parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Group(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Group> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Permissions.WsGroupsResponse.Group getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsGroupsResponse.Group)
}
private int bitField0_;
@@ -2793,13 +2758,13 @@ public final class Permissions {
* <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
*/
public org.sonarqube.ws.Common.Paging getPaging() {
- return paging_;
+ return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
}
/**
* <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
*/
public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
- return paging_;
+ return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
}
public static final int GROUPS_FIELD_NUMBER = 2;
@@ -2837,10 +2802,6 @@ public final class Permissions {
return groups_.get(index);
}
- private void initFields() {
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
- groups_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -2853,14 +2814,13 @@ public final class Permissions {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, paging_);
+ output.writeMessage(1, getPaging());
}
for (int i = 0; i < groups_.size(); i++) {
output.writeMessage(2, groups_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -2871,24 +2831,18 @@ public final class Permissions {
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, paging_);
+ .computeMessageSize(1, getPaging());
}
for (int i = 0; i < groups_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, groups_.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.Permissions.WsGroupsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -2942,12 +2896,17 @@ public final class Permissions {
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.Permissions.WsGroupsResponse 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(
@@ -2994,14 +2953,10 @@ public final class Permissions {
getGroupsFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
if (pagingBuilder_ == null) {
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ paging_ = null;
} else {
pagingBuilder_.clear();
}
@@ -3015,10 +2970,6 @@ public final class Permissions {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor;
@@ -3102,7 +3053,8 @@ public final class Permissions {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -3129,7 +3081,7 @@ public final class Permissions {
}
private int bitField0_;
- private org.sonarqube.ws.Common.Paging paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ private org.sonarqube.ws.Common.Paging paging_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_;
/**
@@ -3143,7 +3095,7 @@ public final class Permissions {
*/
public org.sonarqube.ws.Common.Paging getPaging() {
if (pagingBuilder_ == null) {
- return paging_;
+ return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
} else {
return pagingBuilder_.getMessage();
}
@@ -3184,6 +3136,7 @@ public final class Permissions {
public Builder mergePaging(org.sonarqube.ws.Common.Paging value) {
if (pagingBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ paging_ != null &&
paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) {
paging_ =
org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial();
@@ -3202,7 +3155,7 @@ public final class Permissions {
*/
public Builder clearPaging() {
if (pagingBuilder_ == null) {
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ paging_ = null;
onChanged();
} else {
pagingBuilder_.clear();
@@ -3225,7 +3178,8 @@ public final class Permissions {
if (pagingBuilder_ != null) {
return pagingBuilder_.getMessageOrBuilder();
} else {
- return paging_;
+ return paging_ == null ?
+ org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
}
}
/**
@@ -3488,12 +3442,44 @@ public final class Permissions {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsGroupsResponse)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsGroupsResponse)
+ private static final org.sonarqube.ws.Permissions.WsGroupsResponse DEFAULT_INSTANCE;
static {
- defaultInstance = new WsGroupsResponse(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsGroupsResponse();
+ }
+
+ public static org.sonarqube.ws.Permissions.WsGroupsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<WsGroupsResponse> PARSER =
+ new com.google.protobuf.AbstractParser<WsGroupsResponse>() {
+ public WsGroupsResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new WsGroupsResponse(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<WsGroupsResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Permissions.WsGroupsResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsGroupsResponse)
}
public interface PermissionOrBuilder extends
@@ -3563,37 +3549,31 @@ public final class Permissions {
/**
* Protobuf type {@code sonarqube.ws.permissions.Permission}
*/
- public static final class Permission extends
+ public static final class Permission extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.Permission)
PermissionOrBuilder {
// Use Permission.newBuilder() to construct.
- private Permission(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Permission(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Permission(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Permission defaultInstance;
- public static Permission getDefaultInstance() {
- return defaultInstance;
- }
-
- public Permission getDefaultInstanceForType() {
- return defaultInstance;
+ private Permission() {
+ key_ = "";
+ name_ = "";
+ description_ = "";
+ usersCount_ = 0;
+ groupsCount_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Permission(
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();
@@ -3643,10 +3623,11 @@ public final class Permissions {
}
}
} 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();
@@ -3664,24 +3645,9 @@ public final class Permissions {
org.sonarqube.ws.Permissions.Permission.class, org.sonarqube.ws.Permissions.Permission.Builder.class);
}
- public static com.google.protobuf.Parser<Permission> PARSER =
- new com.google.protobuf.AbstractParser<Permission>() {
- public Permission parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Permission(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Permission> 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>
*/
@@ -3723,7 +3689,7 @@ public final class Permissions {
}
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>
*/
@@ -3765,7 +3731,7 @@ public final class Permissions {
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
- private java.lang.Object description_;
+ private volatile java.lang.Object description_;
/**
* <code>optional string description = 3;</code>
*/
@@ -3836,13 +3802,6 @@ public final class Permissions {
return groupsCount_;
}
- private void initFields() {
- key_ = "";
- name_ = "";
- description_ = "";
- usersCount_ = 0;
- groupsCount_ = 0;
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -3855,7 +3814,6 @@ public final class Permissions {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getKeyBytes());
}
@@ -3871,7 +3829,7 @@ public final class Permissions {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeInt32(5, groupsCount_);
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -3900,18 +3858,12 @@ public final class Permissions {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, groupsCount_);
}
- 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.Permissions.Permission parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -3965,12 +3917,17 @@ public final class Permissions {
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.Permissions.Permission 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(
@@ -4011,10 +3968,6 @@ public final class Permissions {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
key_ = "";
@@ -4030,10 +3983,6 @@ public final class Permissions {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_Permission_descriptor;
@@ -4112,7 +4061,8 @@ public final class Permissions {
if (other.hasGroupsCount()) {
setGroupsCount(other.getGroupsCount());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -4434,12 +4384,44 @@ public final class Permissions {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.Permission)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.Permission)
+ private static final org.sonarqube.ws.Permissions.Permission DEFAULT_INSTANCE;
static {
- defaultInstance = new Permission(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.Permission();
+ }
+
+ public static org.sonarqube.ws.Permissions.Permission getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Permission> PARSER =
+ new com.google.protobuf.AbstractParser<Permission>() {
+ public Permission parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Permission(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Permission> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Permissions.Permission getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.Permission)
}
public interface WsSearchGlobalPermissionsResponseOrBuilder extends
@@ -4473,37 +4455,27 @@ public final class Permissions {
/**
* Protobuf type {@code sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse}
*/
- public static final class WsSearchGlobalPermissionsResponse extends
+ public static final class WsSearchGlobalPermissionsResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse)
WsSearchGlobalPermissionsResponseOrBuilder {
// Use WsSearchGlobalPermissionsResponse.newBuilder() to construct.
- private WsSearchGlobalPermissionsResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private WsSearchGlobalPermissionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private WsSearchGlobalPermissionsResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final WsSearchGlobalPermissionsResponse defaultInstance;
- public static WsSearchGlobalPermissionsResponse getDefaultInstance() {
- return defaultInstance;
- }
-
- public WsSearchGlobalPermissionsResponse getDefaultInstanceForType() {
- return defaultInstance;
+ private WsSearchGlobalPermissionsResponse() {
+ permissions_ = 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 WsSearchGlobalPermissionsResponse(
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();
@@ -4533,10 +4505,11 @@ public final class Permissions {
}
}
} 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)) {
permissions_ = java.util.Collections.unmodifiableList(permissions_);
@@ -4557,21 +4530,6 @@ public final class Permissions {
org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse.class, org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse.Builder.class);
}
- public static com.google.protobuf.Parser<WsSearchGlobalPermissionsResponse> PARSER =
- new com.google.protobuf.AbstractParser<WsSearchGlobalPermissionsResponse>() {
- public WsSearchGlobalPermissionsResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new WsSearchGlobalPermissionsResponse(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<WsSearchGlobalPermissionsResponse> getParserForType() {
- return PARSER;
- }
-
public static final int PERMISSIONS_FIELD_NUMBER = 1;
private java.util.List<org.sonarqube.ws.Permissions.Permission> permissions_;
/**
@@ -4607,9 +4565,6 @@ public final class Permissions {
return permissions_.get(index);
}
- private void initFields() {
- permissions_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -4622,11 +4577,10 @@ public final class Permissions {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < permissions_.size(); i++) {
output.writeMessage(1, permissions_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -4639,18 +4593,12 @@ public final class Permissions {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, permissions_.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.Permissions.WsSearchGlobalPermissionsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -4704,12 +4652,17 @@ public final class Permissions {
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.Permissions.WsSearchGlobalPermissionsResponse 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(
@@ -4751,10 +4704,6 @@ public final class Permissions {
getPermissionsFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
if (permissionsBuilder_ == null) {
@@ -4766,10 +4715,6 @@ public final class Permissions {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor;
@@ -4840,7 +4785,8 @@ public final class Permissions {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -5110,12 +5056,44 @@ public final class Permissions {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse)
+ private static final org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse DEFAULT_INSTANCE;
static {
- defaultInstance = new WsSearchGlobalPermissionsResponse(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse();
+ }
+
+ public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<WsSearchGlobalPermissionsResponse> PARSER =
+ new com.google.protobuf.AbstractParser<WsSearchGlobalPermissionsResponse>() {
+ public WsSearchGlobalPermissionsResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new WsSearchGlobalPermissionsResponse(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<WsSearchGlobalPermissionsResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse)
}
public interface WsSearchProjectPermissionsResponseOrBuilder extends
@@ -5186,37 +5164,28 @@ public final class Permissions {
/**
* Protobuf type {@code sonarqube.ws.permissions.WsSearchProjectPermissionsResponse}
*/
- public static final class WsSearchProjectPermissionsResponse extends
+ public static final class WsSearchProjectPermissionsResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse)
WsSearchProjectPermissionsResponseOrBuilder {
// Use WsSearchProjectPermissionsResponse.newBuilder() to construct.
- private WsSearchProjectPermissionsResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private WsSearchProjectPermissionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private WsSearchProjectPermissionsResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final WsSearchProjectPermissionsResponse defaultInstance;
- public static WsSearchProjectPermissionsResponse getDefaultInstance() {
- return defaultInstance;
}
-
- public WsSearchProjectPermissionsResponse getDefaultInstanceForType() {
- return defaultInstance;
+ private WsSearchProjectPermissionsResponse() {
+ projects_ = java.util.Collections.emptyList();
+ permissions_ = 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 WsSearchProjectPermissionsResponse(
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();
@@ -5267,10 +5236,11 @@ public final class Permissions {
}
}
} 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_ & 0x00000002) == 0x00000002)) {
projects_ = java.util.Collections.unmodifiableList(projects_);
@@ -5294,21 +5264,6 @@ public final class Permissions {
org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.class, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Builder.class);
}
- public static com.google.protobuf.Parser<WsSearchProjectPermissionsResponse> PARSER =
- new com.google.protobuf.AbstractParser<WsSearchProjectPermissionsResponse>() {
- public WsSearchProjectPermissionsResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new WsSearchProjectPermissionsResponse(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<WsSearchProjectPermissionsResponse> getParserForType() {
- return PARSER;
- }
-
public interface ProjectOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project)
com.google.protobuf.MessageOrBuilder {
@@ -5396,37 +5351,31 @@ public final class Permissions {
/**
* Protobuf type {@code sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project}
*/
- public static final class Project extends
+ public static final class Project extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project)
ProjectOrBuilder {
// Use Project.newBuilder() to construct.
- private Project(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Project(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Project(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Project defaultInstance;
- public static Project getDefaultInstance() {
- return defaultInstance;
- }
-
- public Project getDefaultInstanceForType() {
- return defaultInstance;
+ private Project() {
+ id_ = "";
+ key_ = "";
+ qualifier_ = "";
+ name_ = "";
+ permissions_ = 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 Project(
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();
@@ -5480,10 +5429,11 @@ public final class Permissions {
}
}
} 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_ & 0x00000010) == 0x00000010)) {
permissions_ = java.util.Collections.unmodifiableList(permissions_);
@@ -5504,24 +5454,9 @@ public final class Permissions {
org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.class, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder.class);
}
- public static com.google.protobuf.Parser<Project> PARSER =
- new com.google.protobuf.AbstractParser<Project>() {
- public Project parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Project(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Project> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
- private java.lang.Object id_;
+ private volatile java.lang.Object id_;
/**
* <code>optional string id = 1;</code>
*/
@@ -5563,7 +5498,7 @@ public final class Permissions {
}
public static final int KEY_FIELD_NUMBER = 2;
- private java.lang.Object key_;
+ private volatile java.lang.Object key_;
/**
* <code>optional string key = 2;</code>
*/
@@ -5605,7 +5540,7 @@ public final class Permissions {
}
public static final int QUALIFIER_FIELD_NUMBER = 3;
- private java.lang.Object qualifier_;
+ private volatile java.lang.Object qualifier_;
/**
* <code>optional string qualifier = 3;</code>
*/
@@ -5647,7 +5582,7 @@ public final class Permissions {
}
public static final int NAME_FIELD_NUMBER = 4;
- private java.lang.Object name_;
+ private volatile java.lang.Object name_;
/**
* <code>optional string name = 4;</code>
*/
@@ -5723,13 +5658,6 @@ public final class Permissions {
return permissions_.get(index);
}
- private void initFields() {
- id_ = "";
- key_ = "";
- qualifier_ = "";
- name_ = "";
- permissions_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -5742,7 +5670,6 @@ public final class Permissions {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIdBytes());
}
@@ -5758,7 +5685,7 @@ public final class Permissions {
for (int i = 0; i < permissions_.size(); i++) {
output.writeMessage(5, permissions_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -5787,18 +5714,12 @@ public final class Permissions {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, permissions_.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.Permissions.WsSearchProjectPermissionsResponse.Project parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -5852,12 +5773,17 @@ public final class Permissions {
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.Permissions.WsSearchProjectPermissionsResponse.Project 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(
@@ -5899,10 +5825,6 @@ public final class Permissions {
getPermissionsFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
id_ = "";
@@ -5922,10 +5844,6 @@ public final class Permissions {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor;
@@ -6034,7 +5952,8 @@ public final class Permissions {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -6608,12 +6527,44 @@ public final class Permissions {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project)
+ private static final org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project DEFAULT_INSTANCE;
static {
- defaultInstance = new Project(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project();
+ }
+
+ public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Project> PARSER =
+ new com.google.protobuf.AbstractParser<Project>() {
+ public Project parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Project(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Project> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project)
}
private int bitField0_;
@@ -6629,13 +6580,13 @@ public final class Permissions {
* <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
*/
public org.sonarqube.ws.Common.Paging getPaging() {
- return paging_;
+ return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
}
/**
* <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
*/
public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
- return paging_;
+ return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
}
public static final int PROJECTS_FIELD_NUMBER = 2;
@@ -6708,11 +6659,6 @@ public final class Permissions {
return permissions_.get(index);
}
- private void initFields() {
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
- projects_ = java.util.Collections.emptyList();
- permissions_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -6725,9 +6671,8 @@ public final class Permissions {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, paging_);
+ output.writeMessage(1, getPaging());
}
for (int i = 0; i < projects_.size(); i++) {
output.writeMessage(2, projects_.get(i));
@@ -6735,7 +6680,7 @@ public final class Permissions {
for (int i = 0; i < permissions_.size(); i++) {
output.writeMessage(3, permissions_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -6746,7 +6691,7 @@ public final class Permissions {
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, paging_);
+ .computeMessageSize(1, getPaging());
}
for (int i = 0; i < projects_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
@@ -6756,18 +6701,12 @@ public final class Permissions {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, permissions_.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.Permissions.WsSearchProjectPermissionsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -6821,12 +6760,17 @@ public final class Permissions {
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.Permissions.WsSearchProjectPermissionsResponse 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(
@@ -6870,14 +6814,10 @@ public final class Permissions {
getPermissionsFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
if (pagingBuilder_ == null) {
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ paging_ = null;
} else {
pagingBuilder_.clear();
}
@@ -6897,10 +6837,6 @@ public final class Permissions {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor;
@@ -7019,7 +6955,8 @@ public final class Permissions {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -7046,7 +6983,7 @@ public final class Permissions {
}
private int bitField0_;
- private org.sonarqube.ws.Common.Paging paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ private org.sonarqube.ws.Common.Paging paging_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_;
/**
@@ -7060,7 +6997,7 @@ public final class Permissions {
*/
public org.sonarqube.ws.Common.Paging getPaging() {
if (pagingBuilder_ == null) {
- return paging_;
+ return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
} else {
return pagingBuilder_.getMessage();
}
@@ -7101,6 +7038,7 @@ public final class Permissions {
public Builder mergePaging(org.sonarqube.ws.Common.Paging value) {
if (pagingBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ paging_ != null &&
paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) {
paging_ =
org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial();
@@ -7119,7 +7057,7 @@ public final class Permissions {
*/
public Builder clearPaging() {
if (pagingBuilder_ == null) {
- paging_ = org.sonarqube.ws.Common.Paging.getDefaultInstance();
+ paging_ = null;
onChanged();
} else {
pagingBuilder_.clear();
@@ -7142,7 +7080,8 @@ public final class Permissions {
if (pagingBuilder_ != null) {
return pagingBuilder_.getMessageOrBuilder();
} else {
- return paging_;
+ return paging_ == null ?
+ org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
}
}
/**
@@ -7645,12 +7584,44 @@ public final class Permissions {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse)
+ private static final org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse DEFAULT_INSTANCE;
static {
- defaultInstance = new WsSearchProjectPermissionsResponse(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse();
+ }
+
+ public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<WsSearchProjectPermissionsResponse> PARSER =
+ new com.google.protobuf.AbstractParser<WsSearchProjectPermissionsResponse>() {
+ public WsSearchProjectPermissionsResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new WsSearchProjectPermissionsResponse(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<WsSearchProjectPermissionsResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse)
}
public interface PermissionTemplateOrBuilder extends
@@ -7801,37 +7772,34 @@ public final class Permissions {
/**
* Protobuf type {@code sonarqube.ws.permissions.PermissionTemplate}
*/
- public static final class PermissionTemplate extends
+ public static final class PermissionTemplate extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.PermissionTemplate)
PermissionTemplateOrBuilder {
// Use PermissionTemplate.newBuilder() to construct.
- private PermissionTemplate(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private PermissionTemplate(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private PermissionTemplate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final PermissionTemplate defaultInstance;
- public static PermissionTemplate getDefaultInstance() {
- return defaultInstance;
- }
-
- public PermissionTemplate getDefaultInstanceForType() {
- return defaultInstance;
+ private PermissionTemplate() {
+ id_ = "";
+ name_ = "";
+ description_ = "";
+ projectKeyPattern_ = "";
+ createdAt_ = "";
+ updatedAt_ = "";
+ permissionsPresentIfEmpty_ = false;
+ permissions_ = 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 PermissionTemplate(
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();
@@ -7902,10 +7870,11 @@ public final class Permissions {
}
}
} 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_ & 0x00000080) == 0x00000080)) {
permissions_ = java.util.Collections.unmodifiableList(permissions_);
@@ -7926,24 +7895,9 @@ public final class Permissions {
org.sonarqube.ws.Permissions.PermissionTemplate.class, org.sonarqube.ws.Permissions.PermissionTemplate.Builder.class);
}
- public static com.google.protobuf.Parser<PermissionTemplate> PARSER =
- new com.google.protobuf.AbstractParser<PermissionTemplate>() {
- public PermissionTemplate parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new PermissionTemplate(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<PermissionTemplate> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
- private java.lang.Object id_;
+ private volatile java.lang.Object id_;
/**
* <code>optional string id = 1;</code>
*/
@@ -7985,7 +7939,7 @@ public final class Permissions {
}
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>
*/
@@ -8027,7 +7981,7 @@ public final class Permissions {
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
- private java.lang.Object description_;
+ private volatile java.lang.Object description_;
/**
* <code>optional string description = 3;</code>
*/
@@ -8069,7 +8023,7 @@ public final class Permissions {
}
public static final int PROJECTKEYPATTERN_FIELD_NUMBER = 4;
- private java.lang.Object projectKeyPattern_;
+ private volatile java.lang.Object projectKeyPattern_;
/**
* <code>optional string projectKeyPattern = 4;</code>
*/
@@ -8111,7 +8065,7 @@ public final class Permissions {
}
public static final int CREATEDAT_FIELD_NUMBER = 5;
- private java.lang.Object createdAt_;
+ private volatile java.lang.Object createdAt_;
/**
* <code>optional string createdAt = 5;</code>
*
@@ -8165,7 +8119,7 @@ public final class Permissions {
}
public static final int UPDATEDAT_FIELD_NUMBER = 6;
- private java.lang.Object updatedAt_;
+ private volatile java.lang.Object updatedAt_;
/**
* <code>optional string updatedAt = 6;</code>
*
@@ -8268,16 +8222,6 @@ public final class Permissions {
return permissions_.get(index);
}
- private void initFields() {
- id_ = "";
- name_ = "";
- description_ = "";
- projectKeyPattern_ = "";
- createdAt_ = "";
- updatedAt_ = "";
- permissionsPresentIfEmpty_ = false;
- permissions_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -8290,7 +8234,6 @@ public final class Permissions {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getIdBytes());
}
@@ -8315,7 +8258,7 @@ public final class Permissions {
for (int i = 0; i < permissions_.size(); i++) {
output.writeMessage(8, permissions_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -8356,18 +8299,12 @@ public final class Permissions {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, permissions_.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.Permissions.PermissionTemplate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -8421,12 +8358,17 @@ public final class Permissions {
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.Permissions.PermissionTemplate 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(
@@ -8468,10 +8410,6 @@ public final class Permissions {
getPermissionsFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
id_ = "";
@@ -8497,10 +8435,6 @@ public final class Permissions {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor;
@@ -8634,7 +8568,8 @@ public final class Permissions {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -9440,12 +9375,44 @@ public final class Permissions {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.PermissionTemplate)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.PermissionTemplate)
+ private static final org.sonarqube.ws.Permissions.PermissionTemplate DEFAULT_INSTANCE;
static {
- defaultInstance = new PermissionTemplate(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.PermissionTemplate();
+ }
+
+ public static org.sonarqube.ws.Permissions.PermissionTemplate getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<PermissionTemplate> PARSER =
+ new com.google.protobuf.AbstractParser<PermissionTemplate>() {
+ public PermissionTemplate parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new PermissionTemplate(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<PermissionTemplate> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Permissions.PermissionTemplate getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.PermissionTemplate)
}
public interface WsCreatePermissionTemplateResponseOrBuilder extends
@@ -9468,37 +9435,26 @@ public final class Permissions {
/**
* Protobuf type {@code sonarqube.ws.permissions.WsCreatePermissionTemplateResponse}
*/
- public static final class WsCreatePermissionTemplateResponse extends
+ public static final class WsCreatePermissionTemplateResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse)
WsCreatePermissionTemplateResponseOrBuilder {
// Use WsCreatePermissionTemplateResponse.newBuilder() to construct.
- private WsCreatePermissionTemplateResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private WsCreatePermissionTemplateResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private WsCreatePermissionTemplateResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final WsCreatePermissionTemplateResponse defaultInstance;
- public static WsCreatePermissionTemplateResponse getDefaultInstance() {
- return defaultInstance;
}
-
- public WsCreatePermissionTemplateResponse getDefaultInstanceForType() {
- return defaultInstance;
+ private WsCreatePermissionTemplateResponse() {
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private WsCreatePermissionTemplateResponse(
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();
@@ -9533,10 +9489,11 @@ public final class Permissions {
}
}
} 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();
@@ -9554,21 +9511,6 @@ public final class Permissions {
org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse.class, org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse.Builder.class);
}
- public static com.google.protobuf.Parser<WsCreatePermissionTemplateResponse> PARSER =
- new com.google.protobuf.AbstractParser<WsCreatePermissionTemplateResponse>() {
- public WsCreatePermissionTemplateResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new WsCreatePermissionTemplateResponse(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<WsCreatePermissionTemplateResponse> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int PERMISSIONTEMPLATE_FIELD_NUMBER = 1;
private org.sonarqube.ws.Permissions.PermissionTemplate permissionTemplate_;
@@ -9582,18 +9524,15 @@ public final class Permissions {
* <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
*/
public org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplate() {
- return permissionTemplate_;
+ return permissionTemplate_ == null ? org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
}
/**
* <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
*/
public org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() {
- return permissionTemplate_;
+ return permissionTemplate_ == null ? org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
}
- private void initFields() {
- permissionTemplate_ = org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -9606,11 +9545,10 @@ public final class Permissions {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, permissionTemplate_);
+ output.writeMessage(1, getPermissionTemplate());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -9621,20 +9559,14 @@ public final class Permissions {
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, permissionTemplate_);
+ .computeMessageSize(1, getPermissionTemplate());
}
- 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.Permissions.WsCreatePermissionTemplateResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -9688,12 +9620,17 @@ public final class Permissions {
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.Permissions.WsCreatePermissionTemplateResponse 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(
@@ -9735,14 +9672,10 @@ public final class Permissions {
getPermissionTemplateFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
if (permissionTemplateBuilder_ == null) {
- permissionTemplate_ = org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance();
+ permissionTemplate_ = null;
} else {
permissionTemplateBuilder_.clear();
}
@@ -9750,10 +9683,6 @@ public final class Permissions {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor;
@@ -9802,7 +9731,8 @@ public final class Permissions {
if (other.hasPermissionTemplate()) {
mergePermissionTemplate(other.getPermissionTemplate());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -9829,7 +9759,7 @@ public final class Permissions {
}
private int bitField0_;
- private org.sonarqube.ws.Permissions.PermissionTemplate permissionTemplate_ = org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance();
+ private org.sonarqube.ws.Permissions.PermissionTemplate permissionTemplate_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder> permissionTemplateBuilder_;
/**
@@ -9843,7 +9773,7 @@ public final class Permissions {
*/
public org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplate() {
if (permissionTemplateBuilder_ == null) {
- return permissionTemplate_;
+ return permissionTemplate_ == null ? org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
} else {
return permissionTemplateBuilder_.getMessage();
}
@@ -9884,6 +9814,7 @@ public final class Permissions {
public Builder mergePermissionTemplate(org.sonarqube.ws.Permissions.PermissionTemplate value) {
if (permissionTemplateBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ permissionTemplate_ != null &&
permissionTemplate_ != org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance()) {
permissionTemplate_ =
org.sonarqube.ws.Permissions.PermissionTemplate.newBuilder(permissionTemplate_).mergeFrom(value).buildPartial();
@@ -9902,7 +9833,7 @@ public final class Permissions {
*/
public Builder clearPermissionTemplate() {
if (permissionTemplateBuilder_ == null) {
- permissionTemplate_ = org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance();
+ permissionTemplate_ = null;
onChanged();
} else {
permissionTemplateBuilder_.clear();
@@ -9925,7 +9856,8 @@ public final class Permissions {
if (permissionTemplateBuilder_ != null) {
return permissionTemplateBuilder_.getMessageOrBuilder();
} else {
- return permissionTemplate_;
+ return permissionTemplate_ == null ?
+ org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
}
}
/**
@@ -9948,12 +9880,44 @@ public final class Permissions {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse)
+ private static final org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse DEFAULT_INSTANCE;
static {
- defaultInstance = new WsCreatePermissionTemplateResponse(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse();
+ }
+
+ public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<WsCreatePermissionTemplateResponse> PARSER =
+ new com.google.protobuf.AbstractParser<WsCreatePermissionTemplateResponse>() {
+ public WsCreatePermissionTemplateResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new WsCreatePermissionTemplateResponse(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<WsCreatePermissionTemplateResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse)
}
public interface WsUpdatePermissionTemplateResponseOrBuilder extends
@@ -9976,37 +9940,26 @@ public final class Permissions {
/**
* Protobuf type {@code sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse}
*/
- public static final class WsUpdatePermissionTemplateResponse extends
+ public static final class WsUpdatePermissionTemplateResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse)
WsUpdatePermissionTemplateResponseOrBuilder {
// Use WsUpdatePermissionTemplateResponse.newBuilder() to construct.
- private WsUpdatePermissionTemplateResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private WsUpdatePermissionTemplateResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private WsUpdatePermissionTemplateResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final WsUpdatePermissionTemplateResponse defaultInstance;
- public static WsUpdatePermissionTemplateResponse getDefaultInstance() {
- return defaultInstance;
- }
-
- public WsUpdatePermissionTemplateResponse getDefaultInstanceForType() {
- return defaultInstance;
+ private WsUpdatePermissionTemplateResponse() {
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private WsUpdatePermissionTemplateResponse(
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();
@@ -10041,10 +9994,11 @@ public final class Permissions {
}
}
} 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();
@@ -10062,21 +10016,6 @@ public final class Permissions {
org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse.class, org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse.Builder.class);
}
- public static com.google.protobuf.Parser<WsUpdatePermissionTemplateResponse> PARSER =
- new com.google.protobuf.AbstractParser<WsUpdatePermissionTemplateResponse>() {
- public WsUpdatePermissionTemplateResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new WsUpdatePermissionTemplateResponse(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<WsUpdatePermissionTemplateResponse> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int PERMISSIONTEMPLATE_FIELD_NUMBER = 1;
private org.sonarqube.ws.Permissions.PermissionTemplate permissionTemplate_;
@@ -10090,18 +10029,15 @@ public final class Permissions {
* <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
*/
public org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplate() {
- return permissionTemplate_;
+ return permissionTemplate_ == null ? org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
}
/**
* <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
*/
public org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() {
- return permissionTemplate_;
+ return permissionTemplate_ == null ? org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
}
- private void initFields() {
- permissionTemplate_ = org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -10114,11 +10050,10 @@ public final class Permissions {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, permissionTemplate_);
+ output.writeMessage(1, getPermissionTemplate());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -10129,20 +10064,14 @@ public final class Permissions {
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, permissionTemplate_);
+ .computeMessageSize(1, getPermissionTemplate());
}
- 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.Permissions.WsUpdatePermissionTemplateResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -10196,12 +10125,17 @@ public final class Permissions {
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.Permissions.WsUpdatePermissionTemplateResponse 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(
@@ -10243,14 +10177,10 @@ public final class Permissions {
getPermissionTemplateFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
if (permissionTemplateBuilder_ == null) {
- permissionTemplate_ = org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance();
+ permissionTemplate_ = null;
} else {
permissionTemplateBuilder_.clear();
}
@@ -10258,10 +10188,6 @@ public final class Permissions {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor;
@@ -10310,7 +10236,8 @@ public final class Permissions {
if (other.hasPermissionTemplate()) {
mergePermissionTemplate(other.getPermissionTemplate());
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -10337,7 +10264,7 @@ public final class Permissions {
}
private int bitField0_;
- private org.sonarqube.ws.Permissions.PermissionTemplate permissionTemplate_ = org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance();
+ private org.sonarqube.ws.Permissions.PermissionTemplate permissionTemplate_ = null;
private com.google.protobuf.SingleFieldBuilder<
org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder> permissionTemplateBuilder_;
/**
@@ -10351,7 +10278,7 @@ public final class Permissions {
*/
public org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplate() {
if (permissionTemplateBuilder_ == null) {
- return permissionTemplate_;
+ return permissionTemplate_ == null ? org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
} else {
return permissionTemplateBuilder_.getMessage();
}
@@ -10392,6 +10319,7 @@ public final class Permissions {
public Builder mergePermissionTemplate(org.sonarqube.ws.Permissions.PermissionTemplate value) {
if (permissionTemplateBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
+ permissionTemplate_ != null &&
permissionTemplate_ != org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance()) {
permissionTemplate_ =
org.sonarqube.ws.Permissions.PermissionTemplate.newBuilder(permissionTemplate_).mergeFrom(value).buildPartial();
@@ -10410,7 +10338,7 @@ public final class Permissions {
*/
public Builder clearPermissionTemplate() {
if (permissionTemplateBuilder_ == null) {
- permissionTemplate_ = org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance();
+ permissionTemplate_ = null;
onChanged();
} else {
permissionTemplateBuilder_.clear();
@@ -10433,7 +10361,8 @@ public final class Permissions {
if (permissionTemplateBuilder_ != null) {
return permissionTemplateBuilder_.getMessageOrBuilder();
} else {
- return permissionTemplate_;
+ return permissionTemplate_ == null ?
+ org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
}
}
/**
@@ -10456,12 +10385,44 @@ public final class Permissions {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse)
+ private static final org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse DEFAULT_INSTANCE;
static {
- defaultInstance = new WsUpdatePermissionTemplateResponse(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse();
+ }
+
+ public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<WsUpdatePermissionTemplateResponse> PARSER =
+ new com.google.protobuf.AbstractParser<WsUpdatePermissionTemplateResponse>() {
+ public WsUpdatePermissionTemplateResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new WsUpdatePermissionTemplateResponse(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<WsUpdatePermissionTemplateResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse)
}
public interface WsSearchTemplatesResponseOrBuilder extends
@@ -10543,37 +10504,29 @@ public final class Permissions {
/**
* Protobuf type {@code sonarqube.ws.permissions.WsSearchTemplatesResponse}
*/
- public static final class WsSearchTemplatesResponse extends
+ public static final class WsSearchTemplatesResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse)
WsSearchTemplatesResponseOrBuilder {
// Use WsSearchTemplatesResponse.newBuilder() to construct.
- private WsSearchTemplatesResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private WsSearchTemplatesResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private WsSearchTemplatesResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final WsSearchTemplatesResponse defaultInstance;
- public static WsSearchTemplatesResponse getDefaultInstance() {
- return defaultInstance;
- }
-
- public WsSearchTemplatesResponse getDefaultInstanceForType() {
- return defaultInstance;
+ private WsSearchTemplatesResponse() {
+ permissionTemplates_ = java.util.Collections.emptyList();
+ defaultTemplates_ = java.util.Collections.emptyList();
+ permissions_ = 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 WsSearchTemplatesResponse(
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();
@@ -10619,10 +10572,11 @@ public final class Permissions {
}
}
} 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)) {
permissionTemplates_ = java.util.Collections.unmodifiableList(permissionTemplates_);
@@ -10649,21 +10603,6 @@ public final class Permissions {
org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.class, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.Builder.class);
}
- public static com.google.protobuf.Parser<WsSearchTemplatesResponse> PARSER =
- new com.google.protobuf.AbstractParser<WsSearchTemplatesResponse>() {
- public WsSearchTemplatesResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new WsSearchTemplatesResponse(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<WsSearchTemplatesResponse> getParserForType() {
- return PARSER;
- }
-
public interface TemplateIdQualifierOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier)
com.google.protobuf.MessageOrBuilder {
@@ -10699,37 +10638,28 @@ public final class Permissions {
/**
* Protobuf type {@code sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier}
*/
- public static final class TemplateIdQualifier extends
+ public static final class TemplateIdQualifier extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier)
TemplateIdQualifierOrBuilder {
// Use TemplateIdQualifier.newBuilder() to construct.
- private TemplateIdQualifier(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private TemplateIdQualifier(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private TemplateIdQualifier(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final TemplateIdQualifier defaultInstance;
- public static TemplateIdQualifier getDefaultInstance() {
- return defaultInstance;
}
-
- public TemplateIdQualifier getDefaultInstanceForType() {
- return defaultInstance;
+ private TemplateIdQualifier() {
+ templateId_ = "";
+ qualifier_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private TemplateIdQualifier(
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();
@@ -10763,10 +10693,11 @@ public final class Permissions {
}
}
} 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();
@@ -10784,24 +10715,9 @@ public final class Permissions {
org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.class, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder.class);
}
- public static com.google.protobuf.Parser<TemplateIdQualifier> PARSER =
- new com.google.protobuf.AbstractParser<TemplateIdQualifier>() {
- public TemplateIdQualifier parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new TemplateIdQualifier(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<TemplateIdQualifier> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int TEMPLATEID_FIELD_NUMBER = 1;
- private java.lang.Object templateId_;
+ private volatile java.lang.Object templateId_;
/**
* <code>optional string templateId = 1;</code>
*/
@@ -10843,7 +10759,7 @@ public final class Permissions {
}
public static final int QUALIFIER_FIELD_NUMBER = 2;
- private java.lang.Object qualifier_;
+ private volatile java.lang.Object qualifier_;
/**
* <code>optional string qualifier = 2;</code>
*/
@@ -10884,10 +10800,6 @@ public final class Permissions {
}
}
- private void initFields() {
- templateId_ = "";
- qualifier_ = "";
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -10900,14 +10812,13 @@ public final class Permissions {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getTemplateIdBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getQualifierBytes());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -10924,18 +10835,12 @@ public final class Permissions {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getQualifierBytes());
}
- 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.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -10989,12 +10894,17 @@ public final class Permissions {
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.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier 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(
@@ -11035,10 +10945,6 @@ public final class Permissions {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
templateId_ = "";
@@ -11048,10 +10954,6 @@ public final class Permissions {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor;
@@ -11107,7 +11009,8 @@ public final class Permissions {
qualifier_ = other.qualifier_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -11289,12 +11192,44 @@ public final class Permissions {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier)
+ private static final org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier DEFAULT_INSTANCE;
static {
- defaultInstance = new TemplateIdQualifier(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier();
+ }
+
+ public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<TemplateIdQualifier> PARSER =
+ new com.google.protobuf.AbstractParser<TemplateIdQualifier>() {
+ public TemplateIdQualifier parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new TemplateIdQualifier(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<TemplateIdQualifier> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier)
}
public static final int PERMISSIONTEMPLATES_FIELD_NUMBER = 1;
@@ -11402,11 +11337,6 @@ public final class Permissions {
return permissions_.get(index);
}
- private void initFields() {
- permissionTemplates_ = java.util.Collections.emptyList();
- defaultTemplates_ = java.util.Collections.emptyList();
- permissions_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -11419,7 +11349,6 @@ public final class Permissions {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < permissionTemplates_.size(); i++) {
output.writeMessage(1, permissionTemplates_.get(i));
}
@@ -11429,7 +11358,7 @@ public final class Permissions {
for (int i = 0; i < permissions_.size(); i++) {
output.writeMessage(3, permissions_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -11450,18 +11379,12 @@ public final class Permissions {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, permissions_.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.Permissions.WsSearchTemplatesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -11515,12 +11438,17 @@ public final class Permissions {
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.Permissions.WsSearchTemplatesResponse 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(
@@ -11564,10 +11492,6 @@ public final class Permissions {
getPermissionsFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
if (permissionTemplatesBuilder_ == null) {
@@ -11591,10 +11515,6 @@ public final class Permissions {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor;
@@ -11735,7 +11655,8 @@ public final class Permissions {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -12485,75 +12406,107 @@ public final class Permissions {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse)
+ private static final org.sonarqube.ws.Permissions.WsSearchTemplatesResponse DEFAULT_INSTANCE;
static {
- defaultInstance = new WsSearchTemplatesResponse(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Permissions.WsSearchTemplatesResponse();
+ }
+
+ public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<WsSearchTemplatesResponse> PARSER =
+ new com.google.protobuf.AbstractParser<WsSearchTemplatesResponse>() {
+ public WsSearchTemplatesResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new WsSearchTemplatesResponse(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<WsSearchTemplatesResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse)
}
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_permissions_WsUsersResponse_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_permissions_WsUsersResponse_User_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_permissions_Permission_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
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 7786e5aa761..42bacfc188a 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
@@ -43,37 +43,27 @@ public final class Rules {
* WS api/rules/list for internal use only
* </pre>
*/
- public static final class ListResponse extends
+ public static final class ListResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.rules.ListResponse)
ListResponseOrBuilder {
// Use ListResponse.newBuilder() to construct.
- private ListResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private ListResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private ListResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ListResponse defaultInstance;
- public static ListResponse getDefaultInstance() {
- return defaultInstance;
- }
-
- public ListResponse getDefaultInstanceForType() {
- return defaultInstance;
+ private ListResponse() {
+ rules_ = 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 ListResponse(
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 Rules {
}
}
} 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)) {
rules_ = java.util.Collections.unmodifiableList(rules_);
@@ -127,21 +118,6 @@ public final class Rules {
org.sonarqube.ws.Rules.ListResponse.class, org.sonarqube.ws.Rules.ListResponse.Builder.class);
}
- public static com.google.protobuf.Parser<ListResponse> PARSER =
- new com.google.protobuf.AbstractParser<ListResponse>() {
- public ListResponse parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new ListResponse(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<ListResponse> getParserForType() {
- return PARSER;
- }
-
public interface RuleOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.rules.ListResponse.Rule)
com.google.protobuf.MessageOrBuilder {
@@ -205,37 +181,30 @@ public final class Rules {
/**
* Protobuf type {@code sonarqube.ws.rules.ListResponse.Rule}
*/
- public static final class Rule extends
+ public static final class Rule extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:sonarqube.ws.rules.ListResponse.Rule)
RuleOrBuilder {
// Use Rule.newBuilder() to construct.
- private Rule(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+ private Rule(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Rule(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Rule defaultInstance;
- public static Rule getDefaultInstance() {
- return defaultInstance;
- }
-
- public Rule getDefaultInstanceForType() {
- return defaultInstance;
+ private Rule() {
+ repository_ = "";
+ key_ = "";
+ internalKey_ = "";
+ name_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
+ getUnknownFields() {
return this.unknownFields;
}
private Rule(
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();
@@ -281,10 +250,11 @@ public final class Rules {
}
}
} 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();
@@ -302,24 +272,9 @@ public final class Rules {
org.sonarqube.ws.Rules.ListResponse.Rule.class, org.sonarqube.ws.Rules.ListResponse.Rule.Builder.class);
}
- public static 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 {
- return new Rule(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser<Rule> getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int REPOSITORY_FIELD_NUMBER = 1;
- private java.lang.Object repository_;
+ private volatile java.lang.Object repository_;
/**
* <code>optional string repository = 1;</code>
*/
@@ -361,7 +316,7 @@ public final class Rules {
}
public static final int KEY_FIELD_NUMBER = 2;
- private java.lang.Object key_;
+ private volatile java.lang.Object key_;
/**
* <code>optional string key = 2;</code>
*/
@@ -403,7 +358,7 @@ public final class Rules {
}
public static final int INTERNAL_KEY_FIELD_NUMBER = 3;
- private java.lang.Object internalKey_;
+ private volatile java.lang.Object internalKey_;
/**
* <code>optional string internal_key = 3;</code>
*/
@@ -445,7 +400,7 @@ public final class Rules {
}
public static final int NAME_FIELD_NUMBER = 4;
- private java.lang.Object name_;
+ private volatile java.lang.Object name_;
/**
* <code>optional string name = 4;</code>
*/
@@ -486,12 +441,6 @@ public final class Rules {
}
}
- private void initFields() {
- repository_ = "";
- key_ = "";
- internalKey_ = "";
- name_ = "";
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -504,7 +453,6 @@ public final class Rules {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getRepositoryBytes());
}
@@ -517,7 +465,7 @@ public final class Rules {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getNameBytes());
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -542,18 +490,12 @@ public final class Rules {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getNameBytes());
}
- 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.Rules.ListResponse.Rule parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -607,12 +549,17 @@ public final class Rules {
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.Rules.ListResponse.Rule 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(
@@ -653,10 +600,6 @@ public final class Rules {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
repository_ = "";
@@ -670,10 +613,6 @@ public final class Rules {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ListResponse_Rule_descriptor;
@@ -747,7 +686,8 @@ public final class Rules {
name_ = other.name_;
onChanged();
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -1081,12 +1021,44 @@ public final class Rules {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.ListResponse.Rule)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.ListResponse.Rule)
+ private static final org.sonarqube.ws.Rules.ListResponse.Rule DEFAULT_INSTANCE;
static {
- defaultInstance = new Rule(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.ListResponse.Rule();
+ }
+
+ public static org.sonarqube.ws.Rules.ListResponse.Rule getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<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.ListResponse.Rule getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.ListResponse.Rule)
}
public static final int RULES_FIELD_NUMBER = 1;
@@ -1124,9 +1096,6 @@ public final class Rules {
return rules_.get(index);
}
- private void initFields() {
- rules_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -1139,11 +1108,10 @@ public final class Rules {
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < rules_.size(); i++) {
output.writeMessage(1, rules_.get(i));
}
- getUnknownFields().writeTo(output);
+ unknownFields.writeTo(output);
}
private int memoizedSerializedSize = -1;
@@ -1156,18 +1124,12 @@ public final class Rules {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, rules_.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.Rules.ListResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1221,12 +1183,17 @@ public final class Rules {
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.Rules.ListResponse 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(
@@ -1272,10 +1239,6 @@ public final class Rules {
getRulesFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
public Builder clear() {
super.clear();
if (rulesBuilder_ == null) {
@@ -1287,10 +1250,6 @@ public final class Rules {
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.sonarqube.ws.Rules.internal_static_sonarqube_ws_rules_ListResponse_descriptor;
@@ -1361,7 +1320,8 @@ public final class Rules {
}
}
}
- this.mergeUnknownFields(other.getUnknownFields());
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
return this;
}
@@ -1631,20 +1591,52 @@ public final class Rules {
// @@protoc_insertion_point(builder_scope:sonarqube.ws.rules.ListResponse)
}
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.ListResponse)
+ private static final org.sonarqube.ws.Rules.ListResponse DEFAULT_INSTANCE;
static {
- defaultInstance = new ListResponse(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Rules.ListResponse();
+ }
+
+ public static org.sonarqube.ws.Rules.ListResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<ListResponse> PARSER =
+ new com.google.protobuf.AbstractParser<ListResponse>() {
+ public ListResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new ListResponse(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<ListResponse> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Rules.ListResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:sonarqube.ws.rules.ListResponse)
}
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_rules_ListResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_rules_ListResponse_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_rules_ListResponse_Rule_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable