aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-09-16 01:15:42 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-09-17 11:36:10 +0200
commit15005289f592f7a574f8947d09ab4cc6f6f2bd2e (patch)
treeefb9a6fff7b0371775dd2c8befa70e0aa679832a /sonar-ws
parent361c419cb05a0fcb1ba6840a3aab736bb3f65b86 (diff)
downloadsonarqube-15005289f592f7a574f8947d09ab4cc6f6f2bd2e.tar.gz
sonarqube-15005289f592f7a574f8947d09ab4cc6f6f2bd2e.zip
Improve protobuf to json converter
- replace bool field *PresentIfEmpty by a wrapper of repeated fields - support arrays/maps in map values
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/gen-java/org/sonarqube/ws/Common.java2087
-rw-r--r--sonar-ws/src/main/gen-java/org/sonarqube/ws/Issues.java6716
-rw-r--r--sonar-ws/src/main/gen-java/org/sonarqube/ws/Permissions.java12666
-rw-r--r--sonar-ws/src/main/protobuf/ws-commons.proto12
-rw-r--r--sonar-ws/src/main/protobuf/ws-issues.proto57
-rw-r--r--sonar-ws/src/main/protobuf/ws-permissions.proto5
6 files changed, 6181 insertions, 15362 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 7483d52b914..e054fdcd978 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
@@ -1650,6 +1650,678 @@ public final class Common {
}
+ public interface FacetsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.Facets)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ java.util.List<org.sonarqube.ws.Common.Facet>
+ getFacetsList();
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ org.sonarqube.ws.Common.Facet getFacets(int index);
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ int getFacetsCount();
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ java.util.List<? extends org.sonarqube.ws.Common.FacetOrBuilder>
+ getFacetsOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.commons.Facets}
+ */
+ public static final class Facets extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Facets)
+ FacetsOrBuilder {
+ // Use Facets.newBuilder() to construct.
+ private Facets(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private Facets() {
+ facets_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Facets(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ facets_ = new java.util.ArrayList<org.sonarqube.ws.Common.Facet>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ facets_.add(input.readMessage(org.sonarqube.ws.Common.Facet.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ facets_ = java.util.Collections.unmodifiableList(facets_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facets_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facets_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.Common.Facets.class, org.sonarqube.ws.Common.Facets.Builder.class);
+ }
+
+ public static final int FACETS_FIELD_NUMBER = 1;
+ private java.util.List<org.sonarqube.ws.Common.Facet> facets_;
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Common.Facet> getFacetsList() {
+ return facets_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.Common.FacetOrBuilder>
+ getFacetsOrBuilderList() {
+ return facets_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public int getFacetsCount() {
+ return facets_.size();
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public org.sonarqube.ws.Common.Facet getFacets(int index) {
+ return facets_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder(
+ int index) {
+ return facets_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < facets_.size(); i++) {
+ output.writeMessage(1, facets_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < facets_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, facets_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.Common.Facets parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.Common.Facets parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Common.Facets parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.Common.Facets parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Common.Facets parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.Common.Facets parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Common.Facets parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.Common.Facets parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Common.Facets parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.Common.Facets parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.Common.Facets prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.commons.Facets}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.Facets)
+ org.sonarqube.ws.Common.FacetsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facets_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facets_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.Common.Facets.class, org.sonarqube.ws.Common.Facets.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.Common.Facets.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getFacetsFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ if (facetsBuilder_ == null) {
+ facets_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ facetsBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Facets_descriptor;
+ }
+
+ public org.sonarqube.ws.Common.Facets getDefaultInstanceForType() {
+ return org.sonarqube.ws.Common.Facets.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.Common.Facets build() {
+ org.sonarqube.ws.Common.Facets result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.Common.Facets buildPartial() {
+ org.sonarqube.ws.Common.Facets result = new org.sonarqube.ws.Common.Facets(this);
+ int from_bitField0_ = bitField0_;
+ if (facetsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ facets_ = java.util.Collections.unmodifiableList(facets_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.facets_ = facets_;
+ } else {
+ result.facets_ = facetsBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.Common.Facets) {
+ return mergeFrom((org.sonarqube.ws.Common.Facets)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.Common.Facets other) {
+ if (other == org.sonarqube.ws.Common.Facets.getDefaultInstance()) return this;
+ if (facetsBuilder_ == null) {
+ if (!other.facets_.isEmpty()) {
+ if (facets_.isEmpty()) {
+ facets_ = other.facets_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureFacetsIsMutable();
+ facets_.addAll(other.facets_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.facets_.isEmpty()) {
+ if (facetsBuilder_.isEmpty()) {
+ facetsBuilder_.dispose();
+ facetsBuilder_ = null;
+ facets_ = other.facets_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ facetsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getFacetsFieldBuilder() : null;
+ } else {
+ facetsBuilder_.addAllMessages(other.facets_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.Common.Facets parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.Common.Facets) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List<org.sonarqube.ws.Common.Facet> facets_ =
+ java.util.Collections.emptyList();
+ private void ensureFacetsIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ facets_ = new java.util.ArrayList<org.sonarqube.ws.Common.Facet>(facets_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder> facetsBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Common.Facet> getFacetsList() {
+ if (facetsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(facets_);
+ } else {
+ return facetsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public int getFacetsCount() {
+ if (facetsBuilder_ == null) {
+ return facets_.size();
+ } else {
+ return facetsBuilder_.getCount();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public org.sonarqube.ws.Common.Facet getFacets(int index) {
+ if (facetsBuilder_ == null) {
+ return facets_.get(index);
+ } else {
+ return facetsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public Builder setFacets(
+ int index, org.sonarqube.ws.Common.Facet value) {
+ if (facetsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFacetsIsMutable();
+ facets_.set(index, value);
+ onChanged();
+ } else {
+ facetsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public Builder setFacets(
+ int index, org.sonarqube.ws.Common.Facet.Builder builderForValue) {
+ if (facetsBuilder_ == null) {
+ ensureFacetsIsMutable();
+ facets_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ facetsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public Builder addFacets(org.sonarqube.ws.Common.Facet value) {
+ if (facetsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFacetsIsMutable();
+ facets_.add(value);
+ onChanged();
+ } else {
+ facetsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public Builder addFacets(
+ int index, org.sonarqube.ws.Common.Facet value) {
+ if (facetsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFacetsIsMutable();
+ facets_.add(index, value);
+ onChanged();
+ } else {
+ facetsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public Builder addFacets(
+ org.sonarqube.ws.Common.Facet.Builder builderForValue) {
+ if (facetsBuilder_ == null) {
+ ensureFacetsIsMutable();
+ facets_.add(builderForValue.build());
+ onChanged();
+ } else {
+ facetsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public Builder addFacets(
+ int index, org.sonarqube.ws.Common.Facet.Builder builderForValue) {
+ if (facetsBuilder_ == null) {
+ ensureFacetsIsMutable();
+ facets_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ facetsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public Builder addAllFacets(
+ java.lang.Iterable<? extends org.sonarqube.ws.Common.Facet> values) {
+ if (facetsBuilder_ == null) {
+ ensureFacetsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, facets_);
+ onChanged();
+ } else {
+ facetsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public Builder clearFacets() {
+ if (facetsBuilder_ == null) {
+ facets_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ facetsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public Builder removeFacets(int index) {
+ if (facetsBuilder_ == null) {
+ ensureFacetsIsMutable();
+ facets_.remove(index);
+ onChanged();
+ } else {
+ facetsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public org.sonarqube.ws.Common.Facet.Builder getFacetsBuilder(
+ int index) {
+ return getFacetsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder(
+ int index) {
+ if (facetsBuilder_ == null) {
+ return facets_.get(index); } else {
+ return facetsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.Common.FacetOrBuilder>
+ getFacetsOrBuilderList() {
+ if (facetsBuilder_ != null) {
+ return facetsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(facets_);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public org.sonarqube.ws.Common.Facet.Builder addFacetsBuilder() {
+ return getFacetsFieldBuilder().addBuilder(
+ org.sonarqube.ws.Common.Facet.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public org.sonarqube.ws.Common.Facet.Builder addFacetsBuilder(
+ int index) {
+ return getFacetsFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.Common.Facet.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Facet facets = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Common.Facet.Builder>
+ getFacetsBuilderList() {
+ return getFacetsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder>
+ getFacetsFieldBuilder() {
+ if (facetsBuilder_ == null) {
+ facetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder>(
+ facets_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ facets_ = null;
+ }
+ return facetsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Facets)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Facets)
+ private static final org.sonarqube.ws.Common.Facets DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Facets();
+ }
+
+ public static org.sonarqube.ws.Common.Facets getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Facets> PARSER =
+ new com.google.protobuf.AbstractParser<Facets>() {
+ public Facets parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Facets(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Facets> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Common.Facets getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
public interface FacetValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.FacetValue)
com.google.protobuf.MessageOrBuilder {
@@ -3232,6 +3904,678 @@ public final class Common {
}
+ public interface RulesOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.Rules)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ java.util.List<org.sonarqube.ws.Common.Rule>
+ getRulesList();
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ org.sonarqube.ws.Common.Rule getRules(int index);
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ int getRulesCount();
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ java.util.List<? extends org.sonarqube.ws.Common.RuleOrBuilder>
+ getRulesOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.commons.Rules}
+ */
+ public static final class Rules extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Rules)
+ RulesOrBuilder {
+ // Use Rules.newBuilder() to construct.
+ private Rules(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private Rules() {
+ rules_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Rules(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ rules_ = new java.util.ArrayList<org.sonarqube.ws.Common.Rule>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ rules_.add(input.readMessage(org.sonarqube.ws.Common.Rule.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ rules_ = java.util.Collections.unmodifiableList(rules_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rules_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rules_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.Common.Rules.class, org.sonarqube.ws.Common.Rules.Builder.class);
+ }
+
+ public static final int RULES_FIELD_NUMBER = 1;
+ private java.util.List<org.sonarqube.ws.Common.Rule> rules_;
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Common.Rule> getRulesList() {
+ return rules_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.Common.RuleOrBuilder>
+ getRulesOrBuilderList() {
+ return rules_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public int getRulesCount() {
+ return rules_.size();
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public org.sonarqube.ws.Common.Rule getRules(int index) {
+ return rules_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder(
+ int index) {
+ return rules_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < rules_.size(); i++) {
+ output.writeMessage(1, rules_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < rules_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, rules_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.Common.Rules parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.Common.Rules parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Common.Rules parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.Common.Rules parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Common.Rules parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.Common.Rules parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Common.Rules parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.Common.Rules parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Common.Rules parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.Common.Rules parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.Common.Rules prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.commons.Rules}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.Rules)
+ org.sonarqube.ws.Common.RulesOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rules_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rules_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.Common.Rules.class, org.sonarqube.ws.Common.Rules.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.Common.Rules.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getRulesFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ if (rulesBuilder_ == null) {
+ rules_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ rulesBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Rules_descriptor;
+ }
+
+ public org.sonarqube.ws.Common.Rules getDefaultInstanceForType() {
+ return org.sonarqube.ws.Common.Rules.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.Common.Rules build() {
+ org.sonarqube.ws.Common.Rules result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.Common.Rules buildPartial() {
+ org.sonarqube.ws.Common.Rules result = new org.sonarqube.ws.Common.Rules(this);
+ int from_bitField0_ = bitField0_;
+ if (rulesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ rules_ = java.util.Collections.unmodifiableList(rules_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.rules_ = rules_;
+ } else {
+ result.rules_ = rulesBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.Common.Rules) {
+ return mergeFrom((org.sonarqube.ws.Common.Rules)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.Common.Rules other) {
+ if (other == org.sonarqube.ws.Common.Rules.getDefaultInstance()) return this;
+ if (rulesBuilder_ == null) {
+ if (!other.rules_.isEmpty()) {
+ if (rules_.isEmpty()) {
+ rules_ = other.rules_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureRulesIsMutable();
+ rules_.addAll(other.rules_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.rules_.isEmpty()) {
+ if (rulesBuilder_.isEmpty()) {
+ rulesBuilder_.dispose();
+ rulesBuilder_ = null;
+ rules_ = other.rules_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ rulesBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getRulesFieldBuilder() : null;
+ } else {
+ rulesBuilder_.addAllMessages(other.rules_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.Common.Rules parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.Common.Rules) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List<org.sonarqube.ws.Common.Rule> rules_ =
+ java.util.Collections.emptyList();
+ private void ensureRulesIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ rules_ = new java.util.ArrayList<org.sonarqube.ws.Common.Rule>(rules_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder> rulesBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Common.Rule> getRulesList() {
+ if (rulesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(rules_);
+ } else {
+ return rulesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public int getRulesCount() {
+ if (rulesBuilder_ == null) {
+ return rules_.size();
+ } else {
+ return rulesBuilder_.getCount();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public org.sonarqube.ws.Common.Rule getRules(int index) {
+ if (rulesBuilder_ == null) {
+ return rules_.get(index);
+ } else {
+ return rulesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public Builder setRules(
+ int index, org.sonarqube.ws.Common.Rule value) {
+ if (rulesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRulesIsMutable();
+ rules_.set(index, value);
+ onChanged();
+ } else {
+ rulesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public Builder setRules(
+ int index, org.sonarqube.ws.Common.Rule.Builder builderForValue) {
+ if (rulesBuilder_ == null) {
+ ensureRulesIsMutable();
+ rules_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ rulesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public Builder addRules(org.sonarqube.ws.Common.Rule value) {
+ if (rulesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRulesIsMutable();
+ rules_.add(value);
+ onChanged();
+ } else {
+ rulesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public Builder addRules(
+ int index, org.sonarqube.ws.Common.Rule value) {
+ if (rulesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRulesIsMutable();
+ rules_.add(index, value);
+ onChanged();
+ } else {
+ rulesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public Builder addRules(
+ org.sonarqube.ws.Common.Rule.Builder builderForValue) {
+ if (rulesBuilder_ == null) {
+ ensureRulesIsMutable();
+ rules_.add(builderForValue.build());
+ onChanged();
+ } else {
+ rulesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public Builder addRules(
+ int index, org.sonarqube.ws.Common.Rule.Builder builderForValue) {
+ if (rulesBuilder_ == null) {
+ ensureRulesIsMutable();
+ rules_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ rulesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public Builder addAllRules(
+ java.lang.Iterable<? extends org.sonarqube.ws.Common.Rule> values) {
+ if (rulesBuilder_ == null) {
+ ensureRulesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, rules_);
+ onChanged();
+ } else {
+ rulesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public Builder clearRules() {
+ if (rulesBuilder_ == null) {
+ rules_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ rulesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public Builder removeRules(int index) {
+ if (rulesBuilder_ == null) {
+ ensureRulesIsMutable();
+ rules_.remove(index);
+ onChanged();
+ } else {
+ rulesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public org.sonarqube.ws.Common.Rule.Builder getRulesBuilder(
+ int index) {
+ return getRulesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder(
+ int index) {
+ if (rulesBuilder_ == null) {
+ return rules_.get(index); } else {
+ return rulesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.Common.RuleOrBuilder>
+ getRulesOrBuilderList() {
+ if (rulesBuilder_ != null) {
+ return rulesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(rules_);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public org.sonarqube.ws.Common.Rule.Builder addRulesBuilder() {
+ return getRulesFieldBuilder().addBuilder(
+ org.sonarqube.ws.Common.Rule.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public org.sonarqube.ws.Common.Rule.Builder addRulesBuilder(
+ int index) {
+ return getRulesFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.Common.Rule.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.Rule rules = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Common.Rule.Builder>
+ getRulesBuilderList() {
+ return getRulesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder>
+ getRulesFieldBuilder() {
+ if (rulesBuilder_ == null) {
+ rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder>(
+ rules_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ rules_ = null;
+ }
+ return rulesBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Rules)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Rules)
+ private static final org.sonarqube.ws.Common.Rules DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Rules();
+ }
+
+ public static org.sonarqube.ws.Common.Rules getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Rules> PARSER =
+ new com.google.protobuf.AbstractParser<Rules>() {
+ public Rules parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Rules(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Rules> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Common.Rules getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
public interface UserOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.User)
com.google.protobuf.MessageOrBuilder {
@@ -4096,6 +5440,678 @@ public final class Common {
}
+ public interface UsersOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.Users)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ java.util.List<org.sonarqube.ws.Common.User>
+ getUsersList();
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ org.sonarqube.ws.Common.User getUsers(int index);
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ int getUsersCount();
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ java.util.List<? extends org.sonarqube.ws.Common.UserOrBuilder>
+ getUsersOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.commons.Users}
+ */
+ public static final class Users extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.commons.Users)
+ UsersOrBuilder {
+ // Use Users.newBuilder() to construct.
+ private Users(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private Users() {
+ users_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Users(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ users_ = new java.util.ArrayList<org.sonarqube.ws.Common.User>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ users_.add(input.readMessage(org.sonarqube.ws.Common.User.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ users_ = java.util.Collections.unmodifiableList(users_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Users_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Users_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.Common.Users.class, org.sonarqube.ws.Common.Users.Builder.class);
+ }
+
+ public static final int USERS_FIELD_NUMBER = 1;
+ private java.util.List<org.sonarqube.ws.Common.User> users_;
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Common.User> getUsersList() {
+ return users_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.Common.UserOrBuilder>
+ getUsersOrBuilderList() {
+ return users_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public int getUsersCount() {
+ return users_.size();
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public org.sonarqube.ws.Common.User getUsers(int index) {
+ return users_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder(
+ int index) {
+ return users_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < users_.size(); i++) {
+ output.writeMessage(1, users_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < users_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, users_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.Common.Users parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.Common.Users parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Common.Users parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.Common.Users parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Common.Users parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.Common.Users parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Common.Users parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.Common.Users parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Common.Users parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.Common.Users parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.Common.Users prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.commons.Users}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.commons.Users)
+ org.sonarqube.ws.Common.UsersOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Users_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Users_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.Common.Users.class, org.sonarqube.ws.Common.Users.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.Common.Users.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getUsersFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ if (usersBuilder_ == null) {
+ users_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ usersBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.Common.internal_static_sonarqube_ws_commons_Users_descriptor;
+ }
+
+ public org.sonarqube.ws.Common.Users getDefaultInstanceForType() {
+ return org.sonarqube.ws.Common.Users.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.Common.Users build() {
+ org.sonarqube.ws.Common.Users result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.Common.Users buildPartial() {
+ org.sonarqube.ws.Common.Users result = new org.sonarqube.ws.Common.Users(this);
+ int from_bitField0_ = bitField0_;
+ if (usersBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ users_ = java.util.Collections.unmodifiableList(users_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.users_ = users_;
+ } else {
+ result.users_ = usersBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.Common.Users) {
+ return mergeFrom((org.sonarqube.ws.Common.Users)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.Common.Users other) {
+ if (other == org.sonarqube.ws.Common.Users.getDefaultInstance()) return this;
+ if (usersBuilder_ == null) {
+ if (!other.users_.isEmpty()) {
+ if (users_.isEmpty()) {
+ users_ = other.users_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureUsersIsMutable();
+ users_.addAll(other.users_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.users_.isEmpty()) {
+ if (usersBuilder_.isEmpty()) {
+ usersBuilder_.dispose();
+ usersBuilder_ = null;
+ users_ = other.users_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ usersBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getUsersFieldBuilder() : null;
+ } else {
+ usersBuilder_.addAllMessages(other.users_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.Common.Users parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.Common.Users) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List<org.sonarqube.ws.Common.User> users_ =
+ java.util.Collections.emptyList();
+ private void ensureUsersIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ users_ = new java.util.ArrayList<org.sonarqube.ws.Common.User>(users_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder> usersBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Common.User> getUsersList() {
+ if (usersBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(users_);
+ } else {
+ return usersBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public int getUsersCount() {
+ if (usersBuilder_ == null) {
+ return users_.size();
+ } else {
+ return usersBuilder_.getCount();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public org.sonarqube.ws.Common.User getUsers(int index) {
+ if (usersBuilder_ == null) {
+ return users_.get(index);
+ } else {
+ return usersBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public Builder setUsers(
+ int index, org.sonarqube.ws.Common.User value) {
+ if (usersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureUsersIsMutable();
+ users_.set(index, value);
+ onChanged();
+ } else {
+ usersBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public Builder setUsers(
+ int index, org.sonarqube.ws.Common.User.Builder builderForValue) {
+ if (usersBuilder_ == null) {
+ ensureUsersIsMutable();
+ users_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ usersBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public Builder addUsers(org.sonarqube.ws.Common.User value) {
+ if (usersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureUsersIsMutable();
+ users_.add(value);
+ onChanged();
+ } else {
+ usersBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public Builder addUsers(
+ int index, org.sonarqube.ws.Common.User value) {
+ if (usersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureUsersIsMutable();
+ users_.add(index, value);
+ onChanged();
+ } else {
+ usersBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public Builder addUsers(
+ org.sonarqube.ws.Common.User.Builder builderForValue) {
+ if (usersBuilder_ == null) {
+ ensureUsersIsMutable();
+ users_.add(builderForValue.build());
+ onChanged();
+ } else {
+ usersBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public Builder addUsers(
+ int index, org.sonarqube.ws.Common.User.Builder builderForValue) {
+ if (usersBuilder_ == null) {
+ ensureUsersIsMutable();
+ users_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ usersBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public Builder addAllUsers(
+ java.lang.Iterable<? extends org.sonarqube.ws.Common.User> values) {
+ if (usersBuilder_ == null) {
+ ensureUsersIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, users_);
+ onChanged();
+ } else {
+ usersBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public Builder clearUsers() {
+ if (usersBuilder_ == null) {
+ users_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ usersBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public Builder removeUsers(int index) {
+ if (usersBuilder_ == null) {
+ ensureUsersIsMutable();
+ users_.remove(index);
+ onChanged();
+ } else {
+ usersBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public org.sonarqube.ws.Common.User.Builder getUsersBuilder(
+ int index) {
+ return getUsersFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder(
+ int index) {
+ if (usersBuilder_ == null) {
+ return users_.get(index); } else {
+ return usersBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.Common.UserOrBuilder>
+ getUsersOrBuilderList() {
+ if (usersBuilder_ != null) {
+ return usersBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(users_);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public org.sonarqube.ws.Common.User.Builder addUsersBuilder() {
+ return getUsersFieldBuilder().addBuilder(
+ org.sonarqube.ws.Common.User.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public org.sonarqube.ws.Common.User.Builder addUsersBuilder(
+ int index) {
+ return getUsersFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.Common.User.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.commons.User users = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Common.User.Builder>
+ getUsersBuilderList() {
+ return getUsersFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder>
+ getUsersFieldBuilder() {
+ if (usersBuilder_ == null) {
+ usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder>(
+ users_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ users_ = null;
+ }
+ return usersBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.commons.Users)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.commons.Users)
+ private static final org.sonarqube.ws.Common.Users DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Common.Users();
+ }
+
+ public static org.sonarqube.ws.Common.Users getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Users> PARSER =
+ new com.google.protobuf.AbstractParser<Users>() {
+ public Users parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Users(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Users> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Common.Users getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
public interface TextRangeOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.commons.TextRange)
com.google.protobuf.MessageOrBuilder {
@@ -4870,6 +6886,11 @@ public final class Common {
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_commons_Facet_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_commons_Facets_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_commons_Facets_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_commons_FacetValue_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -4880,11 +6901,21 @@ public final class Common {
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_commons_Rule_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_commons_Rules_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_commons_Rules_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_commons_User_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_commons_User_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_commons_Users_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_commons_Users_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_commons_TextRange_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -4902,19 +6933,23 @@ public final class Common {
"\"<\n\006Paging\022\021\n\tpageIndex\030\001 \001(\005\022\020\n\010pageSiz" +
"e\030\002 \001(\005\022\r\n\005total\030\003 \001(\005\"K\n\005Facet\022\020\n\010prope" +
"rty\030\001 \001(\t\0220\n\006values\030\002 \003(\0132 .sonarqube.ws" +
- ".commons.FacetValue\"(\n\nFacetValue\022\013\n\003val" +
- "\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\"s\n\004Rule\022\013\n\003key\030\001 \001" +
- "(\t\022\014\n\004name\030\002 \001(\t\022\014\n\004lang\030\003 \001(\t\0220\n\006status" +
- "\030\004 \001(\0162 .sonarqube.ws.commons.RuleStatus" +
- "\022\020\n\010langName\030\005 \001(\t\"B\n\004User\022\r\n\005login\030\001 \001(" +
- "\t\022\014\n\004name\030\002 \001(\t\022\r\n\005email\030\003 \001(\t\022\016\n\006active",
- "\030\004 \001(\010\"W\n\tTextRange\022\021\n\tstartLine\030\001 \001(\005\022\017" +
- "\n\007endLine\030\002 \001(\005\022\023\n\013startOffset\030\003 \001(\005\022\021\n\t" +
- "endOffset\030\004 \001(\005*E\n\010Severity\022\010\n\004INFO\020\000\022\t\n" +
- "\005MINOR\020\001\022\t\n\005MAJOR\020\002\022\014\n\010CRITICAL\020\003\022\013\n\007BLO" +
- "CKER\020\004*>\n\nRuleStatus\022\010\n\004BETA\020\000\022\016\n\nDEPREC" +
- "ATED\020\001\022\t\n\005READY\020\002\022\013\n\007REMOVED\020\003B\034\n\020org.so" +
- "narqube.wsB\006CommonH\001"
+ ".commons.FacetValue\"5\n\006Facets\022+\n\006facets\030" +
+ "\001 \003(\0132\033.sonarqube.ws.commons.Facet\"(\n\nFa" +
+ "cetValue\022\013\n\003val\030\001 \001(\t\022\r\n\005count\030\002 \001(\003\"s\n\004" +
+ "Rule\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\014\n\004lang\030" +
+ "\003 \001(\t\0220\n\006status\030\004 \001(\0162 .sonarqube.ws.com" +
+ "mons.RuleStatus\022\020\n\010langName\030\005 \001(\t\"2\n\005Rul",
+ "es\022)\n\005rules\030\001 \003(\0132\032.sonarqube.ws.commons" +
+ ".Rule\"B\n\004User\022\r\n\005login\030\001 \001(\t\022\014\n\004name\030\002 \001" +
+ "(\t\022\r\n\005email\030\003 \001(\t\022\016\n\006active\030\004 \001(\010\"2\n\005Use" +
+ "rs\022)\n\005users\030\001 \003(\0132\032.sonarqube.ws.commons" +
+ ".User\"W\n\tTextRange\022\021\n\tstartLine\030\001 \001(\005\022\017\n" +
+ "\007endLine\030\002 \001(\005\022\023\n\013startOffset\030\003 \001(\005\022\021\n\te" +
+ "ndOffset\030\004 \001(\005*E\n\010Severity\022\010\n\004INFO\020\000\022\t\n\005" +
+ "MINOR\020\001\022\t\n\005MAJOR\020\002\022\014\n\010CRITICAL\020\003\022\013\n\007BLOC" +
+ "KER\020\004*>\n\nRuleStatus\022\010\n\004BETA\020\000\022\016\n\nDEPRECA" +
+ "TED\020\001\022\t\n\005READY\020\002\022\013\n\007REMOVED\020\003B\034\n\020org.son",
+ "arqube.wsB\006CommonH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
@@ -4940,26 +6975,44 @@ public final class Common {
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_commons_Facet_descriptor,
new java.lang.String[] { "Property", "Values", });
- internal_static_sonarqube_ws_commons_FacetValue_descriptor =
+ internal_static_sonarqube_ws_commons_Facets_descriptor =
getDescriptor().getMessageTypes().get(2);
+ internal_static_sonarqube_ws_commons_Facets_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_commons_Facets_descriptor,
+ new java.lang.String[] { "Facets", });
+ internal_static_sonarqube_ws_commons_FacetValue_descriptor =
+ getDescriptor().getMessageTypes().get(3);
internal_static_sonarqube_ws_commons_FacetValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_commons_FacetValue_descriptor,
new java.lang.String[] { "Val", "Count", });
internal_static_sonarqube_ws_commons_Rule_descriptor =
- getDescriptor().getMessageTypes().get(3);
+ getDescriptor().getMessageTypes().get(4);
internal_static_sonarqube_ws_commons_Rule_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_commons_Rule_descriptor,
new java.lang.String[] { "Key", "Name", "Lang", "Status", "LangName", });
+ internal_static_sonarqube_ws_commons_Rules_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_sonarqube_ws_commons_Rules_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_commons_Rules_descriptor,
+ new java.lang.String[] { "Rules", });
internal_static_sonarqube_ws_commons_User_descriptor =
- getDescriptor().getMessageTypes().get(4);
+ getDescriptor().getMessageTypes().get(6);
internal_static_sonarqube_ws_commons_User_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_commons_User_descriptor,
new java.lang.String[] { "Login", "Name", "Email", "Active", });
+ internal_static_sonarqube_ws_commons_Users_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_sonarqube_ws_commons_Users_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_commons_Users_descriptor,
+ new java.lang.String[] { "Users", });
internal_static_sonarqube_ws_commons_TextRange_descriptor =
- getDescriptor().getMessageTypes().get(5);
+ getDescriptor().getMessageTypes().get(8);
internal_static_sonarqube_ws_commons_TextRange_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_commons_TextRange_descriptor,
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 413930f7f09..8583d8ef271 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
@@ -118,169 +118,69 @@ public final class Issues {
int index);
/**
- * <code>optional bool rulesPresentIfEmpty = 8;</code>
+ * <code>optional .sonarqube.ws.commons.Rules rules = 8;</code>
*/
- boolean hasRulesPresentIfEmpty();
+ boolean hasRules();
/**
- * <code>optional bool rulesPresentIfEmpty = 8;</code>
+ * <code>optional .sonarqube.ws.commons.Rules rules = 8;</code>
*/
- boolean getRulesPresentIfEmpty();
-
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- java.util.List<org.sonarqube.ws.Common.Rule>
- getRulesList();
+ org.sonarqube.ws.Common.Rules getRules();
/**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
+ * <code>optional .sonarqube.ws.commons.Rules rules = 8;</code>
*/
- org.sonarqube.ws.Common.Rule getRules(int index);
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- int getRulesCount();
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- java.util.List<? extends org.sonarqube.ws.Common.RuleOrBuilder>
- getRulesOrBuilderList();
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder(
- int index);
+ org.sonarqube.ws.Common.RulesOrBuilder getRulesOrBuilder();
/**
- * <code>optional bool usersPresentIfEmpty = 10;</code>
+ * <code>optional .sonarqube.ws.commons.Users users = 9;</code>
*/
- boolean hasUsersPresentIfEmpty();
+ boolean hasUsers();
/**
- * <code>optional bool usersPresentIfEmpty = 10;</code>
+ * <code>optional .sonarqube.ws.commons.Users users = 9;</code>
*/
- boolean getUsersPresentIfEmpty();
-
+ org.sonarqube.ws.Common.Users getUsers();
/**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
+ * <code>optional .sonarqube.ws.commons.Users users = 9;</code>
*/
- java.util.List<org.sonarqube.ws.Common.User>
- getUsersList();
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- org.sonarqube.ws.Common.User getUsers(int index);
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- int getUsersCount();
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- java.util.List<? extends org.sonarqube.ws.Common.UserOrBuilder>
- getUsersOrBuilderList();
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder(
- int index);
+ org.sonarqube.ws.Common.UsersOrBuilder getUsersOrBuilder();
/**
- * <code>optional bool actionPlansPresentIfEmpty = 12;</code>
+ * <code>optional .sonarqube.ws.issues.ActionPlans actionPlans = 10;</code>
*/
- boolean hasActionPlansPresentIfEmpty();
+ boolean hasActionPlans();
/**
- * <code>optional bool actionPlansPresentIfEmpty = 12;</code>
+ * <code>optional .sonarqube.ws.issues.ActionPlans actionPlans = 10;</code>
*/
- boolean getActionPlansPresentIfEmpty();
-
+ org.sonarqube.ws.Issues.ActionPlans getActionPlans();
/**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
+ * <code>optional .sonarqube.ws.issues.ActionPlans actionPlans = 10;</code>
*/
- java.util.List<org.sonarqube.ws.Issues.ActionPlan>
- getActionPlansList();
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
- */
- org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index);
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
- */
- int getActionPlansCount();
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
- */
- java.util.List<? extends org.sonarqube.ws.Issues.ActionPlanOrBuilder>
- getActionPlansOrBuilderList();
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
- */
- org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder(
- int index);
-
- /**
- * <code>optional bool languagesPresentIfEmpty = 14;</code>
- */
- boolean hasLanguagesPresentIfEmpty();
- /**
- * <code>optional bool languagesPresentIfEmpty = 14;</code>
- */
- boolean getLanguagesPresentIfEmpty();
+ org.sonarqube.ws.Issues.ActionPlansOrBuilder getActionPlansOrBuilder();
/**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- java.util.List<org.sonarqube.ws.Issues.Language>
- getLanguagesList();
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- org.sonarqube.ws.Issues.Language getLanguages(int index);
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- int getLanguagesCount();
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
+ * <code>optional .sonarqube.ws.issues.Languages languages = 11;</code>
*/
- java.util.List<? extends org.sonarqube.ws.Issues.LanguageOrBuilder>
- getLanguagesOrBuilderList();
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder(
- int index);
-
+ boolean hasLanguages();
/**
- * <code>optional bool facetsPresentIfEmpty = 16;</code>
+ * <code>optional .sonarqube.ws.issues.Languages languages = 11;</code>
*/
- boolean hasFacetsPresentIfEmpty();
+ org.sonarqube.ws.Issues.Languages getLanguages();
/**
- * <code>optional bool facetsPresentIfEmpty = 16;</code>
+ * <code>optional .sonarqube.ws.issues.Languages languages = 11;</code>
*/
- boolean getFacetsPresentIfEmpty();
+ org.sonarqube.ws.Issues.LanguagesOrBuilder getLanguagesOrBuilder();
/**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
+ * <code>optional .sonarqube.ws.commons.Facets facets = 12;</code>
*/
- java.util.List<org.sonarqube.ws.Common.Facet>
- getFacetsList();
+ boolean hasFacets();
/**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
+ * <code>optional .sonarqube.ws.commons.Facets facets = 12;</code>
*/
- org.sonarqube.ws.Common.Facet getFacets(int index);
+ org.sonarqube.ws.Common.Facets getFacets();
/**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
+ * <code>optional .sonarqube.ws.commons.Facets facets = 12;</code>
*/
- int getFacetsCount();
- /**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
- */
- java.util.List<? extends org.sonarqube.ws.Common.FacetOrBuilder>
- getFacetsOrBuilderList();
- /**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
- */
- org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder(
- int index);
+ org.sonarqube.ws.Common.FacetsOrBuilder getFacetsOrBuilder();
}
/**
* Protobuf type {@code sonarqube.ws.issues.Search}
@@ -304,16 +204,6 @@ public final class Issues {
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();
}
@java.lang.Override
@@ -392,69 +282,69 @@ public final class Issues {
components_.add(input.readMessage(org.sonarqube.ws.Issues.Component.PARSER, extensionRegistry));
break;
}
- case 64: {
+ case 66: {
+ org.sonarqube.ws.Common.Rules.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ subBuilder = rules_.toBuilder();
+ }
+ rules_ = input.readMessage(org.sonarqube.ws.Common.Rules.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(rules_);
+ rules_ = subBuilder.buildPartial();
+ }
bitField0_ |= 0x00000020;
- rulesPresentIfEmpty_ = input.readBool();
break;
}
case 74: {
- if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
- rules_ = new java.util.ArrayList<org.sonarqube.ws.Common.Rule>();
- mutable_bitField0_ |= 0x00000100;
+ org.sonarqube.ws.Common.Users.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000040) == 0x00000040)) {
+ subBuilder = users_.toBuilder();
+ }
+ users_ = input.readMessage(org.sonarqube.ws.Common.Users.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(users_);
+ users_ = subBuilder.buildPartial();
}
- rules_.add(input.readMessage(org.sonarqube.ws.Common.Rule.PARSER, extensionRegistry));
- break;
- }
- case 80: {
bitField0_ |= 0x00000040;
- usersPresentIfEmpty_ = input.readBool();
break;
}
- case 90: {
- if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
- users_ = new java.util.ArrayList<org.sonarqube.ws.Common.User>();
- mutable_bitField0_ |= 0x00000400;
+ case 82: {
+ org.sonarqube.ws.Issues.ActionPlans.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000080) == 0x00000080)) {
+ subBuilder = actionPlans_.toBuilder();
+ }
+ actionPlans_ = input.readMessage(org.sonarqube.ws.Issues.ActionPlans.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(actionPlans_);
+ actionPlans_ = subBuilder.buildPartial();
}
- users_.add(input.readMessage(org.sonarqube.ws.Common.User.PARSER, extensionRegistry));
- break;
- }
- case 96: {
bitField0_ |= 0x00000080;
- actionPlansPresentIfEmpty_ = input.readBool();
break;
}
- case 106: {
- if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
- actionPlans_ = new java.util.ArrayList<org.sonarqube.ws.Issues.ActionPlan>();
- mutable_bitField0_ |= 0x00001000;
+ case 90: {
+ org.sonarqube.ws.Issues.Languages.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000100) == 0x00000100)) {
+ subBuilder = languages_.toBuilder();
+ }
+ languages_ = input.readMessage(org.sonarqube.ws.Issues.Languages.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(languages_);
+ languages_ = subBuilder.buildPartial();
}
- actionPlans_.add(input.readMessage(org.sonarqube.ws.Issues.ActionPlan.PARSER, extensionRegistry));
- break;
- }
- case 112: {
bitField0_ |= 0x00000100;
- languagesPresentIfEmpty_ = input.readBool();
break;
}
- case 122: {
- if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
- languages_ = new java.util.ArrayList<org.sonarqube.ws.Issues.Language>();
- mutable_bitField0_ |= 0x00004000;
+ case 98: {
+ org.sonarqube.ws.Common.Facets.Builder subBuilder = null;
+ if (((bitField0_ & 0x00000200) == 0x00000200)) {
+ subBuilder = facets_.toBuilder();
}
- languages_.add(input.readMessage(org.sonarqube.ws.Issues.Language.PARSER, extensionRegistry));
- break;
- }
- case 128: {
- bitField0_ |= 0x00000200;
- facetsPresentIfEmpty_ = input.readBool();
- break;
- }
- case 138: {
- if (!((mutable_bitField0_ & 0x00010000) == 0x00010000)) {
- facets_ = new java.util.ArrayList<org.sonarqube.ws.Common.Facet>();
- mutable_bitField0_ |= 0x00010000;
+ facets_ = input.readMessage(org.sonarqube.ws.Common.Facets.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(facets_);
+ facets_ = subBuilder.buildPartial();
}
- facets_.add(input.readMessage(org.sonarqube.ws.Common.Facet.PARSER, extensionRegistry));
+ bitField0_ |= 0x00000200;
break;
}
}
@@ -472,21 +362,6 @@ public final class Issues {
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
components_ = java.util.Collections.unmodifiableList(components_);
}
- if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) {
- rules_ = java.util.Collections.unmodifiableList(rules_);
- }
- if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) {
- users_ = java.util.Collections.unmodifiableList(users_);
- }
- if (((mutable_bitField0_ & 0x00001000) == 0x00001000)) {
- actionPlans_ = java.util.Collections.unmodifiableList(actionPlans_);
- }
- if (((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
- languages_ = java.util.Collections.unmodifiableList(languages_);
- }
- if (((mutable_bitField0_ & 0x00010000) == 0x00010000)) {
- facets_ = java.util.Collections.unmodifiableList(facets_);
- }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -663,254 +538,109 @@ public final class Issues {
return components_.get(index);
}
- public static final int RULESPRESENTIFEMPTY_FIELD_NUMBER = 8;
- private boolean rulesPresentIfEmpty_;
+ public static final int RULES_FIELD_NUMBER = 8;
+ private org.sonarqube.ws.Common.Rules rules_;
/**
- * <code>optional bool rulesPresentIfEmpty = 8;</code>
+ * <code>optional .sonarqube.ws.commons.Rules rules = 8;</code>
*/
- public boolean hasRulesPresentIfEmpty() {
+ public boolean hasRules() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
- * <code>optional bool rulesPresentIfEmpty = 8;</code>
- */
- public boolean getRulesPresentIfEmpty() {
- return rulesPresentIfEmpty_;
- }
-
- public static final int RULES_FIELD_NUMBER = 9;
- private java.util.List<org.sonarqube.ws.Common.Rule> rules_;
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
+ * <code>optional .sonarqube.ws.commons.Rules rules = 8;</code>
*/
- public java.util.List<org.sonarqube.ws.Common.Rule> getRulesList() {
- return rules_;
+ public org.sonarqube.ws.Common.Rules getRules() {
+ return rules_ == null ? org.sonarqube.ws.Common.Rules.getDefaultInstance() : rules_;
}
/**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
+ * <code>optional .sonarqube.ws.commons.Rules rules = 8;</code>
*/
- public java.util.List<? extends org.sonarqube.ws.Common.RuleOrBuilder>
- getRulesOrBuilderList() {
- return rules_;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- public int getRulesCount() {
- return rules_.size();
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- public org.sonarqube.ws.Common.Rule getRules(int index) {
- return rules_.get(index);
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- public org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder(
- int index) {
- return rules_.get(index);
+ public org.sonarqube.ws.Common.RulesOrBuilder getRulesOrBuilder() {
+ return rules_ == null ? org.sonarqube.ws.Common.Rules.getDefaultInstance() : rules_;
}
- public static final int USERSPRESENTIFEMPTY_FIELD_NUMBER = 10;
- private boolean usersPresentIfEmpty_;
+ public static final int USERS_FIELD_NUMBER = 9;
+ private org.sonarqube.ws.Common.Users users_;
/**
- * <code>optional bool usersPresentIfEmpty = 10;</code>
+ * <code>optional .sonarqube.ws.commons.Users users = 9;</code>
*/
- public boolean hasUsersPresentIfEmpty() {
+ public boolean hasUsers() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
- * <code>optional bool usersPresentIfEmpty = 10;</code>
+ * <code>optional .sonarqube.ws.commons.Users users = 9;</code>
*/
- public boolean getUsersPresentIfEmpty() {
- return usersPresentIfEmpty_;
+ public org.sonarqube.ws.Common.Users getUsers() {
+ return users_ == null ? org.sonarqube.ws.Common.Users.getDefaultInstance() : users_;
}
-
- public static final int USERS_FIELD_NUMBER = 11;
- private java.util.List<org.sonarqube.ws.Common.User> users_;
/**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
+ * <code>optional .sonarqube.ws.commons.Users users = 9;</code>
*/
- public java.util.List<org.sonarqube.ws.Common.User> getUsersList() {
- return users_;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Common.UserOrBuilder>
- getUsersOrBuilderList() {
- return users_;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- public int getUsersCount() {
- return users_.size();
- }
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- public org.sonarqube.ws.Common.User getUsers(int index) {
- return users_.get(index);
- }
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- public org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder(
- int index) {
- return users_.get(index);
+ public org.sonarqube.ws.Common.UsersOrBuilder getUsersOrBuilder() {
+ return users_ == null ? org.sonarqube.ws.Common.Users.getDefaultInstance() : users_;
}
- public static final int ACTIONPLANSPRESENTIFEMPTY_FIELD_NUMBER = 12;
- private boolean actionPlansPresentIfEmpty_;
+ public static final int ACTIONPLANS_FIELD_NUMBER = 10;
+ private org.sonarqube.ws.Issues.ActionPlans actionPlans_;
/**
- * <code>optional bool actionPlansPresentIfEmpty = 12;</code>
+ * <code>optional .sonarqube.ws.issues.ActionPlans actionPlans = 10;</code>
*/
- public boolean hasActionPlansPresentIfEmpty() {
+ public boolean hasActionPlans() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
- * <code>optional bool actionPlansPresentIfEmpty = 12;</code>
- */
- public boolean getActionPlansPresentIfEmpty() {
- return actionPlansPresentIfEmpty_;
- }
-
- public static final int ACTIONPLANS_FIELD_NUMBER = 13;
- private java.util.List<org.sonarqube.ws.Issues.ActionPlan> actionPlans_;
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
- */
- public java.util.List<org.sonarqube.ws.Issues.ActionPlan> getActionPlansList() {
- return actionPlans_;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Issues.ActionPlanOrBuilder>
- getActionPlansOrBuilderList() {
- return actionPlans_;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
- */
- public int getActionPlansCount() {
- return actionPlans_.size();
- }
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
+ * <code>optional .sonarqube.ws.issues.ActionPlans actionPlans = 10;</code>
*/
- public org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index) {
- return actionPlans_.get(index);
+ public org.sonarqube.ws.Issues.ActionPlans getActionPlans() {
+ return actionPlans_ == null ? org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance() : actionPlans_;
}
/**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
+ * <code>optional .sonarqube.ws.issues.ActionPlans actionPlans = 10;</code>
*/
- public org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder(
- int index) {
- return actionPlans_.get(index);
+ public org.sonarqube.ws.Issues.ActionPlansOrBuilder getActionPlansOrBuilder() {
+ return actionPlans_ == null ? org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance() : actionPlans_;
}
- public static final int LANGUAGESPRESENTIFEMPTY_FIELD_NUMBER = 14;
- private boolean languagesPresentIfEmpty_;
+ public static final int LANGUAGES_FIELD_NUMBER = 11;
+ private org.sonarqube.ws.Issues.Languages languages_;
/**
- * <code>optional bool languagesPresentIfEmpty = 14;</code>
+ * <code>optional .sonarqube.ws.issues.Languages languages = 11;</code>
*/
- public boolean hasLanguagesPresentIfEmpty() {
+ public boolean hasLanguages() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
- * <code>optional bool languagesPresentIfEmpty = 14;</code>
+ * <code>optional .sonarqube.ws.issues.Languages languages = 11;</code>
*/
- public boolean getLanguagesPresentIfEmpty() {
- return languagesPresentIfEmpty_;
+ public org.sonarqube.ws.Issues.Languages getLanguages() {
+ return languages_ == null ? org.sonarqube.ws.Issues.Languages.getDefaultInstance() : languages_;
}
-
- public static final int LANGUAGES_FIELD_NUMBER = 15;
- private java.util.List<org.sonarqube.ws.Issues.Language> languages_;
/**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
+ * <code>optional .sonarqube.ws.issues.Languages languages = 11;</code>
*/
- public java.util.List<org.sonarqube.ws.Issues.Language> getLanguagesList() {
- return languages_;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Issues.LanguageOrBuilder>
- getLanguagesOrBuilderList() {
- return languages_;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- public int getLanguagesCount() {
- return languages_.size();
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- public org.sonarqube.ws.Issues.Language getLanguages(int index) {
- return languages_.get(index);
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- public org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder(
- int index) {
- return languages_.get(index);
+ public org.sonarqube.ws.Issues.LanguagesOrBuilder getLanguagesOrBuilder() {
+ return languages_ == null ? org.sonarqube.ws.Issues.Languages.getDefaultInstance() : languages_;
}
- public static final int FACETSPRESENTIFEMPTY_FIELD_NUMBER = 16;
- private boolean facetsPresentIfEmpty_;
+ public static final int FACETS_FIELD_NUMBER = 12;
+ private org.sonarqube.ws.Common.Facets facets_;
/**
- * <code>optional bool facetsPresentIfEmpty = 16;</code>
+ * <code>optional .sonarqube.ws.commons.Facets facets = 12;</code>
*/
- public boolean hasFacetsPresentIfEmpty() {
+ public boolean hasFacets() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
- * <code>optional bool facetsPresentIfEmpty = 16;</code>
- */
- public boolean getFacetsPresentIfEmpty() {
- return facetsPresentIfEmpty_;
- }
-
- public static final int FACETS_FIELD_NUMBER = 17;
- private java.util.List<org.sonarqube.ws.Common.Facet> facets_;
- /**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
- */
- public java.util.List<org.sonarqube.ws.Common.Facet> getFacetsList() {
- return facets_;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Common.FacetOrBuilder>
- getFacetsOrBuilderList() {
- return facets_;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
+ * <code>optional .sonarqube.ws.commons.Facets facets = 12;</code>
*/
- public int getFacetsCount() {
- return facets_.size();
+ public org.sonarqube.ws.Common.Facets getFacets() {
+ return facets_ == null ? org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_;
}
/**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
+ * <code>optional .sonarqube.ws.commons.Facets facets = 12;</code>
*/
- public org.sonarqube.ws.Common.Facet getFacets(int index) {
- return facets_.get(index);
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
- */
- public org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder(
- int index) {
- return facets_.get(index);
+ public org.sonarqube.ws.Common.FacetsOrBuilder getFacetsOrBuilder() {
+ return facets_ == null ? org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_;
}
private byte memoizedIsInitialized = -1;
@@ -947,34 +677,19 @@ public final class Issues {
output.writeMessage(7, components_.get(i));
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeBool(8, rulesPresentIfEmpty_);
- }
- for (int i = 0; i < rules_.size(); i++) {
- output.writeMessage(9, rules_.get(i));
+ output.writeMessage(8, getRules());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
- output.writeBool(10, usersPresentIfEmpty_);
- }
- for (int i = 0; i < users_.size(); i++) {
- output.writeMessage(11, users_.get(i));
+ output.writeMessage(9, getUsers());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
- output.writeBool(12, actionPlansPresentIfEmpty_);
- }
- for (int i = 0; i < actionPlans_.size(); i++) {
- output.writeMessage(13, actionPlans_.get(i));
+ output.writeMessage(10, getActionPlans());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
- output.writeBool(14, languagesPresentIfEmpty_);
- }
- for (int i = 0; i < languages_.size(); i++) {
- output.writeMessage(15, languages_.get(i));
+ output.writeMessage(11, getLanguages());
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
- output.writeBool(16, facetsPresentIfEmpty_);
- }
- for (int i = 0; i < facets_.size(); i++) {
- output.writeMessage(17, facets_.get(i));
+ output.writeMessage(12, getFacets());
}
unknownFields.writeTo(output);
}
@@ -1015,43 +730,23 @@ public final class Issues {
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(8, rulesPresentIfEmpty_);
- }
- for (int i = 0; i < rules_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(9, rules_.get(i));
+ .computeMessageSize(8, getRules());
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(10, usersPresentIfEmpty_);
- }
- for (int i = 0; i < users_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(11, users_.get(i));
+ .computeMessageSize(9, getUsers());
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(12, actionPlansPresentIfEmpty_);
- }
- for (int i = 0; i < actionPlans_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(13, actionPlans_.get(i));
+ .computeMessageSize(10, getActionPlans());
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(14, languagesPresentIfEmpty_);
- }
- for (int i = 0; i < languages_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(15, languages_.get(i));
+ .computeMessageSize(11, getLanguages());
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(16, facetsPresentIfEmpty_);
- }
- for (int i = 0; i < facets_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(17, facets_.get(i));
+ .computeMessageSize(12, getFacets());
}
size += unknownFields.getSerializedSize();
memoizedSerializedSize = size;
@@ -1203,46 +898,36 @@ public final class Issues {
} else {
componentsBuilder_.clear();
}
- rulesPresentIfEmpty_ = false;
- bitField0_ = (bitField0_ & ~0x00000080);
if (rulesBuilder_ == null) {
- rules_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000100);
+ rules_ = null;
} else {
rulesBuilder_.clear();
}
- usersPresentIfEmpty_ = false;
- bitField0_ = (bitField0_ & ~0x00000200);
+ bitField0_ = (bitField0_ & ~0x00000080);
if (usersBuilder_ == null) {
- users_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000400);
+ users_ = null;
} else {
usersBuilder_.clear();
}
- actionPlansPresentIfEmpty_ = false;
- bitField0_ = (bitField0_ & ~0x00000800);
+ bitField0_ = (bitField0_ & ~0x00000100);
if (actionPlansBuilder_ == null) {
- actionPlans_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00001000);
+ actionPlans_ = null;
} else {
actionPlansBuilder_.clear();
}
- languagesPresentIfEmpty_ = false;
- bitField0_ = (bitField0_ & ~0x00002000);
+ bitField0_ = (bitField0_ & ~0x00000200);
if (languagesBuilder_ == null) {
- languages_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00004000);
+ languages_ = null;
} else {
languagesBuilder_.clear();
}
- facetsPresentIfEmpty_ = false;
- bitField0_ = (bitField0_ & ~0x00008000);
+ bitField0_ = (bitField0_ & ~0x00000400);
if (facetsBuilder_ == null) {
- facets_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00010000);
+ facets_ = null;
} else {
facetsBuilder_.clear();
}
+ bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
@@ -1312,64 +997,39 @@ public final class Issues {
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000020;
}
- result.rulesPresentIfEmpty_ = rulesPresentIfEmpty_;
if (rulesBuilder_ == null) {
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- rules_ = java.util.Collections.unmodifiableList(rules_);
- bitField0_ = (bitField0_ & ~0x00000100);
- }
result.rules_ = rules_;
} else {
result.rules_ = rulesBuilder_.build();
}
- if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
+ if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000040;
}
- result.usersPresentIfEmpty_ = usersPresentIfEmpty_;
if (usersBuilder_ == null) {
- if (((bitField0_ & 0x00000400) == 0x00000400)) {
- users_ = java.util.Collections.unmodifiableList(users_);
- bitField0_ = (bitField0_ & ~0x00000400);
- }
result.users_ = users_;
} else {
result.users_ = usersBuilder_.build();
}
- if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
+ if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000080;
}
- result.actionPlansPresentIfEmpty_ = actionPlansPresentIfEmpty_;
if (actionPlansBuilder_ == null) {
- if (((bitField0_ & 0x00001000) == 0x00001000)) {
- actionPlans_ = java.util.Collections.unmodifiableList(actionPlans_);
- bitField0_ = (bitField0_ & ~0x00001000);
- }
result.actionPlans_ = actionPlans_;
} else {
result.actionPlans_ = actionPlansBuilder_.build();
}
- if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
+ if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000100;
}
- result.languagesPresentIfEmpty_ = languagesPresentIfEmpty_;
if (languagesBuilder_ == null) {
- if (((bitField0_ & 0x00004000) == 0x00004000)) {
- languages_ = java.util.Collections.unmodifiableList(languages_);
- bitField0_ = (bitField0_ & ~0x00004000);
- }
result.languages_ = languages_;
} else {
result.languages_ = languagesBuilder_.build();
}
- if (((from_bitField0_ & 0x00008000) == 0x00008000)) {
+ if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000200;
}
- result.facetsPresentIfEmpty_ = facetsPresentIfEmpty_;
if (facetsBuilder_ == null) {
- if (((bitField0_ & 0x00010000) == 0x00010000)) {
- facets_ = java.util.Collections.unmodifiableList(facets_);
- bitField0_ = (bitField0_ & ~0x00010000);
- }
result.facets_ = facets_;
} else {
result.facets_ = facetsBuilder_.build();
@@ -1457,150 +1117,20 @@ public final class Issues {
}
}
}
- if (other.hasRulesPresentIfEmpty()) {
- setRulesPresentIfEmpty(other.getRulesPresentIfEmpty());
+ if (other.hasRules()) {
+ mergeRules(other.getRules());
}
- if (rulesBuilder_ == null) {
- if (!other.rules_.isEmpty()) {
- if (rules_.isEmpty()) {
- rules_ = other.rules_;
- bitField0_ = (bitField0_ & ~0x00000100);
- } else {
- ensureRulesIsMutable();
- rules_.addAll(other.rules_);
- }
- onChanged();
- }
- } else {
- if (!other.rules_.isEmpty()) {
- if (rulesBuilder_.isEmpty()) {
- rulesBuilder_.dispose();
- rulesBuilder_ = null;
- rules_ = other.rules_;
- bitField0_ = (bitField0_ & ~0x00000100);
- rulesBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getRulesFieldBuilder() : null;
- } else {
- rulesBuilder_.addAllMessages(other.rules_);
- }
- }
+ if (other.hasUsers()) {
+ mergeUsers(other.getUsers());
}
- if (other.hasUsersPresentIfEmpty()) {
- setUsersPresentIfEmpty(other.getUsersPresentIfEmpty());
+ if (other.hasActionPlans()) {
+ mergeActionPlans(other.getActionPlans());
}
- if (usersBuilder_ == null) {
- if (!other.users_.isEmpty()) {
- if (users_.isEmpty()) {
- users_ = other.users_;
- bitField0_ = (bitField0_ & ~0x00000400);
- } else {
- ensureUsersIsMutable();
- users_.addAll(other.users_);
- }
- onChanged();
- }
- } else {
- if (!other.users_.isEmpty()) {
- if (usersBuilder_.isEmpty()) {
- usersBuilder_.dispose();
- usersBuilder_ = null;
- users_ = other.users_;
- bitField0_ = (bitField0_ & ~0x00000400);
- usersBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getUsersFieldBuilder() : null;
- } else {
- usersBuilder_.addAllMessages(other.users_);
- }
- }
+ if (other.hasLanguages()) {
+ mergeLanguages(other.getLanguages());
}
- if (other.hasActionPlansPresentIfEmpty()) {
- setActionPlansPresentIfEmpty(other.getActionPlansPresentIfEmpty());
- }
- if (actionPlansBuilder_ == null) {
- if (!other.actionPlans_.isEmpty()) {
- if (actionPlans_.isEmpty()) {
- actionPlans_ = other.actionPlans_;
- bitField0_ = (bitField0_ & ~0x00001000);
- } else {
- ensureActionPlansIsMutable();
- actionPlans_.addAll(other.actionPlans_);
- }
- onChanged();
- }
- } else {
- if (!other.actionPlans_.isEmpty()) {
- if (actionPlansBuilder_.isEmpty()) {
- actionPlansBuilder_.dispose();
- actionPlansBuilder_ = null;
- actionPlans_ = other.actionPlans_;
- bitField0_ = (bitField0_ & ~0x00001000);
- actionPlansBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getActionPlansFieldBuilder() : null;
- } else {
- actionPlansBuilder_.addAllMessages(other.actionPlans_);
- }
- }
- }
- if (other.hasLanguagesPresentIfEmpty()) {
- setLanguagesPresentIfEmpty(other.getLanguagesPresentIfEmpty());
- }
- if (languagesBuilder_ == null) {
- if (!other.languages_.isEmpty()) {
- if (languages_.isEmpty()) {
- languages_ = other.languages_;
- bitField0_ = (bitField0_ & ~0x00004000);
- } else {
- ensureLanguagesIsMutable();
- languages_.addAll(other.languages_);
- }
- onChanged();
- }
- } else {
- if (!other.languages_.isEmpty()) {
- if (languagesBuilder_.isEmpty()) {
- languagesBuilder_.dispose();
- languagesBuilder_ = null;
- languages_ = other.languages_;
- bitField0_ = (bitField0_ & ~0x00004000);
- languagesBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getLanguagesFieldBuilder() : null;
- } else {
- languagesBuilder_.addAllMessages(other.languages_);
- }
- }
- }
- if (other.hasFacetsPresentIfEmpty()) {
- setFacetsPresentIfEmpty(other.getFacetsPresentIfEmpty());
- }
- if (facetsBuilder_ == null) {
- if (!other.facets_.isEmpty()) {
- if (facets_.isEmpty()) {
- facets_ = other.facets_;
- bitField0_ = (bitField0_ & ~0x00010000);
- } else {
- ensureFacetsIsMutable();
- facets_.addAll(other.facets_);
- }
- onChanged();
- }
- } else {
- if (!other.facets_.isEmpty()) {
- if (facetsBuilder_.isEmpty()) {
- facetsBuilder_.dispose();
- facetsBuilder_ = null;
- facets_ = other.facets_;
- bitField0_ = (bitField0_ & ~0x00010000);
- facetsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getFacetsFieldBuilder() : null;
- } else {
- facetsBuilder_.addAllMessages(other.facets_);
- }
- }
+ if (other.hasFacets()) {
+ mergeFacets(other.getFacets());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
@@ -2372,271 +1902,117 @@ public final class Issues {
return componentsBuilder_;
}
- private boolean rulesPresentIfEmpty_ ;
+ private org.sonarqube.ws.Common.Rules rules_ = null;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Rules, org.sonarqube.ws.Common.Rules.Builder, org.sonarqube.ws.Common.RulesOrBuilder> rulesBuilder_;
/**
- * <code>optional bool rulesPresentIfEmpty = 8;</code>
+ * <code>optional .sonarqube.ws.commons.Rules rules = 8;</code>
*/
- public boolean hasRulesPresentIfEmpty() {
+ public boolean hasRules() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
- * <code>optional bool rulesPresentIfEmpty = 8;</code>
- */
- public boolean getRulesPresentIfEmpty() {
- return rulesPresentIfEmpty_;
- }
- /**
- * <code>optional bool rulesPresentIfEmpty = 8;</code>
- */
- public Builder setRulesPresentIfEmpty(boolean value) {
- bitField0_ |= 0x00000080;
- rulesPresentIfEmpty_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional bool rulesPresentIfEmpty = 8;</code>
- */
- public Builder clearRulesPresentIfEmpty() {
- bitField0_ = (bitField0_ & ~0x00000080);
- rulesPresentIfEmpty_ = false;
- onChanged();
- return this;
- }
-
- private java.util.List<org.sonarqube.ws.Common.Rule> rules_ =
- java.util.Collections.emptyList();
- private void ensureRulesIsMutable() {
- if (!((bitField0_ & 0x00000100) == 0x00000100)) {
- rules_ = new java.util.ArrayList<org.sonarqube.ws.Common.Rule>(rules_);
- bitField0_ |= 0x00000100;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder> rulesBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
+ * <code>optional .sonarqube.ws.commons.Rules rules = 8;</code>
*/
- public java.util.List<org.sonarqube.ws.Common.Rule> getRulesList() {
+ public org.sonarqube.ws.Common.Rules getRules() {
if (rulesBuilder_ == null) {
- return java.util.Collections.unmodifiableList(rules_);
+ return rules_ == null ? org.sonarqube.ws.Common.Rules.getDefaultInstance() : rules_;
} else {
- return rulesBuilder_.getMessageList();
+ return rulesBuilder_.getMessage();
}
}
/**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
+ * <code>optional .sonarqube.ws.commons.Rules rules = 8;</code>
*/
- public int getRulesCount() {
- if (rulesBuilder_ == null) {
- return rules_.size();
- } else {
- return rulesBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- public org.sonarqube.ws.Common.Rule getRules(int index) {
- if (rulesBuilder_ == null) {
- return rules_.get(index);
- } else {
- return rulesBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- public Builder setRules(
- int index, org.sonarqube.ws.Common.Rule value) {
+ public Builder setRules(org.sonarqube.ws.Common.Rules value) {
if (rulesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureRulesIsMutable();
- rules_.set(index, value);
+ rules_ = value;
onChanged();
} else {
- rulesBuilder_.setMessage(index, value);
+ rulesBuilder_.setMessage(value);
}
+ bitField0_ |= 0x00000080;
return this;
}
/**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
+ * <code>optional .sonarqube.ws.commons.Rules rules = 8;</code>
*/
public Builder setRules(
- int index, org.sonarqube.ws.Common.Rule.Builder builderForValue) {
+ org.sonarqube.ws.Common.Rules.Builder builderForValue) {
if (rulesBuilder_ == null) {
- ensureRulesIsMutable();
- rules_.set(index, builderForValue.build());
+ rules_ = builderForValue.build();
onChanged();
} else {
- rulesBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- public Builder addRules(org.sonarqube.ws.Common.Rule value) {
- if (rulesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureRulesIsMutable();
- rules_.add(value);
- onChanged();
- } else {
- rulesBuilder_.addMessage(value);
+ rulesBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00000080;
return this;
}
/**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
+ * <code>optional .sonarqube.ws.commons.Rules rules = 8;</code>
*/
- public Builder addRules(
- int index, org.sonarqube.ws.Common.Rule value) {
+ public Builder mergeRules(org.sonarqube.ws.Common.Rules value) {
if (rulesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
+ if (((bitField0_ & 0x00000080) == 0x00000080) &&
+ rules_ != null &&
+ rules_ != org.sonarqube.ws.Common.Rules.getDefaultInstance()) {
+ rules_ =
+ org.sonarqube.ws.Common.Rules.newBuilder(rules_).mergeFrom(value).buildPartial();
+ } else {
+ rules_ = value;
}
- ensureRulesIsMutable();
- rules_.add(index, value);
onChanged();
} else {
- rulesBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- public Builder addRules(
- org.sonarqube.ws.Common.Rule.Builder builderForValue) {
- if (rulesBuilder_ == null) {
- ensureRulesIsMutable();
- rules_.add(builderForValue.build());
- onChanged();
- } else {
- rulesBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- public Builder addRules(
- int index, org.sonarqube.ws.Common.Rule.Builder builderForValue) {
- if (rulesBuilder_ == null) {
- ensureRulesIsMutable();
- rules_.add(index, builderForValue.build());
- onChanged();
- } else {
- rulesBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- public Builder addAllRules(
- java.lang.Iterable<? extends org.sonarqube.ws.Common.Rule> values) {
- if (rulesBuilder_ == null) {
- ensureRulesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, rules_);
- onChanged();
- } else {
- rulesBuilder_.addAllMessages(values);
+ rulesBuilder_.mergeFrom(value);
}
+ bitField0_ |= 0x00000080;
return this;
}
/**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
+ * <code>optional .sonarqube.ws.commons.Rules rules = 8;</code>
*/
public Builder clearRules() {
if (rulesBuilder_ == null) {
- rules_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000100);
+ rules_ = null;
onChanged();
} else {
rulesBuilder_.clear();
}
+ bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- public Builder removeRules(int index) {
- if (rulesBuilder_ == null) {
- ensureRulesIsMutable();
- rules_.remove(index);
- onChanged();
- } else {
- rulesBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
+ * <code>optional .sonarqube.ws.commons.Rules rules = 8;</code>
*/
- public org.sonarqube.ws.Common.Rule.Builder getRulesBuilder(
- int index) {
- return getRulesFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- public org.sonarqube.ws.Common.RuleOrBuilder getRulesOrBuilder(
- int index) {
- if (rulesBuilder_ == null) {
- return rules_.get(index); } else {
- return rulesBuilder_.getMessageOrBuilder(index);
- }
+ public org.sonarqube.ws.Common.Rules.Builder getRulesBuilder() {
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return getRulesFieldBuilder().getBuilder();
}
/**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
+ * <code>optional .sonarqube.ws.commons.Rules rules = 8;</code>
*/
- public java.util.List<? extends org.sonarqube.ws.Common.RuleOrBuilder>
- getRulesOrBuilderList() {
+ public org.sonarqube.ws.Common.RulesOrBuilder getRulesOrBuilder() {
if (rulesBuilder_ != null) {
- return rulesBuilder_.getMessageOrBuilderList();
+ return rulesBuilder_.getMessageOrBuilder();
} else {
- return java.util.Collections.unmodifiableList(rules_);
+ return rules_ == null ?
+ org.sonarqube.ws.Common.Rules.getDefaultInstance() : rules_;
}
}
/**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- public org.sonarqube.ws.Common.Rule.Builder addRulesBuilder() {
- return getRulesFieldBuilder().addBuilder(
- org.sonarqube.ws.Common.Rule.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
- */
- public org.sonarqube.ws.Common.Rule.Builder addRulesBuilder(
- int index) {
- return getRulesFieldBuilder().addBuilder(
- index, org.sonarqube.ws.Common.Rule.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Rule rules = 9;</code>
+ * <code>optional .sonarqube.ws.commons.Rules rules = 8;</code>
*/
- public java.util.List<org.sonarqube.ws.Common.Rule.Builder>
- getRulesBuilderList() {
- return getRulesFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder>
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Rules, org.sonarqube.ws.Common.Rules.Builder, org.sonarqube.ws.Common.RulesOrBuilder>
getRulesFieldBuilder() {
if (rulesBuilder_ == null) {
- rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Common.Rule, org.sonarqube.ws.Common.Rule.Builder, org.sonarqube.ws.Common.RuleOrBuilder>(
- rules_,
- ((bitField0_ & 0x00000100) == 0x00000100),
+ rulesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Rules, org.sonarqube.ws.Common.Rules.Builder, org.sonarqube.ws.Common.RulesOrBuilder>(
+ getRules(),
getParentForChildren(),
isClean());
rules_ = null;
@@ -2644,271 +2020,117 @@ public final class Issues {
return rulesBuilder_;
}
- private boolean usersPresentIfEmpty_ ;
- /**
- * <code>optional bool usersPresentIfEmpty = 10;</code>
- */
- public boolean hasUsersPresentIfEmpty() {
- return ((bitField0_ & 0x00000200) == 0x00000200);
- }
- /**
- * <code>optional bool usersPresentIfEmpty = 10;</code>
- */
- public boolean getUsersPresentIfEmpty() {
- return usersPresentIfEmpty_;
- }
- /**
- * <code>optional bool usersPresentIfEmpty = 10;</code>
- */
- public Builder setUsersPresentIfEmpty(boolean value) {
- bitField0_ |= 0x00000200;
- usersPresentIfEmpty_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional bool usersPresentIfEmpty = 10;</code>
- */
- public Builder clearUsersPresentIfEmpty() {
- bitField0_ = (bitField0_ & ~0x00000200);
- usersPresentIfEmpty_ = false;
- onChanged();
- return this;
- }
-
- private java.util.List<org.sonarqube.ws.Common.User> users_ =
- java.util.Collections.emptyList();
- private void ensureUsersIsMutable() {
- if (!((bitField0_ & 0x00000400) == 0x00000400)) {
- users_ = new java.util.ArrayList<org.sonarqube.ws.Common.User>(users_);
- bitField0_ |= 0x00000400;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder> usersBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- public java.util.List<org.sonarqube.ws.Common.User> getUsersList() {
- if (usersBuilder_ == null) {
- return java.util.Collections.unmodifiableList(users_);
- } else {
- return usersBuilder_.getMessageList();
- }
- }
+ private org.sonarqube.ws.Common.Users users_ = null;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Users, org.sonarqube.ws.Common.Users.Builder, org.sonarqube.ws.Common.UsersOrBuilder> usersBuilder_;
/**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
+ * <code>optional .sonarqube.ws.commons.Users users = 9;</code>
*/
- public int getUsersCount() {
- if (usersBuilder_ == null) {
- return users_.size();
- } else {
- return usersBuilder_.getCount();
- }
+ public boolean hasUsers() {
+ return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
+ * <code>optional .sonarqube.ws.commons.Users users = 9;</code>
*/
- public org.sonarqube.ws.Common.User getUsers(int index) {
+ public org.sonarqube.ws.Common.Users getUsers() {
if (usersBuilder_ == null) {
- return users_.get(index);
+ return users_ == null ? org.sonarqube.ws.Common.Users.getDefaultInstance() : users_;
} else {
- return usersBuilder_.getMessage(index);
+ return usersBuilder_.getMessage();
}
}
/**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
+ * <code>optional .sonarqube.ws.commons.Users users = 9;</code>
*/
- public Builder setUsers(
- int index, org.sonarqube.ws.Common.User value) {
+ public Builder setUsers(org.sonarqube.ws.Common.Users value) {
if (usersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureUsersIsMutable();
- users_.set(index, value);
+ users_ = value;
onChanged();
} else {
- usersBuilder_.setMessage(index, value);
+ usersBuilder_.setMessage(value);
}
+ bitField0_ |= 0x00000100;
return this;
}
/**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
+ * <code>optional .sonarqube.ws.commons.Users users = 9;</code>
*/
public Builder setUsers(
- int index, org.sonarqube.ws.Common.User.Builder builderForValue) {
- if (usersBuilder_ == null) {
- ensureUsersIsMutable();
- users_.set(index, builderForValue.build());
- onChanged();
- } else {
- usersBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- public Builder addUsers(org.sonarqube.ws.Common.User value) {
+ org.sonarqube.ws.Common.Users.Builder builderForValue) {
if (usersBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureUsersIsMutable();
- users_.add(value);
+ users_ = builderForValue.build();
onChanged();
} else {
- usersBuilder_.addMessage(value);
+ usersBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00000100;
return this;
}
/**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
+ * <code>optional .sonarqube.ws.commons.Users users = 9;</code>
*/
- public Builder addUsers(
- int index, org.sonarqube.ws.Common.User value) {
+ public Builder mergeUsers(org.sonarqube.ws.Common.Users value) {
if (usersBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
+ if (((bitField0_ & 0x00000100) == 0x00000100) &&
+ users_ != null &&
+ users_ != org.sonarqube.ws.Common.Users.getDefaultInstance()) {
+ users_ =
+ org.sonarqube.ws.Common.Users.newBuilder(users_).mergeFrom(value).buildPartial();
+ } else {
+ users_ = value;
}
- ensureUsersIsMutable();
- users_.add(index, value);
onChanged();
} else {
- usersBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- public Builder addUsers(
- org.sonarqube.ws.Common.User.Builder builderForValue) {
- if (usersBuilder_ == null) {
- ensureUsersIsMutable();
- users_.add(builderForValue.build());
- onChanged();
- } else {
- usersBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- public Builder addUsers(
- int index, org.sonarqube.ws.Common.User.Builder builderForValue) {
- if (usersBuilder_ == null) {
- ensureUsersIsMutable();
- users_.add(index, builderForValue.build());
- onChanged();
- } else {
- usersBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- public Builder addAllUsers(
- java.lang.Iterable<? extends org.sonarqube.ws.Common.User> values) {
- if (usersBuilder_ == null) {
- ensureUsersIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, users_);
- onChanged();
- } else {
- usersBuilder_.addAllMessages(values);
+ usersBuilder_.mergeFrom(value);
}
+ bitField0_ |= 0x00000100;
return this;
}
/**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
+ * <code>optional .sonarqube.ws.commons.Users users = 9;</code>
*/
public Builder clearUsers() {
if (usersBuilder_ == null) {
- users_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000400);
+ users_ = null;
onChanged();
} else {
usersBuilder_.clear();
}
+ bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
/**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- public Builder removeUsers(int index) {
- if (usersBuilder_ == null) {
- ensureUsersIsMutable();
- users_.remove(index);
- onChanged();
- } else {
- usersBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
+ * <code>optional .sonarqube.ws.commons.Users users = 9;</code>
*/
- public org.sonarqube.ws.Common.User.Builder getUsersBuilder(
- int index) {
- return getUsersFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- public org.sonarqube.ws.Common.UserOrBuilder getUsersOrBuilder(
- int index) {
- if (usersBuilder_ == null) {
- return users_.get(index); } else {
- return usersBuilder_.getMessageOrBuilder(index);
- }
+ public org.sonarqube.ws.Common.Users.Builder getUsersBuilder() {
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return getUsersFieldBuilder().getBuilder();
}
/**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
+ * <code>optional .sonarqube.ws.commons.Users users = 9;</code>
*/
- public java.util.List<? extends org.sonarqube.ws.Common.UserOrBuilder>
- getUsersOrBuilderList() {
+ public org.sonarqube.ws.Common.UsersOrBuilder getUsersOrBuilder() {
if (usersBuilder_ != null) {
- return usersBuilder_.getMessageOrBuilderList();
+ return usersBuilder_.getMessageOrBuilder();
} else {
- return java.util.Collections.unmodifiableList(users_);
+ return users_ == null ?
+ org.sonarqube.ws.Common.Users.getDefaultInstance() : users_;
}
}
/**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
+ * <code>optional .sonarqube.ws.commons.Users users = 9;</code>
*/
- public org.sonarqube.ws.Common.User.Builder addUsersBuilder() {
- return getUsersFieldBuilder().addBuilder(
- org.sonarqube.ws.Common.User.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- public org.sonarqube.ws.Common.User.Builder addUsersBuilder(
- int index) {
- return getUsersFieldBuilder().addBuilder(
- index, org.sonarqube.ws.Common.User.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.commons.User users = 11;</code>
- */
- public java.util.List<org.sonarqube.ws.Common.User.Builder>
- getUsersBuilderList() {
- return getUsersFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder>
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Users, org.sonarqube.ws.Common.Users.Builder, org.sonarqube.ws.Common.UsersOrBuilder>
getUsersFieldBuilder() {
if (usersBuilder_ == null) {
- usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Common.User, org.sonarqube.ws.Common.User.Builder, org.sonarqube.ws.Common.UserOrBuilder>(
- users_,
- ((bitField0_ & 0x00000400) == 0x00000400),
+ usersBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Users, org.sonarqube.ws.Common.Users.Builder, org.sonarqube.ws.Common.UsersOrBuilder>(
+ getUsers(),
getParentForChildren(),
isClean());
users_ = null;
@@ -2916,271 +2138,117 @@ public final class Issues {
return usersBuilder_;
}
- private boolean actionPlansPresentIfEmpty_ ;
- /**
- * <code>optional bool actionPlansPresentIfEmpty = 12;</code>
- */
- public boolean hasActionPlansPresentIfEmpty() {
- return ((bitField0_ & 0x00000800) == 0x00000800);
- }
- /**
- * <code>optional bool actionPlansPresentIfEmpty = 12;</code>
- */
- public boolean getActionPlansPresentIfEmpty() {
- return actionPlansPresentIfEmpty_;
- }
- /**
- * <code>optional bool actionPlansPresentIfEmpty = 12;</code>
- */
- public Builder setActionPlansPresentIfEmpty(boolean value) {
- bitField0_ |= 0x00000800;
- actionPlansPresentIfEmpty_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional bool actionPlansPresentIfEmpty = 12;</code>
- */
- public Builder clearActionPlansPresentIfEmpty() {
- bitField0_ = (bitField0_ & ~0x00000800);
- actionPlansPresentIfEmpty_ = false;
- onChanged();
- return this;
- }
-
- private java.util.List<org.sonarqube.ws.Issues.ActionPlan> actionPlans_ =
- java.util.Collections.emptyList();
- private void ensureActionPlansIsMutable() {
- if (!((bitField0_ & 0x00001000) == 0x00001000)) {
- actionPlans_ = new java.util.ArrayList<org.sonarqube.ws.Issues.ActionPlan>(actionPlans_);
- bitField0_ |= 0x00001000;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder> actionPlansBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
- */
- public java.util.List<org.sonarqube.ws.Issues.ActionPlan> getActionPlansList() {
- if (actionPlansBuilder_ == null) {
- return java.util.Collections.unmodifiableList(actionPlans_);
- } else {
- return actionPlansBuilder_.getMessageList();
- }
- }
+ private org.sonarqube.ws.Issues.ActionPlans actionPlans_ = null;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Issues.ActionPlans, org.sonarqube.ws.Issues.ActionPlans.Builder, org.sonarqube.ws.Issues.ActionPlansOrBuilder> actionPlansBuilder_;
/**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
+ * <code>optional .sonarqube.ws.issues.ActionPlans actionPlans = 10;</code>
*/
- public int getActionPlansCount() {
- if (actionPlansBuilder_ == null) {
- return actionPlans_.size();
- } else {
- return actionPlansBuilder_.getCount();
- }
+ public boolean hasActionPlans() {
+ return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
+ * <code>optional .sonarqube.ws.issues.ActionPlans actionPlans = 10;</code>
*/
- public org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index) {
+ public org.sonarqube.ws.Issues.ActionPlans getActionPlans() {
if (actionPlansBuilder_ == null) {
- return actionPlans_.get(index);
+ return actionPlans_ == null ? org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance() : actionPlans_;
} else {
- return actionPlansBuilder_.getMessage(index);
+ return actionPlansBuilder_.getMessage();
}
}
/**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
+ * <code>optional .sonarqube.ws.issues.ActionPlans actionPlans = 10;</code>
*/
- public Builder setActionPlans(
- int index, org.sonarqube.ws.Issues.ActionPlan value) {
+ public Builder setActionPlans(org.sonarqube.ws.Issues.ActionPlans value) {
if (actionPlansBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureActionPlansIsMutable();
- actionPlans_.set(index, value);
+ actionPlans_ = value;
onChanged();
} else {
- actionPlansBuilder_.setMessage(index, value);
+ actionPlansBuilder_.setMessage(value);
}
+ bitField0_ |= 0x00000200;
return this;
}
/**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
+ * <code>optional .sonarqube.ws.issues.ActionPlans actionPlans = 10;</code>
*/
public Builder setActionPlans(
- int index, org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) {
+ org.sonarqube.ws.Issues.ActionPlans.Builder builderForValue) {
if (actionPlansBuilder_ == null) {
- ensureActionPlansIsMutable();
- actionPlans_.set(index, builderForValue.build());
- onChanged();
- } else {
- actionPlansBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
- */
- public Builder addActionPlans(org.sonarqube.ws.Issues.ActionPlan value) {
- if (actionPlansBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureActionPlansIsMutable();
- actionPlans_.add(value);
+ actionPlans_ = builderForValue.build();
onChanged();
} else {
- actionPlansBuilder_.addMessage(value);
+ actionPlansBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00000200;
return this;
}
/**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
+ * <code>optional .sonarqube.ws.issues.ActionPlans actionPlans = 10;</code>
*/
- public Builder addActionPlans(
- int index, org.sonarqube.ws.Issues.ActionPlan value) {
+ public Builder mergeActionPlans(org.sonarqube.ws.Issues.ActionPlans value) {
if (actionPlansBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
+ if (((bitField0_ & 0x00000200) == 0x00000200) &&
+ actionPlans_ != null &&
+ actionPlans_ != org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance()) {
+ actionPlans_ =
+ org.sonarqube.ws.Issues.ActionPlans.newBuilder(actionPlans_).mergeFrom(value).buildPartial();
+ } else {
+ actionPlans_ = value;
}
- ensureActionPlansIsMutable();
- actionPlans_.add(index, value);
onChanged();
} else {
- actionPlansBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
- */
- public Builder addActionPlans(
- org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) {
- if (actionPlansBuilder_ == null) {
- ensureActionPlansIsMutable();
- actionPlans_.add(builderForValue.build());
- onChanged();
- } else {
- actionPlansBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
- */
- public Builder addActionPlans(
- int index, org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) {
- if (actionPlansBuilder_ == null) {
- ensureActionPlansIsMutable();
- actionPlans_.add(index, builderForValue.build());
- onChanged();
- } else {
- actionPlansBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
- */
- public Builder addAllActionPlans(
- java.lang.Iterable<? extends org.sonarqube.ws.Issues.ActionPlan> values) {
- if (actionPlansBuilder_ == null) {
- ensureActionPlansIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, actionPlans_);
- onChanged();
- } else {
- actionPlansBuilder_.addAllMessages(values);
+ actionPlansBuilder_.mergeFrom(value);
}
+ bitField0_ |= 0x00000200;
return this;
}
/**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
+ * <code>optional .sonarqube.ws.issues.ActionPlans actionPlans = 10;</code>
*/
public Builder clearActionPlans() {
if (actionPlansBuilder_ == null) {
- actionPlans_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00001000);
+ actionPlans_ = null;
onChanged();
} else {
actionPlansBuilder_.clear();
}
+ bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
/**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
- */
- public Builder removeActionPlans(int index) {
- if (actionPlansBuilder_ == null) {
- ensureActionPlansIsMutable();
- actionPlans_.remove(index);
- onChanged();
- } else {
- actionPlansBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
+ * <code>optional .sonarqube.ws.issues.ActionPlans actionPlans = 10;</code>
*/
- public org.sonarqube.ws.Issues.ActionPlan.Builder getActionPlansBuilder(
- int index) {
- return getActionPlansFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
- */
- public org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder(
- int index) {
- if (actionPlansBuilder_ == null) {
- return actionPlans_.get(index); } else {
- return actionPlansBuilder_.getMessageOrBuilder(index);
- }
+ public org.sonarqube.ws.Issues.ActionPlans.Builder getActionPlansBuilder() {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return getActionPlansFieldBuilder().getBuilder();
}
/**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
+ * <code>optional .sonarqube.ws.issues.ActionPlans actionPlans = 10;</code>
*/
- public java.util.List<? extends org.sonarqube.ws.Issues.ActionPlanOrBuilder>
- getActionPlansOrBuilderList() {
+ public org.sonarqube.ws.Issues.ActionPlansOrBuilder getActionPlansOrBuilder() {
if (actionPlansBuilder_ != null) {
- return actionPlansBuilder_.getMessageOrBuilderList();
+ return actionPlansBuilder_.getMessageOrBuilder();
} else {
- return java.util.Collections.unmodifiableList(actionPlans_);
+ return actionPlans_ == null ?
+ org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance() : actionPlans_;
}
}
/**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
+ * <code>optional .sonarqube.ws.issues.ActionPlans actionPlans = 10;</code>
*/
- public org.sonarqube.ws.Issues.ActionPlan.Builder addActionPlansBuilder() {
- return getActionPlansFieldBuilder().addBuilder(
- org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
- */
- public org.sonarqube.ws.Issues.ActionPlan.Builder addActionPlansBuilder(
- int index) {
- return getActionPlansFieldBuilder().addBuilder(
- index, org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 13;</code>
- */
- public java.util.List<org.sonarqube.ws.Issues.ActionPlan.Builder>
- getActionPlansBuilderList() {
- return getActionPlansFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder>
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Issues.ActionPlans, org.sonarqube.ws.Issues.ActionPlans.Builder, org.sonarqube.ws.Issues.ActionPlansOrBuilder>
getActionPlansFieldBuilder() {
if (actionPlansBuilder_ == null) {
- actionPlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder>(
- actionPlans_,
- ((bitField0_ & 0x00001000) == 0x00001000),
+ actionPlansBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Issues.ActionPlans, org.sonarqube.ws.Issues.ActionPlans.Builder, org.sonarqube.ws.Issues.ActionPlansOrBuilder>(
+ getActionPlans(),
getParentForChildren(),
isClean());
actionPlans_ = null;
@@ -3188,271 +2256,117 @@ public final class Issues {
return actionPlansBuilder_;
}
- private boolean languagesPresentIfEmpty_ ;
- /**
- * <code>optional bool languagesPresentIfEmpty = 14;</code>
- */
- public boolean hasLanguagesPresentIfEmpty() {
- return ((bitField0_ & 0x00002000) == 0x00002000);
- }
- /**
- * <code>optional bool languagesPresentIfEmpty = 14;</code>
- */
- public boolean getLanguagesPresentIfEmpty() {
- return languagesPresentIfEmpty_;
- }
- /**
- * <code>optional bool languagesPresentIfEmpty = 14;</code>
- */
- public Builder setLanguagesPresentIfEmpty(boolean value) {
- bitField0_ |= 0x00002000;
- languagesPresentIfEmpty_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional bool languagesPresentIfEmpty = 14;</code>
- */
- public Builder clearLanguagesPresentIfEmpty() {
- bitField0_ = (bitField0_ & ~0x00002000);
- languagesPresentIfEmpty_ = false;
- onChanged();
- return this;
- }
-
- private java.util.List<org.sonarqube.ws.Issues.Language> languages_ =
- java.util.Collections.emptyList();
- private void ensureLanguagesIsMutable() {
- if (!((bitField0_ & 0x00004000) == 0x00004000)) {
- languages_ = new java.util.ArrayList<org.sonarqube.ws.Issues.Language>(languages_);
- bitField0_ |= 0x00004000;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder> languagesBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- public java.util.List<org.sonarqube.ws.Issues.Language> getLanguagesList() {
- if (languagesBuilder_ == null) {
- return java.util.Collections.unmodifiableList(languages_);
- } else {
- return languagesBuilder_.getMessageList();
- }
- }
+ private org.sonarqube.ws.Issues.Languages languages_ = null;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Issues.Languages, org.sonarqube.ws.Issues.Languages.Builder, org.sonarqube.ws.Issues.LanguagesOrBuilder> languagesBuilder_;
/**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
+ * <code>optional .sonarqube.ws.issues.Languages languages = 11;</code>
*/
- public int getLanguagesCount() {
- if (languagesBuilder_ == null) {
- return languages_.size();
- } else {
- return languagesBuilder_.getCount();
- }
+ public boolean hasLanguages() {
+ return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
+ * <code>optional .sonarqube.ws.issues.Languages languages = 11;</code>
*/
- public org.sonarqube.ws.Issues.Language getLanguages(int index) {
+ public org.sonarqube.ws.Issues.Languages getLanguages() {
if (languagesBuilder_ == null) {
- return languages_.get(index);
+ return languages_ == null ? org.sonarqube.ws.Issues.Languages.getDefaultInstance() : languages_;
} else {
- return languagesBuilder_.getMessage(index);
+ return languagesBuilder_.getMessage();
}
}
/**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
+ * <code>optional .sonarqube.ws.issues.Languages languages = 11;</code>
*/
- public Builder setLanguages(
- int index, org.sonarqube.ws.Issues.Language value) {
+ public Builder setLanguages(org.sonarqube.ws.Issues.Languages value) {
if (languagesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureLanguagesIsMutable();
- languages_.set(index, value);
+ languages_ = value;
onChanged();
} else {
- languagesBuilder_.setMessage(index, value);
+ languagesBuilder_.setMessage(value);
}
+ bitField0_ |= 0x00000400;
return this;
}
/**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
+ * <code>optional .sonarqube.ws.issues.Languages languages = 11;</code>
*/
public Builder setLanguages(
- int index, org.sonarqube.ws.Issues.Language.Builder builderForValue) {
- if (languagesBuilder_ == null) {
- ensureLanguagesIsMutable();
- languages_.set(index, builderForValue.build());
- onChanged();
- } else {
- languagesBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- public Builder addLanguages(org.sonarqube.ws.Issues.Language value) {
+ org.sonarqube.ws.Issues.Languages.Builder builderForValue) {
if (languagesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureLanguagesIsMutable();
- languages_.add(value);
+ languages_ = builderForValue.build();
onChanged();
} else {
- languagesBuilder_.addMessage(value);
+ languagesBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00000400;
return this;
}
/**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
+ * <code>optional .sonarqube.ws.issues.Languages languages = 11;</code>
*/
- public Builder addLanguages(
- int index, org.sonarqube.ws.Issues.Language value) {
+ public Builder mergeLanguages(org.sonarqube.ws.Issues.Languages value) {
if (languagesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
+ if (((bitField0_ & 0x00000400) == 0x00000400) &&
+ languages_ != null &&
+ languages_ != org.sonarqube.ws.Issues.Languages.getDefaultInstance()) {
+ languages_ =
+ org.sonarqube.ws.Issues.Languages.newBuilder(languages_).mergeFrom(value).buildPartial();
+ } else {
+ languages_ = value;
}
- ensureLanguagesIsMutable();
- languages_.add(index, value);
onChanged();
} else {
- languagesBuilder_.addMessage(index, value);
+ languagesBuilder_.mergeFrom(value);
}
+ bitField0_ |= 0x00000400;
return this;
}
/**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- public Builder addLanguages(
- org.sonarqube.ws.Issues.Language.Builder builderForValue) {
- if (languagesBuilder_ == null) {
- ensureLanguagesIsMutable();
- languages_.add(builderForValue.build());
- onChanged();
- } else {
- languagesBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- public Builder addLanguages(
- int index, org.sonarqube.ws.Issues.Language.Builder builderForValue) {
- if (languagesBuilder_ == null) {
- ensureLanguagesIsMutable();
- languages_.add(index, builderForValue.build());
- onChanged();
- } else {
- languagesBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- public Builder addAllLanguages(
- java.lang.Iterable<? extends org.sonarqube.ws.Issues.Language> values) {
- if (languagesBuilder_ == null) {
- ensureLanguagesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, languages_);
- onChanged();
- } else {
- languagesBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
+ * <code>optional .sonarqube.ws.issues.Languages languages = 11;</code>
*/
public Builder clearLanguages() {
if (languagesBuilder_ == null) {
- languages_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00004000);
+ languages_ = null;
onChanged();
} else {
languagesBuilder_.clear();
}
+ bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
/**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- public Builder removeLanguages(int index) {
- if (languagesBuilder_ == null) {
- ensureLanguagesIsMutable();
- languages_.remove(index);
- onChanged();
- } else {
- languagesBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- public org.sonarqube.ws.Issues.Language.Builder getLanguagesBuilder(
- int index) {
- return getLanguagesFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
+ * <code>optional .sonarqube.ws.issues.Languages languages = 11;</code>
*/
- public org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder(
- int index) {
- if (languagesBuilder_ == null) {
- return languages_.get(index); } else {
- return languagesBuilder_.getMessageOrBuilder(index);
- }
+ public org.sonarqube.ws.Issues.Languages.Builder getLanguagesBuilder() {
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return getLanguagesFieldBuilder().getBuilder();
}
/**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
+ * <code>optional .sonarqube.ws.issues.Languages languages = 11;</code>
*/
- public java.util.List<? extends org.sonarqube.ws.Issues.LanguageOrBuilder>
- getLanguagesOrBuilderList() {
+ public org.sonarqube.ws.Issues.LanguagesOrBuilder getLanguagesOrBuilder() {
if (languagesBuilder_ != null) {
- return languagesBuilder_.getMessageOrBuilderList();
+ return languagesBuilder_.getMessageOrBuilder();
} else {
- return java.util.Collections.unmodifiableList(languages_);
+ return languages_ == null ?
+ org.sonarqube.ws.Issues.Languages.getDefaultInstance() : languages_;
}
}
/**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- public org.sonarqube.ws.Issues.Language.Builder addLanguagesBuilder() {
- return getLanguagesFieldBuilder().addBuilder(
- org.sonarqube.ws.Issues.Language.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
- */
- public org.sonarqube.ws.Issues.Language.Builder addLanguagesBuilder(
- int index) {
- return getLanguagesFieldBuilder().addBuilder(
- index, org.sonarqube.ws.Issues.Language.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Language languages = 15;</code>
+ * <code>optional .sonarqube.ws.issues.Languages languages = 11;</code>
*/
- public java.util.List<org.sonarqube.ws.Issues.Language.Builder>
- getLanguagesBuilderList() {
- return getLanguagesFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder>
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Issues.Languages, org.sonarqube.ws.Issues.Languages.Builder, org.sonarqube.ws.Issues.LanguagesOrBuilder>
getLanguagesFieldBuilder() {
if (languagesBuilder_ == null) {
- languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder>(
- languages_,
- ((bitField0_ & 0x00004000) == 0x00004000),
+ languagesBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Issues.Languages, org.sonarqube.ws.Issues.Languages.Builder, org.sonarqube.ws.Issues.LanguagesOrBuilder>(
+ getLanguages(),
getParentForChildren(),
isClean());
languages_ = null;
@@ -3460,271 +2374,117 @@ public final class Issues {
return languagesBuilder_;
}
- private boolean facetsPresentIfEmpty_ ;
- /**
- * <code>optional bool facetsPresentIfEmpty = 16;</code>
- */
- public boolean hasFacetsPresentIfEmpty() {
- return ((bitField0_ & 0x00008000) == 0x00008000);
- }
- /**
- * <code>optional bool facetsPresentIfEmpty = 16;</code>
- */
- public boolean getFacetsPresentIfEmpty() {
- return facetsPresentIfEmpty_;
- }
- /**
- * <code>optional bool facetsPresentIfEmpty = 16;</code>
- */
- public Builder setFacetsPresentIfEmpty(boolean value) {
- bitField0_ |= 0x00008000;
- facetsPresentIfEmpty_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional bool facetsPresentIfEmpty = 16;</code>
- */
- public Builder clearFacetsPresentIfEmpty() {
- bitField0_ = (bitField0_ & ~0x00008000);
- facetsPresentIfEmpty_ = false;
- onChanged();
- return this;
- }
-
- private java.util.List<org.sonarqube.ws.Common.Facet> facets_ =
- java.util.Collections.emptyList();
- private void ensureFacetsIsMutable() {
- if (!((bitField0_ & 0x00010000) == 0x00010000)) {
- facets_ = new java.util.ArrayList<org.sonarqube.ws.Common.Facet>(facets_);
- bitField0_ |= 0x00010000;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder> facetsBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
- */
- public java.util.List<org.sonarqube.ws.Common.Facet> getFacetsList() {
- if (facetsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(facets_);
- } else {
- return facetsBuilder_.getMessageList();
- }
- }
+ private org.sonarqube.ws.Common.Facets facets_ = null;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Facets, org.sonarqube.ws.Common.Facets.Builder, org.sonarqube.ws.Common.FacetsOrBuilder> facetsBuilder_;
/**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
+ * <code>optional .sonarqube.ws.commons.Facets facets = 12;</code>
*/
- public int getFacetsCount() {
- if (facetsBuilder_ == null) {
- return facets_.size();
- } else {
- return facetsBuilder_.getCount();
- }
+ public boolean hasFacets() {
+ return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
+ * <code>optional .sonarqube.ws.commons.Facets facets = 12;</code>
*/
- public org.sonarqube.ws.Common.Facet getFacets(int index) {
+ public org.sonarqube.ws.Common.Facets getFacets() {
if (facetsBuilder_ == null) {
- return facets_.get(index);
+ return facets_ == null ? org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_;
} else {
- return facetsBuilder_.getMessage(index);
+ return facetsBuilder_.getMessage();
}
}
/**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
+ * <code>optional .sonarqube.ws.commons.Facets facets = 12;</code>
*/
- public Builder setFacets(
- int index, org.sonarqube.ws.Common.Facet value) {
+ public Builder setFacets(org.sonarqube.ws.Common.Facets value) {
if (facetsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureFacetsIsMutable();
- facets_.set(index, value);
+ facets_ = value;
onChanged();
} else {
- facetsBuilder_.setMessage(index, value);
+ facetsBuilder_.setMessage(value);
}
+ bitField0_ |= 0x00000800;
return this;
}
/**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
+ * <code>optional .sonarqube.ws.commons.Facets facets = 12;</code>
*/
public Builder setFacets(
- int index, org.sonarqube.ws.Common.Facet.Builder builderForValue) {
+ org.sonarqube.ws.Common.Facets.Builder builderForValue) {
if (facetsBuilder_ == null) {
- ensureFacetsIsMutable();
- facets_.set(index, builderForValue.build());
+ facets_ = builderForValue.build();
onChanged();
} else {
- facetsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
- */
- public Builder addFacets(org.sonarqube.ws.Common.Facet value) {
- if (facetsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureFacetsIsMutable();
- facets_.add(value);
- onChanged();
- } else {
- facetsBuilder_.addMessage(value);
+ facetsBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00000800;
return this;
}
/**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
+ * <code>optional .sonarqube.ws.commons.Facets facets = 12;</code>
*/
- public Builder addFacets(
- int index, org.sonarqube.ws.Common.Facet value) {
+ public Builder mergeFacets(org.sonarqube.ws.Common.Facets value) {
if (facetsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
+ if (((bitField0_ & 0x00000800) == 0x00000800) &&
+ facets_ != null &&
+ facets_ != org.sonarqube.ws.Common.Facets.getDefaultInstance()) {
+ facets_ =
+ org.sonarqube.ws.Common.Facets.newBuilder(facets_).mergeFrom(value).buildPartial();
+ } else {
+ facets_ = value;
}
- ensureFacetsIsMutable();
- facets_.add(index, value);
- onChanged();
- } else {
- facetsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
- */
- public Builder addFacets(
- org.sonarqube.ws.Common.Facet.Builder builderForValue) {
- if (facetsBuilder_ == null) {
- ensureFacetsIsMutable();
- facets_.add(builderForValue.build());
onChanged();
} else {
- facetsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
- */
- public Builder addFacets(
- int index, org.sonarqube.ws.Common.Facet.Builder builderForValue) {
- if (facetsBuilder_ == null) {
- ensureFacetsIsMutable();
- facets_.add(index, builderForValue.build());
- onChanged();
- } else {
- facetsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
- */
- public Builder addAllFacets(
- java.lang.Iterable<? extends org.sonarqube.ws.Common.Facet> values) {
- if (facetsBuilder_ == null) {
- ensureFacetsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, facets_);
- onChanged();
- } else {
- facetsBuilder_.addAllMessages(values);
+ facetsBuilder_.mergeFrom(value);
}
+ bitField0_ |= 0x00000800;
return this;
}
/**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
+ * <code>optional .sonarqube.ws.commons.Facets facets = 12;</code>
*/
public Builder clearFacets() {
if (facetsBuilder_ == null) {
- facets_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00010000);
+ facets_ = null;
onChanged();
} else {
facetsBuilder_.clear();
}
+ bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
/**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
- */
- public Builder removeFacets(int index) {
- if (facetsBuilder_ == null) {
- ensureFacetsIsMutable();
- facets_.remove(index);
- onChanged();
- } else {
- facetsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
- */
- public org.sonarqube.ws.Common.Facet.Builder getFacetsBuilder(
- int index) {
- return getFacetsFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
+ * <code>optional .sonarqube.ws.commons.Facets facets = 12;</code>
*/
- public org.sonarqube.ws.Common.FacetOrBuilder getFacetsOrBuilder(
- int index) {
- if (facetsBuilder_ == null) {
- return facets_.get(index); } else {
- return facetsBuilder_.getMessageOrBuilder(index);
- }
+ public org.sonarqube.ws.Common.Facets.Builder getFacetsBuilder() {
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return getFacetsFieldBuilder().getBuilder();
}
/**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
+ * <code>optional .sonarqube.ws.commons.Facets facets = 12;</code>
*/
- public java.util.List<? extends org.sonarqube.ws.Common.FacetOrBuilder>
- getFacetsOrBuilderList() {
+ public org.sonarqube.ws.Common.FacetsOrBuilder getFacetsOrBuilder() {
if (facetsBuilder_ != null) {
- return facetsBuilder_.getMessageOrBuilderList();
+ return facetsBuilder_.getMessageOrBuilder();
} else {
- return java.util.Collections.unmodifiableList(facets_);
+ return facets_ == null ?
+ org.sonarqube.ws.Common.Facets.getDefaultInstance() : facets_;
}
}
/**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
- */
- public org.sonarqube.ws.Common.Facet.Builder addFacetsBuilder() {
- return getFacetsFieldBuilder().addBuilder(
- org.sonarqube.ws.Common.Facet.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
- */
- public org.sonarqube.ws.Common.Facet.Builder addFacetsBuilder(
- int index) {
- return getFacetsFieldBuilder().addBuilder(
- index, org.sonarqube.ws.Common.Facet.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.commons.Facet facets = 17;</code>
+ * <code>optional .sonarqube.ws.commons.Facets facets = 12;</code>
*/
- public java.util.List<org.sonarqube.ws.Common.Facet.Builder>
- getFacetsBuilderList() {
- return getFacetsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder>
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Facets, org.sonarqube.ws.Common.Facets.Builder, org.sonarqube.ws.Common.FacetsOrBuilder>
getFacetsFieldBuilder() {
if (facetsBuilder_ == null) {
- facetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Common.Facet, org.sonarqube.ws.Common.Facet.Builder, org.sonarqube.ws.Common.FacetOrBuilder>(
- facets_,
- ((bitField0_ & 0x00010000) == 0x00010000),
+ facetsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Common.Facets, org.sonarqube.ws.Common.Facets.Builder, org.sonarqube.ws.Common.FacetsOrBuilder>(
+ getFacets(),
getParentForChildren(),
isClean());
facets_ = null;
@@ -5991,190 +4751,139 @@ public final class Issues {
getActionPlanBytes();
/**
- * <code>optional bool tagsPresentIfEmpty = 19;</code>
- */
- boolean hasTagsPresentIfEmpty();
- /**
- * <code>optional bool tagsPresentIfEmpty = 19;</code>
- */
- boolean getTagsPresentIfEmpty();
-
- /**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
com.google.protobuf.ProtocolStringList
getTagsList();
/**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
int getTagsCount();
/**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
java.lang.String getTags(int index);
/**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
com.google.protobuf.ByteString
getTagsBytes(int index);
/**
- * <code>optional bool transitionsPresentIfEmpty = 21;</code>
+ * <code>optional .sonarqube.ws.issues.Transitions transitions = 20;</code>
*
* <pre>
* the transitions allowed for the requesting user.
* </pre>
*/
- boolean hasTransitionsPresentIfEmpty();
+ boolean hasTransitions();
/**
- * <code>optional bool transitionsPresentIfEmpty = 21;</code>
+ * <code>optional .sonarqube.ws.issues.Transitions transitions = 20;</code>
*
* <pre>
* the transitions allowed for the requesting user.
* </pre>
*/
- boolean getTransitionsPresentIfEmpty();
-
+ org.sonarqube.ws.Issues.Transitions getTransitions();
/**
- * <code>repeated string transitions = 22;</code>
- */
- com.google.protobuf.ProtocolStringList
- getTransitionsList();
- /**
- * <code>repeated string transitions = 22;</code>
- */
- int getTransitionsCount();
- /**
- * <code>repeated string transitions = 22;</code>
- */
- java.lang.String getTransitions(int index);
- /**
- * <code>repeated string transitions = 22;</code>
+ * <code>optional .sonarqube.ws.issues.Transitions transitions = 20;</code>
+ *
+ * <pre>
+ * the transitions allowed for the requesting user.
+ * </pre>
*/
- com.google.protobuf.ByteString
- getTransitionsBytes(int index);
+ org.sonarqube.ws.Issues.TransitionsOrBuilder getTransitionsOrBuilder();
/**
- * <code>optional bool actionsPresentIfEmpty = 23;</code>
+ * <code>optional .sonarqube.ws.issues.Actions actions = 21;</code>
*
* <pre>
* the actions allowed for the requesting user.
* </pre>
*/
- boolean hasActionsPresentIfEmpty();
+ boolean hasActions();
/**
- * <code>optional bool actionsPresentIfEmpty = 23;</code>
+ * <code>optional .sonarqube.ws.issues.Actions actions = 21;</code>
*
* <pre>
* the actions allowed for the requesting user.
* </pre>
*/
- boolean getActionsPresentIfEmpty();
-
+ org.sonarqube.ws.Issues.Actions getActions();
/**
- * <code>repeated string actions = 24;</code>
- */
- com.google.protobuf.ProtocolStringList
- getActionsList();
- /**
- * <code>repeated string actions = 24;</code>
- */
- int getActionsCount();
- /**
- * <code>repeated string actions = 24;</code>
- */
- java.lang.String getActions(int index);
- /**
- * <code>repeated string actions = 24;</code>
- */
- com.google.protobuf.ByteString
- getActionsBytes(int index);
-
- /**
- * <code>optional bool commentsPresentIfEmpty = 25;</code>
- */
- boolean hasCommentsPresentIfEmpty();
- /**
- * <code>optional bool commentsPresentIfEmpty = 25;</code>
+ * <code>optional .sonarqube.ws.issues.Actions actions = 21;</code>
+ *
+ * <pre>
+ * the actions allowed for the requesting user.
+ * </pre>
*/
- boolean getCommentsPresentIfEmpty();
+ org.sonarqube.ws.Issues.ActionsOrBuilder getActionsOrBuilder();
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Comments comments = 22;</code>
*/
- java.util.List<org.sonarqube.ws.Issues.Comment>
- getCommentsList();
- /**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
- */
- org.sonarqube.ws.Issues.Comment getComments(int index);
+ boolean hasComments();
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Comments comments = 22;</code>
*/
- int getCommentsCount();
- /**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
- */
- java.util.List<? extends org.sonarqube.ws.Issues.CommentOrBuilder>
- getCommentsOrBuilderList();
+ org.sonarqube.ws.Issues.Comments getComments();
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Comments comments = 22;</code>
*/
- org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder(
- int index);
+ org.sonarqube.ws.Issues.CommentsOrBuilder getCommentsOrBuilder();
/**
- * <code>optional string creationDate = 27;</code>
+ * <code>optional string creationDate = 23;</code>
*/
boolean hasCreationDate();
/**
- * <code>optional string creationDate = 27;</code>
+ * <code>optional string creationDate = 23;</code>
*/
java.lang.String getCreationDate();
/**
- * <code>optional string creationDate = 27;</code>
+ * <code>optional string creationDate = 23;</code>
*/
com.google.protobuf.ByteString
getCreationDateBytes();
/**
- * <code>optional string updateDate = 28;</code>
+ * <code>optional string updateDate = 24;</code>
*/
boolean hasUpdateDate();
/**
- * <code>optional string updateDate = 28;</code>
+ * <code>optional string updateDate = 24;</code>
*/
java.lang.String getUpdateDate();
/**
- * <code>optional string updateDate = 28;</code>
+ * <code>optional string updateDate = 24;</code>
*/
com.google.protobuf.ByteString
getUpdateDateBytes();
/**
- * <code>optional string fUpdateAge = 29;</code>
+ * <code>optional string fUpdateAge = 25;</code>
*/
boolean hasFUpdateAge();
/**
- * <code>optional string fUpdateAge = 29;</code>
+ * <code>optional string fUpdateAge = 25;</code>
*/
java.lang.String getFUpdateAge();
/**
- * <code>optional string fUpdateAge = 29;</code>
+ * <code>optional string fUpdateAge = 25;</code>
*/
com.google.protobuf.ByteString
getFUpdateAgeBytes();
/**
- * <code>optional string closeDate = 30;</code>
+ * <code>optional string closeDate = 26;</code>
*/
boolean hasCloseDate();
/**
- * <code>optional string closeDate = 30;</code>
+ * <code>optional string closeDate = 26;</code>
*/
java.lang.String getCloseDate();
/**
- * <code>optional string closeDate = 30;</code>
+ * <code>optional string closeDate = 26;</code>
*/
com.google.protobuf.ByteString
getCloseDateBytes();
@@ -6208,14 +4917,7 @@ public final class Issues {
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_ = "";
@@ -6369,82 +5071,75 @@ public final class Issues {
actionPlan_ = bs;
break;
}
- case 152: {
- bitField0_ |= 0x00020000;
- tagsPresentIfEmpty_ = input.readBool();
- break;
- }
- case 162: {
+ case 154: {
com.google.protobuf.ByteString bs = input.readBytes();
- if (!((mutable_bitField0_ & 0x00080000) == 0x00080000)) {
+ if (!((mutable_bitField0_ & 0x00040000) == 0x00040000)) {
tags_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00080000;
+ mutable_bitField0_ |= 0x00040000;
}
tags_.add(bs);
break;
}
- case 168: {
- bitField0_ |= 0x00040000;
- transitionsPresentIfEmpty_ = input.readBool();
- break;
- }
- case 178: {
- com.google.protobuf.ByteString bs = input.readBytes();
- if (!((mutable_bitField0_ & 0x00200000) == 0x00200000)) {
- transitions_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00200000;
+ case 162: {
+ org.sonarqube.ws.Issues.Transitions.Builder subBuilder = null;
+ if (((bitField0_ & 0x00020000) == 0x00020000)) {
+ subBuilder = transitions_.toBuilder();
}
- transitions_.add(bs);
- break;
- }
- case 184: {
- bitField0_ |= 0x00080000;
- actionsPresentIfEmpty_ = input.readBool();
- break;
- }
- case 194: {
- com.google.protobuf.ByteString bs = input.readBytes();
- if (!((mutable_bitField0_ & 0x00800000) == 0x00800000)) {
- actions_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00800000;
+ transitions_ = input.readMessage(org.sonarqube.ws.Issues.Transitions.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(transitions_);
+ transitions_ = subBuilder.buildPartial();
}
- actions_.add(bs);
+ bitField0_ |= 0x00020000;
break;
}
- case 200: {
- bitField0_ |= 0x00100000;
- commentsPresentIfEmpty_ = input.readBool();
+ case 170: {
+ org.sonarqube.ws.Issues.Actions.Builder subBuilder = null;
+ if (((bitField0_ & 0x00040000) == 0x00040000)) {
+ subBuilder = actions_.toBuilder();
+ }
+ actions_ = input.readMessage(org.sonarqube.ws.Issues.Actions.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(actions_);
+ actions_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00040000;
break;
}
- case 210: {
- if (!((mutable_bitField0_ & 0x02000000) == 0x02000000)) {
- comments_ = new java.util.ArrayList<org.sonarqube.ws.Issues.Comment>();
- mutable_bitField0_ |= 0x02000000;
+ case 178: {
+ org.sonarqube.ws.Issues.Comments.Builder subBuilder = null;
+ if (((bitField0_ & 0x00080000) == 0x00080000)) {
+ subBuilder = comments_.toBuilder();
}
- comments_.add(input.readMessage(org.sonarqube.ws.Issues.Comment.PARSER, extensionRegistry));
+ comments_ = input.readMessage(org.sonarqube.ws.Issues.Comments.PARSER, extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(comments_);
+ comments_ = subBuilder.buildPartial();
+ }
+ bitField0_ |= 0x00080000;
break;
}
- case 218: {
+ case 186: {
com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00200000;
+ bitField0_ |= 0x00100000;
creationDate_ = bs;
break;
}
- case 226: {
+ case 194: {
com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00400000;
+ bitField0_ |= 0x00200000;
updateDate_ = bs;
break;
}
- case 234: {
+ case 202: {
com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00800000;
+ bitField0_ |= 0x00400000;
fUpdateAge_ = bs;
break;
}
- case 242: {
+ case 210: {
com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x01000000;
+ bitField0_ |= 0x00800000;
closeDate_ = bs;
break;
}
@@ -6460,18 +5155,9 @@ public final class Issues {
if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) {
flows_ = java.util.Collections.unmodifiableList(flows_);
}
- if (((mutable_bitField0_ & 0x00080000) == 0x00080000)) {
+ if (((mutable_bitField0_ & 0x00040000) == 0x00040000)) {
tags_ = tags_.getUnmodifiableView();
}
- if (((mutable_bitField0_ & 0x00200000) == 0x00200000)) {
- transitions_ = transitions_.getUnmodifiableView();
- }
- if (((mutable_bitField0_ & 0x00800000) == 0x00800000)) {
- actions_ = actions_.getUnmodifiableView();
- }
- if (((mutable_bitField0_ & 0x02000000) == 0x02000000)) {
- comments_ = java.util.Collections.unmodifiableList(comments_);
- }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -7149,214 +5835,132 @@ public final class Issues {
}
}
- public static final int TAGSPRESENTIFEMPTY_FIELD_NUMBER = 19;
- private boolean tagsPresentIfEmpty_;
- /**
- * <code>optional bool tagsPresentIfEmpty = 19;</code>
- */
- public boolean hasTagsPresentIfEmpty() {
- return ((bitField0_ & 0x00020000) == 0x00020000);
- }
- /**
- * <code>optional bool tagsPresentIfEmpty = 19;</code>
- */
- public boolean getTagsPresentIfEmpty() {
- return tagsPresentIfEmpty_;
- }
-
- public static final int TAGS_FIELD_NUMBER = 20;
+ public static final int TAGS_FIELD_NUMBER = 19;
private com.google.protobuf.LazyStringList tags_;
/**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_;
}
/**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
public int getTagsCount() {
return tags_.size();
}
/**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
- public static final int TRANSITIONSPRESENTIFEMPTY_FIELD_NUMBER = 21;
- private boolean transitionsPresentIfEmpty_;
+ public static final int TRANSITIONS_FIELD_NUMBER = 20;
+ private org.sonarqube.ws.Issues.Transitions transitions_;
/**
- * <code>optional bool transitionsPresentIfEmpty = 21;</code>
+ * <code>optional .sonarqube.ws.issues.Transitions transitions = 20;</code>
*
* <pre>
* the transitions allowed for the requesting user.
* </pre>
*/
- public boolean hasTransitionsPresentIfEmpty() {
- return ((bitField0_ & 0x00040000) == 0x00040000);
+ public boolean hasTransitions() {
+ return ((bitField0_ & 0x00020000) == 0x00020000);
}
/**
- * <code>optional bool transitionsPresentIfEmpty = 21;</code>
+ * <code>optional .sonarqube.ws.issues.Transitions transitions = 20;</code>
*
* <pre>
* the transitions allowed for the requesting user.
* </pre>
*/
- public boolean getTransitionsPresentIfEmpty() {
- return transitionsPresentIfEmpty_;
- }
-
- public static final int TRANSITIONS_FIELD_NUMBER = 22;
- private com.google.protobuf.LazyStringList transitions_;
- /**
- * <code>repeated string transitions = 22;</code>
- */
- public com.google.protobuf.ProtocolStringList
- getTransitionsList() {
- return transitions_;
- }
- /**
- * <code>repeated string transitions = 22;</code>
- */
- public int getTransitionsCount() {
- return transitions_.size();
+ public org.sonarqube.ws.Issues.Transitions getTransitions() {
+ return transitions_ == null ? org.sonarqube.ws.Issues.Transitions.getDefaultInstance() : transitions_;
}
/**
- * <code>repeated string transitions = 22;</code>
- */
- public java.lang.String getTransitions(int index) {
- return transitions_.get(index);
- }
- /**
- * <code>repeated string transitions = 22;</code>
+ * <code>optional .sonarqube.ws.issues.Transitions transitions = 20;</code>
+ *
+ * <pre>
+ * the transitions allowed for the requesting user.
+ * </pre>
*/
- public com.google.protobuf.ByteString
- getTransitionsBytes(int index) {
- return transitions_.getByteString(index);
+ public org.sonarqube.ws.Issues.TransitionsOrBuilder getTransitionsOrBuilder() {
+ return transitions_ == null ? org.sonarqube.ws.Issues.Transitions.getDefaultInstance() : transitions_;
}
- public static final int ACTIONSPRESENTIFEMPTY_FIELD_NUMBER = 23;
- private boolean actionsPresentIfEmpty_;
+ public static final int ACTIONS_FIELD_NUMBER = 21;
+ private org.sonarqube.ws.Issues.Actions actions_;
/**
- * <code>optional bool actionsPresentIfEmpty = 23;</code>
+ * <code>optional .sonarqube.ws.issues.Actions actions = 21;</code>
*
* <pre>
* the actions allowed for the requesting user.
* </pre>
*/
- public boolean hasActionsPresentIfEmpty() {
- return ((bitField0_ & 0x00080000) == 0x00080000);
+ public boolean hasActions() {
+ return ((bitField0_ & 0x00040000) == 0x00040000);
}
/**
- * <code>optional bool actionsPresentIfEmpty = 23;</code>
+ * <code>optional .sonarqube.ws.issues.Actions actions = 21;</code>
*
* <pre>
* the actions allowed for the requesting user.
* </pre>
*/
- public boolean getActionsPresentIfEmpty() {
- return actionsPresentIfEmpty_;
- }
-
- public static final int ACTIONS_FIELD_NUMBER = 24;
- private com.google.protobuf.LazyStringList actions_;
- /**
- * <code>repeated string actions = 24;</code>
- */
- public com.google.protobuf.ProtocolStringList
- getActionsList() {
- return actions_;
- }
- /**
- * <code>repeated string actions = 24;</code>
- */
- public int getActionsCount() {
- return actions_.size();
- }
- /**
- * <code>repeated string actions = 24;</code>
- */
- public java.lang.String getActions(int index) {
- return actions_.get(index);
- }
- /**
- * <code>repeated string actions = 24;</code>
- */
- public com.google.protobuf.ByteString
- getActionsBytes(int index) {
- return actions_.getByteString(index);
- }
-
- public static final int COMMENTSPRESENTIFEMPTY_FIELD_NUMBER = 25;
- private boolean commentsPresentIfEmpty_;
- /**
- * <code>optional bool commentsPresentIfEmpty = 25;</code>
- */
- public boolean hasCommentsPresentIfEmpty() {
- return ((bitField0_ & 0x00100000) == 0x00100000);
+ public org.sonarqube.ws.Issues.Actions getActions() {
+ return actions_ == null ? org.sonarqube.ws.Issues.Actions.getDefaultInstance() : actions_;
}
/**
- * <code>optional bool commentsPresentIfEmpty = 25;</code>
+ * <code>optional .sonarqube.ws.issues.Actions actions = 21;</code>
+ *
+ * <pre>
+ * the actions allowed for the requesting user.
+ * </pre>
*/
- public boolean getCommentsPresentIfEmpty() {
- return commentsPresentIfEmpty_;
+ public org.sonarqube.ws.Issues.ActionsOrBuilder getActionsOrBuilder() {
+ return actions_ == null ? org.sonarqube.ws.Issues.Actions.getDefaultInstance() : actions_;
}
- public static final int COMMENTS_FIELD_NUMBER = 26;
- private java.util.List<org.sonarqube.ws.Issues.Comment> comments_;
- /**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
- */
- public java.util.List<org.sonarqube.ws.Issues.Comment> getCommentsList() {
- return comments_;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Issues.CommentOrBuilder>
- getCommentsOrBuilderList() {
- return comments_;
- }
+ public static final int COMMENTS_FIELD_NUMBER = 22;
+ private org.sonarqube.ws.Issues.Comments comments_;
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Comments comments = 22;</code>
*/
- public int getCommentsCount() {
- return comments_.size();
+ public boolean hasComments() {
+ return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Comments comments = 22;</code>
*/
- public org.sonarqube.ws.Issues.Comment getComments(int index) {
- return comments_.get(index);
+ public org.sonarqube.ws.Issues.Comments getComments() {
+ return comments_ == null ? org.sonarqube.ws.Issues.Comments.getDefaultInstance() : comments_;
}
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Comments comments = 22;</code>
*/
- public org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder(
- int index) {
- return comments_.get(index);
+ public org.sonarqube.ws.Issues.CommentsOrBuilder getCommentsOrBuilder() {
+ return comments_ == null ? org.sonarqube.ws.Issues.Comments.getDefaultInstance() : comments_;
}
- public static final int CREATIONDATE_FIELD_NUMBER = 27;
+ public static final int CREATIONDATE_FIELD_NUMBER = 23;
private volatile java.lang.Object creationDate_;
/**
- * <code>optional string creationDate = 27;</code>
+ * <code>optional string creationDate = 23;</code>
*/
public boolean hasCreationDate() {
- return ((bitField0_ & 0x00200000) == 0x00200000);
+ return ((bitField0_ & 0x00100000) == 0x00100000);
}
/**
- * <code>optional string creationDate = 27;</code>
+ * <code>optional string creationDate = 23;</code>
*/
public java.lang.String getCreationDate() {
java.lang.Object ref = creationDate_;
@@ -7373,7 +5977,7 @@ public final class Issues {
}
}
/**
- * <code>optional string creationDate = 27;</code>
+ * <code>optional string creationDate = 23;</code>
*/
public com.google.protobuf.ByteString
getCreationDateBytes() {
@@ -7389,16 +5993,16 @@ public final class Issues {
}
}
- public static final int UPDATEDATE_FIELD_NUMBER = 28;
+ public static final int UPDATEDATE_FIELD_NUMBER = 24;
private volatile java.lang.Object updateDate_;
/**
- * <code>optional string updateDate = 28;</code>
+ * <code>optional string updateDate = 24;</code>
*/
public boolean hasUpdateDate() {
- return ((bitField0_ & 0x00400000) == 0x00400000);
+ return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
- * <code>optional string updateDate = 28;</code>
+ * <code>optional string updateDate = 24;</code>
*/
public java.lang.String getUpdateDate() {
java.lang.Object ref = updateDate_;
@@ -7415,7 +6019,7 @@ public final class Issues {
}
}
/**
- * <code>optional string updateDate = 28;</code>
+ * <code>optional string updateDate = 24;</code>
*/
public com.google.protobuf.ByteString
getUpdateDateBytes() {
@@ -7431,16 +6035,16 @@ public final class Issues {
}
}
- public static final int FUPDATEAGE_FIELD_NUMBER = 29;
+ public static final int FUPDATEAGE_FIELD_NUMBER = 25;
private volatile java.lang.Object fUpdateAge_;
/**
- * <code>optional string fUpdateAge = 29;</code>
+ * <code>optional string fUpdateAge = 25;</code>
*/
public boolean hasFUpdateAge() {
- return ((bitField0_ & 0x00800000) == 0x00800000);
+ return ((bitField0_ & 0x00400000) == 0x00400000);
}
/**
- * <code>optional string fUpdateAge = 29;</code>
+ * <code>optional string fUpdateAge = 25;</code>
*/
public java.lang.String getFUpdateAge() {
java.lang.Object ref = fUpdateAge_;
@@ -7457,7 +6061,7 @@ public final class Issues {
}
}
/**
- * <code>optional string fUpdateAge = 29;</code>
+ * <code>optional string fUpdateAge = 25;</code>
*/
public com.google.protobuf.ByteString
getFUpdateAgeBytes() {
@@ -7473,16 +6077,16 @@ public final class Issues {
}
}
- public static final int CLOSEDATE_FIELD_NUMBER = 30;
+ public static final int CLOSEDATE_FIELD_NUMBER = 26;
private volatile java.lang.Object closeDate_;
/**
- * <code>optional string closeDate = 30;</code>
+ * <code>optional string closeDate = 26;</code>
*/
public boolean hasCloseDate() {
- return ((bitField0_ & 0x01000000) == 0x01000000);
+ return ((bitField0_ & 0x00800000) == 0x00800000);
}
/**
- * <code>optional string closeDate = 30;</code>
+ * <code>optional string closeDate = 26;</code>
*/
public java.lang.String getCloseDate() {
java.lang.Object ref = closeDate_;
@@ -7499,7 +6103,7 @@ public final class Issues {
}
}
/**
- * <code>optional string closeDate = 30;</code>
+ * <code>optional string closeDate = 26;</code>
*/
public com.google.protobuf.ByteString
getCloseDateBytes() {
@@ -7581,41 +6185,29 @@ public final class Issues {
if (((bitField0_ & 0x00010000) == 0x00010000)) {
output.writeBytes(18, getActionPlanBytes());
}
- if (((bitField0_ & 0x00020000) == 0x00020000)) {
- output.writeBool(19, tagsPresentIfEmpty_);
- }
for (int i = 0; i < tags_.size(); i++) {
- output.writeBytes(20, tags_.getByteString(i));
+ output.writeBytes(19, tags_.getByteString(i));
}
- if (((bitField0_ & 0x00040000) == 0x00040000)) {
- output.writeBool(21, transitionsPresentIfEmpty_);
+ if (((bitField0_ & 0x00020000) == 0x00020000)) {
+ output.writeMessage(20, getTransitions());
}
- for (int i = 0; i < transitions_.size(); i++) {
- output.writeBytes(22, transitions_.getByteString(i));
+ if (((bitField0_ & 0x00040000) == 0x00040000)) {
+ output.writeMessage(21, getActions());
}
if (((bitField0_ & 0x00080000) == 0x00080000)) {
- output.writeBool(23, actionsPresentIfEmpty_);
- }
- for (int i = 0; i < actions_.size(); i++) {
- output.writeBytes(24, actions_.getByteString(i));
+ output.writeMessage(22, getComments());
}
if (((bitField0_ & 0x00100000) == 0x00100000)) {
- output.writeBool(25, commentsPresentIfEmpty_);
- }
- for (int i = 0; i < comments_.size(); i++) {
- output.writeMessage(26, comments_.get(i));
+ output.writeBytes(23, getCreationDateBytes());
}
if (((bitField0_ & 0x00200000) == 0x00200000)) {
- output.writeBytes(27, getCreationDateBytes());
+ output.writeBytes(24, getUpdateDateBytes());
}
if (((bitField0_ & 0x00400000) == 0x00400000)) {
- output.writeBytes(28, getUpdateDateBytes());
+ output.writeBytes(25, getFUpdateAgeBytes());
}
if (((bitField0_ & 0x00800000) == 0x00800000)) {
- output.writeBytes(29, getFUpdateAgeBytes());
- }
- if (((bitField0_ & 0x01000000) == 0x01000000)) {
- output.writeBytes(30, getCloseDateBytes());
+ output.writeBytes(26, getCloseDateBytes());
}
unknownFields.writeTo(output);
}
@@ -7698,10 +6290,6 @@ public final class Issues {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(18, getActionPlanBytes());
}
- if (((bitField0_ & 0x00020000) == 0x00020000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(19, tagsPresentIfEmpty_);
- }
{
int dataSize = 0;
for (int i = 0; i < tags_.size(); i++) {
@@ -7711,55 +6299,33 @@ public final class Issues {
size += dataSize;
size += 2 * getTagsList().size();
}
- if (((bitField0_ & 0x00040000) == 0x00040000)) {
+ if (((bitField0_ & 0x00020000) == 0x00020000)) {
size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(21, transitionsPresentIfEmpty_);
+ .computeMessageSize(20, getTransitions());
}
- {
- int dataSize = 0;
- for (int i = 0; i < transitions_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(transitions_.getByteString(i));
- }
- size += dataSize;
- size += 2 * getTransitionsList().size();
+ if (((bitField0_ & 0x00040000) == 0x00040000)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(21, getActions());
}
if (((bitField0_ & 0x00080000) == 0x00080000)) {
size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(23, actionsPresentIfEmpty_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < actions_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(actions_.getByteString(i));
- }
- size += dataSize;
- size += 2 * getActionsList().size();
+ .computeMessageSize(22, getComments());
}
if (((bitField0_ & 0x00100000) == 0x00100000)) {
size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(25, commentsPresentIfEmpty_);
- }
- for (int i = 0; i < comments_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(26, comments_.get(i));
+ .computeBytesSize(23, getCreationDateBytes());
}
if (((bitField0_ & 0x00200000) == 0x00200000)) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(27, getCreationDateBytes());
+ .computeBytesSize(24, getUpdateDateBytes());
}
if (((bitField0_ & 0x00400000) == 0x00400000)) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(28, getUpdateDateBytes());
+ .computeBytesSize(25, getFUpdateAgeBytes());
}
if (((bitField0_ & 0x00800000) == 0x00800000)) {
size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(29, getFUpdateAgeBytes());
- }
- if (((bitField0_ & 0x01000000) == 0x01000000)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(30, getCloseDateBytes());
+ .computeBytesSize(26, getCloseDateBytes());
}
size += unknownFields.getSerializedSize();
memoizedSerializedSize = size;
@@ -7871,6 +6437,8 @@ public final class Issues {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getTextRangeFieldBuilder();
getFlowsFieldBuilder();
+ getTransitionsFieldBuilder();
+ getActionsFieldBuilder();
getCommentsFieldBuilder();
}
}
@@ -7920,34 +6488,34 @@ public final class Issues {
bitField0_ = (bitField0_ & ~0x00010000);
actionPlan_ = "";
bitField0_ = (bitField0_ & ~0x00020000);
- tagsPresentIfEmpty_ = false;
- bitField0_ = (bitField0_ & ~0x00040000);
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00040000);
+ if (transitionsBuilder_ == null) {
+ transitions_ = null;
+ } else {
+ transitionsBuilder_.clear();
+ }
bitField0_ = (bitField0_ & ~0x00080000);
- transitionsPresentIfEmpty_ = false;
+ if (actionsBuilder_ == null) {
+ actions_ = null;
+ } else {
+ actionsBuilder_.clear();
+ }
bitField0_ = (bitField0_ & ~0x00100000);
- transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00200000);
- actionsPresentIfEmpty_ = false;
- bitField0_ = (bitField0_ & ~0x00400000);
- actions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00800000);
- commentsPresentIfEmpty_ = false;
- bitField0_ = (bitField0_ & ~0x01000000);
if (commentsBuilder_ == null) {
- comments_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x02000000);
+ comments_ = null;
} else {
commentsBuilder_.clear();
}
+ bitField0_ = (bitField0_ & ~0x00200000);
creationDate_ = "";
- bitField0_ = (bitField0_ & ~0x04000000);
+ bitField0_ = (bitField0_ & ~0x00400000);
updateDate_ = "";
- bitField0_ = (bitField0_ & ~0x08000000);
+ bitField0_ = (bitField0_ & ~0x00800000);
fUpdateAge_ = "";
- bitField0_ = (bitField0_ & ~0x10000000);
+ bitField0_ = (bitField0_ & ~0x01000000);
closeDate_ = "";
- bitField0_ = (bitField0_ & ~0x20000000);
+ bitField0_ = (bitField0_ & ~0x02000000);
return this;
}
@@ -8053,60 +6621,49 @@ public final class Issues {
to_bitField0_ |= 0x00010000;
}
result.actionPlan_ = actionPlan_;
- if (((from_bitField0_ & 0x00040000) == 0x00040000)) {
- to_bitField0_ |= 0x00020000;
- }
- result.tagsPresentIfEmpty_ = tagsPresentIfEmpty_;
- if (((bitField0_ & 0x00080000) == 0x00080000)) {
+ if (((bitField0_ & 0x00040000) == 0x00040000)) {
tags_ = tags_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00080000);
+ bitField0_ = (bitField0_ & ~0x00040000);
}
result.tags_ = tags_;
+ if (((from_bitField0_ & 0x00080000) == 0x00080000)) {
+ to_bitField0_ |= 0x00020000;
+ }
+ if (transitionsBuilder_ == null) {
+ result.transitions_ = transitions_;
+ } else {
+ result.transitions_ = transitionsBuilder_.build();
+ }
if (((from_bitField0_ & 0x00100000) == 0x00100000)) {
to_bitField0_ |= 0x00040000;
}
- result.transitionsPresentIfEmpty_ = transitionsPresentIfEmpty_;
- if (((bitField0_ & 0x00200000) == 0x00200000)) {
- transitions_ = transitions_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00200000);
+ if (actionsBuilder_ == null) {
+ result.actions_ = actions_;
+ } else {
+ result.actions_ = actionsBuilder_.build();
}
- result.transitions_ = transitions_;
- if (((from_bitField0_ & 0x00400000) == 0x00400000)) {
+ if (((from_bitField0_ & 0x00200000) == 0x00200000)) {
to_bitField0_ |= 0x00080000;
}
- result.actionsPresentIfEmpty_ = actionsPresentIfEmpty_;
- if (((bitField0_ & 0x00800000) == 0x00800000)) {
- actions_ = actions_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00800000);
- }
- result.actions_ = actions_;
- if (((from_bitField0_ & 0x01000000) == 0x01000000)) {
- to_bitField0_ |= 0x00100000;
- }
- result.commentsPresentIfEmpty_ = commentsPresentIfEmpty_;
if (commentsBuilder_ == null) {
- if (((bitField0_ & 0x02000000) == 0x02000000)) {
- comments_ = java.util.Collections.unmodifiableList(comments_);
- bitField0_ = (bitField0_ & ~0x02000000);
- }
result.comments_ = comments_;
} else {
result.comments_ = commentsBuilder_.build();
}
- if (((from_bitField0_ & 0x04000000) == 0x04000000)) {
- to_bitField0_ |= 0x00200000;
+ if (((from_bitField0_ & 0x00400000) == 0x00400000)) {
+ to_bitField0_ |= 0x00100000;
}
result.creationDate_ = creationDate_;
- if (((from_bitField0_ & 0x08000000) == 0x08000000)) {
- to_bitField0_ |= 0x00400000;
+ if (((from_bitField0_ & 0x00800000) == 0x00800000)) {
+ to_bitField0_ |= 0x00200000;
}
result.updateDate_ = updateDate_;
- if (((from_bitField0_ & 0x10000000) == 0x10000000)) {
- to_bitField0_ |= 0x00800000;
+ if (((from_bitField0_ & 0x01000000) == 0x01000000)) {
+ to_bitField0_ |= 0x00400000;
}
result.fUpdateAge_ = fUpdateAge_;
- if (((from_bitField0_ & 0x20000000) == 0x20000000)) {
- to_bitField0_ |= 0x01000000;
+ if (((from_bitField0_ & 0x02000000) == 0x02000000)) {
+ to_bitField0_ |= 0x00800000;
}
result.closeDate_ = closeDate_;
result.bitField0_ = to_bitField0_;
@@ -8228,91 +6785,42 @@ public final class Issues {
actionPlan_ = other.actionPlan_;
onChanged();
}
- if (other.hasTagsPresentIfEmpty()) {
- setTagsPresentIfEmpty(other.getTagsPresentIfEmpty());
- }
if (!other.tags_.isEmpty()) {
if (tags_.isEmpty()) {
tags_ = other.tags_;
- bitField0_ = (bitField0_ & ~0x00080000);
+ bitField0_ = (bitField0_ & ~0x00040000);
} else {
ensureTagsIsMutable();
tags_.addAll(other.tags_);
}
onChanged();
}
- if (other.hasTransitionsPresentIfEmpty()) {
- setTransitionsPresentIfEmpty(other.getTransitionsPresentIfEmpty());
- }
- if (!other.transitions_.isEmpty()) {
- if (transitions_.isEmpty()) {
- transitions_ = other.transitions_;
- bitField0_ = (bitField0_ & ~0x00200000);
- } else {
- ensureTransitionsIsMutable();
- transitions_.addAll(other.transitions_);
- }
- onChanged();
- }
- if (other.hasActionsPresentIfEmpty()) {
- setActionsPresentIfEmpty(other.getActionsPresentIfEmpty());
- }
- if (!other.actions_.isEmpty()) {
- if (actions_.isEmpty()) {
- actions_ = other.actions_;
- bitField0_ = (bitField0_ & ~0x00800000);
- } else {
- ensureActionsIsMutable();
- actions_.addAll(other.actions_);
- }
- onChanged();
+ if (other.hasTransitions()) {
+ mergeTransitions(other.getTransitions());
}
- if (other.hasCommentsPresentIfEmpty()) {
- setCommentsPresentIfEmpty(other.getCommentsPresentIfEmpty());
+ if (other.hasActions()) {
+ mergeActions(other.getActions());
}
- if (commentsBuilder_ == null) {
- if (!other.comments_.isEmpty()) {
- if (comments_.isEmpty()) {
- comments_ = other.comments_;
- bitField0_ = (bitField0_ & ~0x02000000);
- } else {
- ensureCommentsIsMutable();
- comments_.addAll(other.comments_);
- }
- onChanged();
- }
- } else {
- if (!other.comments_.isEmpty()) {
- if (commentsBuilder_.isEmpty()) {
- commentsBuilder_.dispose();
- commentsBuilder_ = null;
- comments_ = other.comments_;
- bitField0_ = (bitField0_ & ~0x02000000);
- commentsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getCommentsFieldBuilder() : null;
- } else {
- commentsBuilder_.addAllMessages(other.comments_);
- }
- }
+ if (other.hasComments()) {
+ mergeComments(other.getComments());
}
if (other.hasCreationDate()) {
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x00400000;
creationDate_ = other.creationDate_;
onChanged();
}
if (other.hasUpdateDate()) {
- bitField0_ |= 0x08000000;
+ bitField0_ |= 0x00800000;
updateDate_ = other.updateDate_;
onChanged();
}
if (other.hasFUpdateAge()) {
- bitField0_ |= 0x10000000;
+ bitField0_ |= 0x01000000;
fUpdateAge_ = other.fUpdateAge_;
onChanged();
}
if (other.hasCloseDate()) {
- bitField0_ |= 0x20000000;
+ bitField0_ |= 0x02000000;
closeDate_ = other.closeDate_;
onChanged();
}
@@ -9814,73 +8322,41 @@ public final class Issues {
return this;
}
- private boolean tagsPresentIfEmpty_ ;
- /**
- * <code>optional bool tagsPresentIfEmpty = 19;</code>
- */
- public boolean hasTagsPresentIfEmpty() {
- return ((bitField0_ & 0x00040000) == 0x00040000);
- }
- /**
- * <code>optional bool tagsPresentIfEmpty = 19;</code>
- */
- public boolean getTagsPresentIfEmpty() {
- return tagsPresentIfEmpty_;
- }
- /**
- * <code>optional bool tagsPresentIfEmpty = 19;</code>
- */
- public Builder setTagsPresentIfEmpty(boolean value) {
- bitField0_ |= 0x00040000;
- tagsPresentIfEmpty_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional bool tagsPresentIfEmpty = 19;</code>
- */
- public Builder clearTagsPresentIfEmpty() {
- bitField0_ = (bitField0_ & ~0x00040000);
- tagsPresentIfEmpty_ = false;
- onChanged();
- return this;
- }
-
private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTagsIsMutable() {
- if (!((bitField0_ & 0x00080000) == 0x00080000)) {
+ if (!((bitField0_ & 0x00040000) == 0x00040000)) {
tags_ = new com.google.protobuf.LazyStringArrayList(tags_);
- bitField0_ |= 0x00080000;
+ bitField0_ |= 0x00040000;
}
}
/**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
public com.google.protobuf.ProtocolStringList
getTagsList() {
return tags_.getUnmodifiableView();
}
/**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
public int getTagsCount() {
return tags_.size();
}
/**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
public java.lang.String getTags(int index) {
return tags_.get(index);
}
/**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
public com.google.protobuf.ByteString
getTagsBytes(int index) {
return tags_.getByteString(index);
}
/**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
public Builder setTags(
int index, java.lang.String value) {
@@ -9893,7 +8369,7 @@ public final class Issues {
return this;
}
/**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
public Builder addTags(
java.lang.String value) {
@@ -9906,7 +8382,7 @@ public final class Issues {
return this;
}
/**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
public Builder addAllTags(
java.lang.Iterable<java.lang.String> values) {
@@ -9917,16 +8393,16 @@ public final class Issues {
return this;
}
/**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
public Builder clearTags() {
tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00080000);
+ bitField0_ = (bitField0_ & ~0x00040000);
onChanged();
return this;
}
/**
- * <code>repeated string tags = 20;</code>
+ * <code>repeated string tags = 19;</code>
*/
public Builder addTagsBytes(
com.google.protobuf.ByteString value) {
@@ -9939,553 +8415,425 @@ public final class Issues {
return this;
}
- private boolean transitionsPresentIfEmpty_ ;
+ private org.sonarqube.ws.Issues.Transitions transitions_ = null;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Issues.Transitions, org.sonarqube.ws.Issues.Transitions.Builder, org.sonarqube.ws.Issues.TransitionsOrBuilder> transitionsBuilder_;
/**
- * <code>optional bool transitionsPresentIfEmpty = 21;</code>
+ * <code>optional .sonarqube.ws.issues.Transitions transitions = 20;</code>
*
* <pre>
* the transitions allowed for the requesting user.
* </pre>
*/
- public boolean hasTransitionsPresentIfEmpty() {
- return ((bitField0_ & 0x00100000) == 0x00100000);
+ public boolean hasTransitions() {
+ return ((bitField0_ & 0x00080000) == 0x00080000);
}
/**
- * <code>optional bool transitionsPresentIfEmpty = 21;</code>
+ * <code>optional .sonarqube.ws.issues.Transitions transitions = 20;</code>
*
* <pre>
* the transitions allowed for the requesting user.
* </pre>
*/
- public boolean getTransitionsPresentIfEmpty() {
- return transitionsPresentIfEmpty_;
+ public org.sonarqube.ws.Issues.Transitions getTransitions() {
+ if (transitionsBuilder_ == null) {
+ return transitions_ == null ? org.sonarqube.ws.Issues.Transitions.getDefaultInstance() : transitions_;
+ } else {
+ return transitionsBuilder_.getMessage();
+ }
}
/**
- * <code>optional bool transitionsPresentIfEmpty = 21;</code>
+ * <code>optional .sonarqube.ws.issues.Transitions transitions = 20;</code>
*
* <pre>
* the transitions allowed for the requesting user.
* </pre>
*/
- public Builder setTransitionsPresentIfEmpty(boolean value) {
- bitField0_ |= 0x00100000;
- transitionsPresentIfEmpty_ = value;
- onChanged();
+ public Builder setTransitions(org.sonarqube.ws.Issues.Transitions value) {
+ if (transitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ transitions_ = value;
+ onChanged();
+ } else {
+ transitionsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00080000;
return this;
}
/**
- * <code>optional bool transitionsPresentIfEmpty = 21;</code>
+ * <code>optional .sonarqube.ws.issues.Transitions transitions = 20;</code>
*
* <pre>
* the transitions allowed for the requesting user.
* </pre>
*/
- public Builder clearTransitionsPresentIfEmpty() {
- bitField0_ = (bitField0_ & ~0x00100000);
- transitionsPresentIfEmpty_ = false;
- onChanged();
+ public Builder setTransitions(
+ org.sonarqube.ws.Issues.Transitions.Builder builderForValue) {
+ if (transitionsBuilder_ == null) {
+ transitions_ = builderForValue.build();
+ onChanged();
+ } else {
+ transitionsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00080000;
return this;
}
-
- private com.google.protobuf.LazyStringList transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- private void ensureTransitionsIsMutable() {
- if (!((bitField0_ & 0x00200000) == 0x00200000)) {
- transitions_ = new com.google.protobuf.LazyStringArrayList(transitions_);
- bitField0_ |= 0x00200000;
- }
- }
- /**
- * <code>repeated string transitions = 22;</code>
- */
- public com.google.protobuf.ProtocolStringList
- getTransitionsList() {
- return transitions_.getUnmodifiableView();
- }
- /**
- * <code>repeated string transitions = 22;</code>
- */
- public int getTransitionsCount() {
- return transitions_.size();
- }
/**
- * <code>repeated string transitions = 22;</code>
- */
- public java.lang.String getTransitions(int index) {
- return transitions_.get(index);
- }
- /**
- * <code>repeated string transitions = 22;</code>
- */
- public com.google.protobuf.ByteString
- getTransitionsBytes(int index) {
- return transitions_.getByteString(index);
- }
- /**
- * <code>repeated string transitions = 22;</code>
+ * <code>optional .sonarqube.ws.issues.Transitions transitions = 20;</code>
+ *
+ * <pre>
+ * the transitions allowed for the requesting user.
+ * </pre>
*/
- public Builder setTransitions(
- int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTransitionsIsMutable();
- transitions_.set(index, value);
- onChanged();
+ public Builder mergeTransitions(org.sonarqube.ws.Issues.Transitions value) {
+ if (transitionsBuilder_ == null) {
+ if (((bitField0_ & 0x00080000) == 0x00080000) &&
+ transitions_ != null &&
+ transitions_ != org.sonarqube.ws.Issues.Transitions.getDefaultInstance()) {
+ transitions_ =
+ org.sonarqube.ws.Issues.Transitions.newBuilder(transitions_).mergeFrom(value).buildPartial();
+ } else {
+ transitions_ = value;
+ }
+ onChanged();
+ } else {
+ transitionsBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00080000;
return this;
}
/**
- * <code>repeated string transitions = 22;</code>
+ * <code>optional .sonarqube.ws.issues.Transitions transitions = 20;</code>
+ *
+ * <pre>
+ * the transitions allowed for the requesting user.
+ * </pre>
*/
- public Builder addTransitions(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTransitionsIsMutable();
- transitions_.add(value);
- onChanged();
+ public Builder clearTransitions() {
+ if (transitionsBuilder_ == null) {
+ transitions_ = null;
+ onChanged();
+ } else {
+ transitionsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00080000);
return this;
}
/**
- * <code>repeated string transitions = 22;</code>
+ * <code>optional .sonarqube.ws.issues.Transitions transitions = 20;</code>
+ *
+ * <pre>
+ * the transitions allowed for the requesting user.
+ * </pre>
*/
- public Builder addAllTransitions(
- java.lang.Iterable<java.lang.String> values) {
- ensureTransitionsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, transitions_);
+ public org.sonarqube.ws.Issues.Transitions.Builder getTransitionsBuilder() {
+ bitField0_ |= 0x00080000;
onChanged();
- return this;
+ return getTransitionsFieldBuilder().getBuilder();
}
/**
- * <code>repeated string transitions = 22;</code>
+ * <code>optional .sonarqube.ws.issues.Transitions transitions = 20;</code>
+ *
+ * <pre>
+ * the transitions allowed for the requesting user.
+ * </pre>
*/
- public Builder clearTransitions() {
- transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00200000);
- onChanged();
- return this;
+ public org.sonarqube.ws.Issues.TransitionsOrBuilder getTransitionsOrBuilder() {
+ if (transitionsBuilder_ != null) {
+ return transitionsBuilder_.getMessageOrBuilder();
+ } else {
+ return transitions_ == null ?
+ org.sonarqube.ws.Issues.Transitions.getDefaultInstance() : transitions_;
+ }
}
/**
- * <code>repeated string transitions = 22;</code>
+ * <code>optional .sonarqube.ws.issues.Transitions transitions = 20;</code>
+ *
+ * <pre>
+ * the transitions allowed for the requesting user.
+ * </pre>
*/
- public Builder addTransitionsBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTransitionsIsMutable();
- transitions_.add(value);
- onChanged();
- return this;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Issues.Transitions, org.sonarqube.ws.Issues.Transitions.Builder, org.sonarqube.ws.Issues.TransitionsOrBuilder>
+ getTransitionsFieldBuilder() {
+ if (transitionsBuilder_ == null) {
+ transitionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Issues.Transitions, org.sonarqube.ws.Issues.Transitions.Builder, org.sonarqube.ws.Issues.TransitionsOrBuilder>(
+ getTransitions(),
+ getParentForChildren(),
+ isClean());
+ transitions_ = null;
+ }
+ return transitionsBuilder_;
}
- private boolean actionsPresentIfEmpty_ ;
+ private org.sonarqube.ws.Issues.Actions actions_ = null;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Issues.Actions, org.sonarqube.ws.Issues.Actions.Builder, org.sonarqube.ws.Issues.ActionsOrBuilder> actionsBuilder_;
/**
- * <code>optional bool actionsPresentIfEmpty = 23;</code>
+ * <code>optional .sonarqube.ws.issues.Actions actions = 21;</code>
*
* <pre>
* the actions allowed for the requesting user.
* </pre>
*/
- public boolean hasActionsPresentIfEmpty() {
- return ((bitField0_ & 0x00400000) == 0x00400000);
+ public boolean hasActions() {
+ return ((bitField0_ & 0x00100000) == 0x00100000);
}
/**
- * <code>optional bool actionsPresentIfEmpty = 23;</code>
+ * <code>optional .sonarqube.ws.issues.Actions actions = 21;</code>
*
* <pre>
* the actions allowed for the requesting user.
* </pre>
*/
- public boolean getActionsPresentIfEmpty() {
- return actionsPresentIfEmpty_;
+ public org.sonarqube.ws.Issues.Actions getActions() {
+ if (actionsBuilder_ == null) {
+ return actions_ == null ? org.sonarqube.ws.Issues.Actions.getDefaultInstance() : actions_;
+ } else {
+ return actionsBuilder_.getMessage();
+ }
}
/**
- * <code>optional bool actionsPresentIfEmpty = 23;</code>
+ * <code>optional .sonarqube.ws.issues.Actions actions = 21;</code>
*
* <pre>
* the actions allowed for the requesting user.
* </pre>
*/
- public Builder setActionsPresentIfEmpty(boolean value) {
- bitField0_ |= 0x00400000;
- actionsPresentIfEmpty_ = value;
- onChanged();
+ public Builder setActions(org.sonarqube.ws.Issues.Actions value) {
+ if (actionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ actions_ = value;
+ onChanged();
+ } else {
+ actionsBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00100000;
return this;
}
/**
- * <code>optional bool actionsPresentIfEmpty = 23;</code>
+ * <code>optional .sonarqube.ws.issues.Actions actions = 21;</code>
*
* <pre>
* the actions allowed for the requesting user.
* </pre>
*/
- public Builder clearActionsPresentIfEmpty() {
- bitField0_ = (bitField0_ & ~0x00400000);
- actionsPresentIfEmpty_ = false;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.LazyStringList actions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- private void ensureActionsIsMutable() {
- if (!((bitField0_ & 0x00800000) == 0x00800000)) {
- actions_ = new com.google.protobuf.LazyStringArrayList(actions_);
- bitField0_ |= 0x00800000;
- }
- }
- /**
- * <code>repeated string actions = 24;</code>
- */
- public com.google.protobuf.ProtocolStringList
- getActionsList() {
- return actions_.getUnmodifiableView();
- }
- /**
- * <code>repeated string actions = 24;</code>
- */
- public int getActionsCount() {
- return actions_.size();
- }
- /**
- * <code>repeated string actions = 24;</code>
- */
- public java.lang.String getActions(int index) {
- return actions_.get(index);
- }
- /**
- * <code>repeated string actions = 24;</code>
- */
- public com.google.protobuf.ByteString
- getActionsBytes(int index) {
- return actions_.getByteString(index);
- }
- /**
- * <code>repeated string actions = 24;</code>
- */
public Builder setActions(
- int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureActionsIsMutable();
- actions_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * <code>repeated string actions = 24;</code>
- */
- public Builder addActions(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureActionsIsMutable();
- actions_.add(value);
- onChanged();
+ org.sonarqube.ws.Issues.Actions.Builder builderForValue) {
+ if (actionsBuilder_ == null) {
+ actions_ = builderForValue.build();
+ onChanged();
+ } else {
+ actionsBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00100000;
return this;
}
/**
- * <code>repeated string actions = 24;</code>
+ * <code>optional .sonarqube.ws.issues.Actions actions = 21;</code>
+ *
+ * <pre>
+ * the actions allowed for the requesting user.
+ * </pre>
*/
- public Builder addAllActions(
- java.lang.Iterable<java.lang.String> values) {
- ensureActionsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, actions_);
- onChanged();
+ public Builder mergeActions(org.sonarqube.ws.Issues.Actions value) {
+ if (actionsBuilder_ == null) {
+ if (((bitField0_ & 0x00100000) == 0x00100000) &&
+ actions_ != null &&
+ actions_ != org.sonarqube.ws.Issues.Actions.getDefaultInstance()) {
+ actions_ =
+ org.sonarqube.ws.Issues.Actions.newBuilder(actions_).mergeFrom(value).buildPartial();
+ } else {
+ actions_ = value;
+ }
+ onChanged();
+ } else {
+ actionsBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00100000;
return this;
}
/**
- * <code>repeated string actions = 24;</code>
+ * <code>optional .sonarqube.ws.issues.Actions actions = 21;</code>
+ *
+ * <pre>
+ * the actions allowed for the requesting user.
+ * </pre>
*/
public Builder clearActions() {
- actions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00800000);
- onChanged();
- return this;
- }
- /**
- * <code>repeated string actions = 24;</code>
- */
- public Builder addActionsBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureActionsIsMutable();
- actions_.add(value);
- onChanged();
- return this;
- }
-
- private boolean commentsPresentIfEmpty_ ;
- /**
- * <code>optional bool commentsPresentIfEmpty = 25;</code>
- */
- public boolean hasCommentsPresentIfEmpty() {
- return ((bitField0_ & 0x01000000) == 0x01000000);
- }
- /**
- * <code>optional bool commentsPresentIfEmpty = 25;</code>
- */
- public boolean getCommentsPresentIfEmpty() {
- return commentsPresentIfEmpty_;
- }
- /**
- * <code>optional bool commentsPresentIfEmpty = 25;</code>
- */
- public Builder setCommentsPresentIfEmpty(boolean value) {
- bitField0_ |= 0x01000000;
- commentsPresentIfEmpty_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional bool commentsPresentIfEmpty = 25;</code>
- */
- public Builder clearCommentsPresentIfEmpty() {
- bitField0_ = (bitField0_ & ~0x01000000);
- commentsPresentIfEmpty_ = false;
- onChanged();
- return this;
- }
-
- private java.util.List<org.sonarqube.ws.Issues.Comment> comments_ =
- java.util.Collections.emptyList();
- private void ensureCommentsIsMutable() {
- if (!((bitField0_ & 0x02000000) == 0x02000000)) {
- comments_ = new java.util.ArrayList<org.sonarqube.ws.Issues.Comment>(comments_);
- bitField0_ |= 0x02000000;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder> commentsBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
- */
- public java.util.List<org.sonarqube.ws.Issues.Comment> getCommentsList() {
- if (commentsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(comments_);
+ if (actionsBuilder_ == null) {
+ actions_ = null;
+ onChanged();
} else {
- return commentsBuilder_.getMessageList();
+ actionsBuilder_.clear();
}
+ bitField0_ = (bitField0_ & ~0x00100000);
+ return this;
}
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Actions actions = 21;</code>
+ *
+ * <pre>
+ * the actions allowed for the requesting user.
+ * </pre>
*/
- public int getCommentsCount() {
- if (commentsBuilder_ == null) {
- return comments_.size();
- } else {
- return commentsBuilder_.getCount();
- }
+ public org.sonarqube.ws.Issues.Actions.Builder getActionsBuilder() {
+ bitField0_ |= 0x00100000;
+ onChanged();
+ return getActionsFieldBuilder().getBuilder();
}
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Actions actions = 21;</code>
+ *
+ * <pre>
+ * the actions allowed for the requesting user.
+ * </pre>
*/
- public org.sonarqube.ws.Issues.Comment getComments(int index) {
- if (commentsBuilder_ == null) {
- return comments_.get(index);
+ public org.sonarqube.ws.Issues.ActionsOrBuilder getActionsOrBuilder() {
+ if (actionsBuilder_ != null) {
+ return actionsBuilder_.getMessageOrBuilder();
} else {
- return commentsBuilder_.getMessage(index);
+ return actions_ == null ?
+ org.sonarqube.ws.Issues.Actions.getDefaultInstance() : actions_;
}
}
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Actions actions = 21;</code>
+ *
+ * <pre>
+ * the actions allowed for the requesting user.
+ * </pre>
*/
- public Builder setComments(
- int index, org.sonarqube.ws.Issues.Comment value) {
- if (commentsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureCommentsIsMutable();
- comments_.set(index, value);
- onChanged();
- } else {
- commentsBuilder_.setMessage(index, value);
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Issues.Actions, org.sonarqube.ws.Issues.Actions.Builder, org.sonarqube.ws.Issues.ActionsOrBuilder>
+ getActionsFieldBuilder() {
+ if (actionsBuilder_ == null) {
+ actionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Issues.Actions, org.sonarqube.ws.Issues.Actions.Builder, org.sonarqube.ws.Issues.ActionsOrBuilder>(
+ getActions(),
+ getParentForChildren(),
+ isClean());
+ actions_ = null;
}
- return this;
+ return actionsBuilder_;
}
+
+ private org.sonarqube.ws.Issues.Comments comments_ = null;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Issues.Comments, org.sonarqube.ws.Issues.Comments.Builder, org.sonarqube.ws.Issues.CommentsOrBuilder> commentsBuilder_;
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Comments comments = 22;</code>
*/
- public Builder setComments(
- int index, org.sonarqube.ws.Issues.Comment.Builder builderForValue) {
- if (commentsBuilder_ == null) {
- ensureCommentsIsMutable();
- comments_.set(index, builderForValue.build());
- onChanged();
- } else {
- commentsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
+ public boolean hasComments() {
+ return ((bitField0_ & 0x00200000) == 0x00200000);
}
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Comments comments = 22;</code>
*/
- public Builder addComments(org.sonarqube.ws.Issues.Comment value) {
+ public org.sonarqube.ws.Issues.Comments getComments() {
if (commentsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureCommentsIsMutable();
- comments_.add(value);
- onChanged();
+ return comments_ == null ? org.sonarqube.ws.Issues.Comments.getDefaultInstance() : comments_;
} else {
- commentsBuilder_.addMessage(value);
+ return commentsBuilder_.getMessage();
}
- return this;
}
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Comments comments = 22;</code>
*/
- public Builder addComments(
- int index, org.sonarqube.ws.Issues.Comment value) {
+ public Builder setComments(org.sonarqube.ws.Issues.Comments value) {
if (commentsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureCommentsIsMutable();
- comments_.add(index, value);
- onChanged();
- } else {
- commentsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
- */
- public Builder addComments(
- org.sonarqube.ws.Issues.Comment.Builder builderForValue) {
- if (commentsBuilder_ == null) {
- ensureCommentsIsMutable();
- comments_.add(builderForValue.build());
+ comments_ = value;
onChanged();
} else {
- commentsBuilder_.addMessage(builderForValue.build());
+ commentsBuilder_.setMessage(value);
}
+ bitField0_ |= 0x00200000;
return this;
}
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Comments comments = 22;</code>
*/
- public Builder addComments(
- int index, org.sonarqube.ws.Issues.Comment.Builder builderForValue) {
+ public Builder setComments(
+ org.sonarqube.ws.Issues.Comments.Builder builderForValue) {
if (commentsBuilder_ == null) {
- ensureCommentsIsMutable();
- comments_.add(index, builderForValue.build());
+ comments_ = builderForValue.build();
onChanged();
} else {
- commentsBuilder_.addMessage(index, builderForValue.build());
+ commentsBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00200000;
return this;
}
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Comments comments = 22;</code>
*/
- public Builder addAllComments(
- java.lang.Iterable<? extends org.sonarqube.ws.Issues.Comment> values) {
+ public Builder mergeComments(org.sonarqube.ws.Issues.Comments value) {
if (commentsBuilder_ == null) {
- ensureCommentsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, comments_);
+ if (((bitField0_ & 0x00200000) == 0x00200000) &&
+ comments_ != null &&
+ comments_ != org.sonarqube.ws.Issues.Comments.getDefaultInstance()) {
+ comments_ =
+ org.sonarqube.ws.Issues.Comments.newBuilder(comments_).mergeFrom(value).buildPartial();
+ } else {
+ comments_ = value;
+ }
onChanged();
} else {
- commentsBuilder_.addAllMessages(values);
+ commentsBuilder_.mergeFrom(value);
}
+ bitField0_ |= 0x00200000;
return this;
}
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Comments comments = 22;</code>
*/
public Builder clearComments() {
if (commentsBuilder_ == null) {
- comments_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x02000000);
+ comments_ = null;
onChanged();
} else {
commentsBuilder_.clear();
}
+ bitField0_ = (bitField0_ & ~0x00200000);
return this;
}
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
- */
- public Builder removeComments(int index) {
- if (commentsBuilder_ == null) {
- ensureCommentsIsMutable();
- comments_.remove(index);
- onChanged();
- } else {
- commentsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
- */
- public org.sonarqube.ws.Issues.Comment.Builder getCommentsBuilder(
- int index) {
- return getCommentsFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Comments comments = 22;</code>
*/
- public org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder(
- int index) {
- if (commentsBuilder_ == null) {
- return comments_.get(index); } else {
- return commentsBuilder_.getMessageOrBuilder(index);
- }
+ public org.sonarqube.ws.Issues.Comments.Builder getCommentsBuilder() {
+ bitField0_ |= 0x00200000;
+ onChanged();
+ return getCommentsFieldBuilder().getBuilder();
}
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Comments comments = 22;</code>
*/
- public java.util.List<? extends org.sonarqube.ws.Issues.CommentOrBuilder>
- getCommentsOrBuilderList() {
+ public org.sonarqube.ws.Issues.CommentsOrBuilder getCommentsOrBuilder() {
if (commentsBuilder_ != null) {
- return commentsBuilder_.getMessageOrBuilderList();
+ return commentsBuilder_.getMessageOrBuilder();
} else {
- return java.util.Collections.unmodifiableList(comments_);
+ return comments_ == null ?
+ org.sonarqube.ws.Issues.Comments.getDefaultInstance() : comments_;
}
}
/**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
- */
- public org.sonarqube.ws.Issues.Comment.Builder addCommentsBuilder() {
- return getCommentsFieldBuilder().addBuilder(
- org.sonarqube.ws.Issues.Comment.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
- */
- public org.sonarqube.ws.Issues.Comment.Builder addCommentsBuilder(
- int index) {
- return getCommentsFieldBuilder().addBuilder(
- index, org.sonarqube.ws.Issues.Comment.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.issues.Comment comments = 26;</code>
+ * <code>optional .sonarqube.ws.issues.Comments comments = 22;</code>
*/
- public java.util.List<org.sonarqube.ws.Issues.Comment.Builder>
- getCommentsBuilderList() {
- return getCommentsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder>
+ private com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Issues.Comments, org.sonarqube.ws.Issues.Comments.Builder, org.sonarqube.ws.Issues.CommentsOrBuilder>
getCommentsFieldBuilder() {
if (commentsBuilder_ == null) {
- commentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder>(
- comments_,
- ((bitField0_ & 0x02000000) == 0x02000000),
+ commentsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.sonarqube.ws.Issues.Comments, org.sonarqube.ws.Issues.Comments.Builder, org.sonarqube.ws.Issues.CommentsOrBuilder>(
+ getComments(),
getParentForChildren(),
isClean());
comments_ = null;
@@ -10495,13 +8843,13 @@ public final class Issues {
private java.lang.Object creationDate_ = "";
/**
- * <code>optional string creationDate = 27;</code>
+ * <code>optional string creationDate = 23;</code>
*/
public boolean hasCreationDate() {
- return ((bitField0_ & 0x04000000) == 0x04000000);
+ return ((bitField0_ & 0x00400000) == 0x00400000);
}
/**
- * <code>optional string creationDate = 27;</code>
+ * <code>optional string creationDate = 23;</code>
*/
public java.lang.String getCreationDate() {
java.lang.Object ref = creationDate_;
@@ -10518,7 +8866,7 @@ public final class Issues {
}
}
/**
- * <code>optional string creationDate = 27;</code>
+ * <code>optional string creationDate = 23;</code>
*/
public com.google.protobuf.ByteString
getCreationDateBytes() {
@@ -10534,36 +8882,36 @@ public final class Issues {
}
}
/**
- * <code>optional string creationDate = 27;</code>
+ * <code>optional string creationDate = 23;</code>
*/
public Builder setCreationDate(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x00400000;
creationDate_ = value;
onChanged();
return this;
}
/**
- * <code>optional string creationDate = 27;</code>
+ * <code>optional string creationDate = 23;</code>
*/
public Builder clearCreationDate() {
- bitField0_ = (bitField0_ & ~0x04000000);
+ bitField0_ = (bitField0_ & ~0x00400000);
creationDate_ = getDefaultInstance().getCreationDate();
onChanged();
return this;
}
/**
- * <code>optional string creationDate = 27;</code>
+ * <code>optional string creationDate = 23;</code>
*/
public Builder setCreationDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x04000000;
+ bitField0_ |= 0x00400000;
creationDate_ = value;
onChanged();
return this;
@@ -10571,13 +8919,13 @@ public final class Issues {
private java.lang.Object updateDate_ = "";
/**
- * <code>optional string updateDate = 28;</code>
+ * <code>optional string updateDate = 24;</code>
*/
public boolean hasUpdateDate() {
- return ((bitField0_ & 0x08000000) == 0x08000000);
+ return ((bitField0_ & 0x00800000) == 0x00800000);
}
/**
- * <code>optional string updateDate = 28;</code>
+ * <code>optional string updateDate = 24;</code>
*/
public java.lang.String getUpdateDate() {
java.lang.Object ref = updateDate_;
@@ -10594,7 +8942,7 @@ public final class Issues {
}
}
/**
- * <code>optional string updateDate = 28;</code>
+ * <code>optional string updateDate = 24;</code>
*/
public com.google.protobuf.ByteString
getUpdateDateBytes() {
@@ -10610,36 +8958,36 @@ public final class Issues {
}
}
/**
- * <code>optional string updateDate = 28;</code>
+ * <code>optional string updateDate = 24;</code>
*/
public Builder setUpdateDate(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x08000000;
+ bitField0_ |= 0x00800000;
updateDate_ = value;
onChanged();
return this;
}
/**
- * <code>optional string updateDate = 28;</code>
+ * <code>optional string updateDate = 24;</code>
*/
public Builder clearUpdateDate() {
- bitField0_ = (bitField0_ & ~0x08000000);
+ bitField0_ = (bitField0_ & ~0x00800000);
updateDate_ = getDefaultInstance().getUpdateDate();
onChanged();
return this;
}
/**
- * <code>optional string updateDate = 28;</code>
+ * <code>optional string updateDate = 24;</code>
*/
public Builder setUpdateDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x08000000;
+ bitField0_ |= 0x00800000;
updateDate_ = value;
onChanged();
return this;
@@ -10647,13 +8995,13 @@ public final class Issues {
private java.lang.Object fUpdateAge_ = "";
/**
- * <code>optional string fUpdateAge = 29;</code>
+ * <code>optional string fUpdateAge = 25;</code>
*/
public boolean hasFUpdateAge() {
- return ((bitField0_ & 0x10000000) == 0x10000000);
+ return ((bitField0_ & 0x01000000) == 0x01000000);
}
/**
- * <code>optional string fUpdateAge = 29;</code>
+ * <code>optional string fUpdateAge = 25;</code>
*/
public java.lang.String getFUpdateAge() {
java.lang.Object ref = fUpdateAge_;
@@ -10670,7 +9018,7 @@ public final class Issues {
}
}
/**
- * <code>optional string fUpdateAge = 29;</code>
+ * <code>optional string fUpdateAge = 25;</code>
*/
public com.google.protobuf.ByteString
getFUpdateAgeBytes() {
@@ -10686,36 +9034,36 @@ public final class Issues {
}
}
/**
- * <code>optional string fUpdateAge = 29;</code>
+ * <code>optional string fUpdateAge = 25;</code>
*/
public Builder setFUpdateAge(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x10000000;
+ bitField0_ |= 0x01000000;
fUpdateAge_ = value;
onChanged();
return this;
}
/**
- * <code>optional string fUpdateAge = 29;</code>
+ * <code>optional string fUpdateAge = 25;</code>
*/
public Builder clearFUpdateAge() {
- bitField0_ = (bitField0_ & ~0x10000000);
+ bitField0_ = (bitField0_ & ~0x01000000);
fUpdateAge_ = getDefaultInstance().getFUpdateAge();
onChanged();
return this;
}
/**
- * <code>optional string fUpdateAge = 29;</code>
+ * <code>optional string fUpdateAge = 25;</code>
*/
public Builder setFUpdateAgeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x10000000;
+ bitField0_ |= 0x01000000;
fUpdateAge_ = value;
onChanged();
return this;
@@ -10723,13 +9071,13 @@ public final class Issues {
private java.lang.Object closeDate_ = "";
/**
- * <code>optional string closeDate = 30;</code>
+ * <code>optional string closeDate = 26;</code>
*/
public boolean hasCloseDate() {
- return ((bitField0_ & 0x20000000) == 0x20000000);
+ return ((bitField0_ & 0x02000000) == 0x02000000);
}
/**
- * <code>optional string closeDate = 30;</code>
+ * <code>optional string closeDate = 26;</code>
*/
public java.lang.String getCloseDate() {
java.lang.Object ref = closeDate_;
@@ -10746,7 +9094,7 @@ public final class Issues {
}
}
/**
- * <code>optional string closeDate = 30;</code>
+ * <code>optional string closeDate = 26;</code>
*/
public com.google.protobuf.ByteString
getCloseDateBytes() {
@@ -10762,36 +9110,36 @@ public final class Issues {
}
}
/**
- * <code>optional string closeDate = 30;</code>
+ * <code>optional string closeDate = 26;</code>
*/
public Builder setCloseDate(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x20000000;
+ bitField0_ |= 0x02000000;
closeDate_ = value;
onChanged();
return this;
}
/**
- * <code>optional string closeDate = 30;</code>
+ * <code>optional string closeDate = 26;</code>
*/
public Builder clearCloseDate() {
- bitField0_ = (bitField0_ & ~0x20000000);
+ bitField0_ = (bitField0_ & ~0x02000000);
closeDate_ = getDefaultInstance().getCloseDate();
onChanged();
return this;
}
/**
- * <code>optional string closeDate = 30;</code>
+ * <code>optional string closeDate = 26;</code>
*/
public Builder setCloseDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
- bitField0_ |= 0x20000000;
+ bitField0_ |= 0x02000000;
closeDate_ = value;
onChanged();
return this;
@@ -10840,6 +9188,996 @@ public final class Issues {
}
+ public interface TransitionsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Transitions)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ com.google.protobuf.ProtocolStringList
+ getTransitionsList();
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ int getTransitionsCount();
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ java.lang.String getTransitions(int index);
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ com.google.protobuf.ByteString
+ getTransitionsBytes(int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.issues.Transitions}
+ */
+ public static final class Transitions extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Transitions)
+ TransitionsOrBuilder {
+ // Use Transitions.newBuilder() to construct.
+ private Transitions(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private Transitions() {
+ transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Transitions(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ transitions_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ transitions_.add(bs);
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ transitions_ = transitions_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Transitions_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Transitions_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.Issues.Transitions.class, org.sonarqube.ws.Issues.Transitions.Builder.class);
+ }
+
+ public static final int TRANSITIONS_FIELD_NUMBER = 1;
+ private com.google.protobuf.LazyStringList transitions_;
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ public com.google.protobuf.ProtocolStringList
+ getTransitionsList() {
+ return transitions_;
+ }
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ public int getTransitionsCount() {
+ return transitions_.size();
+ }
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ public java.lang.String getTransitions(int index) {
+ return transitions_.get(index);
+ }
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ public com.google.protobuf.ByteString
+ getTransitionsBytes(int index) {
+ return transitions_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < transitions_.size(); i++) {
+ output.writeBytes(1, transitions_.getByteString(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < transitions_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeBytesSizeNoTag(transitions_.getByteString(i));
+ }
+ size += dataSize;
+ size += 1 * getTransitionsList().size();
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.Issues.Transitions parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.Issues.Transitions parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.Transitions parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.Issues.Transitions parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.Transitions parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.Issues.Transitions parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.Transitions parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.Issues.Transitions parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.Transitions parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.Issues.Transitions parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.Issues.Transitions prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.issues.Transitions}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Transitions)
+ org.sonarqube.ws.Issues.TransitionsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Transitions_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Transitions_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.Issues.Transitions.class, org.sonarqube.ws.Issues.Transitions.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.Issues.Transitions.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Transitions_descriptor;
+ }
+
+ public org.sonarqube.ws.Issues.Transitions getDefaultInstanceForType() {
+ return org.sonarqube.ws.Issues.Transitions.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.Issues.Transitions build() {
+ org.sonarqube.ws.Issues.Transitions result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.Issues.Transitions buildPartial() {
+ org.sonarqube.ws.Issues.Transitions result = new org.sonarqube.ws.Issues.Transitions(this);
+ int from_bitField0_ = bitField0_;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ transitions_ = transitions_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.transitions_ = transitions_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.Issues.Transitions) {
+ return mergeFrom((org.sonarqube.ws.Issues.Transitions)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.Issues.Transitions other) {
+ if (other == org.sonarqube.ws.Issues.Transitions.getDefaultInstance()) return this;
+ if (!other.transitions_.isEmpty()) {
+ if (transitions_.isEmpty()) {
+ transitions_ = other.transitions_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureTransitionsIsMutable();
+ transitions_.addAll(other.transitions_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.Issues.Transitions parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.Issues.Transitions) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private com.google.protobuf.LazyStringList transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureTransitionsIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ transitions_ = new com.google.protobuf.LazyStringArrayList(transitions_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ public com.google.protobuf.ProtocolStringList
+ getTransitionsList() {
+ return transitions_.getUnmodifiableView();
+ }
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ public int getTransitionsCount() {
+ return transitions_.size();
+ }
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ public java.lang.String getTransitions(int index) {
+ return transitions_.get(index);
+ }
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ public com.google.protobuf.ByteString
+ getTransitionsBytes(int index) {
+ return transitions_.getByteString(index);
+ }
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ public Builder setTransitions(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTransitionsIsMutable();
+ transitions_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ public Builder addTransitions(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTransitionsIsMutable();
+ transitions_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ public Builder addAllTransitions(
+ java.lang.Iterable<java.lang.String> values) {
+ ensureTransitionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, transitions_);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ public Builder clearTransitions() {
+ transitions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated string transitions = 1;</code>
+ */
+ public Builder addTransitionsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTransitionsIsMutable();
+ transitions_.add(value);
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Transitions)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Transitions)
+ private static final org.sonarqube.ws.Issues.Transitions DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Transitions();
+ }
+
+ public static org.sonarqube.ws.Issues.Transitions getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Transitions> PARSER =
+ new com.google.protobuf.AbstractParser<Transitions>() {
+ public Transitions parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Transitions(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Transitions> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Issues.Transitions getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ActionsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Actions)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ com.google.protobuf.ProtocolStringList
+ getActionsList();
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ int getActionsCount();
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ java.lang.String getActions(int index);
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ com.google.protobuf.ByteString
+ getActionsBytes(int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.issues.Actions}
+ */
+ public static final class Actions extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Actions)
+ ActionsOrBuilder {
+ // Use Actions.newBuilder() to construct.
+ private Actions(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private Actions() {
+ actions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Actions(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ actions_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ actions_.add(bs);
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ actions_ = actions_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Actions_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Actions_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.Issues.Actions.class, org.sonarqube.ws.Issues.Actions.Builder.class);
+ }
+
+ public static final int ACTIONS_FIELD_NUMBER = 1;
+ private com.google.protobuf.LazyStringList actions_;
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ public com.google.protobuf.ProtocolStringList
+ getActionsList() {
+ return actions_;
+ }
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ public int getActionsCount() {
+ return actions_.size();
+ }
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ public java.lang.String getActions(int index) {
+ return actions_.get(index);
+ }
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ public com.google.protobuf.ByteString
+ getActionsBytes(int index) {
+ return actions_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < actions_.size(); i++) {
+ output.writeBytes(1, actions_.getByteString(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < actions_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeBytesSizeNoTag(actions_.getByteString(i));
+ }
+ size += dataSize;
+ size += 1 * getActionsList().size();
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.Issues.Actions parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.Issues.Actions parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.Actions parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.Issues.Actions parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.Actions parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.Issues.Actions parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.Actions parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.Issues.Actions parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.Actions parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.Issues.Actions parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.Issues.Actions prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.issues.Actions}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Actions)
+ org.sonarqube.ws.Issues.ActionsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Actions_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Actions_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.Issues.Actions.class, org.sonarqube.ws.Issues.Actions.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.Issues.Actions.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ actions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Actions_descriptor;
+ }
+
+ public org.sonarqube.ws.Issues.Actions getDefaultInstanceForType() {
+ return org.sonarqube.ws.Issues.Actions.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.Issues.Actions build() {
+ org.sonarqube.ws.Issues.Actions result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.Issues.Actions buildPartial() {
+ org.sonarqube.ws.Issues.Actions result = new org.sonarqube.ws.Issues.Actions(this);
+ int from_bitField0_ = bitField0_;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ actions_ = actions_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.actions_ = actions_;
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.Issues.Actions) {
+ return mergeFrom((org.sonarqube.ws.Issues.Actions)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.Issues.Actions other) {
+ if (other == org.sonarqube.ws.Issues.Actions.getDefaultInstance()) return this;
+ if (!other.actions_.isEmpty()) {
+ if (actions_.isEmpty()) {
+ actions_ = other.actions_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureActionsIsMutable();
+ actions_.addAll(other.actions_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.Issues.Actions parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.Issues.Actions) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private com.google.protobuf.LazyStringList actions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureActionsIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ actions_ = new com.google.protobuf.LazyStringArrayList(actions_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ public com.google.protobuf.ProtocolStringList
+ getActionsList() {
+ return actions_.getUnmodifiableView();
+ }
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ public int getActionsCount() {
+ return actions_.size();
+ }
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ public java.lang.String getActions(int index) {
+ return actions_.get(index);
+ }
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ public com.google.protobuf.ByteString
+ getActionsBytes(int index) {
+ return actions_.getByteString(index);
+ }
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ public Builder setActions(
+ int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureActionsIsMutable();
+ actions_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ public Builder addActions(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureActionsIsMutable();
+ actions_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ public Builder addAllActions(
+ java.lang.Iterable<java.lang.String> values) {
+ ensureActionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, actions_);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ public Builder clearActions() {
+ actions_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * <code>repeated string actions = 1;</code>
+ */
+ public Builder addActionsBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureActionsIsMutable();
+ actions_.add(value);
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Actions)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Actions)
+ private static final org.sonarqube.ws.Issues.Actions DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Actions();
+ }
+
+ public static org.sonarqube.ws.Issues.Actions getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Actions> PARSER =
+ new com.google.protobuf.AbstractParser<Actions>() {
+ public Actions parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Actions(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Actions> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Issues.Actions getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
public interface FlowOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Flow)
com.google.protobuf.MessageOrBuilder {
@@ -14027,6 +13365,678 @@ public final class Issues {
}
+ public interface CommentsOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Comments)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ java.util.List<org.sonarqube.ws.Issues.Comment>
+ getCommentsList();
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ org.sonarqube.ws.Issues.Comment getComments(int index);
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ int getCommentsCount();
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ java.util.List<? extends org.sonarqube.ws.Issues.CommentOrBuilder>
+ getCommentsOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.issues.Comments}
+ */
+ public static final class Comments extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Comments)
+ CommentsOrBuilder {
+ // Use Comments.newBuilder() to construct.
+ private Comments(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private Comments() {
+ comments_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Comments(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ comments_ = new java.util.ArrayList<org.sonarqube.ws.Issues.Comment>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ comments_.add(input.readMessage(org.sonarqube.ws.Issues.Comment.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ comments_ = java.util.Collections.unmodifiableList(comments_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comments_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comments_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.Issues.Comments.class, org.sonarqube.ws.Issues.Comments.Builder.class);
+ }
+
+ public static final int COMMENTS_FIELD_NUMBER = 1;
+ private java.util.List<org.sonarqube.ws.Issues.Comment> comments_;
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Issues.Comment> getCommentsList() {
+ return comments_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.Issues.CommentOrBuilder>
+ getCommentsOrBuilderList() {
+ return comments_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public int getCommentsCount() {
+ return comments_.size();
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.Comment getComments(int index) {
+ return comments_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder(
+ int index) {
+ return comments_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < comments_.size(); i++) {
+ output.writeMessage(1, comments_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < comments_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, comments_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.Issues.Comments parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.Issues.Comments parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.Comments parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.Issues.Comments parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.Comments parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.Issues.Comments parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.Comments parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.Issues.Comments parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.Comments parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.Issues.Comments parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.Issues.Comments prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.issues.Comments}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Comments)
+ org.sonarqube.ws.Issues.CommentsOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comments_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comments_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.Issues.Comments.class, org.sonarqube.ws.Issues.Comments.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.Issues.Comments.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getCommentsFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ if (commentsBuilder_ == null) {
+ comments_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ commentsBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Comments_descriptor;
+ }
+
+ public org.sonarqube.ws.Issues.Comments getDefaultInstanceForType() {
+ return org.sonarqube.ws.Issues.Comments.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.Issues.Comments build() {
+ org.sonarqube.ws.Issues.Comments result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.Issues.Comments buildPartial() {
+ org.sonarqube.ws.Issues.Comments result = new org.sonarqube.ws.Issues.Comments(this);
+ int from_bitField0_ = bitField0_;
+ if (commentsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ comments_ = java.util.Collections.unmodifiableList(comments_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.comments_ = comments_;
+ } else {
+ result.comments_ = commentsBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.Issues.Comments) {
+ return mergeFrom((org.sonarqube.ws.Issues.Comments)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.Issues.Comments other) {
+ if (other == org.sonarqube.ws.Issues.Comments.getDefaultInstance()) return this;
+ if (commentsBuilder_ == null) {
+ if (!other.comments_.isEmpty()) {
+ if (comments_.isEmpty()) {
+ comments_ = other.comments_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureCommentsIsMutable();
+ comments_.addAll(other.comments_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.comments_.isEmpty()) {
+ if (commentsBuilder_.isEmpty()) {
+ commentsBuilder_.dispose();
+ commentsBuilder_ = null;
+ comments_ = other.comments_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ commentsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getCommentsFieldBuilder() : null;
+ } else {
+ commentsBuilder_.addAllMessages(other.comments_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.Issues.Comments parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.Issues.Comments) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List<org.sonarqube.ws.Issues.Comment> comments_ =
+ java.util.Collections.emptyList();
+ private void ensureCommentsIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ comments_ = new java.util.ArrayList<org.sonarqube.ws.Issues.Comment>(comments_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder> commentsBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Issues.Comment> getCommentsList() {
+ if (commentsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(comments_);
+ } else {
+ return commentsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public int getCommentsCount() {
+ if (commentsBuilder_ == null) {
+ return comments_.size();
+ } else {
+ return commentsBuilder_.getCount();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.Comment getComments(int index) {
+ if (commentsBuilder_ == null) {
+ return comments_.get(index);
+ } else {
+ return commentsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public Builder setComments(
+ int index, org.sonarqube.ws.Issues.Comment value) {
+ if (commentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCommentsIsMutable();
+ comments_.set(index, value);
+ onChanged();
+ } else {
+ commentsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public Builder setComments(
+ int index, org.sonarqube.ws.Issues.Comment.Builder builderForValue) {
+ if (commentsBuilder_ == null) {
+ ensureCommentsIsMutable();
+ comments_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ commentsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public Builder addComments(org.sonarqube.ws.Issues.Comment value) {
+ if (commentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCommentsIsMutable();
+ comments_.add(value);
+ onChanged();
+ } else {
+ commentsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public Builder addComments(
+ int index, org.sonarqube.ws.Issues.Comment value) {
+ if (commentsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCommentsIsMutable();
+ comments_.add(index, value);
+ onChanged();
+ } else {
+ commentsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public Builder addComments(
+ org.sonarqube.ws.Issues.Comment.Builder builderForValue) {
+ if (commentsBuilder_ == null) {
+ ensureCommentsIsMutable();
+ comments_.add(builderForValue.build());
+ onChanged();
+ } else {
+ commentsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public Builder addComments(
+ int index, org.sonarqube.ws.Issues.Comment.Builder builderForValue) {
+ if (commentsBuilder_ == null) {
+ ensureCommentsIsMutable();
+ comments_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ commentsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public Builder addAllComments(
+ java.lang.Iterable<? extends org.sonarqube.ws.Issues.Comment> values) {
+ if (commentsBuilder_ == null) {
+ ensureCommentsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, comments_);
+ onChanged();
+ } else {
+ commentsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public Builder clearComments() {
+ if (commentsBuilder_ == null) {
+ comments_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ commentsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public Builder removeComments(int index) {
+ if (commentsBuilder_ == null) {
+ ensureCommentsIsMutable();
+ comments_.remove(index);
+ onChanged();
+ } else {
+ commentsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.Comment.Builder getCommentsBuilder(
+ int index) {
+ return getCommentsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.CommentOrBuilder getCommentsOrBuilder(
+ int index) {
+ if (commentsBuilder_ == null) {
+ return comments_.get(index); } else {
+ return commentsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.Issues.CommentOrBuilder>
+ getCommentsOrBuilderList() {
+ if (commentsBuilder_ != null) {
+ return commentsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(comments_);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.Comment.Builder addCommentsBuilder() {
+ return getCommentsFieldBuilder().addBuilder(
+ org.sonarqube.ws.Issues.Comment.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.Comment.Builder addCommentsBuilder(
+ int index) {
+ return getCommentsFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.Issues.Comment.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Comment comments = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Issues.Comment.Builder>
+ getCommentsBuilderList() {
+ return getCommentsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder>
+ getCommentsFieldBuilder() {
+ if (commentsBuilder_ == null) {
+ commentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Issues.Comment, org.sonarqube.ws.Issues.Comment.Builder, org.sonarqube.ws.Issues.CommentOrBuilder>(
+ comments_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ comments_ = null;
+ }
+ return commentsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Comments)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Comments)
+ private static final org.sonarqube.ws.Issues.Comments DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Comments();
+ }
+
+ public static org.sonarqube.ws.Issues.Comments getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Comments> PARSER =
+ new com.google.protobuf.AbstractParser<Comments>() {
+ public Comments parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Comments(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Comments> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Issues.Comments getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
public interface ActionPlanOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.ActionPlan)
com.google.protobuf.MessageOrBuilder {
@@ -15223,6 +15233,678 @@ public final class Issues {
}
+ public interface ActionPlansOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.ActionPlans)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ java.util.List<org.sonarqube.ws.Issues.ActionPlan>
+ getActionPlansList();
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index);
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ int getActionPlansCount();
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ java.util.List<? extends org.sonarqube.ws.Issues.ActionPlanOrBuilder>
+ getActionPlansOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.issues.ActionPlans}
+ */
+ public static final class ActionPlans extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.ActionPlans)
+ ActionPlansOrBuilder {
+ // Use ActionPlans.newBuilder() to construct.
+ private ActionPlans(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private ActionPlans() {
+ actionPlans_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ActionPlans(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ actionPlans_ = new java.util.ArrayList<org.sonarqube.ws.Issues.ActionPlan>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ actionPlans_.add(input.readMessage(org.sonarqube.ws.Issues.ActionPlan.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ actionPlans_ = java.util.Collections.unmodifiableList(actionPlans_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlans_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlans_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.Issues.ActionPlans.class, org.sonarqube.ws.Issues.ActionPlans.Builder.class);
+ }
+
+ public static final int ACTIONPLANS_FIELD_NUMBER = 1;
+ private java.util.List<org.sonarqube.ws.Issues.ActionPlan> actionPlans_;
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Issues.ActionPlan> getActionPlansList() {
+ return actionPlans_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.Issues.ActionPlanOrBuilder>
+ getActionPlansOrBuilderList() {
+ return actionPlans_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public int getActionPlansCount() {
+ return actionPlans_.size();
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index) {
+ return actionPlans_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder(
+ int index) {
+ return actionPlans_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < actionPlans_.size(); i++) {
+ output.writeMessage(1, actionPlans_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < actionPlans_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, actionPlans_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.Issues.ActionPlans parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.Issues.ActionPlans parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.ActionPlans parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.Issues.ActionPlans parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.ActionPlans parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.Issues.ActionPlans parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.ActionPlans parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.Issues.ActionPlans parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.ActionPlans parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.Issues.ActionPlans parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.Issues.ActionPlans prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.issues.ActionPlans}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.ActionPlans)
+ org.sonarqube.ws.Issues.ActionPlansOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlans_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlans_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.Issues.ActionPlans.class, org.sonarqube.ws.Issues.ActionPlans.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.Issues.ActionPlans.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getActionPlansFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ if (actionPlansBuilder_ == null) {
+ actionPlans_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ actionPlansBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_ActionPlans_descriptor;
+ }
+
+ public org.sonarqube.ws.Issues.ActionPlans getDefaultInstanceForType() {
+ return org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.Issues.ActionPlans build() {
+ org.sonarqube.ws.Issues.ActionPlans result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.Issues.ActionPlans buildPartial() {
+ org.sonarqube.ws.Issues.ActionPlans result = new org.sonarqube.ws.Issues.ActionPlans(this);
+ int from_bitField0_ = bitField0_;
+ if (actionPlansBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ actionPlans_ = java.util.Collections.unmodifiableList(actionPlans_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.actionPlans_ = actionPlans_;
+ } else {
+ result.actionPlans_ = actionPlansBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.Issues.ActionPlans) {
+ return mergeFrom((org.sonarqube.ws.Issues.ActionPlans)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.Issues.ActionPlans other) {
+ if (other == org.sonarqube.ws.Issues.ActionPlans.getDefaultInstance()) return this;
+ if (actionPlansBuilder_ == null) {
+ if (!other.actionPlans_.isEmpty()) {
+ if (actionPlans_.isEmpty()) {
+ actionPlans_ = other.actionPlans_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureActionPlansIsMutable();
+ actionPlans_.addAll(other.actionPlans_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.actionPlans_.isEmpty()) {
+ if (actionPlansBuilder_.isEmpty()) {
+ actionPlansBuilder_.dispose();
+ actionPlansBuilder_ = null;
+ actionPlans_ = other.actionPlans_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ actionPlansBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getActionPlansFieldBuilder() : null;
+ } else {
+ actionPlansBuilder_.addAllMessages(other.actionPlans_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.Issues.ActionPlans parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.Issues.ActionPlans) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List<org.sonarqube.ws.Issues.ActionPlan> actionPlans_ =
+ java.util.Collections.emptyList();
+ private void ensureActionPlansIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ actionPlans_ = new java.util.ArrayList<org.sonarqube.ws.Issues.ActionPlan>(actionPlans_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder> actionPlansBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Issues.ActionPlan> getActionPlansList() {
+ if (actionPlansBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(actionPlans_);
+ } else {
+ return actionPlansBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public int getActionPlansCount() {
+ if (actionPlansBuilder_ == null) {
+ return actionPlans_.size();
+ } else {
+ return actionPlansBuilder_.getCount();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.ActionPlan getActionPlans(int index) {
+ if (actionPlansBuilder_ == null) {
+ return actionPlans_.get(index);
+ } else {
+ return actionPlansBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public Builder setActionPlans(
+ int index, org.sonarqube.ws.Issues.ActionPlan value) {
+ if (actionPlansBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureActionPlansIsMutable();
+ actionPlans_.set(index, value);
+ onChanged();
+ } else {
+ actionPlansBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public Builder setActionPlans(
+ int index, org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) {
+ if (actionPlansBuilder_ == null) {
+ ensureActionPlansIsMutable();
+ actionPlans_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ actionPlansBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public Builder addActionPlans(org.sonarqube.ws.Issues.ActionPlan value) {
+ if (actionPlansBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureActionPlansIsMutable();
+ actionPlans_.add(value);
+ onChanged();
+ } else {
+ actionPlansBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public Builder addActionPlans(
+ int index, org.sonarqube.ws.Issues.ActionPlan value) {
+ if (actionPlansBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureActionPlansIsMutable();
+ actionPlans_.add(index, value);
+ onChanged();
+ } else {
+ actionPlansBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public Builder addActionPlans(
+ org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) {
+ if (actionPlansBuilder_ == null) {
+ ensureActionPlansIsMutable();
+ actionPlans_.add(builderForValue.build());
+ onChanged();
+ } else {
+ actionPlansBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public Builder addActionPlans(
+ int index, org.sonarqube.ws.Issues.ActionPlan.Builder builderForValue) {
+ if (actionPlansBuilder_ == null) {
+ ensureActionPlansIsMutable();
+ actionPlans_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ actionPlansBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public Builder addAllActionPlans(
+ java.lang.Iterable<? extends org.sonarqube.ws.Issues.ActionPlan> values) {
+ if (actionPlansBuilder_ == null) {
+ ensureActionPlansIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, actionPlans_);
+ onChanged();
+ } else {
+ actionPlansBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public Builder clearActionPlans() {
+ if (actionPlansBuilder_ == null) {
+ actionPlans_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ actionPlansBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public Builder removeActionPlans(int index) {
+ if (actionPlansBuilder_ == null) {
+ ensureActionPlansIsMutable();
+ actionPlans_.remove(index);
+ onChanged();
+ } else {
+ actionPlansBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.ActionPlan.Builder getActionPlansBuilder(
+ int index) {
+ return getActionPlansFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.ActionPlanOrBuilder getActionPlansOrBuilder(
+ int index) {
+ if (actionPlansBuilder_ == null) {
+ return actionPlans_.get(index); } else {
+ return actionPlansBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.Issues.ActionPlanOrBuilder>
+ getActionPlansOrBuilderList() {
+ if (actionPlansBuilder_ != null) {
+ return actionPlansBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(actionPlans_);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.ActionPlan.Builder addActionPlansBuilder() {
+ return getActionPlansFieldBuilder().addBuilder(
+ org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.ActionPlan.Builder addActionPlansBuilder(
+ int index) {
+ return getActionPlansFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.Issues.ActionPlan.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.ActionPlan actionPlans = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Issues.ActionPlan.Builder>
+ getActionPlansBuilderList() {
+ return getActionPlansFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder>
+ getActionPlansFieldBuilder() {
+ if (actionPlansBuilder_ == null) {
+ actionPlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Issues.ActionPlan, org.sonarqube.ws.Issues.ActionPlan.Builder, org.sonarqube.ws.Issues.ActionPlanOrBuilder>(
+ actionPlans_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ actionPlans_ = null;
+ }
+ return actionPlansBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.ActionPlans)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.ActionPlans)
+ private static final org.sonarqube.ws.Issues.ActionPlans DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.ActionPlans();
+ }
+
+ public static org.sonarqube.ws.Issues.ActionPlans getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<ActionPlans> PARSER =
+ new com.google.protobuf.AbstractParser<ActionPlans>() {
+ public ActionPlans parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new ActionPlans(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<ActionPlans> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Issues.ActionPlans getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
public interface LanguageOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Language)
com.google.protobuf.MessageOrBuilder {
@@ -15852,6 +16534,678 @@ public final class Issues {
}
+ public interface LanguagesOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Languages)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ java.util.List<org.sonarqube.ws.Issues.Language>
+ getLanguagesList();
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ org.sonarqube.ws.Issues.Language getLanguages(int index);
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ int getLanguagesCount();
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ java.util.List<? extends org.sonarqube.ws.Issues.LanguageOrBuilder>
+ getLanguagesOrBuilderList();
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.issues.Languages}
+ */
+ public static final class Languages extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:sonarqube.ws.issues.Languages)
+ LanguagesOrBuilder {
+ // Use Languages.newBuilder() to construct.
+ private Languages(com.google.protobuf.GeneratedMessage.Builder builder) {
+ super(builder);
+ }
+ private Languages() {
+ languages_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private Languages(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
+ this();
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ languages_ = new java.util.ArrayList<org.sonarqube.ws.Issues.Language>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ languages_.add(input.readMessage(org.sonarqube.ws.Issues.Language.PARSER, extensionRegistry));
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw new RuntimeException(e.setUnfinishedMessage(this));
+ } catch (java.io.IOException e) {
+ throw new RuntimeException(
+ new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).setUnfinishedMessage(this));
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ languages_ = java.util.Collections.unmodifiableList(languages_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Languages_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Languages_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.Issues.Languages.class, org.sonarqube.ws.Issues.Languages.Builder.class);
+ }
+
+ public static final int LANGUAGES_FIELD_NUMBER = 1;
+ private java.util.List<org.sonarqube.ws.Issues.Language> languages_;
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Issues.Language> getLanguagesList() {
+ return languages_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.Issues.LanguageOrBuilder>
+ getLanguagesOrBuilderList() {
+ return languages_;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public int getLanguagesCount() {
+ return languages_.size();
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.Language getLanguages(int index) {
+ return languages_.get(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder(
+ int index) {
+ return languages_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < languages_.size(); i++) {
+ output.writeMessage(1, languages_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < languages_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, languages_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ public static org.sonarqube.ws.Issues.Languages parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.Issues.Languages parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.Languages parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.sonarqube.ws.Issues.Languages parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.Languages parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.Issues.Languages parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.Languages parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static org.sonarqube.ws.Issues.Languages parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static org.sonarqube.ws.Issues.Languages parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static org.sonarqube.ws.Issues.Languages parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.sonarqube.ws.Issues.Languages prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code sonarqube.ws.issues.Languages}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder<Builder> implements
+ // @@protoc_insertion_point(builder_implements:sonarqube.ws.issues.Languages)
+ org.sonarqube.ws.Issues.LanguagesOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Languages_descriptor;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Languages_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.sonarqube.ws.Issues.Languages.class, org.sonarqube.ws.Issues.Languages.Builder.class);
+ }
+
+ // Construct using org.sonarqube.ws.Issues.Languages.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ getLanguagesFieldBuilder();
+ }
+ }
+ public Builder clear() {
+ super.clear();
+ if (languagesBuilder_ == null) {
+ languages_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ languagesBuilder_.clear();
+ }
+ return this;
+ }
+
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.sonarqube.ws.Issues.internal_static_sonarqube_ws_issues_Languages_descriptor;
+ }
+
+ public org.sonarqube.ws.Issues.Languages getDefaultInstanceForType() {
+ return org.sonarqube.ws.Issues.Languages.getDefaultInstance();
+ }
+
+ public org.sonarqube.ws.Issues.Languages build() {
+ org.sonarqube.ws.Issues.Languages result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ public org.sonarqube.ws.Issues.Languages buildPartial() {
+ org.sonarqube.ws.Issues.Languages result = new org.sonarqube.ws.Issues.Languages(this);
+ int from_bitField0_ = bitField0_;
+ if (languagesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ languages_ = java.util.Collections.unmodifiableList(languages_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.languages_ = languages_;
+ } else {
+ result.languages_ = languagesBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.sonarqube.ws.Issues.Languages) {
+ return mergeFrom((org.sonarqube.ws.Issues.Languages)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.sonarqube.ws.Issues.Languages other) {
+ if (other == org.sonarqube.ws.Issues.Languages.getDefaultInstance()) return this;
+ if (languagesBuilder_ == null) {
+ if (!other.languages_.isEmpty()) {
+ if (languages_.isEmpty()) {
+ languages_ = other.languages_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureLanguagesIsMutable();
+ languages_.addAll(other.languages_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.languages_.isEmpty()) {
+ if (languagesBuilder_.isEmpty()) {
+ languagesBuilder_.dispose();
+ languagesBuilder_ = null;
+ languages_ = other.languages_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ languagesBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getLanguagesFieldBuilder() : null;
+ } else {
+ languagesBuilder_.addAllMessages(other.languages_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ org.sonarqube.ws.Issues.Languages parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (org.sonarqube.ws.Issues.Languages) e.getUnfinishedMessage();
+ throw e;
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List<org.sonarqube.ws.Issues.Language> languages_ =
+ java.util.Collections.emptyList();
+ private void ensureLanguagesIsMutable() {
+ if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ languages_ = new java.util.ArrayList<org.sonarqube.ws.Issues.Language>(languages_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder> languagesBuilder_;
+
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Issues.Language> getLanguagesList() {
+ if (languagesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(languages_);
+ } else {
+ return languagesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public int getLanguagesCount() {
+ if (languagesBuilder_ == null) {
+ return languages_.size();
+ } else {
+ return languagesBuilder_.getCount();
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.Language getLanguages(int index) {
+ if (languagesBuilder_ == null) {
+ return languages_.get(index);
+ } else {
+ return languagesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public Builder setLanguages(
+ int index, org.sonarqube.ws.Issues.Language value) {
+ if (languagesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLanguagesIsMutable();
+ languages_.set(index, value);
+ onChanged();
+ } else {
+ languagesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public Builder setLanguages(
+ int index, org.sonarqube.ws.Issues.Language.Builder builderForValue) {
+ if (languagesBuilder_ == null) {
+ ensureLanguagesIsMutable();
+ languages_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ languagesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public Builder addLanguages(org.sonarqube.ws.Issues.Language value) {
+ if (languagesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLanguagesIsMutable();
+ languages_.add(value);
+ onChanged();
+ } else {
+ languagesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public Builder addLanguages(
+ int index, org.sonarqube.ws.Issues.Language value) {
+ if (languagesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureLanguagesIsMutable();
+ languages_.add(index, value);
+ onChanged();
+ } else {
+ languagesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public Builder addLanguages(
+ org.sonarqube.ws.Issues.Language.Builder builderForValue) {
+ if (languagesBuilder_ == null) {
+ ensureLanguagesIsMutable();
+ languages_.add(builderForValue.build());
+ onChanged();
+ } else {
+ languagesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public Builder addLanguages(
+ int index, org.sonarqube.ws.Issues.Language.Builder builderForValue) {
+ if (languagesBuilder_ == null) {
+ ensureLanguagesIsMutable();
+ languages_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ languagesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public Builder addAllLanguages(
+ java.lang.Iterable<? extends org.sonarqube.ws.Issues.Language> values) {
+ if (languagesBuilder_ == null) {
+ ensureLanguagesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, languages_);
+ onChanged();
+ } else {
+ languagesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public Builder clearLanguages() {
+ if (languagesBuilder_ == null) {
+ languages_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ languagesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public Builder removeLanguages(int index) {
+ if (languagesBuilder_ == null) {
+ ensureLanguagesIsMutable();
+ languages_.remove(index);
+ onChanged();
+ } else {
+ languagesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.Language.Builder getLanguagesBuilder(
+ int index) {
+ return getLanguagesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.LanguageOrBuilder getLanguagesOrBuilder(
+ int index) {
+ if (languagesBuilder_ == null) {
+ return languages_.get(index); } else {
+ return languagesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public java.util.List<? extends org.sonarqube.ws.Issues.LanguageOrBuilder>
+ getLanguagesOrBuilderList() {
+ if (languagesBuilder_ != null) {
+ return languagesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(languages_);
+ }
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.Language.Builder addLanguagesBuilder() {
+ return getLanguagesFieldBuilder().addBuilder(
+ org.sonarqube.ws.Issues.Language.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public org.sonarqube.ws.Issues.Language.Builder addLanguagesBuilder(
+ int index) {
+ return getLanguagesFieldBuilder().addBuilder(
+ index, org.sonarqube.ws.Issues.Language.getDefaultInstance());
+ }
+ /**
+ * <code>repeated .sonarqube.ws.issues.Language languages = 1;</code>
+ */
+ public java.util.List<org.sonarqube.ws.Issues.Language.Builder>
+ getLanguagesBuilderList() {
+ return getLanguagesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder>
+ getLanguagesFieldBuilder() {
+ if (languagesBuilder_ == null) {
+ languagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.sonarqube.ws.Issues.Language, org.sonarqube.ws.Issues.Language.Builder, org.sonarqube.ws.Issues.LanguageOrBuilder>(
+ languages_,
+ ((bitField0_ & 0x00000001) == 0x00000001),
+ getParentForChildren(),
+ isClean());
+ languages_ = null;
+ }
+ return languagesBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:sonarqube.ws.issues.Languages)
+ }
+
+ // @@protoc_insertion_point(class_scope:sonarqube.ws.issues.Languages)
+ private static final org.sonarqube.ws.Issues.Languages DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.sonarqube.ws.Issues.Languages();
+ }
+
+ public static org.sonarqube.ws.Issues.Languages getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ public static final com.google.protobuf.Parser<Languages> PARSER =
+ new com.google.protobuf.AbstractParser<Languages>() {
+ public Languages parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ try {
+ return new Languages(input, extensionRegistry);
+ } catch (RuntimeException e) {
+ if (e.getCause() instanceof
+ com.google.protobuf.InvalidProtocolBufferException) {
+ throw (com.google.protobuf.InvalidProtocolBufferException)
+ e.getCause();
+ }
+ throw e;
+ }
+ }
+ };
+
+ @java.lang.Override
+ public com.google.protobuf.Parser<Languages> getParserForType() {
+ return PARSER;
+ }
+
+ public org.sonarqube.ws.Issues.Languages getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
public interface ComponentOrBuilder extends
// @@protoc_insertion_point(interface_extends:sonarqube.ws.issues.Component)
com.google.protobuf.MessageOrBuilder {
@@ -17437,6 +18791,16 @@ public final class Issues {
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_issues_Issue_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_issues_Transitions_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_issues_Transitions_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_issues_Actions_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_issues_Actions_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_issues_Flow_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -17452,16 +18816,31 @@ public final class Issues {
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_issues_Comment_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_issues_Comments_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_issues_Comments_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_issues_ActionPlan_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_issues_ActionPlan_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_issues_ActionPlans_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_issues_ActionPlans_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_issues_Language_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_sonarqube_ws_issues_Language_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
+ internal_static_sonarqube_ws_issues_Languages_descriptor;
+ private static
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_sonarqube_ws_issues_Languages_fieldAccessorTable;
+ private static com.google.protobuf.Descriptors.Descriptor
internal_static_sonarqube_ws_issues_Component_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
@@ -17476,62 +18855,63 @@ public final class Issues {
static {
java.lang.String[] descriptorData = {
"\n\017ws-issues.proto\022\023sonarqube.ws.issues\032\020" +
- "ws-commons.proto\"\326\004\n\006Search\022\r\n\005total\030\001 \001" +
+ "ws-commons.proto\"\277\003\n\006Search\022\r\n\005total\030\001 \001" +
"(\003\022\t\n\001p\030\002 \001(\003\022\n\n\002ps\030\003 \001(\005\022,\n\006paging\030\004 \001(" +
"\0132\034.sonarqube.ws.commons.Paging\022\021\n\tdebtT" +
"otal\030\005 \001(\003\022*\n\006issues\030\006 \003(\0132\032.sonarqube.w" +
"s.issues.Issue\0222\n\ncomponents\030\007 \003(\0132\036.son" +
- "arqube.ws.issues.Component\022\033\n\023rulesPrese" +
- "ntIfEmpty\030\010 \001(\010\022)\n\005rules\030\t \003(\0132\032.sonarqu" +
- "be.ws.commons.Rule\022\033\n\023usersPresentIfEmpt" +
- "y\030\n \001(\010\022)\n\005users\030\013 \003(\0132\032.sonarqube.ws.co",
- "mmons.User\022!\n\031actionPlansPresentIfEmpty\030" +
- "\014 \001(\010\0224\n\013actionPlans\030\r \003(\0132\037.sonarqube.w" +
- "s.issues.ActionPlan\022\037\n\027languagesPresentI" +
- "fEmpty\030\016 \001(\010\0220\n\tlanguages\030\017 \003(\0132\035.sonarq" +
- "ube.ws.issues.Language\022\034\n\024facetsPresentI" +
- "fEmpty\030\020 \001(\010\022+\n\006facets\030\021 \003(\0132\033.sonarqube" +
- ".ws.commons.Facet\"\366\001\n\tOperation\022)\n\005issue" +
- "\030\001 \001(\0132\032.sonarqube.ws.issues.Issue\0222\n\nco" +
- "mponents\030\002 \003(\0132\036.sonarqube.ws.issues.Com" +
- "ponent\022)\n\005rules\030\003 \003(\0132\032.sonarqube.ws.com",
- "mons.Rule\022)\n\005users\030\004 \003(\0132\032.sonarqube.ws." +
- "commons.User\0224\n\013actionPlans\030\005 \003(\0132\037.sona" +
- "rqube.ws.issues.ActionPlan\"\313\005\n\005Issue\022\013\n\003" +
- "key\030\001 \001(\t\022\014\n\004rule\030\002 \001(\t\0220\n\010severity\030\003 \001(" +
- "\0162\036.sonarqube.ws.commons.Severity\022\021\n\tcom" +
- "ponent\030\004 \001(\t\022\023\n\013componentId\030\005 \001(\003\022\017\n\007pro" +
- "ject\030\006 \001(\t\022\022\n\nsubProject\030\007 \001(\t\022\014\n\004line\030\010" +
- " \001(\005\0222\n\ttextRange\030\t \001(\0132\037.sonarqube.ws.c" +
- "ommons.TextRange\022(\n\005flows\030\n \003(\0132\031.sonarq" +
- "ube.ws.issues.Flow\022\022\n\nresolution\030\013 \001(\t\022\016",
- "\n\006status\030\014 \001(\t\022\017\n\007message\030\r \001(\t\022\014\n\004debt\030" +
- "\016 \001(\t\022\020\n\010assignee\030\017 \001(\t\022\020\n\010reporter\030\020 \001(" +
- "\t\022\016\n\006author\030\021 \001(\t\022\022\n\nactionPlan\030\022 \001(\t\022\032\n" +
- "\022tagsPresentIfEmpty\030\023 \001(\010\022\014\n\004tags\030\024 \003(\t\022" +
- "!\n\031transitionsPresentIfEmpty\030\025 \001(\010\022\023\n\013tr" +
- "ansitions\030\026 \003(\t\022\035\n\025actionsPresentIfEmpty" +
- "\030\027 \001(\010\022\017\n\007actions\030\030 \003(\t\022\036\n\026commentsPrese" +
- "ntIfEmpty\030\031 \001(\010\022.\n\010comments\030\032 \003(\0132\034.sona" +
- "rqube.ws.issues.Comment\022\024\n\014creationDate\030" +
- "\033 \001(\t\022\022\n\nupdateDate\030\034 \001(\t\022\022\n\nfUpdateAge\030",
- "\035 \001(\t\022\021\n\tcloseDate\030\036 \001(\t\"8\n\004Flow\0220\n\tloca" +
- "tions\030\001 \003(\0132\035.sonarqube.ws.issues.Locati" +
- "on\"`\n\010Location\022\023\n\013componentId\030\001 \001(\t\0222\n\tt" +
- "extRange\030\002 \001(\0132\037.sonarqube.ws.commons.Te" +
- "xtRange\022\013\n\003msg\030\003 \001(\t\"\220\001\n\007Comment\022\013\n\003key\030" +
- "\001 \001(\t\022\r\n\005login\030\002 \001(\t\022\r\n\005email\030\003 \001(\t\022\020\n\010u" +
- "serName\030\004 \001(\t\022\020\n\010htmlText\030\005 \001(\t\022\020\n\010markd" +
- "own\030\006 \001(\t\022\021\n\tupdatable\030\007 \001(\010\022\021\n\tcreatedA" +
- "t\030\010 \001(\t\"Z\n\nActionPlan\022\013\n\003key\030\001 \001(\t\022\014\n\004na" +
- "me\030\002 \001(\t\022\016\n\006status\030\003 \001(\t\022\020\n\010deadLine\030\004 \001",
- "(\t\022\017\n\007project\030\005 \001(\t\"%\n\010Language\022\013\n\003key\030\001" +
- " \001(\t\022\014\n\004name\030\002 \001(\t\"\255\001\n\tComponent\022\n\n\002id\030\001" +
- " \001(\003\022\013\n\003key\030\002 \001(\t\022\014\n\004uuid\030\003 \001(\t\022\017\n\007enabl" +
- "ed\030\004 \001(\010\022\021\n\tqualifier\030\005 \001(\t\022\014\n\004name\030\006 \001(" +
- "\t\022\020\n\010longName\030\007 \001(\t\022\014\n\004path\030\010 \001(\t\022\021\n\tpro" +
- "jectId\030\t \001(\003\022\024\n\014subProjectId\030\n \001(\003B\034\n\020or" +
- "g.sonarqube.wsB\006IssuesH\001"
+ "arqube.ws.issues.Component\022*\n\005rules\030\010 \001(" +
+ "\0132\033.sonarqube.ws.commons.Rules\022*\n\005users\030" +
+ "\t \001(\0132\033.sonarqube.ws.commons.Users\0225\n\013ac" +
+ "tionPlans\030\n \001(\0132 .sonarqube.ws.issues.Ac",
+ "tionPlans\0221\n\tlanguages\030\013 \001(\0132\036.sonarqube" +
+ ".ws.issues.Languages\022,\n\006facets\030\014 \001(\0132\034.s" +
+ "onarqube.ws.commons.Facets\"\366\001\n\tOperation" +
+ "\022)\n\005issue\030\001 \001(\0132\032.sonarqube.ws.issues.Is" +
+ "sue\0222\n\ncomponents\030\002 \003(\0132\036.sonarqube.ws.i" +
+ "ssues.Component\022)\n\005rules\030\003 \003(\0132\032.sonarqu" +
+ "be.ws.commons.Rule\022)\n\005users\030\004 \003(\0132\032.sona" +
+ "rqube.ws.commons.User\0224\n\013actionPlans\030\005 \003" +
+ "(\0132\037.sonarqube.ws.issues.ActionPlan\"\216\005\n\005" +
+ "Issue\022\013\n\003key\030\001 \001(\t\022\014\n\004rule\030\002 \001(\t\0220\n\010seve",
+ "rity\030\003 \001(\0162\036.sonarqube.ws.commons.Severi" +
+ "ty\022\021\n\tcomponent\030\004 \001(\t\022\023\n\013componentId\030\005 \001" +
+ "(\003\022\017\n\007project\030\006 \001(\t\022\022\n\nsubProject\030\007 \001(\t\022" +
+ "\014\n\004line\030\010 \001(\005\0222\n\ttextRange\030\t \001(\0132\037.sonar" +
+ "qube.ws.commons.TextRange\022(\n\005flows\030\n \003(\013" +
+ "2\031.sonarqube.ws.issues.Flow\022\022\n\nresolutio" +
+ "n\030\013 \001(\t\022\016\n\006status\030\014 \001(\t\022\017\n\007message\030\r \001(\t" +
+ "\022\014\n\004debt\030\016 \001(\t\022\020\n\010assignee\030\017 \001(\t\022\020\n\010repo" +
+ "rter\030\020 \001(\t\022\016\n\006author\030\021 \001(\t\022\022\n\nactionPlan" +
+ "\030\022 \001(\t\022\014\n\004tags\030\023 \003(\t\0225\n\013transitions\030\024 \001(",
+ "\0132 .sonarqube.ws.issues.Transitions\022-\n\007a" +
+ "ctions\030\025 \001(\0132\034.sonarqube.ws.issues.Actio" +
+ "ns\022/\n\010comments\030\026 \001(\0132\035.sonarqube.ws.issu" +
+ "es.Comments\022\024\n\014creationDate\030\027 \001(\t\022\022\n\nupd" +
+ "ateDate\030\030 \001(\t\022\022\n\nfUpdateAge\030\031 \001(\t\022\021\n\tclo" +
+ "seDate\030\032 \001(\t\"\"\n\013Transitions\022\023\n\013transitio" +
+ "ns\030\001 \003(\t\"\032\n\007Actions\022\017\n\007actions\030\001 \003(\t\"8\n\004" +
+ "Flow\0220\n\tlocations\030\001 \003(\0132\035.sonarqube.ws.i" +
+ "ssues.Location\"`\n\010Location\022\023\n\013componentI" +
+ "d\030\001 \001(\t\0222\n\ttextRange\030\002 \001(\0132\037.sonarqube.w",
+ "s.commons.TextRange\022\013\n\003msg\030\003 \001(\t\"\220\001\n\007Com" +
+ "ment\022\013\n\003key\030\001 \001(\t\022\r\n\005login\030\002 \001(\t\022\r\n\005emai" +
+ "l\030\003 \001(\t\022\020\n\010userName\030\004 \001(\t\022\020\n\010htmlText\030\005 " +
+ "\001(\t\022\020\n\010markdown\030\006 \001(\t\022\021\n\tupdatable\030\007 \001(\010" +
+ "\022\021\n\tcreatedAt\030\010 \001(\t\":\n\010Comments\022.\n\010comme" +
+ "nts\030\001 \003(\0132\034.sonarqube.ws.issues.Comment\"" +
+ "Z\n\nActionPlan\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002 \001(\t" +
+ "\022\016\n\006status\030\003 \001(\t\022\020\n\010deadLine\030\004 \001(\t\022\017\n\007pr" +
+ "oject\030\005 \001(\t\"C\n\013ActionPlans\0224\n\013actionPlan" +
+ "s\030\001 \003(\0132\037.sonarqube.ws.issues.ActionPlan",
+ "\"%\n\010Language\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\"" +
+ "=\n\tLanguages\0220\n\tlanguages\030\001 \003(\0132\035.sonarq" +
+ "ube.ws.issues.Language\"\255\001\n\tComponent\022\n\n\002" +
+ "id\030\001 \001(\003\022\013\n\003key\030\002 \001(\t\022\014\n\004uuid\030\003 \001(\t\022\017\n\007e" +
+ "nabled\030\004 \001(\010\022\021\n\tqualifier\030\005 \001(\t\022\014\n\004name\030" +
+ "\006 \001(\t\022\020\n\010longName\030\007 \001(\t\022\014\n\004path\030\010 \001(\t\022\021\n" +
+ "\tprojectId\030\t \001(\003\022\024\n\014subProjectId\030\n \001(\003B\034" +
+ "\n\020org.sonarqube.wsB\006IssuesH\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
@@ -17551,7 +18931,7 @@ public final class Issues {
internal_static_sonarqube_ws_issues_Search_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_issues_Search_descriptor,
- new java.lang.String[] { "Total", "P", "Ps", "Paging", "DebtTotal", "Issues", "Components", "RulesPresentIfEmpty", "Rules", "UsersPresentIfEmpty", "Users", "ActionPlansPresentIfEmpty", "ActionPlans", "LanguagesPresentIfEmpty", "Languages", "FacetsPresentIfEmpty", "Facets", });
+ new java.lang.String[] { "Total", "P", "Ps", "Paging", "DebtTotal", "Issues", "Components", "Rules", "Users", "ActionPlans", "Languages", "Facets", });
internal_static_sonarqube_ws_issues_Operation_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_sonarqube_ws_issues_Operation_fieldAccessorTable = new
@@ -17563,39 +18943,69 @@ public final class Issues {
internal_static_sonarqube_ws_issues_Issue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_issues_Issue_descriptor,
- new java.lang.String[] { "Key", "Rule", "Severity", "Component", "ComponentId", "Project", "SubProject", "Line", "TextRange", "Flows", "Resolution", "Status", "Message", "Debt", "Assignee", "Reporter", "Author", "ActionPlan", "TagsPresentIfEmpty", "Tags", "TransitionsPresentIfEmpty", "Transitions", "ActionsPresentIfEmpty", "Actions", "CommentsPresentIfEmpty", "Comments", "CreationDate", "UpdateDate", "FUpdateAge", "CloseDate", });
- internal_static_sonarqube_ws_issues_Flow_descriptor =
+ new java.lang.String[] { "Key", "Rule", "Severity", "Component", "ComponentId", "Project", "SubProject", "Line", "TextRange", "Flows", "Resolution", "Status", "Message", "Debt", "Assignee", "Reporter", "Author", "ActionPlan", "Tags", "Transitions", "Actions", "Comments", "CreationDate", "UpdateDate", "FUpdateAge", "CloseDate", });
+ internal_static_sonarqube_ws_issues_Transitions_descriptor =
getDescriptor().getMessageTypes().get(3);
+ internal_static_sonarqube_ws_issues_Transitions_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_issues_Transitions_descriptor,
+ new java.lang.String[] { "Transitions", });
+ internal_static_sonarqube_ws_issues_Actions_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_sonarqube_ws_issues_Actions_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_issues_Actions_descriptor,
+ new java.lang.String[] { "Actions", });
+ internal_static_sonarqube_ws_issues_Flow_descriptor =
+ getDescriptor().getMessageTypes().get(5);
internal_static_sonarqube_ws_issues_Flow_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_issues_Flow_descriptor,
new java.lang.String[] { "Locations", });
internal_static_sonarqube_ws_issues_Location_descriptor =
- getDescriptor().getMessageTypes().get(4);
+ getDescriptor().getMessageTypes().get(6);
internal_static_sonarqube_ws_issues_Location_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_issues_Location_descriptor,
new java.lang.String[] { "ComponentId", "TextRange", "Msg", });
internal_static_sonarqube_ws_issues_Comment_descriptor =
- getDescriptor().getMessageTypes().get(5);
+ getDescriptor().getMessageTypes().get(7);
internal_static_sonarqube_ws_issues_Comment_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_issues_Comment_descriptor,
new java.lang.String[] { "Key", "Login", "Email", "UserName", "HtmlText", "Markdown", "Updatable", "CreatedAt", });
+ internal_static_sonarqube_ws_issues_Comments_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_sonarqube_ws_issues_Comments_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_issues_Comments_descriptor,
+ new java.lang.String[] { "Comments", });
internal_static_sonarqube_ws_issues_ActionPlan_descriptor =
- getDescriptor().getMessageTypes().get(6);
+ getDescriptor().getMessageTypes().get(9);
internal_static_sonarqube_ws_issues_ActionPlan_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_issues_ActionPlan_descriptor,
new java.lang.String[] { "Key", "Name", "Status", "DeadLine", "Project", });
+ internal_static_sonarqube_ws_issues_ActionPlans_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_sonarqube_ws_issues_ActionPlans_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_issues_ActionPlans_descriptor,
+ new java.lang.String[] { "ActionPlans", });
internal_static_sonarqube_ws_issues_Language_descriptor =
- getDescriptor().getMessageTypes().get(7);
+ getDescriptor().getMessageTypes().get(11);
internal_static_sonarqube_ws_issues_Language_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_issues_Language_descriptor,
new java.lang.String[] { "Key", "Name", });
+ internal_static_sonarqube_ws_issues_Languages_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_sonarqube_ws_issues_Languages_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_sonarqube_ws_issues_Languages_descriptor,
+ new java.lang.String[] { "Languages", });
internal_static_sonarqube_ws_issues_Component_descriptor =
- getDescriptor().getMessageTypes().get(8);
+ getDescriptor().getMessageTypes().get(13);
internal_static_sonarqube_ws_issues_Component_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_sonarqube_ws_issues_Component_descriptor,
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
deleted file mode 100644
index 7564f76c760..00000000000
--- a/sonar-ws/src/main/gen-java/org/sonarqube/ws/Permissions.java
+++ /dev/null
@@ -1,12666 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: ws-permissions.proto
-
-package org.sonarqube.ws;
-
-public final class Permissions {
- private Permissions() {}
- public static void registerAllExtensions(
- com.google.protobuf.ExtensionRegistry registry) {
- }
- public interface WsUsersResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsUsersResponse)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- boolean hasPaging();
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- org.sonarqube.ws.Common.Paging getPaging();
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder();
-
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- java.util.List<org.sonarqube.ws.Permissions.WsUsersResponse.User>
- getUsersList();
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- org.sonarqube.ws.Permissions.WsUsersResponse.User getUsers(int index);
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- int getUsersCount();
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- java.util.List<? extends org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder>
- getUsersOrBuilderList();
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder getUsersOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsUsersResponse}
- *
- * <pre>
- * WS api/permissions/users for internal use only
- * </pre>
- */
- public static final class WsUsersResponse extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsUsersResponse)
- WsUsersResponseOrBuilder {
- // Use WsUsersResponse.newBuilder() to construct.
- private WsUsersResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
- super(builder);
- }
- private WsUsersResponse() {
- users_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private WsUsersResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- org.sonarqube.ws.Common.Paging.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- subBuilder = paging_.toBuilder();
- }
- paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(paging_);
- paging_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- case 18: {
- if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- users_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.WsUsersResponse.User>();
- mutable_bitField0_ |= 0x00000002;
- }
- users_.add(input.readMessage(org.sonarqube.ws.Permissions.WsUsersResponse.User.PARSER, extensionRegistry));
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- users_ = java.util.Collections.unmodifiableList(users_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsUsersResponse.class, org.sonarqube.ws.Permissions.WsUsersResponse.Builder.class);
- }
-
- public interface UserOrBuilder extends
- // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsUsersResponse.User)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>optional string login = 1;</code>
- */
- boolean hasLogin();
- /**
- * <code>optional string login = 1;</code>
- */
- java.lang.String getLogin();
- /**
- * <code>optional string login = 1;</code>
- */
- com.google.protobuf.ByteString
- getLoginBytes();
-
- /**
- * <code>optional string name = 2;</code>
- */
- boolean hasName();
- /**
- * <code>optional string name = 2;</code>
- */
- java.lang.String getName();
- /**
- * <code>optional string name = 2;</code>
- */
- com.google.protobuf.ByteString
- getNameBytes();
-
- /**
- * <code>optional string email = 3;</code>
- */
- boolean hasEmail();
- /**
- * <code>optional string email = 3;</code>
- */
- java.lang.String getEmail();
- /**
- * <code>optional string email = 3;</code>
- */
- com.google.protobuf.ByteString
- getEmailBytes();
-
- /**
- * <code>optional bool selected = 4;</code>
- */
- boolean hasSelected();
- /**
- * <code>optional bool selected = 4;</code>
- */
- boolean getSelected();
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsUsersResponse.User}
- */
- 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) {
- super(builder);
- }
- private User() {
- login_ = "";
- name_ = "";
- email_ = "";
- selected_ = false;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private User(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- login_ = bs;
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- name_ = bs;
- break;
- }
- case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000004;
- email_ = bs;
- break;
- }
- case 32: {
- bitField0_ |= 0x00000008;
- selected_ = input.readBool();
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_User_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsUsersResponse.User.class, org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder.class);
- }
-
- private int bitField0_;
- public static final int LOGIN_FIELD_NUMBER = 1;
- private volatile java.lang.Object login_;
- /**
- * <code>optional string login = 1;</code>
- */
- public boolean hasLogin() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional string login = 1;</code>
- */
- public java.lang.String getLogin() {
- java.lang.Object ref = login_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- login_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string login = 1;</code>
- */
- public com.google.protobuf.ByteString
- getLoginBytes() {
- java.lang.Object ref = login_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- login_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int NAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object name_;
- /**
- * <code>optional string name = 2;</code>
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int EMAIL_FIELD_NUMBER = 3;
- private volatile java.lang.Object email_;
- /**
- * <code>optional string email = 3;</code>
- */
- public boolean hasEmail() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional string email = 3;</code>
- */
- public java.lang.String getEmail() {
- java.lang.Object ref = email_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- email_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string email = 3;</code>
- */
- public com.google.protobuf.ByteString
- getEmailBytes() {
- java.lang.Object ref = email_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- email_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SELECTED_FIELD_NUMBER = 4;
- private boolean selected_;
- /**
- * <code>optional bool selected = 4;</code>
- */
- public boolean hasSelected() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional bool selected = 4;</code>
- */
- public boolean getSelected() {
- return selected_;
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getLoginBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getNameBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getEmailBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBool(4, selected_);
- }
- unknownFields.writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getLoginBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getNameBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getEmailBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(4, selected_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse.User parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.sonarqube.ws.Permissions.WsUsersResponse.User prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsUsersResponse.User}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsUsersResponse.User)
- org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_User_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsUsersResponse.User.class, org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder.class);
- }
-
- // Construct using org.sonarqube.ws.Permissions.WsUsersResponse.User.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- public Builder clear() {
- super.clear();
- login_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- name_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- email_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
- selected_ = false;
- bitField0_ = (bitField0_ & ~0x00000008);
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor;
- }
-
- public org.sonarqube.ws.Permissions.WsUsersResponse.User getDefaultInstanceForType() {
- return org.sonarqube.ws.Permissions.WsUsersResponse.User.getDefaultInstance();
- }
-
- public org.sonarqube.ws.Permissions.WsUsersResponse.User build() {
- org.sonarqube.ws.Permissions.WsUsersResponse.User result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonarqube.ws.Permissions.WsUsersResponse.User buildPartial() {
- org.sonarqube.ws.Permissions.WsUsersResponse.User result = new org.sonarqube.ws.Permissions.WsUsersResponse.User(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.login_ = login_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.name_ = name_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.email_ = email_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- result.selected_ = selected_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.sonarqube.ws.Permissions.WsUsersResponse.User) {
- return mergeFrom((org.sonarqube.ws.Permissions.WsUsersResponse.User)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonarqube.ws.Permissions.WsUsersResponse.User other) {
- if (other == org.sonarqube.ws.Permissions.WsUsersResponse.User.getDefaultInstance()) return this;
- if (other.hasLogin()) {
- bitField0_ |= 0x00000001;
- login_ = other.login_;
- onChanged();
- }
- if (other.hasName()) {
- bitField0_ |= 0x00000002;
- name_ = other.name_;
- onChanged();
- }
- if (other.hasEmail()) {
- bitField0_ |= 0x00000004;
- email_ = other.email_;
- onChanged();
- }
- if (other.hasSelected()) {
- setSelected(other.getSelected());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- org.sonarqube.ws.Permissions.WsUsersResponse.User parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonarqube.ws.Permissions.WsUsersResponse.User) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private java.lang.Object login_ = "";
- /**
- * <code>optional string login = 1;</code>
- */
- public boolean hasLogin() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional string login = 1;</code>
- */
- public java.lang.String getLogin() {
- java.lang.Object ref = login_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- login_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string login = 1;</code>
- */
- public com.google.protobuf.ByteString
- getLoginBytes() {
- java.lang.Object ref = login_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- login_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string login = 1;</code>
- */
- public Builder setLogin(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- login_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string login = 1;</code>
- */
- public Builder clearLogin() {
- bitField0_ = (bitField0_ & ~0x00000001);
- login_ = getDefaultInstance().getLogin();
- onChanged();
- return this;
- }
- /**
- * <code>optional string login = 1;</code>
- */
- public Builder setLoginBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- login_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object name_ = "";
- /**
- * <code>optional string name = 2;</code>
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public Builder setName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- name_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public Builder clearName() {
- bitField0_ = (bitField0_ & ~0x00000002);
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- name_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object email_ = "";
- /**
- * <code>optional string email = 3;</code>
- */
- public boolean hasEmail() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional string email = 3;</code>
- */
- public java.lang.String getEmail() {
- java.lang.Object ref = email_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- email_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string email = 3;</code>
- */
- public com.google.protobuf.ByteString
- getEmailBytes() {
- java.lang.Object ref = email_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- email_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string email = 3;</code>
- */
- public Builder setEmail(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- email_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string email = 3;</code>
- */
- public Builder clearEmail() {
- bitField0_ = (bitField0_ & ~0x00000004);
- email_ = getDefaultInstance().getEmail();
- onChanged();
- return this;
- }
- /**
- * <code>optional string email = 3;</code>
- */
- public Builder setEmailBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- email_ = value;
- onChanged();
- return this;
- }
-
- private boolean selected_ ;
- /**
- * <code>optional bool selected = 4;</code>
- */
- public boolean hasSelected() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional bool selected = 4;</code>
- */
- public boolean getSelected() {
- return selected_;
- }
- /**
- * <code>optional bool selected = 4;</code>
- */
- public Builder setSelected(boolean value) {
- bitField0_ |= 0x00000008;
- selected_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional bool selected = 4;</code>
- */
- public Builder clearSelected() {
- bitField0_ = (bitField0_ & ~0x00000008);
- selected_ = false;
- onChanged();
- return this;
- }
-
- // @@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 {
- 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;
- }
-
- }
-
- private int bitField0_;
- public static final int PAGING_FIELD_NUMBER = 1;
- private org.sonarqube.ws.Common.Paging paging_;
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public boolean hasPaging() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public org.sonarqube.ws.Common.Paging getPaging() {
- 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_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
- }
-
- public static final int USERS_FIELD_NUMBER = 2;
- private java.util.List<org.sonarqube.ws.Permissions.WsUsersResponse.User> users_;
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.WsUsersResponse.User> getUsersList() {
- return users_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder>
- getUsersOrBuilderList() {
- return users_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public int getUsersCount() {
- return users_.size();
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsUsersResponse.User getUsers(int index) {
- return users_.get(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder getUsersOrBuilder(
- int index) {
- return users_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, getPaging());
- }
- for (int i = 0; i < users_.size(); i++) {
- output.writeMessage(2, users_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getPaging());
- }
- for (int i = 0; i < users_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, users_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static org.sonarqube.ws.Permissions.WsUsersResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsUsersResponse parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.sonarqube.ws.Permissions.WsUsersResponse prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsUsersResponse}
- *
- * <pre>
- * WS api/permissions/users for internal use only
- * </pre>
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsUsersResponse)
- org.sonarqube.ws.Permissions.WsUsersResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsUsersResponse.class, org.sonarqube.ws.Permissions.WsUsersResponse.Builder.class);
- }
-
- // Construct using org.sonarqube.ws.Permissions.WsUsersResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getPagingFieldBuilder();
- getUsersFieldBuilder();
- }
- }
- public Builder clear() {
- super.clear();
- if (pagingBuilder_ == null) {
- paging_ = null;
- } else {
- pagingBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- if (usersBuilder_ == null) {
- users_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- usersBuilder_.clear();
- }
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor;
- }
-
- public org.sonarqube.ws.Permissions.WsUsersResponse getDefaultInstanceForType() {
- return org.sonarqube.ws.Permissions.WsUsersResponse.getDefaultInstance();
- }
-
- public org.sonarqube.ws.Permissions.WsUsersResponse build() {
- org.sonarqube.ws.Permissions.WsUsersResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonarqube.ws.Permissions.WsUsersResponse buildPartial() {
- org.sonarqube.ws.Permissions.WsUsersResponse result = new org.sonarqube.ws.Permissions.WsUsersResponse(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- if (pagingBuilder_ == null) {
- result.paging_ = paging_;
- } else {
- result.paging_ = pagingBuilder_.build();
- }
- if (usersBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- users_ = java.util.Collections.unmodifiableList(users_);
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.users_ = users_;
- } else {
- result.users_ = usersBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.sonarqube.ws.Permissions.WsUsersResponse) {
- return mergeFrom((org.sonarqube.ws.Permissions.WsUsersResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonarqube.ws.Permissions.WsUsersResponse other) {
- if (other == org.sonarqube.ws.Permissions.WsUsersResponse.getDefaultInstance()) return this;
- if (other.hasPaging()) {
- mergePaging(other.getPaging());
- }
- if (usersBuilder_ == null) {
- if (!other.users_.isEmpty()) {
- if (users_.isEmpty()) {
- users_ = other.users_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureUsersIsMutable();
- users_.addAll(other.users_);
- }
- onChanged();
- }
- } else {
- if (!other.users_.isEmpty()) {
- if (usersBuilder_.isEmpty()) {
- usersBuilder_.dispose();
- usersBuilder_ = null;
- users_ = other.users_;
- bitField0_ = (bitField0_ & ~0x00000002);
- usersBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getUsersFieldBuilder() : null;
- } else {
- usersBuilder_.addAllMessages(other.users_);
- }
- }
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- org.sonarqube.ws.Permissions.WsUsersResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonarqube.ws.Permissions.WsUsersResponse) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private org.sonarqube.ws.Common.Paging paging_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_;
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public boolean hasPaging() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public org.sonarqube.ws.Common.Paging getPaging() {
- if (pagingBuilder_ == null) {
- return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
- } else {
- return pagingBuilder_.getMessage();
- }
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public Builder setPaging(org.sonarqube.ws.Common.Paging value) {
- if (pagingBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- paging_ = value;
- onChanged();
- } else {
- pagingBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public Builder setPaging(
- org.sonarqube.ws.Common.Paging.Builder builderForValue) {
- if (pagingBuilder_ == null) {
- paging_ = builderForValue.build();
- onChanged();
- } else {
- pagingBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public Builder mergePaging(org.sonarqube.ws.Common.Paging value) {
- if (pagingBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001) &&
- paging_ != null &&
- paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) {
- paging_ =
- org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial();
- } else {
- paging_ = value;
- }
- onChanged();
- } else {
- pagingBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public Builder clearPaging() {
- if (pagingBuilder_ == null) {
- paging_ = null;
- onChanged();
- } else {
- pagingBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getPagingFieldBuilder().getBuilder();
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
- if (pagingBuilder_ != null) {
- return pagingBuilder_.getMessageOrBuilder();
- } else {
- return paging_ == null ?
- org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
- }
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- private com.google.protobuf.SingleFieldBuilder<
- org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>
- getPagingFieldBuilder() {
- if (pagingBuilder_ == null) {
- pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>(
- getPaging(),
- getParentForChildren(),
- isClean());
- paging_ = null;
- }
- return pagingBuilder_;
- }
-
- private java.util.List<org.sonarqube.ws.Permissions.WsUsersResponse.User> users_ =
- java.util.Collections.emptyList();
- private void ensureUsersIsMutable() {
- if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- users_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.WsUsersResponse.User>(users_);
- bitField0_ |= 0x00000002;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.WsUsersResponse.User, org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder, org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder> usersBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.WsUsersResponse.User> getUsersList() {
- if (usersBuilder_ == null) {
- return java.util.Collections.unmodifiableList(users_);
- } else {
- return usersBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public int getUsersCount() {
- if (usersBuilder_ == null) {
- return users_.size();
- } else {
- return usersBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsUsersResponse.User getUsers(int index) {
- if (usersBuilder_ == null) {
- return users_.get(index);
- } else {
- return usersBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public Builder setUsers(
- int index, org.sonarqube.ws.Permissions.WsUsersResponse.User value) {
- if (usersBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureUsersIsMutable();
- users_.set(index, value);
- onChanged();
- } else {
- usersBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public Builder setUsers(
- int index, org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder builderForValue) {
- if (usersBuilder_ == null) {
- ensureUsersIsMutable();
- users_.set(index, builderForValue.build());
- onChanged();
- } else {
- usersBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public Builder addUsers(org.sonarqube.ws.Permissions.WsUsersResponse.User value) {
- if (usersBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureUsersIsMutable();
- users_.add(value);
- onChanged();
- } else {
- usersBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public Builder addUsers(
- int index, org.sonarqube.ws.Permissions.WsUsersResponse.User value) {
- if (usersBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureUsersIsMutable();
- users_.add(index, value);
- onChanged();
- } else {
- usersBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public Builder addUsers(
- org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder builderForValue) {
- if (usersBuilder_ == null) {
- ensureUsersIsMutable();
- users_.add(builderForValue.build());
- onChanged();
- } else {
- usersBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public Builder addUsers(
- int index, org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder builderForValue) {
- if (usersBuilder_ == null) {
- ensureUsersIsMutable();
- users_.add(index, builderForValue.build());
- onChanged();
- } else {
- usersBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public Builder addAllUsers(
- java.lang.Iterable<? extends org.sonarqube.ws.Permissions.WsUsersResponse.User> values) {
- if (usersBuilder_ == null) {
- ensureUsersIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, users_);
- onChanged();
- } else {
- usersBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public Builder clearUsers() {
- if (usersBuilder_ == null) {
- users_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- } else {
- usersBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public Builder removeUsers(int index) {
- if (usersBuilder_ == null) {
- ensureUsersIsMutable();
- users_.remove(index);
- onChanged();
- } else {
- usersBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder getUsersBuilder(
- int index) {
- return getUsersFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder getUsersOrBuilder(
- int index) {
- if (usersBuilder_ == null) {
- return users_.get(index); } else {
- return usersBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder>
- getUsersOrBuilderList() {
- if (usersBuilder_ != null) {
- return usersBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(users_);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder addUsersBuilder() {
- return getUsersFieldBuilder().addBuilder(
- org.sonarqube.ws.Permissions.WsUsersResponse.User.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder addUsersBuilder(
- int index) {
- return getUsersFieldBuilder().addBuilder(
- index, org.sonarqube.ws.Permissions.WsUsersResponse.User.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsUsersResponse.User users = 2;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder>
- getUsersBuilderList() {
- return getUsersFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.WsUsersResponse.User, org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder, org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder>
- getUsersFieldBuilder() {
- if (usersBuilder_ == null) {
- usersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.WsUsersResponse.User, org.sonarqube.ws.Permissions.WsUsersResponse.User.Builder, org.sonarqube.ws.Permissions.WsUsersResponse.UserOrBuilder>(
- users_,
- ((bitField0_ & 0x00000002) == 0x00000002),
- getParentForChildren(),
- isClean());
- users_ = null;
- }
- return usersBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsUsersResponse)
- }
-
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsUsersResponse)
- private static final org.sonarqube.ws.Permissions.WsUsersResponse DEFAULT_INSTANCE;
- static {
- 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;
- }
-
- }
-
- public interface WsGroupsResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsGroupsResponse)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- boolean hasPaging();
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- org.sonarqube.ws.Common.Paging getPaging();
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder();
-
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- java.util.List<org.sonarqube.ws.Permissions.WsGroupsResponse.Group>
- getGroupsList();
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- org.sonarqube.ws.Permissions.WsGroupsResponse.Group getGroups(int index);
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- int getGroupsCount();
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- java.util.List<? extends org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder>
- getGroupsOrBuilderList();
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder getGroupsOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsGroupsResponse}
- *
- * <pre>
- * WS api/permissions/groups for internal use only
- * </pre>
- */
- public static final class WsGroupsResponse extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsGroupsResponse)
- WsGroupsResponseOrBuilder {
- // Use WsGroupsResponse.newBuilder() to construct.
- private WsGroupsResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
- super(builder);
- }
- private WsGroupsResponse() {
- groups_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private WsGroupsResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- org.sonarqube.ws.Common.Paging.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- subBuilder = paging_.toBuilder();
- }
- paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(paging_);
- paging_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- case 18: {
- if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- groups_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.WsGroupsResponse.Group>();
- mutable_bitField0_ |= 0x00000002;
- }
- groups_.add(input.readMessage(org.sonarqube.ws.Permissions.WsGroupsResponse.Group.PARSER, extensionRegistry));
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- groups_ = java.util.Collections.unmodifiableList(groups_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsGroupsResponse.class, org.sonarqube.ws.Permissions.WsGroupsResponse.Builder.class);
- }
-
- public interface GroupOrBuilder extends
- // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsGroupsResponse.Group)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>optional string id = 1;</code>
- */
- boolean hasId();
- /**
- * <code>optional string id = 1;</code>
- */
- java.lang.String getId();
- /**
- * <code>optional string id = 1;</code>
- */
- com.google.protobuf.ByteString
- getIdBytes();
-
- /**
- * <code>optional string name = 2;</code>
- */
- boolean hasName();
- /**
- * <code>optional string name = 2;</code>
- */
- java.lang.String getName();
- /**
- * <code>optional string name = 2;</code>
- */
- com.google.protobuf.ByteString
- getNameBytes();
-
- /**
- * <code>optional string description = 3;</code>
- */
- boolean hasDescription();
- /**
- * <code>optional string description = 3;</code>
- */
- java.lang.String getDescription();
- /**
- * <code>optional string description = 3;</code>
- */
- com.google.protobuf.ByteString
- getDescriptionBytes();
-
- /**
- * <code>optional bool selected = 4;</code>
- */
- boolean hasSelected();
- /**
- * <code>optional bool selected = 4;</code>
- */
- boolean getSelected();
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsGroupsResponse.Group}
- */
- 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) {
- super(builder);
- }
- private Group() {
- id_ = "";
- name_ = "";
- description_ = "";
- selected_ = false;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Group(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- id_ = bs;
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- name_ = bs;
- break;
- }
- case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000004;
- description_ = bs;
- break;
- }
- case 32: {
- bitField0_ |= 0x00000008;
- selected_ = input.readBool();
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsGroupsResponse.Group.class, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder.class);
- }
-
- private int bitField0_;
- public static final int ID_FIELD_NUMBER = 1;
- private volatile java.lang.Object id_;
- /**
- * <code>optional string id = 1;</code>
- */
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public java.lang.String getId() {
- java.lang.Object ref = id_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- id_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public com.google.protobuf.ByteString
- getIdBytes() {
- java.lang.Object ref = id_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- id_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int NAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object name_;
- /**
- * <code>optional string name = 2;</code>
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int DESCRIPTION_FIELD_NUMBER = 3;
- private volatile java.lang.Object description_;
- /**
- * <code>optional string description = 3;</code>
- */
- public boolean hasDescription() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public java.lang.String getDescription() {
- java.lang.Object ref = description_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- description_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public com.google.protobuf.ByteString
- getDescriptionBytes() {
- java.lang.Object ref = description_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- description_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int SELECTED_FIELD_NUMBER = 4;
- private boolean selected_;
- /**
- * <code>optional bool selected = 4;</code>
- */
- public boolean hasSelected() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional bool selected = 4;</code>
- */
- public boolean getSelected() {
- return selected_;
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getIdBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getNameBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getDescriptionBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBool(4, selected_);
- }
- unknownFields.writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getIdBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getNameBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getDescriptionBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(4, selected_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse.Group parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.sonarqube.ws.Permissions.WsGroupsResponse.Group prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsGroupsResponse.Group}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsGroupsResponse.Group)
- org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsGroupsResponse.Group.class, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder.class);
- }
-
- // Construct using org.sonarqube.ws.Permissions.WsGroupsResponse.Group.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- public Builder clear() {
- super.clear();
- id_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- name_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- description_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
- selected_ = false;
- bitField0_ = (bitField0_ & ~0x00000008);
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor;
- }
-
- public org.sonarqube.ws.Permissions.WsGroupsResponse.Group getDefaultInstanceForType() {
- return org.sonarqube.ws.Permissions.WsGroupsResponse.Group.getDefaultInstance();
- }
-
- public org.sonarqube.ws.Permissions.WsGroupsResponse.Group build() {
- org.sonarqube.ws.Permissions.WsGroupsResponse.Group result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonarqube.ws.Permissions.WsGroupsResponse.Group buildPartial() {
- org.sonarqube.ws.Permissions.WsGroupsResponse.Group result = new org.sonarqube.ws.Permissions.WsGroupsResponse.Group(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.id_ = id_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.name_ = name_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.description_ = description_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- result.selected_ = selected_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.sonarqube.ws.Permissions.WsGroupsResponse.Group) {
- return mergeFrom((org.sonarqube.ws.Permissions.WsGroupsResponse.Group)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonarqube.ws.Permissions.WsGroupsResponse.Group other) {
- if (other == org.sonarqube.ws.Permissions.WsGroupsResponse.Group.getDefaultInstance()) return this;
- if (other.hasId()) {
- bitField0_ |= 0x00000001;
- id_ = other.id_;
- onChanged();
- }
- if (other.hasName()) {
- bitField0_ |= 0x00000002;
- name_ = other.name_;
- onChanged();
- }
- if (other.hasDescription()) {
- bitField0_ |= 0x00000004;
- description_ = other.description_;
- onChanged();
- }
- if (other.hasSelected()) {
- setSelected(other.getSelected());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- org.sonarqube.ws.Permissions.WsGroupsResponse.Group parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonarqube.ws.Permissions.WsGroupsResponse.Group) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private java.lang.Object id_ = "";
- /**
- * <code>optional string id = 1;</code>
- */
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public java.lang.String getId() {
- java.lang.Object ref = id_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- id_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public com.google.protobuf.ByteString
- getIdBytes() {
- java.lang.Object ref = id_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- id_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public Builder setId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- id_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public Builder clearId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- id_ = getDefaultInstance().getId();
- onChanged();
- return this;
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public Builder setIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- id_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object name_ = "";
- /**
- * <code>optional string name = 2;</code>
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public Builder setName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- name_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public Builder clearName() {
- bitField0_ = (bitField0_ & ~0x00000002);
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- name_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object description_ = "";
- /**
- * <code>optional string description = 3;</code>
- */
- public boolean hasDescription() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public java.lang.String getDescription() {
- java.lang.Object ref = description_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- description_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public com.google.protobuf.ByteString
- getDescriptionBytes() {
- java.lang.Object ref = description_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- description_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public Builder setDescription(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- description_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public Builder clearDescription() {
- bitField0_ = (bitField0_ & ~0x00000004);
- description_ = getDefaultInstance().getDescription();
- onChanged();
- return this;
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public Builder setDescriptionBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- description_ = value;
- onChanged();
- return this;
- }
-
- private boolean selected_ ;
- /**
- * <code>optional bool selected = 4;</code>
- */
- public boolean hasSelected() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional bool selected = 4;</code>
- */
- public boolean getSelected() {
- return selected_;
- }
- /**
- * <code>optional bool selected = 4;</code>
- */
- public Builder setSelected(boolean value) {
- bitField0_ |= 0x00000008;
- selected_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional bool selected = 4;</code>
- */
- public Builder clearSelected() {
- bitField0_ = (bitField0_ & ~0x00000008);
- selected_ = false;
- onChanged();
- return this;
- }
-
- // @@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 {
- 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;
- }
-
- }
-
- private int bitField0_;
- public static final int PAGING_FIELD_NUMBER = 1;
- private org.sonarqube.ws.Common.Paging paging_;
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public boolean hasPaging() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public org.sonarqube.ws.Common.Paging getPaging() {
- 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_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
- }
-
- public static final int GROUPS_FIELD_NUMBER = 2;
- private java.util.List<org.sonarqube.ws.Permissions.WsGroupsResponse.Group> groups_;
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.WsGroupsResponse.Group> getGroupsList() {
- return groups_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder>
- getGroupsOrBuilderList() {
- return groups_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public int getGroupsCount() {
- return groups_.size();
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsGroupsResponse.Group getGroups(int index) {
- return groups_.get(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder getGroupsOrBuilder(
- int index) {
- return groups_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, getPaging());
- }
- for (int i = 0; i < groups_.size(); i++) {
- output.writeMessage(2, groups_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getPaging());
- }
- for (int i = 0; i < groups_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, groups_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static org.sonarqube.ws.Permissions.WsGroupsResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsGroupsResponse parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.sonarqube.ws.Permissions.WsGroupsResponse prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsGroupsResponse}
- *
- * <pre>
- * WS api/permissions/groups for internal use only
- * </pre>
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsGroupsResponse)
- org.sonarqube.ws.Permissions.WsGroupsResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsGroupsResponse.class, org.sonarqube.ws.Permissions.WsGroupsResponse.Builder.class);
- }
-
- // Construct using org.sonarqube.ws.Permissions.WsGroupsResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getPagingFieldBuilder();
- getGroupsFieldBuilder();
- }
- }
- public Builder clear() {
- super.clear();
- if (pagingBuilder_ == null) {
- paging_ = null;
- } else {
- pagingBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- if (groupsBuilder_ == null) {
- groups_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- groupsBuilder_.clear();
- }
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor;
- }
-
- public org.sonarqube.ws.Permissions.WsGroupsResponse getDefaultInstanceForType() {
- return org.sonarqube.ws.Permissions.WsGroupsResponse.getDefaultInstance();
- }
-
- public org.sonarqube.ws.Permissions.WsGroupsResponse build() {
- org.sonarqube.ws.Permissions.WsGroupsResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonarqube.ws.Permissions.WsGroupsResponse buildPartial() {
- org.sonarqube.ws.Permissions.WsGroupsResponse result = new org.sonarqube.ws.Permissions.WsGroupsResponse(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- if (pagingBuilder_ == null) {
- result.paging_ = paging_;
- } else {
- result.paging_ = pagingBuilder_.build();
- }
- if (groupsBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- groups_ = java.util.Collections.unmodifiableList(groups_);
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.groups_ = groups_;
- } else {
- result.groups_ = groupsBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.sonarqube.ws.Permissions.WsGroupsResponse) {
- return mergeFrom((org.sonarqube.ws.Permissions.WsGroupsResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonarqube.ws.Permissions.WsGroupsResponse other) {
- if (other == org.sonarqube.ws.Permissions.WsGroupsResponse.getDefaultInstance()) return this;
- if (other.hasPaging()) {
- mergePaging(other.getPaging());
- }
- if (groupsBuilder_ == null) {
- if (!other.groups_.isEmpty()) {
- if (groups_.isEmpty()) {
- groups_ = other.groups_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureGroupsIsMutable();
- groups_.addAll(other.groups_);
- }
- onChanged();
- }
- } else {
- if (!other.groups_.isEmpty()) {
- if (groupsBuilder_.isEmpty()) {
- groupsBuilder_.dispose();
- groupsBuilder_ = null;
- groups_ = other.groups_;
- bitField0_ = (bitField0_ & ~0x00000002);
- groupsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getGroupsFieldBuilder() : null;
- } else {
- groupsBuilder_.addAllMessages(other.groups_);
- }
- }
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- org.sonarqube.ws.Permissions.WsGroupsResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonarqube.ws.Permissions.WsGroupsResponse) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private org.sonarqube.ws.Common.Paging paging_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_;
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public boolean hasPaging() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public org.sonarqube.ws.Common.Paging getPaging() {
- if (pagingBuilder_ == null) {
- return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
- } else {
- return pagingBuilder_.getMessage();
- }
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public Builder setPaging(org.sonarqube.ws.Common.Paging value) {
- if (pagingBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- paging_ = value;
- onChanged();
- } else {
- pagingBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public Builder setPaging(
- org.sonarqube.ws.Common.Paging.Builder builderForValue) {
- if (pagingBuilder_ == null) {
- paging_ = builderForValue.build();
- onChanged();
- } else {
- pagingBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public Builder mergePaging(org.sonarqube.ws.Common.Paging value) {
- if (pagingBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001) &&
- paging_ != null &&
- paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) {
- paging_ =
- org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial();
- } else {
- paging_ = value;
- }
- onChanged();
- } else {
- pagingBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public Builder clearPaging() {
- if (pagingBuilder_ == null) {
- paging_ = null;
- onChanged();
- } else {
- pagingBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getPagingFieldBuilder().getBuilder();
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
- if (pagingBuilder_ != null) {
- return pagingBuilder_.getMessageOrBuilder();
- } else {
- return paging_ == null ?
- org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
- }
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- private com.google.protobuf.SingleFieldBuilder<
- org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>
- getPagingFieldBuilder() {
- if (pagingBuilder_ == null) {
- pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>(
- getPaging(),
- getParentForChildren(),
- isClean());
- paging_ = null;
- }
- return pagingBuilder_;
- }
-
- private java.util.List<org.sonarqube.ws.Permissions.WsGroupsResponse.Group> groups_ =
- java.util.Collections.emptyList();
- private void ensureGroupsIsMutable() {
- if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- groups_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.WsGroupsResponse.Group>(groups_);
- bitField0_ |= 0x00000002;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.WsGroupsResponse.Group, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder, org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder> groupsBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.WsGroupsResponse.Group> getGroupsList() {
- if (groupsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(groups_);
- } else {
- return groupsBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public int getGroupsCount() {
- if (groupsBuilder_ == null) {
- return groups_.size();
- } else {
- return groupsBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsGroupsResponse.Group getGroups(int index) {
- if (groupsBuilder_ == null) {
- return groups_.get(index);
- } else {
- return groupsBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public Builder setGroups(
- int index, org.sonarqube.ws.Permissions.WsGroupsResponse.Group value) {
- if (groupsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureGroupsIsMutable();
- groups_.set(index, value);
- onChanged();
- } else {
- groupsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public Builder setGroups(
- int index, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder builderForValue) {
- if (groupsBuilder_ == null) {
- ensureGroupsIsMutable();
- groups_.set(index, builderForValue.build());
- onChanged();
- } else {
- groupsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public Builder addGroups(org.sonarqube.ws.Permissions.WsGroupsResponse.Group value) {
- if (groupsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureGroupsIsMutable();
- groups_.add(value);
- onChanged();
- } else {
- groupsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public Builder addGroups(
- int index, org.sonarqube.ws.Permissions.WsGroupsResponse.Group value) {
- if (groupsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureGroupsIsMutable();
- groups_.add(index, value);
- onChanged();
- } else {
- groupsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public Builder addGroups(
- org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder builderForValue) {
- if (groupsBuilder_ == null) {
- ensureGroupsIsMutable();
- groups_.add(builderForValue.build());
- onChanged();
- } else {
- groupsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public Builder addGroups(
- int index, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder builderForValue) {
- if (groupsBuilder_ == null) {
- ensureGroupsIsMutable();
- groups_.add(index, builderForValue.build());
- onChanged();
- } else {
- groupsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public Builder addAllGroups(
- java.lang.Iterable<? extends org.sonarqube.ws.Permissions.WsGroupsResponse.Group> values) {
- if (groupsBuilder_ == null) {
- ensureGroupsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, groups_);
- onChanged();
- } else {
- groupsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public Builder clearGroups() {
- if (groupsBuilder_ == null) {
- groups_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- } else {
- groupsBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public Builder removeGroups(int index) {
- if (groupsBuilder_ == null) {
- ensureGroupsIsMutable();
- groups_.remove(index);
- onChanged();
- } else {
- groupsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder getGroupsBuilder(
- int index) {
- return getGroupsFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder getGroupsOrBuilder(
- int index) {
- if (groupsBuilder_ == null) {
- return groups_.get(index); } else {
- return groupsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder>
- getGroupsOrBuilderList() {
- if (groupsBuilder_ != null) {
- return groupsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(groups_);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder addGroupsBuilder() {
- return getGroupsFieldBuilder().addBuilder(
- org.sonarqube.ws.Permissions.WsGroupsResponse.Group.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder addGroupsBuilder(
- int index) {
- return getGroupsFieldBuilder().addBuilder(
- index, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsGroupsResponse.Group groups = 2;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder>
- getGroupsBuilderList() {
- return getGroupsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.WsGroupsResponse.Group, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder, org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder>
- getGroupsFieldBuilder() {
- if (groupsBuilder_ == null) {
- groupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.WsGroupsResponse.Group, org.sonarqube.ws.Permissions.WsGroupsResponse.Group.Builder, org.sonarqube.ws.Permissions.WsGroupsResponse.GroupOrBuilder>(
- groups_,
- ((bitField0_ & 0x00000002) == 0x00000002),
- getParentForChildren(),
- isClean());
- groups_ = null;
- }
- return groupsBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsGroupsResponse)
- }
-
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsGroupsResponse)
- private static final org.sonarqube.ws.Permissions.WsGroupsResponse DEFAULT_INSTANCE;
- static {
- 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;
- }
-
- }
-
- public interface PermissionOrBuilder extends
- // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.Permission)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>optional string key = 1;</code>
- */
- boolean hasKey();
- /**
- * <code>optional string key = 1;</code>
- */
- java.lang.String getKey();
- /**
- * <code>optional string key = 1;</code>
- */
- com.google.protobuf.ByteString
- getKeyBytes();
-
- /**
- * <code>optional string name = 2;</code>
- */
- boolean hasName();
- /**
- * <code>optional string name = 2;</code>
- */
- java.lang.String getName();
- /**
- * <code>optional string name = 2;</code>
- */
- com.google.protobuf.ByteString
- getNameBytes();
-
- /**
- * <code>optional string description = 3;</code>
- */
- boolean hasDescription();
- /**
- * <code>optional string description = 3;</code>
- */
- java.lang.String getDescription();
- /**
- * <code>optional string description = 3;</code>
- */
- com.google.protobuf.ByteString
- getDescriptionBytes();
-
- /**
- * <code>optional int32 usersCount = 4;</code>
- */
- boolean hasUsersCount();
- /**
- * <code>optional int32 usersCount = 4;</code>
- */
- int getUsersCount();
-
- /**
- * <code>optional int32 groupsCount = 5;</code>
- */
- boolean hasGroupsCount();
- /**
- * <code>optional int32 groupsCount = 5;</code>
- */
- int getGroupsCount();
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.Permission}
- */
- public static final class Permission extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.Permission)
- PermissionOrBuilder {
- // Use Permission.newBuilder() to construct.
- private Permission(com.google.protobuf.GeneratedMessage.Builder builder) {
- super(builder);
- }
- private Permission() {
- key_ = "";
- name_ = "";
- description_ = "";
- usersCount_ = 0;
- groupsCount_ = 0;
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Permission(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- key_ = bs;
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- name_ = bs;
- break;
- }
- case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000004;
- description_ = bs;
- break;
- }
- case 32: {
- bitField0_ |= 0x00000008;
- usersCount_ = input.readInt32();
- break;
- }
- case 40: {
- bitField0_ |= 0x00000010;
- groupsCount_ = input.readInt32();
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_Permission_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.Permission.class, org.sonarqube.ws.Permissions.Permission.Builder.class);
- }
-
- private int bitField0_;
- public static final int KEY_FIELD_NUMBER = 1;
- private volatile java.lang.Object key_;
- /**
- * <code>optional string key = 1;</code>
- */
- public boolean hasKey() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional string key = 1;</code>
- */
- public java.lang.String getKey() {
- java.lang.Object ref = key_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- key_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string key = 1;</code>
- */
- public com.google.protobuf.ByteString
- getKeyBytes() {
- java.lang.Object ref = key_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- key_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int NAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object name_;
- /**
- * <code>optional string name = 2;</code>
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int DESCRIPTION_FIELD_NUMBER = 3;
- private volatile java.lang.Object description_;
- /**
- * <code>optional string description = 3;</code>
- */
- public boolean hasDescription() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public java.lang.String getDescription() {
- java.lang.Object ref = description_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- description_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public com.google.protobuf.ByteString
- getDescriptionBytes() {
- java.lang.Object ref = description_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- description_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int USERSCOUNT_FIELD_NUMBER = 4;
- private int usersCount_;
- /**
- * <code>optional int32 usersCount = 4;</code>
- */
- public boolean hasUsersCount() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional int32 usersCount = 4;</code>
- */
- public int getUsersCount() {
- return usersCount_;
- }
-
- public static final int GROUPSCOUNT_FIELD_NUMBER = 5;
- private int groupsCount_;
- /**
- * <code>optional int32 groupsCount = 5;</code>
- */
- public boolean hasGroupsCount() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * <code>optional int32 groupsCount = 5;</code>
- */
- public int getGroupsCount() {
- return groupsCount_;
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getKeyBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getNameBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getDescriptionBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeInt32(4, usersCount_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeInt32(5, groupsCount_);
- }
- unknownFields.writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getKeyBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getNameBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getDescriptionBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(4, usersCount_);
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(5, groupsCount_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static org.sonarqube.ws.Permissions.Permission parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.Permission parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.Permission parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.Permission parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.Permission parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.Permission parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.Permission parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonarqube.ws.Permissions.Permission parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.Permission parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.Permission parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.sonarqube.ws.Permissions.Permission prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.Permission}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.Permission)
- org.sonarqube.ws.Permissions.PermissionOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_Permission_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.Permission.class, org.sonarqube.ws.Permissions.Permission.Builder.class);
- }
-
- // Construct using org.sonarqube.ws.Permissions.Permission.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- public Builder clear() {
- super.clear();
- key_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- name_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- description_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
- usersCount_ = 0;
- bitField0_ = (bitField0_ & ~0x00000008);
- groupsCount_ = 0;
- bitField0_ = (bitField0_ & ~0x00000010);
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_Permission_descriptor;
- }
-
- public org.sonarqube.ws.Permissions.Permission getDefaultInstanceForType() {
- return org.sonarqube.ws.Permissions.Permission.getDefaultInstance();
- }
-
- public org.sonarqube.ws.Permissions.Permission build() {
- org.sonarqube.ws.Permissions.Permission result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonarqube.ws.Permissions.Permission buildPartial() {
- org.sonarqube.ws.Permissions.Permission result = new org.sonarqube.ws.Permissions.Permission(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.key_ = key_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.name_ = name_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.description_ = description_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- result.usersCount_ = usersCount_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000010;
- }
- result.groupsCount_ = groupsCount_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.sonarqube.ws.Permissions.Permission) {
- return mergeFrom((org.sonarqube.ws.Permissions.Permission)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonarqube.ws.Permissions.Permission other) {
- if (other == org.sonarqube.ws.Permissions.Permission.getDefaultInstance()) return this;
- if (other.hasKey()) {
- bitField0_ |= 0x00000001;
- key_ = other.key_;
- onChanged();
- }
- if (other.hasName()) {
- bitField0_ |= 0x00000002;
- name_ = other.name_;
- onChanged();
- }
- if (other.hasDescription()) {
- bitField0_ |= 0x00000004;
- description_ = other.description_;
- onChanged();
- }
- if (other.hasUsersCount()) {
- setUsersCount(other.getUsersCount());
- }
- if (other.hasGroupsCount()) {
- setGroupsCount(other.getGroupsCount());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- org.sonarqube.ws.Permissions.Permission parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonarqube.ws.Permissions.Permission) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private java.lang.Object key_ = "";
- /**
- * <code>optional string key = 1;</code>
- */
- public boolean hasKey() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional string key = 1;</code>
- */
- public java.lang.String getKey() {
- java.lang.Object ref = key_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- key_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string key = 1;</code>
- */
- public com.google.protobuf.ByteString
- getKeyBytes() {
- java.lang.Object ref = key_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- key_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string key = 1;</code>
- */
- public Builder setKey(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- key_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string key = 1;</code>
- */
- public Builder clearKey() {
- bitField0_ = (bitField0_ & ~0x00000001);
- key_ = getDefaultInstance().getKey();
- onChanged();
- return this;
- }
- /**
- * <code>optional string key = 1;</code>
- */
- public Builder setKeyBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- key_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object name_ = "";
- /**
- * <code>optional string name = 2;</code>
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public Builder setName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- name_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public Builder clearName() {
- bitField0_ = (bitField0_ & ~0x00000002);
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- name_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object description_ = "";
- /**
- * <code>optional string description = 3;</code>
- */
- public boolean hasDescription() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public java.lang.String getDescription() {
- java.lang.Object ref = description_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- description_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public com.google.protobuf.ByteString
- getDescriptionBytes() {
- java.lang.Object ref = description_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- description_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public Builder setDescription(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- description_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public Builder clearDescription() {
- bitField0_ = (bitField0_ & ~0x00000004);
- description_ = getDefaultInstance().getDescription();
- onChanged();
- return this;
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public Builder setDescriptionBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- description_ = value;
- onChanged();
- return this;
- }
-
- private int usersCount_ ;
- /**
- * <code>optional int32 usersCount = 4;</code>
- */
- public boolean hasUsersCount() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional int32 usersCount = 4;</code>
- */
- public int getUsersCount() {
- return usersCount_;
- }
- /**
- * <code>optional int32 usersCount = 4;</code>
- */
- public Builder setUsersCount(int value) {
- bitField0_ |= 0x00000008;
- usersCount_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional int32 usersCount = 4;</code>
- */
- public Builder clearUsersCount() {
- bitField0_ = (bitField0_ & ~0x00000008);
- usersCount_ = 0;
- onChanged();
- return this;
- }
-
- private int groupsCount_ ;
- /**
- * <code>optional int32 groupsCount = 5;</code>
- */
- public boolean hasGroupsCount() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * <code>optional int32 groupsCount = 5;</code>
- */
- public int getGroupsCount() {
- return groupsCount_;
- }
- /**
- * <code>optional int32 groupsCount = 5;</code>
- */
- public Builder setGroupsCount(int value) {
- bitField0_ |= 0x00000010;
- groupsCount_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional int32 groupsCount = 5;</code>
- */
- public Builder clearGroupsCount() {
- bitField0_ = (bitField0_ & ~0x00000010);
- groupsCount_ = 0;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.Permission)
- }
-
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.Permission)
- private static final org.sonarqube.ws.Permissions.Permission DEFAULT_INSTANCE;
- static {
- 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;
- }
-
- }
-
- public interface WsSearchGlobalPermissionsResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- java.util.List<org.sonarqube.ws.Permissions.Permission>
- getPermissionsList();
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- org.sonarqube.ws.Permissions.Permission getPermissions(int index);
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- int getPermissionsCount();
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsOrBuilderList();
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse}
- */
- public static final class WsSearchGlobalPermissionsResponse extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse)
- WsSearchGlobalPermissionsResponseOrBuilder {
- // Use WsSearchGlobalPermissionsResponse.newBuilder() to construct.
- private WsSearchGlobalPermissionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
- super(builder);
- }
- private WsSearchGlobalPermissionsResponse() {
- permissions_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private WsSearchGlobalPermissionsResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- permissions_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.Permission>();
- mutable_bitField0_ |= 0x00000001;
- }
- permissions_.add(input.readMessage(org.sonarqube.ws.Permissions.Permission.PARSER, extensionRegistry));
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- permissions_ = java.util.Collections.unmodifiableList(permissions_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse.class, org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse.Builder.class);
- }
-
- public static final int PERMISSIONS_FIELD_NUMBER = 1;
- private java.util.List<org.sonarqube.ws.Permissions.Permission> permissions_;
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.Permission> getPermissionsList() {
- return permissions_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsOrBuilderList() {
- return permissions_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public int getPermissionsCount() {
- return permissions_.size();
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public org.sonarqube.ws.Permissions.Permission getPermissions(int index) {
- return permissions_.get(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
- int index) {
- return permissions_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- for (int i = 0; i < permissions_.size(); i++) {
- output.writeMessage(1, permissions_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- for (int i = 0; i < permissions_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, permissions_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse)
- org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse.class, org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse.Builder.class);
- }
-
- // Construct using org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getPermissionsFieldBuilder();
- }
- }
- public Builder clear() {
- super.clear();
- if (permissionsBuilder_ == null) {
- permissions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- permissionsBuilder_.clear();
- }
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor;
- }
-
- public org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse getDefaultInstanceForType() {
- return org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse.getDefaultInstance();
- }
-
- public org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse build() {
- org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse buildPartial() {
- org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse result = new org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse(this);
- int from_bitField0_ = bitField0_;
- if (permissionsBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- permissions_ = java.util.Collections.unmodifiableList(permissions_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.permissions_ = permissions_;
- } else {
- result.permissions_ = permissionsBuilder_.build();
- }
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse) {
- return mergeFrom((org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse other) {
- if (other == org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse.getDefaultInstance()) return this;
- if (permissionsBuilder_ == null) {
- if (!other.permissions_.isEmpty()) {
- if (permissions_.isEmpty()) {
- permissions_ = other.permissions_;
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- ensurePermissionsIsMutable();
- permissions_.addAll(other.permissions_);
- }
- onChanged();
- }
- } else {
- if (!other.permissions_.isEmpty()) {
- if (permissionsBuilder_.isEmpty()) {
- permissionsBuilder_.dispose();
- permissionsBuilder_ = null;
- permissions_ = other.permissions_;
- bitField0_ = (bitField0_ & ~0x00000001);
- permissionsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getPermissionsFieldBuilder() : null;
- } else {
- permissionsBuilder_.addAllMessages(other.permissions_);
- }
- }
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private java.util.List<org.sonarqube.ws.Permissions.Permission> permissions_ =
- java.util.Collections.emptyList();
- private void ensurePermissionsIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
- permissions_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.Permission>(permissions_);
- bitField0_ |= 0x00000001;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder> permissionsBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.Permission> getPermissionsList() {
- if (permissionsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(permissions_);
- } else {
- return permissionsBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public int getPermissionsCount() {
- if (permissionsBuilder_ == null) {
- return permissions_.size();
- } else {
- return permissionsBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public org.sonarqube.ws.Permissions.Permission getPermissions(int index) {
- if (permissionsBuilder_ == null) {
- return permissions_.get(index);
- } else {
- return permissionsBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public Builder setPermissions(
- int index, org.sonarqube.ws.Permissions.Permission value) {
- if (permissionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionsIsMutable();
- permissions_.set(index, value);
- onChanged();
- } else {
- permissionsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public Builder setPermissions(
- int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.set(index, builderForValue.build());
- onChanged();
- } else {
- permissionsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public Builder addPermissions(org.sonarqube.ws.Permissions.Permission value) {
- if (permissionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionsIsMutable();
- permissions_.add(value);
- onChanged();
- } else {
- permissionsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public Builder addPermissions(
- int index, org.sonarqube.ws.Permissions.Permission value) {
- if (permissionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionsIsMutable();
- permissions_.add(index, value);
- onChanged();
- } else {
- permissionsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public Builder addPermissions(
- org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.add(builderForValue.build());
- onChanged();
- } else {
- permissionsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public Builder addPermissions(
- int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.add(index, builderForValue.build());
- onChanged();
- } else {
- permissionsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public Builder addAllPermissions(
- java.lang.Iterable<? extends org.sonarqube.ws.Permissions.Permission> values) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, permissions_);
- onChanged();
- } else {
- permissionsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public Builder clearPermissions() {
- if (permissionsBuilder_ == null) {
- permissions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- permissionsBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public Builder removePermissions(int index) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.remove(index);
- onChanged();
- } else {
- permissionsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public org.sonarqube.ws.Permissions.Permission.Builder getPermissionsBuilder(
- int index) {
- return getPermissionsFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
- int index) {
- if (permissionsBuilder_ == null) {
- return permissions_.get(index); } else {
- return permissionsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsOrBuilderList() {
- if (permissionsBuilder_ != null) {
- return permissionsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(permissions_);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder() {
- return getPermissionsFieldBuilder().addBuilder(
- org.sonarqube.ws.Permissions.Permission.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder(
- int index) {
- return getPermissionsFieldBuilder().addBuilder(
- index, org.sonarqube.ws.Permissions.Permission.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 1;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.Permission.Builder>
- getPermissionsBuilderList() {
- return getPermissionsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsFieldBuilder() {
- if (permissionsBuilder_ == null) {
- permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder>(
- permissions_,
- ((bitField0_ & 0x00000001) == 0x00000001),
- getParentForChildren(),
- isClean());
- permissions_ = null;
- }
- return permissionsBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse)
- }
-
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchGlobalPermissionsResponse)
- private static final org.sonarqube.ws.Permissions.WsSearchGlobalPermissionsResponse DEFAULT_INSTANCE;
- static {
- 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;
- }
-
- }
-
- public interface WsSearchProjectPermissionsResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- boolean hasPaging();
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- org.sonarqube.ws.Common.Paging getPaging();
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder();
-
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- java.util.List<org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project>
- getProjectsList();
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project getProjects(int index);
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- int getProjectsCount();
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- java.util.List<? extends org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder>
- getProjectsOrBuilderList();
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder getProjectsOrBuilder(
- int index);
-
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- java.util.List<org.sonarqube.ws.Permissions.Permission>
- getPermissionsList();
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- org.sonarqube.ws.Permissions.Permission getPermissions(int index);
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- int getPermissionsCount();
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsOrBuilderList();
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsSearchProjectPermissionsResponse}
- */
- public static final class WsSearchProjectPermissionsResponse extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse)
- WsSearchProjectPermissionsResponseOrBuilder {
- // Use WsSearchProjectPermissionsResponse.newBuilder() to construct.
- private WsSearchProjectPermissionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
- super(builder);
- }
- private WsSearchProjectPermissionsResponse() {
- projects_ = java.util.Collections.emptyList();
- permissions_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private WsSearchProjectPermissionsResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- org.sonarqube.ws.Common.Paging.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- subBuilder = paging_.toBuilder();
- }
- paging_ = input.readMessage(org.sonarqube.ws.Common.Paging.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(paging_);
- paging_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- case 18: {
- if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- projects_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project>();
- mutable_bitField0_ |= 0x00000002;
- }
- projects_.add(input.readMessage(org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.PARSER, extensionRegistry));
- break;
- }
- case 26: {
- if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- permissions_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.Permission>();
- mutable_bitField0_ |= 0x00000004;
- }
- permissions_.add(input.readMessage(org.sonarqube.ws.Permissions.Permission.PARSER, extensionRegistry));
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- projects_ = java.util.Collections.unmodifiableList(projects_);
- }
- if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- permissions_ = java.util.Collections.unmodifiableList(permissions_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.class, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Builder.class);
- }
-
- public interface ProjectOrBuilder extends
- // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>optional string id = 1;</code>
- */
- boolean hasId();
- /**
- * <code>optional string id = 1;</code>
- */
- java.lang.String getId();
- /**
- * <code>optional string id = 1;</code>
- */
- com.google.protobuf.ByteString
- getIdBytes();
-
- /**
- * <code>optional string key = 2;</code>
- */
- boolean hasKey();
- /**
- * <code>optional string key = 2;</code>
- */
- java.lang.String getKey();
- /**
- * <code>optional string key = 2;</code>
- */
- com.google.protobuf.ByteString
- getKeyBytes();
-
- /**
- * <code>optional string qualifier = 3;</code>
- */
- boolean hasQualifier();
- /**
- * <code>optional string qualifier = 3;</code>
- */
- java.lang.String getQualifier();
- /**
- * <code>optional string qualifier = 3;</code>
- */
- com.google.protobuf.ByteString
- getQualifierBytes();
-
- /**
- * <code>optional string name = 4;</code>
- */
- boolean hasName();
- /**
- * <code>optional string name = 4;</code>
- */
- java.lang.String getName();
- /**
- * <code>optional string name = 4;</code>
- */
- com.google.protobuf.ByteString
- getNameBytes();
-
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- java.util.List<org.sonarqube.ws.Permissions.Permission>
- getPermissionsList();
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- org.sonarqube.ws.Permissions.Permission getPermissions(int index);
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- int getPermissionsCount();
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsOrBuilderList();
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project}
- */
- public static final class Project extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project)
- ProjectOrBuilder {
- // Use Project.newBuilder() to construct.
- private Project(com.google.protobuf.GeneratedMessage.Builder builder) {
- super(builder);
- }
- private Project() {
- id_ = "";
- key_ = "";
- qualifier_ = "";
- name_ = "";
- permissions_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Project(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- id_ = bs;
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- key_ = bs;
- break;
- }
- case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000004;
- qualifier_ = bs;
- break;
- }
- case 34: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000008;
- name_ = bs;
- break;
- }
- case 42: {
- if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
- permissions_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.Permission>();
- mutable_bitField0_ |= 0x00000010;
- }
- permissions_.add(input.readMessage(org.sonarqube.ws.Permissions.Permission.PARSER, extensionRegistry));
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
- permissions_ = java.util.Collections.unmodifiableList(permissions_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.class, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder.class);
- }
-
- private int bitField0_;
- public static final int ID_FIELD_NUMBER = 1;
- private volatile java.lang.Object id_;
- /**
- * <code>optional string id = 1;</code>
- */
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public java.lang.String getId() {
- java.lang.Object ref = id_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- id_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public com.google.protobuf.ByteString
- getIdBytes() {
- java.lang.Object ref = id_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- id_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int KEY_FIELD_NUMBER = 2;
- private volatile java.lang.Object key_;
- /**
- * <code>optional string key = 2;</code>
- */
- public boolean hasKey() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string key = 2;</code>
- */
- public java.lang.String getKey() {
- java.lang.Object ref = key_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- key_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string key = 2;</code>
- */
- public com.google.protobuf.ByteString
- getKeyBytes() {
- java.lang.Object ref = key_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- key_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int QUALIFIER_FIELD_NUMBER = 3;
- private volatile java.lang.Object qualifier_;
- /**
- * <code>optional string qualifier = 3;</code>
- */
- public boolean hasQualifier() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional string qualifier = 3;</code>
- */
- public java.lang.String getQualifier() {
- java.lang.Object ref = qualifier_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- qualifier_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string qualifier = 3;</code>
- */
- public com.google.protobuf.ByteString
- getQualifierBytes() {
- java.lang.Object ref = qualifier_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- qualifier_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int NAME_FIELD_NUMBER = 4;
- private volatile java.lang.Object name_;
- /**
- * <code>optional string name = 4;</code>
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional string name = 4;</code>
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string name = 4;</code>
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int PERMISSIONS_FIELD_NUMBER = 5;
- private java.util.List<org.sonarqube.ws.Permissions.Permission> permissions_;
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.Permission> getPermissionsList() {
- return permissions_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsOrBuilderList() {
- return permissions_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public int getPermissionsCount() {
- return permissions_.size();
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public org.sonarqube.ws.Permissions.Permission getPermissions(int index) {
- return permissions_.get(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
- int index) {
- return permissions_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getIdBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getKeyBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getQualifierBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getNameBytes());
- }
- for (int i = 0; i < permissions_.size(); i++) {
- output.writeMessage(5, permissions_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getIdBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getKeyBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getQualifierBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getNameBytes());
- }
- for (int i = 0; i < permissions_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, permissions_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project)
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.class, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder.class);
- }
-
- // Construct using org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getPermissionsFieldBuilder();
- }
- }
- public Builder clear() {
- super.clear();
- id_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- key_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- qualifier_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
- name_ = "";
- bitField0_ = (bitField0_ & ~0x00000008);
- if (permissionsBuilder_ == null) {
- permissions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000010);
- } else {
- permissionsBuilder_.clear();
- }
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor;
- }
-
- public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project getDefaultInstanceForType() {
- return org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.getDefaultInstance();
- }
-
- public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project build() {
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project buildPartial() {
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project result = new org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.id_ = id_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.key_ = key_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.qualifier_ = qualifier_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- result.name_ = name_;
- if (permissionsBuilder_ == null) {
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- permissions_ = java.util.Collections.unmodifiableList(permissions_);
- bitField0_ = (bitField0_ & ~0x00000010);
- }
- result.permissions_ = permissions_;
- } else {
- result.permissions_ = permissionsBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project) {
- return mergeFrom((org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project other) {
- if (other == org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.getDefaultInstance()) return this;
- if (other.hasId()) {
- bitField0_ |= 0x00000001;
- id_ = other.id_;
- onChanged();
- }
- if (other.hasKey()) {
- bitField0_ |= 0x00000002;
- key_ = other.key_;
- onChanged();
- }
- if (other.hasQualifier()) {
- bitField0_ |= 0x00000004;
- qualifier_ = other.qualifier_;
- onChanged();
- }
- if (other.hasName()) {
- bitField0_ |= 0x00000008;
- name_ = other.name_;
- onChanged();
- }
- if (permissionsBuilder_ == null) {
- if (!other.permissions_.isEmpty()) {
- if (permissions_.isEmpty()) {
- permissions_ = other.permissions_;
- bitField0_ = (bitField0_ & ~0x00000010);
- } else {
- ensurePermissionsIsMutable();
- permissions_.addAll(other.permissions_);
- }
- onChanged();
- }
- } else {
- if (!other.permissions_.isEmpty()) {
- if (permissionsBuilder_.isEmpty()) {
- permissionsBuilder_.dispose();
- permissionsBuilder_ = null;
- permissions_ = other.permissions_;
- bitField0_ = (bitField0_ & ~0x00000010);
- permissionsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getPermissionsFieldBuilder() : null;
- } else {
- permissionsBuilder_.addAllMessages(other.permissions_);
- }
- }
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private java.lang.Object id_ = "";
- /**
- * <code>optional string id = 1;</code>
- */
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public java.lang.String getId() {
- java.lang.Object ref = id_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- id_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public com.google.protobuf.ByteString
- getIdBytes() {
- java.lang.Object ref = id_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- id_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public Builder setId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- id_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public Builder clearId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- id_ = getDefaultInstance().getId();
- onChanged();
- return this;
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public Builder setIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- id_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object key_ = "";
- /**
- * <code>optional string key = 2;</code>
- */
- public boolean hasKey() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string key = 2;</code>
- */
- public java.lang.String getKey() {
- java.lang.Object ref = key_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- key_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string key = 2;</code>
- */
- public com.google.protobuf.ByteString
- getKeyBytes() {
- java.lang.Object ref = key_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- key_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string key = 2;</code>
- */
- public Builder setKey(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- key_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string key = 2;</code>
- */
- public Builder clearKey() {
- bitField0_ = (bitField0_ & ~0x00000002);
- key_ = getDefaultInstance().getKey();
- onChanged();
- return this;
- }
- /**
- * <code>optional string key = 2;</code>
- */
- public Builder setKeyBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- key_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object qualifier_ = "";
- /**
- * <code>optional string qualifier = 3;</code>
- */
- public boolean hasQualifier() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional string qualifier = 3;</code>
- */
- public java.lang.String getQualifier() {
- java.lang.Object ref = qualifier_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- qualifier_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string qualifier = 3;</code>
- */
- public com.google.protobuf.ByteString
- getQualifierBytes() {
- java.lang.Object ref = qualifier_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- qualifier_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string qualifier = 3;</code>
- */
- public Builder setQualifier(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- qualifier_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string qualifier = 3;</code>
- */
- public Builder clearQualifier() {
- bitField0_ = (bitField0_ & ~0x00000004);
- qualifier_ = getDefaultInstance().getQualifier();
- onChanged();
- return this;
- }
- /**
- * <code>optional string qualifier = 3;</code>
- */
- public Builder setQualifierBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- qualifier_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object name_ = "";
- /**
- * <code>optional string name = 4;</code>
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional string name = 4;</code>
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string name = 4;</code>
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string name = 4;</code>
- */
- public Builder setName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- name_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string name = 4;</code>
- */
- public Builder clearName() {
- bitField0_ = (bitField0_ & ~0x00000008);
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- * <code>optional string name = 4;</code>
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- name_ = value;
- onChanged();
- return this;
- }
-
- private java.util.List<org.sonarqube.ws.Permissions.Permission> permissions_ =
- java.util.Collections.emptyList();
- private void ensurePermissionsIsMutable() {
- if (!((bitField0_ & 0x00000010) == 0x00000010)) {
- permissions_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.Permission>(permissions_);
- bitField0_ |= 0x00000010;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder> permissionsBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.Permission> getPermissionsList() {
- if (permissionsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(permissions_);
- } else {
- return permissionsBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public int getPermissionsCount() {
- if (permissionsBuilder_ == null) {
- return permissions_.size();
- } else {
- return permissionsBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public org.sonarqube.ws.Permissions.Permission getPermissions(int index) {
- if (permissionsBuilder_ == null) {
- return permissions_.get(index);
- } else {
- return permissionsBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public Builder setPermissions(
- int index, org.sonarqube.ws.Permissions.Permission value) {
- if (permissionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionsIsMutable();
- permissions_.set(index, value);
- onChanged();
- } else {
- permissionsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public Builder setPermissions(
- int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.set(index, builderForValue.build());
- onChanged();
- } else {
- permissionsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public Builder addPermissions(org.sonarqube.ws.Permissions.Permission value) {
- if (permissionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionsIsMutable();
- permissions_.add(value);
- onChanged();
- } else {
- permissionsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public Builder addPermissions(
- int index, org.sonarqube.ws.Permissions.Permission value) {
- if (permissionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionsIsMutable();
- permissions_.add(index, value);
- onChanged();
- } else {
- permissionsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public Builder addPermissions(
- org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.add(builderForValue.build());
- onChanged();
- } else {
- permissionsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public Builder addPermissions(
- int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.add(index, builderForValue.build());
- onChanged();
- } else {
- permissionsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public Builder addAllPermissions(
- java.lang.Iterable<? extends org.sonarqube.ws.Permissions.Permission> values) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, permissions_);
- onChanged();
- } else {
- permissionsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public Builder clearPermissions() {
- if (permissionsBuilder_ == null) {
- permissions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- } else {
- permissionsBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public Builder removePermissions(int index) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.remove(index);
- onChanged();
- } else {
- permissionsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public org.sonarqube.ws.Permissions.Permission.Builder getPermissionsBuilder(
- int index) {
- return getPermissionsFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
- int index) {
- if (permissionsBuilder_ == null) {
- return permissions_.get(index); } else {
- return permissionsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsOrBuilderList() {
- if (permissionsBuilder_ != null) {
- return permissionsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(permissions_);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder() {
- return getPermissionsFieldBuilder().addBuilder(
- org.sonarqube.ws.Permissions.Permission.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder(
- int index) {
- return getPermissionsFieldBuilder().addBuilder(
- index, org.sonarqube.ws.Permissions.Permission.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 5;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.Permission.Builder>
- getPermissionsBuilderList() {
- return getPermissionsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsFieldBuilder() {
- if (permissionsBuilder_ == null) {
- permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder>(
- permissions_,
- ((bitField0_ & 0x00000010) == 0x00000010),
- getParentForChildren(),
- isClean());
- permissions_ = null;
- }
- return permissionsBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project)
- }
-
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project)
- private static final org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project DEFAULT_INSTANCE;
- static {
- 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;
- }
-
- }
-
- private int bitField0_;
- public static final int PAGING_FIELD_NUMBER = 1;
- private org.sonarqube.ws.Common.Paging paging_;
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public boolean hasPaging() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public org.sonarqube.ws.Common.Paging getPaging() {
- 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_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
- }
-
- public static final int PROJECTS_FIELD_NUMBER = 2;
- private java.util.List<org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project> projects_;
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project> getProjectsList() {
- return projects_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder>
- getProjectsOrBuilderList() {
- return projects_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public int getProjectsCount() {
- return projects_.size();
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project getProjects(int index) {
- return projects_.get(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder getProjectsOrBuilder(
- int index) {
- return projects_.get(index);
- }
-
- public static final int PERMISSIONS_FIELD_NUMBER = 3;
- private java.util.List<org.sonarqube.ws.Permissions.Permission> permissions_;
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.Permission> getPermissionsList() {
- return permissions_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsOrBuilderList() {
- return permissions_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public int getPermissionsCount() {
- return permissions_.size();
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public org.sonarqube.ws.Permissions.Permission getPermissions(int index) {
- return permissions_.get(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
- int index) {
- return permissions_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, getPaging());
- }
- for (int i = 0; i < projects_.size(); i++) {
- output.writeMessage(2, projects_.get(i));
- }
- for (int i = 0; i < permissions_.size(); i++) {
- output.writeMessage(3, permissions_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getPaging());
- }
- for (int i = 0; i < projects_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, projects_.get(i));
- }
- for (int i = 0; i < permissions_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, permissions_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsSearchProjectPermissionsResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse)
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.class, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Builder.class);
- }
-
- // Construct using org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getPagingFieldBuilder();
- getProjectsFieldBuilder();
- getPermissionsFieldBuilder();
- }
- }
- public Builder clear() {
- super.clear();
- if (pagingBuilder_ == null) {
- paging_ = null;
- } else {
- pagingBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- if (projectsBuilder_ == null) {
- projects_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- projectsBuilder_.clear();
- }
- if (permissionsBuilder_ == null) {
- permissions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- permissionsBuilder_.clear();
- }
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor;
- }
-
- public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse getDefaultInstanceForType() {
- return org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.getDefaultInstance();
- }
-
- public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse build() {
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse buildPartial() {
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse result = new org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- if (pagingBuilder_ == null) {
- result.paging_ = paging_;
- } else {
- result.paging_ = pagingBuilder_.build();
- }
- if (projectsBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- projects_ = java.util.Collections.unmodifiableList(projects_);
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.projects_ = projects_;
- } else {
- result.projects_ = projectsBuilder_.build();
- }
- if (permissionsBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- permissions_ = java.util.Collections.unmodifiableList(permissions_);
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.permissions_ = permissions_;
- } else {
- result.permissions_ = permissionsBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse) {
- return mergeFrom((org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse other) {
- if (other == org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.getDefaultInstance()) return this;
- if (other.hasPaging()) {
- mergePaging(other.getPaging());
- }
- if (projectsBuilder_ == null) {
- if (!other.projects_.isEmpty()) {
- if (projects_.isEmpty()) {
- projects_ = other.projects_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureProjectsIsMutable();
- projects_.addAll(other.projects_);
- }
- onChanged();
- }
- } else {
- if (!other.projects_.isEmpty()) {
- if (projectsBuilder_.isEmpty()) {
- projectsBuilder_.dispose();
- projectsBuilder_ = null;
- projects_ = other.projects_;
- bitField0_ = (bitField0_ & ~0x00000002);
- projectsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getProjectsFieldBuilder() : null;
- } else {
- projectsBuilder_.addAllMessages(other.projects_);
- }
- }
- }
- if (permissionsBuilder_ == null) {
- if (!other.permissions_.isEmpty()) {
- if (permissions_.isEmpty()) {
- permissions_ = other.permissions_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensurePermissionsIsMutable();
- permissions_.addAll(other.permissions_);
- }
- onChanged();
- }
- } else {
- if (!other.permissions_.isEmpty()) {
- if (permissionsBuilder_.isEmpty()) {
- permissionsBuilder_.dispose();
- permissionsBuilder_ = null;
- permissions_ = other.permissions_;
- bitField0_ = (bitField0_ & ~0x00000004);
- permissionsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getPermissionsFieldBuilder() : null;
- } else {
- permissionsBuilder_.addAllMessages(other.permissions_);
- }
- }
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private org.sonarqube.ws.Common.Paging paging_ = null;
- private com.google.protobuf.SingleFieldBuilder<
- org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder> pagingBuilder_;
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public boolean hasPaging() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public org.sonarqube.ws.Common.Paging getPaging() {
- if (pagingBuilder_ == null) {
- return paging_ == null ? org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
- } else {
- return pagingBuilder_.getMessage();
- }
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public Builder setPaging(org.sonarqube.ws.Common.Paging value) {
- if (pagingBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- paging_ = value;
- onChanged();
- } else {
- pagingBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public Builder setPaging(
- org.sonarqube.ws.Common.Paging.Builder builderForValue) {
- if (pagingBuilder_ == null) {
- paging_ = builderForValue.build();
- onChanged();
- } else {
- pagingBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public Builder mergePaging(org.sonarqube.ws.Common.Paging value) {
- if (pagingBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001) &&
- paging_ != null &&
- paging_ != org.sonarqube.ws.Common.Paging.getDefaultInstance()) {
- paging_ =
- org.sonarqube.ws.Common.Paging.newBuilder(paging_).mergeFrom(value).buildPartial();
- } else {
- paging_ = value;
- }
- onChanged();
- } else {
- pagingBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public Builder clearPaging() {
- if (pagingBuilder_ == null) {
- paging_ = null;
- onChanged();
- } else {
- pagingBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public org.sonarqube.ws.Common.Paging.Builder getPagingBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getPagingFieldBuilder().getBuilder();
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- public org.sonarqube.ws.Common.PagingOrBuilder getPagingOrBuilder() {
- if (pagingBuilder_ != null) {
- return pagingBuilder_.getMessageOrBuilder();
- } else {
- return paging_ == null ?
- org.sonarqube.ws.Common.Paging.getDefaultInstance() : paging_;
- }
- }
- /**
- * <code>optional .sonarqube.ws.commons.Paging paging = 1;</code>
- */
- private com.google.protobuf.SingleFieldBuilder<
- org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>
- getPagingFieldBuilder() {
- if (pagingBuilder_ == null) {
- pagingBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.sonarqube.ws.Common.Paging, org.sonarqube.ws.Common.Paging.Builder, org.sonarqube.ws.Common.PagingOrBuilder>(
- getPaging(),
- getParentForChildren(),
- isClean());
- paging_ = null;
- }
- return pagingBuilder_;
- }
-
- private java.util.List<org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project> projects_ =
- java.util.Collections.emptyList();
- private void ensureProjectsIsMutable() {
- if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- projects_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project>(projects_);
- bitField0_ |= 0x00000002;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder> projectsBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project> getProjectsList() {
- if (projectsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(projects_);
- } else {
- return projectsBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public int getProjectsCount() {
- if (projectsBuilder_ == null) {
- return projects_.size();
- } else {
- return projectsBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project getProjects(int index) {
- if (projectsBuilder_ == null) {
- return projects_.get(index);
- } else {
- return projectsBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public Builder setProjects(
- int index, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project value) {
- if (projectsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureProjectsIsMutable();
- projects_.set(index, value);
- onChanged();
- } else {
- projectsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public Builder setProjects(
- int index, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder builderForValue) {
- if (projectsBuilder_ == null) {
- ensureProjectsIsMutable();
- projects_.set(index, builderForValue.build());
- onChanged();
- } else {
- projectsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public Builder addProjects(org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project value) {
- if (projectsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureProjectsIsMutable();
- projects_.add(value);
- onChanged();
- } else {
- projectsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public Builder addProjects(
- int index, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project value) {
- if (projectsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureProjectsIsMutable();
- projects_.add(index, value);
- onChanged();
- } else {
- projectsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public Builder addProjects(
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder builderForValue) {
- if (projectsBuilder_ == null) {
- ensureProjectsIsMutable();
- projects_.add(builderForValue.build());
- onChanged();
- } else {
- projectsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public Builder addProjects(
- int index, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder builderForValue) {
- if (projectsBuilder_ == null) {
- ensureProjectsIsMutable();
- projects_.add(index, builderForValue.build());
- onChanged();
- } else {
- projectsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public Builder addAllProjects(
- java.lang.Iterable<? extends org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project> values) {
- if (projectsBuilder_ == null) {
- ensureProjectsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, projects_);
- onChanged();
- } else {
- projectsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public Builder clearProjects() {
- if (projectsBuilder_ == null) {
- projects_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- } else {
- projectsBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public Builder removeProjects(int index) {
- if (projectsBuilder_ == null) {
- ensureProjectsIsMutable();
- projects_.remove(index);
- onChanged();
- } else {
- projectsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder getProjectsBuilder(
- int index) {
- return getProjectsFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder getProjectsOrBuilder(
- int index) {
- if (projectsBuilder_ == null) {
- return projects_.get(index); } else {
- return projectsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder>
- getProjectsOrBuilderList() {
- if (projectsBuilder_ != null) {
- return projectsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(projects_);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder addProjectsBuilder() {
- return getProjectsFieldBuilder().addBuilder(
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder addProjectsBuilder(
- int index) {
- return getProjectsFieldBuilder().addBuilder(
- index, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchProjectPermissionsResponse.Project projects = 2;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder>
- getProjectsBuilderList() {
- return getProjectsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder>
- getProjectsFieldBuilder() {
- if (projectsBuilder_ == null) {
- projectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.Project.Builder, org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse.ProjectOrBuilder>(
- projects_,
- ((bitField0_ & 0x00000002) == 0x00000002),
- getParentForChildren(),
- isClean());
- projects_ = null;
- }
- return projectsBuilder_;
- }
-
- private java.util.List<org.sonarqube.ws.Permissions.Permission> permissions_ =
- java.util.Collections.emptyList();
- private void ensurePermissionsIsMutable() {
- if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- permissions_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.Permission>(permissions_);
- bitField0_ |= 0x00000004;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder> permissionsBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.Permission> getPermissionsList() {
- if (permissionsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(permissions_);
- } else {
- return permissionsBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public int getPermissionsCount() {
- if (permissionsBuilder_ == null) {
- return permissions_.size();
- } else {
- return permissionsBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public org.sonarqube.ws.Permissions.Permission getPermissions(int index) {
- if (permissionsBuilder_ == null) {
- return permissions_.get(index);
- } else {
- return permissionsBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder setPermissions(
- int index, org.sonarqube.ws.Permissions.Permission value) {
- if (permissionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionsIsMutable();
- permissions_.set(index, value);
- onChanged();
- } else {
- permissionsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder setPermissions(
- int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.set(index, builderForValue.build());
- onChanged();
- } else {
- permissionsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder addPermissions(org.sonarqube.ws.Permissions.Permission value) {
- if (permissionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionsIsMutable();
- permissions_.add(value);
- onChanged();
- } else {
- permissionsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder addPermissions(
- int index, org.sonarqube.ws.Permissions.Permission value) {
- if (permissionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionsIsMutable();
- permissions_.add(index, value);
- onChanged();
- } else {
- permissionsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder addPermissions(
- org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.add(builderForValue.build());
- onChanged();
- } else {
- permissionsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder addPermissions(
- int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.add(index, builderForValue.build());
- onChanged();
- } else {
- permissionsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder addAllPermissions(
- java.lang.Iterable<? extends org.sonarqube.ws.Permissions.Permission> values) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, permissions_);
- onChanged();
- } else {
- permissionsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder clearPermissions() {
- if (permissionsBuilder_ == null) {
- permissions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- } else {
- permissionsBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder removePermissions(int index) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.remove(index);
- onChanged();
- } else {
- permissionsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public org.sonarqube.ws.Permissions.Permission.Builder getPermissionsBuilder(
- int index) {
- return getPermissionsFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
- int index) {
- if (permissionsBuilder_ == null) {
- return permissions_.get(index); } else {
- return permissionsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsOrBuilderList() {
- if (permissionsBuilder_ != null) {
- return permissionsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(permissions_);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder() {
- return getPermissionsFieldBuilder().addBuilder(
- org.sonarqube.ws.Permissions.Permission.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder(
- int index) {
- return getPermissionsFieldBuilder().addBuilder(
- index, org.sonarqube.ws.Permissions.Permission.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.Permission.Builder>
- getPermissionsBuilderList() {
- return getPermissionsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsFieldBuilder() {
- if (permissionsBuilder_ == null) {
- permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder>(
- permissions_,
- ((bitField0_ & 0x00000004) == 0x00000004),
- getParentForChildren(),
- isClean());
- permissions_ = null;
- }
- return permissionsBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse)
- }
-
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchProjectPermissionsResponse)
- private static final org.sonarqube.ws.Permissions.WsSearchProjectPermissionsResponse DEFAULT_INSTANCE;
- static {
- 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;
- }
-
- }
-
- public interface PermissionTemplateOrBuilder extends
- // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.PermissionTemplate)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>optional string id = 1;</code>
- */
- boolean hasId();
- /**
- * <code>optional string id = 1;</code>
- */
- java.lang.String getId();
- /**
- * <code>optional string id = 1;</code>
- */
- com.google.protobuf.ByteString
- getIdBytes();
-
- /**
- * <code>optional string name = 2;</code>
- */
- boolean hasName();
- /**
- * <code>optional string name = 2;</code>
- */
- java.lang.String getName();
- /**
- * <code>optional string name = 2;</code>
- */
- com.google.protobuf.ByteString
- getNameBytes();
-
- /**
- * <code>optional string description = 3;</code>
- */
- boolean hasDescription();
- /**
- * <code>optional string description = 3;</code>
- */
- java.lang.String getDescription();
- /**
- * <code>optional string description = 3;</code>
- */
- com.google.protobuf.ByteString
- getDescriptionBytes();
-
- /**
- * <code>optional string projectKeyPattern = 4;</code>
- */
- boolean hasProjectKeyPattern();
- /**
- * <code>optional string projectKeyPattern = 4;</code>
- */
- java.lang.String getProjectKeyPattern();
- /**
- * <code>optional string projectKeyPattern = 4;</code>
- */
- com.google.protobuf.ByteString
- getProjectKeyPatternBytes();
-
- /**
- * <code>optional string createdAt = 5;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- boolean hasCreatedAt();
- /**
- * <code>optional string createdAt = 5;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- java.lang.String getCreatedAt();
- /**
- * <code>optional string createdAt = 5;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- com.google.protobuf.ByteString
- getCreatedAtBytes();
-
- /**
- * <code>optional string updatedAt = 6;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- boolean hasUpdatedAt();
- /**
- * <code>optional string updatedAt = 6;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- java.lang.String getUpdatedAt();
- /**
- * <code>optional string updatedAt = 6;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- com.google.protobuf.ByteString
- getUpdatedAtBytes();
-
- /**
- * <code>optional bool permissionsPresentIfEmpty = 7;</code>
- */
- boolean hasPermissionsPresentIfEmpty();
- /**
- * <code>optional bool permissionsPresentIfEmpty = 7;</code>
- */
- boolean getPermissionsPresentIfEmpty();
-
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- java.util.List<org.sonarqube.ws.Permissions.Permission>
- getPermissionsList();
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- org.sonarqube.ws.Permissions.Permission getPermissions(int index);
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- int getPermissionsCount();
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsOrBuilderList();
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.PermissionTemplate}
- */
- public static final class PermissionTemplate extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.PermissionTemplate)
- PermissionTemplateOrBuilder {
- // Use PermissionTemplate.newBuilder() to construct.
- private PermissionTemplate(com.google.protobuf.GeneratedMessage.Builder builder) {
- super(builder);
- }
- private PermissionTemplate() {
- id_ = "";
- name_ = "";
- description_ = "";
- projectKeyPattern_ = "";
- createdAt_ = "";
- updatedAt_ = "";
- permissionsPresentIfEmpty_ = false;
- permissions_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private PermissionTemplate(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- id_ = bs;
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- name_ = bs;
- break;
- }
- case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000004;
- description_ = bs;
- break;
- }
- case 34: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000008;
- projectKeyPattern_ = bs;
- break;
- }
- case 42: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000010;
- createdAt_ = bs;
- break;
- }
- case 50: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000020;
- updatedAt_ = bs;
- break;
- }
- case 56: {
- bitField0_ |= 0x00000040;
- permissionsPresentIfEmpty_ = input.readBool();
- break;
- }
- case 66: {
- if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
- permissions_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.Permission>();
- mutable_bitField0_ |= 0x00000080;
- }
- permissions_.add(input.readMessage(org.sonarqube.ws.Permissions.Permission.PARSER, extensionRegistry));
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
- permissions_ = java.util.Collections.unmodifiableList(permissions_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.PermissionTemplate.class, org.sonarqube.ws.Permissions.PermissionTemplate.Builder.class);
- }
-
- private int bitField0_;
- public static final int ID_FIELD_NUMBER = 1;
- private volatile java.lang.Object id_;
- /**
- * <code>optional string id = 1;</code>
- */
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public java.lang.String getId() {
- java.lang.Object ref = id_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- id_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public com.google.protobuf.ByteString
- getIdBytes() {
- java.lang.Object ref = id_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- id_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int NAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object name_;
- /**
- * <code>optional string name = 2;</code>
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int DESCRIPTION_FIELD_NUMBER = 3;
- private volatile java.lang.Object description_;
- /**
- * <code>optional string description = 3;</code>
- */
- public boolean hasDescription() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public java.lang.String getDescription() {
- java.lang.Object ref = description_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- description_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public com.google.protobuf.ByteString
- getDescriptionBytes() {
- java.lang.Object ref = description_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- description_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int PROJECTKEYPATTERN_FIELD_NUMBER = 4;
- private volatile java.lang.Object projectKeyPattern_;
- /**
- * <code>optional string projectKeyPattern = 4;</code>
- */
- public boolean hasProjectKeyPattern() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional string projectKeyPattern = 4;</code>
- */
- public java.lang.String getProjectKeyPattern() {
- java.lang.Object ref = projectKeyPattern_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- projectKeyPattern_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string projectKeyPattern = 4;</code>
- */
- public com.google.protobuf.ByteString
- getProjectKeyPatternBytes() {
- java.lang.Object ref = projectKeyPattern_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- projectKeyPattern_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int CREATEDAT_FIELD_NUMBER = 5;
- private volatile java.lang.Object createdAt_;
- /**
- * <code>optional string createdAt = 5;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public boolean hasCreatedAt() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * <code>optional string createdAt = 5;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public java.lang.String getCreatedAt() {
- java.lang.Object ref = createdAt_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- createdAt_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string createdAt = 5;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public com.google.protobuf.ByteString
- getCreatedAtBytes() {
- java.lang.Object ref = createdAt_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- createdAt_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int UPDATEDAT_FIELD_NUMBER = 6;
- private volatile java.lang.Object updatedAt_;
- /**
- * <code>optional string updatedAt = 6;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public boolean hasUpdatedAt() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
- /**
- * <code>optional string updatedAt = 6;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public java.lang.String getUpdatedAt() {
- java.lang.Object ref = updatedAt_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- updatedAt_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string updatedAt = 6;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public com.google.protobuf.ByteString
- getUpdatedAtBytes() {
- java.lang.Object ref = updatedAt_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- updatedAt_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int PERMISSIONSPRESENTIFEMPTY_FIELD_NUMBER = 7;
- private boolean permissionsPresentIfEmpty_;
- /**
- * <code>optional bool permissionsPresentIfEmpty = 7;</code>
- */
- public boolean hasPermissionsPresentIfEmpty() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
- }
- /**
- * <code>optional bool permissionsPresentIfEmpty = 7;</code>
- */
- public boolean getPermissionsPresentIfEmpty() {
- return permissionsPresentIfEmpty_;
- }
-
- public static final int PERMISSIONS_FIELD_NUMBER = 8;
- private java.util.List<org.sonarqube.ws.Permissions.Permission> permissions_;
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.Permission> getPermissionsList() {
- return permissions_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsOrBuilderList() {
- return permissions_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public int getPermissionsCount() {
- return permissions_.size();
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public org.sonarqube.ws.Permissions.Permission getPermissions(int index) {
- return permissions_.get(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
- int index) {
- return permissions_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getIdBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getNameBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getDescriptionBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getProjectKeyPatternBytes());
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeBytes(5, getCreatedAtBytes());
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeBytes(6, getUpdatedAtBytes());
- }
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- output.writeBool(7, permissionsPresentIfEmpty_);
- }
- for (int i = 0; i < permissions_.size(); i++) {
- output.writeMessage(8, permissions_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getIdBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getNameBytes());
- }
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getDescriptionBytes());
- }
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getProjectKeyPatternBytes());
- }
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(5, getCreatedAtBytes());
- }
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(6, getUpdatedAtBytes());
- }
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(7, permissionsPresentIfEmpty_);
- }
- for (int i = 0; i < permissions_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(8, permissions_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static org.sonarqube.ws.Permissions.PermissionTemplate parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.PermissionTemplate parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.PermissionTemplate parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.PermissionTemplate parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.PermissionTemplate parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.PermissionTemplate parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.PermissionTemplate parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonarqube.ws.Permissions.PermissionTemplate parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.PermissionTemplate parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.PermissionTemplate parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.sonarqube.ws.Permissions.PermissionTemplate prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.PermissionTemplate}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.PermissionTemplate)
- org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.PermissionTemplate.class, org.sonarqube.ws.Permissions.PermissionTemplate.Builder.class);
- }
-
- // Construct using org.sonarqube.ws.Permissions.PermissionTemplate.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getPermissionsFieldBuilder();
- }
- }
- public Builder clear() {
- super.clear();
- id_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- name_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- description_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
- projectKeyPattern_ = "";
- bitField0_ = (bitField0_ & ~0x00000008);
- createdAt_ = "";
- bitField0_ = (bitField0_ & ~0x00000010);
- updatedAt_ = "";
- bitField0_ = (bitField0_ & ~0x00000020);
- permissionsPresentIfEmpty_ = false;
- bitField0_ = (bitField0_ & ~0x00000040);
- if (permissionsBuilder_ == null) {
- permissions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000080);
- } else {
- permissionsBuilder_.clear();
- }
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor;
- }
-
- public org.sonarqube.ws.Permissions.PermissionTemplate getDefaultInstanceForType() {
- return org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance();
- }
-
- public org.sonarqube.ws.Permissions.PermissionTemplate build() {
- org.sonarqube.ws.Permissions.PermissionTemplate result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonarqube.ws.Permissions.PermissionTemplate buildPartial() {
- org.sonarqube.ws.Permissions.PermissionTemplate result = new org.sonarqube.ws.Permissions.PermissionTemplate(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.id_ = id_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.name_ = name_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
- to_bitField0_ |= 0x00000004;
- }
- result.description_ = description_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
- to_bitField0_ |= 0x00000008;
- }
- result.projectKeyPattern_ = projectKeyPattern_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
- to_bitField0_ |= 0x00000010;
- }
- result.createdAt_ = createdAt_;
- if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
- to_bitField0_ |= 0x00000020;
- }
- result.updatedAt_ = updatedAt_;
- if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
- to_bitField0_ |= 0x00000040;
- }
- result.permissionsPresentIfEmpty_ = permissionsPresentIfEmpty_;
- if (permissionsBuilder_ == null) {
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- permissions_ = java.util.Collections.unmodifiableList(permissions_);
- bitField0_ = (bitField0_ & ~0x00000080);
- }
- result.permissions_ = permissions_;
- } else {
- result.permissions_ = permissionsBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.sonarqube.ws.Permissions.PermissionTemplate) {
- return mergeFrom((org.sonarqube.ws.Permissions.PermissionTemplate)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonarqube.ws.Permissions.PermissionTemplate other) {
- if (other == org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance()) return this;
- if (other.hasId()) {
- bitField0_ |= 0x00000001;
- id_ = other.id_;
- onChanged();
- }
- if (other.hasName()) {
- bitField0_ |= 0x00000002;
- name_ = other.name_;
- onChanged();
- }
- if (other.hasDescription()) {
- bitField0_ |= 0x00000004;
- description_ = other.description_;
- onChanged();
- }
- if (other.hasProjectKeyPattern()) {
- bitField0_ |= 0x00000008;
- projectKeyPattern_ = other.projectKeyPattern_;
- onChanged();
- }
- if (other.hasCreatedAt()) {
- bitField0_ |= 0x00000010;
- createdAt_ = other.createdAt_;
- onChanged();
- }
- if (other.hasUpdatedAt()) {
- bitField0_ |= 0x00000020;
- updatedAt_ = other.updatedAt_;
- onChanged();
- }
- if (other.hasPermissionsPresentIfEmpty()) {
- setPermissionsPresentIfEmpty(other.getPermissionsPresentIfEmpty());
- }
- if (permissionsBuilder_ == null) {
- if (!other.permissions_.isEmpty()) {
- if (permissions_.isEmpty()) {
- permissions_ = other.permissions_;
- bitField0_ = (bitField0_ & ~0x00000080);
- } else {
- ensurePermissionsIsMutable();
- permissions_.addAll(other.permissions_);
- }
- onChanged();
- }
- } else {
- if (!other.permissions_.isEmpty()) {
- if (permissionsBuilder_.isEmpty()) {
- permissionsBuilder_.dispose();
- permissionsBuilder_ = null;
- permissions_ = other.permissions_;
- bitField0_ = (bitField0_ & ~0x00000080);
- permissionsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getPermissionsFieldBuilder() : null;
- } else {
- permissionsBuilder_.addAllMessages(other.permissions_);
- }
- }
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- org.sonarqube.ws.Permissions.PermissionTemplate parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonarqube.ws.Permissions.PermissionTemplate) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private java.lang.Object id_ = "";
- /**
- * <code>optional string id = 1;</code>
- */
- public boolean hasId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public java.lang.String getId() {
- java.lang.Object ref = id_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- id_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public com.google.protobuf.ByteString
- getIdBytes() {
- java.lang.Object ref = id_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- id_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public Builder setId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- id_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public Builder clearId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- id_ = getDefaultInstance().getId();
- onChanged();
- return this;
- }
- /**
- * <code>optional string id = 1;</code>
- */
- public Builder setIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- id_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object name_ = "";
- /**
- * <code>optional string name = 2;</code>
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public Builder setName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- name_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public Builder clearName() {
- bitField0_ = (bitField0_ & ~0x00000002);
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- * <code>optional string name = 2;</code>
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- name_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object description_ = "";
- /**
- * <code>optional string description = 3;</code>
- */
- public boolean hasDescription() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public java.lang.String getDescription() {
- java.lang.Object ref = description_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- description_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public com.google.protobuf.ByteString
- getDescriptionBytes() {
- java.lang.Object ref = description_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- description_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public Builder setDescription(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- description_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public Builder clearDescription() {
- bitField0_ = (bitField0_ & ~0x00000004);
- description_ = getDefaultInstance().getDescription();
- onChanged();
- return this;
- }
- /**
- * <code>optional string description = 3;</code>
- */
- public Builder setDescriptionBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- description_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object projectKeyPattern_ = "";
- /**
- * <code>optional string projectKeyPattern = 4;</code>
- */
- public boolean hasProjectKeyPattern() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
- }
- /**
- * <code>optional string projectKeyPattern = 4;</code>
- */
- public java.lang.String getProjectKeyPattern() {
- java.lang.Object ref = projectKeyPattern_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- projectKeyPattern_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string projectKeyPattern = 4;</code>
- */
- public com.google.protobuf.ByteString
- getProjectKeyPatternBytes() {
- java.lang.Object ref = projectKeyPattern_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- projectKeyPattern_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string projectKeyPattern = 4;</code>
- */
- public Builder setProjectKeyPattern(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- projectKeyPattern_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string projectKeyPattern = 4;</code>
- */
- public Builder clearProjectKeyPattern() {
- bitField0_ = (bitField0_ & ~0x00000008);
- projectKeyPattern_ = getDefaultInstance().getProjectKeyPattern();
- onChanged();
- return this;
- }
- /**
- * <code>optional string projectKeyPattern = 4;</code>
- */
- public Builder setProjectKeyPatternBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- projectKeyPattern_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object createdAt_ = "";
- /**
- * <code>optional string createdAt = 5;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public boolean hasCreatedAt() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
- }
- /**
- * <code>optional string createdAt = 5;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public java.lang.String getCreatedAt() {
- java.lang.Object ref = createdAt_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- createdAt_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string createdAt = 5;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public com.google.protobuf.ByteString
- getCreatedAtBytes() {
- java.lang.Object ref = createdAt_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- createdAt_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string createdAt = 5;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public Builder setCreatedAt(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
- createdAt_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string createdAt = 5;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public Builder clearCreatedAt() {
- bitField0_ = (bitField0_ & ~0x00000010);
- createdAt_ = getDefaultInstance().getCreatedAt();
- onChanged();
- return this;
- }
- /**
- * <code>optional string createdAt = 5;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public Builder setCreatedAtBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
- createdAt_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object updatedAt_ = "";
- /**
- * <code>optional string updatedAt = 6;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public boolean hasUpdatedAt() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
- }
- /**
- * <code>optional string updatedAt = 6;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public java.lang.String getUpdatedAt() {
- java.lang.Object ref = updatedAt_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- updatedAt_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string updatedAt = 6;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public com.google.protobuf.ByteString
- getUpdatedAtBytes() {
- java.lang.Object ref = updatedAt_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- updatedAt_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string updatedAt = 6;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public Builder setUpdatedAt(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000020;
- updatedAt_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string updatedAt = 6;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public Builder clearUpdatedAt() {
- bitField0_ = (bitField0_ & ~0x00000020);
- updatedAt_ = getDefaultInstance().getUpdatedAt();
- onChanged();
- return this;
- }
- /**
- * <code>optional string updatedAt = 6;</code>
- *
- * <pre>
- * ex: 2015-08-25T16:18:48+0200
- * </pre>
- */
- public Builder setUpdatedAtBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000020;
- updatedAt_ = value;
- onChanged();
- return this;
- }
-
- private boolean permissionsPresentIfEmpty_ ;
- /**
- * <code>optional bool permissionsPresentIfEmpty = 7;</code>
- */
- public boolean hasPermissionsPresentIfEmpty() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
- }
- /**
- * <code>optional bool permissionsPresentIfEmpty = 7;</code>
- */
- public boolean getPermissionsPresentIfEmpty() {
- return permissionsPresentIfEmpty_;
- }
- /**
- * <code>optional bool permissionsPresentIfEmpty = 7;</code>
- */
- public Builder setPermissionsPresentIfEmpty(boolean value) {
- bitField0_ |= 0x00000040;
- permissionsPresentIfEmpty_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional bool permissionsPresentIfEmpty = 7;</code>
- */
- public Builder clearPermissionsPresentIfEmpty() {
- bitField0_ = (bitField0_ & ~0x00000040);
- permissionsPresentIfEmpty_ = false;
- onChanged();
- return this;
- }
-
- private java.util.List<org.sonarqube.ws.Permissions.Permission> permissions_ =
- java.util.Collections.emptyList();
- private void ensurePermissionsIsMutable() {
- if (!((bitField0_ & 0x00000080) == 0x00000080)) {
- permissions_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.Permission>(permissions_);
- bitField0_ |= 0x00000080;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder> permissionsBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.Permission> getPermissionsList() {
- if (permissionsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(permissions_);
- } else {
- return permissionsBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public int getPermissionsCount() {
- if (permissionsBuilder_ == null) {
- return permissions_.size();
- } else {
- return permissionsBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public org.sonarqube.ws.Permissions.Permission getPermissions(int index) {
- if (permissionsBuilder_ == null) {
- return permissions_.get(index);
- } else {
- return permissionsBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public Builder setPermissions(
- int index, org.sonarqube.ws.Permissions.Permission value) {
- if (permissionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionsIsMutable();
- permissions_.set(index, value);
- onChanged();
- } else {
- permissionsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public Builder setPermissions(
- int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.set(index, builderForValue.build());
- onChanged();
- } else {
- permissionsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public Builder addPermissions(org.sonarqube.ws.Permissions.Permission value) {
- if (permissionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionsIsMutable();
- permissions_.add(value);
- onChanged();
- } else {
- permissionsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public Builder addPermissions(
- int index, org.sonarqube.ws.Permissions.Permission value) {
- if (permissionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionsIsMutable();
- permissions_.add(index, value);
- onChanged();
- } else {
- permissionsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public Builder addPermissions(
- org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.add(builderForValue.build());
- onChanged();
- } else {
- permissionsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public Builder addPermissions(
- int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.add(index, builderForValue.build());
- onChanged();
- } else {
- permissionsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public Builder addAllPermissions(
- java.lang.Iterable<? extends org.sonarqube.ws.Permissions.Permission> values) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, permissions_);
- onChanged();
- } else {
- permissionsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public Builder clearPermissions() {
- if (permissionsBuilder_ == null) {
- permissions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000080);
- onChanged();
- } else {
- permissionsBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public Builder removePermissions(int index) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.remove(index);
- onChanged();
- } else {
- permissionsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public org.sonarqube.ws.Permissions.Permission.Builder getPermissionsBuilder(
- int index) {
- return getPermissionsFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
- int index) {
- if (permissionsBuilder_ == null) {
- return permissions_.get(index); } else {
- return permissionsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsOrBuilderList() {
- if (permissionsBuilder_ != null) {
- return permissionsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(permissions_);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder() {
- return getPermissionsFieldBuilder().addBuilder(
- org.sonarqube.ws.Permissions.Permission.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder(
- int index) {
- return getPermissionsFieldBuilder().addBuilder(
- index, org.sonarqube.ws.Permissions.Permission.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 8;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.Permission.Builder>
- getPermissionsBuilderList() {
- return getPermissionsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsFieldBuilder() {
- if (permissionsBuilder_ == null) {
- permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder>(
- permissions_,
- ((bitField0_ & 0x00000080) == 0x00000080),
- getParentForChildren(),
- isClean());
- permissions_ = null;
- }
- return permissionsBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.PermissionTemplate)
- }
-
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.PermissionTemplate)
- private static final org.sonarqube.ws.Permissions.PermissionTemplate DEFAULT_INSTANCE;
- static {
- 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;
- }
-
- }
-
- public interface WsCreatePermissionTemplateResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- boolean hasPermissionTemplate();
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplate();
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder();
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsCreatePermissionTemplateResponse}
- */
- public static final class WsCreatePermissionTemplateResponse extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse)
- WsCreatePermissionTemplateResponseOrBuilder {
- // Use WsCreatePermissionTemplateResponse.newBuilder() to construct.
- private WsCreatePermissionTemplateResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
- super(builder);
- }
- private WsCreatePermissionTemplateResponse() {
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private WsCreatePermissionTemplateResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- org.sonarqube.ws.Permissions.PermissionTemplate.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- subBuilder = permissionTemplate_.toBuilder();
- }
- permissionTemplate_ = input.readMessage(org.sonarqube.ws.Permissions.PermissionTemplate.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(permissionTemplate_);
- permissionTemplate_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse.class, org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse.Builder.class);
- }
-
- private int bitField0_;
- public static final int PERMISSIONTEMPLATE_FIELD_NUMBER = 1;
- private org.sonarqube.ws.Permissions.PermissionTemplate permissionTemplate_;
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public boolean hasPermissionTemplate() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplate() {
- 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_ == null ? org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, getPermissionTemplate());
- }
- unknownFields.writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getPermissionTemplate());
- }
- size += unknownFields.getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsCreatePermissionTemplateResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse)
- org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse.class, org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse.Builder.class);
- }
-
- // Construct using org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getPermissionTemplateFieldBuilder();
- }
- }
- public Builder clear() {
- super.clear();
- if (permissionTemplateBuilder_ == null) {
- permissionTemplate_ = null;
- } else {
- permissionTemplateBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor;
- }
-
- public org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse getDefaultInstanceForType() {
- return org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse.getDefaultInstance();
- }
-
- public org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse build() {
- org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse buildPartial() {
- org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse result = new org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- if (permissionTemplateBuilder_ == null) {
- result.permissionTemplate_ = permissionTemplate_;
- } else {
- result.permissionTemplate_ = permissionTemplateBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse) {
- return mergeFrom((org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse other) {
- if (other == org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse.getDefaultInstance()) return this;
- if (other.hasPermissionTemplate()) {
- mergePermissionTemplate(other.getPermissionTemplate());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- 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_;
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public boolean hasPermissionTemplate() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplate() {
- if (permissionTemplateBuilder_ == null) {
- return permissionTemplate_ == null ? org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
- } else {
- return permissionTemplateBuilder_.getMessage();
- }
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public Builder setPermissionTemplate(org.sonarqube.ws.Permissions.PermissionTemplate value) {
- if (permissionTemplateBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- permissionTemplate_ = value;
- onChanged();
- } else {
- permissionTemplateBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public Builder setPermissionTemplate(
- org.sonarqube.ws.Permissions.PermissionTemplate.Builder builderForValue) {
- if (permissionTemplateBuilder_ == null) {
- permissionTemplate_ = builderForValue.build();
- onChanged();
- } else {
- permissionTemplateBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- 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();
- } else {
- permissionTemplate_ = value;
- }
- onChanged();
- } else {
- permissionTemplateBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public Builder clearPermissionTemplate() {
- if (permissionTemplateBuilder_ == null) {
- permissionTemplate_ = null;
- onChanged();
- } else {
- permissionTemplateBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionTemplate.Builder getPermissionTemplateBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getPermissionTemplateFieldBuilder().getBuilder();
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() {
- if (permissionTemplateBuilder_ != null) {
- return permissionTemplateBuilder_.getMessageOrBuilder();
- } else {
- return permissionTemplate_ == null ?
- org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
- }
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- private com.google.protobuf.SingleFieldBuilder<
- org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder>
- getPermissionTemplateFieldBuilder() {
- if (permissionTemplateBuilder_ == null) {
- permissionTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder>(
- getPermissionTemplate(),
- getParentForChildren(),
- isClean());
- permissionTemplate_ = null;
- }
- return permissionTemplateBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse)
- }
-
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsCreatePermissionTemplateResponse)
- private static final org.sonarqube.ws.Permissions.WsCreatePermissionTemplateResponse DEFAULT_INSTANCE;
- static {
- 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;
- }
-
- }
-
- public interface WsUpdatePermissionTemplateResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- boolean hasPermissionTemplate();
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplate();
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder();
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse}
- */
- public static final class WsUpdatePermissionTemplateResponse extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse)
- WsUpdatePermissionTemplateResponseOrBuilder {
- // Use WsUpdatePermissionTemplateResponse.newBuilder() to construct.
- private WsUpdatePermissionTemplateResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
- super(builder);
- }
- private WsUpdatePermissionTemplateResponse() {
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private WsUpdatePermissionTemplateResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- org.sonarqube.ws.Permissions.PermissionTemplate.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- subBuilder = permissionTemplate_.toBuilder();
- }
- permissionTemplate_ = input.readMessage(org.sonarqube.ws.Permissions.PermissionTemplate.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(permissionTemplate_);
- permissionTemplate_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse.class, org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse.Builder.class);
- }
-
- private int bitField0_;
- public static final int PERMISSIONTEMPLATE_FIELD_NUMBER = 1;
- private org.sonarqube.ws.Permissions.PermissionTemplate permissionTemplate_;
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public boolean hasPermissionTemplate() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplate() {
- 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_ == null ? org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, getPermissionTemplate());
- }
- unknownFields.writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getPermissionTemplate());
- }
- size += unknownFields.getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse)
- org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse.class, org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse.Builder.class);
- }
-
- // Construct using org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getPermissionTemplateFieldBuilder();
- }
- }
- public Builder clear() {
- super.clear();
- if (permissionTemplateBuilder_ == null) {
- permissionTemplate_ = null;
- } else {
- permissionTemplateBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor;
- }
-
- public org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse getDefaultInstanceForType() {
- return org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse.getDefaultInstance();
- }
-
- public org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse build() {
- org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse buildPartial() {
- org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse result = new org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- if (permissionTemplateBuilder_ == null) {
- result.permissionTemplate_ = permissionTemplate_;
- } else {
- result.permissionTemplate_ = permissionTemplateBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse) {
- return mergeFrom((org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse other) {
- if (other == org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse.getDefaultInstance()) return this;
- if (other.hasPermissionTemplate()) {
- mergePermissionTemplate(other.getPermissionTemplate());
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- 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_;
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public boolean hasPermissionTemplate() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplate() {
- if (permissionTemplateBuilder_ == null) {
- return permissionTemplate_ == null ? org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
- } else {
- return permissionTemplateBuilder_.getMessage();
- }
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public Builder setPermissionTemplate(org.sonarqube.ws.Permissions.PermissionTemplate value) {
- if (permissionTemplateBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- permissionTemplate_ = value;
- onChanged();
- } else {
- permissionTemplateBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public Builder setPermissionTemplate(
- org.sonarqube.ws.Permissions.PermissionTemplate.Builder builderForValue) {
- if (permissionTemplateBuilder_ == null) {
- permissionTemplate_ = builderForValue.build();
- onChanged();
- } else {
- permissionTemplateBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- 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();
- } else {
- permissionTemplate_ = value;
- }
- onChanged();
- } else {
- permissionTemplateBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public Builder clearPermissionTemplate() {
- if (permissionTemplateBuilder_ == null) {
- permissionTemplate_ = null;
- onChanged();
- } else {
- permissionTemplateBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionTemplate.Builder getPermissionTemplateBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getPermissionTemplateFieldBuilder().getBuilder();
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplateOrBuilder() {
- if (permissionTemplateBuilder_ != null) {
- return permissionTemplateBuilder_.getMessageOrBuilder();
- } else {
- return permissionTemplate_ == null ?
- org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance() : permissionTemplate_;
- }
- }
- /**
- * <code>optional .sonarqube.ws.permissions.PermissionTemplate permissionTemplate = 1;</code>
- */
- private com.google.protobuf.SingleFieldBuilder<
- org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder>
- getPermissionTemplateFieldBuilder() {
- if (permissionTemplateBuilder_ == null) {
- permissionTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilder<
- org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder>(
- getPermissionTemplate(),
- getParentForChildren(),
- isClean());
- permissionTemplate_ = null;
- }
- return permissionTemplateBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse)
- }
-
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsUpdatePermissionTemplateResponse)
- private static final org.sonarqube.ws.Permissions.WsUpdatePermissionTemplateResponse DEFAULT_INSTANCE;
- static {
- 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;
- }
-
- }
-
- public interface WsSearchTemplatesResponseOrBuilder extends
- // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchTemplatesResponse)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- java.util.List<org.sonarqube.ws.Permissions.PermissionTemplate>
- getPermissionTemplatesList();
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplates(int index);
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- int getPermissionTemplatesCount();
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- java.util.List<? extends org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder>
- getPermissionTemplatesOrBuilderList();
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplatesOrBuilder(
- int index);
-
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- java.util.List<org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier>
- getDefaultTemplatesList();
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultTemplates(int index);
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- int getDefaultTemplatesCount();
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- java.util.List<? extends org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder>
- getDefaultTemplatesOrBuilderList();
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder getDefaultTemplatesOrBuilder(
- int index);
-
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- java.util.List<org.sonarqube.ws.Permissions.Permission>
- getPermissionsList();
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- org.sonarqube.ws.Permissions.Permission getPermissions(int index);
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- int getPermissionsCount();
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsOrBuilderList();
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
- int index);
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsSearchTemplatesResponse}
- */
- public static final class WsSearchTemplatesResponse extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse)
- WsSearchTemplatesResponseOrBuilder {
- // Use WsSearchTemplatesResponse.newBuilder() to construct.
- private WsSearchTemplatesResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
- super(builder);
- }
- private WsSearchTemplatesResponse() {
- permissionTemplates_ = java.util.Collections.emptyList();
- defaultTemplates_ = java.util.Collections.emptyList();
- permissions_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private WsSearchTemplatesResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- permissionTemplates_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.PermissionTemplate>();
- mutable_bitField0_ |= 0x00000001;
- }
- permissionTemplates_.add(input.readMessage(org.sonarqube.ws.Permissions.PermissionTemplate.PARSER, extensionRegistry));
- break;
- }
- case 18: {
- if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- defaultTemplates_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier>();
- mutable_bitField0_ |= 0x00000002;
- }
- defaultTemplates_.add(input.readMessage(org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.PARSER, extensionRegistry));
- break;
- }
- case 26: {
- if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- permissions_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.Permission>();
- mutable_bitField0_ |= 0x00000004;
- }
- permissions_.add(input.readMessage(org.sonarqube.ws.Permissions.Permission.PARSER, extensionRegistry));
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- permissionTemplates_ = java.util.Collections.unmodifiableList(permissionTemplates_);
- }
- if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
- defaultTemplates_ = java.util.Collections.unmodifiableList(defaultTemplates_);
- }
- if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
- permissions_ = java.util.Collections.unmodifiableList(permissions_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.class, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.Builder.class);
- }
-
- public interface TemplateIdQualifierOrBuilder extends
- // @@protoc_insertion_point(interface_extends:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * <code>optional string templateId = 1;</code>
- */
- boolean hasTemplateId();
- /**
- * <code>optional string templateId = 1;</code>
- */
- java.lang.String getTemplateId();
- /**
- * <code>optional string templateId = 1;</code>
- */
- com.google.protobuf.ByteString
- getTemplateIdBytes();
-
- /**
- * <code>optional string qualifier = 2;</code>
- */
- boolean hasQualifier();
- /**
- * <code>optional string qualifier = 2;</code>
- */
- java.lang.String getQualifier();
- /**
- * <code>optional string qualifier = 2;</code>
- */
- com.google.protobuf.ByteString
- getQualifierBytes();
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier}
- */
- public static final class TemplateIdQualifier extends
- com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier)
- TemplateIdQualifierOrBuilder {
- // Use TemplateIdQualifier.newBuilder() to construct.
- private TemplateIdQualifier(com.google.protobuf.GeneratedMessage.Builder builder) {
- super(builder);
- }
- private TemplateIdQualifier() {
- templateId_ = "";
- qualifier_ = "";
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private TemplateIdQualifier(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) {
- this();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- templateId_ = bs;
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- qualifier_ = bs;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw new RuntimeException(e.setUnfinishedMessage(this));
- } catch (java.io.IOException e) {
- throw new RuntimeException(
- new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this));
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.class, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder.class);
- }
-
- private int bitField0_;
- public static final int TEMPLATEID_FIELD_NUMBER = 1;
- private volatile java.lang.Object templateId_;
- /**
- * <code>optional string templateId = 1;</code>
- */
- public boolean hasTemplateId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional string templateId = 1;</code>
- */
- public java.lang.String getTemplateId() {
- java.lang.Object ref = templateId_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- templateId_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string templateId = 1;</code>
- */
- public com.google.protobuf.ByteString
- getTemplateIdBytes() {
- java.lang.Object ref = templateId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- templateId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int QUALIFIER_FIELD_NUMBER = 2;
- private volatile java.lang.Object qualifier_;
- /**
- * <code>optional string qualifier = 2;</code>
- */
- public boolean hasQualifier() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string qualifier = 2;</code>
- */
- public java.lang.String getQualifier() {
- java.lang.Object ref = qualifier_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- qualifier_ = s;
- }
- return s;
- }
- }
- /**
- * <code>optional string qualifier = 2;</code>
- */
- public com.google.protobuf.ByteString
- getQualifierBytes() {
- java.lang.Object ref = qualifier_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- qualifier_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getTemplateIdBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getQualifierBytes());
- }
- unknownFields.writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getTemplateIdBytes());
- }
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getQualifierBytes());
- }
- size += unknownFields.getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier)
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.class, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder.class);
- }
-
- // Construct using org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- public Builder clear() {
- super.clear();
- templateId_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- qualifier_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor;
- }
-
- public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultInstanceForType() {
- return org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.getDefaultInstance();
- }
-
- public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier build() {
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier buildPartial() {
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier result = new org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
- to_bitField0_ |= 0x00000001;
- }
- result.templateId_ = templateId_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
- to_bitField0_ |= 0x00000002;
- }
- result.qualifier_ = qualifier_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier) {
- return mergeFrom((org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier other) {
- if (other == org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.getDefaultInstance()) return this;
- if (other.hasTemplateId()) {
- bitField0_ |= 0x00000001;
- templateId_ = other.templateId_;
- onChanged();
- }
- if (other.hasQualifier()) {
- bitField0_ |= 0x00000002;
- qualifier_ = other.qualifier_;
- onChanged();
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private java.lang.Object templateId_ = "";
- /**
- * <code>optional string templateId = 1;</code>
- */
- public boolean hasTemplateId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
- }
- /**
- * <code>optional string templateId = 1;</code>
- */
- public java.lang.String getTemplateId() {
- java.lang.Object ref = templateId_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- templateId_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string templateId = 1;</code>
- */
- public com.google.protobuf.ByteString
- getTemplateIdBytes() {
- java.lang.Object ref = templateId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- templateId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string templateId = 1;</code>
- */
- public Builder setTemplateId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- templateId_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string templateId = 1;</code>
- */
- public Builder clearTemplateId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- templateId_ = getDefaultInstance().getTemplateId();
- onChanged();
- return this;
- }
- /**
- * <code>optional string templateId = 1;</code>
- */
- public Builder setTemplateIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- templateId_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object qualifier_ = "";
- /**
- * <code>optional string qualifier = 2;</code>
- */
- public boolean hasQualifier() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
- }
- /**
- * <code>optional string qualifier = 2;</code>
- */
- public java.lang.String getQualifier() {
- java.lang.Object ref = qualifier_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- qualifier_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * <code>optional string qualifier = 2;</code>
- */
- public com.google.protobuf.ByteString
- getQualifierBytes() {
- java.lang.Object ref = qualifier_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- qualifier_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * <code>optional string qualifier = 2;</code>
- */
- public Builder setQualifier(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- qualifier_ = value;
- onChanged();
- return this;
- }
- /**
- * <code>optional string qualifier = 2;</code>
- */
- public Builder clearQualifier() {
- bitField0_ = (bitField0_ & ~0x00000002);
- qualifier_ = getDefaultInstance().getQualifier();
- onChanged();
- return this;
- }
- /**
- * <code>optional string qualifier = 2;</code>
- */
- public Builder setQualifierBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- qualifier_ = value;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier)
- }
-
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier)
- private static final org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier DEFAULT_INSTANCE;
- static {
- 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;
- }
-
- }
-
- public static final int PERMISSIONTEMPLATES_FIELD_NUMBER = 1;
- private java.util.List<org.sonarqube.ws.Permissions.PermissionTemplate> permissionTemplates_;
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.PermissionTemplate> getPermissionTemplatesList() {
- return permissionTemplates_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder>
- getPermissionTemplatesOrBuilderList() {
- return permissionTemplates_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public int getPermissionTemplatesCount() {
- return permissionTemplates_.size();
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplates(int index) {
- return permissionTemplates_.get(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplatesOrBuilder(
- int index) {
- return permissionTemplates_.get(index);
- }
-
- public static final int DEFAULTTEMPLATES_FIELD_NUMBER = 2;
- private java.util.List<org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier> defaultTemplates_;
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier> getDefaultTemplatesList() {
- return defaultTemplates_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder>
- getDefaultTemplatesOrBuilderList() {
- return defaultTemplates_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public int getDefaultTemplatesCount() {
- return defaultTemplates_.size();
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultTemplates(int index) {
- return defaultTemplates_.get(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder getDefaultTemplatesOrBuilder(
- int index) {
- return defaultTemplates_.get(index);
- }
-
- public static final int PERMISSIONS_FIELD_NUMBER = 3;
- private java.util.List<org.sonarqube.ws.Permissions.Permission> permissions_;
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.Permission> getPermissionsList() {
- return permissions_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsOrBuilderList() {
- return permissions_;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public int getPermissionsCount() {
- return permissions_.size();
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public org.sonarqube.ws.Permissions.Permission getPermissions(int index) {
- return permissions_.get(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
- int index) {
- return permissions_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- for (int i = 0; i < permissionTemplates_.size(); i++) {
- output.writeMessage(1, permissionTemplates_.get(i));
- }
- for (int i = 0; i < defaultTemplates_.size(); i++) {
- output.writeMessage(2, defaultTemplates_.get(i));
- }
- for (int i = 0; i < permissions_.size(); i++) {
- output.writeMessage(3, permissions_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public int getSerializedSize() {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- for (int i = 0; i < permissionTemplates_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, permissionTemplates_.get(i));
- }
- for (int i = 0; i < defaultTemplates_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, defaultTemplates_.get(i));
- }
- for (int i = 0; i < permissions_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, permissions_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSerializedSize = size;
- return size;
- }
-
- private static final long serialVersionUID = 0L;
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return PARSER.parseFrom(input);
- }
- public static org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(org.sonarqube.ws.Permissions.WsSearchTemplatesResponse prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * Protobuf type {@code sonarqube.ws.permissions.WsSearchTemplatesResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessage.Builder<Builder> implements
- // @@protoc_insertion_point(builder_implements:sonarqube.ws.permissions.WsSearchTemplatesResponse)
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponseOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor;
- }
-
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.class, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.Builder.class);
- }
-
- // Construct using org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessage.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getPermissionTemplatesFieldBuilder();
- getDefaultTemplatesFieldBuilder();
- getPermissionsFieldBuilder();
- }
- }
- public Builder clear() {
- super.clear();
- if (permissionTemplatesBuilder_ == null) {
- permissionTemplates_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- permissionTemplatesBuilder_.clear();
- }
- if (defaultTemplatesBuilder_ == null) {
- defaultTemplates_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- defaultTemplatesBuilder_.clear();
- }
- if (permissionsBuilder_ == null) {
- permissions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- permissionsBuilder_.clear();
- }
- return this;
- }
-
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return org.sonarqube.ws.Permissions.internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor;
- }
-
- public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse getDefaultInstanceForType() {
- return org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.getDefaultInstance();
- }
-
- public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse build() {
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse buildPartial() {
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse result = new org.sonarqube.ws.Permissions.WsSearchTemplatesResponse(this);
- int from_bitField0_ = bitField0_;
- if (permissionTemplatesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- permissionTemplates_ = java.util.Collections.unmodifiableList(permissionTemplates_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.permissionTemplates_ = permissionTemplates_;
- } else {
- result.permissionTemplates_ = permissionTemplatesBuilder_.build();
- }
- if (defaultTemplatesBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- defaultTemplates_ = java.util.Collections.unmodifiableList(defaultTemplates_);
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.defaultTemplates_ = defaultTemplates_;
- } else {
- result.defaultTemplates_ = defaultTemplatesBuilder_.build();
- }
- if (permissionsBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- permissions_ = java.util.Collections.unmodifiableList(permissions_);
- bitField0_ = (bitField0_ & ~0x00000004);
- }
- result.permissions_ = permissions_;
- } else {
- result.permissions_ = permissionsBuilder_.build();
- }
- onBuilt();
- return result;
- }
-
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof org.sonarqube.ws.Permissions.WsSearchTemplatesResponse) {
- return mergeFrom((org.sonarqube.ws.Permissions.WsSearchTemplatesResponse)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(org.sonarqube.ws.Permissions.WsSearchTemplatesResponse other) {
- if (other == org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.getDefaultInstance()) return this;
- if (permissionTemplatesBuilder_ == null) {
- if (!other.permissionTemplates_.isEmpty()) {
- if (permissionTemplates_.isEmpty()) {
- permissionTemplates_ = other.permissionTemplates_;
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- ensurePermissionTemplatesIsMutable();
- permissionTemplates_.addAll(other.permissionTemplates_);
- }
- onChanged();
- }
- } else {
- if (!other.permissionTemplates_.isEmpty()) {
- if (permissionTemplatesBuilder_.isEmpty()) {
- permissionTemplatesBuilder_.dispose();
- permissionTemplatesBuilder_ = null;
- permissionTemplates_ = other.permissionTemplates_;
- bitField0_ = (bitField0_ & ~0x00000001);
- permissionTemplatesBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getPermissionTemplatesFieldBuilder() : null;
- } else {
- permissionTemplatesBuilder_.addAllMessages(other.permissionTemplates_);
- }
- }
- }
- if (defaultTemplatesBuilder_ == null) {
- if (!other.defaultTemplates_.isEmpty()) {
- if (defaultTemplates_.isEmpty()) {
- defaultTemplates_ = other.defaultTemplates_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureDefaultTemplatesIsMutable();
- defaultTemplates_.addAll(other.defaultTemplates_);
- }
- onChanged();
- }
- } else {
- if (!other.defaultTemplates_.isEmpty()) {
- if (defaultTemplatesBuilder_.isEmpty()) {
- defaultTemplatesBuilder_.dispose();
- defaultTemplatesBuilder_ = null;
- defaultTemplates_ = other.defaultTemplates_;
- bitField0_ = (bitField0_ & ~0x00000002);
- defaultTemplatesBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getDefaultTemplatesFieldBuilder() : null;
- } else {
- defaultTemplatesBuilder_.addAllMessages(other.defaultTemplates_);
- }
- }
- }
- if (permissionsBuilder_ == null) {
- if (!other.permissions_.isEmpty()) {
- if (permissions_.isEmpty()) {
- permissions_ = other.permissions_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensurePermissionsIsMutable();
- permissions_.addAll(other.permissions_);
- }
- onChanged();
- }
- } else {
- if (!other.permissions_.isEmpty()) {
- if (permissionsBuilder_.isEmpty()) {
- permissionsBuilder_.dispose();
- permissionsBuilder_ = null;
- permissions_ = other.permissions_;
- bitField0_ = (bitField0_ & ~0x00000004);
- permissionsBuilder_ =
- com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
- getPermissionsFieldBuilder() : null;
- } else {
- permissionsBuilder_.addAllMessages(other.permissions_);
- }
- }
- }
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- public final boolean isInitialized() {
- return true;
- }
-
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (org.sonarqube.ws.Permissions.WsSearchTemplatesResponse) e.getUnfinishedMessage();
- throw e;
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private java.util.List<org.sonarqube.ws.Permissions.PermissionTemplate> permissionTemplates_ =
- java.util.Collections.emptyList();
- private void ensurePermissionTemplatesIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
- permissionTemplates_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.PermissionTemplate>(permissionTemplates_);
- bitField0_ |= 0x00000001;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder> permissionTemplatesBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.PermissionTemplate> getPermissionTemplatesList() {
- if (permissionTemplatesBuilder_ == null) {
- return java.util.Collections.unmodifiableList(permissionTemplates_);
- } else {
- return permissionTemplatesBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public int getPermissionTemplatesCount() {
- if (permissionTemplatesBuilder_ == null) {
- return permissionTemplates_.size();
- } else {
- return permissionTemplatesBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionTemplate getPermissionTemplates(int index) {
- if (permissionTemplatesBuilder_ == null) {
- return permissionTemplates_.get(index);
- } else {
- return permissionTemplatesBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public Builder setPermissionTemplates(
- int index, org.sonarqube.ws.Permissions.PermissionTemplate value) {
- if (permissionTemplatesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionTemplatesIsMutable();
- permissionTemplates_.set(index, value);
- onChanged();
- } else {
- permissionTemplatesBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public Builder setPermissionTemplates(
- int index, org.sonarqube.ws.Permissions.PermissionTemplate.Builder builderForValue) {
- if (permissionTemplatesBuilder_ == null) {
- ensurePermissionTemplatesIsMutable();
- permissionTemplates_.set(index, builderForValue.build());
- onChanged();
- } else {
- permissionTemplatesBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public Builder addPermissionTemplates(org.sonarqube.ws.Permissions.PermissionTemplate value) {
- if (permissionTemplatesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionTemplatesIsMutable();
- permissionTemplates_.add(value);
- onChanged();
- } else {
- permissionTemplatesBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public Builder addPermissionTemplates(
- int index, org.sonarqube.ws.Permissions.PermissionTemplate value) {
- if (permissionTemplatesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionTemplatesIsMutable();
- permissionTemplates_.add(index, value);
- onChanged();
- } else {
- permissionTemplatesBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public Builder addPermissionTemplates(
- org.sonarqube.ws.Permissions.PermissionTemplate.Builder builderForValue) {
- if (permissionTemplatesBuilder_ == null) {
- ensurePermissionTemplatesIsMutable();
- permissionTemplates_.add(builderForValue.build());
- onChanged();
- } else {
- permissionTemplatesBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public Builder addPermissionTemplates(
- int index, org.sonarqube.ws.Permissions.PermissionTemplate.Builder builderForValue) {
- if (permissionTemplatesBuilder_ == null) {
- ensurePermissionTemplatesIsMutable();
- permissionTemplates_.add(index, builderForValue.build());
- onChanged();
- } else {
- permissionTemplatesBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public Builder addAllPermissionTemplates(
- java.lang.Iterable<? extends org.sonarqube.ws.Permissions.PermissionTemplate> values) {
- if (permissionTemplatesBuilder_ == null) {
- ensurePermissionTemplatesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, permissionTemplates_);
- onChanged();
- } else {
- permissionTemplatesBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public Builder clearPermissionTemplates() {
- if (permissionTemplatesBuilder_ == null) {
- permissionTemplates_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- permissionTemplatesBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public Builder removePermissionTemplates(int index) {
- if (permissionTemplatesBuilder_ == null) {
- ensurePermissionTemplatesIsMutable();
- permissionTemplates_.remove(index);
- onChanged();
- } else {
- permissionTemplatesBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionTemplate.Builder getPermissionTemplatesBuilder(
- int index) {
- return getPermissionTemplatesFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder getPermissionTemplatesOrBuilder(
- int index) {
- if (permissionTemplatesBuilder_ == null) {
- return permissionTemplates_.get(index); } else {
- return permissionTemplatesBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder>
- getPermissionTemplatesOrBuilderList() {
- if (permissionTemplatesBuilder_ != null) {
- return permissionTemplatesBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(permissionTemplates_);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionTemplate.Builder addPermissionTemplatesBuilder() {
- return getPermissionTemplatesFieldBuilder().addBuilder(
- org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionTemplate.Builder addPermissionTemplatesBuilder(
- int index) {
- return getPermissionTemplatesFieldBuilder().addBuilder(
- index, org.sonarqube.ws.Permissions.PermissionTemplate.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.PermissionTemplate permissionTemplates = 1;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.PermissionTemplate.Builder>
- getPermissionTemplatesBuilderList() {
- return getPermissionTemplatesFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder>
- getPermissionTemplatesFieldBuilder() {
- if (permissionTemplatesBuilder_ == null) {
- permissionTemplatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.PermissionTemplate, org.sonarqube.ws.Permissions.PermissionTemplate.Builder, org.sonarqube.ws.Permissions.PermissionTemplateOrBuilder>(
- permissionTemplates_,
- ((bitField0_ & 0x00000001) == 0x00000001),
- getParentForChildren(),
- isClean());
- permissionTemplates_ = null;
- }
- return permissionTemplatesBuilder_;
- }
-
- private java.util.List<org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier> defaultTemplates_ =
- java.util.Collections.emptyList();
- private void ensureDefaultTemplatesIsMutable() {
- if (!((bitField0_ & 0x00000002) == 0x00000002)) {
- defaultTemplates_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier>(defaultTemplates_);
- bitField0_ |= 0x00000002;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder> defaultTemplatesBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier> getDefaultTemplatesList() {
- if (defaultTemplatesBuilder_ == null) {
- return java.util.Collections.unmodifiableList(defaultTemplates_);
- } else {
- return defaultTemplatesBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public int getDefaultTemplatesCount() {
- if (defaultTemplatesBuilder_ == null) {
- return defaultTemplates_.size();
- } else {
- return defaultTemplatesBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier getDefaultTemplates(int index) {
- if (defaultTemplatesBuilder_ == null) {
- return defaultTemplates_.get(index);
- } else {
- return defaultTemplatesBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public Builder setDefaultTemplates(
- int index, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier value) {
- if (defaultTemplatesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDefaultTemplatesIsMutable();
- defaultTemplates_.set(index, value);
- onChanged();
- } else {
- defaultTemplatesBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public Builder setDefaultTemplates(
- int index, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder builderForValue) {
- if (defaultTemplatesBuilder_ == null) {
- ensureDefaultTemplatesIsMutable();
- defaultTemplates_.set(index, builderForValue.build());
- onChanged();
- } else {
- defaultTemplatesBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public Builder addDefaultTemplates(org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier value) {
- if (defaultTemplatesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDefaultTemplatesIsMutable();
- defaultTemplates_.add(value);
- onChanged();
- } else {
- defaultTemplatesBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public Builder addDefaultTemplates(
- int index, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier value) {
- if (defaultTemplatesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDefaultTemplatesIsMutable();
- defaultTemplates_.add(index, value);
- onChanged();
- } else {
- defaultTemplatesBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public Builder addDefaultTemplates(
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder builderForValue) {
- if (defaultTemplatesBuilder_ == null) {
- ensureDefaultTemplatesIsMutable();
- defaultTemplates_.add(builderForValue.build());
- onChanged();
- } else {
- defaultTemplatesBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public Builder addDefaultTemplates(
- int index, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder builderForValue) {
- if (defaultTemplatesBuilder_ == null) {
- ensureDefaultTemplatesIsMutable();
- defaultTemplates_.add(index, builderForValue.build());
- onChanged();
- } else {
- defaultTemplatesBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public Builder addAllDefaultTemplates(
- java.lang.Iterable<? extends org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier> values) {
- if (defaultTemplatesBuilder_ == null) {
- ensureDefaultTemplatesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, defaultTemplates_);
- onChanged();
- } else {
- defaultTemplatesBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public Builder clearDefaultTemplates() {
- if (defaultTemplatesBuilder_ == null) {
- defaultTemplates_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- } else {
- defaultTemplatesBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public Builder removeDefaultTemplates(int index) {
- if (defaultTemplatesBuilder_ == null) {
- ensureDefaultTemplatesIsMutable();
- defaultTemplates_.remove(index);
- onChanged();
- } else {
- defaultTemplatesBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder getDefaultTemplatesBuilder(
- int index) {
- return getDefaultTemplatesFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder getDefaultTemplatesOrBuilder(
- int index) {
- if (defaultTemplatesBuilder_ == null) {
- return defaultTemplates_.get(index); } else {
- return defaultTemplatesBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder>
- getDefaultTemplatesOrBuilderList() {
- if (defaultTemplatesBuilder_ != null) {
- return defaultTemplatesBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(defaultTemplates_);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder addDefaultTemplatesBuilder() {
- return getDefaultTemplatesFieldBuilder().addBuilder(
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder addDefaultTemplatesBuilder(
- int index) {
- return getDefaultTemplatesFieldBuilder().addBuilder(
- index, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.WsSearchTemplatesResponse.TemplateIdQualifier defaultTemplates = 2;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder>
- getDefaultTemplatesBuilderList() {
- return getDefaultTemplatesFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder>
- getDefaultTemplatesFieldBuilder() {
- if (defaultTemplatesBuilder_ == null) {
- defaultTemplatesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifier.Builder, org.sonarqube.ws.Permissions.WsSearchTemplatesResponse.TemplateIdQualifierOrBuilder>(
- defaultTemplates_,
- ((bitField0_ & 0x00000002) == 0x00000002),
- getParentForChildren(),
- isClean());
- defaultTemplates_ = null;
- }
- return defaultTemplatesBuilder_;
- }
-
- private java.util.List<org.sonarqube.ws.Permissions.Permission> permissions_ =
- java.util.Collections.emptyList();
- private void ensurePermissionsIsMutable() {
- if (!((bitField0_ & 0x00000004) == 0x00000004)) {
- permissions_ = new java.util.ArrayList<org.sonarqube.ws.Permissions.Permission>(permissions_);
- bitField0_ |= 0x00000004;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder> permissionsBuilder_;
-
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.Permission> getPermissionsList() {
- if (permissionsBuilder_ == null) {
- return java.util.Collections.unmodifiableList(permissions_);
- } else {
- return permissionsBuilder_.getMessageList();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public int getPermissionsCount() {
- if (permissionsBuilder_ == null) {
- return permissions_.size();
- } else {
- return permissionsBuilder_.getCount();
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public org.sonarqube.ws.Permissions.Permission getPermissions(int index) {
- if (permissionsBuilder_ == null) {
- return permissions_.get(index);
- } else {
- return permissionsBuilder_.getMessage(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder setPermissions(
- int index, org.sonarqube.ws.Permissions.Permission value) {
- if (permissionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionsIsMutable();
- permissions_.set(index, value);
- onChanged();
- } else {
- permissionsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder setPermissions(
- int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.set(index, builderForValue.build());
- onChanged();
- } else {
- permissionsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder addPermissions(org.sonarqube.ws.Permissions.Permission value) {
- if (permissionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionsIsMutable();
- permissions_.add(value);
- onChanged();
- } else {
- permissionsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder addPermissions(
- int index, org.sonarqube.ws.Permissions.Permission value) {
- if (permissionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePermissionsIsMutable();
- permissions_.add(index, value);
- onChanged();
- } else {
- permissionsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder addPermissions(
- org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.add(builderForValue.build());
- onChanged();
- } else {
- permissionsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder addPermissions(
- int index, org.sonarqube.ws.Permissions.Permission.Builder builderForValue) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.add(index, builderForValue.build());
- onChanged();
- } else {
- permissionsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder addAllPermissions(
- java.lang.Iterable<? extends org.sonarqube.ws.Permissions.Permission> values) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, permissions_);
- onChanged();
- } else {
- permissionsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder clearPermissions() {
- if (permissionsBuilder_ == null) {
- permissions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- } else {
- permissionsBuilder_.clear();
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public Builder removePermissions(int index) {
- if (permissionsBuilder_ == null) {
- ensurePermissionsIsMutable();
- permissions_.remove(index);
- onChanged();
- } else {
- permissionsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public org.sonarqube.ws.Permissions.Permission.Builder getPermissionsBuilder(
- int index) {
- return getPermissionsFieldBuilder().getBuilder(index);
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public org.sonarqube.ws.Permissions.PermissionOrBuilder getPermissionsOrBuilder(
- int index) {
- if (permissionsBuilder_ == null) {
- return permissions_.get(index); } else {
- return permissionsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public java.util.List<? extends org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsOrBuilderList() {
- if (permissionsBuilder_ != null) {
- return permissionsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(permissions_);
- }
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder() {
- return getPermissionsFieldBuilder().addBuilder(
- org.sonarqube.ws.Permissions.Permission.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public org.sonarqube.ws.Permissions.Permission.Builder addPermissionsBuilder(
- int index) {
- return getPermissionsFieldBuilder().addBuilder(
- index, org.sonarqube.ws.Permissions.Permission.getDefaultInstance());
- }
- /**
- * <code>repeated .sonarqube.ws.permissions.Permission permissions = 3;</code>
- */
- public java.util.List<org.sonarqube.ws.Permissions.Permission.Builder>
- getPermissionsBuilderList() {
- return getPermissionsFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder>
- getPermissionsFieldBuilder() {
- if (permissionsBuilder_ == null) {
- permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
- org.sonarqube.ws.Permissions.Permission, org.sonarqube.ws.Permissions.Permission.Builder, org.sonarqube.ws.Permissions.PermissionOrBuilder>(
- permissions_,
- ((bitField0_ & 0x00000004) == 0x00000004),
- getParentForChildren(),
- isClean());
- permissions_ = null;
- }
- return permissionsBuilder_;
- }
-
- // @@protoc_insertion_point(builder_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse)
- }
-
- // @@protoc_insertion_point(class_scope:sonarqube.ws.permissions.WsSearchTemplatesResponse)
- private static final org.sonarqube.ws.Permissions.WsSearchTemplatesResponse DEFAULT_INSTANCE;
- static {
- 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;
- }
-
- }
-
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_sonarqube_ws_permissions_WsUsersResponse_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_sonarqube_ws_permissions_WsUsersResponse_User_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_sonarqube_ws_permissions_Permission_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_fieldAccessorTable;
- private static com.google.protobuf.Descriptors.Descriptor
- internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor;
- private static
- com.google.protobuf.GeneratedMessage.FieldAccessorTable
- internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_fieldAccessorTable;
-
- public static com.google.protobuf.Descriptors.FileDescriptor
- getDescriptor() {
- return descriptor;
- }
- private static com.google.protobuf.Descriptors.FileDescriptor
- descriptor;
- static {
- java.lang.String[] descriptorData = {
- "\n\024ws-permissions.proto\022\030sonarqube.ws.per" +
- "missions\032\020ws-commons.proto\"\304\001\n\017WsUsersRe" +
- "sponse\022,\n\006paging\030\001 \001(\0132\034.sonarqube.ws.co" +
- "mmons.Paging\022=\n\005users\030\002 \003(\0132..sonarqube." +
- "ws.permissions.WsUsersResponse.User\032D\n\004U" +
- "ser\022\r\n\005login\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\r\n\005emai" +
- "l\030\003 \001(\t\022\020\n\010selected\030\004 \001(\010\"\314\001\n\020WsGroupsRe" +
- "sponse\022,\n\006paging\030\001 \001(\0132\034.sonarqube.ws.co" +
- "mmons.Paging\022@\n\006groups\030\002 \003(\01320.sonarqube" +
- ".ws.permissions.WsGroupsResponse.Group\032H",
- "\n\005Group\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\023\n\013des" +
- "cription\030\003 \001(\t\022\020\n\010selected\030\004 \001(\010\"e\n\nPerm" +
- "ission\022\013\n\003key\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\023\n\013des" +
- "cription\030\003 \001(\t\022\022\n\nusersCount\030\004 \001(\005\022\023\n\013gr" +
- "oupsCount\030\005 \001(\005\"^\n!WsSearchGlobalPermiss" +
- "ionsResponse\0229\n\013permissions\030\001 \003(\0132$.sona" +
- "rqube.ws.permissions.Permission\"\345\002\n\"WsSe" +
- "archProjectPermissionsResponse\022,\n\006paging" +
- "\030\001 \001(\0132\034.sonarqube.ws.commons.Paging\022V\n\010" +
- "projects\030\002 \003(\0132D.sonarqube.ws.permission",
- "s.WsSearchProjectPermissionsResponse.Pro" +
- "ject\0229\n\013permissions\030\003 \003(\0132$.sonarqube.ws" +
- ".permissions.Permission\032~\n\007Project\022\n\n\002id" +
- "\030\001 \001(\t\022\013\n\003key\030\002 \001(\t\022\021\n\tqualifier\030\003 \001(\t\022\014" +
- "\n\004name\030\004 \001(\t\0229\n\013permissions\030\005 \003(\0132$.sona" +
- "rqube.ws.permissions.Permission\"\342\001\n\022Perm" +
- "issionTemplate\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t" +
- "\022\023\n\013description\030\003 \001(\t\022\031\n\021projectKeyPatte" +
- "rn\030\004 \001(\t\022\021\n\tcreatedAt\030\005 \001(\t\022\021\n\tupdatedAt" +
- "\030\006 \001(\t\022!\n\031permissionsPresentIfEmpty\030\007 \001(",
- "\010\0229\n\013permissions\030\010 \003(\0132$.sonarqube.ws.pe" +
- "rmissions.Permission\"n\n\"WsCreatePermissi" +
- "onTemplateResponse\022H\n\022permissionTemplate" +
- "\030\001 \001(\0132,.sonarqube.ws.permissions.Permis" +
- "sionTemplate\"n\n\"WsUpdatePermissionTempla" +
- "teResponse\022H\n\022permissionTemplate\030\001 \001(\0132," +
- ".sonarqube.ws.permissions.PermissionTemp" +
- "late\"\302\002\n\031WsSearchTemplatesResponse\022I\n\023pe" +
- "rmissionTemplates\030\001 \003(\0132,.sonarqube.ws.p" +
- "ermissions.PermissionTemplate\022a\n\020default",
- "Templates\030\002 \003(\0132G.sonarqube.ws.permissio" +
- "ns.WsSearchTemplatesResponse.TemplateIdQ" +
- "ualifier\0229\n\013permissions\030\003 \003(\0132$.sonarqub" +
- "e.ws.permissions.Permission\032<\n\023TemplateI" +
- "dQualifier\022\022\n\ntemplateId\030\001 \001(\t\022\021\n\tqualif" +
- "ier\030\002 \001(\tB!\n\020org.sonarqube.wsB\013Permissio" +
- "nsH\001"
- };
- com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
- new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
- public com.google.protobuf.ExtensionRegistry assignDescriptors(
- com.google.protobuf.Descriptors.FileDescriptor root) {
- descriptor = root;
- return null;
- }
- };
- com.google.protobuf.Descriptors.FileDescriptor
- .internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[] {
- org.sonarqube.ws.Common.getDescriptor(),
- }, assigner);
- internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor =
- getDescriptor().getMessageTypes().get(0);
- internal_static_sonarqube_ws_permissions_WsUsersResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor,
- new java.lang.String[] { "Paging", "Users", });
- internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor =
- internal_static_sonarqube_ws_permissions_WsUsersResponse_descriptor.getNestedTypes().get(0);
- internal_static_sonarqube_ws_permissions_WsUsersResponse_User_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_sonarqube_ws_permissions_WsUsersResponse_User_descriptor,
- new java.lang.String[] { "Login", "Name", "Email", "Selected", });
- internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor =
- getDescriptor().getMessageTypes().get(1);
- internal_static_sonarqube_ws_permissions_WsGroupsResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor,
- new java.lang.String[] { "Paging", "Groups", });
- internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor =
- internal_static_sonarqube_ws_permissions_WsGroupsResponse_descriptor.getNestedTypes().get(0);
- internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_sonarqube_ws_permissions_WsGroupsResponse_Group_descriptor,
- new java.lang.String[] { "Id", "Name", "Description", "Selected", });
- internal_static_sonarqube_ws_permissions_Permission_descriptor =
- getDescriptor().getMessageTypes().get(2);
- internal_static_sonarqube_ws_permissions_Permission_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_sonarqube_ws_permissions_Permission_descriptor,
- new java.lang.String[] { "Key", "Name", "Description", "UsersCount", "GroupsCount", });
- internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor =
- getDescriptor().getMessageTypes().get(3);
- internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_sonarqube_ws_permissions_WsSearchGlobalPermissionsResponse_descriptor,
- new java.lang.String[] { "Permissions", });
- internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor =
- getDescriptor().getMessageTypes().get(4);
- internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor,
- new java.lang.String[] { "Paging", "Projects", "Permissions", });
- internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor =
- internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_descriptor.getNestedTypes().get(0);
- internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_sonarqube_ws_permissions_WsSearchProjectPermissionsResponse_Project_descriptor,
- new java.lang.String[] { "Id", "Key", "Qualifier", "Name", "Permissions", });
- internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor =
- getDescriptor().getMessageTypes().get(5);
- internal_static_sonarqube_ws_permissions_PermissionTemplate_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_sonarqube_ws_permissions_PermissionTemplate_descriptor,
- new java.lang.String[] { "Id", "Name", "Description", "ProjectKeyPattern", "CreatedAt", "UpdatedAt", "PermissionsPresentIfEmpty", "Permissions", });
- internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor =
- getDescriptor().getMessageTypes().get(6);
- internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_sonarqube_ws_permissions_WsCreatePermissionTemplateResponse_descriptor,
- new java.lang.String[] { "PermissionTemplate", });
- internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor =
- getDescriptor().getMessageTypes().get(7);
- internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_sonarqube_ws_permissions_WsUpdatePermissionTemplateResponse_descriptor,
- new java.lang.String[] { "PermissionTemplate", });
- internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor =
- getDescriptor().getMessageTypes().get(8);
- internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor,
- new java.lang.String[] { "PermissionTemplates", "DefaultTemplates", "Permissions", });
- internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor =
- internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_descriptor.getNestedTypes().get(0);
- internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_fieldAccessorTable = new
- com.google.protobuf.GeneratedMessage.FieldAccessorTable(
- internal_static_sonarqube_ws_permissions_WsSearchTemplatesResponse_TemplateIdQualifier_descriptor,
- new java.lang.String[] { "TemplateId", "Qualifier", });
- org.sonarqube.ws.Common.getDescriptor();
- }
-
- // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/sonar-ws/src/main/protobuf/ws-commons.proto b/sonar-ws/src/main/protobuf/ws-commons.proto
index 78a2705d3ff..58b57986c78 100644
--- a/sonar-ws/src/main/protobuf/ws-commons.proto
+++ b/sonar-ws/src/main/protobuf/ws-commons.proto
@@ -36,6 +36,10 @@ message Facet {
repeated FacetValue values = 2;
}
+message Facets {
+ repeated Facet facets = 1;
+}
+
message FacetValue {
optional string val = 1;
optional int64 count = 2;
@@ -57,6 +61,10 @@ message Rule {
optional string langName = 5;
}
+message Rules {
+ repeated Rule rules = 1;
+}
+
enum RuleStatus {
BETA = 0;
DEPRECATED = 1;
@@ -71,6 +79,10 @@ message User {
optional bool active = 4;
}
+message Users {
+ repeated User users = 1;
+}
+
// Lines start at 1 and line offsets start at 0
message TextRange {
// Start line. Should never be absent
diff --git a/sonar-ws/src/main/protobuf/ws-issues.proto b/sonar-ws/src/main/protobuf/ws-issues.proto
index c2a6a3d1267..96315eef2c1 100644
--- a/sonar-ws/src/main/protobuf/ws-issues.proto
+++ b/sonar-ws/src/main/protobuf/ws-issues.proto
@@ -38,16 +38,11 @@ message Search {
repeated Issue issues = 6;
repeated Component components = 7;
- optional bool rulesPresentIfEmpty = 8;
- repeated sonarqube.ws.commons.Rule rules = 9;
- optional bool usersPresentIfEmpty = 10;
- repeated sonarqube.ws.commons.User users = 11;
- optional bool actionPlansPresentIfEmpty = 12;
- repeated ActionPlan actionPlans = 13;
- optional bool languagesPresentIfEmpty = 14;
- repeated Language languages = 15;
- optional bool facetsPresentIfEmpty = 16;
- repeated sonarqube.ws.commons.Facet facets = 17;
+ optional sonarqube.ws.commons.Rules rules = 8;
+ optional sonarqube.ws.commons.Users users = 9;
+ optional ActionPlans actionPlans = 10;
+ optional Languages languages = 11;
+ optional sonarqube.ws.commons.Facets facets = 12;
}
// Response of most of POST/issues/{operation}, for instance assign, add_comment and set_severity
@@ -82,23 +77,27 @@ message Issue {
optional string author = 17;
optional string actionPlan = 18;
- optional bool tagsPresentIfEmpty = 19;
- repeated string tags = 20;
+ repeated string tags = 19;
// the transitions allowed for the requesting user.
- optional bool transitionsPresentIfEmpty = 21;
- repeated string transitions = 22;
+ optional Transitions transitions = 20;
// the actions allowed for the requesting user.
- optional bool actionsPresentIfEmpty = 23;
- repeated string actions = 24;
-
- optional bool commentsPresentIfEmpty = 25;
- repeated Comment comments = 26;
- optional string creationDate = 27;
- optional string updateDate = 28;
- optional string fUpdateAge = 29;
- optional string closeDate = 30;
+ optional Actions actions = 21;
+
+ optional Comments comments = 22;
+ optional string creationDate = 23;
+ optional string updateDate = 24;
+ optional string fUpdateAge = 25;
+ optional string closeDate = 26;
+}
+
+message Transitions {
+ repeated string transitions = 1;
+}
+
+message Actions {
+ repeated string actions = 1;
}
message Flow {
@@ -126,6 +125,10 @@ message Comment {
optional string createdAt = 8;
}
+message Comments {
+ repeated Comment comments = 1;
+}
+
message ActionPlan {
optional string key = 1;
optional string name = 2;
@@ -137,11 +140,19 @@ message ActionPlan {
optional string project = 5;
}
+message ActionPlans {
+ repeated ActionPlan actionPlans = 1;
+}
+
message Language {
optional string key = 1;
optional string name = 2;
}
+message Languages {
+ repeated Language languages = 1;
+}
+
message Component {
optional int64 id = 1;
optional string key = 2;
diff --git a/sonar-ws/src/main/protobuf/ws-permissions.proto b/sonar-ws/src/main/protobuf/ws-permissions.proto
index 86b87c314f0..11c0114af4f 100644
--- a/sonar-ws/src/main/protobuf/ws-permissions.proto
+++ b/sonar-ws/src/main/protobuf/ws-permissions.proto
@@ -24,7 +24,7 @@ import "ws-commons.proto";
option java_package = "org.sonarqube.ws";
-option java_outer_classname = "Permissions";
+option java_outer_classname = "WsPermissions";
option optimize_for = SPEED;
@@ -91,8 +91,7 @@ message PermissionTemplate {
optional string createdAt = 5;
// ex: 2015-08-25T16:18:48+0200
optional string updatedAt = 6;
- optional bool permissionsPresentIfEmpty = 7;
- repeated Permission permissions = 8;
+ repeated Permission permissions = 7;
}
message WsCreatePermissionTemplateResponse {